alepha 0.10.6 → 0.10.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.
package/api/users.d.ts CHANGED
@@ -2,12 +2,874 @@ import * as _alepha_core0 from "alepha";
2
2
  import { Alepha, Static } from "alepha";
3
3
  import * as _alepha_react_auth0 from "alepha/react/auth";
4
4
  import { OAuth2Profile } from "alepha/react/auth";
5
- import { DateTimeProvider } from "alepha/datetime";
6
- import * as _alepha_postgres233 from "alepha/postgres";
5
+ import * as _alepha_postgres59 from "alepha/postgres";
6
+ import { Page } from "alepha/postgres";
7
+ import * as _alepha_server0 from "alepha/server";
7
8
  import * as _alepha_security0 from "alepha/security";
8
9
  import { CryptoProvider, RealmDescriptor, RealmDescriptorOptions, UserAccount } from "alepha/security";
9
- import * as typebox176 from "typebox";
10
+ import * as _alepha_server_links0 from "alepha/server/links";
11
+ import * as _alepha_api_notifications0 from "alepha/api/notifications";
12
+ import { DateTimeProvider } from "alepha/datetime";
13
+ import * as typebox318 from "typebox";
14
+ import { VerificationController } from "alepha/api/verifications";
10
15
 
16
+ //#region src/entities/identities.d.ts
17
+ declare const identities: _alepha_postgres59.PgTableWithColumnsAndSchema<_alepha_postgres59.PgTableConfig<"identities", typebox318.TObject<{
18
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
19
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
20
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
21
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
22
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
23
+ provider: typebox318.TString;
24
+ providerUserId: typebox318.TString;
25
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
26
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
27
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
28
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
29
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
30
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
31
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
32
+ provider: typebox318.TString;
33
+ providerUserId: typebox318.TString;
34
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
35
+ }>>>, typebox318.TObject<{
36
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
37
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
38
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
39
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
40
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
41
+ provider: typebox318.TString;
42
+ providerUserId: typebox318.TString;
43
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
44
+ }>>;
45
+ type IdentityEntity = Static<typeof identities.$schema>;
46
+ //#endregion
47
+ //#region src/schemas/identityQuerySchema.d.ts
48
+ declare const identityQuerySchema: typebox318.TObject<{
49
+ page: typebox318.TOptional<typebox318.TInteger>;
50
+ size: typebox318.TOptional<typebox318.TInteger>;
51
+ sort: typebox318.TOptional<typebox318.TString>;
52
+ userId: typebox318.TOptional<typebox318.TString>;
53
+ provider: typebox318.TOptional<typebox318.TString>;
54
+ }>;
55
+ type IdentityQuery = Static<typeof identityQuerySchema>;
56
+ //#endregion
57
+ //#region src/services/IdentityService.d.ts
58
+ declare class IdentityService {
59
+ readonly identities: _alepha_postgres59.RepositoryDescriptor<_alepha_postgres59.PgTableConfig<"identities", typebox318.TObject<{
60
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
61
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
62
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
63
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
64
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
65
+ provider: typebox318.TString;
66
+ providerUserId: typebox318.TString;
67
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
68
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
69
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
70
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
71
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
72
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
73
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
74
+ provider: typebox318.TString;
75
+ providerUserId: typebox318.TString;
76
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
77
+ }>>>, typebox318.TObject<{
78
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
79
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
80
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
81
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
82
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
83
+ provider: typebox318.TString;
84
+ providerUserId: typebox318.TString;
85
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
86
+ }>>;
87
+ /**
88
+ * Find identities with pagination and filtering.
89
+ */
90
+ findIdentities(q?: IdentityQuery): Promise<Page<IdentityEntity>>;
91
+ /**
92
+ * Get an identity by ID.
93
+ */
94
+ getIdentityById(id: string): Promise<IdentityEntity>;
95
+ /**
96
+ * Delete an identity by ID.
97
+ */
98
+ deleteIdentity(id: string): Promise<void>;
99
+ }
100
+ //#endregion
101
+ //#region src/controllers/IdentityController.d.ts
102
+ declare class IdentityController {
103
+ protected readonly url = "/identities";
104
+ protected readonly group = "identities";
105
+ protected readonly identityService: IdentityService;
106
+ /**
107
+ * Find identities with pagination and filtering.
108
+ */
109
+ readonly findIdentities: _alepha_server0.ActionDescriptorFn<{
110
+ query: typebox318.TObject<{
111
+ page: typebox318.TOptional<typebox318.TInteger>;
112
+ size: typebox318.TOptional<typebox318.TInteger>;
113
+ sort: typebox318.TOptional<typebox318.TString>;
114
+ userId: typebox318.TOptional<typebox318.TString>;
115
+ provider: typebox318.TOptional<typebox318.TString>;
116
+ }>;
117
+ response: _alepha_postgres59.TPage<typebox318.TObject<{
118
+ id: typebox318.TString;
119
+ version: typebox318.TNumber;
120
+ createdAt: typebox318.TString;
121
+ updatedAt: typebox318.TString;
122
+ userId: typebox318.TString;
123
+ provider: typebox318.TString;
124
+ providerUserId: typebox318.TString;
125
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
126
+ }>>;
127
+ }>;
128
+ /**
129
+ * Get an identity by ID.
130
+ */
131
+ readonly getIdentity: _alepha_server0.ActionDescriptorFn<{
132
+ params: typebox318.TObject<{
133
+ id: typebox318.TString;
134
+ }>;
135
+ response: typebox318.TObject<{
136
+ id: typebox318.TString;
137
+ version: typebox318.TNumber;
138
+ createdAt: typebox318.TString;
139
+ updatedAt: typebox318.TString;
140
+ userId: typebox318.TString;
141
+ provider: typebox318.TString;
142
+ providerUserId: typebox318.TString;
143
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
144
+ }>;
145
+ }>;
146
+ /**
147
+ * Delete an identity.
148
+ */
149
+ readonly deleteIdentity: _alepha_server0.ActionDescriptorFn<{
150
+ params: typebox318.TObject<{
151
+ id: typebox318.TString;
152
+ }>;
153
+ response: typebox318.TObject<{
154
+ ok: typebox318.TBoolean;
155
+ id: typebox318.TOptional<typebox318.TUnion<[typebox318.TString, typebox318.TInteger]>>;
156
+ count: typebox318.TOptional<typebox318.TNumber>;
157
+ }>;
158
+ }>;
159
+ }
160
+ //#endregion
161
+ //#region src/entities/sessions.d.ts
162
+ declare const sessions: _alepha_postgres59.PgTableWithColumnsAndSchema<_alepha_postgres59.PgTableConfig<"sessions", typebox318.TObject<{
163
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
164
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
165
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
166
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
167
+ refreshToken: typebox318.TString;
168
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
169
+ expiresAt: typebox318.TString;
170
+ ip: typebox318.TOptional<typebox318.TString>;
171
+ userAgent: typebox318.TOptional<typebox318.TObject<{
172
+ os: typebox318.TString;
173
+ browser: typebox318.TString;
174
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
175
+ }>>;
176
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
177
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
178
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
179
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
180
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
181
+ refreshToken: typebox318.TString;
182
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
183
+ expiresAt: typebox318.TString;
184
+ ip: typebox318.TOptional<typebox318.TString>;
185
+ userAgent: typebox318.TOptional<typebox318.TObject<{
186
+ os: typebox318.TString;
187
+ browser: typebox318.TString;
188
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
189
+ }>>;
190
+ }>>>, typebox318.TObject<{
191
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
192
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
193
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
194
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
195
+ refreshToken: typebox318.TString;
196
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
197
+ expiresAt: typebox318.TString;
198
+ ip: typebox318.TOptional<typebox318.TString>;
199
+ userAgent: typebox318.TOptional<typebox318.TObject<{
200
+ os: typebox318.TString;
201
+ browser: typebox318.TString;
202
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
203
+ }>>;
204
+ }>>;
205
+ type SessionEntity = Static<typeof sessions.$schema>;
206
+ //#endregion
207
+ //#region src/schemas/sessionQuerySchema.d.ts
208
+ declare const sessionQuerySchema: typebox318.TObject<{
209
+ page: typebox318.TOptional<typebox318.TInteger>;
210
+ size: typebox318.TOptional<typebox318.TInteger>;
211
+ sort: typebox318.TOptional<typebox318.TString>;
212
+ userId: typebox318.TOptional<typebox318.TString>;
213
+ }>;
214
+ type SessionQuery = Static<typeof sessionQuerySchema>;
215
+ //#endregion
216
+ //#region src/services/SessionCrudService.d.ts
217
+ declare class SessionCrudService {
218
+ readonly sessions: _alepha_postgres59.RepositoryDescriptor<_alepha_postgres59.PgTableConfig<"sessions", typebox318.TObject<{
219
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
220
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
221
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
222
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
223
+ refreshToken: typebox318.TString;
224
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
225
+ expiresAt: typebox318.TString;
226
+ ip: typebox318.TOptional<typebox318.TString>;
227
+ userAgent: typebox318.TOptional<typebox318.TObject<{
228
+ os: typebox318.TString;
229
+ browser: typebox318.TString;
230
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
231
+ }>>;
232
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
233
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
234
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
235
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
236
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
237
+ refreshToken: typebox318.TString;
238
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
239
+ expiresAt: typebox318.TString;
240
+ ip: typebox318.TOptional<typebox318.TString>;
241
+ userAgent: typebox318.TOptional<typebox318.TObject<{
242
+ os: typebox318.TString;
243
+ browser: typebox318.TString;
244
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
245
+ }>>;
246
+ }>>>, typebox318.TObject<{
247
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
248
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
249
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
250
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
251
+ refreshToken: typebox318.TString;
252
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
253
+ expiresAt: typebox318.TString;
254
+ ip: typebox318.TOptional<typebox318.TString>;
255
+ userAgent: typebox318.TOptional<typebox318.TObject<{
256
+ os: typebox318.TString;
257
+ browser: typebox318.TString;
258
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
259
+ }>>;
260
+ }>>;
261
+ /**
262
+ * Find sessions with pagination and filtering.
263
+ */
264
+ findSessions(q?: SessionQuery): Promise<Page<SessionEntity>>;
265
+ /**
266
+ * Get a session by ID.
267
+ */
268
+ getSessionById(id: string): Promise<SessionEntity>;
269
+ /**
270
+ * Delete a session by ID.
271
+ */
272
+ deleteSession(id: string): Promise<void>;
273
+ }
274
+ //#endregion
275
+ //#region src/controllers/SessionController.d.ts
276
+ declare class SessionController {
277
+ protected readonly url = "/sessions";
278
+ protected readonly group = "sessions";
279
+ protected readonly sessionService: SessionCrudService;
280
+ /**
281
+ * Find sessions with pagination and filtering.
282
+ */
283
+ readonly findSessions: _alepha_server0.ActionDescriptorFn<{
284
+ query: typebox318.TObject<{
285
+ page: typebox318.TOptional<typebox318.TInteger>;
286
+ size: typebox318.TOptional<typebox318.TInteger>;
287
+ sort: typebox318.TOptional<typebox318.TString>;
288
+ userId: typebox318.TOptional<typebox318.TString>;
289
+ }>;
290
+ response: _alepha_postgres59.TPage<typebox318.TObject<{
291
+ id: typebox318.TString;
292
+ version: typebox318.TNumber;
293
+ createdAt: typebox318.TString;
294
+ updatedAt: typebox318.TString;
295
+ refreshToken: typebox318.TString;
296
+ userId: typebox318.TString;
297
+ expiresAt: typebox318.TString;
298
+ ip: typebox318.TOptional<typebox318.TString>;
299
+ userAgent: typebox318.TOptional<typebox318.TObject<{
300
+ os: typebox318.TString;
301
+ browser: typebox318.TString;
302
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
303
+ }>>;
304
+ }>>;
305
+ }>;
306
+ /**
307
+ * Get a session by ID.
308
+ */
309
+ readonly getSession: _alepha_server0.ActionDescriptorFn<{
310
+ params: typebox318.TObject<{
311
+ id: typebox318.TString;
312
+ }>;
313
+ response: typebox318.TObject<{
314
+ id: typebox318.TString;
315
+ version: typebox318.TNumber;
316
+ createdAt: typebox318.TString;
317
+ updatedAt: typebox318.TString;
318
+ refreshToken: typebox318.TString;
319
+ userId: typebox318.TString;
320
+ expiresAt: typebox318.TString;
321
+ ip: typebox318.TOptional<typebox318.TString>;
322
+ userAgent: typebox318.TOptional<typebox318.TObject<{
323
+ os: typebox318.TString;
324
+ browser: typebox318.TString;
325
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
326
+ }>>;
327
+ }>;
328
+ }>;
329
+ /**
330
+ * Delete a session.
331
+ */
332
+ readonly deleteSession: _alepha_server0.ActionDescriptorFn<{
333
+ params: typebox318.TObject<{
334
+ id: typebox318.TString;
335
+ }>;
336
+ response: typebox318.TObject<{
337
+ ok: typebox318.TBoolean;
338
+ id: typebox318.TOptional<typebox318.TUnion<[typebox318.TString, typebox318.TInteger]>>;
339
+ count: typebox318.TOptional<typebox318.TNumber>;
340
+ }>;
341
+ }>;
342
+ }
343
+ //#endregion
344
+ //#region src/notifications/UserNotifications.d.ts
345
+ declare class UserNotifications {
346
+ readonly passwordReset: _alepha_api_notifications0.NotificationDescriptor<typebox318.TObject<{
347
+ email: typebox318.TString;
348
+ resetUrl: typebox318.TString;
349
+ expiresInMinutes: typebox318.TNumber;
350
+ }>>;
351
+ readonly emailVerification: _alepha_api_notifications0.NotificationDescriptor<typebox318.TObject<{
352
+ email: typebox318.TString;
353
+ verifyUrl: typebox318.TString;
354
+ expiresInMinutes: typebox318.TNumber;
355
+ }>>;
356
+ }
357
+ //#endregion
358
+ //#region src/services/CredentialService.d.ts
359
+ declare class CredentialService {
360
+ protected readonly cryptoProvider: CryptoProvider;
361
+ protected readonly verificationController: _alepha_server_links0.HttpVirtualClient<VerificationController>;
362
+ protected readonly userNotifications: UserNotifications;
363
+ readonly users: _alepha_postgres59.RepositoryDescriptor<_alepha_postgres59.PgTableConfig<"users", typebox318.TObject<{
364
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
365
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
366
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
367
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
368
+ email: typebox318.TString;
369
+ roles: typebox318.TArray<typebox318.TString>;
370
+ name: typebox318.TOptional<typebox318.TString>;
371
+ firstName: typebox318.TOptional<typebox318.TString>;
372
+ lastName: typebox318.TOptional<typebox318.TString>;
373
+ picture: typebox318.TOptional<typebox318.TString>;
374
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
375
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
376
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
377
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
378
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
379
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
380
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
381
+ email: typebox318.TString;
382
+ roles: typebox318.TArray<typebox318.TString>;
383
+ name: typebox318.TOptional<typebox318.TString>;
384
+ firstName: typebox318.TOptional<typebox318.TString>;
385
+ lastName: typebox318.TOptional<typebox318.TString>;
386
+ picture: typebox318.TOptional<typebox318.TString>;
387
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
388
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
389
+ }>>>, typebox318.TObject<{
390
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
391
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
392
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
393
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
394
+ email: typebox318.TString;
395
+ roles: typebox318.TArray<typebox318.TString>;
396
+ name: typebox318.TOptional<typebox318.TString>;
397
+ firstName: typebox318.TOptional<typebox318.TString>;
398
+ lastName: typebox318.TOptional<typebox318.TString>;
399
+ picture: typebox318.TOptional<typebox318.TString>;
400
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
401
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
402
+ }>>;
403
+ readonly sessions: _alepha_postgres59.RepositoryDescriptor<_alepha_postgres59.PgTableConfig<"sessions", typebox318.TObject<{
404
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
405
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
406
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
407
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
408
+ refreshToken: typebox318.TString;
409
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
410
+ expiresAt: typebox318.TString;
411
+ ip: typebox318.TOptional<typebox318.TString>;
412
+ userAgent: typebox318.TOptional<typebox318.TObject<{
413
+ os: typebox318.TString;
414
+ browser: typebox318.TString;
415
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
416
+ }>>;
417
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
418
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
419
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
420
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
421
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
422
+ refreshToken: typebox318.TString;
423
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
424
+ expiresAt: typebox318.TString;
425
+ ip: typebox318.TOptional<typebox318.TString>;
426
+ userAgent: typebox318.TOptional<typebox318.TObject<{
427
+ os: typebox318.TString;
428
+ browser: typebox318.TString;
429
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
430
+ }>>;
431
+ }>>>, typebox318.TObject<{
432
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
433
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
434
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
435
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
436
+ refreshToken: typebox318.TString;
437
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
438
+ expiresAt: typebox318.TString;
439
+ ip: typebox318.TOptional<typebox318.TString>;
440
+ userAgent: typebox318.TOptional<typebox318.TObject<{
441
+ os: typebox318.TString;
442
+ browser: typebox318.TString;
443
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
444
+ }>>;
445
+ }>>;
446
+ readonly identities: _alepha_postgres59.RepositoryDescriptor<_alepha_postgres59.PgTableConfig<"identities", typebox318.TObject<{
447
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
448
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
449
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
450
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
451
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
452
+ provider: typebox318.TString;
453
+ providerUserId: typebox318.TString;
454
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
455
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
456
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
457
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
458
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
459
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
460
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
461
+ provider: typebox318.TString;
462
+ providerUserId: typebox318.TString;
463
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
464
+ }>>>, typebox318.TObject<{
465
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
466
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
467
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
468
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
469
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
470
+ provider: typebox318.TString;
471
+ providerUserId: typebox318.TString;
472
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
473
+ }>>;
474
+ /**
475
+ * Request a password reset for a user by email.
476
+ * Uses the verification service for secure token generation and management.
477
+ *
478
+ * @param email - User's email address
479
+ * @param resetUrl - Base URL for the password reset page
480
+ * @returns True if reset was initiated (regardless of whether user exists - for security)
481
+ */
482
+ requestPasswordReset(email: string, resetUrl: string): Promise<boolean>;
483
+ /**
484
+ * Validate a password reset token.
485
+ * Returns email if valid, throws error if invalid/expired.
486
+ */
487
+ validateResetToken(email: string, token: string): Promise<string>;
488
+ /**
489
+ * Reset a user's password using a valid reset token.
490
+ * Validates token, updates password, and invalidates all sessions.
491
+ */
492
+ resetPassword(email: string, token: string, newPassword: string): Promise<void>;
493
+ }
494
+ //#endregion
495
+ //#region src/entities/users.d.ts
496
+ declare const users: _alepha_postgres59.PgTableWithColumnsAndSchema<_alepha_postgres59.PgTableConfig<"users", typebox318.TObject<{
497
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
498
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
499
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
500
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
501
+ email: typebox318.TString;
502
+ roles: typebox318.TArray<typebox318.TString>;
503
+ name: typebox318.TOptional<typebox318.TString>;
504
+ firstName: typebox318.TOptional<typebox318.TString>;
505
+ lastName: typebox318.TOptional<typebox318.TString>;
506
+ picture: typebox318.TOptional<typebox318.TString>;
507
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
508
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
509
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
510
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
511
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
512
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
513
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
514
+ email: typebox318.TString;
515
+ roles: typebox318.TArray<typebox318.TString>;
516
+ name: typebox318.TOptional<typebox318.TString>;
517
+ firstName: typebox318.TOptional<typebox318.TString>;
518
+ lastName: typebox318.TOptional<typebox318.TString>;
519
+ picture: typebox318.TOptional<typebox318.TString>;
520
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
521
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
522
+ }>>>, typebox318.TObject<{
523
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
524
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
525
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
526
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
527
+ email: typebox318.TString;
528
+ roles: typebox318.TArray<typebox318.TString>;
529
+ name: typebox318.TOptional<typebox318.TString>;
530
+ firstName: typebox318.TOptional<typebox318.TString>;
531
+ lastName: typebox318.TOptional<typebox318.TString>;
532
+ picture: typebox318.TOptional<typebox318.TString>;
533
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
534
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
535
+ }>>;
536
+ type UserEntity = Static<typeof users.$schema>;
537
+ //#endregion
538
+ //#region src/schemas/createUserSchema.d.ts
539
+ declare const createUserSchema: typebox318.TObject<{
540
+ email: typebox318.TString;
541
+ name: typebox318.TOptional<typebox318.TString>;
542
+ firstName: typebox318.TOptional<typebox318.TString>;
543
+ lastName: typebox318.TOptional<typebox318.TString>;
544
+ picture: typebox318.TOptional<typebox318.TString>;
545
+ roles: typebox318.TOptional<typebox318.TArray<typebox318.TString>>;
546
+ enabled: typebox318.TOptional<typebox318.TBoolean>;
547
+ emailVerified: typebox318.TOptional<typebox318.TBoolean>;
548
+ }>;
549
+ type CreateUser = Static<typeof createUserSchema>;
550
+ //#endregion
551
+ //#region src/schemas/updateUserSchema.d.ts
552
+ declare const updateUserSchema: typebox318.TObject<{
553
+ name: typebox318.TOptional<typebox318.TString>;
554
+ firstName: typebox318.TOptional<typebox318.TString>;
555
+ lastName: typebox318.TOptional<typebox318.TString>;
556
+ picture: typebox318.TOptional<typebox318.TString>;
557
+ roles: typebox318.TOptional<typebox318.TArray<typebox318.TString>>;
558
+ enabled: typebox318.TOptional<typebox318.TBoolean>;
559
+ }>;
560
+ type UpdateUser = Static<typeof updateUserSchema>;
561
+ //#endregion
562
+ //#region src/schemas/userQuerySchema.d.ts
563
+ declare const userQuerySchema: typebox318.TObject<{
564
+ page: typebox318.TOptional<typebox318.TInteger>;
565
+ size: typebox318.TOptional<typebox318.TInteger>;
566
+ sort: typebox318.TOptional<typebox318.TString>;
567
+ email: typebox318.TOptional<typebox318.TString>;
568
+ enabled: typebox318.TOptional<typebox318.TBoolean>;
569
+ emailVerified: typebox318.TOptional<typebox318.TBoolean>;
570
+ roles: typebox318.TOptional<typebox318.TArray<typebox318.TString>>;
571
+ }>;
572
+ type UserQuery = Static<typeof userQuerySchema>;
573
+ //#endregion
574
+ //#region src/services/UserService.d.ts
575
+ declare class UserService {
576
+ protected readonly verificationController: _alepha_server_links0.HttpVirtualClient<VerificationController>;
577
+ protected readonly userNotifications: UserNotifications;
578
+ readonly users: _alepha_postgres59.RepositoryDescriptor<_alepha_postgres59.PgTableConfig<"users", typebox318.TObject<{
579
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
580
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
581
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
582
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
583
+ email: typebox318.TString;
584
+ roles: typebox318.TArray<typebox318.TString>;
585
+ name: typebox318.TOptional<typebox318.TString>;
586
+ firstName: typebox318.TOptional<typebox318.TString>;
587
+ lastName: typebox318.TOptional<typebox318.TString>;
588
+ picture: typebox318.TOptional<typebox318.TString>;
589
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
590
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
591
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
592
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
593
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
594
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
595
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
596
+ email: typebox318.TString;
597
+ roles: typebox318.TArray<typebox318.TString>;
598
+ name: typebox318.TOptional<typebox318.TString>;
599
+ firstName: typebox318.TOptional<typebox318.TString>;
600
+ lastName: typebox318.TOptional<typebox318.TString>;
601
+ picture: typebox318.TOptional<typebox318.TString>;
602
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
603
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
604
+ }>>>, typebox318.TObject<{
605
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
606
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
607
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
608
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
609
+ email: typebox318.TString;
610
+ roles: typebox318.TArray<typebox318.TString>;
611
+ name: typebox318.TOptional<typebox318.TString>;
612
+ firstName: typebox318.TOptional<typebox318.TString>;
613
+ lastName: typebox318.TOptional<typebox318.TString>;
614
+ picture: typebox318.TOptional<typebox318.TString>;
615
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
616
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
617
+ }>>;
618
+ /**
619
+ * Request email verification for a user.
620
+ * Uses the verification service for secure token generation and management.
621
+ *
622
+ * @param email - User's email address
623
+ * @param verifyUrl - Base URL for the email verification page
624
+ * @returns True if verification was initiated
625
+ */
626
+ requestEmailVerification(email: string, verifyUrl: string): Promise<boolean>;
627
+ /**
628
+ * Verify a user's email using a valid verification token.
629
+ * Validates token and updates the user's emailVerified status.
630
+ */
631
+ verifyEmail(email: string, token: string): Promise<void>;
632
+ /**
633
+ * Check if an email is verified.
634
+ *
635
+ * @param email - User's email address
636
+ * @returns True if email is verified, false otherwise
637
+ */
638
+ isEmailVerified(email: string): Promise<boolean>;
639
+ /**
640
+ * Find users with pagination and filtering.
641
+ */
642
+ findUsers(q?: UserQuery): Promise<Page<UserEntity>>;
643
+ /**
644
+ * Get a user by ID.
645
+ */
646
+ getUserById(id: string): Promise<UserEntity>;
647
+ /**
648
+ * Create a new user.
649
+ */
650
+ createUser(data: CreateUser): Promise<UserEntity>;
651
+ /**
652
+ * Update an existing user.
653
+ */
654
+ updateUser(id: string, data: UpdateUser): Promise<UserEntity>;
655
+ /**
656
+ * Delete a user by ID.
657
+ */
658
+ deleteUser(id: string): Promise<void>;
659
+ }
660
+ //#endregion
661
+ //#region src/controllers/UserController.d.ts
662
+ declare class UserController {
663
+ protected readonly url = "/users";
664
+ protected readonly group = "users";
665
+ protected readonly credentialService: CredentialService;
666
+ protected readonly userService: UserService;
667
+ /**
668
+ * Find users with pagination and filtering.
669
+ */
670
+ readonly findUsers: _alepha_server0.ActionDescriptorFn<{
671
+ query: typebox318.TObject<{
672
+ page: typebox318.TOptional<typebox318.TInteger>;
673
+ size: typebox318.TOptional<typebox318.TInteger>;
674
+ sort: typebox318.TOptional<typebox318.TString>;
675
+ email: typebox318.TOptional<typebox318.TString>;
676
+ enabled: typebox318.TOptional<typebox318.TBoolean>;
677
+ emailVerified: typebox318.TOptional<typebox318.TBoolean>;
678
+ roles: typebox318.TOptional<typebox318.TArray<typebox318.TString>>;
679
+ }>;
680
+ response: _alepha_postgres59.TPage<typebox318.TObject<{
681
+ id: typebox318.TString;
682
+ version: typebox318.TNumber;
683
+ createdAt: typebox318.TString;
684
+ updatedAt: typebox318.TString;
685
+ email: typebox318.TString;
686
+ roles: typebox318.TArray<typebox318.TString>;
687
+ name: typebox318.TOptional<typebox318.TString>;
688
+ firstName: typebox318.TOptional<typebox318.TString>;
689
+ lastName: typebox318.TOptional<typebox318.TString>;
690
+ picture: typebox318.TOptional<typebox318.TString>;
691
+ enabled: typebox318.TBoolean;
692
+ emailVerified: typebox318.TBoolean;
693
+ }>>;
694
+ }>;
695
+ /**
696
+ * Get a user by ID.
697
+ */
698
+ readonly getUser: _alepha_server0.ActionDescriptorFn<{
699
+ params: typebox318.TObject<{
700
+ id: typebox318.TString;
701
+ }>;
702
+ response: typebox318.TObject<{
703
+ id: typebox318.TString;
704
+ version: typebox318.TNumber;
705
+ createdAt: typebox318.TString;
706
+ updatedAt: typebox318.TString;
707
+ email: typebox318.TString;
708
+ roles: typebox318.TArray<typebox318.TString>;
709
+ name: typebox318.TOptional<typebox318.TString>;
710
+ firstName: typebox318.TOptional<typebox318.TString>;
711
+ lastName: typebox318.TOptional<typebox318.TString>;
712
+ picture: typebox318.TOptional<typebox318.TString>;
713
+ enabled: typebox318.TBoolean;
714
+ emailVerified: typebox318.TBoolean;
715
+ }>;
716
+ }>;
717
+ /**
718
+ * Create a new user.
719
+ */
720
+ readonly createUser: _alepha_server0.ActionDescriptorFn<{
721
+ body: typebox318.TObject<{
722
+ email: typebox318.TString;
723
+ name: typebox318.TOptional<typebox318.TString>;
724
+ firstName: typebox318.TOptional<typebox318.TString>;
725
+ lastName: typebox318.TOptional<typebox318.TString>;
726
+ picture: typebox318.TOptional<typebox318.TString>;
727
+ roles: typebox318.TOptional<typebox318.TArray<typebox318.TString>>;
728
+ enabled: typebox318.TOptional<typebox318.TBoolean>;
729
+ emailVerified: typebox318.TOptional<typebox318.TBoolean>;
730
+ }>;
731
+ response: typebox318.TObject<{
732
+ id: typebox318.TString;
733
+ version: typebox318.TNumber;
734
+ createdAt: typebox318.TString;
735
+ updatedAt: typebox318.TString;
736
+ email: typebox318.TString;
737
+ roles: typebox318.TArray<typebox318.TString>;
738
+ name: typebox318.TOptional<typebox318.TString>;
739
+ firstName: typebox318.TOptional<typebox318.TString>;
740
+ lastName: typebox318.TOptional<typebox318.TString>;
741
+ picture: typebox318.TOptional<typebox318.TString>;
742
+ enabled: typebox318.TBoolean;
743
+ emailVerified: typebox318.TBoolean;
744
+ }>;
745
+ }>;
746
+ /**
747
+ * Update a user.
748
+ */
749
+ readonly updateUser: _alepha_server0.ActionDescriptorFn<{
750
+ params: typebox318.TObject<{
751
+ id: typebox318.TString;
752
+ }>;
753
+ body: typebox318.TObject<{
754
+ name: typebox318.TOptional<typebox318.TString>;
755
+ firstName: typebox318.TOptional<typebox318.TString>;
756
+ lastName: typebox318.TOptional<typebox318.TString>;
757
+ picture: typebox318.TOptional<typebox318.TString>;
758
+ roles: typebox318.TOptional<typebox318.TArray<typebox318.TString>>;
759
+ enabled: typebox318.TOptional<typebox318.TBoolean>;
760
+ }>;
761
+ response: typebox318.TObject<{
762
+ id: typebox318.TString;
763
+ version: typebox318.TNumber;
764
+ createdAt: typebox318.TString;
765
+ updatedAt: typebox318.TString;
766
+ email: typebox318.TString;
767
+ roles: typebox318.TArray<typebox318.TString>;
768
+ name: typebox318.TOptional<typebox318.TString>;
769
+ firstName: typebox318.TOptional<typebox318.TString>;
770
+ lastName: typebox318.TOptional<typebox318.TString>;
771
+ picture: typebox318.TOptional<typebox318.TString>;
772
+ enabled: typebox318.TBoolean;
773
+ emailVerified: typebox318.TBoolean;
774
+ }>;
775
+ }>;
776
+ /**
777
+ * Delete a user.
778
+ */
779
+ readonly deleteUser: _alepha_server0.ActionDescriptorFn<{
780
+ params: typebox318.TObject<{
781
+ id: typebox318.TString;
782
+ }>;
783
+ response: typebox318.TObject<{
784
+ ok: typebox318.TBoolean;
785
+ id: typebox318.TOptional<typebox318.TUnion<[typebox318.TString, typebox318.TInteger]>>;
786
+ count: typebox318.TOptional<typebox318.TNumber>;
787
+ }>;
788
+ }>;
789
+ /**
790
+ * Request a password reset.
791
+ * Generates a reset token using verification service and sends an email to the user.
792
+ */
793
+ requestPasswordReset: _alepha_server0.ActionDescriptorFn<{
794
+ body: typebox318.TObject<{
795
+ email: typebox318.TString;
796
+ resetUrl: typebox318.TString;
797
+ }>;
798
+ response: typebox318.TObject<{
799
+ success: typebox318.TBoolean;
800
+ message: typebox318.TString;
801
+ }>;
802
+ }>;
803
+ /**
804
+ * Validate a password reset token.
805
+ * Checks if the token is valid and not expired.
806
+ */
807
+ validateResetToken: _alepha_server0.ActionDescriptorFn<{
808
+ query: typebox318.TObject<{
809
+ email: typebox318.TString;
810
+ token: typebox318.TString;
811
+ }>;
812
+ response: typebox318.TObject<{
813
+ valid: typebox318.TBoolean;
814
+ email: typebox318.TOptional<typebox318.TString>;
815
+ }>;
816
+ }>;
817
+ /**
818
+ * Reset password with a valid token.
819
+ * Updates the user's password and invalidates all sessions.
820
+ */
821
+ resetPassword: _alepha_server0.ActionDescriptorFn<{
822
+ body: typebox318.TObject<{
823
+ email: typebox318.TString;
824
+ token: typebox318.TString;
825
+ newPassword: typebox318.TString;
826
+ }>;
827
+ response: typebox318.TObject<{
828
+ success: typebox318.TBoolean;
829
+ message: typebox318.TString;
830
+ }>;
831
+ }>;
832
+ /**
833
+ * Request email verification.
834
+ * Generates a verification token using verification service and sends an email to the user.
835
+ */
836
+ requestEmailVerification: _alepha_server0.ActionDescriptorFn<{
837
+ body: typebox318.TObject<{
838
+ email: typebox318.TString;
839
+ verifyUrl: typebox318.TString;
840
+ }>;
841
+ response: typebox318.TObject<{
842
+ success: typebox318.TBoolean;
843
+ message: typebox318.TString;
844
+ }>;
845
+ }>;
846
+ /**
847
+ * Verify email with a valid token.
848
+ * Updates the user's emailVerified status.
849
+ */
850
+ verifyEmail: _alepha_server0.ActionDescriptorFn<{
851
+ body: typebox318.TObject<{
852
+ email: typebox318.TString;
853
+ token: typebox318.TString;
854
+ }>;
855
+ response: typebox318.TObject<{
856
+ success: typebox318.TBoolean;
857
+ message: typebox318.TString;
858
+ }>;
859
+ }>;
860
+ /**
861
+ * Check if an email is verified.
862
+ */
863
+ checkEmailVerification: _alepha_server0.ActionDescriptorFn<{
864
+ query: typebox318.TObject<{
865
+ email: typebox318.TString;
866
+ }>;
867
+ response: typebox318.TObject<{
868
+ verified: typebox318.TBoolean;
869
+ }>;
870
+ }>;
871
+ }
872
+ //#endregion
11
873
  //#region src/descriptors/$authApple.d.ts
