alepha 0.20.6 → 0.20.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 (243) hide show
  1. package/AGENTS.md +0 -1
  2. package/CLAUDE.md +0 -1
  3. package/assets/agents-template.md +0 -1
  4. package/dist/api/audits/index.browser.js +1 -0
  5. package/dist/api/audits/index.browser.js.map +1 -1
  6. package/dist/api/audits/index.d.ts +370 -355
  7. package/dist/api/audits/index.d.ts.map +1 -1
  8. package/dist/api/audits/index.js +1 -0
  9. package/dist/api/audits/index.js.map +1 -1
  10. package/dist/api/files/index.browser.js +1 -0
  11. package/dist/api/files/index.browser.js.map +1 -1
  12. package/dist/api/files/index.d.ts +179 -170
  13. package/dist/api/files/index.d.ts.map +1 -1
  14. package/dist/api/files/index.js +1 -0
  15. package/dist/api/files/index.js.map +1 -1
  16. package/dist/api/jobs/index.browser.js +7 -0
  17. package/dist/api/jobs/index.browser.js.map +1 -1
  18. package/dist/api/jobs/index.d.ts +271 -262
  19. package/dist/api/jobs/index.d.ts.map +1 -1
  20. package/dist/api/jobs/index.js +21 -3
  21. package/dist/api/jobs/index.js.map +1 -1
  22. package/dist/api/keys/index.d.ts +198 -192
  23. package/dist/api/keys/index.d.ts.map +1 -1
  24. package/dist/api/keys/index.js +1 -0
  25. package/dist/api/keys/index.js.map +1 -1
  26. package/dist/api/notifications/index.d.ts +246 -245
  27. package/dist/api/notifications/index.d.ts.map +1 -1
  28. package/dist/api/organizations/index.d.ts +100 -97
  29. package/dist/api/organizations/index.d.ts.map +1 -1
  30. package/dist/api/parameters/index.d.ts +323 -320
  31. package/dist/api/parameters/index.d.ts.map +1 -1
  32. package/dist/api/payments/index.d.ts +431 -376
  33. package/dist/api/payments/index.d.ts.map +1 -1
  34. package/dist/api/payments/index.js +202 -87
  35. package/dist/api/payments/index.js.map +1 -1
  36. package/dist/api/subscriptions/index.d.ts +1695 -0
  37. package/dist/api/subscriptions/index.d.ts.map +1 -0
  38. package/dist/api/subscriptions/index.js +1919 -0
  39. package/dist/api/subscriptions/index.js.map +1 -0
  40. package/dist/api/users/index.d.ts +863 -847
  41. package/dist/api/users/index.d.ts.map +1 -1
  42. package/dist/api/verifications/index.d.ts +126 -125
  43. package/dist/api/verifications/index.d.ts.map +1 -1
  44. package/dist/bucket/index.d.ts +3 -2
  45. package/dist/bucket/index.d.ts.map +1 -1
  46. package/dist/cache/core/index.d.ts +114 -4
  47. package/dist/cache/core/index.d.ts.map +1 -1
  48. package/dist/cache/core/index.js +181 -15
  49. package/dist/cache/core/index.js.map +1 -1
  50. package/dist/cache/core/index.workerd.js +181 -15
  51. package/dist/cache/core/index.workerd.js.map +1 -1
  52. package/dist/cache/database/index.d.ts +20 -19
  53. package/dist/cache/database/index.d.ts.map +1 -1
  54. package/dist/cache/redis/index.d.ts +3 -2
  55. package/dist/cache/redis/index.d.ts.map +1 -1
  56. package/dist/cli/core/index.d.ts +113 -129
  57. package/dist/cli/core/index.d.ts.map +1 -1
  58. package/dist/cli/core/index.js +75 -7
  59. package/dist/cli/core/index.js.map +1 -1
  60. package/dist/cli/devtools/index.d.ts +3 -2
  61. package/dist/cli/devtools/index.d.ts.map +1 -1
  62. package/dist/cli/platform/index.d.ts +346 -290
  63. package/dist/cli/platform/index.d.ts.map +1 -1
  64. package/dist/cli/platform/index.js +105 -6
  65. package/dist/cli/platform/index.js.map +1 -1
  66. package/dist/cli/vendor/index.d.ts +12 -11
  67. package/dist/cli/vendor/index.d.ts.map +1 -1
  68. package/dist/command/index.d.ts +5 -4
  69. package/dist/command/index.d.ts.map +1 -1
  70. package/dist/core/index.browser.js +1 -1
  71. package/dist/core/index.browser.js.map +1 -1
  72. package/dist/core/index.d.ts +119 -118
  73. package/dist/core/index.d.ts.map +1 -1
  74. package/dist/core/index.js +1 -1
  75. package/dist/core/index.js.map +1 -1
  76. package/dist/core/index.native.js +1 -1
  77. package/dist/core/index.native.js.map +1 -1
  78. package/dist/core/index.workerd.js +1 -1
  79. package/dist/core/index.workerd.js.map +1 -1
  80. package/dist/crypto/index.d.ts +3 -2
  81. package/dist/crypto/index.d.ts.map +1 -1
  82. package/dist/email/core/index.d.ts +3 -2
  83. package/dist/email/core/index.d.ts.map +1 -1
  84. package/dist/email/smtp/index.d.ts +7 -6
  85. package/dist/email/smtp/index.d.ts.map +1 -1
  86. package/dist/lock/core/index.d.ts +5 -4
  87. package/dist/lock/core/index.d.ts.map +1 -1
  88. package/dist/logger/index.d.ts +10 -9
  89. package/dist/logger/index.d.ts.map +1 -1
  90. package/dist/mcp/index.d.ts +9 -8
  91. package/dist/mcp/index.d.ts.map +1 -1
  92. package/dist/mcp/index.js +1 -1
  93. package/dist/mcp/index.js.map +1 -1
  94. package/dist/orm/core/index.browser.js +9 -3
  95. package/dist/orm/core/index.browser.js.map +1 -1
  96. package/dist/orm/core/index.bun.js +31 -10
  97. package/dist/orm/core/index.bun.js.map +1 -1
  98. package/dist/orm/core/index.d.ts +33 -14
  99. package/dist/orm/core/index.d.ts.map +1 -1
  100. package/dist/orm/core/index.js +31 -10
  101. package/dist/orm/core/index.js.map +1 -1
  102. package/dist/orm/postgres/index.d.ts +6 -5
  103. package/dist/orm/postgres/index.d.ts.map +1 -1
  104. package/dist/queue/core/index.d.ts +5 -4
  105. package/dist/queue/core/index.d.ts.map +1 -1
  106. package/dist/queue/redis/index.d.ts +3 -2
  107. package/dist/queue/redis/index.d.ts.map +1 -1
  108. package/dist/react/form/index.d.ts +5 -0
  109. package/dist/react/form/index.d.ts.map +1 -1
  110. package/dist/react/form/index.js +6 -4
  111. package/dist/react/form/index.js.map +1 -1
  112. package/dist/react/i18n/index.d.ts +2 -1
  113. package/dist/react/i18n/index.d.ts.map +1 -1
  114. package/dist/react/router/index.d.ts +206 -205
  115. package/dist/react/router/index.d.ts.map +1 -1
  116. package/dist/react/ui/index.d.ts +11 -11
  117. package/dist/react/ui/index.d.ts.map +1 -1
  118. package/dist/scheduler/index.d.ts +3 -2
  119. package/dist/scheduler/index.d.ts.map +1 -1
  120. package/dist/security/index.browser.js +29 -1
  121. package/dist/security/index.browser.js.map +1 -1
  122. package/dist/security/index.d.ts +82 -35
  123. package/dist/security/index.d.ts.map +1 -1
  124. package/dist/security/index.js +56 -3
  125. package/dist/security/index.js.map +1 -1
  126. package/dist/server/auth/index.d.ts +163 -158
  127. package/dist/server/auth/index.d.ts.map +1 -1
  128. package/dist/server/auth/index.js +16 -4
  129. package/dist/server/auth/index.js.map +1 -1
  130. package/dist/server/core/index.d.ts +35 -34
  131. package/dist/server/core/index.d.ts.map +1 -1
  132. package/dist/server/cors/index.d.ts +7 -6
  133. package/dist/server/cors/index.d.ts.map +1 -1
  134. package/dist/server/health/index.d.ts +16 -15
  135. package/dist/server/health/index.d.ts.map +1 -1
  136. package/dist/server/links/index.d.ts +51 -50
  137. package/dist/server/links/index.d.ts.map +1 -1
  138. package/dist/server/rate-limit/index.d.ts +6 -5
  139. package/dist/server/rate-limit/index.d.ts.map +1 -1
  140. package/dist/server/swagger/index.d.ts +2 -1
  141. package/dist/server/swagger/index.d.ts.map +1 -1
  142. package/dist/topic/redis/index.d.ts +3 -2
  143. package/dist/topic/redis/index.d.ts.map +1 -1
  144. package/package.json +16 -32
  145. package/src/api/audits/entities/audits.ts +1 -0
  146. package/src/api/files/entities/files.ts +1 -0
  147. package/src/api/jobs/__tests__/$job.spec.ts +92 -40
  148. package/src/api/jobs/entities/jobExecutionEntity.ts +1 -0
  149. package/src/api/jobs/providers/JobProvider.ts +20 -5
  150. package/src/api/jobs/schemas/jobConfigAtom.ts +5 -0
  151. package/src/api/keys/entities/apiKeyEntity.ts +1 -0
  152. package/src/api/payments/controllers/MockCheckoutController.ts +146 -0
  153. package/src/api/payments/index.ts +3 -0
  154. package/src/api/payments/providers/MemoryPaymentProvider.ts +9 -4
  155. package/src/api/payments/providers/PaymentProvider.ts +25 -9
  156. package/src/api/payments/services/PaymentService.ts +3 -0
  157. package/src/api/subscriptions/__tests__/BillingService.spec.ts +218 -0
  158. package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +278 -0
  159. package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +212 -0
  160. package/src/api/subscriptions/controllers/SubscriptionController.ts +189 -0
  161. package/src/api/subscriptions/entities/subscriptionEvents.ts +54 -0
  162. package/src/api/subscriptions/entities/subscriptions.ts +68 -0
  163. package/src/api/subscriptions/index.ts +133 -0
  164. package/src/api/subscriptions/jobs/SubscriptionJobs.ts +382 -0
  165. package/src/api/subscriptions/middleware/$requireLimit.ts +50 -0
  166. package/src/api/subscriptions/middleware/$requirePlan.ts +49 -0
  167. package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +110 -0
  168. package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +8 -0
  169. package/src/api/subscriptions/schemas/changePlanSchema.ts +9 -0
  170. package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +11 -0
  171. package/src/api/subscriptions/schemas/entitlementsSchema.ts +21 -0
  172. package/src/api/subscriptions/schemas/mrrSchema.ts +13 -0
  173. package/src/api/subscriptions/schemas/planDefinitionSchema.ts +71 -0
  174. package/src/api/subscriptions/schemas/planResourceSchema.ts +25 -0
  175. package/src/api/subscriptions/schemas/subscriptionEventResourceSchema.ts +8 -0
  176. package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +19 -0
  177. package/src/api/subscriptions/schemas/subscriptionResourceSchema.ts +6 -0
  178. package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +32 -0
  179. package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +23 -0
  180. package/src/api/subscriptions/services/BillingService.ts +437 -0
  181. package/src/api/subscriptions/services/SubscriptionConfig.ts +56 -0
  182. package/src/api/subscriptions/services/SubscriptionService.ts +867 -0
  183. package/src/api/subscriptions/services/UsageService.ts +118 -0
  184. package/src/cache/core/__tests__/$cache.memory.spec.ts +450 -0
  185. package/src/cache/core/__tests__/$cache.swr.spec.ts +394 -0
  186. package/src/cache/core/index.ts +16 -0
  187. package/src/cache/core/primitives/$cache.ts +347 -21
  188. package/src/cli/core/tasks/BuildCloudflareTask.ts +16 -0
  189. package/src/cli/core/templates/agentMd.ts +39 -4
  190. package/src/cli/core/templates/biomeJson.ts +25 -1
  191. package/src/cli/core/templates/saasAdminLayoutTsx.ts +2 -2
  192. package/src/cli/platform/__tests__/CloudflareAdapter.spec.ts +117 -0
  193. package/src/cli/platform/adapters/CloudflareAdapter.ts +104 -7
  194. package/src/cli/platform/atoms/platformOptions.ts +13 -0
  195. package/src/cli/platform/schemas/platform.ts +1 -0
  196. package/src/cli/platform/services/CloudflareApi.ts +61 -0
  197. package/src/cli/platform/services/PlatformOrchestrator.ts +9 -4
  198. package/src/core/__tests__/$module.spec.ts +2 -2
  199. package/src/core/primitives/$module.ts +4 -4
  200. package/src/mcp/providers/McpServerProvider.ts +1 -1
  201. package/src/orm/core/providers/DatabaseTypeProvider.ts +9 -3
  202. package/src/orm/core/providers/drivers/DatabaseProvider.ts +1 -1
  203. package/src/orm/core/schemas/insertSchema.ts +10 -2
  204. package/src/orm/core/services/Repository.ts +27 -7
  205. package/src/react/form/hooks/useFormState.ts +8 -1
  206. package/src/react/form/index.ts +10 -1
  207. package/src/react/form/services/FormModel.ts +9 -3
  208. package/src/security/atoms/currentTenantAtom.ts +34 -0
  209. package/src/security/index.browser.ts +1 -0
  210. package/src/security/index.ts +12 -1
  211. package/src/security/primitives/$issuer.ts +17 -1
  212. package/src/security/providers/SecurityProvider.ts +37 -0
  213. package/src/server/auth/__tests__/validateRedirectUri.spec.ts +78 -0
  214. package/src/server/auth/providers/ServerAuthProvider.ts +21 -5
  215. package/tsconfig.base.json +2 -1
  216. package/dist/react/websocket/index.d.ts +0 -117
  217. package/dist/react/websocket/index.d.ts.map +0 -1
  218. package/dist/react/websocket/index.js +0 -108
  219. package/dist/react/websocket/index.js.map +0 -1
  220. package/dist/websocket/index.browser.js +0 -848
  221. package/dist/websocket/index.browser.js.map +0 -1
  222. package/dist/websocket/index.d.ts +0 -876
  223. package/dist/websocket/index.d.ts.map +0 -1
  224. package/dist/websocket/index.js +0 -1185
  225. package/dist/websocket/index.js.map +0 -1
  226. package/src/react/websocket/hooks/useRoom.tsx +0 -251
  227. package/src/react/websocket/index.ts +0 -7
  228. package/src/websocket/__tests__/$channel.spec.ts +0 -30
  229. package/src/websocket/__tests__/$websocket-new.spec.ts +0 -195
  230. package/src/websocket/__tests__/RoomManager.spec.ts +0 -146
  231. package/src/websocket/__tests__/websocket-integration.spec.ts +0 -951
  232. package/src/websocket/errors/WebSocketError.ts +0 -34
  233. package/src/websocket/index.browser.ts +0 -25
  234. package/src/websocket/index.shared.ts +0 -8
  235. package/src/websocket/index.ts +0 -85
  236. package/src/websocket/interfaces/WebSocketInterfaces.ts +0 -252
  237. package/src/websocket/primitives/$channel.ts +0 -131
  238. package/src/websocket/primitives/$websocket.ts +0 -107
  239. package/src/websocket/providers/NodeWebSocketServerProvider.ts +0 -617
  240. package/src/websocket/providers/WebSocketServerProvider.ts +0 -56
  241. package/src/websocket/services/RoomManager.ts +0 -160
  242. package/src/websocket/services/WebSocketClient.ts +0 -642
  243. package/src/websocket/services/WebSocketTopicService.ts +0 -108
