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