12
874
  /**
13
875
  * TODO: Implement Apple authentication
@@ -62,275 +924,229 @@ declare const $realmUsers: (options?: {
62
924
  realm?: Partial<RealmDescriptorOptions>;
63
925
  }) => _alepha_security0.RealmDescriptor;
64
926
  //#endregion
65
- //#region src/entities/identities.d.ts
66
- declare const identities: _alepha_postgres233.PgTableWithColumnsAndSchema<_alepha_postgres233.PgTableConfig<"identities", typebox176.TObject<{
67
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
68
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
69
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
70
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
71
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
72
- provider: typebox176.TString;
73
- providerUserId: typebox176.TString;
74
- providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
75
- }>, _alepha_postgres233.FromSchema<typebox176.TObject<{
76
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
77
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
78
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
79
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
80
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
81
- provider: typebox176.TString;
82
- providerUserId: typebox176.TString;
83
- providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
84
- }>>>, typebox176.TObject<{
85
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
86
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
87
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
88
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
89
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
90
- provider: typebox176.TString;
91
- providerUserId: typebox176.TString;
92
- providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
93
- }>>;
94
- type IdentityEntity = Static<typeof identities.$schema>;
927
+ //#region src/schemas/identityResourceSchema.d.ts
928
+ declare const identityResourceSchema: typebox318.TObject<{
929
+ id: typebox318.TString;
930
+ version: typebox318.TNumber;
931
+ createdAt: typebox318.TString;
932
+ updatedAt: typebox318.TString;
933
+ userId: typebox318.TString;
934
+ provider: typebox318.TString;
935
+ providerUserId: typebox318.TString;
936
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
937
+ }>;
938
+ type IdentityResource = Static<typeof identityResourceSchema>;
95
939
  //#endregion
96
- //#region src/entities/sessions.d.ts
97
- declare const sessions: _alepha_postgres233.PgTableWithColumnsAndSchema<_alepha_postgres233.PgTableConfig<"sessions", typebox176.TObject<{
98
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
99
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
100
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
101
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
102
- refreshToken: typebox176.TString;
103
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
104
- expiresAt: typebox176.TString;
105
- ip: typebox176.TOptional<typebox176.TString>;
106
- userAgent: typebox176.TOptional<typebox176.TObject<{
107
- os: typebox176.TString;
108
- browser: typebox176.TString;
109
- device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
940
+ //#region src/schemas/sessionResourceSchema.d.ts
941
+ declare const sessionResourceSchema: typebox318.TObject<{
942
+ id: typebox318.TString;
943
+ version: typebox318.TNumber;
944
+ createdAt: typebox318.TString;
945
+ updatedAt: typebox318.TString;
946
+ refreshToken: typebox318.TString;
947
+ userId: typebox318.TString;
948
+ expiresAt: typebox318.TString;
949
+ ip: typebox318.TOptional<typebox318.TString>;
950
+ userAgent: typebox318.TOptional<typebox318.TObject<{
951
+ os: typebox318.TString;
952
+ browser: typebox318.TString;
953
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
110
954
  }>>;
111
- }>, _alepha_postgres233.FromSchema<typebox176.TObject<{
112
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
113
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
114
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
115
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
116
- refreshToken: typebox176.TString;
117
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
118
- expiresAt: typebox176.TString;
119
- ip: typebox176.TOptional<typebox176.TString>;
120
- userAgent: typebox176.TOptional<typebox176.TObject<{
121
- os: typebox176.TString;
122
- browser: typebox176.TString;
123
- device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
124
- }>>;
125
- }>>>, typebox176.TObject<{
126
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
127
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
128
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
129
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
130
- refreshToken: typebox176.TString;
131
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
132
- expiresAt: typebox176.TString;
133
- ip: typebox176.TOptional<typebox176.TString>;
134
- userAgent: typebox176.TOptional<typebox176.TObject<{
135
- os: typebox176.TString;
136
- browser: typebox176.TString;
137
- device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
138
- }>>;
139
- }>>;
140
- type SessionEntity = Static<typeof sessions.$schema>;
955
+ }>;
956
+ type SessionResource = Static<typeof sessionResourceSchema>;
141
957
  //#endregion
142
- //#region src/entities/users.d.ts
143
- declare const users: _alepha_postgres233.PgTableWithColumnsAndSchema<_alepha_postgres233.PgTableConfig<"users", typebox176.TObject<{
144
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
145
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
146
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
147
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
148
- email: typebox176.TString;
149
- roles: typebox176.TArray<typebox176.TString>;
150
- name: typebox176.TOptional<typebox176.TString>;
151
- firstName: typebox176.TOptional<typebox176.TString>;
152
- lastName: typebox176.TOptional<typebox176.TString>;
153
- picture: typebox176.TOptional<typebox176.TString>;
154
- enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
155
- emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
156
- }>, _alepha_postgres233.FromSchema<typebox176.TObject<{
157
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
158
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
159
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
160
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
161
- email: typebox176.TString;
162
- roles: typebox176.TArray<typebox176.TString>;
163
- name: typebox176.TOptional<typebox176.TString>;
164
- firstName: typebox176.TOptional<typebox176.TString>;
165
- lastName: typebox176.TOptional<typebox176.TString>;
166
- picture: typebox176.TOptional<typebox176.TString>;
167
- enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
168
- emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
169
- }>>>, typebox176.TObject<{
170
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
171
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
172
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
173
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
174
- email: typebox176.TString;
175
- roles: typebox176.TArray<typebox176.TString>;
176
- name: typebox176.TOptional<typebox176.TString>;
177
- firstName: typebox176.TOptional<typebox176.TString>;
178
- lastName: typebox176.TOptional<typebox176.TString>;
179
- picture: typebox176.TOptional<typebox176.TString>;
180
- enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
181
- emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
182
- }>>;
183
- type UserEntity = Static<typeof users.$schema>;
958
+ //#region src/schemas/userResourceSchema.d.ts
959
+ declare const userResourceSchema: typebox318.TObject<{
960
+ id: typebox318.TString;
961
+ version: typebox318.TNumber;
962
+ createdAt: typebox318.TString;
963
+ updatedAt: typebox318.TString;
964
+ email: typebox318.TString;
965
+ roles: typebox318.TArray<typebox318.TString>;
966
+ name: typebox318.TOptional<typebox318.TString>;
967
+ firstName: typebox318.TOptional<typebox318.TString>;
968
+ lastName: typebox318.TOptional<typebox318.TString>;
969
+ picture: typebox318.TOptional<typebox318.TString>;
970
+ enabled: typebox318.TBoolean;
971
+ emailVerified: typebox318.TBoolean;
972
+ }>;
973
+ type UserResource = Static<typeof userResourceSchema>;
184
974
  //#endregion
185
975
  //#region src/services/SessionService.d.ts
186
976
  declare class SessionService {
187
977
  protected readonly alepha: Alepha;
188
978
  protected readonly dateTimeProvider: DateTimeProvider;
189
979
  protected readonly cryptoProvider: CryptoProvider;
190
- readonly users: _alepha_postgres233.RepositoryDescriptor<_alepha_postgres233.PgTableConfig<"users", typebox176.TObject<{
191
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
192
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
193
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
194
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
195
- email: typebox176.TString;
196
- roles: typebox176.TArray<typebox176.TString>;
197
- name: typebox176.TOptional<typebox176.TString>;
198
- firstName: typebox176.TOptional<typebox176.TString>;
199
- lastName: typebox176.TOptional<typebox176.TString>;
200
- picture: typebox176.TOptional<typebox176.TString>;
201
- enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
202
- emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
203
- }>, _alepha_postgres233.FromSchema<typebox176.TObject<{
204
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
205
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
206
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
207
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
208
- email: typebox176.TString;
209
- roles: typebox176.TArray<typebox176.TString>;
210
- name: typebox176.TOptional<typebox176.TString>;
211
- firstName: typebox176.TOptional<typebox176.TString>;
212
- lastName: typebox176.TOptional<typebox176.TString>;
213
- picture: typebox176.TOptional<typebox176.TString>;
214
- enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
215
- emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
216
- }>>>, typebox176.TObject<{
217
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
218
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
219
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
220
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
221
- email: typebox176.TString;
222
- roles: typebox176.TArray<typebox176.TString>;
223
- name: typebox176.TOptional<typebox176.TString>;
224
- firstName: typebox176.TOptional<typebox176.TString>;
225
- lastName: typebox176.TOptional<typebox176.TString>;
226
- picture: typebox176.TOptional<typebox176.TString>;
227
- enabled: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
228
- emailVerified: _alepha_postgres233.PgAttr<typebox176.TBoolean, typeof _alepha_postgres233.PG_DEFAULT>;
980
+ readonly users: _alepha_postgres59.RepositoryDescriptor<_alepha_postgres59.PgTableConfig<"users", typebox318.TObject<{
981
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
982
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
983
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
984
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
985
+ email: typebox318.TString;
986
+ roles: typebox318.TArray<typebox318.TString>;
987
+ name: typebox318.TOptional<typebox318.TString>;
988
+ firstName: typebox318.TOptional<typebox318.TString>;
989
+ lastName: typebox318.TOptional<typebox318.TString>;
990
+ picture: typebox318.TOptional<typebox318.TString>;
991
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
992
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
993
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
994
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
995
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
996
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
997
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
998
+ email: typebox318.TString;
999
+ roles: typebox318.TArray<typebox318.TString>;
1000
+ name: typebox318.TOptional<typebox318.TString>;
1001
+ firstName: typebox318.TOptional<typebox318.TString>;
1002
+ lastName: typebox318.TOptional<typebox318.TString>;
1003
+ picture: typebox318.TOptional<typebox318.TString>;
1004
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
1005
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
1006
+ }>>>, typebox318.TObject<{
1007
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
1008
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
1009
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1010
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1011
+ email: typebox318.TString;
1012
+ roles: typebox318.TArray<typebox318.TString>;
1013
+ name: typebox318.TOptional<typebox318.TString>;
1014
+ firstName: typebox318.TOptional<typebox318.TString>;
1015
+ lastName: typebox318.TOptional<typebox318.TString>;
1016
+ picture: typebox318.TOptional<typebox318.TString>;
1017
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
1018
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
229
1019
  }>>;
230
- readonly sessions: _alepha_postgres233.RepositoryDescriptor<_alepha_postgres233.PgTableConfig<"sessions", typebox176.TObject<{
231
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
232
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
233
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
234
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
235
- refreshToken: typebox176.TString;
236
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
237
- expiresAt: typebox176.TString;
238
- ip: typebox176.TOptional<typebox176.TString>;
239
- userAgent: typebox176.TOptional<typebox176.TObject<{
240
- os: typebox176.TString;
241
- browser: typebox176.TString;
242
- device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1020
+ readonly sessions: _alepha_postgres59.RepositoryDescriptor<_alepha_postgres59.PgTableConfig<"sessions", typebox318.TObject<{
1021
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
1022
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
1023
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1024
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1025
+ refreshToken: typebox318.TString;
1026
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
1027
+ expiresAt: typebox318.TString;
1028
+ ip: typebox318.TOptional<typebox318.TString>;
1029
+ userAgent: typebox318.TOptional<typebox318.TObject<{
1030
+ os: typebox318.TString;
1031
+ browser: typebox318.TString;
1032
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
243
1033
  }>>;
244
- }>, _alepha_postgres233.FromSchema<typebox176.TObject<{
245
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
246
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
247
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
248
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
249
- refreshToken: typebox176.TString;
250
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
251
- expiresAt: typebox176.TString;
252
- ip: typebox176.TOptional<typebox176.TString>;
253
- userAgent: typebox176.TOptional<typebox176.TObject<{
254
- os: typebox176.TString;
255
- browser: typebox176.TString;
256
- device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1034
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
1035
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
1036
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
1037
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1038
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1039
+ refreshToken: typebox318.TString;
1040
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
1041
+ expiresAt: typebox318.TString;
1042
+ ip: typebox318.TOptional<typebox318.TString>;
1043
+ userAgent: typebox318.TOptional<typebox318.TObject<{
1044
+ os: typebox318.TString;
1045
+ browser: typebox318.TString;
1046
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
257
1047
  }>>;
258
- }>>>, typebox176.TObject<{
259
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
260
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
261
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
262
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
263
- refreshToken: typebox176.TString;
264
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
265
- expiresAt: typebox176.TString;
266
- ip: typebox176.TOptional<typebox176.TString>;
267
- userAgent: typebox176.TOptional<typebox176.TObject<{
268
- os: typebox176.TString;
269
- browser: typebox176.TString;
270
- device: typebox176.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
1048
+ }>>>, typebox318.TObject<{
1049
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
1050
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
1051
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1052
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1053
+ refreshToken: typebox318.TString;
1054
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
1055
+ expiresAt: typebox318.TString;
1056
+ ip: typebox318.TOptional<typebox318.TString>;
1057
+ userAgent: typebox318.TOptional<typebox318.TObject<{
1058
+ os: typebox318.TString;
1059
+ browser: typebox318.TString;
1060
+ device: typebox318.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
271
1061
  }>>;
272
1062
  }>>;
273
- readonly identities: _alepha_postgres233.RepositoryDescriptor<_alepha_postgres233.PgTableConfig<"identities", typebox176.TObject<{
274
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
275
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
276
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
277
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
278
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
279
- provider: typebox176.TString;
280
- providerUserId: typebox176.TString;
281
- providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
282
- }>, _alepha_postgres233.FromSchema<typebox176.TObject<{
283
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
284
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
285
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
286
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
287
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
288
- provider: typebox176.TString;
289
- providerUserId: typebox176.TString;
290
- providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
291
- }>>>, typebox176.TObject<{
292
- id: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_PRIMARY_KEY>, typeof _alepha_postgres233.PG_DEFAULT>;
293
- version: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TInteger, typeof _alepha_postgres233.PG_VERSION>, typeof _alepha_postgres233.PG_DEFAULT>;
294
- createdAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_CREATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
295
- updatedAt: _alepha_postgres233.PgAttr<_alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_UPDATED_AT>, typeof _alepha_postgres233.PG_DEFAULT>;
296
- userId: _alepha_postgres233.PgAttr<typebox176.TString, typeof _alepha_postgres233.PG_REF>;
297
- provider: typebox176.TString;
298
- providerUserId: typebox176.TString;
299
- providerData: typebox176.TOptional<typebox176.TRecord<string, typebox176.TAny>>;
1063
+ readonly identities: _alepha_postgres59.RepositoryDescriptor<_alepha_postgres59.PgTableConfig<"identities", typebox318.TObject<{
1064
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
1065
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
1066
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1067
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1068
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
1069
+ provider: typebox318.TString;
1070
+ providerUserId: typebox318.TString;
1071
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
1072
+ }>, _alepha_postgres59.FromSchema<typebox318.TObject<{
1073
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
1074
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
1075
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1076
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1077
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
1078
+ provider: typebox318.TString;
1079
+ providerUserId: typebox318.TString;
1080
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
1081
+ }>>>, typebox318.TObject<{
1082
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
1083
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
1084
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1085
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1086
+ userId: _alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_REF>;
1087
+ provider: typebox318.TString;
1088
+ providerUserId: typebox318.TString;
1089
+ providerData: typebox318.TOptional<typebox318.TRecord<string, typebox318.TAny>>;
300
1090
  }>>;
301
- login(provider: string, username: string, password: string): Promise<{
302
- name?: string | undefined;
303
- firstName?: string | undefined;
304
- lastName?: string | undefined;
305
- picture?: string | undefined;
306
- id: string;
307
- version: number;
308
- createdAt: string;
309
- updatedAt: string;
310
- email: string;
311
- roles: string[];
312
- enabled: boolean;
313
- emailVerified: boolean;
314
- }>;
1091
+ login(provider: string, username: string, password: string): Promise<_alepha_postgres59.PgStatic<typebox318.TObject<{
1092
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
1093
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
1094
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1095
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1096
+ email: typebox318.TString;
1097
+ roles: typebox318.TArray<typebox318.TString>;
1098
+ name: typebox318.TOptional<typebox318.TString>;
1099
+ firstName: typebox318.TOptional<typebox318.TString>;
1100
+ lastName: typebox318.TOptional<typebox318.TString>;
1101
+ picture: typebox318.TOptional<typebox318.TString>;
1102
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
1103
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
1104
+ }>, _alepha_postgres59.PgRelationMap<typebox318.TObject<{
1105
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
1106
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
1107
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1108
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1109
+ email: typebox318.TString;
1110
+ roles: typebox318.TArray<typebox318.TString>;
1111
+ name: typebox318.TOptional<typebox318.TString>;
1112
+ firstName: typebox318.TOptional<typebox318.TString>;
1113
+ lastName: typebox318.TOptional<typebox318.TString>;
1114
+ picture: typebox318.TOptional<typebox318.TString>;
1115
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
1116
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
1117
+ }>>>>;
315
1118
  createSession(user: UserAccount, expiresIn: number): Promise<{
316
1119
  refreshToken: string;
317
1120
  sessionId: string;
318
1121
  }>;
319
1122
  refreshSession(refreshToken: string): Promise<{
320
- user: {
321
- name?: string | undefined;
322
- firstName?: string | undefined;
323
- lastName?: string | undefined;
324
- picture?: string | undefined;
325
- id: string;
326
- version: number;
327
- createdAt: string;
328
- updatedAt: string;
329
- email: string;
330
- roles: string[];
331
- enabled: boolean;
332
- emailVerified: boolean;
333
- };
1123
+ user: _alepha_postgres59.PgStatic<typebox318.TObject<{
1124
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
1125
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
1126
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1127
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1128
+ email: typebox318.TString;
1129
+ roles: typebox318.TArray<typebox318.TString>;
1130
+ name: typebox318.TOptional<typebox318.TString>;
1131
+ firstName: typebox318.TOptional<typebox318.TString>;
1132
+ lastName: typebox318.TOptional<typebox318.TString>;
1133
+ picture: typebox318.TOptional<typebox318.TString>;
1134
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
1135
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
1136
+ }>, _alepha_postgres59.PgRelationMap<typebox318.TObject<{
1137
+ id: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_PRIMARY_KEY>, typeof _alepha_postgres59.PG_DEFAULT>;
1138
+ version: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TInteger, typeof _alepha_postgres59.PG_VERSION>, typeof _alepha_postgres59.PG_DEFAULT>;
1139
+ createdAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_CREATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1140
+ updatedAt: _alepha_postgres59.PgAttr<_alepha_postgres59.PgAttr<typebox318.TString, typeof _alepha_postgres59.PG_UPDATED_AT>, typeof _alepha_postgres59.PG_DEFAULT>;
1141
+ email: typebox318.TString;
1142
+ roles: typebox318.TArray<typebox318.TString>;
1143
+ name: typebox318.TOptional<typebox318.TString>;
1144
+ firstName: typebox318.TOptional<typebox318.TString>;
1145
+ lastName: typebox318.TOptional<typebox318.TString>;
1146
+ picture: typebox318.TOptional<typebox318.TString>;
1147
+ enabled: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
1148
+ emailVerified: _alepha_postgres59.PgAttr<typebox318.TBoolean, typeof _alepha_postgres59.PG_DEFAULT>;
1149
+ }>>>;
334
1150
  expiresIn: number;
335
1151
  sessionId: string;
336
1152
  }>;
@@ -385,11 +1201,11 @@ declare class SessionService {
385
1201
  * Provides user management API endpoints for Alepha applications.
386
1202
  *
387
1203
  * This module includes user CRUD operations, authentication endpoints,
388
- * and user profile management capabilities.
1204
+ * password reset functionality, and user profile management capabilities.
389
1205
  *
390
1206
  * @module alepha.api.users
391
1207
  */
392
1208
  declare const AlephaApiUsers: _alepha_core0.Service<_alepha_core0.Module<{}>>;
393
1209
  //#endregion
394
- export { $authApple, $authCredentials, $authGithub, $authGoogle, $realmUsers, AlephaApiUsers, IdentityEntity, SessionEntity, SessionService, UserEntity, identities, sessions, users };
1210
+ export { $authApple, $authCredentials, $authGithub, $authGoogle, $realmUsers, AlephaApiUsers, CreateUser, CredentialService, IdentityController, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, SessionController, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserController, UserEntity, UserQuery, UserResource, UserService, createUserSchema, identities, identityQuerySchema, identityResourceSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userResourceSchema, users };
395
1211
  //# sourceMappingURL=index.d.ts.map