alepha 0.14.0 → 0.14.1

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 (94) hide show
  1. package/dist/api/audits/index.d.ts +417 -338
  2. package/dist/api/audits/index.d.ts.map +1 -1
  3. package/dist/api/files/index.d.ts +80 -1
  4. package/dist/api/files/index.d.ts.map +1 -1
  5. package/dist/api/jobs/index.d.ts +236 -157
  6. package/dist/api/jobs/index.d.ts.map +1 -1
  7. package/dist/api/notifications/index.d.ts +21 -1
  8. package/dist/api/notifications/index.d.ts.map +1 -1
  9. package/dist/api/parameters/index.d.ts +451 -4
  10. package/dist/api/parameters/index.d.ts.map +1 -1
  11. package/dist/api/users/index.d.ts +833 -830
  12. package/dist/api/users/index.d.ts.map +1 -1
  13. package/dist/cli/index.d.ts +212 -29
  14. package/dist/cli/index.d.ts.map +1 -1
  15. package/dist/cli/index.js +320 -219
  16. package/dist/cli/index.js.map +1 -1
  17. package/dist/command/index.d.ts +206 -9
  18. package/dist/command/index.d.ts.map +1 -1
  19. package/dist/command/index.js +306 -69
  20. package/dist/command/index.js.map +1 -1
  21. package/dist/core/index.browser.js.map +1 -1
  22. package/dist/core/index.d.ts +1 -1
  23. package/dist/core/index.js.map +1 -1
  24. package/dist/core/index.native.js.map +1 -1
  25. package/dist/file/index.d.ts.map +1 -1
  26. package/dist/file/index.js.map +1 -1
  27. package/dist/orm/index.d.ts +180 -126
  28. package/dist/orm/index.d.ts.map +1 -1
  29. package/dist/orm/index.js +486 -512
  30. package/dist/orm/index.js.map +1 -1
  31. package/dist/queue/redis/index.js +2 -4
  32. package/dist/queue/redis/index.js.map +1 -1
  33. package/dist/redis/index.d.ts +400 -29
  34. package/dist/redis/index.d.ts.map +1 -1
  35. package/dist/redis/index.js +412 -21
  36. package/dist/redis/index.js.map +1 -1
  37. package/dist/scheduler/index.d.ts +6 -6
  38. package/dist/security/index.d.ts +28 -28
  39. package/dist/security/index.d.ts.map +1 -1
  40. package/dist/server/auth/index.d.ts +155 -155
  41. package/dist/server/core/index.d.ts +0 -1
  42. package/dist/server/core/index.d.ts.map +1 -1
  43. package/dist/server/core/index.js.map +1 -1
  44. package/dist/server/health/index.d.ts +17 -17
  45. package/dist/server/helmet/index.d.ts +4 -1
  46. package/dist/server/helmet/index.d.ts.map +1 -1
  47. package/dist/server/multipart/index.d.ts.map +1 -1
  48. package/dist/server/multipart/index.js.map +1 -1
  49. package/dist/server/proxy/index.js.map +1 -1
  50. package/dist/topic/redis/index.js +3 -3
  51. package/dist/topic/redis/index.js.map +1 -1
  52. package/dist/vite/index.js +9 -6
  53. package/dist/vite/index.js.map +1 -1
  54. package/package.json +3 -3
  55. package/src/cli/apps/AlephaCli.ts +8 -3
  56. package/src/cli/apps/AlephaPackageBuilderCli.ts +3 -0
  57. package/src/cli/atoms/changelogOptions.ts +45 -0
  58. package/src/cli/commands/ChangelogCommands.ts +187 -317
  59. package/src/cli/commands/DeployCommands.ts +118 -0
  60. package/src/cli/commands/DrizzleCommands.ts +28 -8
  61. package/src/cli/commands/ViteCommands.ts +23 -9
  62. package/src/cli/defineConfig.ts +15 -0
  63. package/src/cli/index.ts +3 -0
  64. package/src/cli/services/AlephaCliUtils.ts +4 -21
  65. package/src/cli/services/GitMessageParser.ts +77 -0
  66. package/src/command/helpers/EnvUtils.ts +37 -0
  67. package/src/command/index.ts +3 -1
  68. package/src/command/primitives/$command.ts +172 -6
  69. package/src/command/providers/CliProvider.ts +424 -91
  70. package/src/core/Alepha.ts +1 -1
  71. package/src/file/providers/NodeFileSystemProvider.ts +3 -1
  72. package/src/orm/index.ts +8 -4
  73. package/src/orm/interfaces/PgQueryWhere.ts +1 -26
  74. package/src/orm/providers/drivers/BunPostgresProvider.ts +225 -0
  75. package/src/orm/providers/drivers/BunSqliteProvider.ts +180 -0
  76. package/src/orm/providers/drivers/DatabaseProvider.ts +25 -0
  77. package/src/orm/providers/drivers/NodePostgresProvider.ts +0 -25
  78. package/src/orm/services/QueryManager.ts +10 -125
  79. package/src/queue/redis/providers/RedisQueueProvider.ts +2 -7
  80. package/src/redis/index.ts +65 -3
  81. package/src/redis/providers/BunRedisProvider.ts +304 -0
  82. package/src/redis/providers/BunRedisSubscriberProvider.ts +94 -0
  83. package/src/redis/providers/NodeRedisProvider.ts +280 -0
  84. package/src/redis/providers/NodeRedisSubscriberProvider.ts +94 -0
  85. package/src/redis/providers/RedisProvider.ts +134 -140
  86. package/src/redis/providers/RedisSubscriberProvider.ts +58 -49
  87. package/src/server/core/providers/BunHttpServerProvider.ts +0 -3
  88. package/src/server/core/providers/ServerBodyParserProvider.ts +3 -1
  89. package/src/server/core/providers/ServerProvider.ts +7 -4
  90. package/src/server/multipart/providers/ServerMultipartProvider.ts +3 -1
  91. package/src/server/proxy/providers/ServerProxyProvider.ts +1 -1
  92. package/src/topic/redis/providers/RedisTopicProvider.ts +3 -3
  93. package/src/vite/tasks/buildServer.ts +1 -0
  94. package/src/orm/services/PgJsonQueryManager.ts +0 -511
@@ -1,4 +1,4 @@
1
- import * as alepha1 from "alepha";
1
+ import * as alepha23 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";
@@ -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,87 +26,87 @@ 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
 
30
34
  //#region ../../src/api/users/atoms/realmAuthSettingsAtom.d.ts
