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