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