alepha 0.10.7 → 0.11.1

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