31
- declare const realmAuthSettingsAtom: alepha1.Atom<alepha1.TObject<{
32
- displayName: alepha1.TOptional<alepha1.TString>;
33
- description: alepha1.TOptional<alepha1.TString>;
34
- logoUrl: alepha1.TOptional<alepha1.TString>;
35
- registrationAllowed: alepha1.TBoolean;
36
- emailEnabled: alepha1.TBoolean;
37
- emailRequired: alepha1.TBoolean;
38
- usernameEnabled: alepha1.TBoolean;
39
- usernameRequired: alepha1.TBoolean;
40
- phoneEnabled: alepha1.TBoolean;
41
- phoneRequired: alepha1.TBoolean;
42
- verifyEmailRequired: alepha1.TBoolean;
43
- verifyPhoneRequired: alepha1.TBoolean;
44
- firstNameLastNameEnabled: alepha1.TBoolean;
45
- firstNameLastNameRequired: alepha1.TBoolean;
46
- resetPasswordAllowed: alepha1.TBoolean;
47
- passwordPolicy: alepha1.TObject<{
48
- minLength: alepha1.TInteger;
49
- requireUppercase: alepha1.TBoolean;
50
- requireLowercase: alepha1.TBoolean;
51
- requireNumbers: alepha1.TBoolean;
52
- requireSpecialCharacters: alepha1.TBoolean;
35
+ declare const realmAuthSettingsAtom: alepha23.Atom<alepha23.TObject<{
36
+ displayName: alepha23.TOptional<alepha23.TString>;
37
+ description: alepha23.TOptional<alepha23.TString>;
38
+ logoUrl: alepha23.TOptional<alepha23.TString>;
39
+ registrationAllowed: alepha23.TBoolean;
40
+ emailEnabled: alepha23.TBoolean;
41
+ emailRequired: alepha23.TBoolean;
42
+ usernameEnabled: alepha23.TBoolean;
43
+ usernameRequired: alepha23.TBoolean;
44
+ phoneEnabled: alepha23.TBoolean;
45
+ phoneRequired: alepha23.TBoolean;
46
+ verifyEmailRequired: alepha23.TBoolean;
47
+ verifyPhoneRequired: alepha23.TBoolean;
48
+ firstNameLastNameEnabled: alepha23.TBoolean;
49
+ firstNameLastNameRequired: alepha23.TBoolean;
50
+ resetPasswordAllowed: alepha23.TBoolean;
51
+ passwordPolicy: alepha23.TObject<{
52
+ minLength: alepha23.TInteger;
53
+ requireUppercase: alepha23.TBoolean;
54
+ requireLowercase: alepha23.TBoolean;
55
+ requireNumbers: alepha23.TBoolean;
56
+ requireSpecialCharacters: alepha23.TBoolean;
53
57
  }>;
54
58
  }>, "alepha.api.users.realmAuthSettings">;
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>;
64
- password: alepha1.TOptional<alepha1.TString>;
65
- provider: alepha1.TString;
66
- providerUserId: alepha1.TOptional<alepha1.TString>;
67
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
62
+ declare const identities: alepha_orm204.EntityPrimitive<alepha23.TObject<{
63
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
64
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
65
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
66
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
67
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
68
+ password: alepha23.TOptional<alepha23.TString>;
69
+ provider: alepha23.TString;
70
+ providerUserId: alepha23.TOptional<alepha23.TString>;
71
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
68
72
  }>>;
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>;
77
- refreshToken: alepha1.TString;
78
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
79
- expiresAt: alepha1.TString;
80
- ip: alepha1.TOptional<alepha1.TString>;
81
- userAgent: alepha1.TOptional<alepha1.TObject<{
82
- os: alepha1.TString;
83
- browser: alepha1.TString;
84
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
76
+ declare const sessions: alepha_orm204.EntityPrimitive<alepha23.TObject<{
77
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
78
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
79
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
80
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
81
+ refreshToken: alepha23.TString;
82
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
83
+ expiresAt: alepha23.TString;
84
+ ip: alepha23.TOptional<alepha23.TString>;
85
+ userAgent: alepha23.TOptional<alepha23.TObject<{
86
+ os: alepha23.TString;
87
+ browser: alepha23.TString;
88
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
85
89
  }>>;
86
90
  }>>;
87
91
  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>;
97
- username: alepha1.TOptional<alepha1.TString>;
98
- email: alepha1.TOptional<alepha1.TString>;
99
- phoneNumber: alepha1.TOptional<alepha1.TString>;
100
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
101
- firstName: alepha1.TOptional<alepha1.TString>;
102
- lastName: alepha1.TOptional<alepha1.TString>;
103
- picture: alepha1.TOptional<alepha1.TString>;
104
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
105
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
95
+ declare const users: alepha_orm204.EntityPrimitive<alepha23.TObject<{
96
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
97
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
98
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
99
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
100
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
101
+ username: alepha23.TOptional<alepha23.TString>;
102
+ email: alepha23.TOptional<alepha23.TString>;
103
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
104
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
105
+ firstName: alepha23.TOptional<alepha23.TString>;
106
+ lastName: alepha23.TOptional<alepha23.TString>;
107
+ picture: alepha23.TOptional<alepha23.TString>;
108
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
109
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
106
110
  }>>;
107
111
  type UserEntity = Static<typeof users.schema>;
108
112
  //#endregion
@@ -169,51 +173,51 @@ interface UserRealm {
169
173
  }
170
174
  declare class UserRealmProvider {
171
175
  protected readonly alepha: Alepha;
172
- protected readonly defaultIdentities: Repository<alepha1.TObject<{
173
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
174
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
175
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
176
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
177
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
178
- password: alepha1.TOptional<alepha1.TString>;
179
- provider: alepha1.TString;
180
- providerUserId: alepha1.TOptional<alepha1.TString>;
181
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
176
+ protected readonly defaultIdentities: Repository<alepha23.TObject<{
177
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
178
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
179
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
180
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
181
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
182
+ password: alepha23.TOptional<alepha23.TString>;
183
+ provider: alepha23.TString;
184
+ providerUserId: alepha23.TOptional<alepha23.TString>;
185
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
182
186
  }>>;
183
- protected readonly defaultSessions: Repository<alepha1.TObject<{
184
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
185
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
186
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
187
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
188
- refreshToken: alepha1.TString;
189
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
190
- expiresAt: alepha1.TString;
191
- ip: alepha1.TOptional<alepha1.TString>;
192
- userAgent: alepha1.TOptional<alepha1.TObject<{
193
- os: alepha1.TString;
194
- browser: alepha1.TString;
195
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
187
+ protected readonly defaultSessions: Repository<alepha23.TObject<{
188
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
189
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
190
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
191
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
192
+ refreshToken: alepha23.TString;
193
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
194
+ expiresAt: alepha23.TString;
195
+ ip: alepha23.TOptional<alepha23.TString>;
196
+ userAgent: alepha23.TOptional<alepha23.TObject<{
197
+ os: alepha23.TString;
198
+ browser: alepha23.TString;
199
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
196
200
  }>>;
197
201
  }>>;
198
- protected readonly defaultUsers: Repository<alepha1.TObject<{
199
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
200
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
201
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
202
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
203
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
204
- username: alepha1.TOptional<alepha1.TString>;
205
- email: alepha1.TOptional<alepha1.TString>;
206
- phoneNumber: alepha1.TOptional<alepha1.TString>;
207
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
208
- firstName: alepha1.TOptional<alepha1.TString>;
209
- lastName: alepha1.TOptional<alepha1.TString>;
210
- picture: alepha1.TOptional<alepha1.TString>;
211
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
212
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
202
+ protected readonly defaultUsers: Repository<alepha23.TObject<{
203
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
204
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
205
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
206
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
207
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
208
+ username: alepha23.TOptional<alepha23.TString>;
209
+ email: alepha23.TOptional<alepha23.TString>;
210
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
211
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
212
+ firstName: alepha23.TOptional<alepha23.TString>;
213
+ lastName: alepha23.TOptional<alepha23.TString>;
214
+ picture: alepha23.TOptional<alepha23.TString>;
215
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
216
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
213
217
  }>>;
214
218
  protected realms: Map<string, UserRealm>;
215
219
  avatars: alepha_bucket0.BucketPrimitive;
216
- protected readonly onConfigure: alepha1.HookPrimitive<"configure">;
220
+ protected readonly onConfigure: alepha23.HookPrimitive<"configure">;
217
221
  register(userRealmName: string, userRealmOptions?: UserRealmOptions): UserRealm;
218
222
  /**
219
223
  * Gets a registered realm by name, auto-creating default if needed.
@@ -225,12 +229,12 @@ declare class UserRealmProvider {
225
229
  }
226
230
  //#endregion
227
231
  //#region ../../src/api/users/schemas/identityQuerySchema.d.ts
228
- declare const identityQuerySchema: alepha1.TObject<{
229
- page: alepha1.TOptional<alepha1.TInteger>;
230
- size: alepha1.TOptional<alepha1.TInteger>;
231
- sort: alepha1.TOptional<alepha1.TString>;
232
- userId: alepha1.TOptional<alepha1.TString>;
233
- provider: alepha1.TOptional<alepha1.TString>;
232
+ declare const identityQuerySchema: alepha23.TObject<{
233
+ page: alepha23.TOptional<alepha23.TInteger>;
234
+ size: alepha23.TOptional<alepha23.TInteger>;
235
+ sort: alepha23.TOptional<alepha23.TString>;
236
+ userId: alepha23.TOptional<alepha23.TString>;
237
+ provider: alepha23.TOptional<alepha23.TString>;
234
238
  }>;
235
239
  type IdentityQuery = Static<typeof identityQuerySchema>;
236
240
  //#endregion
@@ -238,16 +242,16 @@ type IdentityQuery = Static<typeof identityQuerySchema>;
238
242
  declare class IdentityService {
239
243
  protected readonly log: alepha_logger1.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>;
247
- password: alepha1.TOptional<alepha1.TString>;
248
- provider: alepha1.TString;
249
- providerUserId: alepha1.TOptional<alepha1.TString>;
250
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
245
+ identities(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
246
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
247
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
248
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
249
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
250
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
251
+ password: alepha23.TOptional<alepha23.TString>;
252
+ provider: alepha23.TString;
253
+ providerUserId: alepha23.TOptional<alepha23.TString>;
254
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
251
255
  }>>;
252
256
  /**
253
257
  * Find identities with pagination and filtering.
@@ -272,70 +276,70 @@ declare class IdentityController {
272
276
  * Find identities with pagination and filtering.
273
277
  */
274
278
  readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
275
- query: alepha1.TObject<{
276
- page: alepha1.TOptional<alepha1.TInteger>;
277
- size: alepha1.TOptional<alepha1.TInteger>;
278
- sort: alepha1.TOptional<alepha1.TString>;
279
- userId: alepha1.TOptional<alepha1.TString>;
280
- provider: alepha1.TOptional<alepha1.TString>;
281
- userRealmName: alepha1.TOptional<alepha1.TString>;
279
+ query: alepha23.TObject<{
280
+ page: alepha23.TOptional<alepha23.TInteger>;
281
+ size: alepha23.TOptional<alepha23.TInteger>;
282
+ sort: alepha23.TOptional<alepha23.TString>;
283
+ userId: alepha23.TOptional<alepha23.TString>;
284
+ provider: alepha23.TOptional<alepha23.TString>;
285
+ userRealmName: alepha23.TOptional<alepha23.TString>;
282
286
  }>;
283
- response: alepha1.TPage<alepha1.TObject<{
284
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
285
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
286
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
287
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
288
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
289
- provider: alepha1.TString;
290
- providerUserId: alepha1.TOptional<alepha1.TString>;
291
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
287
+ response: alepha23.TPage<alepha23.TObject<{
288
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
289
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
290
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
291
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
292
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
293
+ provider: alepha23.TString;
294
+ providerUserId: alepha23.TOptional<alepha23.TString>;
295
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
292
296
  }>>;
293
297
  }>;
294
298
  /**
295
299
  * Get an identity by ID.
296
300
  */
297
301
  readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
298
- params: alepha1.TObject<{
299
- id: alepha1.TString;
302
+ params: alepha23.TObject<{
303
+ id: alepha23.TString;
300
304
  }>;
301
- query: alepha1.TObject<{
302
- userRealmName: alepha1.TOptional<alepha1.TString>;
305
+ query: alepha23.TObject<{
306
+ userRealmName: alepha23.TOptional<alepha23.TString>;
303
307
  }>;
304
- response: alepha1.TObject<{
305
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
306
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
307
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
308
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
309
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
310
- provider: alepha1.TString;
311
- providerUserId: alepha1.TOptional<alepha1.TString>;
312
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
308
+ response: alepha23.TObject<{
309
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
310
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
311
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
312
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
313
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
314
+ provider: alepha23.TString;
315
+ providerUserId: alepha23.TOptional<alepha23.TString>;
316
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
313
317
  }>;
314
318
  }>;
315
319
  /**
316
320
  * Delete an identity.
317
321
  */
318
322
  readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
319
- params: alepha1.TObject<{
320
- id: alepha1.TString;
323
+ params: alepha23.TObject<{
324
+ id: alepha23.TString;
321
325
  }>;
322
- query: alepha1.TObject<{
323
- userRealmName: alepha1.TOptional<alepha1.TString>;
326
+ query: alepha23.TObject<{
327
+ userRealmName: alepha23.TOptional<alepha23.TString>;
324
328
  }>;
325
- response: alepha1.TObject<{
326
- ok: alepha1.TBoolean;
327
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
328
- count: alepha1.TOptional<alepha1.TNumber>;
329
+ response: alepha23.TObject<{
330
+ ok: alepha23.TBoolean;
331
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
332
+ count: alepha23.TOptional<alepha23.TNumber>;
329
333
  }>;
330
334
  }>;
331
335
  }
332
336
  //#endregion
333
337
  //#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
334
- declare const sessionQuerySchema: alepha1.TObject<{
335
- page: alepha1.TOptional<alepha1.TInteger>;
336
- size: alepha1.TOptional<alepha1.TInteger>;
337
- sort: alepha1.TOptional<alepha1.TString>;
338
- userId: alepha1.TOptional<alepha1.TString>;
338
+ declare const sessionQuerySchema: alepha23.TObject<{
339
+ page: alepha23.TOptional<alepha23.TInteger>;
340
+ size: alepha23.TOptional<alepha23.TInteger>;
341
+ sort: alepha23.TOptional<alepha23.TString>;
342
+ userId: alepha23.TOptional<alepha23.TString>;
339
343
  }>;
340
344
  type SessionQuery = Static<typeof sessionQuerySchema>;
341
345
  //#endregion
@@ -343,19 +347,19 @@ type SessionQuery = Static<typeof sessionQuerySchema>;
343
347
  declare class SessionCrudService {
344
348
  protected readonly log: alepha_logger1.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>;
351
- refreshToken: alepha1.TString;
352
- userId: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_REF>;
353
- expiresAt: alepha1.TString;
354
- ip: alepha1.TOptional<alepha1.TString>;
355
- userAgent: alepha1.TOptional<alepha1.TObject<{
356
- os: alepha1.TString;
357
- browser: alepha1.TString;
358
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
350
+ sessions(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
351
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
352
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
353
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
354
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
355
+ refreshToken: alepha23.TString;
356
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
357
+ expiresAt: alepha23.TString;
358
+ ip: alepha23.TOptional<alepha23.TString>;
359
+ userAgent: alepha23.TOptional<alepha23.TObject<{
360
+ os: alepha23.TString;
361
+ browser: alepha23.TString;
362
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
359
363
  }>>;
360
364
  }>>;
361
365
  /**
@@ -381,26 +385,26 @@ declare class SessionController {
381
385
  * Find sessions with pagination and filtering.
382
386
  */
383
387
  readonly findSessions: alepha_server0.ActionPrimitiveFn<{
384
- query: alepha1.TObject<{
385
- page: alepha1.TOptional<alepha1.TInteger>;
386
- size: alepha1.TOptional<alepha1.TInteger>;
387
- sort: alepha1.TOptional<alepha1.TString>;
388
- userId: alepha1.TOptional<alepha1.TString>;
389
- userRealmName: alepha1.TOptional<alepha1.TString>;
388
+ query: alepha23.TObject<{
389
+ page: alepha23.TOptional<alepha23.TInteger>;
390
+ size: alepha23.TOptional<alepha23.TInteger>;
391
+ sort: alepha23.TOptional<alepha23.TString>;
392
+ userId: alepha23.TOptional<alepha23.TString>;
393
+ userRealmName: alepha23.TOptional<alepha23.TString>;
390
394
  }>;
391
- response: alepha1.TPage<alepha1.TObject<{
392
- id: alepha1.TString;
393
- version: alepha1.TNumber;
394
- createdAt: alepha1.TString;
395
- updatedAt: alepha1.TString;
396
- refreshToken: alepha1.TString;
397
- userId: alepha1.TString;
398
- expiresAt: alepha1.TString;
399
- ip: alepha1.TOptional<alepha1.TString>;
400
- userAgent: alepha1.TOptional<alepha1.TObject<{
401
- os: alepha1.TString;
402
- browser: alepha1.TString;
403
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
395
+ response: alepha23.TPage<alepha23.TObject<{
396
+ id: alepha23.TString;
397
+ version: alepha23.TNumber;
398
+ createdAt: alepha23.TString;
399
+ updatedAt: alepha23.TString;
400
+ refreshToken: alepha23.TString;
401
+ userId: alepha23.TString;
402
+ expiresAt: alepha23.TString;
403
+ ip: alepha23.TOptional<alepha23.TString>;
404
+ userAgent: alepha23.TOptional<alepha23.TObject<{
405
+ os: alepha23.TString;
406
+ browser: alepha23.TString;
407
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
404
408
  }>>;
405
409
  }>>;
406
410
  }>;
@@ -408,25 +412,25 @@ declare class SessionController {
408
412
  * Get a session by ID.
409
413
  */
410
414
  readonly getSession: alepha_server0.ActionPrimitiveFn<{
411
- params: alepha1.TObject<{
412
- id: alepha1.TString;
415
+ params: alepha23.TObject<{
416
+ id: alepha23.TString;
413
417
  }>;
414
- query: alepha1.TObject<{
415
- userRealmName: alepha1.TOptional<alepha1.TString>;
418
+ query: alepha23.TObject<{
419
+ userRealmName: alepha23.TOptional<alepha23.TString>;
416
420
  }>;
417
- response: alepha1.TObject<{
418
- id: alepha1.TString;
419
- version: alepha1.TNumber;
420
- createdAt: alepha1.TString;
421
- updatedAt: alepha1.TString;
422
- refreshToken: alepha1.TString;
423
- userId: alepha1.TString;
424
- expiresAt: alepha1.TString;
425
- ip: alepha1.TOptional<alepha1.TString>;
426
- userAgent: alepha1.TOptional<alepha1.TObject<{
427
- os: alepha1.TString;
428
- browser: alepha1.TString;
429
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
421
+ response: alepha23.TObject<{
422
+ id: alepha23.TString;
423
+ version: alepha23.TNumber;
424
+ createdAt: alepha23.TString;
425
+ updatedAt: alepha23.TString;
426
+ refreshToken: alepha23.TString;
427
+ userId: alepha23.TString;
428
+ expiresAt: alepha23.TString;
429
+ ip: alepha23.TOptional<alepha23.TString>;
430
+ userAgent: alepha23.TOptional<alepha23.TObject<{
431
+ os: alepha23.TString;
432
+ browser: alepha23.TString;
433
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
430
434
  }>>;
431
435
  }>;
432
436
  }>;
@@ -434,16 +438,16 @@ declare class SessionController {
434
438
  * Delete a session.
435
439
  */
436
440
  readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
437
- params: alepha1.TObject<{
438
- id: alepha1.TString;
441
+ params: alepha23.TObject<{
442
+ id: alepha23.TString;
439
443
  }>;
440
- query: alepha1.TObject<{
441
- userRealmName: alepha1.TOptional<alepha1.TString>;
444
+ query: alepha23.TObject<{
445
+ userRealmName: alepha23.TOptional<alepha23.TString>;
442
446
  }>;
443
- response: alepha1.TObject<{
444
- ok: alepha1.TBoolean;
445
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
446
- count: alepha1.TOptional<alepha1.TNumber>;
447
+ response: alepha23.TObject<{
448
+ ok: alepha23.TBoolean;
449
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
450
+ count: alepha23.TOptional<alepha23.TNumber>;
447
451
  }>;
448
452
  }>;
449
453
  }
@@ -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
  /**
@@ -1339,11 +1339,11 @@ declare class DrizzleKitProvider {
1339
1339
  */
1340
1340
  importDrizzleKit(): typeof DrizzleKit;
1341
1341
  }
1342
- declare const devMigrationsSchema: alepha1.TObject<{
1343
- id: alepha1.TNumber;
1344
- name: alepha1.TString;
1345
- snapshot: alepha1.TString;
1346
- created_at: alepha1.TString;
1342
+ declare const devMigrationsSchema: alepha23.TObject<{
1343
+ id: alepha23.TNumber;
1344
+ name: alepha23.TString;
1345
+ snapshot: alepha23.TString;
1346
+ created_at: alepha23.TString;
1347
1347
  }>;
1348
1348
  type DevMigrations = Static<typeof devMigrationsSchema>;
1349
1349
  //#endregion
@@ -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
- /**
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
1422
- */
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
1399
  /**
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
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`.
1437
1403
  */
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
  */
@@ -1540,7 +1468,7 @@ declare class QueryManager {
1540
1468
  createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
1541
1469
  column: string;
1542
1470
  direction: "asc" | "desc";
1543
- }>): alepha1.Page<T>;
1471
+ }>): alepha23.Page<T>;
1544
1472
  }
1545
1473
  interface PgJoin {
1546
1474
  table: string;
@@ -1848,11 +1776,86 @@ 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: alepha23.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: alepha23.TOptional<alepha23.TString>;
1792
+ /**
1793
+ * In addition to the DATABASE_URL, you can specify the postgres schema name.
1794
+ */
1795
+ POSTGRES_SCHEMA: alepha23.TOptional<alepha23.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: alepha23.Atom<alepha23.TObject<{
1821
+ path: alepha23.TOptional<alepha23.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>> {}
1854
1857
  }
1855
- declare const envSchema: alepha1.TObject<{
1858
+ declare const envSchema: alepha23.TObject<{
1856
1859
  /**
1857
1860
  * Main configuration for database connection.
1858
1861
  * Accept a string in the format of a Postgres connection URL.
@@ -1860,21 +1863,21 @@ declare const envSchema: alepha1.TObject<{
1860
1863
  * or
1861
1864
  * Example: postgres://user:password@localhost:5432/database?sslmode=require
1862
1865
  */
1863
- DATABASE_URL: alepha1.TOptional<alepha1.TString>;
1866
+ DATABASE_URL: alepha23.TOptional<alepha23.TString>;
1864
1867
  /**
1865
1868
  * In addition to the DATABASE_URL, you can specify the postgres schema name.
1866
1869
  *
1867
1870
  * It will monkey patch drizzle tables.
1868
1871
  */
1869
- POSTGRES_SCHEMA: alepha1.TOptional<alepha1.TString>;
1872
+ POSTGRES_SCHEMA: alepha23.TOptional<alepha23.TString>;
1870
1873
  }>;
1871
1874
  //#endregion
1872
1875
  //#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
1873
1876
  /**
1874
1877
  * Configuration options for the Node.js SQLite database provider.
1875
1878
  */
1876
- declare const nodeSqliteOptions: alepha1.Atom<alepha1.TObject<{
1877
- path: alepha1.TOptional<alepha1.TString>;
1879
+ declare const nodeSqliteOptions: alepha23.Atom<alepha23.TObject<{
1880
+ path: alepha23.TOptional<alepha23.TString>;
1878
1881
  }>, "alepha.postgres.node-sqlite.options">;
1879
1882
  type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
1880
1883
  declare module "alepha" {
@@ -1959,30 +1962,30 @@ declare module "alepha" {
1959
1962
  //#endregion
1960
1963
  //#region ../../src/api/users/notifications/UserNotifications.d.ts
1961
1964
  declare class UserNotifications {
1962
- readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1963
- email: alepha1.TString;
1964
- code: alepha1.TString;
1965
- expiresInMinutes: alepha1.TNumber;
1965
+ readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1966
+ email: alepha23.TString;
1967
+ code: alepha23.TString;
1968
+ expiresInMinutes: alepha23.TNumber;
1966
1969
  }>>;
1967
- readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1968
- email: alepha1.TString;
1969
- code: alepha1.TString;
1970
- expiresInMinutes: alepha1.TNumber;
1970
+ readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1971
+ email: alepha23.TString;
1972
+ code: alepha23.TString;
1973
+ expiresInMinutes: alepha23.TNumber;
1971
1974
  }>>;
1972
- readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1973
- phoneNumber: alepha1.TString;
1974
- code: alepha1.TString;
1975
- expiresInMinutes: alepha1.TNumber;
1975
+ readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1976
+ phoneNumber: alepha23.TString;
1977
+ code: alepha23.TString;
1978
+ expiresInMinutes: alepha23.TNumber;
1976
1979
  }>>;
1977
- readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1978
- email: alepha1.TString;
1979
- resetUrl: alepha1.TString;
1980
- expiresInMinutes: alepha1.TNumber;
1980
+ readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1981
+ email: alepha23.TString;
1982
+ resetUrl: alepha23.TString;
1983
+ expiresInMinutes: alepha23.TNumber;
1981
1984
  }>>;
1982
- readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1983
- email: alepha1.TString;
1984
- verifyUrl: alepha1.TString;
1985
- expiresInMinutes: alepha1.TNumber;
1985
+ readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1986
+ email: alepha23.TString;
1987
+ verifyUrl: alepha23.TString;
1988
+ expiresInMinutes: alepha23.TNumber;
1986
1989
  }>>;
1987
1990
  }
1988
1991
  //#endregion
@@ -1993,10 +1996,10 @@ declare class UserNotifications {
1993
1996
  * Requires the intent ID from Phase 1, the verification code,
1994
1997
  * and the new password.
1995
1998
  */
1996
- declare const completePasswordResetRequestSchema: alepha1.TObject<{
1997
- intentId: alepha1.TString;
1998
- code: alepha1.TString;
1999
- newPassword: alepha1.TString;
1999
+ declare const completePasswordResetRequestSchema: alepha23.TObject<{
2000
+ intentId: alepha23.TString;
2001
+ code: alepha23.TString;
2002
+ newPassword: alepha23.TString;
2000
2003
  }>;
2001
2004
  type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
2002
2005
  //#endregion
@@ -2007,9 +2010,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
2007
2010
  * Contains the intent ID needed for Phase 2 completion,
2008
2011
  * along with expiration time.
2009
2012
  */
2010
- declare const passwordResetIntentResponseSchema: alepha1.TObject<{
2011
- intentId: alepha1.TString;
2012
- expiresAt: alepha1.TString;
2013
+ declare const passwordResetIntentResponseSchema: alepha23.TObject<{
2014
+ intentId: alepha23.TString;
2015
+ expiresAt: alepha23.TString;
2013
2016
  }>;
2014
2017
  type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
2015
2018
  //#endregion
@@ -2032,47 +2035,47 @@ declare class CredentialService {
2032
2035
  protected readonly userNotifications: UserNotifications;
2033
2036
  protected readonly userRealmProvider: UserRealmProvider;
2034
2037
  protected readonly intentCache: alepha_cache0.CachePrimitiveFn<PasswordResetIntent, any[]>;
2035
- users(userRealmName?: string): Repository$1<alepha1.TObject<{
2036
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2037
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2038
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2039
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2040
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2041
- username: alepha1.TOptional<alepha1.TString>;
2042
- email: alepha1.TOptional<alepha1.TString>;
2043
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2044
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2045
- firstName: alepha1.TOptional<alepha1.TString>;
2046
- lastName: alepha1.TOptional<alepha1.TString>;
2047
- picture: alepha1.TOptional<alepha1.TString>;
2048
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2049
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2038
+ users(userRealmName?: string): Repository$1<alepha23.TObject<{
2039
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2040
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2041
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2042
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2043
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2044
+ username: alepha23.TOptional<alepha23.TString>;
2045
+ email: alepha23.TOptional<alepha23.TString>;
2046
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2047
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2048
+ firstName: alepha23.TOptional<alepha23.TString>;
2049
+ lastName: alepha23.TOptional<alepha23.TString>;
2050
+ picture: alepha23.TOptional<alepha23.TString>;
2051
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2052
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2050
2053
  }>>;
2051
- sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
2052
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2053
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2054
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2055
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2056
- refreshToken: alepha1.TString;
2057
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2058
- expiresAt: alepha1.TString;
2059
- ip: alepha1.TOptional<alepha1.TString>;
2060
- userAgent: alepha1.TOptional<alepha1.TObject<{
2061
- os: alepha1.TString;
2062
- browser: alepha1.TString;
2063
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2054
+ sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
2055
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2056
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2057
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2058
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2059
+ refreshToken: alepha23.TString;
2060
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2061
+ expiresAt: alepha23.TString;
2062
+ ip: alepha23.TOptional<alepha23.TString>;
2063
+ userAgent: alepha23.TOptional<alepha23.TObject<{
2064
+ os: alepha23.TString;
2065
+ browser: alepha23.TString;
2066
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2064
2067
  }>>;
2065
2068
  }>>;
2066
- identities(userRealmName?: string): Repository$1<alepha1.TObject<{
2067
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2068
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2069
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2070
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2071
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2072
- password: alepha1.TOptional<alepha1.TString>;
2073
- provider: alepha1.TString;
2074
- providerUserId: alepha1.TOptional<alepha1.TString>;
2075
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2069
+ identities(userRealmName?: string): Repository$1<alepha23.TObject<{
2070
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2071
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2072
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2073
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2074
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2075
+ password: alepha23.TOptional<alepha23.TString>;
2076
+ provider: alepha23.TString;
2077
+ providerUserId: alepha23.TOptional<alepha23.TString>;
2078
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2076
2079
  }>>;
2077
2080
  /**
2078
2081
  * Phase 1: Create a password reset intent.
@@ -2109,11 +2112,11 @@ declare class CredentialService {
2109
2112
  }
2110
2113
  //#endregion
2111
2114
  //#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
2112
- declare const completeRegistrationRequestSchema: alepha1.TObject<{
2113
- intentId: alepha1.TString;
2114
- emailCode: alepha1.TOptional<alepha1.TString>;
2115
- phoneCode: alepha1.TOptional<alepha1.TString>;
2116
- captchaToken: alepha1.TOptional<alepha1.TString>;
2115
+ declare const completeRegistrationRequestSchema: alepha23.TObject<{
2116
+ intentId: alepha23.TString;
2117
+ emailCode: alepha23.TOptional<alepha23.TString>;
2118
+ phoneCode: alepha23.TOptional<alepha23.TString>;
2119
+ captchaToken: alepha23.TOptional<alepha23.TString>;
2117
2120
  }>;
2118
2121
  type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
2119
2122
  //#endregion
@@ -2122,24 +2125,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
2122
2125
  * Schema for user registration request body.
2123
2126
  * Password is always required, other fields depend on realm settings.
2124
2127
  */
2125
- declare const registerRequestSchema: alepha1.TObject<{
2126
- password: alepha1.TString;
2127
- username: alepha1.TOptional<alepha1.TString>;
2128
- email: alepha1.TOptional<alepha1.TString>;
2129
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2130
- firstName: alepha1.TOptional<alepha1.TString>;
2131
- lastName: alepha1.TOptional<alepha1.TString>;
2132
- picture: alepha1.TOptional<alepha1.TString>;
2128
+ declare const registerRequestSchema: alepha23.TObject<{
2129
+ password: alepha23.TString;
2130
+ username: alepha23.TOptional<alepha23.TString>;
2131
+ email: alepha23.TOptional<alepha23.TString>;
2132
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2133
+ firstName: alepha23.TOptional<alepha23.TString>;
2134
+ lastName: alepha23.TOptional<alepha23.TString>;
2135
+ picture: alepha23.TOptional<alepha23.TString>;
2133
2136
  }>;
2134
2137
  type RegisterRequest = Static<typeof registerRequestSchema>;
2135
2138
  //#endregion
2136
2139
  //#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
2137
- declare const registrationIntentResponseSchema: alepha1.TObject<{
2138
- intentId: alepha1.TString;
2139
- expectCaptcha: alepha1.TBoolean;
2140
- expectEmailVerification: alepha1.TBoolean;
2141
- expectPhoneVerification: alepha1.TBoolean;
2142
- expiresAt: alepha1.TString;
2140
+ declare const registrationIntentResponseSchema: alepha23.TObject<{
2141
+ intentId: alepha23.TString;
2142
+ expectCaptcha: alepha23.TBoolean;
2143
+ expectEmailVerification: alepha23.TBoolean;
2144
+ expectPhoneVerification: alepha23.TBoolean;
2145
+ expiresAt: alepha23.TString;
2143
2146
  }>;
2144
2147
  type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
2145
2148
  //#endregion
@@ -2210,46 +2213,46 @@ declare class RegistrationService {
2210
2213
  }
2211
2214
  //#endregion
2212
2215
  //#region ../../src/api/users/schemas/createUserSchema.d.ts
2213
- declare const createUserSchema: alepha1.TObject<{
2214
- id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
2215
- version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
2216
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2217
- createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
2218
- updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
2219
- username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2220
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2221
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2222
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2223
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2224
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2225
- enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2226
- emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2216
+ declare const createUserSchema: alepha23.TObject<{
2217
+ id: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
2218
+ version: alepha23.TOptional<PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
2219
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2220
+ createdAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
2221
+ updatedAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
2222
+ username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2223
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2224
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2225
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2226
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2227
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2228
+ enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
2229
+ emailVerified: alepha23.TOptional<PgAttr<alepha23.TBoolean, 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
- declare const updateUserSchema: alepha1.TObject<{
2232
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2233
- realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
2234
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2235
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2236
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2237
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2238
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2239
- enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2234
+ declare const updateUserSchema: alepha23.TObject<{
2235
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2236
+ realm: alepha23.TOptional<PgAttr<alepha23.TString, typeof PG_DEFAULT>>;
2237
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2238
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2239
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2240
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2241
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2242
+ enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
2240
2243
  }>;
2241
2244
  type UpdateUser = Static<typeof updateUserSchema>;
2242
2245
  //#endregion
2243
2246
  //#region ../../src/api/users/schemas/userQuerySchema.d.ts
2244
- declare const userQuerySchema: alepha1.TObject<{
2245
- page: alepha1.TOptional<alepha1.TInteger>;
2246
- size: alepha1.TOptional<alepha1.TInteger>;
2247
- sort: alepha1.TOptional<alepha1.TString>;
2248
- email: alepha1.TOptional<alepha1.TString>;
2249
- enabled: alepha1.TOptional<alepha1.TBoolean>;
2250
- emailVerified: alepha1.TOptional<alepha1.TBoolean>;
2251
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2252
- query: alepha1.TOptional<alepha1.TString>;
2247
+ declare const userQuerySchema: alepha23.TObject<{
2248
+ page: alepha23.TOptional<alepha23.TInteger>;
2249
+ size: alepha23.TOptional<alepha23.TInteger>;
2250
+ sort: alepha23.TOptional<alepha23.TString>;
2251
+ email: alepha23.TOptional<alepha23.TString>;
2252
+ enabled: alepha23.TOptional<alepha23.TBoolean>;
2253
+ emailVerified: alepha23.TOptional<alepha23.TBoolean>;
2254
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2255
+ query: alepha23.TOptional<alepha23.TString>;
2253
2256
  }>;
2254
2257
  type UserQuery = Static<typeof userQuerySchema>;
2255
2258
  //#endregion
@@ -2259,21 +2262,21 @@ declare class UserService {
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>;
2268
- username: alepha1.TOptional<alepha1.TString>;
2269
- email: alepha1.TOptional<alepha1.TString>;
2270
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2271
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2272
- firstName: alepha1.TOptional<alepha1.TString>;
2273
- lastName: alepha1.TOptional<alepha1.TString>;
2274
- picture: alepha1.TOptional<alepha1.TString>;
2275
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2276
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2265
+ users(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
2266
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2267
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2268
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2269
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2270
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2271
+ username: alepha23.TOptional<alepha23.TString>;
2272
+ email: alepha23.TOptional<alepha23.TString>;
2273
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2274
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2275
+ firstName: alepha23.TOptional<alepha23.TString>;
2276
+ lastName: alepha23.TOptional<alepha23.TString>;
2277
+ picture: alepha23.TOptional<alepha23.TString>;
2278
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2279
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2277
2280
  }>>;
2278
2281
  /**
2279
2282
  * Request email verification for a user.
@@ -2326,122 +2329,122 @@ declare class UserController {
2326
2329
  * Validates data, creates verification sessions, and stores intent in cache.
2327
2330
  */
2328
2331
  readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
2329
- body: alepha1.TObject<{
2330
- password: alepha1.TString;
2331
- username: alepha1.TOptional<alepha1.TString>;
2332
- email: alepha1.TOptional<alepha1.TString>;
2333
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2334
- firstName: alepha1.TOptional<alepha1.TString>;
2335
- lastName: alepha1.TOptional<alepha1.TString>;
2336
- picture: alepha1.TOptional<alepha1.TString>;
2332
+ body: alepha23.TObject<{
2333
+ password: alepha23.TString;
2334
+ username: alepha23.TOptional<alepha23.TString>;
2335
+ email: alepha23.TOptional<alepha23.TString>;
2336
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2337
+ firstName: alepha23.TOptional<alepha23.TString>;
2338
+ lastName: alepha23.TOptional<alepha23.TString>;
2339
+ picture: alepha23.TOptional<alepha23.TString>;
2337
2340
  }>;
2338
- query: alepha1.TObject<{
2339
- userRealmName: alepha1.TOptional<alepha1.TString>;
2341
+ query: alepha23.TObject<{
2342
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2340
2343
  }>;
2341
- response: alepha1.TObject<{
2342
- intentId: alepha1.TString;
2343
- expectCaptcha: alepha1.TBoolean;
2344
- expectEmailVerification: alepha1.TBoolean;
2345
- expectPhoneVerification: alepha1.TBoolean;
2346
- expiresAt: alepha1.TString;
2344
+ response: alepha23.TObject<{
2345
+ intentId: alepha23.TString;
2346
+ expectCaptcha: alepha23.TBoolean;
2347
+ expectEmailVerification: alepha23.TBoolean;
2348
+ expectPhoneVerification: alepha23.TBoolean;
2349
+ expiresAt: alepha23.TString;
2347
2350
  }>;
2348
2351
  }>;
2349
2352
  /**
2350
2353
  * Find users with pagination and filtering.
2351
2354
  */
2352
2355
  readonly findUsers: alepha_server0.ActionPrimitiveFn<{
2353
- query: alepha1.TObject<{
2354
- page: alepha1.TOptional<alepha1.TInteger>;
2355
- size: alepha1.TOptional<alepha1.TInteger>;
2356
- sort: alepha1.TOptional<alepha1.TString>;
2357
- email: alepha1.TOptional<alepha1.TString>;
2358
- enabled: alepha1.TOptional<alepha1.TBoolean>;
2359
- emailVerified: alepha1.TOptional<alepha1.TBoolean>;
2360
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2361
- query: alepha1.TOptional<alepha1.TString>;
2362
- userRealmName: alepha1.TOptional<alepha1.TString>;
2356
+ query: alepha23.TObject<{
2357
+ page: alepha23.TOptional<alepha23.TInteger>;
2358
+ size: alepha23.TOptional<alepha23.TInteger>;
2359
+ sort: alepha23.TOptional<alepha23.TString>;
2360
+ email: alepha23.TOptional<alepha23.TString>;
2361
+ enabled: alepha23.TOptional<alepha23.TBoolean>;
2362
+ emailVerified: alepha23.TOptional<alepha23.TBoolean>;
2363
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2364
+ query: alepha23.TOptional<alepha23.TString>;
2365
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2363
2366
  }>;
2364
- response: alepha1.TPage<alepha1.TObject<{
2365
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2366
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2367
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2368
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2369
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
2370
- username: alepha1.TOptional<alepha1.TString>;
2371
- email: alepha1.TOptional<alepha1.TString>;
2372
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2373
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2374
- firstName: alepha1.TOptional<alepha1.TString>;
2375
- lastName: alepha1.TOptional<alepha1.TString>;
2376
- picture: alepha1.TOptional<alepha1.TString>;
2377
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2378
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2367
+ response: alepha23.TPage<alepha23.TObject<{
2368
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2369
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2370
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2371
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2372
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2373
+ username: alepha23.TOptional<alepha23.TString>;
2374
+ email: alepha23.TOptional<alepha23.TString>;
2375
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2376
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2377
+ firstName: alepha23.TOptional<alepha23.TString>;
2378
+ lastName: alepha23.TOptional<alepha23.TString>;
2379
+ picture: alepha23.TOptional<alepha23.TString>;
2380
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2381
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2379
2382
  }>>;
2380
2383
  }>;
2381
2384
  /**
2382
2385
  * Get a user by ID.
2383
2386
  */
2384
2387
  readonly getUser: alepha_server0.ActionPrimitiveFn<{
2385
- params: alepha1.TObject<{
2386
- id: alepha1.TString;
2388
+ params: alepha23.TObject<{
2389
+ id: alepha23.TString;
2387
2390
  }>;
2388
- query: alepha1.TObject<{
2389
- userRealmName: alepha1.TOptional<alepha1.TString>;
2391
+ query: alepha23.TObject<{
2392
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2390
2393
  }>;
2391
- response: alepha1.TObject<{
2392
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2393
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2394
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2395
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2396
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
2397
- username: alepha1.TOptional<alepha1.TString>;
2398
- email: alepha1.TOptional<alepha1.TString>;
2399
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2400
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2401
- firstName: alepha1.TOptional<alepha1.TString>;
2402
- lastName: alepha1.TOptional<alepha1.TString>;
2403
- picture: alepha1.TOptional<alepha1.TString>;
2404
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2405
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2394
+ response: alepha23.TObject<{
2395
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2396
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2397
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2398
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2399
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2400
+ username: alepha23.TOptional<alepha23.TString>;
2401
+ email: alepha23.TOptional<alepha23.TString>;
2402
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2403
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2404
+ firstName: alepha23.TOptional<alepha23.TString>;
2405
+ lastName: alepha23.TOptional<alepha23.TString>;
2406
+ picture: alepha23.TOptional<alepha23.TString>;
2407
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2408
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2406
2409
  }>;
2407
2410
  }>;
2408
2411
  /**
2409
2412
  * Create a new user.
2410
2413
  */
2411
2414
  readonly createUser: alepha_server0.ActionPrimitiveFn<{
2412
- query: alepha1.TObject<{
2413
- userRealmName: alepha1.TOptional<alepha1.TString>;
2415
+ query: alepha23.TObject<{
2416
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2414
2417
  }>;
2415
- body: alepha1.TObject<{
2416
- id: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>>;
2417
- version: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>>;
2418
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2419
- createdAt: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
2420
- updatedAt: alepha1.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
2421
- username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2422
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2423
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2424
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2425
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2426
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2427
- enabled: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2428
- emailVerified: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2418
+ body: alepha23.TObject<{
2419
+ id: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>>;
2420
+ version: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>>;
2421
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2422
+ createdAt: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
2423
+ updatedAt: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
2424
+ username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2425
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2426
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2427
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2428
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2429
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2430
+ enabled: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2431
+ emailVerified: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2429
2432
  }>;
2430
- response: alepha1.TObject<{
2431
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2432
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2433
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2434
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2435
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
2436
- username: alepha1.TOptional<alepha1.TString>;
2437
- email: alepha1.TOptional<alepha1.TString>;
2438
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2439
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2440
- firstName: alepha1.TOptional<alepha1.TString>;
2441
- lastName: alepha1.TOptional<alepha1.TString>;
2442
- picture: alepha1.TOptional<alepha1.TString>;
2443
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2444
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2433
+ response: alepha23.TObject<{
2434
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2435
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2436
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2437
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2438
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2439
+ username: alepha23.TOptional<alepha23.TString>;
2440
+ email: alepha23.TOptional<alepha23.TString>;
2441
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2442
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2443
+ firstName: alepha23.TOptional<alepha23.TString>;
2444
+ lastName: alepha23.TOptional<alepha23.TString>;
2445
+ picture: alepha23.TOptional<alepha23.TString>;
2446
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2447
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2445
2448
  }>;
2446
2449
  }>;
2447
2450
  /**
@@ -2449,80 +2452,80 @@ declare class UserController {
2449
2452
  * Validates verification codes and creates the user.
2450
2453
  */
2451
2454
  readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
2452
- body: alepha1.TObject<{
2453
- intentId: alepha1.TString;
2454
- emailCode: alepha1.TOptional<alepha1.TString>;
2455
- phoneCode: alepha1.TOptional<alepha1.TString>;
2456
- captchaToken: alepha1.TOptional<alepha1.TString>;
2455
+ body: alepha23.TObject<{
2456
+ intentId: alepha23.TString;
2457
+ emailCode: alepha23.TOptional<alepha23.TString>;
2458
+ phoneCode: alepha23.TOptional<alepha23.TString>;
2459
+ captchaToken: alepha23.TOptional<alepha23.TString>;
2457
2460
  }>;
2458
- response: alepha1.TObject<{
2459
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2460
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2461
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2462
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2463
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
2464
- username: alepha1.TOptional<alepha1.TString>;
2465
- email: alepha1.TOptional<alepha1.TString>;
2466
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2467
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2468
- firstName: alepha1.TOptional<alepha1.TString>;
2469
- lastName: alepha1.TOptional<alepha1.TString>;
2470
- picture: alepha1.TOptional<alepha1.TString>;
2471
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2472
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2461
+ response: alepha23.TObject<{
2462
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2463
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2464
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2465
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2466
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2467
+ username: alepha23.TOptional<alepha23.TString>;
2468
+ email: alepha23.TOptional<alepha23.TString>;
2469
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2470
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2471
+ firstName: alepha23.TOptional<alepha23.TString>;
2472
+ lastName: alepha23.TOptional<alepha23.TString>;
2473
+ picture: alepha23.TOptional<alepha23.TString>;
2474
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2475
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2473
2476
  }>;
2474
2477
  }>;
2475
2478
  /**
2476
2479
  * Update a user.
2477
2480
  */
2478
2481
  readonly updateUser: alepha_server0.ActionPrimitiveFn<{
2479
- params: alepha1.TObject<{
2480
- id: alepha1.TString;
2482
+ params: alepha23.TObject<{
2483
+ id: alepha23.TString;
2481
2484
  }>;
2482
- query: alepha1.TObject<{
2483
- userRealmName: alepha1.TOptional<alepha1.TString>;
2485
+ query: alepha23.TObject<{
2486
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2484
2487
  }>;
2485
- body: alepha1.TObject<{
2486
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2487
- realm: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>>;
2488
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2489
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2490
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2491
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2492
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2493
- enabled: alepha1.TOptional<alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2488
+ body: alepha23.TObject<{
2489
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2490
+ realm: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>>;
2491
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2492
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2493
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2494
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2495
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2496
+ enabled: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2494
2497
  }>;
2495
- response: alepha1.TObject<{
2496
- id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2497
- version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2498
- createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2499
- updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2500
- realm: alepha_orm204.PgAttr<alepha1.TString, typeof alepha_orm204.PG_DEFAULT>;
2501
- username: alepha1.TOptional<alepha1.TString>;
2502
- email: alepha1.TOptional<alepha1.TString>;
2503
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2504
- roles: alepha_orm204.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm204.PG_DEFAULT>;
2505
- firstName: alepha1.TOptional<alepha1.TString>;
2506
- lastName: alepha1.TOptional<alepha1.TString>;
2507
- picture: alepha1.TOptional<alepha1.TString>;
2508
- enabled: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2509
- emailVerified: alepha_orm204.PgAttr<alepha1.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2498
+ response: alepha23.TObject<{
2499
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2500
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2501
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2502
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2503
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2504
+ username: alepha23.TOptional<alepha23.TString>;
2505
+ email: alepha23.TOptional<alepha23.TString>;
2506
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2507
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2508
+ firstName: alepha23.TOptional<alepha23.TString>;
2509
+ lastName: alepha23.TOptional<alepha23.TString>;
2510
+ picture: alepha23.TOptional<alepha23.TString>;
2511
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2512
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2510
2513
  }>;
2511
2514
  }>;
2512
2515
  /**
2513
2516
  * Delete a user.
2514
2517
  */
2515
2518
  readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
2516
- params: alepha1.TObject<{
2517
- id: alepha1.TString;
2519
+ params: alepha23.TObject<{
2520
+ id: alepha23.TString;
2518
2521
  }>;
2519
- query: alepha1.TObject<{
2520
- userRealmName: alepha1.TOptional<alepha1.TString>;
2522
+ query: alepha23.TObject<{
2523
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2521
2524
  }>;
2522
- response: alepha1.TObject<{
2523
- ok: alepha1.TBoolean;
2524
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
2525
- count: alepha1.TOptional<alepha1.TNumber>;
2525
+ response: alepha23.TObject<{
2526
+ ok: alepha23.TBoolean;
2527
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
2528
+ count: alepha23.TOptional<alepha23.TNumber>;
2526
2529
  }>;
2527
2530
  }>;
2528
2531
  /**
@@ -2530,15 +2533,15 @@ declare class UserController {
2530
2533
  * Validates email, sends verification code, and stores intent in cache.
2531
2534
  */
2532
2535
  readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
2533
- query: alepha1.TObject<{
2534
- userRealmName: alepha1.TOptional<alepha1.TString>;
2536
+ query: alepha23.TObject<{
2537
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2535
2538
  }>;
2536
- body: alepha1.TObject<{
2537
- email: alepha1.TString;
2539
+ body: alepha23.TObject<{
2540
+ email: alepha23.TString;
2538
2541
  }>;
2539
- response: alepha1.TObject<{
2540
- intentId: alepha1.TString;
2541
- expiresAt: alepha1.TString;
2542
+ response: alepha23.TObject<{
2543
+ intentId: alepha23.TString;
2544
+ expiresAt: alepha23.TString;
2542
2545
  }>;
2543
2546
  }>;
2544
2547
  /**
@@ -2546,61 +2549,61 @@ declare class UserController {
2546
2549
  * Validates verification code, updates password, and invalidates sessions.
2547
2550
  */
2548
2551
  readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
2549
- body: alepha1.TObject<{
2550
- intentId: alepha1.TString;
2551
- code: alepha1.TString;
2552
- newPassword: alepha1.TString;
2552
+ body: alepha23.TObject<{
2553
+ intentId: alepha23.TString;
2554
+ code: alepha23.TString;
2555
+ newPassword: alepha23.TString;
2553
2556
  }>;
2554
- response: alepha1.TObject<{
2555
- ok: alepha1.TBoolean;
2556
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
2557
- count: alepha1.TOptional<alepha1.TNumber>;
2557
+ response: alepha23.TObject<{
2558
+ ok: alepha23.TBoolean;
2559
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
2560
+ count: alepha23.TOptional<alepha23.TNumber>;
2558
2561
  }>;
2559
2562
  }>;
2560
2563
  /**
2561
2564
  * @deprecated Use createPasswordResetIntent instead
2562
2565
  */
2563
2566
  requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
2564
- query: alepha1.TObject<{
2565
- userRealmName: alepha1.TOptional<alepha1.TString>;
2567
+ query: alepha23.TObject<{
2568
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2566
2569
  }>;
2567
- body: alepha1.TObject<{
2568
- email: alepha1.TString;
2570
+ body: alepha23.TObject<{
2571
+ email: alepha23.TString;
2569
2572
  }>;
2570
- response: alepha1.TObject<{
2571
- success: alepha1.TBoolean;
2572
- message: alepha1.TString;
2573
+ response: alepha23.TObject<{
2574
+ success: alepha23.TBoolean;
2575
+ message: alepha23.TString;
2573
2576
  }>;
2574
2577
  }>;
2575
2578
  /**
2576
2579
  * @deprecated Use completePasswordReset instead
2577
2580
  */
2578
2581
  validateResetToken: alepha_server0.ActionPrimitiveFn<{
2579
- query: alepha1.TObject<{
2580
- email: alepha1.TString;
2581
- token: alepha1.TString;
2582
- userRealmName: alepha1.TOptional<alepha1.TString>;
2582
+ query: alepha23.TObject<{
2583
+ email: alepha23.TString;
2584
+ token: alepha23.TString;
2585
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2583
2586
  }>;
2584
- response: alepha1.TObject<{
2585
- valid: alepha1.TBoolean;
2586
- email: alepha1.TOptional<alepha1.TString>;
2587
+ response: alepha23.TObject<{
2588
+ valid: alepha23.TBoolean;
2589
+ email: alepha23.TOptional<alepha23.TString>;
2587
2590
  }>;
2588
2591
  }>;
2589
2592
  /**
2590
2593
  * @deprecated Use completePasswordReset instead
2591
2594
  */
2592
2595
  resetPassword: alepha_server0.ActionPrimitiveFn<{
2593
- query: alepha1.TObject<{
2594
- userRealmName: alepha1.TOptional<alepha1.TString>;
2596
+ query: alepha23.TObject<{
2597
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2595
2598
  }>;
2596
- body: alepha1.TObject<{
2597
- email: alepha1.TString;
2598
- token: alepha1.TString;
2599
- newPassword: alepha1.TString;
2599
+ body: alepha23.TObject<{
2600
+ email: alepha23.TString;
2601
+ token: alepha23.TString;
2602
+ newPassword: alepha23.TString;
2600
2603
  }>;
2601
- response: alepha1.TObject<{
2602
- success: alepha1.TBoolean;
2603
- message: alepha1.TString;
2604
+ response: alepha23.TObject<{
2605
+ success: alepha23.TBoolean;
2606
+ message: alepha23.TString;
2604
2607
  }>;
2605
2608
  }>;
2606
2609
  /**
@@ -2610,17 +2613,17 @@ declare class UserController {
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
2615
  requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
2613
- query: alepha1.TObject<{
2614
- userRealmName: alepha1.TOptional<alepha1.TString>;
2615
- method: alepha1.TOptional<alepha1.TUnsafe<"link" | "code">>;
2616
- verifyUrl: alepha1.TOptional<alepha1.TString>;
2616
+ query: alepha23.TObject<{
2617
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2618
+ method: alepha23.TOptional<alepha23.TUnsafe<"link" | "code">>;
2619
+ verifyUrl: alepha23.TOptional<alepha23.TString>;
2617
2620
  }>;
2618
- body: alepha1.TObject<{
2619
- email: alepha1.TString;
2621
+ body: alepha23.TObject<{
2622
+ email: alepha23.TString;
2620
2623
  }>;
2621
- response: alepha1.TObject<{
2622
- success: alepha1.TBoolean;
2623
- message: alepha1.TString;
2624
+ response: alepha23.TObject<{
2625
+ success: alepha23.TBoolean;
2626
+ message: alepha23.TString;
2624
2627
  }>;
2625
2628
  }>;
2626
2629
  /**
@@ -2628,28 +2631,28 @@ declare class UserController {
2628
2631
  * Updates the user's emailVerified status.
2629
2632
  */
2630
2633
  verifyEmail: alepha_server0.ActionPrimitiveFn<{
2631
- query: alepha1.TObject<{
2632
- userRealmName: alepha1.TOptional<alepha1.TString>;
2634
+ query: alepha23.TObject<{
2635
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2633
2636
  }>;
2634
- body: alepha1.TObject<{
2635
- email: alepha1.TString;
2636
- token: alepha1.TString;
2637
+ body: alepha23.TObject<{
2638
+ email: alepha23.TString;
2639
+ token: alepha23.TString;
2637
2640
  }>;
2638
- response: alepha1.TObject<{
2639
- success: alepha1.TBoolean;
2640
- message: alepha1.TString;
2641
+ response: alepha23.TObject<{
2642
+ success: alepha23.TBoolean;
2643
+ message: alepha23.TString;
2641
2644
  }>;
2642
2645
  }>;
2643
2646
  /**
2644
2647
  * Check if an email is verified.
2645
2648
  */
2646
2649
  checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
2647
- query: alepha1.TObject<{
2648
- email: alepha1.TString;
2649
- userRealmName: alepha1.TOptional<alepha1.TString>;
2650
+ query: alepha23.TObject<{
2651
+ email: alepha23.TString;
2652
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2650
2653
  }>;
2651
- response: alepha1.TObject<{
2652
- verified: alepha1.TBoolean;
2654
+ response: alepha23.TObject<{
2655
+ verified: alepha23.TBoolean;
2653
2656
  }>;
2654
2657
  }>;
2655
2658
  }
@@ -2668,165 +2671,165 @@ declare class UserRealmController {
2668
2671
  * This endpoint is not exposed in the API documentation.
2669
2672
  */
2670
2673
  readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
2671
- query: alepha1.TObject<{
2672
- userRealmName: alepha1.TOptional<alepha1.TString>;
2674
+ query: alepha23.TObject<{
2675
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2673
2676
  }>;
2674
- response: alepha1.TObject<{
2675
- settings: alepha1.TObject<{
2676
- displayName: alepha1.TOptional<alepha1.TString>;
2677
- description: alepha1.TOptional<alepha1.TString>;
2678
- logoUrl: alepha1.TOptional<alepha1.TString>;
2679
- registrationAllowed: alepha1.TBoolean;
2680
- emailEnabled: alepha1.TBoolean;
2681
- emailRequired: alepha1.TBoolean;
2682
- usernameEnabled: alepha1.TBoolean;
2683
- usernameRequired: alepha1.TBoolean;
2684
- phoneEnabled: alepha1.TBoolean;
2685
- phoneRequired: alepha1.TBoolean;
2686
- verifyEmailRequired: alepha1.TBoolean;
2687
- verifyPhoneRequired: alepha1.TBoolean;
2688
- firstNameLastNameEnabled: alepha1.TBoolean;
2689
- firstNameLastNameRequired: alepha1.TBoolean;
2690
- resetPasswordAllowed: alepha1.TBoolean;
2691
- passwordPolicy: alepha1.TObject<{
2692
- minLength: alepha1.TInteger;
2693
- requireUppercase: alepha1.TBoolean;
2694
- requireLowercase: alepha1.TBoolean;
2695
- requireNumbers: alepha1.TBoolean;
2696
- requireSpecialCharacters: alepha1.TBoolean;
2677
+ response: alepha23.TObject<{
2678
+ settings: alepha23.TObject<{
2679
+ displayName: alepha23.TOptional<alepha23.TString>;
2680
+ description: alepha23.TOptional<alepha23.TString>;
2681
+ logoUrl: alepha23.TOptional<alepha23.TString>;
2682
+ registrationAllowed: alepha23.TBoolean;
2683
+ emailEnabled: alepha23.TBoolean;
2684
+ emailRequired: alepha23.TBoolean;
2685
+ usernameEnabled: alepha23.TBoolean;
2686
+ usernameRequired: alepha23.TBoolean;
2687
+ phoneEnabled: alepha23.TBoolean;
2688
+ phoneRequired: alepha23.TBoolean;
2689
+ verifyEmailRequired: alepha23.TBoolean;
2690
+ verifyPhoneRequired: alepha23.TBoolean;
2691
+ firstNameLastNameEnabled: alepha23.TBoolean;
2692
+ firstNameLastNameRequired: alepha23.TBoolean;
2693
+ resetPasswordAllowed: alepha23.TBoolean;
2694
+ passwordPolicy: alepha23.TObject<{
2695
+ minLength: alepha23.TInteger;
2696
+ requireUppercase: alepha23.TBoolean;
2697
+ requireLowercase: alepha23.TBoolean;
2698
+ requireNumbers: alepha23.TBoolean;
2699
+ requireSpecialCharacters: alepha23.TBoolean;
2697
2700
  }>;
2698
2701
  }>;
2699
- realmName: alepha1.TString;
2700
- authenticationMethods: alepha1.TArray<alepha1.TObject<{
2701
- name: alepha1.TString;
2702
- type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2702
+ realmName: alepha23.TString;
2703
+ authenticationMethods: alepha23.TArray<alepha23.TObject<{
2704
+ name: alepha23.TString;
2705
+ type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2703
2706
  }>>;
2704
2707
  }>;
2705
2708
  }>;
2706
2709
  readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
2707
- query: alepha1.TObject<{
2708
- userRealmName: alepha1.TOptional<alepha1.TString>;
2710
+ query: alepha23.TObject<{
2711
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2709
2712
  }>;
2710
- body: alepha1.TObject<{
2711
- username: alepha1.TString;
2713
+ body: alepha23.TObject<{
2714
+ username: alepha23.TString;
2712
2715
  }>;
2713
- response: alepha1.TObject<{
2714
- available: alepha1.TBoolean;
2716
+ response: alepha23.TObject<{
2717
+ available: alepha23.TBoolean;
2715
2718
  }>;
2716
2719
  }>;
2717
2720
  }
2718
2721
  //#endregion
2719
2722
  //#region ../../src/api/users/schemas/identityResourceSchema.d.ts
2720
- declare const identityResourceSchema: alepha1.TObject<{
2721
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2722
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2723
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2724
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2725
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2726
- provider: alepha1.TString;
2727
- providerUserId: alepha1.TOptional<alepha1.TString>;
2728
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2723
+ declare const identityResourceSchema: alepha23.TObject<{
2724
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2725
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2726
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2727
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2728
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2729
+ provider: alepha23.TString;
2730
+ providerUserId: alepha23.TOptional<alepha23.TString>;
2731
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2729
2732
  }>;
2730
2733
  type IdentityResource = Static<typeof identityResourceSchema>;
2731
2734
  //#endregion
2732
2735
  //#region ../../src/api/users/schemas/loginSchema.d.ts
2733
- declare const loginSchema: alepha1.TObject<{
2734
- username: alepha1.TString;
2735
- password: alepha1.TString;
2736
+ declare const loginSchema: alepha23.TObject<{
2737
+ username: alepha23.TString;
2738
+ password: alepha23.TString;
2736
2739
  }>;
2737
2740
  type LoginInput = Static<typeof loginSchema>;
2738
2741
  //#endregion
2739
2742
  //#region ../../src/api/users/schemas/registerSchema.d.ts
2740
- declare const registerSchema: alepha1.TObject<{
2741
- username: alepha1.TString;
2742
- email: alepha1.TString;
2743
- password: alepha1.TString;
2744
- confirmPassword: alepha1.TString;
2745
- firstName: alepha1.TOptional<alepha1.TString>;
2746
- lastName: alepha1.TOptional<alepha1.TString>;
2743
+ declare const registerSchema: alepha23.TObject<{
2744
+ username: alepha23.TString;
2745
+ email: alepha23.TString;
2746
+ password: alepha23.TString;
2747
+ confirmPassword: alepha23.TString;
2748
+ firstName: alepha23.TOptional<alepha23.TString>;
2749
+ lastName: alepha23.TOptional<alepha23.TString>;
2747
2750
  }>;
2748
2751
  type RegisterInput = Static<typeof registerSchema>;
2749
2752
  //#endregion
2750
2753
  //#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
2751
- declare const resetPasswordRequestSchema: alepha1.TObject<{
2752
- email: alepha1.TString;
2754
+ declare const resetPasswordRequestSchema: alepha23.TObject<{
2755
+ email: alepha23.TString;
2753
2756
  }>;
2754
- declare const resetPasswordSchema: alepha1.TObject<{
2755
- token: alepha1.TString;
2756
- password: alepha1.TString;
2757
- confirmPassword: alepha1.TString;
2757
+ declare const resetPasswordSchema: alepha23.TObject<{
2758
+ token: alepha23.TString;
2759
+ password: alepha23.TString;
2760
+ confirmPassword: alepha23.TString;
2758
2761
  }>;
2759
2762
  type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
2760
2763
  type ResetPasswordInput = Static<typeof resetPasswordSchema>;
2761
2764
  //#endregion
2762
2765
  //#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
2763
- declare const sessionResourceSchema: alepha1.TObject<{
2764
- id: alepha1.TString;
2765
- version: alepha1.TNumber;
2766
- createdAt: alepha1.TString;
2767
- updatedAt: alepha1.TString;
2768
- refreshToken: alepha1.TString;
2769
- userId: alepha1.TString;
2770
- expiresAt: alepha1.TString;
2771
- ip: alepha1.TOptional<alepha1.TString>;
2772
- userAgent: alepha1.TOptional<alepha1.TObject<{
2773
- os: alepha1.TString;
2774
- browser: alepha1.TString;
2775
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2766
+ declare const sessionResourceSchema: alepha23.TObject<{
2767
+ id: alepha23.TString;
2768
+ version: alepha23.TNumber;
2769
+ createdAt: alepha23.TString;
2770
+ updatedAt: alepha23.TString;
2771
+ refreshToken: alepha23.TString;
2772
+ userId: alepha23.TString;
2773
+ expiresAt: alepha23.TString;
2774
+ ip: alepha23.TOptional<alepha23.TString>;
2775
+ userAgent: alepha23.TOptional<alepha23.TObject<{
2776
+ os: alepha23.TString;
2777
+ browser: alepha23.TString;
2778
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2776
2779
  }>>;
2777
2780
  }>;
2778
2781
  type SessionResource = Static<typeof sessionResourceSchema>;
2779
2782
  //#endregion
2780
2783
  //#region ../../src/api/users/schemas/userRealmConfigSchema.d.ts
2781
- declare const userRealmConfigSchema: alepha1.TObject<{
2782
- settings: alepha1.TObject<{
2783
- displayName: alepha1.TOptional<alepha1.TString>;
2784
- description: alepha1.TOptional<alepha1.TString>;
2785
- logoUrl: alepha1.TOptional<alepha1.TString>;
2786
- registrationAllowed: alepha1.TBoolean;
2787
- emailEnabled: alepha1.TBoolean;
2788
- emailRequired: alepha1.TBoolean;
2789
- usernameEnabled: alepha1.TBoolean;
2790
- usernameRequired: alepha1.TBoolean;
2791
- phoneEnabled: alepha1.TBoolean;
2792
- phoneRequired: alepha1.TBoolean;
2793
- verifyEmailRequired: alepha1.TBoolean;
2794
- verifyPhoneRequired: alepha1.TBoolean;
2795
- firstNameLastNameEnabled: alepha1.TBoolean;
2796
- firstNameLastNameRequired: alepha1.TBoolean;
2797
- resetPasswordAllowed: alepha1.TBoolean;
2798
- passwordPolicy: alepha1.TObject<{
2799
- minLength: alepha1.TInteger;
2800
- requireUppercase: alepha1.TBoolean;
2801
- requireLowercase: alepha1.TBoolean;
2802
- requireNumbers: alepha1.TBoolean;
2803
- requireSpecialCharacters: alepha1.TBoolean;
2784
+ declare const userRealmConfigSchema: alepha23.TObject<{
2785
+ settings: alepha23.TObject<{
2786
+ displayName: alepha23.TOptional<alepha23.TString>;
2787
+ description: alepha23.TOptional<alepha23.TString>;
2788
+ logoUrl: alepha23.TOptional<alepha23.TString>;
2789
+ registrationAllowed: alepha23.TBoolean;
2790
+ emailEnabled: alepha23.TBoolean;
2791
+ emailRequired: alepha23.TBoolean;
2792
+ usernameEnabled: alepha23.TBoolean;
2793
+ usernameRequired: alepha23.TBoolean;
2794
+ phoneEnabled: alepha23.TBoolean;
2795
+ phoneRequired: alepha23.TBoolean;
2796
+ verifyEmailRequired: alepha23.TBoolean;
2797
+ verifyPhoneRequired: alepha23.TBoolean;
2798
+ firstNameLastNameEnabled: alepha23.TBoolean;
2799
+ firstNameLastNameRequired: alepha23.TBoolean;
2800
+ resetPasswordAllowed: alepha23.TBoolean;
2801
+ passwordPolicy: alepha23.TObject<{
2802
+ minLength: alepha23.TInteger;
2803
+ requireUppercase: alepha23.TBoolean;
2804
+ requireLowercase: alepha23.TBoolean;
2805
+ requireNumbers: alepha23.TBoolean;
2806
+ requireSpecialCharacters: alepha23.TBoolean;
2804
2807
  }>;
2805
2808
  }>;
2806
- realmName: alepha1.TString;
2807
- authenticationMethods: alepha1.TArray<alepha1.TObject<{
2808
- name: alepha1.TString;
2809
- type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2809
+ realmName: alepha23.TString;
2810
+ authenticationMethods: alepha23.TArray<alepha23.TObject<{
2811
+ name: alepha23.TString;
2812
+ type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2810
2813
  }>>;
2811
2814
  }>;
2812
2815
  type UserRealmConfig = Static<typeof userRealmConfigSchema>;
2813
2816
  //#endregion
2814
2817
  //#region ../../src/api/users/schemas/userResourceSchema.d.ts
2815
- declare const userResourceSchema: alepha1.TObject<{
2816
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2817
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2818
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2819
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2820
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2821
- username: alepha1.TOptional<alepha1.TString>;
2822
- email: alepha1.TOptional<alepha1.TString>;
2823
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2824
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2825
- firstName: alepha1.TOptional<alepha1.TString>;
2826
- lastName: alepha1.TOptional<alepha1.TString>;
2827
- picture: alepha1.TOptional<alepha1.TString>;
2828
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2829
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2818
+ declare const userResourceSchema: alepha23.TObject<{
2819
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2820
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2821
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2822
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2823
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2824
+ username: alepha23.TOptional<alepha23.TString>;
2825
+ email: alepha23.TOptional<alepha23.TString>;
2826
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2827
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2828
+ firstName: alepha23.TOptional<alepha23.TString>;
2829
+ lastName: alepha23.TOptional<alepha23.TString>;
2830
+ picture: alepha23.TOptional<alepha23.TString>;
2831
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2832
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2830
2833
  }>;
2831
2834
  type UserResource = Static<typeof userResourceSchema>;
2832
2835
  //#endregion
@@ -2839,47 +2842,47 @@ declare class SessionService {
2839
2842
  protected readonly log: alepha_logger1.Logger;
2840
2843
  protected readonly userRealmProvider: UserRealmProvider;
2841
2844
  protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
2842
- users(userRealmName?: string): Repository$1<alepha1.TObject<{
2843
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2844
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2845
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2846
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2847
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2848
- username: alepha1.TOptional<alepha1.TString>;
2849
- email: alepha1.TOptional<alepha1.TString>;
2850
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2851
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2852
- firstName: alepha1.TOptional<alepha1.TString>;
2853
- lastName: alepha1.TOptional<alepha1.TString>;
2854
- picture: alepha1.TOptional<alepha1.TString>;
2855
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2856
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2845
+ users(userRealmName?: string): Repository$1<alepha23.TObject<{
2846
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2847
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2848
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2849
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2850
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2851
+ username: alepha23.TOptional<alepha23.TString>;
2852
+ email: alepha23.TOptional<alepha23.TString>;
2853
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2854
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2855
+ firstName: alepha23.TOptional<alepha23.TString>;
2856
+ lastName: alepha23.TOptional<alepha23.TString>;
2857
+ picture: alepha23.TOptional<alepha23.TString>;
2858
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2859
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2857
2860
  }>>;
2858
- sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
2859
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2860
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2861
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2862
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2863
- refreshToken: alepha1.TString;
2864
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2865
- expiresAt: alepha1.TString;
2866
- ip: alepha1.TOptional<alepha1.TString>;
2867
- userAgent: alepha1.TOptional<alepha1.TObject<{
2868
- os: alepha1.TString;
2869
- browser: alepha1.TString;
2870
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2861
+ sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
2862
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2863
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2864
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2865
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2866
+ refreshToken: alepha23.TString;
2867
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2868
+ expiresAt: alepha23.TString;
2869
+ ip: alepha23.TOptional<alepha23.TString>;
2870
+ userAgent: alepha23.TOptional<alepha23.TObject<{
2871
+ os: alepha23.TString;
2872
+ browser: alepha23.TString;
2873
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2871
2874
  }>>;
2872
2875
  }>>;
2873
- identities(userRealmName?: string): Repository$1<alepha1.TObject<{
2874
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2875
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2876
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2877
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2878
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2879
- password: alepha1.TOptional<alepha1.TString>;
2880
- provider: alepha1.TString;
2881
- providerUserId: alepha1.TOptional<alepha1.TString>;
2882
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2876
+ identities(userRealmName?: string): Repository$1<alepha23.TObject<{
2877
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2878
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2879
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2880
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2881
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2882
+ password: alepha23.TOptional<alepha23.TString>;
2883
+ provider: alepha23.TString;
2884
+ providerUserId: alepha23.TOptional<alepha23.TString>;
2885
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2883
2886
  }>>;
2884
2887
  /**
2885
2888
  * Random delay to prevent timing attacks (50-200ms)
@@ -2895,36 +2898,36 @@ declare class SessionService {
2895
2898
  sessionId: string;
2896
2899
  }>;
2897
2900
  refreshSession(refreshToken: string, userRealmName?: string): Promise<{
2898
- user: PgStatic<alepha1.TObject<{
2899
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2900
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2901
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2902
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2903
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2904
- username: alepha1.TOptional<alepha1.TString>;
2905
- email: alepha1.TOptional<alepha1.TString>;
2906
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2907
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2908
- firstName: alepha1.TOptional<alepha1.TString>;
2909
- lastName: alepha1.TOptional<alepha1.TString>;
2910
- picture: alepha1.TOptional<alepha1.TString>;
2911
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2912
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2913
- }>, PgRelationMap<alepha1.TObject<{
2914
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2915
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2916
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2917
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2918
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2919
- username: alepha1.TOptional<alepha1.TString>;
2920
- email: alepha1.TOptional<alepha1.TString>;
2921
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2922
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2923
- firstName: alepha1.TOptional<alepha1.TString>;
2924
- lastName: alepha1.TOptional<alepha1.TString>;
2925
- picture: alepha1.TOptional<alepha1.TString>;
2926
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2927
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2901
+ user: PgStatic<alepha23.TObject<{
2902
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2903
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2904
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2905
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2906
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2907
+ username: alepha23.TOptional<alepha23.TString>;
2908
+ email: alepha23.TOptional<alepha23.TString>;
2909
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2910
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2911
+ firstName: alepha23.TOptional<alepha23.TString>;
2912
+ lastName: alepha23.TOptional<alepha23.TString>;
2913
+ picture: alepha23.TOptional<alepha23.TString>;
2914
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2915
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2916
+ }>, PgRelationMap<alepha23.TObject<{
2917
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2918
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2919
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2920
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2921
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2922
+ username: alepha23.TOptional<alepha23.TString>;
2923
+ email: alepha23.TOptional<alepha23.TString>;
2924
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2925
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2926
+ firstName: alepha23.TOptional<alepha23.TString>;
2927
+ lastName: alepha23.TOptional<alepha23.TString>;
2928
+ picture: alepha23.TOptional<alepha23.TString>;
2929
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2930
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2928
2931
  }>>>;
2929
2932
  expiresIn: number;
2930
2933
  sessionId: string;
@@ -2986,7 +2989,7 @@ declare class SessionService {
2986
2989
  *
2987
2990
  * @module alepha.api.users
2988
2991
  */
2989
- declare const AlephaApiUsers: alepha1.Service<alepha1.Module>;
2992
+ declare const AlephaApiUsers: alepha23.Service<alepha23.Module>;
2990
2993
  //#endregion
2991
2994
  export { $userRealm, AlephaApiUsers, CompletePasswordResetRequest, CompleteRegistrationRequest, CreateUser, CredentialService, DEFAULT_USER_REALM_NAME, IdentityController, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, LoginInput, PasswordResetIntentResponse, RealmAuthSettings, RegisterInput, RegistrationIntentResponse, RegistrationService, ResetPasswordInput, ResetPasswordRequest, SessionController, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserController, UserEntity, UserQuery, UserRealm, UserRealmConfig, UserRealmController, UserRealmOptions, UserRealmPrimitive, UserRealmProvider, UserRealmRepositories, UserResource, UserService, completePasswordResetRequestSchema, completeRegistrationRequestSchema, createUserSchema, identities, identityQuerySchema, identityResourceSchema, loginSchema, passwordResetIntentResponseSchema, realmAuthSettingsAtom, registerSchema, registrationIntentResponseSchema, resetPasswordRequestSchema, resetPasswordSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userRealmConfigSchema, userResourceSchema, users };
2992
2995
  //# sourceMappingURL=index.d.ts.map