alepha 0.13.6 → 0.13.7

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 (134) hide show
  1. package/dist/api-audits/index.browser.js +116 -0
  2. package/dist/api-audits/index.browser.js.map +1 -0
  3. package/dist/api-audits/index.d.ts +1194 -0
  4. package/dist/api-audits/index.js +674 -0
  5. package/dist/api-audits/index.js.map +1 -0
  6. package/dist/api-notifications/index.d.ts +147 -147
  7. package/dist/api-parameters/index.browser.js +36 -5
  8. package/dist/api-parameters/index.browser.js.map +1 -1
  9. package/dist/api-parameters/index.d.ts +711 -33
  10. package/dist/api-parameters/index.js +831 -17
  11. package/dist/api-parameters/index.js.map +1 -1
  12. package/dist/api-users/index.d.ts +793 -780
  13. package/dist/api-users/index.js +699 -19
  14. package/dist/api-users/index.js.map +1 -1
  15. package/dist/api-verifications/index.js +2 -1
  16. package/dist/api-verifications/index.js.map +1 -1
  17. package/dist/bin/index.js +1 -0
  18. package/dist/bin/index.js.map +1 -1
  19. package/dist/cli/index.d.ts +85 -31
  20. package/dist/cli/index.js +205 -33
  21. package/dist/cli/index.js.map +1 -1
  22. package/dist/command/index.d.ts +67 -6
  23. package/dist/command/index.js +30 -3
  24. package/dist/command/index.js.map +1 -1
  25. package/dist/core/index.browser.js +241 -61
  26. package/dist/core/index.browser.js.map +1 -1
  27. package/dist/core/index.d.ts +170 -90
  28. package/dist/core/index.js +264 -67
  29. package/dist/core/index.js.map +1 -1
  30. package/dist/core/index.native.js +248 -65
  31. package/dist/core/index.native.js.map +1 -1
  32. package/dist/email/index.js +15 -10554
  33. package/dist/email/index.js.map +1 -1
  34. package/dist/logger/index.d.ts +4 -4
  35. package/dist/logger/index.js +77 -72
  36. package/dist/logger/index.js.map +1 -1
  37. package/dist/orm/index.d.ts +5 -1
  38. package/dist/orm/index.js +24 -7
  39. package/dist/orm/index.js.map +1 -1
  40. package/dist/queue/index.d.ts +4 -4
  41. package/dist/scheduler/index.d.ts +6 -6
  42. package/dist/server/index.d.ts +10 -1
  43. package/dist/server/index.js +20 -6
  44. package/dist/server/index.js.map +1 -1
  45. package/dist/server-auth/index.d.ts +163 -152
  46. package/dist/server-auth/index.js +40 -10
  47. package/dist/server-auth/index.js.map +1 -1
  48. package/dist/server-cookies/index.js +5 -1
  49. package/dist/server-cookies/index.js.map +1 -1
  50. package/dist/server-links/index.d.ts +33 -33
  51. package/dist/server-security/index.d.ts +9 -9
  52. package/dist/thread/index.js +2 -2
  53. package/dist/thread/index.js.map +1 -1
  54. package/dist/vite/index.d.ts +2 -2
  55. package/dist/vite/index.js +102 -45
  56. package/dist/vite/index.js.map +1 -1
  57. package/dist/websocket/index.browser.js +3 -3
  58. package/dist/websocket/index.browser.js.map +1 -1
  59. package/dist/websocket/index.js +4 -4
  60. package/dist/websocket/index.js.map +1 -1
  61. package/package.json +14 -9
  62. package/src/api-audits/controllers/AuditController.ts +186 -0
  63. package/src/api-audits/entities/audits.ts +132 -0
  64. package/src/api-audits/index.browser.ts +18 -0
  65. package/src/api-audits/index.ts +58 -0
  66. package/src/api-audits/primitives/$audit.ts +159 -0
  67. package/src/api-audits/schemas/auditQuerySchema.ts +23 -0
  68. package/src/api-audits/schemas/auditResourceSchema.ts +9 -0
  69. package/src/api-audits/schemas/createAuditSchema.ts +27 -0
  70. package/src/api-audits/services/AuditService.ts +412 -0
  71. package/src/api-parameters/controllers/ConfigController.ts +324 -0
  72. package/src/api-parameters/entities/parameters.ts +93 -10
  73. package/src/api-parameters/index.ts +43 -4
  74. package/src/api-parameters/primitives/$config.ts +291 -19
  75. package/src/api-parameters/schedulers/ConfigActivationScheduler.ts +30 -0
  76. package/src/api-parameters/services/ConfigStore.ts +491 -0
  77. package/src/api-users/atoms/realmAuthSettingsAtom.ts +19 -0
  78. package/src/api-users/controllers/UserRealmController.ts +0 -2
  79. package/src/api-users/index.ts +2 -0
  80. package/src/api-users/primitives/$userRealm.ts +18 -3
  81. package/src/api-users/providers/UserRealmProvider.ts +6 -3
  82. package/src/api-users/services/RegistrationService.ts +2 -1
  83. package/src/api-users/services/SessionService.ts +4 -0
  84. package/src/api-users/services/UserService.ts +3 -0
  85. package/src/api-verifications/index.ts +7 -1
  86. package/src/bin/index.ts +1 -0
  87. package/src/cli/assets/biomeJson.ts +1 -1
  88. package/src/cli/assets/dummySpecTs.ts +7 -0
  89. package/src/cli/assets/editorconfig.ts +13 -0
  90. package/src/cli/assets/mainTs.ts +14 -0
  91. package/src/cli/commands/BiomeCommands.ts +2 -0
  92. package/src/cli/commands/CoreCommands.ts +28 -9
  93. package/src/cli/commands/VerifyCommands.ts +2 -1
  94. package/src/cli/commands/ViteCommands.ts +8 -9
  95. package/src/cli/services/AlephaCliUtils.ts +214 -23
  96. package/src/command/helpers/Asker.ts +0 -1
  97. package/src/command/primitives/$command.ts +67 -0
  98. package/src/command/providers/CliProvider.ts +39 -8
  99. package/src/core/Alepha.ts +40 -30
  100. package/src/core/helpers/jsonSchemaToTypeBox.ts +307 -0
  101. package/src/core/index.shared.ts +1 -0
  102. package/src/core/index.ts +30 -3
  103. package/src/core/providers/EventManager.ts +1 -1
  104. package/src/core/providers/StateManager.ts +23 -12
  105. package/src/core/providers/TypeProvider.ts +26 -34
  106. package/src/logger/index.ts +8 -6
  107. package/src/logger/primitives/$logger.ts +1 -1
  108. package/src/logger/providers/{SimpleFormatterProvider.ts → PrettyFormatterProvider.ts} +10 -1
  109. package/src/orm/index.ts +6 -0
  110. package/src/orm/services/PgRelationManager.ts +2 -2
  111. package/src/orm/services/PostgresModelBuilder.ts +11 -7
  112. package/src/orm/services/Repository.ts +16 -7
  113. package/src/orm/services/SqliteModelBuilder.ts +10 -0
  114. package/src/server/index.ts +6 -0
  115. package/src/server/primitives/$action.ts +10 -1
  116. package/src/server/providers/ServerBodyParserProvider.ts +11 -5
  117. package/src/server/providers/ServerRouterProvider.ts +13 -7
  118. package/src/server-auth/primitives/$auth.ts +7 -0
  119. package/src/server-auth/providers/ServerAuthProvider.ts +51 -8
  120. package/src/server-cookies/index.ts +2 -1
  121. package/src/thread/primitives/$thread.ts +2 -2
  122. package/src/vite/index.ts +0 -2
  123. package/src/vite/tasks/buildServer.ts +3 -4
  124. package/src/vite/tasks/generateCloudflare.ts +35 -19
  125. package/src/vite/tasks/generateDocker.ts +18 -4
  126. package/src/vite/tasks/generateSitemap.ts +5 -7
  127. package/src/vite/tasks/generateVercel.ts +76 -41
  128. package/src/vite/tasks/runAlepha.ts +16 -1
  129. package/src/websocket/providers/NodeWebSocketServerProvider.ts +3 -11
  130. package/src/websocket/services/WebSocketClient.ts +3 -3
  131. package/dist/cli/dist-BlfFtOk2.js +0 -2770
  132. package/dist/cli/dist-BlfFtOk2.js.map +0 -1
  133. package/src/api-parameters/controllers/ParameterController.ts +0 -45
  134. package/src/api-parameters/services/ParameterStore.ts +0 -23
