alepha 0.11.12 → 0.12.0
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/README.md +2 -3
- package/dist/api-files/index.d.cts +166 -166
- package/dist/api-jobs/index.d.cts +137 -137
- package/dist/api-jobs/index.d.ts +26 -26
- package/dist/api-jobs/index.d.ts.map +1 -1
- package/dist/api-notifications/index.d.cts +98 -98
- package/dist/api-notifications/index.d.cts.map +1 -1
- package/dist/api-notifications/index.d.ts +98 -98
- package/dist/api-notifications/index.d.ts.map +1 -1
- package/dist/api-users/index.d.cts +661 -661
- package/dist/api-users/index.d.cts.map +1 -1
- package/dist/api-users/index.d.ts +658 -658
- package/dist/cli/index.cjs +2 -2
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/logger/index.d.cts.map +1 -1
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/orm/index.d.cts +15 -15
- package/dist/redis/index.d.ts +10 -10
- package/dist/security/index.d.cts +24 -24
- package/dist/security/index.d.cts.map +1 -1
- package/dist/server/index.d.ts +20 -20
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server-health/index.d.ts +16 -16
- package/dist/server-links/index.d.cts +29 -29
- package/dist/server-links/index.d.cts.map +1 -1
- package/dist/server-links/index.d.ts +29 -29
- package/dist/server-links/index.d.ts.map +1 -1
- package/dist/vite/index.d.cts.map +1 -1
- package/dist/websocket/index.d.cts +7 -7
- package/dist/websocket/index.d.ts +7 -7
- package/package.json +3 -2
- package/src/cli/assets/indexHtml.ts +2 -2
- package/tsconfig.base.json +16 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as alepha1 from "alepha";
|
|
2
2
|
import { Alepha, Descriptor, Static, StaticEncode, TObject } from "alepha";
|
|
3
|
-
import * as
|
|
3
|
+
import * as typebox282 from "typebox";
|
|
4
4
|
import * as alepha_server0 from "alepha/server";
|
|
5
5
|
import { ActionDescriptor, ClientRequestEntry, ClientRequestOptions, ClientRequestResponse, FetchOptions, RequestConfigSchema } from "alepha/server";
|
|
6
|
-
import * as
|
|
6
|
+
import * as alepha_orm20 from "alepha/orm";
|
|
7
7
|
import { Page } from "alepha/orm";
|
|
8
8
|
import * as alepha_security0 from "alepha/security";
|
|
9
9
|
import { CryptoProvider, RealmDescriptorOptions, UserAccount, UserAccountToken } from "alepha/security";
|
|
10
|
-
import * as
|
|
10
|
+
import * as alepha_logger3 from "alepha/logger";
|
|
11
11
|
import "alepha/retry";
|
|
12
12
|
import { DateTimeProvider } from "alepha/datetime";
|
|
13
13
|
import * as alepha_batch0 from "alepha/batch";
|
|
@@ -15,39 +15,39 @@ import * as alepha_queue0 from "alepha/queue";
|
|
|
15
15
|
import { EmailProvider } from "alepha/email";
|
|
16
16
|
|
|
17
17
|
//#region src/api-users/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_orm20.EntityDescriptor<typebox282.TObject<{
|
|
19
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
20
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
21
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
22
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
23
|
+
userId: alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_REF>;
|
|
24
|
+
provider: typebox282.TString;
|
|
25
|
+
providerUserId: typebox282.TString;
|
|
26
|
+
providerData: typebox282.TOptional<typebox282.TRecord<string, typebox282.TAny>>;
|
|
27
27
|
}>>;
|
|
28
28
|
type IdentityEntity = Static<typeof identities.schema>;
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/api-users/schemas/identityQuerySchema.d.ts
|
|
31
|
-
declare const identityQuerySchema:
|
|
32
|
-
page:
|
|
33
|
-
size:
|
|
34
|
-
sort:
|
|
35
|
-
userId:
|
|
36
|
-
provider:
|
|
31
|
+
declare const identityQuerySchema: typebox282.TObject<{
|
|
32
|
+
page: typebox282.TOptional<typebox282.TInteger>;
|
|
33
|
+
size: typebox282.TOptional<typebox282.TInteger>;
|
|
34
|
+
sort: typebox282.TOptional<typebox282.TString>;
|
|
35
|
+
userId: typebox282.TOptional<typebox282.TString>;
|
|
36
|
+
provider: typebox282.TOptional<typebox282.TString>;
|
|
37
37
|
}>;
|
|
38
38
|
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/api-users/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_orm20.Repository<typebox282.TObject<{
|
|
43
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
44
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
45
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
46
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
47
|
+
userId: alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_REF>;
|
|
48
|
+
provider: typebox282.TString;
|
|
49
|
+
providerUserId: typebox282.TString;
|
|
50
|
+
providerData: typebox282.TOptional<typebox282.TRecord<string, typebox282.TAny>>;
|
|
51
51
|
}>>;
|
|
52
52
|
/**
|
|
53
53
|
* Find identities with pagination and filtering.
|
|
@@ -72,99 +72,99 @@ declare class IdentityController {
|
|
|
72
72
|
* Find identities with pagination and filtering.
|
|
73
73
|
*/
|
|
74
74
|
readonly findIdentities: alepha_server0.ActionDescriptorFn<{
|
|
75
|
-
query:
|
|
76
|
-
page:
|
|
77
|
-
size:
|
|
78
|
-
sort:
|
|
79
|
-
userId:
|
|
80
|
-
provider:
|
|
75
|
+
query: typebox282.TObject<{
|
|
76
|
+
page: typebox282.TOptional<typebox282.TInteger>;
|
|
77
|
+
size: typebox282.TOptional<typebox282.TInteger>;
|
|
78
|
+
sort: typebox282.TOptional<typebox282.TString>;
|
|
79
|
+
userId: typebox282.TOptional<typebox282.TString>;
|
|
80
|
+
provider: typebox282.TOptional<typebox282.TString>;
|
|
81
81
|
}>;
|
|
82
|
-
response: alepha1.TPage<
|
|
83
|
-
id:
|
|
84
|
-
version:
|
|
85
|
-
createdAt:
|
|
86
|
-
updatedAt:
|
|
87
|
-
userId:
|
|
88
|
-
provider:
|
|
89
|
-
providerUserId:
|
|
90
|
-
providerData:
|
|
82
|
+
response: alepha1.TPage<typebox282.TObject<{
|
|
83
|
+
id: typebox282.TString;
|
|
84
|
+
version: typebox282.TNumber;
|
|
85
|
+
createdAt: typebox282.TString;
|
|
86
|
+
updatedAt: typebox282.TString;
|
|
87
|
+
userId: typebox282.TString;
|
|
88
|
+
provider: typebox282.TString;
|
|
89
|
+
providerUserId: typebox282.TString;
|
|
90
|
+
providerData: typebox282.TOptional<typebox282.TRecord<string, typebox282.TAny>>;
|
|
91
91
|
}>>;
|
|
92
92
|
}>;
|
|
93
93
|
/**
|
|
94
94
|
* Get an identity by ID.
|
|
95
95
|
*/
|
|
96
96
|
readonly getIdentity: alepha_server0.ActionDescriptorFn<{
|
|
97
|
-
params:
|
|
98
|
-
id:
|
|
97
|
+
params: typebox282.TObject<{
|
|
98
|
+
id: typebox282.TString;
|
|
99
99
|
}>;
|
|
100
|
-
response:
|
|
101
|
-
id:
|
|
102
|
-
version:
|
|
103
|
-
createdAt:
|
|
104
|
-
updatedAt:
|
|
105
|
-
userId:
|
|
106
|
-
provider:
|
|
107
|
-
providerUserId:
|
|
108
|
-
providerData:
|
|
100
|
+
response: typebox282.TObject<{
|
|
101
|
+
id: typebox282.TString;
|
|
102
|
+
version: typebox282.TNumber;
|
|
103
|
+
createdAt: typebox282.TString;
|
|
104
|
+
updatedAt: typebox282.TString;
|
|
105
|
+
userId: typebox282.TString;
|
|
106
|
+
provider: typebox282.TString;
|
|
107
|
+
providerUserId: typebox282.TString;
|
|
108
|
+
providerData: typebox282.TOptional<typebox282.TRecord<string, typebox282.TAny>>;
|
|
109
109
|
}>;
|
|
110
110
|
}>;
|
|
111
111
|
/**
|
|
112
112
|
* Delete an identity.
|
|
113
113
|
*/
|
|
114
114
|
readonly deleteIdentity: alepha_server0.ActionDescriptorFn<{
|
|
115
|
-
params:
|
|
116
|
-
id:
|
|
115
|
+
params: typebox282.TObject<{
|
|
116
|
+
id: typebox282.TString;
|
|
117
117
|
}>;
|
|
118
|
-
response:
|
|
119
|
-
ok:
|
|
120
|
-
id:
|
|
121
|
-
count:
|
|
118
|
+
response: typebox282.TObject<{
|
|
119
|
+
ok: typebox282.TBoolean;
|
|
120
|
+
id: typebox282.TOptional<typebox282.TUnion<[typebox282.TString, typebox282.TInteger]>>;
|
|
121
|
+
count: typebox282.TOptional<typebox282.TNumber>;
|
|
122
122
|
}>;
|
|
123
123
|
}>;
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region src/api-users/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_orm20.EntityDescriptor<typebox282.TObject<{
|
|
128
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
129
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
130
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
131
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
132
|
+
refreshToken: typebox282.TString;
|
|
133
|
+
userId: alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_REF>;
|
|
134
|
+
expiresAt: typebox282.TString;
|
|
135
|
+
ip: typebox282.TOptional<typebox282.TString>;
|
|
136
|
+
userAgent: typebox282.TOptional<typebox282.TObject<{
|
|
137
|
+
os: typebox282.TString;
|
|
138
|
+
browser: typebox282.TString;
|
|
139
|
+
device: typebox282.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
140
140
|
}>>;
|
|
141
141
|
}>>;
|
|
142
142
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region src/api-users/schemas/sessionQuerySchema.d.ts
|
|
145
|
-
declare const sessionQuerySchema:
|
|
146
|
-
page:
|
|
147
|
-
size:
|
|
148
|
-
sort:
|
|
149
|
-
userId:
|
|
145
|
+
declare const sessionQuerySchema: typebox282.TObject<{
|
|
146
|
+
page: typebox282.TOptional<typebox282.TInteger>;
|
|
147
|
+
size: typebox282.TOptional<typebox282.TInteger>;
|
|
148
|
+
sort: typebox282.TOptional<typebox282.TString>;
|
|
149
|
+
userId: typebox282.TOptional<typebox282.TString>;
|
|
150
150
|
}>;
|
|
151
151
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
152
152
|
//#endregion
|
|
153
153
|
//#region src/api-users/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_orm20.Repository<typebox282.TObject<{
|
|
156
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
157
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
158
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
159
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
160
|
+
refreshToken: typebox282.TString;
|
|
161
|
+
userId: alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_REF>;
|
|
162
|
+
expiresAt: typebox282.TString;
|
|
163
|
+
ip: typebox282.TOptional<typebox282.TString>;
|
|
164
|
+
userAgent: typebox282.TOptional<typebox282.TObject<{
|
|
165
|
+
os: typebox282.TString;
|
|
166
|
+
browser: typebox282.TString;
|
|
167
|
+
device: typebox282.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
168
168
|
}>>;
|
|
169
169
|
}>>;
|
|
170
170
|
/**
|
|
@@ -190,25 +190,25 @@ declare class SessionController {
|
|
|
190
190
|
* Find sessions with pagination and filtering.
|
|
191
191
|
*/
|
|
192
192
|
readonly findSessions: alepha_server0.ActionDescriptorFn<{
|
|
193
|
-
query:
|
|
194
|
-
page:
|
|
195
|
-
size:
|
|
196
|
-
sort:
|
|
197
|
-
userId:
|
|
193
|
+
query: typebox282.TObject<{
|
|
194
|
+
page: typebox282.TOptional<typebox282.TInteger>;
|
|
195
|
+
size: typebox282.TOptional<typebox282.TInteger>;
|
|
196
|
+
sort: typebox282.TOptional<typebox282.TString>;
|
|
197
|
+
userId: typebox282.TOptional<typebox282.TString>;
|
|
198
198
|
}>;
|
|
199
|
-
response: alepha1.TPage<
|
|
200
|
-
id:
|
|
201
|
-
version:
|
|
202
|
-
createdAt:
|
|
203
|
-
updatedAt:
|
|
204
|
-
refreshToken:
|
|
205
|
-
userId:
|
|
206
|
-
expiresAt:
|
|
207
|
-
ip:
|
|
208
|
-
userAgent:
|
|
209
|
-
os:
|
|
210
|
-
browser:
|
|
211
|
-
device:
|
|
199
|
+
response: alepha1.TPage<typebox282.TObject<{
|
|
200
|
+
id: typebox282.TString;
|
|
201
|
+
version: typebox282.TNumber;
|
|
202
|
+
createdAt: typebox282.TString;
|
|
203
|
+
updatedAt: typebox282.TString;
|
|
204
|
+
refreshToken: typebox282.TString;
|
|
205
|
+
userId: typebox282.TString;
|
|
206
|
+
expiresAt: typebox282.TString;
|
|
207
|
+
ip: typebox282.TOptional<typebox282.TString>;
|
|
208
|
+
userAgent: typebox282.TOptional<typebox282.TObject<{
|
|
209
|
+
os: typebox282.TString;
|
|
210
|
+
browser: typebox282.TString;
|
|
211
|
+
device: typebox282.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
212
212
|
}>>;
|
|
213
213
|
}>>;
|
|
214
214
|
}>;
|
|
@@ -216,22 +216,22 @@ declare class SessionController {
|
|
|
216
216
|
* Get a session by ID.
|
|
217
217
|
*/
|
|
218
218
|
readonly getSession: alepha_server0.ActionDescriptorFn<{
|
|
219
|
-
params:
|
|
220
|
-
id:
|
|
219
|
+
params: typebox282.TObject<{
|
|
220
|
+
id: typebox282.TString;
|
|
221
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:
|
|
222
|
+
response: typebox282.TObject<{
|
|
223
|
+
id: typebox282.TString;
|
|
224
|
+
version: typebox282.TNumber;
|
|
225
|
+
createdAt: typebox282.TString;
|
|
226
|
+
updatedAt: typebox282.TString;
|
|
227
|
+
refreshToken: typebox282.TString;
|
|
228
|
+
userId: typebox282.TString;
|
|
229
|
+
expiresAt: typebox282.TString;
|
|
230
|
+
ip: typebox282.TOptional<typebox282.TString>;
|
|
231
|
+
userAgent: typebox282.TOptional<typebox282.TObject<{
|
|
232
|
+
os: typebox282.TString;
|
|
233
|
+
browser: typebox282.TString;
|
|
234
|
+
device: typebox282.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
235
235
|
}>>;
|
|
236
236
|
}>;
|
|
237
237
|
}>;
|
|
@@ -239,13 +239,13 @@ declare class SessionController {
|
|
|
239
239
|
* Delete a session.
|
|
240
240
|
*/
|
|
241
241
|
readonly deleteSession: alepha_server0.ActionDescriptorFn<{
|
|
242
|
-
params:
|
|
243
|
-
id:
|
|
242
|
+
params: typebox282.TObject<{
|
|
243
|
+
id: typebox282.TString;
|
|
244
244
|
}>;
|
|
245
|
-
response:
|
|
246
|
-
ok:
|
|
247
|
-
id:
|
|
248
|
-
count:
|
|
245
|
+
response: typebox282.TObject<{
|
|
246
|
+
ok: typebox282.TBoolean;
|
|
247
|
+
id: typebox282.TOptional<typebox282.TUnion<[typebox282.TString, typebox282.TInteger]>>;
|
|
248
|
+
count: typebox282.TOptional<typebox282.TNumber>;
|
|
249
249
|
}>;
|
|
250
250
|
}>;
|
|
251
251
|
}
|
|
@@ -308,15 +308,15 @@ declare module "alepha/server" {
|
|
|
308
308
|
*/
|
|
309
309
|
//#endregion
|
|
310
310
|
//#region src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
311
|
-
declare const apiLinksResponseSchema:
|
|
312
|
-
prefix:
|
|
313
|
-
links:
|
|
314
|
-
name:
|
|
315
|
-
group:
|
|
316
|
-
path:
|
|
317
|
-
method:
|
|
318
|
-
requestBodyType:
|
|
319
|
-
service:
|
|
311
|
+
declare const apiLinksResponseSchema: typebox282.TObject<{
|
|
312
|
+
prefix: typebox282.TOptional<typebox282.TString>;
|
|
313
|
+
links: typebox282.TArray<typebox282.TObject<{
|
|
314
|
+
name: typebox282.TString;
|
|
315
|
+
group: typebox282.TOptional<typebox282.TString>;
|
|
316
|
+
path: typebox282.TString;
|
|
317
|
+
method: typebox282.TOptional<typebox282.TString>;
|
|
318
|
+
requestBodyType: typebox282.TOptional<typebox282.TString>;
|
|
319
|
+
service: typebox282.TOptional<typebox282.TString>;
|
|
320
320
|
}>>;
|
|
321
321
|
}>;
|
|
322
322
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
@@ -353,35 +353,35 @@ declare module "alepha" {
|
|
|
353
353
|
*/
|
|
354
354
|
//#endregion
|
|
355
355
|
//#region src/api-verifications/entities/verifications.d.ts
|
|
356
|
-
declare const verifications:
|
|
357
|
-
id:
|
|
358
|
-
createdAt:
|
|
359
|
-
updatedAt:
|
|
360
|
-
version:
|
|
361
|
-
type:
|
|
362
|
-
target:
|
|
363
|
-
code:
|
|
364
|
-
verifiedAt:
|
|
365
|
-
attempts:
|
|
356
|
+
declare const verifications: alepha_orm20.EntityDescriptor<typebox282.TObject<{
|
|
357
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
358
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
359
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
360
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
361
|
+
type: typebox282.TUnsafe<"email" | "phone">;
|
|
362
|
+
target: typebox282.TString;
|
|
363
|
+
code: typebox282.TString;
|
|
364
|
+
verifiedAt: typebox282.TOptional<typebox282.TString>;
|
|
365
|
+
attempts: alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_DEFAULT>;
|
|
366
366
|
}>>;
|
|
367
367
|
type VerificationEntity = Static<typeof verifications.schema>;
|
|
368
368
|
//#endregion
|
|
369
369
|
//#region src/api-verifications/schemas/verificationSettingsSchema.d.ts
|
|
370
|
-
declare const verificationSettingsSchema:
|
|
371
|
-
phone:
|
|
372
|
-
maxAttempts:
|
|
373
|
-
codeLength:
|
|
374
|
-
codeExpiration:
|
|
375
|
-
verificationCooldown:
|
|
376
|
-
limitPerDay:
|
|
370
|
+
declare const verificationSettingsSchema: typebox282.TObject<{
|
|
371
|
+
phone: typebox282.TObject<{
|
|
372
|
+
maxAttempts: typebox282.TInteger;
|
|
373
|
+
codeLength: typebox282.TInteger;
|
|
374
|
+
codeExpiration: typebox282.TInteger;
|
|
375
|
+
verificationCooldown: typebox282.TInteger;
|
|
376
|
+
limitPerDay: typebox282.TInteger;
|
|
377
377
|
}>;
|
|
378
|
-
email:
|
|
379
|
-
maxAttempts:
|
|
380
|
-
codeExpiration:
|
|
381
|
-
verificationCooldown:
|
|
382
|
-
limitPerDay:
|
|
378
|
+
email: typebox282.TObject<{
|
|
379
|
+
maxAttempts: typebox282.TInteger;
|
|
380
|
+
codeExpiration: typebox282.TInteger;
|
|
381
|
+
verificationCooldown: typebox282.TInteger;
|
|
382
|
+
limitPerDay: typebox282.TInteger;
|
|
383
383
|
}>;
|
|
384
|
-
purgeDays:
|
|
384
|
+
purgeDays: typebox282.TInteger;
|
|
385
385
|
}>;
|
|
386
386
|
type VerificationSettings = Static<typeof verificationSettingsSchema>;
|
|
387
387
|
//#endregion
|
|
@@ -389,21 +389,21 @@ type VerificationSettings = Static<typeof verificationSettingsSchema>;
|
|
|
389
389
|
/**
|
|
390
390
|
* Verification settings configuration atom
|
|
391
391
|
*/
|
|
392
|
-
declare const verificationOptions: alepha1.Atom<
|
|
393
|
-
phone:
|
|
394
|
-
maxAttempts:
|
|
395
|
-
codeLength:
|
|
396
|
-
codeExpiration:
|
|
397
|
-
verificationCooldown:
|
|
398
|
-
limitPerDay:
|
|
392
|
+
declare const verificationOptions: alepha1.Atom<typebox282.TObject<{
|
|
393
|
+
phone: typebox282.TObject<{
|
|
394
|
+
maxAttempts: typebox282.TInteger;
|
|
395
|
+
codeLength: typebox282.TInteger;
|
|
396
|
+
codeExpiration: typebox282.TInteger;
|
|
397
|
+
verificationCooldown: typebox282.TInteger;
|
|
398
|
+
limitPerDay: typebox282.TInteger;
|
|
399
399
|
}>;
|
|
400
|
-
email:
|
|
401
|
-
maxAttempts:
|
|
402
|
-
codeExpiration:
|
|
403
|
-
verificationCooldown:
|
|
404
|
-
limitPerDay:
|
|
400
|
+
email: typebox282.TObject<{
|
|
401
|
+
maxAttempts: typebox282.TInteger;
|
|
402
|
+
codeExpiration: typebox282.TInteger;
|
|
403
|
+
verificationCooldown: typebox282.TInteger;
|
|
404
|
+
limitPerDay: typebox282.TInteger;
|
|
405
405
|
}>;
|
|
406
|
-
purgeDays:
|
|
406
|
+
purgeDays: typebox282.TInteger;
|
|
407
407
|
}>, "alepha.api.verifications.options">;
|
|
408
408
|
type VerificationOptions = Static<typeof verificationOptions.schema>;
|
|
409
409
|
declare module "alepha" {
|
|
@@ -432,61 +432,61 @@ declare class VerificationParameters {
|
|
|
432
432
|
}
|
|
433
433
|
//#endregion
|
|
434
434
|
//#region src/api-verifications/schemas/requestVerificationCodeResponseSchema.d.ts
|
|
435
|
-
declare const requestVerificationCodeResponseSchema:
|
|
436
|
-
token:
|
|
437
|
-
codeExpiration:
|
|
438
|
-
verificationCooldown:
|
|
439
|
-
maxVerificationAttempts:
|
|
435
|
+
declare const requestVerificationCodeResponseSchema: typebox282.TObject<{
|
|
436
|
+
token: typebox282.TString;
|
|
437
|
+
codeExpiration: typebox282.TInteger;
|
|
438
|
+
verificationCooldown: typebox282.TInteger;
|
|
439
|
+
maxVerificationAttempts: typebox282.TInteger;
|
|
440
440
|
}>;
|
|
441
441
|
type RequestVerificationResponse = Static<typeof requestVerificationCodeResponseSchema>;
|
|
442
442
|
//#endregion
|
|
443
443
|
//#region src/api-verifications/schemas/validateVerificationCodeResponseSchema.d.ts
|
|
444
|
-
declare const validateVerificationCodeResponseSchema:
|
|
445
|
-
ok:
|
|
446
|
-
alreadyVerified:
|
|
444
|
+
declare const validateVerificationCodeResponseSchema: typebox282.TObject<{
|
|
445
|
+
ok: typebox282.TBoolean;
|
|
446
|
+
alreadyVerified: typebox282.TOptional<typebox282.TBoolean>;
|
|
447
447
|
}>;
|
|
448
448
|
type ValidateVerificationCodeResponse = Static<typeof validateVerificationCodeResponseSchema>;
|
|
449
449
|
//#endregion
|
|
450
450
|
//#region src/api-verifications/schemas/verificationTypeEnumSchema.d.ts
|
|
451
|
-
declare const verificationTypeEnumSchema:
|
|
451
|
+
declare const verificationTypeEnumSchema: typebox282.TUnsafe<"email" | "phone">;
|
|
452
452
|
type VerificationTypeEnum = Static<typeof verificationTypeEnumSchema>;
|
|
453
453
|
//#endregion
|
|
454
454
|
//#region src/api-verifications/services/VerificationService.d.ts
|
|
455
455
|
declare class VerificationService {
|
|
456
456
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
457
457
|
protected readonly verificationParameters: VerificationParameters;
|
|
458
|
-
protected readonly verificationRepository:
|
|
459
|
-
id:
|
|
460
|
-
createdAt:
|
|
461
|
-
updatedAt:
|
|
462
|
-
version:
|
|
463
|
-
type:
|
|
464
|
-
target:
|
|
465
|
-
code:
|
|
466
|
-
verifiedAt:
|
|
467
|
-
attempts:
|
|
458
|
+
protected readonly verificationRepository: alepha_orm20.Repository<typebox282.TObject<{
|
|
459
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
460
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
461
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
462
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
463
|
+
type: typebox282.TUnsafe<"email" | "phone">;
|
|
464
|
+
target: typebox282.TString;
|
|
465
|
+
code: typebox282.TString;
|
|
466
|
+
verifiedAt: typebox282.TOptional<typebox282.TString>;
|
|
467
|
+
attempts: alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_DEFAULT>;
|
|
468
468
|
}>>;
|
|
469
469
|
findByEntry(entry: VerificationEntry): Promise<VerificationEntity>;
|
|
470
|
-
findRecentsByEntry(entry: VerificationEntry): Promise<
|
|
471
|
-
id:
|
|
472
|
-
createdAt:
|
|
473
|
-
updatedAt:
|
|
474
|
-
version:
|
|
475
|
-
type:
|
|
476
|
-
target:
|
|
477
|
-
code:
|
|
478
|
-
verifiedAt:
|
|
479
|
-
attempts:
|
|
480
|
-
}>,
|
|
481
|
-
id:
|
|
482
|
-
createdAt:
|
|
483
|
-
updatedAt:
|
|
484
|
-
version:
|
|
485
|
-
type:
|
|
486
|
-
target:
|
|
487
|
-
code:
|
|
488
|
-
verifiedAt:
|
|
489
|
-
attempts:
|
|
470
|
+
findRecentsByEntry(entry: VerificationEntry): Promise<alepha_orm20.PgStatic<typebox282.TObject<{
|
|
471
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
472
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
473
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
474
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
475
|
+
type: typebox282.TUnsafe<"email" | "phone">;
|
|
476
|
+
target: typebox282.TString;
|
|
477
|
+
code: typebox282.TString;
|
|
478
|
+
verifiedAt: typebox282.TOptional<typebox282.TString>;
|
|
479
|
+
attempts: alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_DEFAULT>;
|
|
480
|
+
}>, alepha_orm20.PgRelationMap<typebox282.TObject<{
|
|
481
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
482
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
483
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
484
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
485
|
+
type: typebox282.TUnsafe<"email" | "phone">;
|
|
486
|
+
target: typebox282.TString;
|
|
487
|
+
code: typebox282.TString;
|
|
488
|
+
verifiedAt: typebox282.TOptional<typebox282.TString>;
|
|
489
|
+
attempts: alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_DEFAULT>;
|
|
490
490
|
}>>>[]>;
|
|
491
491
|
/**
|
|
492
492
|
* Creates a verification entry and returns the token.
|
|
@@ -514,53 +514,53 @@ declare class VerificationController {
|
|
|
514
514
|
readonly url = "/verifications";
|
|
515
515
|
readonly group = "verifications";
|
|
516
516
|
readonly requestVerificationCode: alepha_server0.ActionDescriptorFn<{
|
|
517
|
-
params:
|
|
518
|
-
type:
|
|
517
|
+
params: typebox282.TObject<{
|
|
518
|
+
type: typebox282.TUnsafe<"email" | "phone">;
|
|
519
519
|
}>;
|
|
520
|
-
body:
|
|
521
|
-
target:
|
|
520
|
+
body: typebox282.TObject<{
|
|
521
|
+
target: typebox282.TString;
|
|
522
522
|
}>;
|
|
523
|
-
response:
|
|
524
|
-
token:
|
|
525
|
-
codeExpiration:
|
|
526
|
-
verificationCooldown:
|
|
527
|
-
maxVerificationAttempts:
|
|
523
|
+
response: typebox282.TObject<{
|
|
524
|
+
token: typebox282.TString;
|
|
525
|
+
codeExpiration: typebox282.TInteger;
|
|
526
|
+
verificationCooldown: typebox282.TInteger;
|
|
527
|
+
maxVerificationAttempts: typebox282.TInteger;
|
|
528
528
|
}>;
|
|
529
529
|
}>;
|
|
530
530
|
readonly validateVerificationCode: alepha_server0.ActionDescriptorFn<{
|
|
531
|
-
params:
|
|
532
|
-
type:
|
|
531
|
+
params: typebox282.TObject<{
|
|
532
|
+
type: typebox282.TUnsafe<"email" | "phone">;
|
|
533
533
|
}>;
|
|
534
|
-
body:
|
|
535
|
-
target:
|
|
536
|
-
token:
|
|
534
|
+
body: typebox282.TObject<{
|
|
535
|
+
target: typebox282.TString;
|
|
536
|
+
token: typebox282.TString;
|
|
537
537
|
}>;
|
|
538
|
-
response:
|
|
539
|
-
ok:
|
|
540
|
-
alreadyVerified:
|
|
538
|
+
response: typebox282.TObject<{
|
|
539
|
+
ok: typebox282.TBoolean;
|
|
540
|
+
alreadyVerified: typebox282.TOptional<typebox282.TBoolean>;
|
|
541
541
|
}>;
|
|
542
542
|
}>;
|
|
543
543
|
}
|
|
544
544
|
//#endregion
|
|
545
545
|
//#region src/api-notifications/entities/notifications.d.ts
|
|
546
|
-
declare const notifications:
|
|
547
|
-
id:
|
|
548
|
-
version:
|
|
549
|
-
createdAt:
|
|
550
|
-
updatedAt:
|
|
551
|
-
type:
|
|
552
|
-
template:
|
|
553
|
-
category:
|
|
554
|
-
critical:
|
|
555
|
-
sensitive:
|
|
556
|
-
contact:
|
|
557
|
-
variables:
|
|
558
|
-
scheduledAt:
|
|
559
|
-
sentAt:
|
|
560
|
-
error:
|
|
561
|
-
at:
|
|
562
|
-
name:
|
|
563
|
-
message:
|
|
546
|
+
declare const notifications: alepha_orm20.EntityDescriptor<typebox282.TObject<{
|
|
547
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
548
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
549
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
550
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
551
|
+
type: typebox282.TUnsafe<"email" | "sms">;
|
|
552
|
+
template: typebox282.TString;
|
|
553
|
+
category: typebox282.TOptional<typebox282.TString>;
|
|
554
|
+
critical: typebox282.TOptional<typebox282.TBoolean>;
|
|
555
|
+
sensitive: typebox282.TOptional<typebox282.TBoolean>;
|
|
556
|
+
contact: typebox282.TString;
|
|
557
|
+
variables: typebox282.TOptional<typebox282.TRecord<"^.*$", typebox282.TAny>>;
|
|
558
|
+
scheduledAt: typebox282.TOptional<typebox282.TString>;
|
|
559
|
+
sentAt: typebox282.TOptional<typebox282.TString>;
|
|
560
|
+
error: typebox282.TOptional<typebox282.TObject<{
|
|
561
|
+
at: typebox282.TString;
|
|
562
|
+
name: typebox282.TString;
|
|
563
|
+
message: typebox282.TString;
|
|
564
564
|
}>>;
|
|
565
565
|
}>>;
|
|
566
566
|
type NotificationEntity = Static<typeof notifications.schema>;
|
|
@@ -577,25 +577,25 @@ interface SmsSendOptions {
|
|
|
577
577
|
//#region src/api-notifications/services/NotificationSenderService.d.ts
|
|
578
578
|
declare class NotificationSenderService {
|
|
579
579
|
protected readonly alepha: Alepha;
|
|
580
|
-
protected readonly log:
|
|
581
|
-
protected readonly notificationRepository:
|
|
582
|
-
id:
|
|
583
|
-
version:
|
|
584
|
-
createdAt:
|
|
585
|
-
updatedAt:
|
|
586
|
-
type:
|
|
587
|
-
template:
|
|
588
|
-
category:
|
|
589
|
-
critical:
|
|
590
|
-
sensitive:
|
|
591
|
-
contact:
|
|
592
|
-
variables:
|
|
593
|
-
scheduledAt:
|
|
594
|
-
sentAt:
|
|
595
|
-
error:
|
|
596
|
-
at:
|
|
597
|
-
name:
|
|
598
|
-
message:
|
|
580
|
+
protected readonly log: alepha_logger3.Logger;
|
|
581
|
+
protected readonly notificationRepository: alepha_orm20.Repository<typebox282.TObject<{
|
|
582
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
583
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
584
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
585
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
586
|
+
type: typebox282.TUnsafe<"email" | "sms">;
|
|
587
|
+
template: typebox282.TString;
|
|
588
|
+
category: typebox282.TOptional<typebox282.TString>;
|
|
589
|
+
critical: typebox282.TOptional<typebox282.TBoolean>;
|
|
590
|
+
sensitive: typebox282.TOptional<typebox282.TBoolean>;
|
|
591
|
+
contact: typebox282.TString;
|
|
592
|
+
variables: typebox282.TOptional<typebox282.TRecord<"^.*$", typebox282.TAny>>;
|
|
593
|
+
scheduledAt: typebox282.TOptional<typebox282.TString>;
|
|
594
|
+
sentAt: typebox282.TOptional<typebox282.TString>;
|
|
595
|
+
error: typebox282.TOptional<typebox282.TObject<{
|
|
596
|
+
at: typebox282.TString;
|
|
597
|
+
name: typebox282.TString;
|
|
598
|
+
message: typebox282.TString;
|
|
599
599
|
}>>;
|
|
600
600
|
}>>;
|
|
601
601
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
@@ -612,7 +612,7 @@ declare class NotificationSenderService {
|
|
|
612
612
|
body: string;
|
|
613
613
|
};
|
|
614
614
|
protected load(notification: NotificationEntity): {
|
|
615
|
-
template: NotificationDescriptor<
|
|
615
|
+
template: NotificationDescriptor<typebox282.TObject<typebox282.TProperties>>;
|
|
616
616
|
variables: Record<string, any>;
|
|
617
617
|
contact: string;
|
|
618
618
|
};
|
|
@@ -621,17 +621,17 @@ declare class NotificationSenderService {
|
|
|
621
621
|
//#region src/api-notifications/queues/NotificationQueues.d.ts
|
|
622
622
|
declare class NotificationQueues {
|
|
623
623
|
protected readonly notificationSenderService: NotificationSenderService;
|
|
624
|
-
readonly processNotification: alepha_queue0.QueueDescriptor<
|
|
625
|
-
notificationId:
|
|
624
|
+
readonly processNotification: alepha_queue0.QueueDescriptor<typebox282.TObject<{
|
|
625
|
+
notificationId: typebox282.TString;
|
|
626
626
|
}>>;
|
|
627
627
|
}
|
|
628
628
|
//#endregion
|
|
629
629
|
//#region src/api-notifications/schemas/notificationCreateSchema.d.ts
|
|
630
|
-
declare const notificationCreateSchema:
|
|
631
|
-
type:
|
|
632
|
-
template:
|
|
633
|
-
contact:
|
|
634
|
-
variables:
|
|
630
|
+
declare const notificationCreateSchema: typebox282.TObject<{
|
|
631
|
+
type: typebox282.TUnsafe<"email" | "sms">;
|
|
632
|
+
template: typebox282.TString;
|
|
633
|
+
contact: typebox282.TString;
|
|
634
|
+
variables: typebox282.TOptional<typebox282.TRecord<"^.*$", typebox282.TAny>>;
|
|
635
635
|
}>;
|
|
636
636
|
type NotificationCreate = Static<typeof notificationCreateSchema>;
|
|
637
637
|
//#endregion
|
|
@@ -644,76 +644,76 @@ declare module "alepha" {
|
|
|
644
644
|
}
|
|
645
645
|
declare class NotificationService {
|
|
646
646
|
protected readonly alepha: Alepha;
|
|
647
|
-
protected readonly log:
|
|
647
|
+
protected readonly log: alepha_logger3.Logger;
|
|
648
648
|
protected readonly env: {
|
|
649
649
|
NOTIFICATION_IMMEDIATE?: boolean | undefined;
|
|
650
650
|
};
|
|
651
|
-
protected readonly notificationRepository:
|
|
652
|
-
id:
|
|
653
|
-
version:
|
|
654
|
-
createdAt:
|
|
655
|
-
updatedAt:
|
|
656
|
-
type:
|
|
657
|
-
template:
|
|
658
|
-
category: alepha1.TOptional<
|
|
651
|
+
protected readonly notificationRepository: alepha_orm20.Repository<alepha1.TObject<{
|
|
652
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
653
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
654
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
655
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
656
|
+
type: typebox282.TUnsafe<"email" | "sms">;
|
|
657
|
+
template: typebox282.TString;
|
|
658
|
+
category: alepha1.TOptional<typebox282.TString>;
|
|
659
659
|
critical: alepha1.TOptional<alepha1.TBoolean>;
|
|
660
660
|
sensitive: alepha1.TOptional<alepha1.TBoolean>;
|
|
661
|
-
contact:
|
|
662
|
-
variables: alepha1.TOptional<
|
|
663
|
-
scheduledAt: alepha1.TOptional<
|
|
664
|
-
sentAt: alepha1.TOptional<
|
|
661
|
+
contact: typebox282.TString;
|
|
662
|
+
variables: alepha1.TOptional<typebox282.TRecord<"^.*$", typebox282.TAny>>;
|
|
663
|
+
scheduledAt: alepha1.TOptional<typebox282.TString>;
|
|
664
|
+
sentAt: alepha1.TOptional<typebox282.TString>;
|
|
665
665
|
error: alepha1.TOptional<alepha1.TObject<{
|
|
666
|
-
at:
|
|
667
|
-
name:
|
|
668
|
-
message:
|
|
666
|
+
at: typebox282.TString;
|
|
667
|
+
name: typebox282.TString;
|
|
668
|
+
message: typebox282.TString;
|
|
669
669
|
}>>;
|
|
670
670
|
}>>;
|
|
671
671
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
672
672
|
protected readonly notificationQueues: NotificationQueues;
|
|
673
673
|
protected readonly notificationSenderService: NotificationSenderService;
|
|
674
674
|
readonly notificationBatch: alepha_batch0.BatchDescriptor<alepha1.TObject<{
|
|
675
|
-
type:
|
|
676
|
-
template:
|
|
677
|
-
contact:
|
|
678
|
-
variables: alepha1.TOptional<
|
|
675
|
+
type: typebox282.TUnsafe<"email" | "sms">;
|
|
676
|
+
template: typebox282.TString;
|
|
677
|
+
contact: typebox282.TString;
|
|
678
|
+
variables: alepha1.TOptional<typebox282.TRecord<"^.*$", typebox282.TAny>>;
|
|
679
679
|
}>, Promise<void>>;
|
|
680
|
-
findNotificationById(id: string): Promise<
|
|
681
|
-
id:
|
|
682
|
-
version:
|
|
683
|
-
createdAt:
|
|
684
|
-
updatedAt:
|
|
685
|
-
type:
|
|
686
|
-
template:
|
|
687
|
-
category: alepha1.TOptional<
|
|
680
|
+
findNotificationById(id: string): Promise<alepha_orm20.PgStatic<alepha1.TObject<{
|
|
681
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
682
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
683
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
684
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
685
|
+
type: typebox282.TUnsafe<"email" | "sms">;
|
|
686
|
+
template: typebox282.TString;
|
|
687
|
+
category: alepha1.TOptional<typebox282.TString>;
|
|
688
688
|
critical: alepha1.TOptional<alepha1.TBoolean>;
|
|
689
689
|
sensitive: alepha1.TOptional<alepha1.TBoolean>;
|
|
690
|
-
contact:
|
|
691
|
-
variables: alepha1.TOptional<
|
|
692
|
-
scheduledAt: alepha1.TOptional<
|
|
693
|
-
sentAt: alepha1.TOptional<
|
|
690
|
+
contact: typebox282.TString;
|
|
691
|
+
variables: alepha1.TOptional<typebox282.TRecord<"^.*$", typebox282.TAny>>;
|
|
692
|
+
scheduledAt: alepha1.TOptional<typebox282.TString>;
|
|
693
|
+
sentAt: alepha1.TOptional<typebox282.TString>;
|
|
694
694
|
error: alepha1.TOptional<alepha1.TObject<{
|
|
695
|
-
at:
|
|
696
|
-
name:
|
|
697
|
-
message:
|
|
695
|
+
at: typebox282.TString;
|
|
696
|
+
name: typebox282.TString;
|
|
697
|
+
message: typebox282.TString;
|
|
698
698
|
}>>;
|
|
699
|
-
}>,
|
|
700
|
-
id:
|
|
701
|
-
version:
|
|
702
|
-
createdAt:
|
|
703
|
-
updatedAt:
|
|
704
|
-
type:
|
|
705
|
-
template:
|
|
706
|
-
category: alepha1.TOptional<
|
|
699
|
+
}>, alepha_orm20.PgRelationMap<alepha1.TObject<{
|
|
700
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
701
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
702
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
703
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
704
|
+
type: typebox282.TUnsafe<"email" | "sms">;
|
|
705
|
+
template: typebox282.TString;
|
|
706
|
+
category: alepha1.TOptional<typebox282.TString>;
|
|
707
707
|
critical: alepha1.TOptional<alepha1.TBoolean>;
|
|
708
708
|
sensitive: alepha1.TOptional<alepha1.TBoolean>;
|
|
709
|
-
contact:
|
|
710
|
-
variables: alepha1.TOptional<
|
|
711
|
-
scheduledAt: alepha1.TOptional<
|
|
712
|
-
sentAt: alepha1.TOptional<
|
|
709
|
+
contact: typebox282.TString;
|
|
710
|
+
variables: alepha1.TOptional<typebox282.TRecord<"^.*$", typebox282.TAny>>;
|
|
711
|
+
scheduledAt: alepha1.TOptional<typebox282.TString>;
|
|
712
|
+
sentAt: alepha1.TOptional<typebox282.TString>;
|
|
713
713
|
error: alepha1.TOptional<alepha1.TObject<{
|
|
714
|
-
at:
|
|
715
|
-
name:
|
|
716
|
-
message:
|
|
714
|
+
at: typebox282.TString;
|
|
715
|
+
name: typebox282.TString;
|
|
716
|
+
message: typebox282.TString;
|
|
717
717
|
}>>;
|
|
718
718
|
}>>>>;
|
|
719
719
|
/**
|
|
@@ -756,15 +756,15 @@ interface NotificationMessage<T extends TObject> {
|
|
|
756
756
|
//#endregion
|
|
757
757
|
//#region src/api-users/notifications/UserNotifications.d.ts
|
|
758
758
|
declare class UserNotifications {
|
|
759
|
-
readonly passwordReset: NotificationDescriptor<
|
|
760
|
-
email:
|
|
761
|
-
resetUrl:
|
|
762
|
-
expiresInMinutes:
|
|
759
|
+
readonly passwordReset: NotificationDescriptor<typebox282.TObject<{
|
|
760
|
+
email: typebox282.TString;
|
|
761
|
+
resetUrl: typebox282.TString;
|
|
762
|
+
expiresInMinutes: typebox282.TNumber;
|
|
763
763
|
}>>;
|
|
764
|
-
readonly emailVerification: NotificationDescriptor<
|
|
765
|
-
email:
|
|
766
|
-
verifyUrl:
|
|
767
|
-
expiresInMinutes:
|
|
764
|
+
readonly emailVerification: NotificationDescriptor<typebox282.TObject<{
|
|
765
|
+
email: typebox282.TString;
|
|
766
|
+
verifyUrl: typebox282.TString;
|
|
767
|
+
expiresInMinutes: typebox282.TNumber;
|
|
768
768
|
}>>;
|
|
769
769
|
}
|
|
770
770
|
//#endregion
|
|
@@ -773,44 +773,44 @@ declare class CredentialService {
|
|
|
773
773
|
protected readonly cryptoProvider: CryptoProvider;
|
|
774
774
|
protected readonly verificationController: HttpVirtualClient<VerificationController>;
|
|
775
775
|
protected readonly userNotifications: UserNotifications;
|
|
776
|
-
readonly users:
|
|
777
|
-
id:
|
|
778
|
-
version:
|
|
779
|
-
createdAt:
|
|
780
|
-
updatedAt:
|
|
781
|
-
email:
|
|
782
|
-
roles:
|
|
783
|
-
name:
|
|
784
|
-
firstName:
|
|
785
|
-
lastName:
|
|
786
|
-
picture:
|
|
787
|
-
enabled:
|
|
788
|
-
emailVerified:
|
|
776
|
+
readonly users: alepha_orm20.Repository<typebox282.TObject<{
|
|
777
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
778
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
779
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
780
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
781
|
+
email: typebox282.TString;
|
|
782
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
783
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
784
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
785
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
786
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
787
|
+
enabled: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
788
|
+
emailVerified: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
789
789
|
}>>;
|
|
790
|
-
readonly sessions:
|
|
791
|
-
id:
|
|
792
|
-
version:
|
|
793
|
-
createdAt:
|
|
794
|
-
updatedAt:
|
|
795
|
-
refreshToken:
|
|
796
|
-
userId:
|
|
797
|
-
expiresAt:
|
|
798
|
-
ip:
|
|
799
|
-
userAgent:
|
|
800
|
-
os:
|
|
801
|
-
browser:
|
|
802
|
-
device:
|
|
790
|
+
readonly sessions: alepha_orm20.Repository<typebox282.TObject<{
|
|
791
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
792
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
793
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
794
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
795
|
+
refreshToken: typebox282.TString;
|
|
796
|
+
userId: alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_REF>;
|
|
797
|
+
expiresAt: typebox282.TString;
|
|
798
|
+
ip: typebox282.TOptional<typebox282.TString>;
|
|
799
|
+
userAgent: typebox282.TOptional<typebox282.TObject<{
|
|
800
|
+
os: typebox282.TString;
|
|
801
|
+
browser: typebox282.TString;
|
|
802
|
+
device: typebox282.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
803
803
|
}>>;
|
|
804
804
|
}>>;
|
|
805
|
-
readonly identities:
|
|
806
|
-
id:
|
|
807
|
-
version:
|
|
808
|
-
createdAt:
|
|
809
|
-
updatedAt:
|
|
810
|
-
userId:
|
|
811
|
-
provider:
|
|
812
|
-
providerUserId:
|
|
813
|
-
providerData:
|
|
805
|
+
readonly identities: alepha_orm20.Repository<typebox282.TObject<{
|
|
806
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
807
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
808
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
809
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
810
|
+
userId: alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_REF>;
|
|
811
|
+
provider: typebox282.TString;
|
|
812
|
+
providerUserId: typebox282.TString;
|
|
813
|
+
providerData: typebox282.TOptional<typebox282.TRecord<string, typebox282.TAny>>;
|
|
814
814
|
}>>;
|
|
815
815
|
/**
|
|
816
816
|
* Request a password reset for a user by email.
|
|
@@ -834,55 +834,55 @@ declare class CredentialService {
|
|
|
834
834
|
}
|
|
835
835
|
//#endregion
|
|
836
836
|
//#region src/api-users/entities/users.d.ts
|
|
837
|
-
declare const users:
|
|
838
|
-
id:
|
|
839
|
-
version:
|
|
840
|
-
createdAt:
|
|
841
|
-
updatedAt:
|
|
842
|
-
email:
|
|
843
|
-
roles:
|
|
844
|
-
name:
|
|
845
|
-
firstName:
|
|
846
|
-
lastName:
|
|
847
|
-
picture:
|
|
848
|
-
enabled:
|
|
849
|
-
emailVerified:
|
|
837
|
+
declare const users: alepha_orm20.EntityDescriptor<typebox282.TObject<{
|
|
838
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
839
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
840
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
841
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
842
|
+
email: typebox282.TString;
|
|
843
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
844
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
845
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
846
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
847
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
848
|
+
enabled: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
849
|
+
emailVerified: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
850
850
|
}>>;
|
|
851
851
|
type UserEntity = Static<typeof users.schema>;
|
|
852
852
|
//#endregion
|
|
853
853
|
//#region src/api-users/schemas/createUserSchema.d.ts
|
|
854
|
-
declare const createUserSchema:
|
|
855
|
-
email:
|
|
856
|
-
name:
|
|
857
|
-
firstName:
|
|
858
|
-
lastName:
|
|
859
|
-
picture:
|
|
860
|
-
roles:
|
|
861
|
-
enabled:
|
|
862
|
-
emailVerified:
|
|
854
|
+
declare const createUserSchema: typebox282.TObject<{
|
|
855
|
+
email: typebox282.TString;
|
|
856
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
857
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
858
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
859
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
860
|
+
roles: typebox282.TOptional<typebox282.TArray<typebox282.TString>>;
|
|
861
|
+
enabled: typebox282.TOptional<typebox282.TBoolean>;
|
|
862
|
+
emailVerified: typebox282.TOptional<typebox282.TBoolean>;
|
|
863
863
|
}>;
|
|
864
864
|
type CreateUser = Static<typeof createUserSchema>;
|
|
865
865
|
//#endregion
|
|
866
866
|
//#region src/api-users/schemas/updateUserSchema.d.ts
|
|
867
|
-
declare const updateUserSchema:
|
|
868
|
-
name:
|
|
869
|
-
firstName:
|
|
870
|
-
lastName:
|
|
871
|
-
picture:
|
|
872
|
-
roles:
|
|
873
|
-
enabled:
|
|
867
|
+
declare const updateUserSchema: typebox282.TObject<{
|
|
868
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
869
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
870
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
871
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
872
|
+
roles: typebox282.TOptional<typebox282.TArray<typebox282.TString>>;
|
|
873
|
+
enabled: typebox282.TOptional<typebox282.TBoolean>;
|
|
874
874
|
}>;
|
|
875
875
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
876
876
|
//#endregion
|
|
877
877
|
//#region src/api-users/schemas/userQuerySchema.d.ts
|
|
878
|
-
declare const userQuerySchema:
|
|
879
|
-
page:
|
|
880
|
-
size:
|
|
881
|
-
sort:
|
|
882
|
-
email:
|
|
883
|
-
enabled:
|
|
884
|
-
emailVerified:
|
|
885
|
-
roles:
|
|
878
|
+
declare const userQuerySchema: typebox282.TObject<{
|
|
879
|
+
page: typebox282.TOptional<typebox282.TInteger>;
|
|
880
|
+
size: typebox282.TOptional<typebox282.TInteger>;
|
|
881
|
+
sort: typebox282.TOptional<typebox282.TString>;
|
|
882
|
+
email: typebox282.TOptional<typebox282.TString>;
|
|
883
|
+
enabled: typebox282.TOptional<typebox282.TBoolean>;
|
|
884
|
+
emailVerified: typebox282.TOptional<typebox282.TBoolean>;
|
|
885
|
+
roles: typebox282.TOptional<typebox282.TArray<typebox282.TString>>;
|
|
886
886
|
}>;
|
|
887
887
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
888
888
|
//#endregion
|
|
@@ -890,19 +890,19 @@ type UserQuery = Static<typeof userQuerySchema>;
|
|
|
890
890
|
declare class UserService {
|
|
891
891
|
protected readonly verificationController: HttpVirtualClient<VerificationController>;
|
|
892
892
|
protected readonly userNotifications: UserNotifications;
|
|
893
|
-
readonly users:
|
|
894
|
-
id:
|
|
895
|
-
version:
|
|
896
|
-
createdAt:
|
|
897
|
-
updatedAt:
|
|
898
|
-
email:
|
|
899
|
-
roles:
|
|
900
|
-
name:
|
|
901
|
-
firstName:
|
|
902
|
-
lastName:
|
|
903
|
-
picture:
|
|
904
|
-
enabled:
|
|
905
|
-
emailVerified:
|
|
893
|
+
readonly users: alepha_orm20.Repository<typebox282.TObject<{
|
|
894
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
895
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
896
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
897
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
898
|
+
email: typebox282.TString;
|
|
899
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
900
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
901
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
902
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
903
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
904
|
+
enabled: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
905
|
+
emailVerified: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
906
906
|
}>>;
|
|
907
907
|
/**
|
|
908
908
|
* Request email verification for a user.
|
|
@@ -957,122 +957,122 @@ declare class UserController {
|
|
|
957
957
|
* Find users with pagination and filtering.
|
|
958
958
|
*/
|
|
959
959
|
readonly findUsers: alepha_server0.ActionDescriptorFn<{
|
|
960
|
-
query:
|
|
961
|
-
page:
|
|
962
|
-
size:
|
|
963
|
-
sort:
|
|
964
|
-
email:
|
|
965
|
-
enabled:
|
|
966
|
-
emailVerified:
|
|
967
|
-
roles:
|
|
960
|
+
query: typebox282.TObject<{
|
|
961
|
+
page: typebox282.TOptional<typebox282.TInteger>;
|
|
962
|
+
size: typebox282.TOptional<typebox282.TInteger>;
|
|
963
|
+
sort: typebox282.TOptional<typebox282.TString>;
|
|
964
|
+
email: typebox282.TOptional<typebox282.TString>;
|
|
965
|
+
enabled: typebox282.TOptional<typebox282.TBoolean>;
|
|
966
|
+
emailVerified: typebox282.TOptional<typebox282.TBoolean>;
|
|
967
|
+
roles: typebox282.TOptional<typebox282.TArray<typebox282.TString>>;
|
|
968
968
|
}>;
|
|
969
|
-
response: alepha1.TPage<
|
|
970
|
-
id:
|
|
971
|
-
version:
|
|
972
|
-
createdAt:
|
|
973
|
-
updatedAt:
|
|
974
|
-
email:
|
|
975
|
-
roles:
|
|
976
|
-
name:
|
|
977
|
-
firstName:
|
|
978
|
-
lastName:
|
|
979
|
-
picture:
|
|
980
|
-
enabled:
|
|
981
|
-
emailVerified:
|
|
969
|
+
response: alepha1.TPage<typebox282.TObject<{
|
|
970
|
+
id: typebox282.TString;
|
|
971
|
+
version: typebox282.TNumber;
|
|
972
|
+
createdAt: typebox282.TString;
|
|
973
|
+
updatedAt: typebox282.TString;
|
|
974
|
+
email: typebox282.TString;
|
|
975
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
976
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
977
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
978
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
979
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
980
|
+
enabled: typebox282.TBoolean;
|
|
981
|
+
emailVerified: typebox282.TBoolean;
|
|
982
982
|
}>>;
|
|
983
983
|
}>;
|
|
984
984
|
/**
|
|
985
985
|
* Get a user by ID.
|
|
986
986
|
*/
|
|
987
987
|
readonly getUser: alepha_server0.ActionDescriptorFn<{
|
|
988
|
-
params:
|
|
989
|
-
id:
|
|
988
|
+
params: typebox282.TObject<{
|
|
989
|
+
id: typebox282.TString;
|
|
990
990
|
}>;
|
|
991
|
-
response:
|
|
992
|
-
id:
|
|
993
|
-
version:
|
|
994
|
-
createdAt:
|
|
995
|
-
updatedAt:
|
|
996
|
-
email:
|
|
997
|
-
roles:
|
|
998
|
-
name:
|
|
999
|
-
firstName:
|
|
1000
|
-
lastName:
|
|
1001
|
-
picture:
|
|
1002
|
-
enabled:
|
|
1003
|
-
emailVerified:
|
|
991
|
+
response: typebox282.TObject<{
|
|
992
|
+
id: typebox282.TString;
|
|
993
|
+
version: typebox282.TNumber;
|
|
994
|
+
createdAt: typebox282.TString;
|
|
995
|
+
updatedAt: typebox282.TString;
|
|
996
|
+
email: typebox282.TString;
|
|
997
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
998
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
999
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
1000
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
1001
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
1002
|
+
enabled: typebox282.TBoolean;
|
|
1003
|
+
emailVerified: typebox282.TBoolean;
|
|
1004
1004
|
}>;
|
|
1005
1005
|
}>;
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Create a new user.
|
|
1008
1008
|
*/
|
|
1009
1009
|
readonly createUser: alepha_server0.ActionDescriptorFn<{
|
|
1010
|
-
body:
|
|
1011
|
-
email:
|
|
1012
|
-
name:
|
|
1013
|
-
firstName:
|
|
1014
|
-
lastName:
|
|
1015
|
-
picture:
|
|
1016
|
-
roles:
|
|
1017
|
-
enabled:
|
|
1018
|
-
emailVerified:
|
|
1010
|
+
body: typebox282.TObject<{
|
|
1011
|
+
email: typebox282.TString;
|
|
1012
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
1013
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
1014
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
1015
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
1016
|
+
roles: typebox282.TOptional<typebox282.TArray<typebox282.TString>>;
|
|
1017
|
+
enabled: typebox282.TOptional<typebox282.TBoolean>;
|
|
1018
|
+
emailVerified: typebox282.TOptional<typebox282.TBoolean>;
|
|
1019
1019
|
}>;
|
|
1020
|
-
response:
|
|
1021
|
-
id:
|
|
1022
|
-
version:
|
|
1023
|
-
createdAt:
|
|
1024
|
-
updatedAt:
|
|
1025
|
-
email:
|
|
1026
|
-
roles:
|
|
1027
|
-
name:
|
|
1028
|
-
firstName:
|
|
1029
|
-
lastName:
|
|
1030
|
-
picture:
|
|
1031
|
-
enabled:
|
|
1032
|
-
emailVerified:
|
|
1020
|
+
response: typebox282.TObject<{
|
|
1021
|
+
id: typebox282.TString;
|
|
1022
|
+
version: typebox282.TNumber;
|
|
1023
|
+
createdAt: typebox282.TString;
|
|
1024
|
+
updatedAt: typebox282.TString;
|
|
1025
|
+
email: typebox282.TString;
|
|
1026
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
1027
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
1028
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
1029
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
1030
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
1031
|
+
enabled: typebox282.TBoolean;
|
|
1032
|
+
emailVerified: typebox282.TBoolean;
|
|
1033
1033
|
}>;
|
|
1034
1034
|
}>;
|
|
1035
1035
|
/**
|
|
1036
1036
|
* Update a user.
|
|
1037
1037
|
*/
|
|
1038
1038
|
readonly updateUser: alepha_server0.ActionDescriptorFn<{
|
|
1039
|
-
params:
|
|
1040
|
-
id:
|
|
1039
|
+
params: typebox282.TObject<{
|
|
1040
|
+
id: typebox282.TString;
|
|
1041
1041
|
}>;
|
|
1042
|
-
body:
|
|
1043
|
-
name:
|
|
1044
|
-
firstName:
|
|
1045
|
-
lastName:
|
|
1046
|
-
picture:
|
|
1047
|
-
roles:
|
|
1048
|
-
enabled:
|
|
1042
|
+
body: typebox282.TObject<{
|
|
1043
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
1044
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
1045
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
1046
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
1047
|
+
roles: typebox282.TOptional<typebox282.TArray<typebox282.TString>>;
|
|
1048
|
+
enabled: typebox282.TOptional<typebox282.TBoolean>;
|
|
1049
1049
|
}>;
|
|
1050
|
-
response:
|
|
1051
|
-
id:
|
|
1052
|
-
version:
|
|
1053
|
-
createdAt:
|
|
1054
|
-
updatedAt:
|
|
1055
|
-
email:
|
|
1056
|
-
roles:
|
|
1057
|
-
name:
|
|
1058
|
-
firstName:
|
|
1059
|
-
lastName:
|
|
1060
|
-
picture:
|
|
1061
|
-
enabled:
|
|
1062
|
-
emailVerified:
|
|
1050
|
+
response: typebox282.TObject<{
|
|
1051
|
+
id: typebox282.TString;
|
|
1052
|
+
version: typebox282.TNumber;
|
|
1053
|
+
createdAt: typebox282.TString;
|
|
1054
|
+
updatedAt: typebox282.TString;
|
|
1055
|
+
email: typebox282.TString;
|
|
1056
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
1057
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
1058
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
1059
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
1060
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
1061
|
+
enabled: typebox282.TBoolean;
|
|
1062
|
+
emailVerified: typebox282.TBoolean;
|
|
1063
1063
|
}>;
|
|
1064
1064
|
}>;
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Delete a user.
|
|
1067
1067
|
*/
|
|
1068
1068
|
readonly deleteUser: alepha_server0.ActionDescriptorFn<{
|
|
1069
|
-
params:
|
|
1070
|
-
id:
|
|
1069
|
+
params: typebox282.TObject<{
|
|
1070
|
+
id: typebox282.TString;
|
|
1071
1071
|
}>;
|
|
1072
|
-
response:
|
|
1073
|
-
ok:
|
|
1074
|
-
id:
|
|
1075
|
-
count:
|
|
1072
|
+
response: typebox282.TObject<{
|
|
1073
|
+
ok: typebox282.TBoolean;
|
|
1074
|
+
id: typebox282.TOptional<typebox282.TUnion<[typebox282.TString, typebox282.TInteger]>>;
|
|
1075
|
+
count: typebox282.TOptional<typebox282.TNumber>;
|
|
1076
1076
|
}>;
|
|
1077
1077
|
}>;
|
|
1078
1078
|
/**
|
|
@@ -1080,13 +1080,13 @@ declare class UserController {
|
|
|
1080
1080
|
* Generates a reset token using verification service and sends an email to the user.
|
|
1081
1081
|
*/
|
|
1082
1082
|
requestPasswordReset: alepha_server0.ActionDescriptorFn<{
|
|
1083
|
-
body:
|
|
1084
|
-
email:
|
|
1085
|
-
resetUrl:
|
|
1083
|
+
body: typebox282.TObject<{
|
|
1084
|
+
email: typebox282.TString;
|
|
1085
|
+
resetUrl: typebox282.TString;
|
|
1086
1086
|
}>;
|
|
1087
|
-
response:
|
|
1088
|
-
success:
|
|
1089
|
-
message:
|
|
1087
|
+
response: typebox282.TObject<{
|
|
1088
|
+
success: typebox282.TBoolean;
|
|
1089
|
+
message: typebox282.TString;
|
|
1090
1090
|
}>;
|
|
1091
1091
|
}>;
|
|
1092
1092
|
/**
|
|
@@ -1094,13 +1094,13 @@ declare class UserController {
|
|
|
1094
1094
|
* Checks if the token is valid and not expired.
|
|
1095
1095
|
*/
|
|
1096
1096
|
validateResetToken: alepha_server0.ActionDescriptorFn<{
|
|
1097
|
-
query:
|
|
1098
|
-
email:
|
|
1099
|
-
token:
|
|
1097
|
+
query: typebox282.TObject<{
|
|
1098
|
+
email: typebox282.TString;
|
|
1099
|
+
token: typebox282.TString;
|
|
1100
1100
|
}>;
|
|
1101
|
-
response:
|
|
1102
|
-
valid:
|
|
1103
|
-
email:
|
|
1101
|
+
response: typebox282.TObject<{
|
|
1102
|
+
valid: typebox282.TBoolean;
|
|
1103
|
+
email: typebox282.TOptional<typebox282.TString>;
|
|
1104
1104
|
}>;
|
|
1105
1105
|
}>;
|
|
1106
1106
|
/**
|
|
@@ -1108,14 +1108,14 @@ declare class UserController {
|
|
|
1108
1108
|
* Updates the user's password and invalidates all sessions.
|
|
1109
1109
|
*/
|
|
1110
1110
|
resetPassword: alepha_server0.ActionDescriptorFn<{
|
|
1111
|
-
body:
|
|
1112
|
-
email:
|
|
1113
|
-
token:
|
|
1114
|
-
newPassword:
|
|
1111
|
+
body: typebox282.TObject<{
|
|
1112
|
+
email: typebox282.TString;
|
|
1113
|
+
token: typebox282.TString;
|
|
1114
|
+
newPassword: typebox282.TString;
|
|
1115
1115
|
}>;
|
|
1116
|
-
response:
|
|
1117
|
-
success:
|
|
1118
|
-
message:
|
|
1116
|
+
response: typebox282.TObject<{
|
|
1117
|
+
success: typebox282.TBoolean;
|
|
1118
|
+
message: typebox282.TString;
|
|
1119
1119
|
}>;
|
|
1120
1120
|
}>;
|
|
1121
1121
|
/**
|
|
@@ -1123,13 +1123,13 @@ declare class UserController {
|
|
|
1123
1123
|
* Generates a verification token using verification service and sends an email to the user.
|
|
1124
1124
|
*/
|
|
1125
1125
|
requestEmailVerification: alepha_server0.ActionDescriptorFn<{
|
|
1126
|
-
body:
|
|
1127
|
-
email:
|
|
1128
|
-
verifyUrl:
|
|
1126
|
+
body: typebox282.TObject<{
|
|
1127
|
+
email: typebox282.TString;
|
|
1128
|
+
verifyUrl: typebox282.TString;
|
|
1129
1129
|
}>;
|
|
1130
|
-
response:
|
|
1131
|
-
success:
|
|
1132
|
-
message:
|
|
1130
|
+
response: typebox282.TObject<{
|
|
1131
|
+
success: typebox282.TBoolean;
|
|
1132
|
+
message: typebox282.TString;
|
|
1133
1133
|
}>;
|
|
1134
1134
|
}>;
|
|
1135
1135
|
/**
|
|
@@ -1137,24 +1137,24 @@ declare class UserController {
|
|
|
1137
1137
|
* Updates the user's emailVerified status.
|
|
1138
1138
|
*/
|
|
1139
1139
|
verifyEmail: alepha_server0.ActionDescriptorFn<{
|
|
1140
|
-
body:
|
|
1141
|
-
email:
|
|
1142
|
-
token:
|
|
1140
|
+
body: typebox282.TObject<{
|
|
1141
|
+
email: typebox282.TString;
|
|
1142
|
+
token: typebox282.TString;
|
|
1143
1143
|
}>;
|
|
1144
|
-
response:
|
|
1145
|
-
success:
|
|
1146
|
-
message:
|
|
1144
|
+
response: typebox282.TObject<{
|
|
1145
|
+
success: typebox282.TBoolean;
|
|
1146
|
+
message: typebox282.TString;
|
|
1147
1147
|
}>;
|
|
1148
1148
|
}>;
|
|
1149
1149
|
/**
|
|
1150
1150
|
* Check if an email is verified.
|
|
1151
1151
|
*/
|
|
1152
1152
|
checkEmailVerification: alepha_server0.ActionDescriptorFn<{
|
|
1153
|
-
query:
|
|
1154
|
-
email:
|
|
1153
|
+
query: typebox282.TObject<{
|
|
1154
|
+
email: typebox282.TString;
|
|
1155
1155
|
}>;
|
|
1156
|
-
response:
|
|
1157
|
-
verified:
|
|
1156
|
+
response: typebox282.TObject<{
|
|
1157
|
+
verified: typebox282.TBoolean;
|
|
1158
1158
|
}>;
|
|
1159
1159
|
}>;
|
|
1160
1160
|
}
|
|
@@ -1179,50 +1179,50 @@ declare const $realmUsers: (options?: {
|
|
|
1179
1179
|
}) => alepha_security0.RealmDescriptor;
|
|
1180
1180
|
//#endregion
|
|
1181
1181
|
//#region src/api-users/schemas/identityResourceSchema.d.ts
|
|
1182
|
-
declare const identityResourceSchema:
|
|
1183
|
-
id:
|
|
1184
|
-
version:
|
|
1185
|
-
createdAt:
|
|
1186
|
-
updatedAt:
|
|
1187
|
-
userId:
|
|
1188
|
-
provider:
|
|
1189
|
-
providerUserId:
|
|
1190
|
-
providerData:
|
|
1182
|
+
declare const identityResourceSchema: typebox282.TObject<{
|
|
1183
|
+
id: typebox282.TString;
|
|
1184
|
+
version: typebox282.TNumber;
|
|
1185
|
+
createdAt: typebox282.TString;
|
|
1186
|
+
updatedAt: typebox282.TString;
|
|
1187
|
+
userId: typebox282.TString;
|
|
1188
|
+
provider: typebox282.TString;
|
|
1189
|
+
providerUserId: typebox282.TString;
|
|
1190
|
+
providerData: typebox282.TOptional<typebox282.TRecord<string, typebox282.TAny>>;
|
|
1191
1191
|
}>;
|
|
1192
1192
|
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
1193
1193
|
//#endregion
|
|
1194
1194
|
//#region src/api-users/schemas/sessionResourceSchema.d.ts
|
|
1195
|
-
declare const sessionResourceSchema:
|
|
1196
|
-
id:
|
|
1197
|
-
version:
|
|
1198
|
-
createdAt:
|
|
1199
|
-
updatedAt:
|
|
1200
|
-
refreshToken:
|
|
1201
|
-
userId:
|
|
1202
|
-
expiresAt:
|
|
1203
|
-
ip:
|
|
1204
|
-
userAgent:
|
|
1205
|
-
os:
|
|
1206
|
-
browser:
|
|
1207
|
-
device:
|
|
1195
|
+
declare const sessionResourceSchema: typebox282.TObject<{
|
|
1196
|
+
id: typebox282.TString;
|
|
1197
|
+
version: typebox282.TNumber;
|
|
1198
|
+
createdAt: typebox282.TString;
|
|
1199
|
+
updatedAt: typebox282.TString;
|
|
1200
|
+
refreshToken: typebox282.TString;
|
|
1201
|
+
userId: typebox282.TString;
|
|
1202
|
+
expiresAt: typebox282.TString;
|
|
1203
|
+
ip: typebox282.TOptional<typebox282.TString>;
|
|
1204
|
+
userAgent: typebox282.TOptional<typebox282.TObject<{
|
|
1205
|
+
os: typebox282.TString;
|
|
1206
|
+
browser: typebox282.TString;
|
|
1207
|
+
device: typebox282.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1208
1208
|
}>>;
|
|
1209
1209
|
}>;
|
|
1210
1210
|
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
1211
1211
|
//#endregion
|
|
1212
1212
|
//#region src/api-users/schemas/userResourceSchema.d.ts
|
|
1213
|
-
declare const userResourceSchema:
|
|
1214
|
-
id:
|
|
1215
|
-
version:
|
|
1216
|
-
createdAt:
|
|
1217
|
-
updatedAt:
|
|
1218
|
-
email:
|
|
1219
|
-
roles:
|
|
1220
|
-
name:
|
|
1221
|
-
firstName:
|
|
1222
|
-
lastName:
|
|
1223
|
-
picture:
|
|
1224
|
-
enabled:
|
|
1225
|
-
emailVerified:
|
|
1213
|
+
declare const userResourceSchema: typebox282.TObject<{
|
|
1214
|
+
id: typebox282.TString;
|
|
1215
|
+
version: typebox282.TNumber;
|
|
1216
|
+
createdAt: typebox282.TString;
|
|
1217
|
+
updatedAt: typebox282.TString;
|
|
1218
|
+
email: typebox282.TString;
|
|
1219
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
1220
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
1221
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
1222
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
1223
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
1224
|
+
enabled: typebox282.TBoolean;
|
|
1225
|
+
emailVerified: typebox282.TBoolean;
|
|
1226
1226
|
}>;
|
|
1227
1227
|
type UserResource = Static<typeof userResourceSchema>;
|
|
1228
1228
|
//#endregion
|
|
@@ -1231,103 +1231,103 @@ declare class SessionService {
|
|
|
1231
1231
|
protected readonly alepha: Alepha;
|
|
1232
1232
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
1233
1233
|
protected readonly cryptoProvider: CryptoProvider;
|
|
1234
|
-
readonly users:
|
|
1235
|
-
id:
|
|
1236
|
-
version:
|
|
1237
|
-
createdAt:
|
|
1238
|
-
updatedAt:
|
|
1239
|
-
email:
|
|
1240
|
-
roles:
|
|
1241
|
-
name:
|
|
1242
|
-
firstName:
|
|
1243
|
-
lastName:
|
|
1244
|
-
picture:
|
|
1245
|
-
enabled:
|
|
1246
|
-
emailVerified:
|
|
1234
|
+
readonly users: alepha_orm20.Repository<typebox282.TObject<{
|
|
1235
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1236
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1237
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1238
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1239
|
+
email: typebox282.TString;
|
|
1240
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
1241
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
1242
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
1243
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
1244
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
1245
|
+
enabled: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
1246
|
+
emailVerified: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
1247
1247
|
}>>;
|
|
1248
|
-
readonly sessions:
|
|
1249
|
-
id:
|
|
1250
|
-
version:
|
|
1251
|
-
createdAt:
|
|
1252
|
-
updatedAt:
|
|
1253
|
-
refreshToken:
|
|
1254
|
-
userId:
|
|
1255
|
-
expiresAt:
|
|
1256
|
-
ip:
|
|
1257
|
-
userAgent:
|
|
1258
|
-
os:
|
|
1259
|
-
browser:
|
|
1260
|
-
device:
|
|
1248
|
+
readonly sessions: alepha_orm20.Repository<typebox282.TObject<{
|
|
1249
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1250
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1251
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1252
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1253
|
+
refreshToken: typebox282.TString;
|
|
1254
|
+
userId: alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_REF>;
|
|
1255
|
+
expiresAt: typebox282.TString;
|
|
1256
|
+
ip: typebox282.TOptional<typebox282.TString>;
|
|
1257
|
+
userAgent: typebox282.TOptional<typebox282.TObject<{
|
|
1258
|
+
os: typebox282.TString;
|
|
1259
|
+
browser: typebox282.TString;
|
|
1260
|
+
device: typebox282.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1261
1261
|
}>>;
|
|
1262
1262
|
}>>;
|
|
1263
|
-
readonly identities:
|
|
1264
|
-
id:
|
|
1265
|
-
version:
|
|
1266
|
-
createdAt:
|
|
1267
|
-
updatedAt:
|
|
1268
|
-
userId:
|
|
1269
|
-
provider:
|
|
1270
|
-
providerUserId:
|
|
1271
|
-
providerData:
|
|
1263
|
+
readonly identities: alepha_orm20.Repository<typebox282.TObject<{
|
|
1264
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1265
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1266
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1267
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1268
|
+
userId: alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_REF>;
|
|
1269
|
+
provider: typebox282.TString;
|
|
1270
|
+
providerUserId: typebox282.TString;
|
|
1271
|
+
providerData: typebox282.TOptional<typebox282.TRecord<string, typebox282.TAny>>;
|
|
1272
1272
|
}>>;
|
|
1273
|
-
login(provider: string, username: string, password: string): Promise<
|
|
1274
|
-
id:
|
|
1275
|
-
version:
|
|
1276
|
-
createdAt:
|
|
1277
|
-
updatedAt:
|
|
1278
|
-
email:
|
|
1279
|
-
roles:
|
|
1280
|
-
name:
|
|
1281
|
-
firstName:
|
|
1282
|
-
lastName:
|
|
1283
|
-
picture:
|
|
1284
|
-
enabled:
|
|
1285
|
-
emailVerified:
|
|
1286
|
-
}>,
|
|
1287
|
-
id:
|
|
1288
|
-
version:
|
|
1289
|
-
createdAt:
|
|
1290
|
-
updatedAt:
|
|
1291
|
-
email:
|
|
1292
|
-
roles:
|
|
1293
|
-
name:
|
|
1294
|
-
firstName:
|
|
1295
|
-
lastName:
|
|
1296
|
-
picture:
|
|
1297
|
-
enabled:
|
|
1298
|
-
emailVerified:
|
|
1273
|
+
login(provider: string, username: string, password: string): Promise<alepha_orm20.PgStatic<typebox282.TObject<{
|
|
1274
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1275
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1276
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1277
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1278
|
+
email: typebox282.TString;
|
|
1279
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
1280
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
1281
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
1282
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
1283
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
1284
|
+
enabled: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
1285
|
+
emailVerified: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
1286
|
+
}>, alepha_orm20.PgRelationMap<typebox282.TObject<{
|
|
1287
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1288
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1289
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1290
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1291
|
+
email: typebox282.TString;
|
|
1292
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
1293
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
1294
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
1295
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
1296
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
1297
|
+
enabled: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
1298
|
+
emailVerified: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
1299
1299
|
}>>>>;
|
|
1300
1300
|
createSession(user: UserAccount, expiresIn: number): Promise<{
|
|
1301
1301
|
refreshToken: string;
|
|
1302
1302
|
sessionId: string;
|
|
1303
1303
|
}>;
|
|
1304
1304
|
refreshSession(refreshToken: string): Promise<{
|
|
1305
|
-
user:
|
|
1306
|
-
id:
|
|
1307
|
-
version:
|
|
1308
|
-
createdAt:
|
|
1309
|
-
updatedAt:
|
|
1310
|
-
email:
|
|
1311
|
-
roles:
|
|
1312
|
-
name:
|
|
1313
|
-
firstName:
|
|
1314
|
-
lastName:
|
|
1315
|
-
picture:
|
|
1316
|
-
enabled:
|
|
1317
|
-
emailVerified:
|
|
1318
|
-
}>,
|
|
1319
|
-
id:
|
|
1320
|
-
version:
|
|
1321
|
-
createdAt:
|
|
1322
|
-
updatedAt:
|
|
1323
|
-
email:
|
|
1324
|
-
roles:
|
|
1325
|
-
name:
|
|
1326
|
-
firstName:
|
|
1327
|
-
lastName:
|
|
1328
|
-
picture:
|
|
1329
|
-
enabled:
|
|
1330
|
-
emailVerified:
|
|
1305
|
+
user: alepha_orm20.PgStatic<typebox282.TObject<{
|
|
1306
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1307
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1308
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1309
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1310
|
+
email: typebox282.TString;
|
|
1311
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
1312
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
1313
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
1314
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
1315
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
1316
|
+
enabled: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
1317
|
+
emailVerified: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
1318
|
+
}>, alepha_orm20.PgRelationMap<typebox282.TObject<{
|
|
1319
|
+
id: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_PRIMARY_KEY>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1320
|
+
version: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TInteger, typeof alepha_orm20.PG_VERSION>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1321
|
+
createdAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_CREATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1322
|
+
updatedAt: alepha_orm20.PgAttr<alepha_orm20.PgAttr<typebox282.TString, typeof alepha_orm20.PG_UPDATED_AT>, typeof alepha_orm20.PG_DEFAULT>;
|
|
1323
|
+
email: typebox282.TString;
|
|
1324
|
+
roles: typebox282.TArray<typebox282.TString>;
|
|
1325
|
+
name: typebox282.TOptional<typebox282.TString>;
|
|
1326
|
+
firstName: typebox282.TOptional<typebox282.TString>;
|
|
1327
|
+
lastName: typebox282.TOptional<typebox282.TString>;
|
|
1328
|
+
picture: typebox282.TOptional<typebox282.TString>;
|
|
1329
|
+
enabled: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
1330
|
+
emailVerified: alepha_orm20.PgAttr<typebox282.TBoolean, typeof alepha_orm20.PG_DEFAULT>;
|
|
1331
1331
|
}>>>;
|
|
1332
1332
|
expiresIn: number;
|
|
1333
1333
|
sessionId: string;
|