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