@@ -1,11 +1,11 @@
1
- import * as alepha1 from "alepha";
2
- import { Alepha, AlephaError, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
1
+ import * as alepha23 from "alepha";
2
+ import { Alepha, AlephaError, KIND, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
3
  import * as alepha_api_notifications0 from "alepha/api/notifications";
4
4
  import { VerificationController } from "alepha/api/verifications";
5
- import * as alepha_orm198 from "alepha/orm";
5
+ import * as alepha_orm204 from "alepha/orm";
6
6
  import { Page as Page$1, Repository } from "alepha/orm";
7
- import * as alepha_server14 from "alepha/server";
8
- import * as alepha_logger0 from "alepha/logger";
7
+ import * as alepha_server0 from "alepha/server";
8
+ import * as alepha_logger1 from "alepha/logger";
9
9
  import { UserRealmOptions as UserRealmOptions$1 } from "alepha/api/users";
10
10
  import * as alepha_bucket0 from "alepha/bucket";
11
11
  import * as alepha_cache0 from "alepha/cache";
@@ -28,78 +28,81 @@ import "postgres";
28
28
  import "drizzle-orm/sqlite-core";
29
29
 
30
30
  //#region ../../src/api-users/atoms/realmAuthSettingsAtom.d.ts
31
- declare const realmAuthSettingsAtom: alepha1.Atom<alepha1.TObject<{
32
- registrationAllowed: alepha1.TBoolean;
33
- emailEnabled: alepha1.TBoolean;
34
- emailRequired: alepha1.TBoolean;
35
- usernameEnabled: alepha1.TBoolean;
36
- usernameRequired: alepha1.TBoolean;
37
- phoneEnabled: alepha1.TBoolean;
38
- phoneRequired: alepha1.TBoolean;
39
- verifyEmailRequired: alepha1.TBoolean;
40
- verifyPhoneRequired: alepha1.TBoolean;
41
- firstNameLastNameEnabled: alepha1.TBoolean;
42
- firstNameLastNameRequired: alepha1.TBoolean;
43
- resetPasswordAllowed: alepha1.TBoolean;
44
- passwordPolicy: alepha1.TObject<{
45
- minLength: alepha1.TInteger;
46
- requireUppercase: alepha1.TBoolean;
47
- requireLowercase: alepha1.TBoolean;
48
- requireNumbers: alepha1.TBoolean;
49
- requireSpecialCharacters: alepha1.TBoolean;
31
+ declare const realmAuthSettingsAtom: alepha23.Atom<alepha23.TObject<{
32
+ displayName: alepha23.TOptional<alepha23.TString>;
33
+ description: alepha23.TOptional<alepha23.TString>;
34
+ logoUrl: alepha23.TOptional<alepha23.TString>;
35
+ registrationAllowed: alepha23.TBoolean;
36
+ emailEnabled: alepha23.TBoolean;
37
+ emailRequired: alepha23.TBoolean;
38
+ usernameEnabled: alepha23.TBoolean;
39
+ usernameRequired: alepha23.TBoolean;
40
+ phoneEnabled: alepha23.TBoolean;
41
+ phoneRequired: alepha23.TBoolean;
42
+ verifyEmailRequired: alepha23.TBoolean;
43
+ verifyPhoneRequired: alepha23.TBoolean;
44
+ firstNameLastNameEnabled: alepha23.TBoolean;
45
+ firstNameLastNameRequired: alepha23.TBoolean;
46
+ resetPasswordAllowed: alepha23.TBoolean;
47
+ passwordPolicy: alepha23.TObject<{
48
+ minLength: alepha23.TInteger;
49
+ requireUppercase: alepha23.TBoolean;
50
+ requireLowercase: alepha23.TBoolean;
51
+ requireNumbers: alepha23.TBoolean;
52
+ requireSpecialCharacters: alepha23.TBoolean;
50
53
  }>;
51
54
  }>, "alepha.api.users.realmAuthSettings">;
52
55
  type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
53
56
  //#endregion
54
57
  //#region ../../src/api-users/entities/identities.d.ts
55
- declare const identities: alepha_orm198.EntityPrimitive<alepha1.TObject<{
56
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
57
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
58
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
59
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
60
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
61
- password: alepha1.TOptional<alepha1.TString>;
62
- provider: alepha1.TString;
63
- providerUserId: alepha1.TOptional<alepha1.TString>;
64
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
58
+ declare const identities: alepha_orm204.EntityPrimitive<alepha23.TObject<{
59
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
60
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
61
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
62
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
63
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
64
+ password: alepha23.TOptional<alepha23.TString>;
65
+ provider: alepha23.TString;
66
+ providerUserId: alepha23.TOptional<alepha23.TString>;
67
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
65
68
  }>>;
66
69
  type IdentityEntity = Static<typeof identities.schema>;
67
70
  //#endregion
68
71
  //#region ../../src/api-users/entities/sessions.d.ts
69
- declare const sessions: alepha_orm198.EntityPrimitive<alepha1.TObject<{
70
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
71
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
72
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
73
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
74
- refreshToken: alepha1.TString;
75
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
76
- expiresAt: alepha1.TString;
77
- ip: alepha1.TOptional<alepha1.TString>;
78
- userAgent: alepha1.TOptional<alepha1.TObject<{
79
- os: alepha1.TString;
80
- browser: alepha1.TString;
81
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
72
+ declare const sessions: alepha_orm204.EntityPrimitive<alepha23.TObject<{
73
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
74
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
75
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
76
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
77
+ refreshToken: alepha23.TString;
78
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
79
+ expiresAt: alepha23.TString;
80
+ ip: alepha23.TOptional<alepha23.TString>;
81
+ userAgent: alepha23.TOptional<alepha23.TObject<{
82
+ os: alepha23.TString;
83
+ browser: alepha23.TString;
84
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
82
85
  }>>;
83
86
  }>>;
84
87
  type SessionEntity = Static<typeof sessions.schema>;
85
88
  //#endregion
86
89
  //#region ../../src/api-users/entities/users.d.ts
87
90
  declare const DEFAULT_USER_REALM_NAME = "default";
88
- declare const users: alepha_orm198.EntityPrimitive<alepha1.TObject<{
89
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
90
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
91
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
92
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
93
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
94
- username: alepha1.TOptional<alepha1.TString>;
95
- email: alepha1.TOptional<alepha1.TString>;
96
- phoneNumber: alepha1.TOptional<alepha1.TString>;
97
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
98
- firstName: alepha1.TOptional<alepha1.TString>;
99
- lastName: alepha1.TOptional<alepha1.TString>;
100
- picture: alepha1.TOptional<alepha1.TString>;
101
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
102
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
91
+ declare const users: alepha_orm204.EntityPrimitive<alepha23.TObject<{
92
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
93
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
94
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
95
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
96
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
97
+ username: alepha23.TOptional<alepha23.TString>;
98
+ email: alepha23.TOptional<alepha23.TString>;
99
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
100
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
101
+ firstName: alepha23.TOptional<alepha23.TString>;
102
+ lastName: alepha23.TOptional<alepha23.TString>;
103
+ picture: alepha23.TOptional<alepha23.TString>;
104
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
105
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
103
106
  }>>;
104
107
  type UserEntity = Static<typeof users.schema>;
105
108
  //#endregion
@@ -116,51 +119,51 @@ interface UserRealm {
116
119
  }
117
120
  declare class UserRealmProvider {
118
121
  protected readonly alepha: Alepha;
119
- protected readonly defaultIdentities: Repository<alepha1.TObject<{
120
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
121
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
122
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
123
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
124
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
125
- password: alepha1.TOptional<alepha1.TString>;
126
- provider: alepha1.TString;
127
- providerUserId: alepha1.TOptional<alepha1.TString>;
128
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
122
+ protected readonly defaultIdentities: Repository<alepha23.TObject<{
123
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
124
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
125
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
126
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
127
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
128
+ password: alepha23.TOptional<alepha23.TString>;
129
+ provider: alepha23.TString;
130
+ providerUserId: alepha23.TOptional<alepha23.TString>;
131
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
129
132
  }>>;
130
- protected readonly defaultSessions: Repository<alepha1.TObject<{
131
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
132
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
133
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
134
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
135
- refreshToken: alepha1.TString;
136
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
137
- expiresAt: alepha1.TString;
138
- ip: alepha1.TOptional<alepha1.TString>;
139
- userAgent: alepha1.TOptional<alepha1.TObject<{
140
- os: alepha1.TString;
141
- browser: alepha1.TString;
142
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
133
+ protected readonly defaultSessions: Repository<alepha23.TObject<{
134
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
135
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
136
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
137
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
138
+ refreshToken: alepha23.TString;
139
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
140
+ expiresAt: alepha23.TString;
141
+ ip: alepha23.TOptional<alepha23.TString>;
142
+ userAgent: alepha23.TOptional<alepha23.TObject<{
143
+ os: alepha23.TString;
144
+ browser: alepha23.TString;
145
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
143
146
  }>>;
144
147
  }>>;
145
- protected readonly defaultUsers: Repository<alepha1.TObject<{
146
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
147
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
148
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
149
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
150
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
151
- username: alepha1.TOptional<alepha1.TString>;
152
- email: alepha1.TOptional<alepha1.TString>;
153
- phoneNumber: alepha1.TOptional<alepha1.TString>;
154
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
155
- firstName: alepha1.TOptional<alepha1.TString>;
156
- lastName: alepha1.TOptional<alepha1.TString>;
157
- picture: alepha1.TOptional<alepha1.TString>;
158
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
159
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
148
+ protected readonly defaultUsers: Repository<alepha23.TObject<{
149
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
150
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
151
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
152
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
153
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
154
+ username: alepha23.TOptional<alepha23.TString>;
155
+ email: alepha23.TOptional<alepha23.TString>;
156
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
157
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
158
+ firstName: alepha23.TOptional<alepha23.TString>;
159
+ lastName: alepha23.TOptional<alepha23.TString>;
160
+ picture: alepha23.TOptional<alepha23.TString>;
161
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
162
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
160
163
  }>>;
161
164
  protected realms: Map<string, UserRealm>;
162
165
  avatars: alepha_bucket0.BucketPrimitive;
163
- protected readonly onConfigure: alepha1.HookPrimitive<"configure">;
166
+ protected readonly onConfigure: alepha23.HookPrimitive<"configure">;
164
167
  register(userRealmName: string, userRealmOptions?: UserRealmOptions$1): UserRealm;
165
168
  /**
166
169
  * Gets a registered realm by name, auto-creating default if needed.
@@ -172,29 +175,29 @@ declare class UserRealmProvider {
172
175
  }
173
176
  //#endregion
174
177
  //#region ../../src/api-users/schemas/identityQuerySchema.d.ts
175
- declare const identityQuerySchema: alepha1.TObject<{
176
- page: alepha1.TOptional<alepha1.TInteger>;
177
- size: alepha1.TOptional<alepha1.TInteger>;
178
- sort: alepha1.TOptional<alepha1.TString>;
179
- userId: alepha1.TOptional<alepha1.TString>;
180
- provider: alepha1.TOptional<alepha1.TString>;
178
+ declare const identityQuerySchema: alepha23.TObject<{
179
+ page: alepha23.TOptional<alepha23.TInteger>;
180
+ size: alepha23.TOptional<alepha23.TInteger>;
181
+ sort: alepha23.TOptional<alepha23.TString>;
182
+ userId: alepha23.TOptional<alepha23.TString>;
183
+ provider: alepha23.TOptional<alepha23.TString>;
181
184
  }>;
182
185
  type IdentityQuery = Static<typeof identityQuerySchema>;
183
186
  //#endregion
184
187
  //#region ../../src/api-users/services/IdentityService.d.ts
185
188
  declare class IdentityService {
186
- protected readonly log: alepha_logger0.Logger;
189
+ protected readonly log: alepha_logger1.Logger;
187
190
  protected readonly userRealmProvider: UserRealmProvider;
188
- identities(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
189
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
190
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
191
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
192
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
193
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
194
- password: alepha1.TOptional<alepha1.TString>;
195
- provider: alepha1.TString;
196
- providerUserId: alepha1.TOptional<alepha1.TString>;
197
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
191
+ identities(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
192
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
193
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
194
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
195
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
196
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
197
+ password: alepha23.TOptional<alepha23.TString>;
198
+ provider: alepha23.TString;
199
+ providerUserId: alepha23.TOptional<alepha23.TString>;
200
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
198
201
  }>>;
199
202
  /**
200
203
  * Find identities with pagination and filtering.
@@ -218,91 +221,91 @@ declare class IdentityController {
218
221
  /**
219
222
  * Find identities with pagination and filtering.
220
223
  */
221
- readonly findIdentities: alepha_server14.ActionPrimitiveFn<{
222
- query: alepha1.TObject<{
223
- page: alepha1.TOptional<alepha1.TInteger>;
224
- size: alepha1.TOptional<alepha1.TInteger>;
225
- sort: alepha1.TOptional<alepha1.TString>;
226
- userId: alepha1.TOptional<alepha1.TString>;
227
- provider: alepha1.TOptional<alepha1.TString>;
228
- userRealmName: alepha1.TOptional<alepha1.TString>;
224
+ readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
225
+ query: alepha23.TObject<{
226
+ page: alepha23.TOptional<alepha23.TInteger>;
227
+ size: alepha23.TOptional<alepha23.TInteger>;
228
+ sort: alepha23.TOptional<alepha23.TString>;
229
+ userId: alepha23.TOptional<alepha23.TString>;
230
+ provider: alepha23.TOptional<alepha23.TString>;
231
+ userRealmName: alepha23.TOptional<alepha23.TString>;
229
232
  }>;
230
- response: alepha1.TPage<alepha1.TObject<{
231
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
232
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
233
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
234
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
235
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
236
- provider: alepha1.TString;
237
- providerUserId: alepha1.TOptional<alepha1.TString>;
238
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
233
+ response: alepha23.TPage<alepha23.TObject<{
234
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
235
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
236
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
237
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
238
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
239
+ provider: alepha23.TString;
240
+ providerUserId: alepha23.TOptional<alepha23.TString>;
241
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
239
242
  }>>;
240
243
  }>;
241
244
  /**
242
245
  * Get an identity by ID.
243
246
  */
244
- readonly getIdentity: alepha_server14.ActionPrimitiveFn<{
245
- params: alepha1.TObject<{
246
- id: alepha1.TString;
247
+ readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
248
+ params: alepha23.TObject<{
249
+ id: alepha23.TString;
247
250
  }>;
248
- query: alepha1.TObject<{
249
- userRealmName: alepha1.TOptional<alepha1.TString>;
251
+ query: alepha23.TObject<{
252
+ userRealmName: alepha23.TOptional<alepha23.TString>;
250
253
  }>;
251
- response: alepha1.TObject<{
252
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
253
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
254
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
255
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
256
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
257
- provider: alepha1.TString;
258
- providerUserId: alepha1.TOptional<alepha1.TString>;
259
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
254
+ response: alepha23.TObject<{
255
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
256
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
257
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
258
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
259
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
260
+ provider: alepha23.TString;
261
+ providerUserId: alepha23.TOptional<alepha23.TString>;
262
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
260
263
  }>;
261
264
  }>;
262
265
  /**
263
266
  * Delete an identity.
264
267
  */
265
- readonly deleteIdentity: alepha_server14.ActionPrimitiveFn<{
266
- params: alepha1.TObject<{
267
- id: alepha1.TString;
268
+ readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
269
+ params: alepha23.TObject<{
270
+ id: alepha23.TString;
268
271
  }>;
269
- query: alepha1.TObject<{
270
- userRealmName: alepha1.TOptional<alepha1.TString>;
272
+ query: alepha23.TObject<{
273
+ userRealmName: alepha23.TOptional<alepha23.TString>;
271
274
  }>;
272
- response: alepha1.TObject<{
273
- ok: alepha1.TBoolean;
274
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
275
- count: alepha1.TOptional<alepha1.TNumber>;
275
+ response: alepha23.TObject<{
276
+ ok: alepha23.TBoolean;
277
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
278
+ count: alepha23.TOptional<alepha23.TNumber>;
276
279
  }>;
277
280
  }>;
278
281
  }
279
282
  //#endregion
280
283
  //#region ../../src/api-users/schemas/sessionQuerySchema.d.ts
281
- declare const sessionQuerySchema: alepha1.TObject<{
282
- page: alepha1.TOptional<alepha1.TInteger>;
283
- size: alepha1.TOptional<alepha1.TInteger>;
284
- sort: alepha1.TOptional<alepha1.TString>;
285
- userId: alepha1.TOptional<alepha1.TString>;
284
+ declare const sessionQuerySchema: alepha23.TObject<{
285
+ page: alepha23.TOptional<alepha23.TInteger>;
286
+ size: alepha23.TOptional<alepha23.TInteger>;
287
+ sort: alepha23.TOptional<alepha23.TString>;
288
+ userId: alepha23.TOptional<alepha23.TString>;
286
289
  }>;
287
290
  type SessionQuery = Static<typeof sessionQuerySchema>;
288
291
  //#endregion
289
292
  //#region ../../src/api-users/services/SessionCrudService.d.ts
290
293
  declare class SessionCrudService {
291
- protected readonly log: alepha_logger0.Logger;
294
+ protected readonly log: alepha_logger1.Logger;
292
295
  protected readonly userRealmProvider: UserRealmProvider;
293
- sessions(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
294
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
295
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
296
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
297
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
298
- refreshToken: alepha1.TString;
299
- userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
300
- expiresAt: alepha1.TString;
301
- ip: alepha1.TOptional<alepha1.TString>;
302
- userAgent: alepha1.TOptional<alepha1.TObject<{
303
- os: alepha1.TString;
304
- browser: alepha1.TString;
305
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
296
+ sessions(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
297
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
298
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
299
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
300
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
301
+ refreshToken: alepha23.TString;
302
+ userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
303
+ expiresAt: alepha23.TString;
304
+ ip: alepha23.TOptional<alepha23.TString>;
305
+ userAgent: alepha23.TOptional<alepha23.TObject<{
306
+ os: alepha23.TString;
307
+ browser: alepha23.TString;
308
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
306
309
  }>>;
307
310
  }>>;
308
311
  /**
@@ -327,70 +330,70 @@ declare class SessionController {
327
330
  /**
328
331
  * Find sessions with pagination and filtering.
329
332
  */
330
- readonly findSessions: alepha_server14.ActionPrimitiveFn<{
331
- query: alepha1.TObject<{
332
- page: alepha1.TOptional<alepha1.TInteger>;
333
- size: alepha1.TOptional<alepha1.TInteger>;
334
- sort: alepha1.TOptional<alepha1.TString>;
335
- userId: alepha1.TOptional<alepha1.TString>;
336
- userRealmName: alepha1.TOptional<alepha1.TString>;
333
+ readonly findSessions: alepha_server0.ActionPrimitiveFn<{
334
+ query: alepha23.TObject<{
335
+ page: alepha23.TOptional<alepha23.TInteger>;
336
+ size: alepha23.TOptional<alepha23.TInteger>;
337
+ sort: alepha23.TOptional<alepha23.TString>;
338
+ userId: alepha23.TOptional<alepha23.TString>;
339
+ userRealmName: alepha23.TOptional<alepha23.TString>;
337
340
  }>;
338
- response: alepha1.TPage<alepha1.TObject<{
339
- id: alepha1.TString;
340
- version: alepha1.TNumber;
341
- createdAt: alepha1.TString;
342
- updatedAt: alepha1.TString;
343
- refreshToken: alepha1.TString;
344
- userId: alepha1.TString;
345
- expiresAt: alepha1.TString;
346
- ip: alepha1.TOptional<alepha1.TString>;
347
- userAgent: alepha1.TOptional<alepha1.TObject<{
348
- os: alepha1.TString;
349
- browser: alepha1.TString;
350
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
341
+ response: alepha23.TPage<alepha23.TObject<{
342
+ id: alepha23.TString;
343
+ version: alepha23.TNumber;
344
+ createdAt: alepha23.TString;
345
+ updatedAt: alepha23.TString;
346
+ refreshToken: alepha23.TString;
347
+ userId: alepha23.TString;
348
+ expiresAt: alepha23.TString;
349
+ ip: alepha23.TOptional<alepha23.TString>;
350
+ userAgent: alepha23.TOptional<alepha23.TObject<{
351
+ os: alepha23.TString;
352
+ browser: alepha23.TString;
353
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
351
354
  }>>;
352
355
  }>>;
353
356
  }>;
354
357
  /**
355
358
  * Get a session by ID.
356
359
  */
357
- readonly getSession: alepha_server14.ActionPrimitiveFn<{
358
- params: alepha1.TObject<{
359
- id: alepha1.TString;
360
+ readonly getSession: alepha_server0.ActionPrimitiveFn<{
361
+ params: alepha23.TObject<{
362
+ id: alepha23.TString;
360
363
  }>;
361
- query: alepha1.TObject<{
362
- userRealmName: alepha1.TOptional<alepha1.TString>;
364
+ query: alepha23.TObject<{
365
+ userRealmName: alepha23.TOptional<alepha23.TString>;
363
366
  }>;
364
- response: alepha1.TObject<{
365
- id: alepha1.TString;
366
- version: alepha1.TNumber;
367
- createdAt: alepha1.TString;
368
- updatedAt: alepha1.TString;
369
- refreshToken: alepha1.TString;
370
- userId: alepha1.TString;
371
- expiresAt: alepha1.TString;
372
- ip: alepha1.TOptional<alepha1.TString>;
373
- userAgent: alepha1.TOptional<alepha1.TObject<{
374
- os: alepha1.TString;
375
- browser: alepha1.TString;
376
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
367
+ response: alepha23.TObject<{
368
+ id: alepha23.TString;
369
+ version: alepha23.TNumber;
370
+ createdAt: alepha23.TString;
371
+ updatedAt: alepha23.TString;
372
+ refreshToken: alepha23.TString;
373
+ userId: alepha23.TString;
374
+ expiresAt: alepha23.TString;
375
+ ip: alepha23.TOptional<alepha23.TString>;
376
+ userAgent: alepha23.TOptional<alepha23.TObject<{
377
+ os: alepha23.TString;
378
+ browser: alepha23.TString;
379
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
377
380
  }>>;
378
381
  }>;
379
382
  }>;
380
383
  /**
381
384
  * Delete a session.
382
385
  */
383
- readonly deleteSession: alepha_server14.ActionPrimitiveFn<{
384
- params: alepha1.TObject<{
385
- id: alepha1.TString;
386
+ readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
387
+ params: alepha23.TObject<{
388
+ id: alepha23.TString;
386
389
  }>;
387
- query: alepha1.TObject<{
388
- userRealmName: alepha1.TOptional<alepha1.TString>;
390
+ query: alepha23.TObject<{
391
+ userRealmName: alepha23.TOptional<alepha23.TString>;
389
392
  }>;
390
- response: alepha1.TObject<{
391
- ok: alepha1.TBoolean;
392
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
393
- count: alepha1.TOptional<alepha1.TNumber>;
393
+ response: alepha23.TObject<{
394
+ ok: alepha23.TBoolean;
395
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
396
+ count: alepha23.TOptional<alepha23.TNumber>;
394
397
  }>;
395
398
  }>;
396
399
  }
@@ -1250,7 +1253,7 @@ declare abstract class ModelBuilder {
1250
1253
  //#endregion
1251
1254
  //#region ../../src/orm/providers/DrizzleKitProvider.d.ts
1252
1255
  declare class DrizzleKitProvider {
1253
- protected readonly log: alepha_logger0.Logger;
1256
+ protected readonly log: alepha_logger1.Logger;
1254
1257
  protected readonly alepha: Alepha;
1255
1258
  /**
1256
1259
  * Synchronize database with current schema definitions.
@@ -1286,11 +1289,11 @@ declare class DrizzleKitProvider {
1286
1289
  */
1287
1290
  importDrizzleKit(): typeof DrizzleKit;
1288
1291
  }
1289
- declare const devMigrationsSchema: alepha1.TObject<{
1290
- id: alepha1.TNumber;
1291
- name: alepha1.TString;
1292
- snapshot: alepha1.TString;
1293
- created_at: alepha1.TString;
1292
+ declare const devMigrationsSchema: alepha23.TObject<{
1293
+ id: alepha23.TNumber;
1294
+ name: alepha23.TString;
1295
+ snapshot: alepha23.TString;
1296
+ created_at: alepha23.TString;
1294
1297
  }>;
1295
1298
  type DevMigrations = Static<typeof devMigrationsSchema>;
1296
1299
  //#endregion
@@ -1298,7 +1301,7 @@ type DevMigrations = Static<typeof devMigrationsSchema>;
1298
1301
  type SQLLike = SQLWrapper | string;
1299
1302
  declare abstract class DatabaseProvider {
1300
1303
  protected readonly alepha: Alepha;
1301
- protected readonly log: alepha_logger0.Logger;
1304
+ protected readonly log: alepha_logger1.Logger;
1302
1305
  protected abstract readonly builder: ModelBuilder;
1303
1306
  protected abstract readonly kit: DrizzleKitProvider;
1304
1307
  abstract readonly db: PgDatabase<any>;
@@ -1487,7 +1490,7 @@ declare class QueryManager {
1487
1490
  createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
1488
1491
  column: string;
1489
1492
  direction: "asc" | "desc";
1490
- }>): alepha1.Page<T>;
1493
+ }>): alepha23.Page<T>;
1491
1494
  }
1492
1495
  interface PgJoin {
1493
1496
  table: string;
@@ -1658,11 +1661,15 @@ declare abstract class Repository$1<T extends TObject> {
1658
1661
  /**
1659
1662
  * Create many entities.
1660
1663
  *
1664
+ * Inserts are batched in chunks of 1000 to avoid hitting database limits.
1665
+ *
1661
1666
  * @param values The entities to create.
1662
1667
  * @param opts The statement options.
1663
1668
  * @returns The created entities.
1664
1669
  */
1665
- createMany(values: Array<Static<TObjectInsert<T>>>, opts?: StatementOptions): Promise<Static<T>[]>;
1670
+ createMany(values: Array<Static<TObjectInsert<T>>>, opts?: StatementOptions & {
1671
+ batchSize?: number;
1672
+ }): Promise<Static<T>[]>;
1666
1673
  /**
1667
1674
  * Find an entity and update it.
1668
1675
  */
@@ -1795,7 +1802,7 @@ interface StatementOptions {
1795
1802
  declare module "alepha" {
1796
1803
  interface Env extends Partial<Static<typeof envSchema>> {}
1797
1804
  }
1798
- declare const envSchema: alepha1.TObject<{
1805
+ declare const envSchema: alepha23.TObject<{
1799
1806
  /**
1800
1807
  * Main configuration for database connection.
1801
1808
  * Accept a string in the format of a Postgres connection URL.
@@ -1803,21 +1810,21 @@ declare const envSchema: alepha1.TObject<{
1803
1810
  * or
1804
1811
  * Example: postgres://user:password@localhost:5432/database?sslmode=require
1805
1812
  */
1806
- DATABASE_URL: alepha1.TOptional<alepha1.TString>;
1813
+ DATABASE_URL: alepha23.TOptional<alepha23.TString>;
1807
1814
  /**
1808
1815
  * In addition to the DATABASE_URL, you can specify the postgres schema name.
1809
1816
  *
1810
1817
  * It will monkey patch drizzle tables.
1811
1818
  */
1812
- POSTGRES_SCHEMA: alepha1.TOptional<alepha1.TString>;
1819
+ POSTGRES_SCHEMA: alepha23.TOptional<alepha23.TString>;
1813
1820
  }>;
1814
1821
  //#endregion
1815
1822
  //#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
1816
1823
  /**
1817
1824
  * Configuration options for the Node.js SQLite database provider.
1818
1825
  */
1819
- declare const nodeSqliteOptions: alepha1.Atom<alepha1.TObject<{
1820
- path: alepha1.TOptional<alepha1.TString>;
1826
+ declare const nodeSqliteOptions: alepha23.Atom<alepha23.TObject<{
1827
+ path: alepha23.TOptional<alepha23.TString>;
1821
1828
  }>, "alepha.postgres.node-sqlite.options">;
1822
1829
  type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
1823
1830
  declare module "alepha" {
@@ -1902,30 +1909,30 @@ declare module "alepha" {
1902
1909
  //#endregion
1903
1910
  //#region ../../src/api-users/notifications/UserNotifications.d.ts
1904
1911
  declare class UserNotifications {
1905
- readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1906
- email: alepha1.TString;
1907
- code: alepha1.TString;
1908
- expiresInMinutes: alepha1.TNumber;
1912
+ readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1913
+ email: alepha23.TString;
1914
+ code: alepha23.TString;
1915
+ expiresInMinutes: alepha23.TNumber;
1909
1916
  }>>;
1910
- readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1911
- email: alepha1.TString;
1912
- code: alepha1.TString;
1913
- expiresInMinutes: alepha1.TNumber;
1917
+ readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1918
+ email: alepha23.TString;
1919
+ code: alepha23.TString;
1920
+ expiresInMinutes: alepha23.TNumber;
1914
1921
  }>>;
1915
- readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1916
- phoneNumber: alepha1.TString;
1917
- code: alepha1.TString;
1918
- expiresInMinutes: alepha1.TNumber;
1922
+ readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1923
+ phoneNumber: alepha23.TString;
1924
+ code: alepha23.TString;
1925
+ expiresInMinutes: alepha23.TNumber;
1919
1926
  }>>;
1920
- readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1921
- email: alepha1.TString;
1922
- resetUrl: alepha1.TString;
1923
- expiresInMinutes: alepha1.TNumber;
1927
+ readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1928
+ email: alepha23.TString;
1929
+ resetUrl: alepha23.TString;
1930
+ expiresInMinutes: alepha23.TNumber;
1924
1931
  }>>;
1925
- readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
1926
- email: alepha1.TString;
1927
- verifyUrl: alepha1.TString;
1928
- expiresInMinutes: alepha1.TNumber;
1932
+ readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
1933
+ email: alepha23.TString;
1934
+ verifyUrl: alepha23.TString;
1935
+ expiresInMinutes: alepha23.TNumber;
1929
1936
  }>>;
1930
1937
  }
1931
1938
  //#endregion
@@ -1936,10 +1943,10 @@ declare class UserNotifications {
1936
1943
  * Requires the intent ID from Phase 1, the verification code,
1937
1944
  * and the new password.
1938
1945
  */
1939
- declare const completePasswordResetRequestSchema: alepha1.TObject<{
1940
- intentId: alepha1.TString;
1941
- code: alepha1.TString;
1942
- newPassword: alepha1.TString;
1946
+ declare const completePasswordResetRequestSchema: alepha23.TObject<{
1947
+ intentId: alepha23.TString;
1948
+ code: alepha23.TString;
1949
+ newPassword: alepha23.TString;
1943
1950
  }>;
1944
1951
  type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
1945
1952
  //#endregion
@@ -1950,9 +1957,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
1950
1957
  * Contains the intent ID needed for Phase 2 completion,
1951
1958
  * along with expiration time.
1952
1959
  */
1953
- declare const passwordResetIntentResponseSchema: alepha1.TObject<{
1954
- intentId: alepha1.TString;
1955
- expiresAt: alepha1.TString;
1960
+ declare const passwordResetIntentResponseSchema: alepha23.TObject<{
1961
+ intentId: alepha23.TString;
1962
+ expiresAt: alepha23.TString;
1956
1963
  }>;
1957
1964
  type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
1958
1965
  //#endregion
@@ -1968,54 +1975,54 @@ interface PasswordResetIntent {
1968
1975
  expiresAt: string;
1969
1976
  }
1970
1977
  declare class CredentialService {
1971
- protected readonly log: alepha_logger0.Logger;
1978
+ protected readonly log: alepha_logger1.Logger;
1972
1979
  protected readonly cryptoProvider: CryptoProvider;
1973
1980
  protected readonly dateTimeProvider: DateTimeProvider;
1974
1981
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
1975
1982
  protected readonly userNotifications: UserNotifications;
1976
1983
  protected readonly userRealmProvider: UserRealmProvider;
1977
1984
  protected readonly intentCache: alepha_cache0.CachePrimitiveFn<PasswordResetIntent, any[]>;
1978
- users(userRealmName?: string): Repository$1<alepha1.TObject<{
1979
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1980
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1981
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1982
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1983
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
1984
- username: alepha1.TOptional<alepha1.TString>;
1985
- email: alepha1.TOptional<alepha1.TString>;
1986
- phoneNumber: alepha1.TOptional<alepha1.TString>;
1987
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
1988
- firstName: alepha1.TOptional<alepha1.TString>;
1989
- lastName: alepha1.TOptional<alepha1.TString>;
1990
- picture: alepha1.TOptional<alepha1.TString>;
1991
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
1992
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
1985
+ users(userRealmName?: string): Repository$1<alepha23.TObject<{
1986
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1987
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1988
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1989
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1990
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
1991
+ username: alepha23.TOptional<alepha23.TString>;
1992
+ email: alepha23.TOptional<alepha23.TString>;
1993
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
1994
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
1995
+ firstName: alepha23.TOptional<alepha23.TString>;
1996
+ lastName: alepha23.TOptional<alepha23.TString>;
1997
+ picture: alepha23.TOptional<alepha23.TString>;
1998
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
1999
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
1993
2000
  }>>;
1994
- sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
1995
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
1996
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
1997
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
1998
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
1999
- refreshToken: alepha1.TString;
2000
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2001
- expiresAt: alepha1.TString;
2002
- ip: alepha1.TOptional<alepha1.TString>;
2003
- userAgent: alepha1.TOptional<alepha1.TObject<{
2004
- os: alepha1.TString;
2005
- browser: alepha1.TString;
2006
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2001
+ sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
2002
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2003
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2004
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2005
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2006
+ refreshToken: alepha23.TString;
2007
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2008
+ expiresAt: alepha23.TString;
2009
+ ip: alepha23.TOptional<alepha23.TString>;
2010
+ userAgent: alepha23.TOptional<alepha23.TObject<{
2011
+ os: alepha23.TString;
2012
+ browser: alepha23.TString;
2013
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2007
2014
  }>>;
2008
2015
  }>>;
2009
- identities(userRealmName?: string): Repository$1<alepha1.TObject<{
2010
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2011
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2012
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2013
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2014
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2015
- password: alepha1.TOptional<alepha1.TString>;
2016
- provider: alepha1.TString;
2017
- providerUserId: alepha1.TOptional<alepha1.TString>;
2018
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2016
+ identities(userRealmName?: string): Repository$1<alepha23.TObject<{
2017
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2018
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2019
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2020
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2021
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2022
+ password: alepha23.TOptional<alepha23.TString>;
2023
+ provider: alepha23.TString;
2024
+ providerUserId: alepha23.TOptional<alepha23.TString>;
2025
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2019
2026
  }>>;
2020
2027
  /**
2021
2028
  * Phase 1: Create a password reset intent.
@@ -2052,11 +2059,11 @@ declare class CredentialService {
2052
2059
  }
2053
2060
  //#endregion
2054
2061
  //#region ../../src/api-users/schemas/completeRegistrationRequestSchema.d.ts
2055
- declare const completeRegistrationRequestSchema: alepha1.TObject<{
2056
- intentId: alepha1.TString;
2057
- emailCode: alepha1.TOptional<alepha1.TString>;
2058
- phoneCode: alepha1.TOptional<alepha1.TString>;
2059
- captchaToken: alepha1.TOptional<alepha1.TString>;
2062
+ declare const completeRegistrationRequestSchema: alepha23.TObject<{
2063
+ intentId: alepha23.TString;
2064
+ emailCode: alepha23.TOptional<alepha23.TString>;
2065
+ phoneCode: alepha23.TOptional<alepha23.TString>;
2066
+ captchaToken: alepha23.TOptional<alepha23.TString>;
2060
2067
  }>;
2061
2068
  type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
2062
2069
  //#endregion
@@ -2065,24 +2072,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
2065
2072
  * Schema for user registration request body.
2066
2073
  * Password is always required, other fields depend on realm settings.
2067
2074
  */
2068
- declare const registerRequestSchema: alepha1.TObject<{
2069
- password: alepha1.TString;
2070
- username: alepha1.TOptional<alepha1.TString>;
2071
- email: alepha1.TOptional<alepha1.TString>;
2072
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2073
- firstName: alepha1.TOptional<alepha1.TString>;
2074
- lastName: alepha1.TOptional<alepha1.TString>;
2075
- picture: alepha1.TOptional<alepha1.TString>;
2075
+ declare const registerRequestSchema: alepha23.TObject<{
2076
+ password: alepha23.TString;
2077
+ username: alepha23.TOptional<alepha23.TString>;
2078
+ email: alepha23.TOptional<alepha23.TString>;
2079
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2080
+ firstName: alepha23.TOptional<alepha23.TString>;
2081
+ lastName: alepha23.TOptional<alepha23.TString>;
2082
+ picture: alepha23.TOptional<alepha23.TString>;
2076
2083
  }>;
2077
2084
  type RegisterRequest = Static<typeof registerRequestSchema>;
2078
2085
  //#endregion
2079
2086
  //#region ../../src/api-users/schemas/registrationIntentResponseSchema.d.ts
2080
- declare const registrationIntentResponseSchema: alepha1.TObject<{
2081
- intentId: alepha1.TString;
2082
- expectCaptcha: alepha1.TBoolean;
2083
- expectEmailVerification: alepha1.TBoolean;
2084
- expectPhoneVerification: alepha1.TBoolean;
2085
- expiresAt: alepha1.TString;
2087
+ declare const registrationIntentResponseSchema: alepha23.TObject<{
2088
+ intentId: alepha23.TString;
2089
+ expectCaptcha: alepha23.TBoolean;
2090
+ expectEmailVerification: alepha23.TBoolean;
2091
+ expectPhoneVerification: alepha23.TBoolean;
2092
+ expiresAt: alepha23.TString;
2086
2093
  }>;
2087
2094
  type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
2088
2095
  //#endregion
@@ -2109,7 +2116,7 @@ interface RegistrationIntent {
2109
2116
  expiresAt: string;
2110
2117
  }
2111
2118
  declare class RegistrationService {
2112
- protected readonly log: alepha_logger0.Logger;
2119
+ protected readonly log: alepha_logger1.Logger;
2113
2120
  protected readonly dateTimeProvider: DateTimeProvider;
2114
2121
  protected readonly cryptoProvider: CryptoProvider;
2115
2122
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
@@ -2153,70 +2160,70 @@ declare class RegistrationService {
2153
2160
  }
2154
2161
  //#endregion
2155
2162
  //#region ../../src/api-users/schemas/createUserSchema.d.ts
2156
- declare const createUserSchema: alepha1.TObject<{
2157
- username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2158
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2159
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2160
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2161
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2162
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2163
- enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2164
- emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2165
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2166
- id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
2167
- version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
2168
- createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
2169
- updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
2163
+ declare const createUserSchema: alepha23.TObject<{
2164
+ id: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
2165
+ version: alepha23.TOptional<PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
2166
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2167
+ createdAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
2168
+ updatedAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
2169
+ username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2170
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2171
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2172
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2173
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2174
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2175
+ enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
2176
+ emailVerified: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
2170
2177
  }>;
2171
2178
  type CreateUser = Static<typeof createUserSchema>;
2172
2179
  //#endregion
2173
2180
  //#region ../../src/api-users/schemas/updateUserSchema.d.ts
2174
- declare const updateUserSchema: alepha1.TObject<{
2175
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2176
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2177
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2178
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2179
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2180
- enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
2181
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2182
- realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
2181
+ declare const updateUserSchema: alepha23.TObject<{
2182
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2183
+ realm: alepha23.TOptional<PgAttr<alepha23.TString, typeof PG_DEFAULT>>;
2184
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2185
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2186
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2187
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2188
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2189
+ enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
2183
2190
  }>;
2184
2191
  type UpdateUser = Static<typeof updateUserSchema>;
2185
2192
  //#endregion
2186
2193
  //#region ../../src/api-users/schemas/userQuerySchema.d.ts
2187
- declare const userQuerySchema: alepha1.TObject<{
2188
- page: alepha1.TOptional<alepha1.TInteger>;
2189
- size: alepha1.TOptional<alepha1.TInteger>;
2190
- sort: alepha1.TOptional<alepha1.TString>;
2191
- email: alepha1.TOptional<alepha1.TString>;
2192
- enabled: alepha1.TOptional<alepha1.TBoolean>;
2193
- emailVerified: alepha1.TOptional<alepha1.TBoolean>;
2194
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2195
- query: alepha1.TOptional<alepha1.TString>;
2194
+ declare const userQuerySchema: alepha23.TObject<{
2195
+ page: alepha23.TOptional<alepha23.TInteger>;
2196
+ size: alepha23.TOptional<alepha23.TInteger>;
2197
+ sort: alepha23.TOptional<alepha23.TString>;
2198
+ email: alepha23.TOptional<alepha23.TString>;
2199
+ enabled: alepha23.TOptional<alepha23.TBoolean>;
2200
+ emailVerified: alepha23.TOptional<alepha23.TBoolean>;
2201
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2202
+ query: alepha23.TOptional<alepha23.TString>;
2196
2203
  }>;
2197
2204
  type UserQuery = Static<typeof userQuerySchema>;
2198
2205
  //#endregion
2199
2206
  //#region ../../src/api-users/services/UserService.d.ts
2200
2207
  declare class UserService {
2201
- protected readonly log: alepha_logger0.Logger;
2208
+ protected readonly log: alepha_logger1.Logger;
2202
2209
  protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
2203
2210
  protected readonly userNotifications: UserNotifications;
2204
2211
  protected readonly userRealmProvider: UserRealmProvider;
2205
- users(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
2206
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2207
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2208
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2209
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2210
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2211
- username: alepha1.TOptional<alepha1.TString>;
2212
- email: alepha1.TOptional<alepha1.TString>;
2213
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2214
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2215
- firstName: alepha1.TOptional<alepha1.TString>;
2216
- lastName: alepha1.TOptional<alepha1.TString>;
2217
- picture: alepha1.TOptional<alepha1.TString>;
2218
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2219
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2212
+ users(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
2213
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2214
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2215
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2216
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2217
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2218
+ username: alepha23.TOptional<alepha23.TString>;
2219
+ email: alepha23.TOptional<alepha23.TString>;
2220
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2221
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2222
+ firstName: alepha23.TOptional<alepha23.TString>;
2223
+ lastName: alepha23.TOptional<alepha23.TString>;
2224
+ picture: alepha23.TOptional<alepha23.TString>;
2225
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2226
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2220
2227
  }>>;
2221
2228
  /**
2222
2229
  * Request email verification for a user.
@@ -2268,282 +2275,282 @@ declare class UserController {
2268
2275
  * Phase 1: Create a registration intent.
2269
2276
  * Validates data, creates verification sessions, and stores intent in cache.
2270
2277
  */
2271
- readonly createRegistrationIntent: alepha_server14.ActionPrimitiveFn<{
2272
- body: alepha1.TObject<{
2273
- password: alepha1.TString;
2274
- username: alepha1.TOptional<alepha1.TString>;
2275
- email: alepha1.TOptional<alepha1.TString>;
2276
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2277
- firstName: alepha1.TOptional<alepha1.TString>;
2278
- lastName: alepha1.TOptional<alepha1.TString>;
2279
- picture: alepha1.TOptional<alepha1.TString>;
2278
+ readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
2279
+ body: alepha23.TObject<{
2280
+ password: alepha23.TString;
2281
+ username: alepha23.TOptional<alepha23.TString>;
2282
+ email: alepha23.TOptional<alepha23.TString>;
2283
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2284
+ firstName: alepha23.TOptional<alepha23.TString>;
2285
+ lastName: alepha23.TOptional<alepha23.TString>;
2286
+ picture: alepha23.TOptional<alepha23.TString>;
2280
2287
  }>;
2281
- query: alepha1.TObject<{
2282
- userRealmName: alepha1.TOptional<alepha1.TString>;
2288
+ query: alepha23.TObject<{
2289
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2283
2290
  }>;
2284
- response: alepha1.TObject<{
2285
- intentId: alepha1.TString;
2286
- expectCaptcha: alepha1.TBoolean;
2287
- expectEmailVerification: alepha1.TBoolean;
2288
- expectPhoneVerification: alepha1.TBoolean;
2289
- expiresAt: alepha1.TString;
2291
+ response: alepha23.TObject<{
2292
+ intentId: alepha23.TString;
2293
+ expectCaptcha: alepha23.TBoolean;
2294
+ expectEmailVerification: alepha23.TBoolean;
2295
+ expectPhoneVerification: alepha23.TBoolean;
2296
+ expiresAt: alepha23.TString;
2290
2297
  }>;
2291
2298
  }>;
2292
2299
  /**
2293
2300
  * Find users with pagination and filtering.
2294
2301
  */
2295
- readonly findUsers: alepha_server14.ActionPrimitiveFn<{
2296
- query: alepha1.TObject<{
2297
- page: alepha1.TOptional<alepha1.TInteger>;
2298
- size: alepha1.TOptional<alepha1.TInteger>;
2299
- sort: alepha1.TOptional<alepha1.TString>;
2300
- email: alepha1.TOptional<alepha1.TString>;
2301
- enabled: alepha1.TOptional<alepha1.TBoolean>;
2302
- emailVerified: alepha1.TOptional<alepha1.TBoolean>;
2303
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2304
- query: alepha1.TOptional<alepha1.TString>;
2305
- userRealmName: alepha1.TOptional<alepha1.TString>;
2302
+ readonly findUsers: alepha_server0.ActionPrimitiveFn<{
2303
+ query: alepha23.TObject<{
2304
+ page: alepha23.TOptional<alepha23.TInteger>;
2305
+ size: alepha23.TOptional<alepha23.TInteger>;
2306
+ sort: alepha23.TOptional<alepha23.TString>;
2307
+ email: alepha23.TOptional<alepha23.TString>;
2308
+ enabled: alepha23.TOptional<alepha23.TBoolean>;
2309
+ emailVerified: alepha23.TOptional<alepha23.TBoolean>;
2310
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2311
+ query: alepha23.TOptional<alepha23.TString>;
2312
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2306
2313
  }>;
2307
- response: alepha1.TPage<alepha1.TObject<{
2308
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2309
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2310
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2311
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2312
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2313
- username: alepha1.TOptional<alepha1.TString>;
2314
- email: alepha1.TOptional<alepha1.TString>;
2315
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2316
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2317
- firstName: alepha1.TOptional<alepha1.TString>;
2318
- lastName: alepha1.TOptional<alepha1.TString>;
2319
- picture: alepha1.TOptional<alepha1.TString>;
2320
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2321
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2314
+ response: alepha23.TPage<alepha23.TObject<{
2315
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2316
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2317
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2318
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2319
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2320
+ username: alepha23.TOptional<alepha23.TString>;
2321
+ email: alepha23.TOptional<alepha23.TString>;
2322
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2323
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2324
+ firstName: alepha23.TOptional<alepha23.TString>;
2325
+ lastName: alepha23.TOptional<alepha23.TString>;
2326
+ picture: alepha23.TOptional<alepha23.TString>;
2327
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2328
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2322
2329
  }>>;
2323
2330
  }>;
2324
2331
  /**
2325
2332
  * Get a user by ID.
2326
2333
  */
2327
- readonly getUser: alepha_server14.ActionPrimitiveFn<{
2328
- params: alepha1.TObject<{
2329
- id: alepha1.TString;
2334
+ readonly getUser: alepha_server0.ActionPrimitiveFn<{
2335
+ params: alepha23.TObject<{
2336
+ id: alepha23.TString;
2330
2337
  }>;
2331
- query: alepha1.TObject<{
2332
- userRealmName: alepha1.TOptional<alepha1.TString>;
2338
+ query: alepha23.TObject<{
2339
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2333
2340
  }>;
2334
- response: alepha1.TObject<{
2335
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2336
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2337
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2338
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2339
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2340
- username: alepha1.TOptional<alepha1.TString>;
2341
- email: alepha1.TOptional<alepha1.TString>;
2342
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2343
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2344
- firstName: alepha1.TOptional<alepha1.TString>;
2345
- lastName: alepha1.TOptional<alepha1.TString>;
2346
- picture: alepha1.TOptional<alepha1.TString>;
2347
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2348
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2341
+ response: alepha23.TObject<{
2342
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2343
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2344
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2345
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2346
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2347
+ username: alepha23.TOptional<alepha23.TString>;
2348
+ email: alepha23.TOptional<alepha23.TString>;
2349
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2350
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2351
+ firstName: alepha23.TOptional<alepha23.TString>;
2352
+ lastName: alepha23.TOptional<alepha23.TString>;
2353
+ picture: alepha23.TOptional<alepha23.TString>;
2354
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2355
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2349
2356
  }>;
2350
2357
  }>;
2351
2358
  /**
2352
2359
  * Create a new user.
2353
2360
  */
2354
- readonly createUser: alepha_server14.ActionPrimitiveFn<{
2355
- query: alepha1.TObject<{
2356
- userRealmName: alepha1.TOptional<alepha1.TString>;
2361
+ readonly createUser: alepha_server0.ActionPrimitiveFn<{
2362
+ query: alepha23.TObject<{
2363
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2357
2364
  }>;
2358
- body: alepha1.TObject<{
2359
- username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2360
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2361
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2362
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2363
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2364
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2365
- enabled: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
2366
- emailVerified: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
2367
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2368
- id: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>>;
2369
- version: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>>;
2370
- createdAt: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>>;
2371
- updatedAt: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>>;
2365
+ body: alepha23.TObject<{
2366
+ id: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>>;
2367
+ version: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>>;
2368
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2369
+ createdAt: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
2370
+ updatedAt: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
2371
+ username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2372
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2373
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2374
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2375
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2376
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2377
+ enabled: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2378
+ emailVerified: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2372
2379
  }>;
2373
- response: alepha1.TObject<{
2374
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2375
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2376
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2377
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2378
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2379
- username: alepha1.TOptional<alepha1.TString>;
2380
- email: alepha1.TOptional<alepha1.TString>;
2381
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2382
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2383
- firstName: alepha1.TOptional<alepha1.TString>;
2384
- lastName: alepha1.TOptional<alepha1.TString>;
2385
- picture: alepha1.TOptional<alepha1.TString>;
2386
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2387
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2380
+ response: alepha23.TObject<{
2381
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2382
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2383
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2384
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2385
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2386
+ username: alepha23.TOptional<alepha23.TString>;
2387
+ email: alepha23.TOptional<alepha23.TString>;
2388
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2389
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2390
+ firstName: alepha23.TOptional<alepha23.TString>;
2391
+ lastName: alepha23.TOptional<alepha23.TString>;
2392
+ picture: alepha23.TOptional<alepha23.TString>;
2393
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2394
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2388
2395
  }>;
2389
2396
  }>;
2390
2397
  /**
2391
2398
  * Phase 2: Complete registration using an intent.
2392
2399
  * Validates verification codes and creates the user.
2393
2400
  */
2394
- readonly createUserFromIntent: alepha_server14.ActionPrimitiveFn<{
2395
- body: alepha1.TObject<{
2396
- intentId: alepha1.TString;
2397
- emailCode: alepha1.TOptional<alepha1.TString>;
2398
- phoneCode: alepha1.TOptional<alepha1.TString>;
2399
- captchaToken: alepha1.TOptional<alepha1.TString>;
2401
+ readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
2402
+ body: alepha23.TObject<{
2403
+ intentId: alepha23.TString;
2404
+ emailCode: alepha23.TOptional<alepha23.TString>;
2405
+ phoneCode: alepha23.TOptional<alepha23.TString>;
2406
+ captchaToken: alepha23.TOptional<alepha23.TString>;
2400
2407
  }>;
2401
- response: alepha1.TObject<{
2402
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2403
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2404
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2405
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2406
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2407
- username: alepha1.TOptional<alepha1.TString>;
2408
- email: alepha1.TOptional<alepha1.TString>;
2409
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2410
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2411
- firstName: alepha1.TOptional<alepha1.TString>;
2412
- lastName: alepha1.TOptional<alepha1.TString>;
2413
- picture: alepha1.TOptional<alepha1.TString>;
2414
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2415
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2408
+ response: alepha23.TObject<{
2409
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2410
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2411
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2412
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2413
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2414
+ username: alepha23.TOptional<alepha23.TString>;
2415
+ email: alepha23.TOptional<alepha23.TString>;
2416
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2417
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2418
+ firstName: alepha23.TOptional<alepha23.TString>;
2419
+ lastName: alepha23.TOptional<alepha23.TString>;
2420
+ picture: alepha23.TOptional<alepha23.TString>;
2421
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2422
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2416
2423
  }>;
2417
2424
  }>;
2418
2425
  /**
2419
2426
  * Update a user.
2420
2427
  */
2421
- readonly updateUser: alepha_server14.ActionPrimitiveFn<{
2422
- params: alepha1.TObject<{
2423
- id: alepha1.TString;
2428
+ readonly updateUser: alepha_server0.ActionPrimitiveFn<{
2429
+ params: alepha23.TObject<{
2430
+ id: alepha23.TString;
2424
2431
  }>;
2425
- query: alepha1.TObject<{
2426
- userRealmName: alepha1.TOptional<alepha1.TString>;
2432
+ query: alepha23.TObject<{
2433
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2427
2434
  }>;
2428
- body: alepha1.TObject<{
2429
- email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2430
- phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2431
- firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2432
- lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2433
- picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
2434
- enabled: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
2435
- roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
2436
- realm: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>>;
2435
+ body: alepha23.TObject<{
2436
+ email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2437
+ realm: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>>;
2438
+ phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2439
+ roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
2440
+ firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2441
+ lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2442
+ picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
2443
+ enabled: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
2437
2444
  }>;
2438
- response: alepha1.TObject<{
2439
- id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
2440
- version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
2441
- createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2442
- updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
2443
- realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
2444
- username: alepha1.TOptional<alepha1.TString>;
2445
- email: alepha1.TOptional<alepha1.TString>;
2446
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2447
- roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
2448
- firstName: alepha1.TOptional<alepha1.TString>;
2449
- lastName: alepha1.TOptional<alepha1.TString>;
2450
- picture: alepha1.TOptional<alepha1.TString>;
2451
- enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2452
- emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
2445
+ response: alepha23.TObject<{
2446
+ id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
2447
+ version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
2448
+ createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2449
+ updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
2450
+ realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
2451
+ username: alepha23.TOptional<alepha23.TString>;
2452
+ email: alepha23.TOptional<alepha23.TString>;
2453
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2454
+ roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
2455
+ firstName: alepha23.TOptional<alepha23.TString>;
2456
+ lastName: alepha23.TOptional<alepha23.TString>;
2457
+ picture: alepha23.TOptional<alepha23.TString>;
2458
+ enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2459
+ emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
2453
2460
  }>;
2454
2461
  }>;
2455
2462
  /**
2456
2463
  * Delete a user.
2457
2464
  */
2458
- readonly deleteUser: alepha_server14.ActionPrimitiveFn<{
2459
- params: alepha1.TObject<{
2460
- id: alepha1.TString;
2465
+ readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
2466
+ params: alepha23.TObject<{
2467
+ id: alepha23.TString;
2461
2468
  }>;
2462
- query: alepha1.TObject<{
2463
- userRealmName: alepha1.TOptional<alepha1.TString>;
2469
+ query: alepha23.TObject<{
2470
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2464
2471
  }>;
2465
- response: alepha1.TObject<{
2466
- ok: alepha1.TBoolean;
2467
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
2468
- count: alepha1.TOptional<alepha1.TNumber>;
2472
+ response: alepha23.TObject<{
2473
+ ok: alepha23.TBoolean;
2474
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
2475
+ count: alepha23.TOptional<alepha23.TNumber>;
2469
2476
  }>;
2470
2477
  }>;
2471
2478
  /**
2472
2479
  * Phase 1: Create a password reset intent.
2473
2480
  * Validates email, sends verification code, and stores intent in cache.
2474
2481
  */
2475
- readonly createPasswordResetIntent: alepha_server14.ActionPrimitiveFn<{
2476
- query: alepha1.TObject<{
2477
- userRealmName: alepha1.TOptional<alepha1.TString>;
2482
+ readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
2483
+ query: alepha23.TObject<{
2484
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2478
2485
  }>;
2479
- body: alepha1.TObject<{
2480
- email: alepha1.TString;
2486
+ body: alepha23.TObject<{
2487
+ email: alepha23.TString;
2481
2488
  }>;
2482
- response: alepha1.TObject<{
2483
- intentId: alepha1.TString;
2484
- expiresAt: alepha1.TString;
2489
+ response: alepha23.TObject<{
2490
+ intentId: alepha23.TString;
2491
+ expiresAt: alepha23.TString;
2485
2492
  }>;
2486
2493
  }>;
2487
2494
  /**
2488
2495
  * Phase 2: Complete password reset using an intent.
2489
2496
  * Validates verification code, updates password, and invalidates sessions.
2490
2497
  */
2491
- readonly completePasswordReset: alepha_server14.ActionPrimitiveFn<{
2492
- body: alepha1.TObject<{
2493
- intentId: alepha1.TString;
2494
- code: alepha1.TString;
2495
- newPassword: alepha1.TString;
2498
+ readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
2499
+ body: alepha23.TObject<{
2500
+ intentId: alepha23.TString;
2501
+ code: alepha23.TString;
2502
+ newPassword: alepha23.TString;
2496
2503
  }>;
2497
- response: alepha1.TObject<{
2498
- ok: alepha1.TBoolean;
2499
- id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
2500
- count: alepha1.TOptional<alepha1.TNumber>;
2504
+ response: alepha23.TObject<{
2505
+ ok: alepha23.TBoolean;
2506
+ id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
2507
+ count: alepha23.TOptional<alepha23.TNumber>;
2501
2508
  }>;
2502
2509
  }>;
2503
2510
  /**
2504
2511
  * @deprecated Use createPasswordResetIntent instead
2505
2512
  */
2506
- requestPasswordReset: alepha_server14.ActionPrimitiveFn<{
2507
- query: alepha1.TObject<{
2508
- userRealmName: alepha1.TOptional<alepha1.TString>;
2513
+ requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
2514
+ query: alepha23.TObject<{
2515
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2509
2516
  }>;
2510
- body: alepha1.TObject<{
2511
- email: alepha1.TString;
2517
+ body: alepha23.TObject<{
2518
+ email: alepha23.TString;
2512
2519
  }>;
2513
- response: alepha1.TObject<{
2514
- success: alepha1.TBoolean;
2515
- message: alepha1.TString;
2520
+ response: alepha23.TObject<{
2521
+ success: alepha23.TBoolean;
2522
+ message: alepha23.TString;
2516
2523
  }>;
2517
2524
  }>;
2518
2525
  /**
2519
2526
  * @deprecated Use completePasswordReset instead
2520
2527
  */
2521
- validateResetToken: alepha_server14.ActionPrimitiveFn<{
2522
- query: alepha1.TObject<{
2523
- email: alepha1.TString;
2524
- token: alepha1.TString;
2525
- userRealmName: alepha1.TOptional<alepha1.TString>;
2528
+ validateResetToken: alepha_server0.ActionPrimitiveFn<{
2529
+ query: alepha23.TObject<{
2530
+ email: alepha23.TString;
2531
+ token: alepha23.TString;
2532
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2526
2533
  }>;
2527
- response: alepha1.TObject<{
2528
- valid: alepha1.TBoolean;
2529
- email: alepha1.TOptional<alepha1.TString>;
2534
+ response: alepha23.TObject<{
2535
+ valid: alepha23.TBoolean;
2536
+ email: alepha23.TOptional<alepha23.TString>;
2530
2537
  }>;
2531
2538
  }>;
2532
2539
  /**
2533
2540
  * @deprecated Use completePasswordReset instead
2534
2541
  */
2535
- resetPassword: alepha_server14.ActionPrimitiveFn<{
2536
- query: alepha1.TObject<{
2537
- userRealmName: alepha1.TOptional<alepha1.TString>;
2542
+ resetPassword: alepha_server0.ActionPrimitiveFn<{
2543
+ query: alepha23.TObject<{
2544
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2538
2545
  }>;
2539
- body: alepha1.TObject<{
2540
- email: alepha1.TString;
2541
- token: alepha1.TString;
2542
- newPassword: alepha1.TString;
2546
+ body: alepha23.TObject<{
2547
+ email: alepha23.TString;
2548
+ token: alepha23.TString;
2549
+ newPassword: alepha23.TString;
2543
2550
  }>;
2544
- response: alepha1.TObject<{
2545
- success: alepha1.TBoolean;
2546
- message: alepha1.TString;
2551
+ response: alepha23.TObject<{
2552
+ success: alepha23.TBoolean;
2553
+ message: alepha23.TString;
2547
2554
  }>;
2548
2555
  }>;
2549
2556
  /**
@@ -2552,47 +2559,47 @@ declare class UserController {
2552
2559
  * @param method - The verification method: "code" (default) sends a 6-digit code, "link" sends a clickable verification link.
2553
2560
  * @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
2554
2561
  */
2555
- requestEmailVerification: alepha_server14.ActionPrimitiveFn<{
2556
- query: alepha1.TObject<{
2557
- userRealmName: alepha1.TOptional<alepha1.TString>;
2558
- method: alepha1.TOptional<alepha1.TUnsafe<"link" | "code">>;
2559
- verifyUrl: alepha1.TOptional<alepha1.TString>;
2562
+ requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
2563
+ query: alepha23.TObject<{
2564
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2565
+ method: alepha23.TOptional<alepha23.TUnsafe<"link" | "code">>;
2566
+ verifyUrl: alepha23.TOptional<alepha23.TString>;
2560
2567
  }>;
2561
- body: alepha1.TObject<{
2562
- email: alepha1.TString;
2568
+ body: alepha23.TObject<{
2569
+ email: alepha23.TString;
2563
2570
  }>;
2564
- response: alepha1.TObject<{
2565
- success: alepha1.TBoolean;
2566
- message: alepha1.TString;
2571
+ response: alepha23.TObject<{
2572
+ success: alepha23.TBoolean;
2573
+ message: alepha23.TString;
2567
2574
  }>;
2568
2575
  }>;
2569
2576
  /**
2570
2577
  * Verify email with a valid token.
2571
2578
  * Updates the user's emailVerified status.
2572
2579
  */
2573
- verifyEmail: alepha_server14.ActionPrimitiveFn<{
2574
- query: alepha1.TObject<{
2575
- userRealmName: alepha1.TOptional<alepha1.TString>;
2580
+ verifyEmail: alepha_server0.ActionPrimitiveFn<{
2581
+ query: alepha23.TObject<{
2582
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2576
2583
  }>;
2577
- body: alepha1.TObject<{
2578
- email: alepha1.TString;
2579
- token: alepha1.TString;
2584
+ body: alepha23.TObject<{
2585
+ email: alepha23.TString;
2586
+ token: alepha23.TString;
2580
2587
  }>;
2581
- response: alepha1.TObject<{
2582
- success: alepha1.TBoolean;
2583
- message: alepha1.TString;
2588
+ response: alepha23.TObject<{
2589
+ success: alepha23.TBoolean;
2590
+ message: alepha23.TString;
2584
2591
  }>;
2585
2592
  }>;
2586
2593
  /**
2587
2594
  * Check if an email is verified.
2588
2595
  */
2589
- checkEmailVerification: alepha_server14.ActionPrimitiveFn<{
2590
- query: alepha1.TObject<{
2591
- email: alepha1.TString;
2592
- userRealmName: alepha1.TOptional<alepha1.TString>;
2596
+ checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
2597
+ query: alepha23.TObject<{
2598
+ email: alepha23.TString;
2599
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2593
2600
  }>;
2594
- response: alepha1.TObject<{
2595
- verified: alepha1.TBoolean;
2601
+ response: alepha23.TObject<{
2602
+ verified: alepha23.TBoolean;
2596
2603
  }>;
2597
2604
  }>;
2598
2605
  }
@@ -2606,53 +2613,55 @@ declare class UserRealmController {
2606
2613
  protected readonly url = "/realms";
2607
2614
  protected readonly userRealmProvider: UserRealmProvider;
2608
2615
  protected readonly serverAuthProvider: ServerAuthProvider;
2609
- protected readonly cryptoProvider: CryptoProvider;
2610
2616
  /**
2611
2617
  * Get realm configuration settings.
2612
2618
  * This endpoint is not exposed in the API documentation.
2613
2619
  */
2614
- readonly getRealmConfig: alepha_server14.ActionPrimitiveFn<{
2615
- query: alepha1.TObject<{
2616
- userRealmName: alepha1.TOptional<alepha1.TString>;
2620
+ readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
2621
+ query: alepha23.TObject<{
2622
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2617
2623
  }>;
2618
- response: alepha1.TObject<{
2619
- settings: alepha1.TObject<{
2620
- registrationAllowed: alepha1.TBoolean;
2621
- emailEnabled: alepha1.TBoolean;
2622
- emailRequired: alepha1.TBoolean;
2623
- usernameEnabled: alepha1.TBoolean;
2624
- usernameRequired: alepha1.TBoolean;
2625
- phoneEnabled: alepha1.TBoolean;
2626
- phoneRequired: alepha1.TBoolean;
2627
- verifyEmailRequired: alepha1.TBoolean;
2628
- verifyPhoneRequired: alepha1.TBoolean;
2629
- firstNameLastNameEnabled: alepha1.TBoolean;
2630
- firstNameLastNameRequired: alepha1.TBoolean;
2631
- resetPasswordAllowed: alepha1.TBoolean;
2632
- passwordPolicy: alepha1.TObject<{
2633
- minLength: alepha1.TInteger;
2634
- requireUppercase: alepha1.TBoolean;
2635
- requireLowercase: alepha1.TBoolean;
2636
- requireNumbers: alepha1.TBoolean;
2637
- requireSpecialCharacters: alepha1.TBoolean;
2624
+ response: alepha23.TObject<{
2625
+ settings: alepha23.TObject<{
2626
+ displayName: alepha23.TOptional<alepha23.TString>;
2627
+ description: alepha23.TOptional<alepha23.TString>;
2628
+ logoUrl: alepha23.TOptional<alepha23.TString>;
2629
+ registrationAllowed: alepha23.TBoolean;
2630
+ emailEnabled: alepha23.TBoolean;
2631
+ emailRequired: alepha23.TBoolean;
2632
+ usernameEnabled: alepha23.TBoolean;
2633
+ usernameRequired: alepha23.TBoolean;
2634
+ phoneEnabled: alepha23.TBoolean;
2635
+ phoneRequired: alepha23.TBoolean;
2636
+ verifyEmailRequired: alepha23.TBoolean;
2637
+ verifyPhoneRequired: alepha23.TBoolean;
2638
+ firstNameLastNameEnabled: alepha23.TBoolean;
2639
+ firstNameLastNameRequired: alepha23.TBoolean;
2640
+ resetPasswordAllowed: alepha23.TBoolean;
2641
+ passwordPolicy: alepha23.TObject<{
2642
+ minLength: alepha23.TInteger;
2643
+ requireUppercase: alepha23.TBoolean;
2644
+ requireLowercase: alepha23.TBoolean;
2645
+ requireNumbers: alepha23.TBoolean;
2646
+ requireSpecialCharacters: alepha23.TBoolean;
2638
2647
  }>;
2639
2648
  }>;
2640
- realmName: alepha1.TString;
2641
- authenticationMethods: alepha1.TArray<alepha1.TObject<{
2642
- name: alepha1.TString;
2643
- type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2649
+ realmName: alepha23.TString;
2650
+ authenticationMethods: alepha23.TArray<alepha23.TObject<{
2651
+ name: alepha23.TString;
2652
+ type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2644
2653
  }>>;
2645
2654
  }>;
2646
2655
  }>;
2647
- readonly checkUsernameAvailability: alepha_server14.ActionPrimitiveFn<{
2648
- query: alepha1.TObject<{
2649
- userRealmName: alepha1.TOptional<alepha1.TString>;
2656
+ readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
2657
+ query: alepha23.TObject<{
2658
+ userRealmName: alepha23.TOptional<alepha23.TString>;
2650
2659
  }>;
2651
- body: alepha1.TObject<{
2652
- username: alepha1.TString;
2660
+ body: alepha23.TObject<{
2661
+ username: alepha23.TString;
2653
2662
  }>;
2654
- response: alepha1.TObject<{
2655
- available: alepha1.TBoolean;
2663
+ response: alepha23.TObject<{
2664
+ available: alepha23.TBoolean;
2656
2665
  }>;
2657
2666
  }>;
2658
2667
  }
@@ -2703,117 +2712,121 @@ interface UserRealmOptions {
2703
2712
  modules?: {
2704
2713
  files?: boolean;
2705
2714
  audits?: boolean;
2715
+ jobs?: boolean;
2706
2716
  };
2707
2717
  }
2708
2718
  //#endregion
2709
2719
  //#region ../../src/api-users/schemas/identityResourceSchema.d.ts
2710
- declare const identityResourceSchema: alepha1.TObject<{
2711
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2712
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2713
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2714
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2715
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2716
- provider: alepha1.TString;
2717
- providerUserId: alepha1.TOptional<alepha1.TString>;
2718
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2720
+ declare const identityResourceSchema: alepha23.TObject<{
2721
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2722
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2723
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2724
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2725
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2726
+ provider: alepha23.TString;
2727
+ providerUserId: alepha23.TOptional<alepha23.TString>;
2728
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2719
2729
  }>;
2720
2730
  type IdentityResource = Static<typeof identityResourceSchema>;
2721
2731
  //#endregion
2722
2732
  //#region ../../src/api-users/schemas/loginSchema.d.ts
2723
- declare const loginSchema: alepha1.TObject<{
2724
- username: alepha1.TString;
2725
- password: alepha1.TString;
2733
+ declare const loginSchema: alepha23.TObject<{
2734
+ username: alepha23.TString;
2735
+ password: alepha23.TString;
2726
2736
  }>;
2727
2737
  type LoginInput = Static<typeof loginSchema>;
2728
2738
  //#endregion
2729
2739
  //#region ../../src/api-users/schemas/registerSchema.d.ts
2730
- declare const registerSchema: alepha1.TObject<{
2731
- username: alepha1.TString;
2732
- email: alepha1.TString;
2733
- password: alepha1.TString;
2734
- confirmPassword: alepha1.TString;
2735
- firstName: alepha1.TOptional<alepha1.TString>;
2736
- lastName: alepha1.TOptional<alepha1.TString>;
2740
+ declare const registerSchema: alepha23.TObject<{
2741
+ username: alepha23.TString;
2742
+ email: alepha23.TString;
2743
+ password: alepha23.TString;
2744
+ confirmPassword: alepha23.TString;
2745
+ firstName: alepha23.TOptional<alepha23.TString>;
2746
+ lastName: alepha23.TOptional<alepha23.TString>;
2737
2747
  }>;
2738
2748
  type RegisterInput = Static<typeof registerSchema>;
2739
2749
  //#endregion
2740
2750
  //#region ../../src/api-users/schemas/resetPasswordSchema.d.ts
2741
- declare const resetPasswordRequestSchema: alepha1.TObject<{
2742
- email: alepha1.TString;
2751
+ declare const resetPasswordRequestSchema: alepha23.TObject<{
2752
+ email: alepha23.TString;
2743
2753
  }>;
2744
- declare const resetPasswordSchema: alepha1.TObject<{
2745
- token: alepha1.TString;
2746
- password: alepha1.TString;
2747
- confirmPassword: alepha1.TString;
2754
+ declare const resetPasswordSchema: alepha23.TObject<{
2755
+ token: alepha23.TString;
2756
+ password: alepha23.TString;
2757
+ confirmPassword: alepha23.TString;
2748
2758
  }>;
2749
2759
  type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
2750
2760
  type ResetPasswordInput = Static<typeof resetPasswordSchema>;
2751
2761
  //#endregion
2752
2762
  //#region ../../src/api-users/schemas/sessionResourceSchema.d.ts
2753
- declare const sessionResourceSchema: alepha1.TObject<{
2754
- id: alepha1.TString;
2755
- version: alepha1.TNumber;
2756
- createdAt: alepha1.TString;
2757
- updatedAt: alepha1.TString;
2758
- refreshToken: alepha1.TString;
2759
- userId: alepha1.TString;
2760
- expiresAt: alepha1.TString;
2761
- ip: alepha1.TOptional<alepha1.TString>;
2762
- userAgent: alepha1.TOptional<alepha1.TObject<{
2763
- os: alepha1.TString;
2764
- browser: alepha1.TString;
2765
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2763
+ declare const sessionResourceSchema: alepha23.TObject<{
2764
+ id: alepha23.TString;
2765
+ version: alepha23.TNumber;
2766
+ createdAt: alepha23.TString;
2767
+ updatedAt: alepha23.TString;
2768
+ refreshToken: alepha23.TString;
2769
+ userId: alepha23.TString;
2770
+ expiresAt: alepha23.TString;
2771
+ ip: alepha23.TOptional<alepha23.TString>;
2772
+ userAgent: alepha23.TOptional<alepha23.TObject<{
2773
+ os: alepha23.TString;
2774
+ browser: alepha23.TString;
2775
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2766
2776
  }>>;
2767
2777
  }>;
2768
2778
  type SessionResource = Static<typeof sessionResourceSchema>;
2769
2779
  //#endregion
2770
2780
  //#region ../../src/api-users/schemas/userRealmConfigSchema.d.ts
2771
- declare const userRealmConfigSchema: alepha1.TObject<{
2772
- settings: alepha1.TObject<{
2773
- registrationAllowed: alepha1.TBoolean;
2774
- emailEnabled: alepha1.TBoolean;
2775
- emailRequired: alepha1.TBoolean;
2776
- usernameEnabled: alepha1.TBoolean;
2777
- usernameRequired: alepha1.TBoolean;
2778
- phoneEnabled: alepha1.TBoolean;
2779
- phoneRequired: alepha1.TBoolean;
2780
- verifyEmailRequired: alepha1.TBoolean;
2781
- verifyPhoneRequired: alepha1.TBoolean;
2782
- firstNameLastNameEnabled: alepha1.TBoolean;
2783
- firstNameLastNameRequired: alepha1.TBoolean;
2784
- resetPasswordAllowed: alepha1.TBoolean;
2785
- passwordPolicy: alepha1.TObject<{
2786
- minLength: alepha1.TInteger;
2787
- requireUppercase: alepha1.TBoolean;
2788
- requireLowercase: alepha1.TBoolean;
2789
- requireNumbers: alepha1.TBoolean;
2790
- requireSpecialCharacters: alepha1.TBoolean;
2781
+ declare const userRealmConfigSchema: alepha23.TObject<{
2782
+ settings: alepha23.TObject<{
2783
+ displayName: alepha23.TOptional<alepha23.TString>;
2784
+ description: alepha23.TOptional<alepha23.TString>;
2785
+ logoUrl: alepha23.TOptional<alepha23.TString>;
2786
+ registrationAllowed: alepha23.TBoolean;
2787
+ emailEnabled: alepha23.TBoolean;
2788
+ emailRequired: alepha23.TBoolean;
2789
+ usernameEnabled: alepha23.TBoolean;
2790
+ usernameRequired: alepha23.TBoolean;
2791
+ phoneEnabled: alepha23.TBoolean;
2792
+ phoneRequired: alepha23.TBoolean;
2793
+ verifyEmailRequired: alepha23.TBoolean;
2794
+ verifyPhoneRequired: alepha23.TBoolean;
2795
+ firstNameLastNameEnabled: alepha23.TBoolean;
2796
+ firstNameLastNameRequired: alepha23.TBoolean;
2797
+ resetPasswordAllowed: alepha23.TBoolean;
2798
+ passwordPolicy: alepha23.TObject<{
2799
+ minLength: alepha23.TInteger;
2800
+ requireUppercase: alepha23.TBoolean;
2801
+ requireLowercase: alepha23.TBoolean;
2802
+ requireNumbers: alepha23.TBoolean;
2803
+ requireSpecialCharacters: alepha23.TBoolean;
2791
2804
  }>;
2792
2805
  }>;
2793
- realmName: alepha1.TString;
2794
- authenticationMethods: alepha1.TArray<alepha1.TObject<{
2795
- name: alepha1.TString;
2796
- type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2806
+ realmName: alepha23.TString;
2807
+ authenticationMethods: alepha23.TArray<alepha23.TObject<{
2808
+ name: alepha23.TString;
2809
+ type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
2797
2810
  }>>;
2798
2811
  }>;
2799
2812
  type UserRealmConfig = Static<typeof userRealmConfigSchema>;
2800
2813
  //#endregion
2801
2814
  //#region ../../src/api-users/schemas/userResourceSchema.d.ts
2802
- declare const userResourceSchema: alepha1.TObject<{
2803
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2804
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2805
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2806
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2807
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2808
- username: alepha1.TOptional<alepha1.TString>;
2809
- email: alepha1.TOptional<alepha1.TString>;
2810
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2811
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2812
- firstName: alepha1.TOptional<alepha1.TString>;
2813
- lastName: alepha1.TOptional<alepha1.TString>;
2814
- picture: alepha1.TOptional<alepha1.TString>;
2815
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2816
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2815
+ declare const userResourceSchema: alepha23.TObject<{
2816
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2817
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2818
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2819
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2820
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2821
+ username: alepha23.TOptional<alepha23.TString>;
2822
+ email: alepha23.TOptional<alepha23.TString>;
2823
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2824
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2825
+ firstName: alepha23.TOptional<alepha23.TString>;
2826
+ lastName: alepha23.TOptional<alepha23.TString>;
2827
+ picture: alepha23.TOptional<alepha23.TString>;
2828
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2829
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2817
2830
  }>;
2818
2831
  type UserResource = Static<typeof userResourceSchema>;
2819
2832
  //#endregion
@@ -2823,50 +2836,50 @@ declare class SessionService {
2823
2836
  protected readonly fsp: FileSystemProvider;
2824
2837
  protected readonly dateTimeProvider: DateTimeProvider;
2825
2838
  protected readonly cryptoProvider: CryptoProvider;
2826
- protected readonly log: alepha_logger0.Logger;
2839
+ protected readonly log: alepha_logger1.Logger;
2827
2840
  protected readonly userRealmProvider: UserRealmProvider;
2828
2841
  protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
2829
- users(userRealmName?: string): Repository$1<alepha1.TObject<{
2830
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2831
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2832
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2833
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2834
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2835
- username: alepha1.TOptional<alepha1.TString>;
2836
- email: alepha1.TOptional<alepha1.TString>;
2837
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2838
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2839
- firstName: alepha1.TOptional<alepha1.TString>;
2840
- lastName: alepha1.TOptional<alepha1.TString>;
2841
- picture: alepha1.TOptional<alepha1.TString>;
2842
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2843
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2842
+ users(userRealmName?: string): Repository$1<alepha23.TObject<{
2843
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2844
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2845
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2846
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2847
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2848
+ username: alepha23.TOptional<alepha23.TString>;
2849
+ email: alepha23.TOptional<alepha23.TString>;
2850
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2851
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2852
+ firstName: alepha23.TOptional<alepha23.TString>;
2853
+ lastName: alepha23.TOptional<alepha23.TString>;
2854
+ picture: alepha23.TOptional<alepha23.TString>;
2855
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2856
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2844
2857
  }>>;
2845
- sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
2846
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2847
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2848
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2849
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2850
- refreshToken: alepha1.TString;
2851
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2852
- expiresAt: alepha1.TString;
2853
- ip: alepha1.TOptional<alepha1.TString>;
2854
- userAgent: alepha1.TOptional<alepha1.TObject<{
2855
- os: alepha1.TString;
2856
- browser: alepha1.TString;
2857
- device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2858
+ sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
2859
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2860
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2861
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2862
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2863
+ refreshToken: alepha23.TString;
2864
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2865
+ expiresAt: alepha23.TString;
2866
+ ip: alepha23.TOptional<alepha23.TString>;
2867
+ userAgent: alepha23.TOptional<alepha23.TObject<{
2868
+ os: alepha23.TString;
2869
+ browser: alepha23.TString;
2870
+ device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
2858
2871
  }>>;
2859
2872
  }>>;
2860
- identities(userRealmName?: string): Repository$1<alepha1.TObject<{
2861
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2862
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2863
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2864
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2865
- userId: PgAttr<alepha1.TString, typeof PG_REF>;
2866
- password: alepha1.TOptional<alepha1.TString>;
2867
- provider: alepha1.TString;
2868
- providerUserId: alepha1.TOptional<alepha1.TString>;
2869
- providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
2873
+ identities(userRealmName?: string): Repository$1<alepha23.TObject<{
2874
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2875
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2876
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2877
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2878
+ userId: PgAttr<alepha23.TString, typeof PG_REF>;
2879
+ password: alepha23.TOptional<alepha23.TString>;
2880
+ provider: alepha23.TString;
2881
+ providerUserId: alepha23.TOptional<alepha23.TString>;
2882
+ providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
2870
2883
  }>>;
2871
2884
  /**
2872
2885
  * Random delay to prevent timing attacks (50-200ms)
@@ -2882,56 +2895,56 @@ declare class SessionService {
2882
2895
  sessionId: string;
2883
2896
  }>;
2884
2897
  refreshSession(refreshToken: string, userRealmName?: string): Promise<{
2885
- user: PgStatic<alepha1.TObject<{
2886
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2887
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2888
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2889
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2890
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2891
- username: alepha1.TOptional<alepha1.TString>;
2892
- email: alepha1.TOptional<alepha1.TString>;
2893
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2894
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2895
- firstName: alepha1.TOptional<alepha1.TString>;
2896
- lastName: alepha1.TOptional<alepha1.TString>;
2897
- picture: alepha1.TOptional<alepha1.TString>;
2898
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2899
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2900
- }>, PgRelationMap<alepha1.TObject<{
2901
- id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2902
- version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2903
- createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2904
- updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2905
- realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
2906
- username: alepha1.TOptional<alepha1.TString>;
2907
- email: alepha1.TOptional<alepha1.TString>;
2908
- phoneNumber: alepha1.TOptional<alepha1.TString>;
2909
- roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
2910
- firstName: alepha1.TOptional<alepha1.TString>;
2911
- lastName: alepha1.TOptional<alepha1.TString>;
2912
- picture: alepha1.TOptional<alepha1.TString>;
2913
- enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2914
- emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
2898
+ user: PgStatic<alepha23.TObject<{
2899
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2900
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2901
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2902
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2903
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2904
+ username: alepha23.TOptional<alepha23.TString>;
2905
+ email: alepha23.TOptional<alepha23.TString>;
2906
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2907
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2908
+ firstName: alepha23.TOptional<alepha23.TString>;
2909
+ lastName: alepha23.TOptional<alepha23.TString>;
2910
+ picture: alepha23.TOptional<alepha23.TString>;
2911
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2912
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2913
+ }>, PgRelationMap<alepha23.TObject<{
2914
+ id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
2915
+ version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
2916
+ createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
2917
+ updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
2918
+ realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
2919
+ username: alepha23.TOptional<alepha23.TString>;
2920
+ email: alepha23.TOptional<alepha23.TString>;
2921
+ phoneNumber: alepha23.TOptional<alepha23.TString>;
2922
+ roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
2923
+ firstName: alepha23.TOptional<alepha23.TString>;
2924
+ lastName: alepha23.TOptional<alepha23.TString>;
2925
+ picture: alepha23.TOptional<alepha23.TString>;
2926
+ enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2927
+ emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
2915
2928
  }>>>;
2916
2929
  expiresIn: number;
2917
2930
  sessionId: string;
2918
2931
  }>;
2919
2932
  deleteSession(refreshToken: string, userRealmName?: string): Promise<void>;
2920
2933
  link(provider: string, profile: OAuth2Profile, userRealmName?: string): Promise<{
2921
- username?: string | undefined;
2922
2934
  email?: string | undefined;
2935
+ username?: string | undefined;
2923
2936
  phoneNumber?: string | undefined;
2924
2937
  firstName?: string | undefined;
2925
2938
  lastName?: string | undefined;
2926
2939
  picture?: string | undefined;
2927
- enabled: boolean;
2928
- emailVerified: boolean;
2929
- roles: string[];
2930
2940
  id: string;
2931
2941
  version: number;
2932
2942
  createdAt: string;
2933
2943
  updatedAt: string;
2934
2944
  realm: string;
2945
+ roles: string[];
2946
+ enabled: boolean;
2947
+ emailVerified: boolean;
2935
2948
  } | {
2936
2949
  sub: string;
2937
2950
  email?: string;
@@ -2973,7 +2986,7 @@ declare class SessionService {
2973
2986
  *
2974
2987
  * @module alepha.api.users
2975
2988
  */
2976
- declare const AlephaApiUsers: alepha1.Service<alepha1.Module>;
2989
+ declare const AlephaApiUsers: alepha23.Service<alepha23.Module>;
2977
2990
  //#endregion
2978
2991
  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 };
2979
2992
  //# sourceMappingURL=index.d.ts.map