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