alepha 0.11.5 → 0.11.6

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
@@ -1,6 +1,6 @@
1
1
  import * as _alepha_core1 from "alepha";
2
2
  import { Alepha, Static } from "alepha";
3
- import * as _alepha_postgres18 from "alepha/postgres";
3
+ import * as _alepha_postgres0 from "alepha/postgres";
4
4
  import { Page } from "alepha/postgres";
5
5
  import * as _alepha_server0 from "alepha/server";
6
6
  import * as _alepha_security0 from "alepha/security";
@@ -10,44 +10,44 @@ import * as _alepha_api_notifications0 from "alepha/api/notifications";
10
10
  import { DateTimeProvider } from "alepha/datetime";
11
11
  import * as _alepha_react_auth0 from "alepha/react/auth";
12
12
  import { OAuth2Profile } from "alepha/react/auth";
13
- import * as typebox328 from "typebox";
14
- import * as dayjs20 from "dayjs";
13
+ import * as typebox312 from "typebox";
14
+ import * as dayjs19 from "dayjs";
15
15
  import { VerificationController } from "alepha/api/verifications";
16
16
 
17
17
  //#region src/entities/identities.d.ts
18
- declare const identities: _alepha_postgres18.EntityDescriptor<typebox328.TObject<{
19
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
20
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
21
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
22
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
23
- userId: _alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_REF>;
24
- provider: typebox328.TString;
25
- providerUserId: typebox328.TString;
26
- providerData: typebox328.TOptional<typebox328.TRecord<string, typebox328.TAny>>;
18
+ declare const identities: _alepha_postgres0.EntityDescriptor<typebox312.TObject<{
19
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
20
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
21
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
22
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
23
+ userId: _alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_REF>;
24
+ provider: typebox312.TString;
25
+ providerUserId: typebox312.TString;
26
+ providerData: typebox312.TOptional<typebox312.TRecord<string, typebox312.TAny>>;
27
27
  }>>;
28
28
  type IdentityEntity = Static<typeof identities.schema>;
29
29
  //#endregion
30
30
  //#region src/schemas/identityQuerySchema.d.ts
31
- declare const identityQuerySchema: typebox328.TObject<{
32
- page: typebox328.TOptional<typebox328.TInteger>;
33
- size: typebox328.TOptional<typebox328.TInteger>;
34
- sort: typebox328.TOptional<typebox328.TString>;
35
- userId: typebox328.TOptional<typebox328.TString>;
36
- provider: typebox328.TOptional<typebox328.TString>;
31
+ declare const identityQuerySchema: typebox312.TObject<{
32
+ page: typebox312.TOptional<typebox312.TInteger>;
33
+ size: typebox312.TOptional<typebox312.TInteger>;
34
+ sort: typebox312.TOptional<typebox312.TString>;
35
+ userId: typebox312.TOptional<typebox312.TString>;
36
+ provider: typebox312.TOptional<typebox312.TString>;
37
37
  }>;
38
38
  type IdentityQuery = Static<typeof identityQuerySchema>;
39
39
  //#endregion
40
40
  //#region src/services/IdentityService.d.ts
41
41
  declare class IdentityService {
42
- readonly identities: _alepha_postgres18.RepositoryDescriptor<typebox328.TObject<{
43
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
44
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
45
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
46
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
47
- userId: _alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_REF>;
48
- provider: typebox328.TString;
49
- providerUserId: typebox328.TString;
50
- providerData: typebox328.TOptional<typebox328.TRecord<string, typebox328.TAny>>;
42
+ readonly identities: _alepha_postgres0.Repository<typebox312.TObject<{
43
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
44
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
45
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
46
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
47
+ userId: _alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_REF>;
48
+ provider: typebox312.TString;
49
+ providerUserId: typebox312.TString;
50
+ providerData: typebox312.TOptional<typebox312.TRecord<string, typebox312.TAny>>;
51
51
  }>>;
52
52
  /**
53
53
  * Find identities with pagination and filtering.
@@ -72,99 +72,99 @@ declare class IdentityController {
72
72
  * Find identities with pagination and filtering.
73
73
  */
74
74
  readonly findIdentities: _alepha_server0.ActionDescriptorFn<{
75
- query: typebox328.TObject<{
76
- page: typebox328.TOptional<typebox328.TInteger>;
77
- size: typebox328.TOptional<typebox328.TInteger>;
78
- sort: typebox328.TOptional<typebox328.TString>;
79
- userId: typebox328.TOptional<typebox328.TString>;
80
- provider: typebox328.TOptional<typebox328.TString>;
81
- }>;
82
- response: _alepha_core1.TPage<typebox328.TObject<{
83
- id: typebox328.TString;
84
- version: typebox328.TNumber;
85
- createdAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
86
- updatedAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
87
- userId: typebox328.TString;
88
- provider: typebox328.TString;
89
- providerUserId: typebox328.TString;
90
- providerData: typebox328.TOptional<typebox328.TRecord<string, typebox328.TAny>>;
75
+ query: typebox312.TObject<{
76
+ page: typebox312.TOptional<typebox312.TInteger>;
77
+ size: typebox312.TOptional<typebox312.TInteger>;
78
+ sort: typebox312.TOptional<typebox312.TString>;
79
+ userId: typebox312.TOptional<typebox312.TString>;
80
+ provider: typebox312.TOptional<typebox312.TString>;
81
+ }>;
82
+ response: _alepha_core1.TPage<typebox312.TObject<{
83
+ id: typebox312.TString;
84
+ version: typebox312.TNumber;
85
+ createdAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
86
+ updatedAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
87
+ userId: typebox312.TString;
88
+ provider: typebox312.TString;
89
+ providerUserId: typebox312.TString;
90
+ providerData: typebox312.TOptional<typebox312.TRecord<string, typebox312.TAny>>;
91
91
  }>>;
92
92
  }>;
93
93
  /**
94
94
  * Get an identity by ID.
95
95
  */
96
96
  readonly getIdentity: _alepha_server0.ActionDescriptorFn<{
97
- params: typebox328.TObject<{
98
- id: typebox328.TString;
99
- }>;
100
- response: typebox328.TObject<{
101
- id: typebox328.TString;
102
- version: typebox328.TNumber;
103
- createdAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
104
- updatedAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
105
- userId: typebox328.TString;
106
- provider: typebox328.TString;
107
- providerUserId: typebox328.TString;
108
- providerData: typebox328.TOptional<typebox328.TRecord<string, typebox328.TAny>>;
97
+ params: typebox312.TObject<{
98
+ id: typebox312.TString;
99
+ }>;
100
+ response: typebox312.TObject<{
101
+ id: typebox312.TString;
102
+ version: typebox312.TNumber;
103
+ createdAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
104
+ updatedAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
105
+ userId: typebox312.TString;
106
+ provider: typebox312.TString;
107
+ providerUserId: typebox312.TString;
108
+ providerData: typebox312.TOptional<typebox312.TRecord<string, typebox312.TAny>>;
109
109
  }>;
110
110
  }>;
111
111
  /**
112
112
  * Delete an identity.
113
113
  */
114
114
  readonly deleteIdentity: _alepha_server0.ActionDescriptorFn<{
115
- params: typebox328.TObject<{
116
- id: typebox328.TString;
115
+ params: typebox312.TObject<{
116
+ id: typebox312.TString;
117
117
  }>;
118
- response: typebox328.TObject<{
119
- ok: typebox328.TBoolean;
120
- id: typebox328.TOptional<typebox328.TUnion<[typebox328.TString, typebox328.TInteger]>>;
121
- count: typebox328.TOptional<typebox328.TNumber>;
118
+ response: typebox312.TObject<{
119
+ ok: typebox312.TBoolean;
120
+ id: typebox312.TOptional<typebox312.TUnion<[typebox312.TString, typebox312.TInteger]>>;
121
+ count: typebox312.TOptional<typebox312.TNumber>;
122
122
  }>;
123
123
  }>;
124
124
  }
125
125
  //#endregion
126
126
  //#region src/entities/sessions.d.ts
127
- declare const sessions: _alepha_postgres18.EntityDescriptor<typebox328.TObject<{
128
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
129
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
130
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
131
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
132
- refreshToken: typebox328.TString;
133
- userId: _alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_REF>;
134
- expiresAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
135
- ip: typebox328.TOptional<typebox328.TString>;
136
- userAgent: typebox328.TOptional<typebox328.TObject<{
137
- os: typebox328.TString;
138
- browser: typebox328.TString;
139
- device: typebox328.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
127
+ declare const sessions: _alepha_postgres0.EntityDescriptor<typebox312.TObject<{
128
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
129
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
130
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
131
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
132
+ refreshToken: typebox312.TString;
133
+ userId: _alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_REF>;
134
+ expiresAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
135
+ ip: typebox312.TOptional<typebox312.TString>;
136
+ userAgent: typebox312.TOptional<typebox312.TObject<{
137
+ os: typebox312.TString;
138
+ browser: typebox312.TString;
139
+ device: typebox312.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
140
140
  }>>;
141
141
  }>>;
142
142
  type SessionEntity = Static<typeof sessions.schema>;
143
143
  //#endregion
144
144
  //#region src/schemas/sessionQuerySchema.d.ts
145
- declare const sessionQuerySchema: typebox328.TObject<{
146
- page: typebox328.TOptional<typebox328.TInteger>;
147
- size: typebox328.TOptional<typebox328.TInteger>;
148
- sort: typebox328.TOptional<typebox328.TString>;
149
- userId: typebox328.TOptional<typebox328.TString>;
145
+ declare const sessionQuerySchema: typebox312.TObject<{
146
+ page: typebox312.TOptional<typebox312.TInteger>;
147
+ size: typebox312.TOptional<typebox312.TInteger>;
148
+ sort: typebox312.TOptional<typebox312.TString>;
149
+ userId: typebox312.TOptional<typebox312.TString>;
150
150
  }>;
151
151
  type SessionQuery = Static<typeof sessionQuerySchema>;
152
152
  //#endregion
153
153
  //#region src/services/SessionCrudService.d.ts
154
154
  declare class SessionCrudService {
155
- readonly sessions: _alepha_postgres18.RepositoryDescriptor<typebox328.TObject<{
156
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
157
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
158
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
159
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
160
- refreshToken: typebox328.TString;
161
- userId: _alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_REF>;
162
- expiresAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
163
- ip: typebox328.TOptional<typebox328.TString>;
164
- userAgent: typebox328.TOptional<typebox328.TObject<{
165
- os: typebox328.TString;
166
- browser: typebox328.TString;
167
- device: typebox328.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
155
+ readonly sessions: _alepha_postgres0.Repository<typebox312.TObject<{
156
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
157
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
158
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
159
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
160
+ refreshToken: typebox312.TString;
161
+ userId: _alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_REF>;
162
+ expiresAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
163
+ ip: typebox312.TOptional<typebox312.TString>;
164
+ userAgent: typebox312.TOptional<typebox312.TObject<{
165
+ os: typebox312.TString;
166
+ browser: typebox312.TString;
167
+ device: typebox312.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
168
168
  }>>;
169
169
  }>>;
170
170
  /**
@@ -190,25 +190,25 @@ declare class SessionController {
190
190
  * Find sessions with pagination and filtering.
191
191
  */
192
192
  readonly findSessions: _alepha_server0.ActionDescriptorFn<{
193
- query: typebox328.TObject<{
194
- page: typebox328.TOptional<typebox328.TInteger>;
195
- size: typebox328.TOptional<typebox328.TInteger>;
196
- sort: typebox328.TOptional<typebox328.TString>;
197
- userId: typebox328.TOptional<typebox328.TString>;
198
- }>;
199
- response: _alepha_core1.TPage<typebox328.TObject<{
200
- id: typebox328.TString;
201
- version: typebox328.TNumber;
202
- createdAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
203
- updatedAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
204
- refreshToken: typebox328.TString;
205
- userId: typebox328.TString;
206
- expiresAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
207
- ip: typebox328.TOptional<typebox328.TString>;
208
- userAgent: typebox328.TOptional<typebox328.TObject<{
209
- os: typebox328.TString;
210
- browser: typebox328.TString;
211
- device: typebox328.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
193
+ query: typebox312.TObject<{
194
+ page: typebox312.TOptional<typebox312.TInteger>;
195
+ size: typebox312.TOptional<typebox312.TInteger>;
196
+ sort: typebox312.TOptional<typebox312.TString>;
197
+ userId: typebox312.TOptional<typebox312.TString>;
198
+ }>;
199
+ response: _alepha_core1.TPage<typebox312.TObject<{
200
+ id: typebox312.TString;
201
+ version: typebox312.TNumber;
202
+ createdAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
203
+ updatedAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
204
+ refreshToken: typebox312.TString;
205
+ userId: typebox312.TString;
206
+ expiresAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
207
+ ip: typebox312.TOptional<typebox312.TString>;
208
+ userAgent: typebox312.TOptional<typebox312.TObject<{
209
+ os: typebox312.TString;
210
+ browser: typebox312.TString;
211
+ device: typebox312.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
212
212
  }>>;
213
213
  }>>;
214
214
  }>;
@@ -216,22 +216,22 @@ declare class SessionController {
216
216
  * Get a session by ID.
217
217
  */
218
218
  readonly getSession: _alepha_server0.ActionDescriptorFn<{
219
- params: typebox328.TObject<{
220
- id: typebox328.TString;
221
- }>;
222
- response: typebox328.TObject<{
223
- id: typebox328.TString;
224
- version: typebox328.TNumber;
225
- createdAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
226
- updatedAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
227
- refreshToken: typebox328.TString;
228
- userId: typebox328.TString;
229
- expiresAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
230
- ip: typebox328.TOptional<typebox328.TString>;
231
- userAgent: typebox328.TOptional<typebox328.TObject<{
232
- os: typebox328.TString;
233
- browser: typebox328.TString;
234
- device: typebox328.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
219
+ params: typebox312.TObject<{
220
+ id: typebox312.TString;
221
+ }>;
222
+ response: typebox312.TObject<{
223
+ id: typebox312.TString;
224
+ version: typebox312.TNumber;
225
+ createdAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
226
+ updatedAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
227
+ refreshToken: typebox312.TString;
228
+ userId: typebox312.TString;
229
+ expiresAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
230
+ ip: typebox312.TOptional<typebox312.TString>;
231
+ userAgent: typebox312.TOptional<typebox312.TObject<{
232
+ os: typebox312.TString;
233
+ browser: typebox312.TString;
234
+ device: typebox312.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
235
235
  }>>;
236
236
  }>;
237
237
  }>;
@@ -239,28 +239,28 @@ declare class SessionController {
239
239
  * Delete a session.
240
240
  */
241
241
  readonly deleteSession: _alepha_server0.ActionDescriptorFn<{
242
- params: typebox328.TObject<{
243
- id: typebox328.TString;
242
+ params: typebox312.TObject<{
243
+ id: typebox312.TString;
244
244
  }>;
245
- response: typebox328.TObject<{
246
- ok: typebox328.TBoolean;
247
- id: typebox328.TOptional<typebox328.TUnion<[typebox328.TString, typebox328.TInteger]>>;
248
- count: typebox328.TOptional<typebox328.TNumber>;
245
+ response: typebox312.TObject<{
246
+ ok: typebox312.TBoolean;
247
+ id: typebox312.TOptional<typebox312.TUnion<[typebox312.TString, typebox312.TInteger]>>;
248
+ count: typebox312.TOptional<typebox312.TNumber>;
249
249
  }>;
250
250
  }>;
251
251
  }
252
252
  //#endregion
253
253
  //#region src/notifications/UserNotifications.d.ts
254
254
  declare class UserNotifications {
255
- readonly passwordReset: _alepha_api_notifications0.NotificationDescriptor<typebox328.TObject<{
256
- email: typebox328.TString;
257
- resetUrl: typebox328.TString;
258
- expiresInMinutes: typebox328.TNumber;
255
+ readonly passwordReset: _alepha_api_notifications0.NotificationDescriptor<typebox312.TObject<{
256
+ email: typebox312.TString;
257
+ resetUrl: typebox312.TString;
258
+ expiresInMinutes: typebox312.TNumber;
259
259
  }>>;
260
- readonly emailVerification: _alepha_api_notifications0.NotificationDescriptor<typebox328.TObject<{
261
- email: typebox328.TString;
262
- verifyUrl: typebox328.TString;
263
- expiresInMinutes: typebox328.TNumber;
260
+ readonly emailVerification: _alepha_api_notifications0.NotificationDescriptor<typebox312.TObject<{
261
+ email: typebox312.TString;
262
+ verifyUrl: typebox312.TString;
263
+ expiresInMinutes: typebox312.TNumber;
264
264
  }>>;
265
265
  }
266
266
  //#endregion
@@ -269,44 +269,44 @@ declare class CredentialService {
269
269
  protected readonly cryptoProvider: CryptoProvider;
270
270
  protected readonly verificationController: _alepha_server_links0.HttpVirtualClient<VerificationController>;
271
271
  protected readonly userNotifications: UserNotifications;
272
- readonly users: _alepha_postgres18.RepositoryDescriptor<typebox328.TObject<{
273
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
274
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
275
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
276
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
277
- email: typebox328.TString;
278
- roles: typebox328.TArray<typebox328.TString>;
279
- name: typebox328.TOptional<typebox328.TString>;
280
- firstName: typebox328.TOptional<typebox328.TString>;
281
- lastName: typebox328.TOptional<typebox328.TString>;
282
- picture: typebox328.TOptional<typebox328.TString>;
283
- enabled: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
284
- emailVerified: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
272
+ readonly users: _alepha_postgres0.Repository<typebox312.TObject<{
273
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
274
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
275
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
276
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
277
+ email: typebox312.TString;
278
+ roles: typebox312.TArray<typebox312.TString>;
279
+ name: typebox312.TOptional<typebox312.TString>;
280
+ firstName: typebox312.TOptional<typebox312.TString>;
281
+ lastName: typebox312.TOptional<typebox312.TString>;
282
+ picture: typebox312.TOptional<typebox312.TString>;
283
+ enabled: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
284
+ emailVerified: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
285
285
  }>>;
286
- readonly sessions: _alepha_postgres18.RepositoryDescriptor<typebox328.TObject<{
287
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
288
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
289
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
290
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
291
- refreshToken: typebox328.TString;
292
- userId: _alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_REF>;
293
- expiresAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
294
- ip: typebox328.TOptional<typebox328.TString>;
295
- userAgent: typebox328.TOptional<typebox328.TObject<{
296
- os: typebox328.TString;
297
- browser: typebox328.TString;
298
- device: typebox328.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
286
+ readonly sessions: _alepha_postgres0.Repository<typebox312.TObject<{
287
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
288
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
289
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
290
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
291
+ refreshToken: typebox312.TString;
292
+ userId: _alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_REF>;
293
+ expiresAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
294
+ ip: typebox312.TOptional<typebox312.TString>;
295
+ userAgent: typebox312.TOptional<typebox312.TObject<{
296
+ os: typebox312.TString;
297
+ browser: typebox312.TString;
298
+ device: typebox312.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
299
299
  }>>;
300
300
  }>>;
301
- readonly identities: _alepha_postgres18.RepositoryDescriptor<typebox328.TObject<{
302
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
303
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
304
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
305
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
306
- userId: _alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_REF>;
307
- provider: typebox328.TString;
308
- providerUserId: typebox328.TString;
309
- providerData: typebox328.TOptional<typebox328.TRecord<string, typebox328.TAny>>;
301
+ readonly identities: _alepha_postgres0.Repository<typebox312.TObject<{
302
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
303
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
304
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
305
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
306
+ userId: _alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_REF>;
307
+ provider: typebox312.TString;
308
+ providerUserId: typebox312.TString;
309
+ providerData: typebox312.TOptional<typebox312.TRecord<string, typebox312.TAny>>;
310
310
  }>>;
311
311
  /**
312
312
  * Request a password reset for a user by email.
@@ -330,55 +330,55 @@ declare class CredentialService {
330
330
  }
331
331
  //#endregion
332
332
  //#region src/entities/users.d.ts
333
- declare const users: _alepha_postgres18.EntityDescriptor<typebox328.TObject<{
334
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
335
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
336
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
337
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
338
- email: typebox328.TString;
339
- roles: typebox328.TArray<typebox328.TString>;
340
- name: typebox328.TOptional<typebox328.TString>;
341
- firstName: typebox328.TOptional<typebox328.TString>;
342
- lastName: typebox328.TOptional<typebox328.TString>;
343
- picture: typebox328.TOptional<typebox328.TString>;
344
- enabled: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
345
- emailVerified: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
333
+ declare const users: _alepha_postgres0.EntityDescriptor<typebox312.TObject<{
334
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
335
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
336
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
337
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
338
+ email: typebox312.TString;
339
+ roles: typebox312.TArray<typebox312.TString>;
340
+ name: typebox312.TOptional<typebox312.TString>;
341
+ firstName: typebox312.TOptional<typebox312.TString>;
342
+ lastName: typebox312.TOptional<typebox312.TString>;
343
+ picture: typebox312.TOptional<typebox312.TString>;
344
+ enabled: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
345
+ emailVerified: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
346
346
  }>>;
347
347
  type UserEntity = Static<typeof users.schema>;
348
348
  //#endregion
349
349
  //#region src/schemas/createUserSchema.d.ts
350
- declare const createUserSchema: typebox328.TObject<{
351
- email: typebox328.TString;
352
- name: typebox328.TOptional<typebox328.TString>;
353
- firstName: typebox328.TOptional<typebox328.TString>;
354
- lastName: typebox328.TOptional<typebox328.TString>;
355
- picture: typebox328.TOptional<typebox328.TString>;
356
- roles: typebox328.TOptional<typebox328.TArray<typebox328.TString>>;
357
- enabled: typebox328.TOptional<typebox328.TBoolean>;
358
- emailVerified: typebox328.TOptional<typebox328.TBoolean>;
350
+ declare const createUserSchema: typebox312.TObject<{
351
+ email: typebox312.TString;
352
+ name: typebox312.TOptional<typebox312.TString>;
353
+ firstName: typebox312.TOptional<typebox312.TString>;
354
+ lastName: typebox312.TOptional<typebox312.TString>;
355
+ picture: typebox312.TOptional<typebox312.TString>;
356
+ roles: typebox312.TOptional<typebox312.TArray<typebox312.TString>>;
357
+ enabled: typebox312.TOptional<typebox312.TBoolean>;
358
+ emailVerified: typebox312.TOptional<typebox312.TBoolean>;
359
359
  }>;
360
360
  type CreateUser = Static<typeof createUserSchema>;
361
361
  //#endregion
362
362
  //#region src/schemas/updateUserSchema.d.ts
363
- declare const updateUserSchema: typebox328.TObject<{
364
- name: typebox328.TOptional<typebox328.TString>;
365
- firstName: typebox328.TOptional<typebox328.TString>;
366
- lastName: typebox328.TOptional<typebox328.TString>;
367
- picture: typebox328.TOptional<typebox328.TString>;
368
- roles: typebox328.TOptional<typebox328.TArray<typebox328.TString>>;
369
- enabled: typebox328.TOptional<typebox328.TBoolean>;
363
+ declare const updateUserSchema: typebox312.TObject<{
364
+ name: typebox312.TOptional<typebox312.TString>;
365
+ firstName: typebox312.TOptional<typebox312.TString>;
366
+ lastName: typebox312.TOptional<typebox312.TString>;
367
+ picture: typebox312.TOptional<typebox312.TString>;
368
+ roles: typebox312.TOptional<typebox312.TArray<typebox312.TString>>;
369
+ enabled: typebox312.TOptional<typebox312.TBoolean>;
370
370
  }>;
371
371
  type UpdateUser = Static<typeof updateUserSchema>;
372
372
  //#endregion
373
373
  //#region src/schemas/userQuerySchema.d.ts
374
- declare const userQuerySchema: typebox328.TObject<{
375
- page: typebox328.TOptional<typebox328.TInteger>;
376
- size: typebox328.TOptional<typebox328.TInteger>;
377
- sort: typebox328.TOptional<typebox328.TString>;
378
- email: typebox328.TOptional<typebox328.TString>;
379
- enabled: typebox328.TOptional<typebox328.TBoolean>;
380
- emailVerified: typebox328.TOptional<typebox328.TBoolean>;
381
- roles: typebox328.TOptional<typebox328.TArray<typebox328.TString>>;
374
+ declare const userQuerySchema: typebox312.TObject<{
375
+ page: typebox312.TOptional<typebox312.TInteger>;
376
+ size: typebox312.TOptional<typebox312.TInteger>;
377
+ sort: typebox312.TOptional<typebox312.TString>;
378
+ email: typebox312.TOptional<typebox312.TString>;
379
+ enabled: typebox312.TOptional<typebox312.TBoolean>;
380
+ emailVerified: typebox312.TOptional<typebox312.TBoolean>;
381
+ roles: typebox312.TOptional<typebox312.TArray<typebox312.TString>>;
382
382
  }>;
383
383
  type UserQuery = Static<typeof userQuerySchema>;
384
384
  //#endregion
@@ -386,19 +386,19 @@ type UserQuery = Static<typeof userQuerySchema>;
386
386
  declare class UserService {
387
387
  protected readonly verificationController: _alepha_server_links0.HttpVirtualClient<VerificationController>;
388
388
  protected readonly userNotifications: UserNotifications;
389
- readonly users: _alepha_postgres18.RepositoryDescriptor<typebox328.TObject<{
390
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
391
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
392
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
393
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
394
- email: typebox328.TString;
395
- roles: typebox328.TArray<typebox328.TString>;
396
- name: typebox328.TOptional<typebox328.TString>;
397
- firstName: typebox328.TOptional<typebox328.TString>;
398
- lastName: typebox328.TOptional<typebox328.TString>;
399
- picture: typebox328.TOptional<typebox328.TString>;
400
- enabled: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
401
- emailVerified: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
389
+ readonly users: _alepha_postgres0.Repository<typebox312.TObject<{
390
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
391
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
392
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
393
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
394
+ email: typebox312.TString;
395
+ roles: typebox312.TArray<typebox312.TString>;
396
+ name: typebox312.TOptional<typebox312.TString>;
397
+ firstName: typebox312.TOptional<typebox312.TString>;
398
+ lastName: typebox312.TOptional<typebox312.TString>;
399
+ picture: typebox312.TOptional<typebox312.TString>;
400
+ enabled: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
401
+ emailVerified: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
402
402
  }>>;
403
403
  /**
404
404
  * Request email verification for a user.
@@ -453,122 +453,122 @@ declare class UserController {
453
453
  * Find users with pagination and filtering.
454
454
  */
455
455
  readonly findUsers: _alepha_server0.ActionDescriptorFn<{
456
- query: typebox328.TObject<{
457
- page: typebox328.TOptional<typebox328.TInteger>;
458
- size: typebox328.TOptional<typebox328.TInteger>;
459
- sort: typebox328.TOptional<typebox328.TString>;
460
- email: typebox328.TOptional<typebox328.TString>;
461
- enabled: typebox328.TOptional<typebox328.TBoolean>;
462
- emailVerified: typebox328.TOptional<typebox328.TBoolean>;
463
- roles: typebox328.TOptional<typebox328.TArray<typebox328.TString>>;
464
- }>;
465
- response: _alepha_core1.TPage<typebox328.TObject<{
466
- id: typebox328.TString;
467
- version: typebox328.TNumber;
468
- createdAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
469
- updatedAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
470
- email: typebox328.TString;
471
- roles: typebox328.TArray<typebox328.TString>;
472
- name: typebox328.TOptional<typebox328.TString>;
473
- firstName: typebox328.TOptional<typebox328.TString>;
474
- lastName: typebox328.TOptional<typebox328.TString>;
475
- picture: typebox328.TOptional<typebox328.TString>;
476
- enabled: typebox328.TBoolean;
477
- emailVerified: typebox328.TBoolean;
456
+ query: typebox312.TObject<{
457
+ page: typebox312.TOptional<typebox312.TInteger>;
458
+ size: typebox312.TOptional<typebox312.TInteger>;
459
+ sort: typebox312.TOptional<typebox312.TString>;
460
+ email: typebox312.TOptional<typebox312.TString>;
461
+ enabled: typebox312.TOptional<typebox312.TBoolean>;
462
+ emailVerified: typebox312.TOptional<typebox312.TBoolean>;
463
+ roles: typebox312.TOptional<typebox312.TArray<typebox312.TString>>;
464
+ }>;
465
+ response: _alepha_core1.TPage<typebox312.TObject<{
466
+ id: typebox312.TString;
467
+ version: typebox312.TNumber;
468
+ createdAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
469
+ updatedAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
470
+ email: typebox312.TString;
471
+ roles: typebox312.TArray<typebox312.TString>;
472
+ name: typebox312.TOptional<typebox312.TString>;
473
+ firstName: typebox312.TOptional<typebox312.TString>;
474
+ lastName: typebox312.TOptional<typebox312.TString>;
475
+ picture: typebox312.TOptional<typebox312.TString>;
476
+ enabled: typebox312.TBoolean;
477
+ emailVerified: typebox312.TBoolean;
478
478
  }>>;
479
479
  }>;
480
480
  /**
481
481
  * Get a user by ID.
482
482
  */
483
483
  readonly getUser: _alepha_server0.ActionDescriptorFn<{
484
- params: typebox328.TObject<{
485
- id: typebox328.TString;
486
- }>;
487
- response: typebox328.TObject<{
488
- id: typebox328.TString;
489
- version: typebox328.TNumber;
490
- createdAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
491
- updatedAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
492
- email: typebox328.TString;
493
- roles: typebox328.TArray<typebox328.TString>;
494
- name: typebox328.TOptional<typebox328.TString>;
495
- firstName: typebox328.TOptional<typebox328.TString>;
496
- lastName: typebox328.TOptional<typebox328.TString>;
497
- picture: typebox328.TOptional<typebox328.TString>;
498
- enabled: typebox328.TBoolean;
499
- emailVerified: typebox328.TBoolean;
484
+ params: typebox312.TObject<{
485
+ id: typebox312.TString;
486
+ }>;
487
+ response: typebox312.TObject<{
488
+ id: typebox312.TString;
489
+ version: typebox312.TNumber;
490
+ createdAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
491
+ updatedAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
492
+ email: typebox312.TString;
493
+ roles: typebox312.TArray<typebox312.TString>;
494
+ name: typebox312.TOptional<typebox312.TString>;
495
+ firstName: typebox312.TOptional<typebox312.TString>;
496
+ lastName: typebox312.TOptional<typebox312.TString>;
497
+ picture: typebox312.TOptional<typebox312.TString>;
498
+ enabled: typebox312.TBoolean;
499
+ emailVerified: typebox312.TBoolean;
500
500
  }>;
501
501
  }>;
502
502
  /**
503
503
  * Create a new user.
504
504
  */
505
505
  readonly createUser: _alepha_server0.ActionDescriptorFn<{
506
- body: typebox328.TObject<{
507
- email: typebox328.TString;
508
- name: typebox328.TOptional<typebox328.TString>;
509
- firstName: typebox328.TOptional<typebox328.TString>;
510
- lastName: typebox328.TOptional<typebox328.TString>;
511
- picture: typebox328.TOptional<typebox328.TString>;
512
- roles: typebox328.TOptional<typebox328.TArray<typebox328.TString>>;
513
- enabled: typebox328.TOptional<typebox328.TBoolean>;
514
- emailVerified: typebox328.TOptional<typebox328.TBoolean>;
515
- }>;
516
- response: typebox328.TObject<{
517
- id: typebox328.TString;
518
- version: typebox328.TNumber;
519
- createdAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
520
- updatedAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
521
- email: typebox328.TString;
522
- roles: typebox328.TArray<typebox328.TString>;
523
- name: typebox328.TOptional<typebox328.TString>;
524
- firstName: typebox328.TOptional<typebox328.TString>;
525
- lastName: typebox328.TOptional<typebox328.TString>;
526
- picture: typebox328.TOptional<typebox328.TString>;
527
- enabled: typebox328.TBoolean;
528
- emailVerified: typebox328.TBoolean;
506
+ body: typebox312.TObject<{
507
+ email: typebox312.TString;
508
+ name: typebox312.TOptional<typebox312.TString>;
509
+ firstName: typebox312.TOptional<typebox312.TString>;
510
+ lastName: typebox312.TOptional<typebox312.TString>;
511
+ picture: typebox312.TOptional<typebox312.TString>;
512
+ roles: typebox312.TOptional<typebox312.TArray<typebox312.TString>>;
513
+ enabled: typebox312.TOptional<typebox312.TBoolean>;
514
+ emailVerified: typebox312.TOptional<typebox312.TBoolean>;
515
+ }>;
516
+ response: typebox312.TObject<{
517
+ id: typebox312.TString;
518
+ version: typebox312.TNumber;
519
+ createdAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
520
+ updatedAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
521
+ email: typebox312.TString;
522
+ roles: typebox312.TArray<typebox312.TString>;
523
+ name: typebox312.TOptional<typebox312.TString>;
524
+ firstName: typebox312.TOptional<typebox312.TString>;
525
+ lastName: typebox312.TOptional<typebox312.TString>;
526
+ picture: typebox312.TOptional<typebox312.TString>;
527
+ enabled: typebox312.TBoolean;
528
+ emailVerified: typebox312.TBoolean;
529
529
  }>;
530
530
  }>;
531
531
  /**
532
532
  * Update a user.
533
533
  */
534
534
  readonly updateUser: _alepha_server0.ActionDescriptorFn<{
535
- params: typebox328.TObject<{
536
- id: typebox328.TString;
537
- }>;
538
- body: typebox328.TObject<{
539
- name: typebox328.TOptional<typebox328.TString>;
540
- firstName: typebox328.TOptional<typebox328.TString>;
541
- lastName: typebox328.TOptional<typebox328.TString>;
542
- picture: typebox328.TOptional<typebox328.TString>;
543
- roles: typebox328.TOptional<typebox328.TArray<typebox328.TString>>;
544
- enabled: typebox328.TOptional<typebox328.TBoolean>;
545
- }>;
546
- response: typebox328.TObject<{
547
- id: typebox328.TString;
548
- version: typebox328.TNumber;
549
- createdAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
550
- updatedAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
551
- email: typebox328.TString;
552
- roles: typebox328.TArray<typebox328.TString>;
553
- name: typebox328.TOptional<typebox328.TString>;
554
- firstName: typebox328.TOptional<typebox328.TString>;
555
- lastName: typebox328.TOptional<typebox328.TString>;
556
- picture: typebox328.TOptional<typebox328.TString>;
557
- enabled: typebox328.TBoolean;
558
- emailVerified: typebox328.TBoolean;
535
+ params: typebox312.TObject<{
536
+ id: typebox312.TString;
537
+ }>;
538
+ body: typebox312.TObject<{
539
+ name: typebox312.TOptional<typebox312.TString>;
540
+ firstName: typebox312.TOptional<typebox312.TString>;
541
+ lastName: typebox312.TOptional<typebox312.TString>;
542
+ picture: typebox312.TOptional<typebox312.TString>;
543
+ roles: typebox312.TOptional<typebox312.TArray<typebox312.TString>>;
544
+ enabled: typebox312.TOptional<typebox312.TBoolean>;
545
+ }>;
546
+ response: typebox312.TObject<{
547
+ id: typebox312.TString;
548
+ version: typebox312.TNumber;
549
+ createdAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
550
+ updatedAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
551
+ email: typebox312.TString;
552
+ roles: typebox312.TArray<typebox312.TString>;
553
+ name: typebox312.TOptional<typebox312.TString>;
554
+ firstName: typebox312.TOptional<typebox312.TString>;
555
+ lastName: typebox312.TOptional<typebox312.TString>;
556
+ picture: typebox312.TOptional<typebox312.TString>;
557
+ enabled: typebox312.TBoolean;
558
+ emailVerified: typebox312.TBoolean;
559
559
  }>;
560
560
  }>;
561
561
  /**
562
562
  * Delete a user.
563
563
  */
564
564
  readonly deleteUser: _alepha_server0.ActionDescriptorFn<{
565
- params: typebox328.TObject<{
566
- id: typebox328.TString;
565
+ params: typebox312.TObject<{
566
+ id: typebox312.TString;
567
567
  }>;
568
- response: typebox328.TObject<{
569
- ok: typebox328.TBoolean;
570
- id: typebox328.TOptional<typebox328.TUnion<[typebox328.TString, typebox328.TInteger]>>;
571
- count: typebox328.TOptional<typebox328.TNumber>;
568
+ response: typebox312.TObject<{
569
+ ok: typebox312.TBoolean;
570
+ id: typebox312.TOptional<typebox312.TUnion<[typebox312.TString, typebox312.TInteger]>>;
571
+ count: typebox312.TOptional<typebox312.TNumber>;
572
572
  }>;
573
573
  }>;
574
574
  /**
@@ -576,13 +576,13 @@ declare class UserController {
576
576
  * Generates a reset token using verification service and sends an email to the user.
577
577
  */
578
578
  requestPasswordReset: _alepha_server0.ActionDescriptorFn<{
579
- body: typebox328.TObject<{
580
- email: typebox328.TString;
581
- resetUrl: typebox328.TString;
579
+ body: typebox312.TObject<{
580
+ email: typebox312.TString;
581
+ resetUrl: typebox312.TString;
582
582
  }>;
583
- response: typebox328.TObject<{
584
- success: typebox328.TBoolean;
585
- message: typebox328.TString;
583
+ response: typebox312.TObject<{
584
+ success: typebox312.TBoolean;
585
+ message: typebox312.TString;
586
586
  }>;
587
587
  }>;
588
588
  /**
@@ -590,13 +590,13 @@ declare class UserController {
590
590
  * Checks if the token is valid and not expired.
591
591
  */
592
592
  validateResetToken: _alepha_server0.ActionDescriptorFn<{
593
- query: typebox328.TObject<{
594
- email: typebox328.TString;
595
- token: typebox328.TString;
593
+ query: typebox312.TObject<{
594
+ email: typebox312.TString;
595
+ token: typebox312.TString;
596
596
  }>;
597
- response: typebox328.TObject<{
598
- valid: typebox328.TBoolean;
599
- email: typebox328.TOptional<typebox328.TString>;
597
+ response: typebox312.TObject<{
598
+ valid: typebox312.TBoolean;
599
+ email: typebox312.TOptional<typebox312.TString>;
600
600
  }>;
601
601
  }>;
602
602
  /**
@@ -604,14 +604,14 @@ declare class UserController {
604
604
  * Updates the user's password and invalidates all sessions.
605
605
  */
606
606
  resetPassword: _alepha_server0.ActionDescriptorFn<{
607
- body: typebox328.TObject<{
608
- email: typebox328.TString;
609
- token: typebox328.TString;
610
- newPassword: typebox328.TString;
607
+ body: typebox312.TObject<{
608
+ email: typebox312.TString;
609
+ token: typebox312.TString;
610
+ newPassword: typebox312.TString;
611
611
  }>;
612
- response: typebox328.TObject<{
613
- success: typebox328.TBoolean;
614
- message: typebox328.TString;
612
+ response: typebox312.TObject<{
613
+ success: typebox312.TBoolean;
614
+ message: typebox312.TString;
615
615
  }>;
616
616
  }>;
617
617
  /**
@@ -619,13 +619,13 @@ declare class UserController {
619
619
  * Generates a verification token using verification service and sends an email to the user.
620
620
  */
621
621
  requestEmailVerification: _alepha_server0.ActionDescriptorFn<{
622
- body: typebox328.TObject<{
623
- email: typebox328.TString;
624
- verifyUrl: typebox328.TString;
622
+ body: typebox312.TObject<{
623
+ email: typebox312.TString;
624
+ verifyUrl: typebox312.TString;
625
625
  }>;
626
- response: typebox328.TObject<{
627
- success: typebox328.TBoolean;
628
- message: typebox328.TString;
626
+ response: typebox312.TObject<{
627
+ success: typebox312.TBoolean;
628
+ message: typebox312.TString;
629
629
  }>;
630
630
  }>;
631
631
  /**
@@ -633,24 +633,24 @@ declare class UserController {
633
633
  * Updates the user's emailVerified status.
634
634
  */
635
635
  verifyEmail: _alepha_server0.ActionDescriptorFn<{
636
- body: typebox328.TObject<{
637
- email: typebox328.TString;
638
- token: typebox328.TString;
636
+ body: typebox312.TObject<{
637
+ email: typebox312.TString;
638
+ token: typebox312.TString;
639
639
  }>;
640
- response: typebox328.TObject<{
641
- success: typebox328.TBoolean;
642
- message: typebox328.TString;
640
+ response: typebox312.TObject<{
641
+ success: typebox312.TBoolean;
642
+ message: typebox312.TString;
643
643
  }>;
644
644
  }>;
645
645
  /**
646
646
  * Check if an email is verified.
647
647
  */
648
648
  checkEmailVerification: _alepha_server0.ActionDescriptorFn<{
649
- query: typebox328.TObject<{
650
- email: typebox328.TString;
649
+ query: typebox312.TObject<{
650
+ email: typebox312.TString;
651
651
  }>;
652
- response: typebox328.TObject<{
653
- verified: typebox328.TBoolean;
652
+ response: typebox312.TObject<{
653
+ verified: typebox312.TBoolean;
654
654
  }>;
655
655
  }>;
656
656
  }
@@ -710,50 +710,50 @@ declare const $realmUsers: (options?: {
710
710
  }) => _alepha_security0.RealmDescriptor;
711
711
  //#endregion
712
712
  //#region src/schemas/identityResourceSchema.d.ts
713
- declare const identityResourceSchema: typebox328.TObject<{
714
- id: typebox328.TString;
715
- version: typebox328.TNumber;
716
- createdAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
717
- updatedAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
718
- userId: typebox328.TString;
719
- provider: typebox328.TString;
720
- providerUserId: typebox328.TString;
721
- providerData: typebox328.TOptional<typebox328.TRecord<string, typebox328.TAny>>;
713
+ declare const identityResourceSchema: typebox312.TObject<{
714
+ id: typebox312.TString;
715
+ version: typebox312.TNumber;
716
+ createdAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
717
+ updatedAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
718
+ userId: typebox312.TString;
719
+ provider: typebox312.TString;
720
+ providerUserId: typebox312.TString;
721
+ providerData: typebox312.TOptional<typebox312.TRecord<string, typebox312.TAny>>;
722
722
  }>;
723
723
  type IdentityResource = Static<typeof identityResourceSchema>;
724
724
  //#endregion
725
725
  //#region src/schemas/sessionResourceSchema.d.ts
726
- declare const sessionResourceSchema: typebox328.TObject<{
727
- id: typebox328.TString;
728
- version: typebox328.TNumber;
729
- createdAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
730
- updatedAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
731
- refreshToken: typebox328.TString;
732
- userId: typebox328.TString;
733
- expiresAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
734
- ip: typebox328.TOptional<typebox328.TString>;
735
- userAgent: typebox328.TOptional<typebox328.TObject<{
736
- os: typebox328.TString;
737
- browser: typebox328.TString;
738
- device: typebox328.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
726
+ declare const sessionResourceSchema: typebox312.TObject<{
727
+ id: typebox312.TString;
728
+ version: typebox312.TNumber;
729
+ createdAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
730
+ updatedAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
731
+ refreshToken: typebox312.TString;
732
+ userId: typebox312.TString;
733
+ expiresAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
734
+ ip: typebox312.TOptional<typebox312.TString>;
735
+ userAgent: typebox312.TOptional<typebox312.TObject<{
736
+ os: typebox312.TString;
737
+ browser: typebox312.TString;
738
+ device: typebox312.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
739
739
  }>>;
740
740
  }>;
741
741
  type SessionResource = Static<typeof sessionResourceSchema>;
742
742
  //#endregion
743
743
  //#region src/schemas/userResourceSchema.d.ts
744
- declare const userResourceSchema: typebox328.TObject<{
745
- id: typebox328.TString;
746
- version: typebox328.TNumber;
747
- createdAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
748
- updatedAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
749
- email: typebox328.TString;
750
- roles: typebox328.TArray<typebox328.TString>;
751
- name: typebox328.TOptional<typebox328.TString>;
752
- firstName: typebox328.TOptional<typebox328.TString>;
753
- lastName: typebox328.TOptional<typebox328.TString>;
754
- picture: typebox328.TOptional<typebox328.TString>;
755
- enabled: typebox328.TBoolean;
756
- emailVerified: typebox328.TBoolean;
744
+ declare const userResourceSchema: typebox312.TObject<{
745
+ id: typebox312.TString;
746
+ version: typebox312.TNumber;
747
+ createdAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
748
+ updatedAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
749
+ email: typebox312.TString;
750
+ roles: typebox312.TArray<typebox312.TString>;
751
+ name: typebox312.TOptional<typebox312.TString>;
752
+ firstName: typebox312.TOptional<typebox312.TString>;
753
+ lastName: typebox312.TOptional<typebox312.TString>;
754
+ picture: typebox312.TOptional<typebox312.TString>;
755
+ enabled: typebox312.TBoolean;
756
+ emailVerified: typebox312.TBoolean;
757
757
  }>;
758
758
  type UserResource = Static<typeof userResourceSchema>;
759
759
  //#endregion
@@ -762,103 +762,103 @@ declare class SessionService {
762
762
  protected readonly alepha: Alepha;
763
763
  protected readonly dateTimeProvider: DateTimeProvider;
764
764
  protected readonly cryptoProvider: CryptoProvider;
765
- readonly users: _alepha_postgres18.RepositoryDescriptor<typebox328.TObject<{
766
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
767
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
768
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
769
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
770
- email: typebox328.TString;
771
- roles: typebox328.TArray<typebox328.TString>;
772
- name: typebox328.TOptional<typebox328.TString>;
773
- firstName: typebox328.TOptional<typebox328.TString>;
774
- lastName: typebox328.TOptional<typebox328.TString>;
775
- picture: typebox328.TOptional<typebox328.TString>;
776
- enabled: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
777
- emailVerified: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
765
+ readonly users: _alepha_postgres0.Repository<typebox312.TObject<{
766
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
767
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
768
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
769
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
770
+ email: typebox312.TString;
771
+ roles: typebox312.TArray<typebox312.TString>;
772
+ name: typebox312.TOptional<typebox312.TString>;
773
+ firstName: typebox312.TOptional<typebox312.TString>;
774
+ lastName: typebox312.TOptional<typebox312.TString>;
775
+ picture: typebox312.TOptional<typebox312.TString>;
776
+ enabled: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
777
+ emailVerified: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
778
778
  }>>;
779
- readonly sessions: _alepha_postgres18.RepositoryDescriptor<typebox328.TObject<{
780
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
781
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
782
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
783
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
784
- refreshToken: typebox328.TString;
785
- userId: _alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_REF>;
786
- expiresAt: typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>;
787
- ip: typebox328.TOptional<typebox328.TString>;
788
- userAgent: typebox328.TOptional<typebox328.TObject<{
789
- os: typebox328.TString;
790
- browser: typebox328.TString;
791
- device: typebox328.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
779
+ readonly sessions: _alepha_postgres0.Repository<typebox312.TObject<{
780
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
781
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
782
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
783
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
784
+ refreshToken: typebox312.TString;
785
+ userId: _alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_REF>;
786
+ expiresAt: typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>;
787
+ ip: typebox312.TOptional<typebox312.TString>;
788
+ userAgent: typebox312.TOptional<typebox312.TObject<{
789
+ os: typebox312.TString;
790
+ browser: typebox312.TString;
791
+ device: typebox312.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
792
792
  }>>;
793
793
  }>>;
794
- readonly identities: _alepha_postgres18.RepositoryDescriptor<typebox328.TObject<{
795
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
796
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
797
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
798
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
799
- userId: _alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_REF>;
800
- provider: typebox328.TString;
801
- providerUserId: typebox328.TString;
802
- providerData: typebox328.TOptional<typebox328.TRecord<string, typebox328.TAny>>;
794
+ readonly identities: _alepha_postgres0.Repository<typebox312.TObject<{
795
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
796
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
797
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
798
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
799
+ userId: _alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_REF>;
800
+ provider: typebox312.TString;
801
+ providerUserId: typebox312.TString;
802
+ providerData: typebox312.TOptional<typebox312.TRecord<string, typebox312.TAny>>;
803
803
  }>>;
804
- login(provider: string, username: string, password: string): Promise<_alepha_postgres18.PgStatic<typebox328.TObject<{
805
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
806
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
807
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
808
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
809
- email: typebox328.TString;
810
- roles: typebox328.TArray<typebox328.TString>;
811
- name: typebox328.TOptional<typebox328.TString>;
812
- firstName: typebox328.TOptional<typebox328.TString>;
813
- lastName: typebox328.TOptional<typebox328.TString>;
814
- picture: typebox328.TOptional<typebox328.TString>;
815
- enabled: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
816
- emailVerified: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
817
- }>, _alepha_postgres18.PgRelationMap<typebox328.TObject<{
818
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
819
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
820
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
821
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
822
- email: typebox328.TString;
823
- roles: typebox328.TArray<typebox328.TString>;
824
- name: typebox328.TOptional<typebox328.TString>;
825
- firstName: typebox328.TOptional<typebox328.TString>;
826
- lastName: typebox328.TOptional<typebox328.TString>;
827
- picture: typebox328.TOptional<typebox328.TString>;
828
- enabled: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
829
- emailVerified: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
804
+ login(provider: string, username: string, password: string): Promise<_alepha_postgres0.PgStatic<typebox312.TObject<{
805
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
806
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
807
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
808
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
809
+ email: typebox312.TString;
810
+ roles: typebox312.TArray<typebox312.TString>;
811
+ name: typebox312.TOptional<typebox312.TString>;
812
+ firstName: typebox312.TOptional<typebox312.TString>;
813
+ lastName: typebox312.TOptional<typebox312.TString>;
814
+ picture: typebox312.TOptional<typebox312.TString>;
815
+ enabled: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
816
+ emailVerified: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
817
+ }>, _alepha_postgres0.PgRelationMap<typebox312.TObject<{
818
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
819
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
820
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
821
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
822
+ email: typebox312.TString;
823
+ roles: typebox312.TArray<typebox312.TString>;
824
+ name: typebox312.TOptional<typebox312.TString>;
825
+ firstName: typebox312.TOptional<typebox312.TString>;
826
+ lastName: typebox312.TOptional<typebox312.TString>;
827
+ picture: typebox312.TOptional<typebox312.TString>;
828
+ enabled: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
829
+ emailVerified: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
830
830
  }>>>>;
831
831
  createSession(user: UserAccount, expiresIn: number): Promise<{
832
832
  refreshToken: string;
833
833
  sessionId: string;
834
834
  }>;
835
835
  refreshSession(refreshToken: string): Promise<{
836
- user: _alepha_postgres18.PgStatic<typebox328.TObject<{
837
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
838
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
839
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
840
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
841
- email: typebox328.TString;
842
- roles: typebox328.TArray<typebox328.TString>;
843
- name: typebox328.TOptional<typebox328.TString>;
844
- firstName: typebox328.TOptional<typebox328.TString>;
845
- lastName: typebox328.TOptional<typebox328.TString>;
846
- picture: typebox328.TOptional<typebox328.TString>;
847
- enabled: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
848
- emailVerified: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
849
- }>, _alepha_postgres18.PgRelationMap<typebox328.TObject<{
850
- id: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TString, typeof _alepha_postgres18.PG_PRIMARY_KEY>, typeof _alepha_postgres18.PG_DEFAULT>;
851
- version: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TInteger, typeof _alepha_postgres18.PG_VERSION>, typeof _alepha_postgres18.PG_DEFAULT>;
852
- createdAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_CREATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
853
- updatedAt: _alepha_postgres18.PgAttr<_alepha_postgres18.PgAttr<typebox328.TCodec<typebox328.TString, dayjs20.Dayjs>, typeof _alepha_postgres18.PG_UPDATED_AT>, typeof _alepha_postgres18.PG_DEFAULT>;
854
- email: typebox328.TString;
855
- roles: typebox328.TArray<typebox328.TString>;
856
- name: typebox328.TOptional<typebox328.TString>;
857
- firstName: typebox328.TOptional<typebox328.TString>;
858
- lastName: typebox328.TOptional<typebox328.TString>;
859
- picture: typebox328.TOptional<typebox328.TString>;
860
- enabled: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
861
- emailVerified: _alepha_postgres18.PgAttr<typebox328.TBoolean, typeof _alepha_postgres18.PG_DEFAULT>;
836
+ user: _alepha_postgres0.PgStatic<typebox312.TObject<{
837
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
838
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
839
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
840
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
841
+ email: typebox312.TString;
842
+ roles: typebox312.TArray<typebox312.TString>;
843
+ name: typebox312.TOptional<typebox312.TString>;
844
+ firstName: typebox312.TOptional<typebox312.TString>;
845
+ lastName: typebox312.TOptional<typebox312.TString>;
846
+ picture: typebox312.TOptional<typebox312.TString>;
847
+ enabled: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
848
+ emailVerified: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
849
+ }>, _alepha_postgres0.PgRelationMap<typebox312.TObject<{
850
+ id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
851
+ version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
852
+ createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
853
+ updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox312.TCodec<typebox312.TString, dayjs19.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
854
+ email: typebox312.TString;
855
+ roles: typebox312.TArray<typebox312.TString>;
856
+ name: typebox312.TOptional<typebox312.TString>;
857
+ firstName: typebox312.TOptional<typebox312.TString>;
858
+ lastName: typebox312.TOptional<typebox312.TString>;
859
+ picture: typebox312.TOptional<typebox312.TString>;
860
+ enabled: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
861
+ emailVerified: _alepha_postgres0.PgAttr<typebox312.TBoolean, typeof _alepha_postgres0.PG_DEFAULT>;
862
862
  }>>>;
863
863
  expiresIn: number;
864
864
  sessionId: string;
@@ -872,8 +872,8 @@ declare class SessionService {
872
872
  id: string;
873
873
  version: number;
874
874
  email: string;
875
- createdAt: dayjs20.Dayjs;
876
- updatedAt: dayjs20.Dayjs;
875
+ createdAt: dayjs19.Dayjs;
876
+ updatedAt: dayjs19.Dayjs;
877
877
  roles: string[];
878
878
  enabled: boolean;
879
879
  emailVerified: boolean;
@@ -918,7 +918,7 @@ declare class SessionService {
918
918
  *
919
919
  * @module alepha.api.users
920
920
  */
921
- declare const AlephaApiUsers: _alepha_core1.Service<_alepha_core1.Module<{}>>;
921
+ declare const AlephaApiUsers: _alepha_core1.Service<_alepha_core1.Module>;
922
922
  //#endregion
923
923
  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 };
924
924
  //# sourceMappingURL=index.d.ts.map