@@ -52,39 +52,39 @@ type FieldRequirement = "none" | "optional" | "required";
52
52
  * collision behavior.
53
53
  */
54
54
  type UsernameFieldRequirement = FieldRequirement | "email";
55
- declare const realmAuthSettingsAtom: _$alepha.Atom<_$alepha.TObject<{
56
- displayName: _$alepha.TOptional<_$alepha.TString>;
57
- description: _$alepha.TOptional<_$alepha.TString>;
58
- logoUrl: _$alepha.TOptional<_$alepha.TString>;
59
- registrationAllowed: _$alepha.TBoolean;
60
- email: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
61
- username: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">, _$typebox.TLiteral<"email">]>;
62
- usernameRegExp: _$alepha.TString;
63
- usernameBlocklist: _$alepha.TArray<_$alepha.TString>;
64
- phoneNumber: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
65
- verifyEmailRequired: _$alepha.TBoolean;
66
- verifyPhoneRequired: _$alepha.TBoolean;
67
- firstNameLastName: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
68
- resetPasswordAllowed: _$alepha.TBoolean;
69
- captchaRequired: _$alepha.TBoolean;
70
- adminEmails: _$alepha.TArray<_$alepha.TString>;
71
- adminUsernames: _$alepha.TArray<_$alepha.TString>;
72
- defaultRoles: _$alepha.TArray<_$alepha.TString>;
73
- verifyEmailUrl: _$alepha.TOptional<_$alepha.TString>;
74
- passwordPolicy: _$alepha.TObject<{
75
- minLength: _$alepha.TInteger;
76
- requireUppercase: _$alepha.TBoolean;
77
- requireLowercase: _$alepha.TBoolean;
78
- requireNumbers: _$alepha.TBoolean;
79
- requireSpecialCharacters: _$alepha.TBoolean;
55
+ declare const realmAuthSettingsAtom: _$alepha.Atom<_$typebox.TObject<{
56
+ displayName: _$typebox.TOptional<_$typebox.TString>;
57
+ description: _$typebox.TOptional<_$typebox.TString>;
58
+ logoUrl: _$typebox.TOptional<_$typebox.TString>;
59
+ registrationAllowed: _$typebox.TBoolean;
60
+ email: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
61
+ username: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">, _$typebox.TLiteral<"email">]>;
62
+ usernameRegExp: _$typebox.TString;
63
+ usernameBlocklist: _$typebox.TArray<_$typebox.TString>;
64
+ phoneNumber: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
65
+ verifyEmailRequired: _$typebox.TBoolean;
66
+ verifyPhoneRequired: _$typebox.TBoolean;
67
+ firstNameLastName: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
68
+ resetPasswordAllowed: _$typebox.TBoolean;
69
+ captchaRequired: _$typebox.TBoolean;
70
+ adminEmails: _$typebox.TArray<_$typebox.TString>;
71
+ adminUsernames: _$typebox.TArray<_$typebox.TString>;
72
+ defaultRoles: _$typebox.TArray<_$typebox.TString>;
73
+ verifyEmailUrl: _$typebox.TOptional<_$typebox.TString>;
74
+ passwordPolicy: _$typebox.TObject<{
75
+ minLength: _$typebox.TInteger;
76
+ requireUppercase: _$typebox.TBoolean;
77
+ requireLowercase: _$typebox.TBoolean;
78
+ requireNumbers: _$typebox.TBoolean;
79
+ requireSpecialCharacters: _$typebox.TBoolean;
80
80
  }>;
81
- loginRateLimit: _$alepha.TObject<{
82
- ipMaxAttempts: _$alepha.TInteger;
83
- accountMaxAttempts: _$alepha.TInteger;
84
- windowMs: _$alepha.TInteger;
81
+ loginRateLimit: _$typebox.TObject<{
82
+ ipMaxAttempts: _$typebox.TInteger;
83
+ accountMaxAttempts: _$typebox.TInteger;
84
+ windowMs: _$typebox.TInteger;
85
85
  }>;
86
- refreshToken: _$alepha.TObject<{
87
- expirationIdle: _$alepha.TOptional<_$alepha.TInteger>;
86
+ refreshToken: _$typebox.TObject<{
87
+ expirationIdle: _$typebox.TOptional<_$typebox.TInteger>;
88
88
  }>;
89
89
  }>, "alepha.api.users.realmAuthSettings">;
90
90
  type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
@@ -120,9 +120,10 @@ declare class UserAudits {
120
120
  type: string;
121
121
  id: string;
122
122
  createdAt: string;
123
+ organizationId: string;
124
+ success: boolean;
123
125
  action: string;
124
126
  severity: "info" | "warning" | "critical";
125
- success: boolean;
126
127
  }>;
127
128
  /**
128
129
  * Record an authentication-related audit event.
@@ -143,9 +144,10 @@ declare class UserAudits {
143
144
  type: string;
144
145
  id: string;
145
146
  createdAt: string;
147
+ organizationId: string;
148
+ success: boolean;
146
149
  action: string;
147
150
  severity: "info" | "warning" | "critical";
148
- success: boolean;
149
151
  }>;
150
152
  /**
151
153
  * Record a generic audit event.
@@ -166,9 +168,10 @@ declare class UserAudits {
166
168
  type: string;
167
169
  id: string;
168
170
  createdAt: string;
171
+ organizationId: string;
172
+ success: boolean;
169
173
  action: string;
170
174
  severity: "info" | "warning" | "critical";
171
- success: boolean;
172
175
  }>;
173
176
  }
174
177
  //#endregion
@@ -203,6 +206,8 @@ type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["properties"] as
203
206
  [PG_GENERATED]: any;
204
207
  } ? never : K]: T["properties"][K] extends {
205
208
  [PG_DEFAULT]: any;
209
+ } | {
210
+ [PG_ORGANIZATION]: any;
206
211
  } | {
207
212
  "~optional": true;
208
213
  } ? TOptional<T["properties"][K]> : T["properties"][K] }>;
@@ -6194,7 +6199,7 @@ declare abstract class DatabaseProvider {
6194
6199
  * Migration tracking table name, scoped by schema.
6195
6200
  *
6196
6201
  * Returns `migrations_{schema}` so that multiple schemas sharing the same
6197
- * database each get their own migration history (e.g. `migrations_roadmap`,
6202
+ * database each get their own migration history (e.g. `migrations_lore`,
6198
6203
  * `migrations_public`).
6199
6204
  */
6200
6205
  get migrationsTable(): string;
@@ -6645,6 +6650,17 @@ declare abstract class Repository$1<T extends TObject> {
6645
6650
  protected deletedAt(): PgAttrField | undefined;
6646
6651
  protected withOrganization(where: PgQueryWhereOrSQL<T>): PgQueryWhereOrSQL<T>;
6647
6652
  protected stampOrganization(data: any): void;
6653
+ /**
6654
+ * Resolve the value used for `PG_ORGANIZATION` scoping.
6655
+ *
6656
+ * Priority:
6657
+ * 1. Request-bound tenant (`currentTenantAtom`) — set by an app-level
6658
+ * middleware from the request `Host`. Lets cross-tenant users (admins,
6659
+ * agency operators) be scoped to the tenant they are acting in rather
6660
+ * than the one they belong to.
6661
+ * 2. Authenticated user's `organization` — the legacy single-tenant case.
6662
+ */
6663
+ protected resolveOrganizationValue(): string | undefined;
6648
6664
  protected organizationField(): PgAttrField | undefined;
6649
6665
  /**
6650
6666
  * Convert something to valid Pg Insert Value.
@@ -6747,8 +6763,8 @@ type WithSQL<T> = { [P in keyof T]?: T[P] | SQL };
6747
6763
  * - `d1://BINDING_NAME` — Cloudflare D1
6748
6764
  * - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
6749
6765
  */
6750
- declare const databaseEnvSchema: _$alepha.TObject<{
6751
- DATABASE_URL: _$alepha.TOptional<_$alepha.TString>;
6766
+ declare const databaseEnvSchema: _$typebox.TObject<{
6767
+ DATABASE_URL: _$typebox.TOptional<_$typebox.TString>;
6752
6768
  /**
6753
6769
  * Enable or disable push-based schema synchronization (drizzle-kit push).
6754
6770
  *
@@ -6756,68 +6772,68 @@ declare const databaseEnvSchema: _$alepha.TObject<{
6756
6772
  * Set to `false` in development to skip automatic schema sync
6757
6773
  * (e.g. when managing migrations manually).
6758
6774
  */
6759
- DATABASE_SYNC: _$alepha.TOptional<_$alepha.TBoolean>;
6775
+ DATABASE_SYNC: _$typebox.TOptional<_$typebox.TBoolean>;
6760
6776
  }>;
6761
6777
  declare module "alepha" {
6762
6778
  interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
6763
6779
  } //# sourceMappingURL=databaseEnvSchema.d.ts.map
6764
6780
  //#endregion
6765
6781
  //#region ../../src/api/users/entities/identities.d.ts
6766
- declare const identities: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
6767
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6768
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6769
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6770
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6771
- userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
6772
- password: _$alepha.TOptional<_$alepha.TString>;
6773
- provider: _$alepha.TString;
6774
- providerUserId: _$alepha.TOptional<_$alepha.TString>;
6775
- providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
6782
+ declare const identities: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
6783
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6784
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6785
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6786
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6787
+ userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
6788
+ password: _$typebox.TOptional<_$typebox.TString>;
6789
+ provider: _$typebox.TString;
6790
+ providerUserId: _$typebox.TOptional<_$typebox.TString>;
6791
+ providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
6776
6792
  }>>;
6777
6793
  type IdentityEntity = Static<typeof identities.schema>;
6778
6794
  //#endregion
6779
6795
  //#region ../../src/api/users/entities/sessions.d.ts
6780
- declare const sessions: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
6781
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6782
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6783
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6784
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6785
- refreshToken: _$alepha.TString;
6786
- userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
6787
- expiresAt: _$alepha.TString;
6796
+ declare const sessions: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
6797
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6798
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6799
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6800
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6801
+ refreshToken: _$typebox.TString;
6802
+ userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
6803
+ expiresAt: _$typebox.TString;
6788
6804
  /**
6789
6805
  * Last time the session was used to refresh an access token.
6790
6806
  * Used by realm `refreshToken.expirationIdle` to invalidate idle sessions.
6791
6807
  * `null` on existing rows pre-migration — falls back to `createdAt`.
6792
6808
  */
6793
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
6794
- ip: _$alepha.TOptional<_$alepha.TString>;
6795
- userAgent: _$alepha.TOptional<_$alepha.TObject<{
6796
- os: _$alepha.TString;
6797
- browser: _$alepha.TString;
6798
- device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6809
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
6810
+ ip: _$typebox.TOptional<_$typebox.TString>;
6811
+ userAgent: _$typebox.TOptional<_$typebox.TObject<{
6812
+ os: _$typebox.TString;
6813
+ browser: _$typebox.TString;
6814
+ device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6799
6815
  }>>;
6800
6816
  }>>;
6801
6817
  type SessionEntity = Static<typeof sessions.schema>;
6802
6818
  //#endregion
6803
6819
  //#region ../../src/api/users/entities/users.d.ts
6804
6820
  declare const DEFAULT_USER_REALM_NAME = "default";
6805
- declare const users: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
6806
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6807
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6808
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6809
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6810
- realm: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_DEFAULT>;
6811
- username: _$alepha.TOptional<_$alepha.TString>;
6812
- email: _$alepha.TOptional<_$alepha.TString>;
6813
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
6814
- roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
6815
- firstName: _$alepha.TOptional<_$alepha.TString>;
6816
- lastName: _$alepha.TOptional<_$alepha.TString>;
6817
- picture: _$alepha.TOptional<_$alepha.TString>;
6818
- enabled: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
6819
- emailVerified: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
6820
- organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
6821
+ declare const users: _$alepha_orm0.EntityPrimitive<_$typebox.TObject<{
6822
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6823
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6824
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6825
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6826
+ realm: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_DEFAULT>;
6827
+ username: _$typebox.TOptional<_$typebox.TString>;
6828
+ email: _$typebox.TOptional<_$typebox.TString>;
6829
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
6830
+ roles: _$alepha_orm0.PgAttr<_$typebox.TArray<_$typebox.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
6831
+ firstName: _$typebox.TOptional<_$typebox.TString>;
6832
+ lastName: _$typebox.TOptional<_$typebox.TString>;
6833
+ picture: _$typebox.TOptional<_$typebox.TString>;
6834
+ enabled: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
6835
+ emailVerified: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
6836
+ organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
6821
6837
  }>>;
6822
6838
  type UserEntity = Static<typeof users.schema>;
6823
6839
  //#endregion
@@ -6944,49 +6960,49 @@ interface Realm {
6944
6960
  }
6945
6961
  declare class RealmProvider {
6946
6962
  protected readonly alepha: Alepha;
6947
- protected readonly defaultIdentities: Repository<_$alepha.TObject<{
6948
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6949
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6950
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6951
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6952
- userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
6953
- password: _$alepha.TOptional<_$alepha.TString>;
6954
- provider: _$alepha.TString;
6955
- providerUserId: _$alepha.TOptional<_$alepha.TString>;
6956
- providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
6963
+ protected readonly defaultIdentities: Repository<_$typebox.TObject<{
6964
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6965
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6966
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6967
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6968
+ userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
6969
+ password: _$typebox.TOptional<_$typebox.TString>;
6970
+ provider: _$typebox.TString;
6971
+ providerUserId: _$typebox.TOptional<_$typebox.TString>;
6972
+ providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
6957
6973
  }>>;
6958
- protected readonly defaultSessions: Repository<_$alepha.TObject<{
6959
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6960
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6961
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6962
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6963
- refreshToken: _$alepha.TString;
6964
- userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
6965
- expiresAt: _$alepha.TString;
6966
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
6967
- ip: _$alepha.TOptional<_$alepha.TString>;
6968
- userAgent: _$alepha.TOptional<_$alepha.TObject<{
6969
- os: _$alepha.TString;
6970
- browser: _$alepha.TString;
6971
- device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6974
+ protected readonly defaultSessions: Repository<_$typebox.TObject<{
6975
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6976
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6977
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6978
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6979
+ refreshToken: _$typebox.TString;
6980
+ userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
6981
+ expiresAt: _$typebox.TString;
6982
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
6983
+ ip: _$typebox.TOptional<_$typebox.TString>;
6984
+ userAgent: _$typebox.TOptional<_$typebox.TObject<{
6985
+ os: _$typebox.TString;
6986
+ browser: _$typebox.TString;
6987
+ device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
6972
6988
  }>>;
6973
6989
  }>>;
6974
- protected readonly defaultUsers: Repository<_$alepha.TObject<{
6975
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6976
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6977
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6978
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6979
- realm: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_DEFAULT>;
6980
- username: _$alepha.TOptional<_$alepha.TString>;
6981
- email: _$alepha.TOptional<_$alepha.TString>;
6982
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
6983
- roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
6984
- firstName: _$alepha.TOptional<_$alepha.TString>;
6985
- lastName: _$alepha.TOptional<_$alepha.TString>;
6986
- picture: _$alepha.TOptional<_$alepha.TString>;
6987
- enabled: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
6988
- emailVerified: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
6989
- organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
6990
+ protected readonly defaultUsers: Repository<_$typebox.TObject<{
6991
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
6992
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
6993
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6994
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
6995
+ realm: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_DEFAULT>;
6996
+ username: _$typebox.TOptional<_$typebox.TString>;
6997
+ email: _$typebox.TOptional<_$typebox.TString>;
6998
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
6999
+ roles: _$alepha_orm0.PgAttr<_$typebox.TArray<_$typebox.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
7000
+ firstName: _$typebox.TOptional<_$typebox.TString>;
7001
+ lastName: _$typebox.TOptional<_$typebox.TString>;
7002
+ picture: _$typebox.TOptional<_$typebox.TString>;
7003
+ enabled: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
7004
+ emailVerified: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
7005
+ organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
6990
7006
  }>>;
6991
7007
  protected realms: Map<string, Realm>;
6992
7008
  register(realmName: string, realmOptions?: RealmOptions): Realm;
@@ -7000,12 +7016,12 @@ declare class RealmProvider {
7000
7016
  }
7001
7017
  //#endregion
7002
7018
  //#region ../../src/api/users/schemas/identityQuerySchema.d.ts
7003
- declare const identityQuerySchema: _$alepha.TObject<{
7004
- page: _$alepha.TOptional<_$alepha.TInteger>;
7005
- size: _$alepha.TOptional<_$alepha.TInteger>;
7006
- sort: _$alepha.TOptional<_$alepha.TString>;
7007
- userId: _$alepha.TOptional<_$alepha.TString>;
7008
- provider: _$alepha.TOptional<_$alepha.TString>;
7019
+ declare const identityQuerySchema: _$typebox.TObject<{
7020
+ page: _$typebox.TOptional<_$typebox.TInteger>;
7021
+ size: _$typebox.TOptional<_$typebox.TInteger>;
7022
+ sort: _$typebox.TOptional<_$typebox.TString>;
7023
+ userId: _$typebox.TOptional<_$typebox.TString>;
7024
+ provider: _$typebox.TOptional<_$typebox.TString>;
7009
7025
  }>;
7010
7026
  type IdentityQuery = Static<typeof identityQuerySchema>;
7011
7027
  //#endregion
@@ -7015,16 +7031,16 @@ declare class IdentityService {
7015
7031
  protected readonly log: _$alepha_logger0.Logger;
7016
7032
  protected readonly realmProvider: RealmProvider;
7017
7033
  protected userAudits(realmName?: string): UserAudits | undefined;
7018
- identities(userRealmName?: string): _$alepha_orm0.Repository<_$alepha.TObject<{
7019
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7020
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7021
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7022
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7023
- userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
7024
- password: _$alepha.TOptional<_$alepha.TString>;
7025
- provider: _$alepha.TString;
7026
- providerUserId: _$alepha.TOptional<_$alepha.TString>;
7027
- providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
7034
+ identities(userRealmName?: string): _$alepha_orm0.Repository<_$typebox.TObject<{
7035
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7036
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7037
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7038
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7039
+ userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
7040
+ password: _$typebox.TOptional<_$typebox.TString>;
7041
+ provider: _$typebox.TString;
7042
+ providerUserId: _$typebox.TOptional<_$typebox.TString>;
7043
+ providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
7028
7044
  }>>;
7029
7045
  /**
7030
7046
  * Find identities with pagination and filtering.
@@ -7049,70 +7065,70 @@ declare class AdminIdentityController {
7049
7065
  * Find identities with pagination and filtering.
7050
7066
  */
7051
7067
  readonly findIdentities: _$alepha_server0.ActionPrimitiveFn<{
7052
- query: _$alepha.TObject<{
7053
- page: _$alepha.TOptional<_$alepha.TInteger>;
7054
- size: _$alepha.TOptional<_$alepha.TInteger>;
7055
- sort: _$alepha.TOptional<_$alepha.TString>;
7056
- userId: _$alepha.TOptional<_$alepha.TString>;
7057
- provider: _$alepha.TOptional<_$alepha.TString>;
7058
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7059
- }>;
7060
- response: _$alepha.TPage<_$alepha.TObject<{
7061
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7062
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7063
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7064
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7065
- userId: PgAttr<_$alepha.TString, typeof PG_REF>;
7066
- provider: _$alepha.TString;
7067
- providerUserId: _$alepha.TOptional<_$alepha.TString>;
7068
- providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
7068
+ query: _$typebox.TObject<{
7069
+ page: _$typebox.TOptional<_$typebox.TInteger>;
7070
+ size: _$typebox.TOptional<_$typebox.TInteger>;
7071
+ sort: _$typebox.TOptional<_$typebox.TString>;
7072
+ userId: _$typebox.TOptional<_$typebox.TString>;
7073
+ provider: _$typebox.TOptional<_$typebox.TString>;
7074
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7075
+ }>;
7076
+ response: _$alepha.TPage<_$typebox.TObject<{
7077
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7078
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7079
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7080
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7081
+ userId: PgAttr<_$typebox.TString, typeof PG_REF>;
7082
+ provider: _$typebox.TString;
7083
+ providerUserId: _$typebox.TOptional<_$typebox.TString>;
7084
+ providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
7069
7085
  }>>;
7070
7086
  }>;
7071
7087
  /**
7072
7088
  * Get an identity by ID.
7073
7089
  */
7074
7090
  readonly getIdentity: _$alepha_server0.ActionPrimitiveFn<{
7075
- params: _$alepha.TObject<{
7076
- id: _$alepha.TString;
7077
- }>;
7078
- query: _$alepha.TObject<{
7079
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7080
- }>;
7081
- response: _$alepha.TObject<{
7082
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7083
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7084
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7085
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7086
- userId: PgAttr<_$alepha.TString, typeof PG_REF>;
7087
- provider: _$alepha.TString;
7088
- providerUserId: _$alepha.TOptional<_$alepha.TString>;
7089
- providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
7091
+ params: _$typebox.TObject<{
7092
+ id: _$typebox.TString;
7093
+ }>;
7094
+ query: _$typebox.TObject<{
7095
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7096
+ }>;
7097
+ response: _$typebox.TObject<{
7098
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7099
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7100
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7101
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7102
+ userId: PgAttr<_$typebox.TString, typeof PG_REF>;
7103
+ provider: _$typebox.TString;
7104
+ providerUserId: _$typebox.TOptional<_$typebox.TString>;
7105
+ providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
7090
7106
  }>;
7091
7107
  }>;
7092
7108
  /**
7093
7109
  * Delete an identity.
7094
7110
  */
7095
7111
  readonly deleteIdentity: _$alepha_server0.ActionPrimitiveFn<{
7096
- params: _$alepha.TObject<{
7097
- id: _$alepha.TString;
7112
+ params: _$typebox.TObject<{
7113
+ id: _$typebox.TString;
7098
7114
  }>;
7099
- query: _$alepha.TObject<{
7100
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7115
+ query: _$typebox.TObject<{
7116
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7101
7117
  }>;
7102
- response: _$alepha.TObject<{
7103
- ok: _$alepha.TBoolean;
7104
- id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
7105
- count: _$alepha.TOptional<_$alepha.TNumber>;
7118
+ response: _$typebox.TObject<{
7119
+ ok: _$typebox.TBoolean;
7120
+ id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
7121
+ count: _$typebox.TOptional<_$typebox.TNumber>;
7106
7122
  }>;
7107
7123
  }>;
7108
7124
  }
7109
7125
  //#endregion
7110
7126
  //#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
7111
- declare const sessionQuerySchema: _$alepha.TObject<{
7112
- page: _$alepha.TOptional<_$alepha.TInteger>;
7113
- size: _$alepha.TOptional<_$alepha.TInteger>;
7114
- sort: _$alepha.TOptional<_$alepha.TString>;
7115
- userId: _$alepha.TOptional<_$alepha.TString>;
7127
+ declare const sessionQuerySchema: _$typebox.TObject<{
7128
+ page: _$typebox.TOptional<_$typebox.TInteger>;
7129
+ size: _$typebox.TOptional<_$typebox.TInteger>;
7130
+ sort: _$typebox.TOptional<_$typebox.TString>;
7131
+ userId: _$typebox.TOptional<_$typebox.TString>;
7116
7132
  }>;
7117
7133
  type SessionQuery = Static<typeof sessionQuerySchema>;
7118
7134
  //#endregion
@@ -7120,20 +7136,20 @@ type SessionQuery = Static<typeof sessionQuerySchema>;
7120
7136
  declare class SessionCrudService {
7121
7137
  protected readonly log: _$alepha_logger0.Logger;
7122
7138
  protected readonly realmProvider: RealmProvider;
7123
- sessions(userRealmName?: string): _$alepha_orm0.Repository<_$alepha.TObject<{
7124
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7125
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7126
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7127
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7128
- refreshToken: _$alepha.TString;
7129
- userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
7130
- expiresAt: _$alepha.TString;
7131
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
7132
- ip: _$alepha.TOptional<_$alepha.TString>;
7133
- userAgent: _$alepha.TOptional<_$alepha.TObject<{
7134
- os: _$alepha.TString;
7135
- browser: _$alepha.TString;
7136
- device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7139
+ sessions(userRealmName?: string): _$alepha_orm0.Repository<_$typebox.TObject<{
7140
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7141
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7142
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7143
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7144
+ refreshToken: _$typebox.TString;
7145
+ userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
7146
+ expiresAt: _$typebox.TString;
7147
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
7148
+ ip: _$typebox.TOptional<_$typebox.TString>;
7149
+ userAgent: _$typebox.TOptional<_$typebox.TObject<{
7150
+ os: _$typebox.TString;
7151
+ browser: _$typebox.TString;
7152
+ device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7137
7153
  }>>;
7138
7154
  }>>;
7139
7155
  /**
@@ -7163,26 +7179,26 @@ declare class AdminSessionController {
7163
7179
  * Find sessions with pagination and filtering.
7164
7180
  */
7165
7181
  readonly findSessions: _$alepha_server0.ActionPrimitiveFn<{
7166
- query: _$alepha.TObject<{
7167
- page: _$alepha.TOptional<_$alepha.TInteger>;
7168
- size: _$alepha.TOptional<_$alepha.TInteger>;
7169
- sort: _$alepha.TOptional<_$alepha.TString>;
7170
- userId: _$alepha.TOptional<_$alepha.TString>;
7171
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7172
- }>;
7173
- response: _$alepha.TPage<_$alepha.TObject<{
7174
- id: _$alepha.TString;
7175
- version: _$alepha.TNumber;
7176
- createdAt: _$alepha.TString;
7177
- updatedAt: _$alepha.TString;
7178
- refreshToken: _$alepha.TString;
7179
- userId: _$alepha.TString;
7180
- expiresAt: _$alepha.TString;
7181
- ip: _$alepha.TOptional<_$alepha.TString>;
7182
- userAgent: _$alepha.TOptional<_$alepha.TObject<{
7183
- os: _$alepha.TString;
7184
- browser: _$alepha.TString;
7185
- device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7182
+ query: _$typebox.TObject<{
7183
+ page: _$typebox.TOptional<_$typebox.TInteger>;
7184
+ size: _$typebox.TOptional<_$typebox.TInteger>;
7185
+ sort: _$typebox.TOptional<_$typebox.TString>;
7186
+ userId: _$typebox.TOptional<_$typebox.TString>;
7187
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7188
+ }>;
7189
+ response: _$alepha.TPage<_$typebox.TObject<{
7190
+ id: _$typebox.TString;
7191
+ version: _$typebox.TNumber;
7192
+ createdAt: _$typebox.TString;
7193
+ updatedAt: _$typebox.TString;
7194
+ refreshToken: _$typebox.TString;
7195
+ userId: _$typebox.TString;
7196
+ expiresAt: _$typebox.TString;
7197
+ ip: _$typebox.TOptional<_$typebox.TString>;
7198
+ userAgent: _$typebox.TOptional<_$typebox.TObject<{
7199
+ os: _$typebox.TString;
7200
+ browser: _$typebox.TString;
7201
+ device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7186
7202
  }>>;
7187
7203
  }>>;
7188
7204
  }>;
@@ -7190,25 +7206,25 @@ declare class AdminSessionController {
7190
7206
  * Get a session by ID.
7191
7207
  */
7192
7208
  readonly getSession: _$alepha_server0.ActionPrimitiveFn<{
7193
- params: _$alepha.TObject<{
7194
- id: _$alepha.TString;
7195
- }>;
7196
- query: _$alepha.TObject<{
7197
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7198
- }>;
7199
- response: _$alepha.TObject<{
7200
- id: _$alepha.TString;
7201
- version: _$alepha.TNumber;
7202
- createdAt: _$alepha.TString;
7203
- updatedAt: _$alepha.TString;
7204
- refreshToken: _$alepha.TString;
7205
- userId: _$alepha.TString;
7206
- expiresAt: _$alepha.TString;
7207
- ip: _$alepha.TOptional<_$alepha.TString>;
7208
- userAgent: _$alepha.TOptional<_$alepha.TObject<{
7209
- os: _$alepha.TString;
7210
- browser: _$alepha.TString;
7211
- device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7209
+ params: _$typebox.TObject<{
7210
+ id: _$typebox.TString;
7211
+ }>;
7212
+ query: _$typebox.TObject<{
7213
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7214
+ }>;
7215
+ response: _$typebox.TObject<{
7216
+ id: _$typebox.TString;
7217
+ version: _$typebox.TNumber;
7218
+ createdAt: _$typebox.TString;
7219
+ updatedAt: _$typebox.TString;
7220
+ refreshToken: _$typebox.TString;
7221
+ userId: _$typebox.TString;
7222
+ expiresAt: _$typebox.TString;
7223
+ ip: _$typebox.TOptional<_$typebox.TString>;
7224
+ userAgent: _$typebox.TOptional<_$typebox.TObject<{
7225
+ os: _$typebox.TString;
7226
+ browser: _$typebox.TString;
7227
+ device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7212
7228
  }>>;
7213
7229
  }>;
7214
7230
  }>;
@@ -7216,109 +7232,109 @@ declare class AdminSessionController {
7216
7232
  * Delete a session.
7217
7233
  */
7218
7234
  readonly deleteSession: _$alepha_server0.ActionPrimitiveFn<{
7219
- params: _$alepha.TObject<{
7220
- id: _$alepha.TString;
7235
+ params: _$typebox.TObject<{
7236
+ id: _$typebox.TString;
7221
7237
  }>;
7222
- query: _$alepha.TObject<{
7223
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7238
+ query: _$typebox.TObject<{
7239
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7224
7240
  }>;
7225
- response: _$alepha.TObject<{
7226
- ok: _$alepha.TBoolean;
7227
- id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
7228
- count: _$alepha.TOptional<_$alepha.TNumber>;
7241
+ response: _$typebox.TObject<{
7242
+ ok: _$typebox.TBoolean;
7243
+ id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
7244
+ count: _$typebox.TOptional<_$typebox.TNumber>;
7229
7245
  }>;
7230
7246
  }>;
7231
7247
  /**
7232
7248
  * Delete many sessions in one repository call.
7233
7249
  */
7234
7250
  readonly deleteSessions: _$alepha_server0.ActionPrimitiveFn<{
7235
- query: _$alepha.TObject<{
7236
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7251
+ query: _$typebox.TObject<{
7252
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7237
7253
  }>;
7238
- body: _$alepha.TObject<{
7239
- ids: _$alepha.TArray<_$alepha.TString>;
7254
+ body: _$typebox.TObject<{
7255
+ ids: _$typebox.TArray<_$typebox.TString>;
7240
7256
  }>;
7241
- response: _$alepha.TObject<{
7242
- deleted: _$alepha.TArray<_$alepha.TString>;
7257
+ response: _$typebox.TObject<{
7258
+ deleted: _$typebox.TArray<_$typebox.TString>;
7243
7259
  }>;
7244
7260
  }>;
7245
7261
  }
7246
7262
  //#endregion
7247
7263
  //#region ../../src/api/users/notifications/UserNotifications.d.ts
7248
7264
  declare class UserNotifications {
7249
- readonly passwordReset: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
7250
- email: _$alepha.TString;
7251
- code: _$alepha.TString;
7252
- expiresInMinutes: _$alepha.TNumber;
7265
+ readonly passwordReset: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
7266
+ email: _$typebox.TString;
7267
+ code: _$typebox.TString;
7268
+ expiresInMinutes: _$typebox.TNumber;
7253
7269
  }>>;
7254
- readonly emailVerification: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
7255
- email: _$alepha.TString;
7256
- code: _$alepha.TString;
7257
- expiresInMinutes: _$alepha.TNumber;
7270
+ readonly emailVerification: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
7271
+ email: _$typebox.TString;
7272
+ code: _$typebox.TString;
7273
+ expiresInMinutes: _$typebox.TNumber;
7258
7274
  }>>;
7259
- readonly phoneVerification: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
7260
- phoneNumber: _$alepha.TString;
7261
- code: _$alepha.TString;
7262
- expiresInMinutes: _$alepha.TNumber;
7275
+ readonly phoneVerification: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
7276
+ phoneNumber: _$typebox.TString;
7277
+ code: _$typebox.TString;
7278
+ expiresInMinutes: _$typebox.TNumber;
7263
7279
  }>>;
7264
- readonly passwordResetLink: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
7265
- email: _$alepha.TString;
7266
- resetUrl: _$alepha.TString;
7267
- expiresInMinutes: _$alepha.TNumber;
7280
+ readonly passwordResetLink: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
7281
+ email: _$typebox.TString;
7282
+ resetUrl: _$typebox.TString;
7283
+ expiresInMinutes: _$typebox.TNumber;
7268
7284
  }>>;
7269
- readonly accountLockout: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
7270
- email: _$alepha.TString;
7271
- lockoutMinutes: _$alepha.TNumber;
7285
+ readonly accountLockout: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
7286
+ email: _$typebox.TString;
7287
+ lockoutMinutes: _$typebox.TNumber;
7272
7288
  }>>;
7273
- readonly emailVerificationLink: _$alepha_api_notifications0.NotificationPrimitive<_$alepha.TObject<{
7274
- email: _$alepha.TString;
7275
- verifyUrl: _$alepha.TString;
7276
- expiresInMinutes: _$alepha.TNumber;
7289
+ readonly emailVerificationLink: _$alepha_api_notifications0.NotificationPrimitive<_$typebox.TObject<{
7290
+ email: _$typebox.TString;
7291
+ verifyUrl: _$typebox.TString;
7292
+ expiresInMinutes: _$typebox.TNumber;
7277
7293
  }>>;
7278
7294
  }
7279
7295
  //#endregion
7280
7296
  //#region ../../src/api/users/schemas/createUserSchema.d.ts
7281
- declare const createUserSchema: _$alepha.TObject<{
7282
- enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7283
- email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7284
- phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7285
- id: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7286
- version: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7287
- createdAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7288
- updatedAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7289
- username: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7290
- roles: _$alepha.TOptional<PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>>;
7291
- firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7292
- lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7293
- picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7294
- emailVerified: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7295
- organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7297
+ declare const createUserSchema: _$typebox.TObject<{
7298
+ email: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7299
+ username: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7300
+ phoneNumber: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7301
+ enabled: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
7302
+ emailVerified: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
7303
+ roles: _$typebox.TOptional<PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>>;
7304
+ id: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7305
+ version: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7306
+ createdAt: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7307
+ updatedAt: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7308
+ firstName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7309
+ lastName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7310
+ picture: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7311
+ organizationId: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>>;
7296
7312
  }>;
7297
7313
  type CreateUser = Static<typeof createUserSchema>;
7298
7314
  //#endregion
7299
7315
  //#region ../../src/api/users/schemas/updateUserSchema.d.ts
7300
- declare const updateUserSchema: _$alepha.TObject<{
7301
- enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7302
- email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7303
- phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7304
- realm: _$alepha.TOptional<PgAttr<_$alepha.TString, typeof PG_DEFAULT>>;
7305
- roles: _$alepha.TOptional<PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>>;
7306
- firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7307
- lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7308
- picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7309
- organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7316
+ declare const updateUserSchema: _$typebox.TObject<{
7317
+ email: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7318
+ phoneNumber: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7319
+ enabled: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
7320
+ roles: _$typebox.TOptional<PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>>;
7321
+ realm: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_DEFAULT>>;
7322
+ firstName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7323
+ lastName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7324
+ picture: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7325
+ organizationId: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>>;
7310
7326
  }>;
7311
7327
  type UpdateUser = Static<typeof updateUserSchema>;
7312
7328
  //#endregion
7313
7329
  //#region ../../src/api/users/schemas/userQuerySchema.d.ts
7314
- declare const userQuerySchema: _$alepha.TObject<{
7315
- page: _$alepha.TOptional<_$alepha.TInteger>;
7316
- size: _$alepha.TOptional<_$alepha.TInteger>;
7317
- sort: _$alepha.TOptional<_$alepha.TString>;
7318
- email: _$alepha.TOptional<_$alepha.TString>;
7319
- enabled: _$alepha.TOptional<_$alepha.TBoolean>;
7320
- emailVerified: _$alepha.TOptional<_$alepha.TBoolean>;
7321
- roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
7330
+ declare const userQuerySchema: _$typebox.TObject<{
7331
+ page: _$typebox.TOptional<_$typebox.TInteger>;
7332
+ size: _$typebox.TOptional<_$typebox.TInteger>;
7333
+ sort: _$typebox.TOptional<_$typebox.TString>;
7334
+ email: _$typebox.TOptional<_$typebox.TString>;
7335
+ enabled: _$typebox.TOptional<_$typebox.TBoolean>;
7336
+ emailVerified: _$typebox.TOptional<_$typebox.TBoolean>;
7337
+ roles: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
7322
7338
  }>;
7323
7339
  type UserQuery = Static<typeof userQuerySchema>;
7324
7340
  //#endregion
@@ -7330,22 +7346,22 @@ declare class UserService {
7330
7346
  protected readonly realmProvider: RealmProvider;
7331
7347
  protected userAudits(realmName?: string): UserAudits | undefined;
7332
7348
  protected userNotifications(realmName?: string): UserNotifications | undefined;
7333
- users(userRealmName?: string): _$alepha_orm0.Repository<_$alepha.TObject<{
7334
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7335
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7336
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7337
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7338
- realm: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_DEFAULT>;
7339
- username: _$alepha.TOptional<_$alepha.TString>;
7340
- email: _$alepha.TOptional<_$alepha.TString>;
7341
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7342
- roles: _$alepha_orm0.PgAttr<_$alepha.TArray<_$alepha.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
7343
- firstName: _$alepha.TOptional<_$alepha.TString>;
7344
- lastName: _$alepha.TOptional<_$alepha.TString>;
7345
- picture: _$alepha.TOptional<_$alepha.TString>;
7346
- enabled: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
7347
- emailVerified: _$alepha_orm0.PgAttr<_$alepha.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
7348
- organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
7349
+ users(userRealmName?: string): _$alepha_orm0.Repository<_$typebox.TObject<{
7350
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
7351
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
7352
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7353
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
7354
+ realm: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_DEFAULT>;
7355
+ username: _$typebox.TOptional<_$typebox.TString>;
7356
+ email: _$typebox.TOptional<_$typebox.TString>;
7357
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
7358
+ roles: _$alepha_orm0.PgAttr<_$typebox.TArray<_$typebox.TString>, typeof _$alepha_orm0.PG_DEFAULT>;
7359
+ firstName: _$typebox.TOptional<_$typebox.TString>;
7360
+ lastName: _$typebox.TOptional<_$typebox.TString>;
7361
+ picture: _$typebox.TOptional<_$typebox.TString>;
7362
+ enabled: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
7363
+ emailVerified: _$alepha_orm0.PgAttr<_$typebox.TBoolean, typeof _$alepha_orm0.PG_DEFAULT>;
7364
+ organizationId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_ORGANIZATION>;
7349
7365
  }>>;
7350
7366
  /**
7351
7367
  * Request email verification for a user.
@@ -7395,156 +7411,156 @@ declare class AdminUserController {
7395
7411
  * Find users with pagination and filtering.
7396
7412
  */
7397
7413
  readonly findUsers: _$alepha_server0.ActionPrimitiveFn<{
7398
- query: _$alepha.TObject<{
7399
- page: _$alepha.TOptional<_$alepha.TInteger>;
7400
- size: _$alepha.TOptional<_$alepha.TInteger>;
7401
- sort: _$alepha.TOptional<_$alepha.TString>;
7402
- email: _$alepha.TOptional<_$alepha.TString>;
7403
- enabled: _$alepha.TOptional<_$alepha.TBoolean>;
7404
- emailVerified: _$alepha.TOptional<_$alepha.TBoolean>;
7405
- roles: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
7406
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7407
- }>;
7408
- response: _$alepha.TPage<_$alepha.TObject<{
7409
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7410
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7411
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7412
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7413
- realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
7414
- username: _$alepha.TOptional<_$alepha.TString>;
7415
- email: _$alepha.TOptional<_$alepha.TString>;
7416
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7417
- roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
7418
- firstName: _$alepha.TOptional<_$alepha.TString>;
7419
- lastName: _$alepha.TOptional<_$alepha.TString>;
7420
- picture: _$alepha.TOptional<_$alepha.TString>;
7421
- enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7422
- emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7423
- organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
7414
+ query: _$typebox.TObject<{
7415
+ page: _$typebox.TOptional<_$typebox.TInteger>;
7416
+ size: _$typebox.TOptional<_$typebox.TInteger>;
7417
+ sort: _$typebox.TOptional<_$typebox.TString>;
7418
+ email: _$typebox.TOptional<_$typebox.TString>;
7419
+ enabled: _$typebox.TOptional<_$typebox.TBoolean>;
7420
+ emailVerified: _$typebox.TOptional<_$typebox.TBoolean>;
7421
+ roles: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
7422
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7423
+ }>;
7424
+ response: _$alepha.TPage<_$typebox.TObject<{
7425
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7426
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7427
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7428
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7429
+ realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
7430
+ username: _$typebox.TOptional<_$typebox.TString>;
7431
+ email: _$typebox.TOptional<_$typebox.TString>;
7432
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
7433
+ roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
7434
+ firstName: _$typebox.TOptional<_$typebox.TString>;
7435
+ lastName: _$typebox.TOptional<_$typebox.TString>;
7436
+ picture: _$typebox.TOptional<_$typebox.TString>;
7437
+ enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
7438
+ emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
7439
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
7424
7440
  }>>;
7425
7441
  }>;
7426
7442
  /**
7427
7443
  * Get a user by ID.
7428
7444
  */
7429
7445
  readonly getUser: _$alepha_server0.ActionPrimitiveFn<{
7430
- params: _$alepha.TObject<{
7431
- id: _$alepha.TString;
7432
- }>;
7433
- query: _$alepha.TObject<{
7434
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7435
- }>;
7436
- response: _$alepha.TObject<{
7437
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7438
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7439
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7440
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7441
- realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
7442
- username: _$alepha.TOptional<_$alepha.TString>;
7443
- email: _$alepha.TOptional<_$alepha.TString>;
7444
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7445
- roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
7446
- firstName: _$alepha.TOptional<_$alepha.TString>;
7447
- lastName: _$alepha.TOptional<_$alepha.TString>;
7448
- picture: _$alepha.TOptional<_$alepha.TString>;
7449
- enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7450
- emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7451
- organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
7446
+ params: _$typebox.TObject<{
7447
+ id: _$typebox.TString;
7448
+ }>;
7449
+ query: _$typebox.TObject<{
7450
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7451
+ }>;
7452
+ response: _$typebox.TObject<{
7453
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7454
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7455
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7456
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7457
+ realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
7458
+ username: _$typebox.TOptional<_$typebox.TString>;
7459
+ email: _$typebox.TOptional<_$typebox.TString>;
7460
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
7461
+ roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
7462
+ firstName: _$typebox.TOptional<_$typebox.TString>;
7463
+ lastName: _$typebox.TOptional<_$typebox.TString>;
7464
+ picture: _$typebox.TOptional<_$typebox.TString>;
7465
+ enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
7466
+ emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
7467
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
7452
7468
  }>;
7453
7469
  }>;
7454
7470
  /**
7455
7471
  * Create a new user.
7456
7472
  */
7457
7473
  readonly createUser: _$alepha_server0.ActionPrimitiveFn<{
7458
- query: _$alepha.TObject<{
7459
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7460
- }>;
7461
- body: _$alepha.TObject<{
7462
- enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7463
- email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7464
- phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7465
- id: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7466
- version: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7467
- createdAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7468
- updatedAt: _$alepha.TOptional<PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7469
- username: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7470
- roles: _$alepha.TOptional<PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>>;
7471
- firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7472
- lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7473
- picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7474
- emailVerified: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7475
- organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7476
- }>;
7477
- response: _$alepha.TObject<{
7478
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7479
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7480
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7481
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7482
- realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
7483
- username: _$alepha.TOptional<_$alepha.TString>;
7484
- email: _$alepha.TOptional<_$alepha.TString>;
7485
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7486
- roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
7487
- firstName: _$alepha.TOptional<_$alepha.TString>;
7488
- lastName: _$alepha.TOptional<_$alepha.TString>;
7489
- picture: _$alepha.TOptional<_$alepha.TString>;
7490
- enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7491
- emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7492
- organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
7474
+ query: _$typebox.TObject<{
7475
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7476
+ }>;
7477
+ body: _$typebox.TObject<{
7478
+ email: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7479
+ username: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7480
+ phoneNumber: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7481
+ enabled: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
7482
+ emailVerified: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
7483
+ roles: _$typebox.TOptional<PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>>;
7484
+ id: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
7485
+ version: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
7486
+ createdAt: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
7487
+ updatedAt: _$typebox.TOptional<PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
7488
+ firstName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7489
+ lastName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7490
+ picture: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7491
+ organizationId: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>>;
7492
+ }>;
7493
+ response: _$typebox.TObject<{
7494
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7495
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7496
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7497
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7498
+ realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
7499
+ username: _$typebox.TOptional<_$typebox.TString>;
7500
+ email: _$typebox.TOptional<_$typebox.TString>;
7501
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
7502
+ roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
7503
+ firstName: _$typebox.TOptional<_$typebox.TString>;
7504
+ lastName: _$typebox.TOptional<_$typebox.TString>;
7505
+ picture: _$typebox.TOptional<_$typebox.TString>;
7506
+ enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
7507
+ emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
7508
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
7493
7509
  }>;
7494
7510
  }>;
7495
7511
  /**
7496
7512
  * Update a user.
7497
7513
  */
7498
7514
  readonly updateUser: _$alepha_server0.ActionPrimitiveFn<{
7499
- params: _$alepha.TObject<{
7500
- id: _$alepha.TString;
7501
- }>;
7502
- query: _$alepha.TObject<{
7503
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7504
- }>;
7505
- body: _$alepha.TObject<{
7506
- enabled: _$alepha.TOptional<PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>>;
7507
- email: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7508
- phoneNumber: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7509
- realm: _$alepha.TOptional<PgAttr<_$alepha.TString, typeof PG_DEFAULT>>;
7510
- roles: _$alepha.TOptional<PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>>;
7511
- firstName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7512
- lastName: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7513
- picture: _$alepha.TOptional<_$alepha.TOptional<_$alepha.TString>>;
7514
- organizationId: _$alepha.TOptional<PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>>;
7515
- }>;
7516
- response: _$alepha.TObject<{
7517
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7518
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7519
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7520
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7521
- realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
7522
- username: _$alepha.TOptional<_$alepha.TString>;
7523
- email: _$alepha.TOptional<_$alepha.TString>;
7524
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7525
- roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
7526
- firstName: _$alepha.TOptional<_$alepha.TString>;
7527
- lastName: _$alepha.TOptional<_$alepha.TString>;
7528
- picture: _$alepha.TOptional<_$alepha.TString>;
7529
- enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7530
- emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7531
- organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
7515
+ params: _$typebox.TObject<{
7516
+ id: _$typebox.TString;
7517
+ }>;
7518
+ query: _$typebox.TObject<{
7519
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7520
+ }>;
7521
+ body: _$typebox.TObject<{
7522
+ email: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7523
+ phoneNumber: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7524
+ enabled: _$typebox.TOptional<PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>>;
7525
+ roles: _$typebox.TOptional<PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>>;
7526
+ realm: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_DEFAULT>>;
7527
+ firstName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7528
+ lastName: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7529
+ picture: _$typebox.TOptional<_$typebox.TOptional<_$typebox.TString>>;
7530
+ organizationId: _$typebox.TOptional<PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>>;
7531
+ }>;
7532
+ response: _$typebox.TObject<{
7533
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7534
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7535
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7536
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7537
+ realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
7538
+ username: _$typebox.TOptional<_$typebox.TString>;
7539
+ email: _$typebox.TOptional<_$typebox.TString>;
7540
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
7541
+ roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
7542
+ firstName: _$typebox.TOptional<_$typebox.TString>;
7543
+ lastName: _$typebox.TOptional<_$typebox.TString>;
7544
+ picture: _$typebox.TOptional<_$typebox.TString>;
7545
+ enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
7546
+ emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
7547
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
7532
7548
  }>;
7533
7549
  }>;
7534
7550
  /**
7535
7551
  * Delete a user.
7536
7552
  */
7537
7553
  readonly deleteUser: _$alepha_server0.ActionPrimitiveFn<{
7538
- params: _$alepha.TObject<{
7539
- id: _$alepha.TString;
7554
+ params: _$typebox.TObject<{
7555
+ id: _$typebox.TString;
7540
7556
  }>;
7541
- query: _$alepha.TObject<{
7542
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7557
+ query: _$typebox.TObject<{
7558
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7543
7559
  }>;
7544
- response: _$alepha.TObject<{
7545
- ok: _$alepha.TBoolean;
7546
- id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
7547
- count: _$alepha.TOptional<_$alepha.TNumber>;
7560
+ response: _$typebox.TObject<{
7561
+ ok: _$typebox.TBoolean;
7562
+ id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
7563
+ count: _$typebox.TOptional<_$typebox.TNumber>;
7548
7564
  }>;
7549
7565
  }>;
7550
7566
  /**
@@ -7553,14 +7569,14 @@ declare class AdminUserController {
7553
7569
  * id surface with that id in the response.
7554
7570
  */
7555
7571
  readonly deleteUsers: _$alepha_server0.ActionPrimitiveFn<{
7556
- query: _$alepha.TObject<{
7557
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7572
+ query: _$typebox.TObject<{
7573
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
7558
7574
  }>;
7559
- body: _$alepha.TObject<{
7560
- ids: _$alepha.TArray<_$alepha.TString>;
7575
+ body: _$typebox.TObject<{
7576
+ ids: _$typebox.TArray<_$typebox.TString>;
7561
7577
  }>;
7562
- response: _$alepha.TObject<{
7563
- deleted: _$alepha.TArray<_$alepha.TString>;
7578
+ response: _$typebox.TObject<{
7579
+ deleted: _$typebox.TArray<_$typebox.TString>;
7564
7580
  }>;
7565
7581
  }>;
7566
7582
  }
@@ -7581,62 +7597,62 @@ declare class RealmController {
7581
7597
  * This endpoint is not exposed in the API documentation.
7582
7598
  */
7583
7599
  readonly getRealmConfig: _$alepha_server0.ActionPrimitiveFn<{
7584
- query: _$alepha.TObject<{
7585
- realmName: _$alepha.TOptional<_$alepha.TString>;
7586
- }>;
7587
- response: _$alepha.TObject<{
7588
- settings: _$alepha.TObject<{
7589
- displayName: _$alepha.TOptional<_$alepha.TString>;
7590
- description: _$alepha.TOptional<_$alepha.TString>;
7591
- logoUrl: _$alepha.TOptional<_$alepha.TString>;
7592
- registrationAllowed: _$alepha.TBoolean;
7593
- email: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
7594
- username: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">, _$typebox.TLiteral<"email">]>;
7595
- usernameRegExp: _$alepha.TString;
7596
- usernameBlocklist: _$alepha.TArray<_$alepha.TString>;
7597
- phoneNumber: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
7598
- verifyEmailRequired: _$alepha.TBoolean;
7599
- verifyPhoneRequired: _$alepha.TBoolean;
7600
- firstNameLastName: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
7601
- resetPasswordAllowed: _$alepha.TBoolean;
7602
- captchaRequired: _$alepha.TBoolean;
7603
- adminEmails: _$alepha.TArray<_$alepha.TString>;
7604
- adminUsernames: _$alepha.TArray<_$alepha.TString>;
7605
- defaultRoles: _$alepha.TArray<_$alepha.TString>;
7606
- verifyEmailUrl: _$alepha.TOptional<_$alepha.TString>;
7607
- passwordPolicy: _$alepha.TObject<{
7608
- minLength: _$alepha.TInteger;
7609
- requireUppercase: _$alepha.TBoolean;
7610
- requireLowercase: _$alepha.TBoolean;
7611
- requireNumbers: _$alepha.TBoolean;
7612
- requireSpecialCharacters: _$alepha.TBoolean;
7600
+ query: _$typebox.TObject<{
7601
+ realmName: _$typebox.TOptional<_$typebox.TString>;
7602
+ }>;
7603
+ response: _$typebox.TObject<{
7604
+ settings: _$typebox.TObject<{
7605
+ displayName: _$typebox.TOptional<_$typebox.TString>;
7606
+ description: _$typebox.TOptional<_$typebox.TString>;
7607
+ logoUrl: _$typebox.TOptional<_$typebox.TString>;
7608
+ registrationAllowed: _$typebox.TBoolean;
7609
+ email: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
7610
+ username: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">, _$typebox.TLiteral<"email">]>;
7611
+ usernameRegExp: _$typebox.TString;
7612
+ usernameBlocklist: _$typebox.TArray<_$typebox.TString>;
7613
+ phoneNumber: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
7614
+ verifyEmailRequired: _$typebox.TBoolean;
7615
+ verifyPhoneRequired: _$typebox.TBoolean;
7616
+ firstNameLastName: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
7617
+ resetPasswordAllowed: _$typebox.TBoolean;
7618
+ captchaRequired: _$typebox.TBoolean;
7619
+ adminEmails: _$typebox.TArray<_$typebox.TString>;
7620
+ adminUsernames: _$typebox.TArray<_$typebox.TString>;
7621
+ defaultRoles: _$typebox.TArray<_$typebox.TString>;
7622
+ verifyEmailUrl: _$typebox.TOptional<_$typebox.TString>;
7623
+ passwordPolicy: _$typebox.TObject<{
7624
+ minLength: _$typebox.TInteger;
7625
+ requireUppercase: _$typebox.TBoolean;
7626
+ requireLowercase: _$typebox.TBoolean;
7627
+ requireNumbers: _$typebox.TBoolean;
7628
+ requireSpecialCharacters: _$typebox.TBoolean;
7613
7629
  }>;
7614
- loginRateLimit: _$alepha.TObject<{
7615
- ipMaxAttempts: _$alepha.TInteger;
7616
- accountMaxAttempts: _$alepha.TInteger;
7617
- windowMs: _$alepha.TInteger;
7630
+ loginRateLimit: _$typebox.TObject<{
7631
+ ipMaxAttempts: _$typebox.TInteger;
7632
+ accountMaxAttempts: _$typebox.TInteger;
7633
+ windowMs: _$typebox.TInteger;
7618
7634
  }>;
7619
- refreshToken: _$alepha.TObject<{
7620
- expirationIdle: _$alepha.TOptional<_$alepha.TInteger>;
7635
+ refreshToken: _$typebox.TObject<{
7636
+ expirationIdle: _$typebox.TOptional<_$typebox.TInteger>;
7621
7637
  }>;
7622
7638
  }>;
7623
- realmName: _$alepha.TString;
7624
- authenticationMethods: _$alepha.TArray<_$alepha.TObject<{
7625
- name: _$alepha.TString;
7626
- type: _$alepha.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
7639
+ realmName: _$typebox.TString;
7640
+ authenticationMethods: _$typebox.TArray<_$typebox.TObject<{
7641
+ name: _$typebox.TString;
7642
+ type: _$typebox.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
7627
7643
  }>>;
7628
- captchaSiteKey: _$alepha.TOptional<_$alepha.TString>;
7644
+ captchaSiteKey: _$typebox.TOptional<_$typebox.TString>;
7629
7645
  }>;
7630
7646
  }>;
7631
7647
  readonly checkUsernameAvailability: _$alepha_server0.ActionPrimitiveFn<{
7632
- query: _$alepha.TObject<{
7633
- realmName: _$alepha.TOptional<_$alepha.TString>;
7648
+ query: _$typebox.TObject<{
7649
+ realmName: _$typebox.TOptional<_$typebox.TString>;
7634
7650
  }>;
7635
- body: _$alepha.TObject<{
7636
- username: _$alepha.TString;
7651
+ body: _$typebox.TObject<{
7652
+ username: _$typebox.TString;
7637
7653
  }>;
7638
- response: _$alepha.TObject<{
7639
- available: _$alepha.TBoolean;
7654
+ response: _$typebox.TObject<{
7655
+ available: _$typebox.TBoolean;
7640
7656
  }>;
7641
7657
  }>;
7642
7658
  }
@@ -7648,10 +7664,10 @@ declare class RealmController {
7648
7664
  * Requires the intent ID from Phase 1, the verification code,
7649
7665
  * and the new password.
7650
7666
  */
7651
- declare const completePasswordResetRequestSchema: _$alepha.TObject<{
7652
- intentId: _$alepha.TString;
7653
- code: _$alepha.TString;
7654
- newPassword: _$alepha.TString;
7667
+ declare const completePasswordResetRequestSchema: _$typebox.TObject<{
7668
+ intentId: _$typebox.TString;
7669
+ code: _$typebox.TString;
7670
+ newPassword: _$typebox.TString;
7655
7671
  }>;
7656
7672
  type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
7657
7673
  //#endregion
@@ -7662,9 +7678,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
7662
7678
  * Contains the intent ID needed for Phase 2 completion,
7663
7679
  * along with expiration time.
7664
7680
  */
7665
- declare const passwordResetIntentResponseSchema: _$alepha.TObject<{
7666
- intentId: _$alepha.TString;
7667
- expiresAt: _$alepha.TString;
7681
+ declare const passwordResetIntentResponseSchema: _$typebox.TObject<{
7682
+ intentId: _$typebox.TString;
7683
+ expiresAt: _$typebox.TString;
7668
7684
  }>;
7669
7685
  type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
7670
7686
  //#endregion
@@ -7689,49 +7705,49 @@ declare class CredentialService {
7689
7705
  protected userAudits(realmName?: string): UserAudits | undefined;
7690
7706
  protected userNotifications(realmName?: string): UserNotifications | undefined;
7691
7707
  protected readonly intentCache: _$alepha_cache0.CacheMiddlewareFn<PasswordResetIntent>;
7692
- users(userRealmName?: string): Repository$1<_$alepha.TObject<{
7693
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7694
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7695
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7696
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7697
- realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
7698
- username: _$alepha.TOptional<_$alepha.TString>;
7699
- email: _$alepha.TOptional<_$alepha.TString>;
7700
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7701
- roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
7702
- firstName: _$alepha.TOptional<_$alepha.TString>;
7703
- lastName: _$alepha.TOptional<_$alepha.TString>;
7704
- picture: _$alepha.TOptional<_$alepha.TString>;
7705
- enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7706
- emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
7707
- organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
7708
+ users(userRealmName?: string): Repository$1<_$typebox.TObject<{
7709
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7710
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7711
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7712
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7713
+ realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
7714
+ username: _$typebox.TOptional<_$typebox.TString>;
7715
+ email: _$typebox.TOptional<_$typebox.TString>;
7716
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
7717
+ roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
7718
+ firstName: _$typebox.TOptional<_$typebox.TString>;
7719
+ lastName: _$typebox.TOptional<_$typebox.TString>;
7720
+ picture: _$typebox.TOptional<_$typebox.TString>;
7721
+ enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
7722
+ emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
7723
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
7708
7724
  }>>;
7709
- sessions(userRealmName?: string): Repository$1<_$alepha.TObject<{
7710
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7711
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7712
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7713
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7714
- refreshToken: _$alepha.TString;
7715
- userId: PgAttr<_$alepha.TString, typeof PG_REF>;
7716
- expiresAt: _$alepha.TString;
7717
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
7718
- ip: _$alepha.TOptional<_$alepha.TString>;
7719
- userAgent: _$alepha.TOptional<_$alepha.TObject<{
7720
- os: _$alepha.TString;
7721
- browser: _$alepha.TString;
7722
- device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7725
+ sessions(userRealmName?: string): Repository$1<_$typebox.TObject<{
7726
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7727
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7728
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7729
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7730
+ refreshToken: _$typebox.TString;
7731
+ userId: PgAttr<_$typebox.TString, typeof PG_REF>;
7732
+ expiresAt: _$typebox.TString;
7733
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
7734
+ ip: _$typebox.TOptional<_$typebox.TString>;
7735
+ userAgent: _$typebox.TOptional<_$typebox.TObject<{
7736
+ os: _$typebox.TString;
7737
+ browser: _$typebox.TString;
7738
+ device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
7723
7739
  }>>;
7724
7740
  }>>;
7725
- identities(userRealmName?: string): Repository$1<_$alepha.TObject<{
7726
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7727
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7728
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7729
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7730
- userId: PgAttr<_$alepha.TString, typeof PG_REF>;
7731
- password: _$alepha.TOptional<_$alepha.TString>;
7732
- provider: _$alepha.TString;
7733
- providerUserId: _$alepha.TOptional<_$alepha.TString>;
7734
- providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
7741
+ identities(userRealmName?: string): Repository$1<_$typebox.TObject<{
7742
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
7743
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
7744
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
7745
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
7746
+ userId: PgAttr<_$typebox.TString, typeof PG_REF>;
7747
+ password: _$typebox.TOptional<_$typebox.TString>;
7748
+ provider: _$typebox.TString;
7749
+ providerUserId: _$typebox.TOptional<_$typebox.TString>;
7750
+ providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
7735
7751
  }>>;
7736
7752
  /**
7737
7753
  * Validate a password against the realm's password policy.
@@ -7772,11 +7788,11 @@ declare class CredentialService {
7772
7788
  }
7773
7789
  //#endregion
7774
7790
  //#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
7775
- declare const completeRegistrationRequestSchema: _$alepha.TObject<{
7776
- intentId: _$alepha.TString;
7777
- emailCode: _$alepha.TOptional<_$alepha.TString>;
7778
- phoneCode: _$alepha.TOptional<_$alepha.TString>;
7779
- captchaToken: _$alepha.TOptional<_$alepha.TString>;
7791
+ declare const completeRegistrationRequestSchema: _$typebox.TObject<{
7792
+ intentId: _$typebox.TString;
7793
+ emailCode: _$typebox.TOptional<_$typebox.TString>;
7794
+ phoneCode: _$typebox.TOptional<_$typebox.TString>;
7795
+ captchaToken: _$typebox.TOptional<_$typebox.TString>;
7780
7796
  }>;
7781
7797
  type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
7782
7798
  //#endregion
@@ -7785,26 +7801,26 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
7785
7801
  * Schema for user registration request body.
7786
7802
  * Password is always required, other fields depend on realm settings.
7787
7803
  */
7788
- declare const registerRequestSchema: _$alepha.TObject<{
7789
- password: _$alepha.TString;
7790
- username: _$alepha.TOptional<_$alepha.TString>;
7791
- email: _$alepha.TOptional<_$alepha.TString>;
7792
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7793
- firstName: _$alepha.TOptional<_$alepha.TString>;
7794
- lastName: _$alepha.TOptional<_$alepha.TString>;
7795
- picture: _$alepha.TOptional<_$alepha.TString>;
7796
- captchaToken: _$alepha.TOptional<_$alepha.TString>;
7804
+ declare const registerRequestSchema: _$typebox.TObject<{
7805
+ password: _$typebox.TString;
7806
+ username: _$typebox.TOptional<_$typebox.TString>;
7807
+ email: _$typebox.TOptional<_$typebox.TString>;
7808
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
7809
+ firstName: _$typebox.TOptional<_$typebox.TString>;
7810
+ lastName: _$typebox.TOptional<_$typebox.TString>;
7811
+ picture: _$typebox.TOptional<_$typebox.TString>;
7812
+ captchaToken: _$typebox.TOptional<_$typebox.TString>;
7797
7813
  }>;
7798
7814
  type RegisterRequest = Static<typeof registerRequestSchema>;
7799
7815
  //#endregion
7800
7816
  //#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
7801
- declare const registrationIntentResponseSchema: _$alepha.TObject<{
7802
- intentId: _$alepha.TString;
7803
- expectCaptcha: _$alepha.TBoolean;
7804
- captchaSiteKey: _$alepha.TOptional<_$alepha.TString>;
7805
- expectEmailVerification: _$alepha.TBoolean;
7806
- expectPhoneVerification: _$alepha.TBoolean;
7807
- expiresAt: _$alepha.TString;
7817
+ declare const registrationIntentResponseSchema: _$typebox.TObject<{
7818
+ intentId: _$typebox.TString;
7819
+ expectCaptcha: _$typebox.TBoolean;
7820
+ captchaSiteKey: _$typebox.TOptional<_$typebox.TString>;
7821
+ expectEmailVerification: _$typebox.TBoolean;
7822
+ expectPhoneVerification: _$typebox.TBoolean;
7823
+ expiresAt: _$typebox.TString;
7808
7824
  }>;
7809
7825
  type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
7810
7826
  //#endregion
@@ -7982,26 +7998,26 @@ declare class UserController {
7982
7998
  * Validates data, creates verification sessions, and stores intent in cache.
7983
7999
  */
7984
8000
  readonly createRegistrationIntent: _$alepha_server0.ActionPrimitiveFn<{
7985
- body: _$alepha.TObject<{
7986
- password: _$alepha.TString;
7987
- username: _$alepha.TOptional<_$alepha.TString>;
7988
- email: _$alepha.TOptional<_$alepha.TString>;
7989
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
7990
- firstName: _$alepha.TOptional<_$alepha.TString>;
7991
- lastName: _$alepha.TOptional<_$alepha.TString>;
7992
- picture: _$alepha.TOptional<_$alepha.TString>;
7993
- captchaToken: _$alepha.TOptional<_$alepha.TString>;
7994
- }>;
7995
- query: _$alepha.TObject<{
7996
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
7997
- }>;
7998
- response: _$alepha.TObject<{
7999
- intentId: _$alepha.TString;
8000
- expectCaptcha: _$alepha.TBoolean;
8001
- captchaSiteKey: _$alepha.TOptional<_$alepha.TString>;
8002
- expectEmailVerification: _$alepha.TBoolean;
8003
- expectPhoneVerification: _$alepha.TBoolean;
8004
- expiresAt: _$alepha.TString;
8001
+ body: _$typebox.TObject<{
8002
+ password: _$typebox.TString;
8003
+ username: _$typebox.TOptional<_$typebox.TString>;
8004
+ email: _$typebox.TOptional<_$typebox.TString>;
8005
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
8006
+ firstName: _$typebox.TOptional<_$typebox.TString>;
8007
+ lastName: _$typebox.TOptional<_$typebox.TString>;
8008
+ picture: _$typebox.TOptional<_$typebox.TString>;
8009
+ captchaToken: _$typebox.TOptional<_$typebox.TString>;
8010
+ }>;
8011
+ query: _$typebox.TObject<{
8012
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
8013
+ }>;
8014
+ response: _$typebox.TObject<{
8015
+ intentId: _$typebox.TString;
8016
+ expectCaptcha: _$typebox.TBoolean;
8017
+ captchaSiteKey: _$typebox.TOptional<_$typebox.TString>;
8018
+ expectEmailVerification: _$typebox.TBoolean;
8019
+ expectPhoneVerification: _$typebox.TBoolean;
8020
+ expiresAt: _$typebox.TString;
8005
8021
  }>;
8006
8022
  }>;
8007
8023
  /**
@@ -8009,28 +8025,28 @@ declare class UserController {
8009
8025
  * Validates verification codes and creates the user.
8010
8026
  */
8011
8027
  readonly createUserFromIntent: _$alepha_server0.ActionPrimitiveFn<{
8012
- body: _$alepha.TObject<{
8013
- intentId: _$alepha.TString;
8014
- emailCode: _$alepha.TOptional<_$alepha.TString>;
8015
- phoneCode: _$alepha.TOptional<_$alepha.TString>;
8016
- captchaToken: _$alepha.TOptional<_$alepha.TString>;
8017
- }>;
8018
- response: _$alepha.TObject<{
8019
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8020
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8021
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8022
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8023
- realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
8024
- username: _$alepha.TOptional<_$alepha.TString>;
8025
- email: _$alepha.TOptional<_$alepha.TString>;
8026
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
8027
- roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
8028
- firstName: _$alepha.TOptional<_$alepha.TString>;
8029
- lastName: _$alepha.TOptional<_$alepha.TString>;
8030
- picture: _$alepha.TOptional<_$alepha.TString>;
8031
- enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8032
- emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8033
- organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
8028
+ body: _$typebox.TObject<{
8029
+ intentId: _$typebox.TString;
8030
+ emailCode: _$typebox.TOptional<_$typebox.TString>;
8031
+ phoneCode: _$typebox.TOptional<_$typebox.TString>;
8032
+ captchaToken: _$typebox.TOptional<_$typebox.TString>;
8033
+ }>;
8034
+ response: _$typebox.TObject<{
8035
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8036
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8037
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8038
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8039
+ realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
8040
+ username: _$typebox.TOptional<_$typebox.TString>;
8041
+ email: _$typebox.TOptional<_$typebox.TString>;
8042
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
8043
+ roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
8044
+ firstName: _$typebox.TOptional<_$typebox.TString>;
8045
+ lastName: _$typebox.TOptional<_$typebox.TString>;
8046
+ picture: _$typebox.TOptional<_$typebox.TString>;
8047
+ enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
8048
+ emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
8049
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
8034
8050
  }>;
8035
8051
  }>;
8036
8052
  /**
@@ -8038,15 +8054,15 @@ declare class UserController {
8038
8054
  * Validates email, sends verification code, and stores intent in cache.
8039
8055
  */
8040
8056
  readonly createPasswordResetIntent: _$alepha_server0.ActionPrimitiveFn<{
8041
- query: _$alepha.TObject<{
8042
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
8057
+ query: _$typebox.TObject<{
8058
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
8043
8059
  }>;
8044
- body: _$alepha.TObject<{
8045
- email: _$alepha.TString;
8060
+ body: _$typebox.TObject<{
8061
+ email: _$typebox.TString;
8046
8062
  }>;
8047
- response: _$alepha.TObject<{
8048
- intentId: _$alepha.TString;
8049
- expiresAt: _$alepha.TString;
8063
+ response: _$typebox.TObject<{
8064
+ intentId: _$typebox.TString;
8065
+ expiresAt: _$typebox.TString;
8050
8066
  }>;
8051
8067
  }>;
8052
8068
  /**
@@ -8054,61 +8070,61 @@ declare class UserController {
8054
8070
  * Validates verification code, updates password, and invalidates sessions.
8055
8071
  */
8056
8072
  readonly completePasswordReset: _$alepha_server0.ActionPrimitiveFn<{
8057
- body: _$alepha.TObject<{
8058
- intentId: _$alepha.TString;
8059
- code: _$alepha.TString;
8060
- newPassword: _$alepha.TString;
8073
+ body: _$typebox.TObject<{
8074
+ intentId: _$typebox.TString;
8075
+ code: _$typebox.TString;
8076
+ newPassword: _$typebox.TString;
8061
8077
  }>;
8062
- response: _$alepha.TObject<{
8063
- ok: _$alepha.TBoolean;
8064
- id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
8065
- count: _$alepha.TOptional<_$alepha.TNumber>;
8078
+ response: _$typebox.TObject<{
8079
+ ok: _$typebox.TBoolean;
8080
+ id: _$typebox.TOptional<_$typebox.TUnion<[_$typebox.TString, _$typebox.TInteger]>>;
8081
+ count: _$typebox.TOptional<_$typebox.TNumber>;
8066
8082
  }>;
8067
8083
  }>;
8068
8084
  /**
8069
8085
  * @deprecated Use createPasswordResetIntent instead
8070
8086
  */
8071
8087
  requestPasswordReset: _$alepha_server0.ActionPrimitiveFn<{
8072
- query: _$alepha.TObject<{
8073
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
8088
+ query: _$typebox.TObject<{
8089
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
8074
8090
  }>;
8075
- body: _$alepha.TObject<{
8076
- email: _$alepha.TString;
8091
+ body: _$typebox.TObject<{
8092
+ email: _$typebox.TString;
8077
8093
  }>;
8078
- response: _$alepha.TObject<{
8079
- success: _$alepha.TBoolean;
8080
- message: _$alepha.TString;
8094
+ response: _$typebox.TObject<{
8095
+ success: _$typebox.TBoolean;
8096
+ message: _$typebox.TString;
8081
8097
  }>;
8082
8098
  }>;
8083
8099
  /**
8084
8100
  * @deprecated Use completePasswordReset instead
8085
8101
  */
8086
8102
  validateResetToken: _$alepha_server0.ActionPrimitiveFn<{
8087
- query: _$alepha.TObject<{
8088
- email: _$alepha.TString;
8089
- token: _$alepha.TString;
8090
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
8103
+ query: _$typebox.TObject<{
8104
+ email: _$typebox.TString;
8105
+ token: _$typebox.TString;
8106
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
8091
8107
  }>;
8092
- response: _$alepha.TObject<{
8093
- valid: _$alepha.TBoolean;
8094
- email: _$alepha.TOptional<_$alepha.TString>;
8108
+ response: _$typebox.TObject<{
8109
+ valid: _$typebox.TBoolean;
8110
+ email: _$typebox.TOptional<_$typebox.TString>;
8095
8111
  }>;
8096
8112
  }>;
8097
8113
  /**
8098
8114
  * @deprecated Use completePasswordReset instead
8099
8115
  */
8100
8116
  resetPassword: _$alepha_server0.ActionPrimitiveFn<{
8101
- query: _$alepha.TObject<{
8102
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
8117
+ query: _$typebox.TObject<{
8118
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
8103
8119
  }>;
8104
- body: _$alepha.TObject<{
8105
- email: _$alepha.TString;
8106
- token: _$alepha.TString;
8107
- newPassword: _$alepha.TString;
8120
+ body: _$typebox.TObject<{
8121
+ email: _$typebox.TString;
8122
+ token: _$typebox.TString;
8123
+ newPassword: _$typebox.TString;
8108
8124
  }>;
8109
- response: _$alepha.TObject<{
8110
- success: _$alepha.TBoolean;
8111
- message: _$alepha.TString;
8125
+ response: _$typebox.TObject<{
8126
+ success: _$typebox.TBoolean;
8127
+ message: _$typebox.TString;
8112
8128
  }>;
8113
8129
  }>;
8114
8130
  /**
@@ -8118,16 +8134,16 @@ declare class UserController {
8118
8134
  * @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
8119
8135
  */
8120
8136
  requestEmailVerification: _$alepha_server0.ActionPrimitiveFn<{
8121
- query: _$alepha.TObject<{
8122
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
8123
- method: _$alepha.TOptional<_$alepha.TUnsafe<"link" | "code">>;
8137
+ query: _$typebox.TObject<{
8138
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
8139
+ method: _$typebox.TOptional<_$typebox.TUnsafe<"link" | "code">>;
8124
8140
  }>;
8125
- body: _$alepha.TObject<{
8126
- email: _$alepha.TString;
8141
+ body: _$typebox.TObject<{
8142
+ email: _$typebox.TString;
8127
8143
  }>;
8128
- response: _$alepha.TObject<{
8129
- success: _$alepha.TBoolean;
8130
- message: _$alepha.TString;
8144
+ response: _$typebox.TObject<{
8145
+ success: _$typebox.TBoolean;
8146
+ message: _$typebox.TString;
8131
8147
  }>;
8132
8148
  }>;
8133
8149
  /**
@@ -8135,28 +8151,28 @@ declare class UserController {
8135
8151
  * Updates the user's emailVerified status.
8136
8152
  */
8137
8153
  verifyEmail: _$alepha_server0.ActionPrimitiveFn<{
8138
- query: _$alepha.TObject<{
8139
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
8154
+ query: _$typebox.TObject<{
8155
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
8140
8156
  }>;
8141
- body: _$alepha.TObject<{
8142
- email: _$alepha.TString;
8143
- token: _$alepha.TString;
8157
+ body: _$typebox.TObject<{
8158
+ email: _$typebox.TString;
8159
+ token: _$typebox.TString;
8144
8160
  }>;
8145
- response: _$alepha.TObject<{
8146
- success: _$alepha.TBoolean;
8147
- message: _$alepha.TString;
8161
+ response: _$typebox.TObject<{
8162
+ success: _$typebox.TBoolean;
8163
+ message: _$typebox.TString;
8148
8164
  }>;
8149
8165
  }>;
8150
8166
  /**
8151
8167
  * Check if an email is verified.
8152
8168
  */
8153
8169
  checkEmailVerification: _$alepha_server0.ActionPrimitiveFn<{
8154
- query: _$alepha.TObject<{
8155
- email: _$alepha.TString;
8156
- userRealmName: _$alepha.TOptional<_$alepha.TString>;
8170
+ query: _$typebox.TObject<{
8171
+ email: _$typebox.TString;
8172
+ userRealmName: _$typebox.TOptional<_$typebox.TString>;
8157
8173
  }>;
8158
- response: _$alepha.TObject<{
8159
- verified: _$alepha.TBoolean;
8174
+ response: _$typebox.TObject<{
8175
+ verified: _$typebox.TBoolean;
8160
8176
  }>;
8161
8177
  }>;
8162
8178
  }
@@ -8176,20 +8192,20 @@ declare class UserController {
8176
8192
  declare class UserJobs {
8177
8193
  protected readonly log: _$alepha_logger0.Logger;
8178
8194
  protected readonly dateTimeProvider: DateTimeProvider;
8179
- protected readonly sessionRepository: _$alepha_orm0.Repository<_$alepha.TObject<{
8180
- id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
8181
- version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
8182
- createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
8183
- updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
8184
- refreshToken: _$alepha.TString;
8185
- userId: _$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_REF>;
8186
- expiresAt: _$alepha.TString;
8187
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
8188
- ip: _$alepha.TOptional<_$alepha.TString>;
8189
- userAgent: _$alepha.TOptional<_$alepha.TObject<{
8190
- os: _$alepha.TString;
8191
- browser: _$alepha.TString;
8192
- device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8195
+ protected readonly sessionRepository: _$alepha_orm0.Repository<_$typebox.TObject<{
8196
+ id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
8197
+ version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
8198
+ createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
8199
+ updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
8200
+ refreshToken: _$typebox.TString;
8201
+ userId: _$alepha_orm0.PgAttr<_$typebox.TString, typeof _$alepha_orm0.PG_REF>;
8202
+ expiresAt: _$typebox.TString;
8203
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
8204
+ ip: _$typebox.TOptional<_$typebox.TString>;
8205
+ userAgent: _$typebox.TOptional<_$typebox.TObject<{
8206
+ os: _$typebox.TString;
8207
+ browser: _$typebox.TString;
8208
+ device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8193
8209
  }>>;
8194
8210
  }>>;
8195
8211
  protected readonly realmProvider: RealmProvider;
@@ -8205,133 +8221,133 @@ declare class UserJobs {
8205
8221
  * The idle sweep is best-effort cleanup — runtime enforcement happens in
8206
8222
  * `SessionService.refreshSession()`.
8207
8223
  */
8208
- readonly purgeExpiredSessions: _$alepha_api_jobs0.JobPrimitive<_$alepha.TSchema>;
8224
+ readonly purgeExpiredSessions: _$alepha_api_jobs0.JobPrimitive<_$typebox.TSchema>;
8209
8225
  }
8210
8226
  //#endregion
8211
8227
  //#region ../../src/api/users/schemas/identityResourceSchema.d.ts
8212
- declare const identityResourceSchema: _$alepha.TObject<{
8213
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8214
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8215
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8216
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8217
- userId: PgAttr<_$alepha.TString, typeof PG_REF>;
8218
- provider: _$alepha.TString;
8219
- providerUserId: _$alepha.TOptional<_$alepha.TString>;
8220
- providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
8228
+ declare const identityResourceSchema: _$typebox.TObject<{
8229
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8230
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8231
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8232
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8233
+ userId: PgAttr<_$typebox.TString, typeof PG_REF>;
8234
+ provider: _$typebox.TString;
8235
+ providerUserId: _$typebox.TOptional<_$typebox.TString>;
8236
+ providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
8221
8237
  }>;
8222
8238
  type IdentityResource = Static<typeof identityResourceSchema>;
8223
8239
  //#endregion
8224
8240
  //#region ../../src/api/users/schemas/loginSchema.d.ts
8225
- declare const loginSchema: _$alepha.TObject<{
8226
- username: _$alepha.TString;
8227
- password: _$alepha.TString;
8241
+ declare const loginSchema: _$typebox.TObject<{
8242
+ username: _$typebox.TString;
8243
+ password: _$typebox.TString;
8228
8244
  }>;
8229
8245
  type LoginInput = Static<typeof loginSchema>;
8230
8246
  //#endregion
8231
8247
  //#region ../../src/api/users/schemas/realmConfigSchema.d.ts
8232
- declare const realmConfigSchema: _$alepha.TObject<{
8233
- settings: _$alepha.TObject<{
8234
- displayName: _$alepha.TOptional<_$alepha.TString>;
8235
- description: _$alepha.TOptional<_$alepha.TString>;
8236
- logoUrl: _$alepha.TOptional<_$alepha.TString>;
8237
- registrationAllowed: _$alepha.TBoolean;
8238
- email: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
8239
- username: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">, _$typebox.TLiteral<"email">]>;
8240
- usernameRegExp: _$alepha.TString;
8241
- usernameBlocklist: _$alepha.TArray<_$alepha.TString>;
8242
- phoneNumber: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
8243
- verifyEmailRequired: _$alepha.TBoolean;
8244
- verifyPhoneRequired: _$alepha.TBoolean;
8245
- firstNameLastName: _$alepha.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
8246
- resetPasswordAllowed: _$alepha.TBoolean;
8247
- captchaRequired: _$alepha.TBoolean;
8248
- adminEmails: _$alepha.TArray<_$alepha.TString>;
8249
- adminUsernames: _$alepha.TArray<_$alepha.TString>;
8250
- defaultRoles: _$alepha.TArray<_$alepha.TString>;
8251
- verifyEmailUrl: _$alepha.TOptional<_$alepha.TString>;
8252
- passwordPolicy: _$alepha.TObject<{
8253
- minLength: _$alepha.TInteger;
8254
- requireUppercase: _$alepha.TBoolean;
8255
- requireLowercase: _$alepha.TBoolean;
8256
- requireNumbers: _$alepha.TBoolean;
8257
- requireSpecialCharacters: _$alepha.TBoolean;
8258
- }>;
8259
- loginRateLimit: _$alepha.TObject<{
8260
- ipMaxAttempts: _$alepha.TInteger;
8261
- accountMaxAttempts: _$alepha.TInteger;
8262
- windowMs: _$alepha.TInteger;
8263
- }>;
8264
- refreshToken: _$alepha.TObject<{
8265
- expirationIdle: _$alepha.TOptional<_$alepha.TInteger>;
8248
+ declare const realmConfigSchema: _$typebox.TObject<{
8249
+ settings: _$typebox.TObject<{
8250
+ displayName: _$typebox.TOptional<_$typebox.TString>;
8251
+ description: _$typebox.TOptional<_$typebox.TString>;
8252
+ logoUrl: _$typebox.TOptional<_$typebox.TString>;
8253
+ registrationAllowed: _$typebox.TBoolean;
8254
+ email: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
8255
+ username: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">, _$typebox.TLiteral<"email">]>;
8256
+ usernameRegExp: _$typebox.TString;
8257
+ usernameBlocklist: _$typebox.TArray<_$typebox.TString>;
8258
+ phoneNumber: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
8259
+ verifyEmailRequired: _$typebox.TBoolean;
8260
+ verifyPhoneRequired: _$typebox.TBoolean;
8261
+ firstNameLastName: _$typebox.TUnion<[_$typebox.TLiteral<"none">, _$typebox.TLiteral<"optional">, _$typebox.TLiteral<"required">]>;
8262
+ resetPasswordAllowed: _$typebox.TBoolean;
8263
+ captchaRequired: _$typebox.TBoolean;
8264
+ adminEmails: _$typebox.TArray<_$typebox.TString>;
8265
+ adminUsernames: _$typebox.TArray<_$typebox.TString>;
8266
+ defaultRoles: _$typebox.TArray<_$typebox.TString>;
8267
+ verifyEmailUrl: _$typebox.TOptional<_$typebox.TString>;
8268
+ passwordPolicy: _$typebox.TObject<{
8269
+ minLength: _$typebox.TInteger;
8270
+ requireUppercase: _$typebox.TBoolean;
8271
+ requireLowercase: _$typebox.TBoolean;
8272
+ requireNumbers: _$typebox.TBoolean;
8273
+ requireSpecialCharacters: _$typebox.TBoolean;
8274
+ }>;
8275
+ loginRateLimit: _$typebox.TObject<{
8276
+ ipMaxAttempts: _$typebox.TInteger;
8277
+ accountMaxAttempts: _$typebox.TInteger;
8278
+ windowMs: _$typebox.TInteger;
8279
+ }>;
8280
+ refreshToken: _$typebox.TObject<{
8281
+ expirationIdle: _$typebox.TOptional<_$typebox.TInteger>;
8266
8282
  }>;
8267
8283
  }>;
8268
- realmName: _$alepha.TString;
8269
- authenticationMethods: _$alepha.TArray<_$alepha.TObject<{
8270
- name: _$alepha.TString;
8271
- type: _$alepha.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
8284
+ realmName: _$typebox.TString;
8285
+ authenticationMethods: _$typebox.TArray<_$typebox.TObject<{
8286
+ name: _$typebox.TString;
8287
+ type: _$typebox.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
8272
8288
  }>>;
8273
- captchaSiteKey: _$alepha.TOptional<_$alepha.TString>;
8289
+ captchaSiteKey: _$typebox.TOptional<_$typebox.TString>;
8274
8290
  }>;
8275
8291
  type RealmConfig = Static<typeof realmConfigSchema>;
8276
8292
  //#endregion
8277
8293
  //#region ../../src/api/users/schemas/registerSchema.d.ts
8278
- declare const registerSchema: _$alepha.TObject<{
8279
- username: _$alepha.TString;
8280
- email: _$alepha.TString;
8281
- password: _$alepha.TString;
8282
- confirmPassword: _$alepha.TString;
8283
- firstName: _$alepha.TOptional<_$alepha.TString>;
8284
- lastName: _$alepha.TOptional<_$alepha.TString>;
8294
+ declare const registerSchema: _$typebox.TObject<{
8295
+ username: _$typebox.TString;
8296
+ email: _$typebox.TString;
8297
+ password: _$typebox.TString;
8298
+ confirmPassword: _$typebox.TString;
8299
+ firstName: _$typebox.TOptional<_$typebox.TString>;
8300
+ lastName: _$typebox.TOptional<_$typebox.TString>;
8285
8301
  }>;
8286
8302
  type RegisterInput = Static<typeof registerSchema>;
8287
8303
  //#endregion
8288
8304
  //#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
8289
- declare const resetPasswordRequestSchema: _$alepha.TObject<{
8290
- email: _$alepha.TString;
8305
+ declare const resetPasswordRequestSchema: _$typebox.TObject<{
8306
+ email: _$typebox.TString;
8291
8307
  }>;
8292
- declare const resetPasswordSchema: _$alepha.TObject<{
8293
- token: _$alepha.TString;
8294
- password: _$alepha.TString;
8295
- confirmPassword: _$alepha.TString;
8308
+ declare const resetPasswordSchema: _$typebox.TObject<{
8309
+ token: _$typebox.TString;
8310
+ password: _$typebox.TString;
8311
+ confirmPassword: _$typebox.TString;
8296
8312
  }>;
8297
8313
  type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
8298
8314
  type ResetPasswordInput = Static<typeof resetPasswordSchema>;
8299
8315
  //#endregion
8300
8316
  //#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
8301
- declare const sessionResourceSchema: _$alepha.TObject<{
8302
- id: _$alepha.TString;
8303
- version: _$alepha.TNumber;
8304
- createdAt: _$alepha.TString;
8305
- updatedAt: _$alepha.TString;
8306
- refreshToken: _$alepha.TString;
8307
- userId: _$alepha.TString;
8308
- expiresAt: _$alepha.TString;
8309
- ip: _$alepha.TOptional<_$alepha.TString>;
8310
- userAgent: _$alepha.TOptional<_$alepha.TObject<{
8311
- os: _$alepha.TString;
8312
- browser: _$alepha.TString;
8313
- device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8317
+ declare const sessionResourceSchema: _$typebox.TObject<{
8318
+ id: _$typebox.TString;
8319
+ version: _$typebox.TNumber;
8320
+ createdAt: _$typebox.TString;
8321
+ updatedAt: _$typebox.TString;
8322
+ refreshToken: _$typebox.TString;
8323
+ userId: _$typebox.TString;
8324
+ expiresAt: _$typebox.TString;
8325
+ ip: _$typebox.TOptional<_$typebox.TString>;
8326
+ userAgent: _$typebox.TOptional<_$typebox.TObject<{
8327
+ os: _$typebox.TString;
8328
+ browser: _$typebox.TString;
8329
+ device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8314
8330
  }>>;
8315
8331
  }>;
8316
8332
  type SessionResource = Static<typeof sessionResourceSchema>;
8317
8333
  //#endregion
8318
8334
  //#region ../../src/api/users/schemas/userResourceSchema.d.ts
8319
- declare const userResourceSchema: _$alepha.TObject<{
8320
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8321
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8322
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8323
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8324
- realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
8325
- username: _$alepha.TOptional<_$alepha.TString>;
8326
- email: _$alepha.TOptional<_$alepha.TString>;
8327
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
8328
- roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
8329
- firstName: _$alepha.TOptional<_$alepha.TString>;
8330
- lastName: _$alepha.TOptional<_$alepha.TString>;
8331
- picture: _$alepha.TOptional<_$alepha.TString>;
8332
- enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8333
- emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8334
- organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
8335
+ declare const userResourceSchema: _$typebox.TObject<{
8336
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8337
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8338
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8339
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8340
+ realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
8341
+ username: _$typebox.TOptional<_$typebox.TString>;
8342
+ email: _$typebox.TOptional<_$typebox.TString>;
8343
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
8344
+ roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
8345
+ firstName: _$typebox.TOptional<_$typebox.TString>;
8346
+ lastName: _$typebox.TOptional<_$typebox.TString>;
8347
+ picture: _$typebox.TOptional<_$typebox.TString>;
8348
+ enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
8349
+ emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
8350
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
8335
8351
  }>;
8336
8352
  type UserResource = Static<typeof userResourceSchema>;
8337
8353
  //#endregion
@@ -8348,49 +8364,49 @@ declare class SessionService {
8348
8364
  protected readonly usernameSlugger: UsernameSlugger;
8349
8365
  protected userAudits(realmName?: string): UserAudits | undefined;
8350
8366
  protected userNotifications(realmName?: string): UserNotifications | undefined;
8351
- users(userRealmName?: string): Repository$1<_$alepha.TObject<{
8352
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8353
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8354
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8355
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8356
- realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
8357
- username: _$alepha.TOptional<_$alepha.TString>;
8358
- email: _$alepha.TOptional<_$alepha.TString>;
8359
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
8360
- roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
8361
- firstName: _$alepha.TOptional<_$alepha.TString>;
8362
- lastName: _$alepha.TOptional<_$alepha.TString>;
8363
- picture: _$alepha.TOptional<_$alepha.TString>;
8364
- enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8365
- emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8366
- organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
8367
+ users(userRealmName?: string): Repository$1<_$typebox.TObject<{
8368
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8369
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8370
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8371
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8372
+ realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
8373
+ username: _$typebox.TOptional<_$typebox.TString>;
8374
+ email: _$typebox.TOptional<_$typebox.TString>;
8375
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
8376
+ roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
8377
+ firstName: _$typebox.TOptional<_$typebox.TString>;
8378
+ lastName: _$typebox.TOptional<_$typebox.TString>;
8379
+ picture: _$typebox.TOptional<_$typebox.TString>;
8380
+ enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
8381
+ emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
8382
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
8367
8383
  }>>;
8368
- sessions(userRealmName?: string): Repository$1<_$alepha.TObject<{
8369
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8370
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8371
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8372
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8373
- refreshToken: _$alepha.TString;
8374
- userId: PgAttr<_$alepha.TString, typeof PG_REF>;
8375
- expiresAt: _$alepha.TString;
8376
- lastUsedAt: _$alepha.TOptional<_$alepha.TString>;
8377
- ip: _$alepha.TOptional<_$alepha.TString>;
8378
- userAgent: _$alepha.TOptional<_$alepha.TObject<{
8379
- os: _$alepha.TString;
8380
- browser: _$alepha.TString;
8381
- device: _$alepha.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8384
+ sessions(userRealmName?: string): Repository$1<_$typebox.TObject<{
8385
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8386
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8387
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8388
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8389
+ refreshToken: _$typebox.TString;
8390
+ userId: PgAttr<_$typebox.TString, typeof PG_REF>;
8391
+ expiresAt: _$typebox.TString;
8392
+ lastUsedAt: _$typebox.TOptional<_$typebox.TString>;
8393
+ ip: _$typebox.TOptional<_$typebox.TString>;
8394
+ userAgent: _$typebox.TOptional<_$typebox.TObject<{
8395
+ os: _$typebox.TString;
8396
+ browser: _$typebox.TString;
8397
+ device: _$typebox.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
8382
8398
  }>>;
8383
8399
  }>>;
8384
- identities(userRealmName?: string): Repository$1<_$alepha.TObject<{
8385
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8386
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8387
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8388
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8389
- userId: PgAttr<_$alepha.TString, typeof PG_REF>;
8390
- password: _$alepha.TOptional<_$alepha.TString>;
8391
- provider: _$alepha.TString;
8392
- providerUserId: _$alepha.TOptional<_$alepha.TString>;
8393
- providerData: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
8400
+ identities(userRealmName?: string): Repository$1<_$typebox.TObject<{
8401
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8402
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8403
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8404
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8405
+ userId: PgAttr<_$typebox.TString, typeof PG_REF>;
8406
+ password: _$typebox.TOptional<_$typebox.TString>;
8407
+ provider: _$typebox.TString;
8408
+ providerUserId: _$typebox.TOptional<_$typebox.TString>;
8409
+ providerData: _$typebox.TOptional<_$typebox.TRecord<string, _$typebox.TAny>>;
8394
8410
  }>>;
8395
8411
  /**
8396
8412
  * Check if user should be auto-promoted to admin based on adminEmails/adminUsernames settings.
@@ -8439,38 +8455,38 @@ declare class SessionService {
8439
8455
  sessionId: string;
8440
8456
  }>;
8441
8457
  refreshSession(refreshToken: string, userRealmName?: string): Promise<{
8442
- user: PgStatic<_$alepha.TObject<{
8443
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8444
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8445
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8446
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8447
- realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
8448
- username: _$alepha.TOptional<_$alepha.TString>;
8449
- email: _$alepha.TOptional<_$alepha.TString>;
8450
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
8451
- roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
8452
- firstName: _$alepha.TOptional<_$alepha.TString>;
8453
- lastName: _$alepha.TOptional<_$alepha.TString>;
8454
- picture: _$alepha.TOptional<_$alepha.TString>;
8455
- enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8456
- emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8457
- organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
8458
- }>, PgRelationMap<_$alepha.TObject<{
8459
- id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8460
- version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8461
- createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8462
- updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8463
- realm: PgAttr<_$alepha.TString, typeof PG_DEFAULT>;
8464
- username: _$alepha.TOptional<_$alepha.TString>;
8465
- email: _$alepha.TOptional<_$alepha.TString>;
8466
- phoneNumber: _$alepha.TOptional<_$alepha.TString>;
8467
- roles: PgAttr<_$alepha.TArray<_$alepha.TString>, typeof PG_DEFAULT>;
8468
- firstName: _$alepha.TOptional<_$alepha.TString>;
8469
- lastName: _$alepha.TOptional<_$alepha.TString>;
8470
- picture: _$alepha.TOptional<_$alepha.TString>;
8471
- enabled: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8472
- emailVerified: PgAttr<_$alepha.TBoolean, typeof PG_DEFAULT>;
8473
- organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
8458
+ user: PgStatic<_$typebox.TObject<{
8459
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8460
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8461
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8462
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8463
+ realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
8464
+ username: _$typebox.TOptional<_$typebox.TString>;
8465
+ email: _$typebox.TOptional<_$typebox.TString>;
8466
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
8467
+ roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
8468
+ firstName: _$typebox.TOptional<_$typebox.TString>;
8469
+ lastName: _$typebox.TOptional<_$typebox.TString>;
8470
+ picture: _$typebox.TOptional<_$typebox.TString>;
8471
+ enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
8472
+ emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
8473
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
8474
+ }>, PgRelationMap<_$typebox.TObject<{
8475
+ id: PgAttr<PgAttr<_$typebox.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
8476
+ version: PgAttr<PgAttr<_$typebox.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
8477
+ createdAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
8478
+ updatedAt: PgAttr<PgAttr<_$typebox.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
8479
+ realm: PgAttr<_$typebox.TString, typeof PG_DEFAULT>;
8480
+ username: _$typebox.TOptional<_$typebox.TString>;
8481
+ email: _$typebox.TOptional<_$typebox.TString>;
8482
+ phoneNumber: _$typebox.TOptional<_$typebox.TString>;
8483
+ roles: PgAttr<_$typebox.TArray<_$typebox.TString>, typeof PG_DEFAULT>;
8484
+ firstName: _$typebox.TOptional<_$typebox.TString>;
8485
+ lastName: _$typebox.TOptional<_$typebox.TString>;
8486
+ picture: _$typebox.TOptional<_$typebox.TString>;
8487
+ enabled: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
8488
+ emailVerified: PgAttr<_$typebox.TBoolean, typeof PG_DEFAULT>;
8489
+ organizationId: PgAttr<_$typebox.TString, typeof PG_ORGANIZATION>;
8474
8490
  }>>>;
8475
8491
  expiresIn: number;
8476
8492
  sessionId: string;
@@ -8478,20 +8494,20 @@ declare class SessionService {
8478
8494
  deleteSession(refreshToken: string, userRealmName?: string): Promise<void>;
8479
8495
  link(provider: string, profile: OAuth2Profile, userRealmName?: string): Promise<{
8480
8496
  email?: string | undefined;
8481
- phoneNumber?: string | undefined;
8482
8497
  username?: string | undefined;
8498
+ phoneNumber?: string | undefined;
8483
8499
  firstName?: string | undefined;
8484
8500
  lastName?: string | undefined;
8485
8501
  picture?: string | undefined;
8486
- organizationId?: string | undefined;
8487
8502
  enabled: boolean;
8503
+ emailVerified: boolean;
8504
+ roles: string[];
8488
8505
  id: string;
8489
8506
  version: number;
8490
8507
  createdAt: string;
8491
8508
  updatedAt: string;
8492
8509
  realm: string;
8493
- roles: string[];
8494
- emailVerified: boolean;
8510
+ organizationId: string;
8495
8511
  } | {
8496
8512
  sub: string;
8497
8513
  email?: string;