alepha 0.12.1 → 0.13.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/dist/api-jobs/index.d.ts +26 -26
- package/dist/api-notifications/index.d.ts +111 -111
- package/dist/api-users/index.d.cts +1221 -1221
- package/dist/api-users/index.d.ts +1239 -1239
- package/dist/api-verifications/index.d.ts +94 -94
- package/dist/redis/index.d.ts +10 -10
- package/dist/security/index.d.cts +32 -32
- package/dist/security/index.d.ts +28 -28
- package/dist/server-auth/index.d.cts +193 -193
- package/dist/server-auth/index.d.ts +193 -193
- package/dist/server-links/index.d.cts +34 -34
- package/dist/server-links/index.d.ts +34 -34
- package/dist/websocket/index.d.cts +7 -7
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha1 from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Async, Descriptor, FileLike, Page, PageQuery, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
|
-
import * as
|
|
3
|
+
import * as alepha_orm198 from "alepha/orm";
|
|
4
4
|
import { Page as Page$1, Repository } from "alepha/orm";
|
|
5
5
|
import * as alepha_server0 from "alepha/server";
|
|
6
6
|
import { ActionDescriptor, ClientRequestEntry, ClientRequestOptions, ClientRequestResponse, FetchOptions, FetchResponse, HttpClient, Ok, RequestConfigSchema, ServerHandler, ServerRequest, ServerRequestConfigEntry, ServerResponseBody, ServerRouterProvider, ServerTimingProvider } from "alepha/server";
|
|
@@ -25,78 +25,78 @@ import { Configuration } from "openid-client";
|
|
|
25
25
|
import { FileSystemProvider } from "alepha/file";
|
|
26
26
|
|
|
27
27
|
//#region src/api-users/atoms/realmAuthSettingsAtom.d.ts
|
|
28
|
-
declare const realmAuthSettingsAtom:
|
|
29
|
-
registrationAllowed:
|
|
30
|
-
emailEnabled:
|
|
31
|
-
emailRequired:
|
|
32
|
-
usernameEnabled:
|
|
33
|
-
usernameRequired:
|
|
34
|
-
phoneEnabled:
|
|
35
|
-
phoneRequired:
|
|
36
|
-
verifyEmailRequired:
|
|
37
|
-
verifyPhoneRequired:
|
|
38
|
-
firstNameLastNameEnabled:
|
|
39
|
-
firstNameLastNameRequired:
|
|
40
|
-
resetPasswordAllowed:
|
|
41
|
-
passwordPolicy:
|
|
42
|
-
minLength:
|
|
43
|
-
requireUppercase:
|
|
44
|
-
requireLowercase:
|
|
45
|
-
requireNumbers:
|
|
46
|
-
requireSpecialCharacters:
|
|
28
|
+
declare const realmAuthSettingsAtom: alepha1.Atom<alepha1.TObject<{
|
|
29
|
+
registrationAllowed: alepha1.TBoolean;
|
|
30
|
+
emailEnabled: alepha1.TBoolean;
|
|
31
|
+
emailRequired: alepha1.TBoolean;
|
|
32
|
+
usernameEnabled: alepha1.TBoolean;
|
|
33
|
+
usernameRequired: alepha1.TBoolean;
|
|
34
|
+
phoneEnabled: alepha1.TBoolean;
|
|
35
|
+
phoneRequired: alepha1.TBoolean;
|
|
36
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
37
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
38
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
39
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
40
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
41
|
+
passwordPolicy: alepha1.TObject<{
|
|
42
|
+
minLength: alepha1.TInteger;
|
|
43
|
+
requireUppercase: alepha1.TBoolean;
|
|
44
|
+
requireLowercase: alepha1.TBoolean;
|
|
45
|
+
requireNumbers: alepha1.TBoolean;
|
|
46
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
47
47
|
}>;
|
|
48
48
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
49
49
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region src/api-users/entities/identities.d.ts
|
|
52
|
-
declare const identities:
|
|
53
|
-
id:
|
|
54
|
-
version:
|
|
55
|
-
createdAt:
|
|
56
|
-
updatedAt:
|
|
57
|
-
userId:
|
|
58
|
-
password:
|
|
59
|
-
provider:
|
|
60
|
-
providerUserId:
|
|
61
|
-
providerData:
|
|
52
|
+
declare const identities: alepha_orm198.EntityDescriptor<alepha1.TObject<{
|
|
53
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
54
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
55
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
56
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
57
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
58
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
59
|
+
provider: alepha1.TString;
|
|
60
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
61
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
62
62
|
}>>;
|
|
63
63
|
type IdentityEntity = Static<typeof identities.schema>;
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region src/api-users/entities/sessions.d.ts
|
|
66
|
-
declare const sessions:
|
|
67
|
-
id:
|
|
68
|
-
version:
|
|
69
|
-
createdAt:
|
|
70
|
-
updatedAt:
|
|
71
|
-
refreshToken:
|
|
72
|
-
userId:
|
|
73
|
-
expiresAt:
|
|
74
|
-
ip:
|
|
75
|
-
userAgent:
|
|
76
|
-
os:
|
|
77
|
-
browser:
|
|
78
|
-
device:
|
|
66
|
+
declare const sessions: alepha_orm198.EntityDescriptor<alepha1.TObject<{
|
|
67
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
68
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
69
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
70
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
71
|
+
refreshToken: alepha1.TString;
|
|
72
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
73
|
+
expiresAt: alepha1.TString;
|
|
74
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
75
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
76
|
+
os: alepha1.TString;
|
|
77
|
+
browser: alepha1.TString;
|
|
78
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
79
79
|
}>>;
|
|
80
80
|
}>>;
|
|
81
81
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/api-users/entities/users.d.ts
|
|
84
84
|
declare const DEFAULT_USER_REALM_NAME = "default";
|
|
85
|
-
declare const users:
|
|
86
|
-
id:
|
|
87
|
-
version:
|
|
88
|
-
createdAt:
|
|
89
|
-
updatedAt:
|
|
90
|
-
realm:
|
|
91
|
-
username:
|
|
92
|
-
email:
|
|
93
|
-
phoneNumber:
|
|
94
|
-
roles:
|
|
95
|
-
firstName:
|
|
96
|
-
lastName:
|
|
97
|
-
picture:
|
|
98
|
-
enabled:
|
|
99
|
-
emailVerified:
|
|
85
|
+
declare const users: alepha_orm198.EntityDescriptor<alepha1.TObject<{
|
|
86
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
87
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
88
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
89
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
90
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
91
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
92
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
93
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
94
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
95
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
96
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
97
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
98
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
99
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
100
100
|
}>>;
|
|
101
101
|
type UserEntity = Static<typeof users.schema>;
|
|
102
102
|
//#endregion
|
|
@@ -113,51 +113,51 @@ interface UserRealm {
|
|
|
113
113
|
}
|
|
114
114
|
declare class UserRealmProvider {
|
|
115
115
|
protected readonly alepha: Alepha;
|
|
116
|
-
protected readonly defaultIdentities: Repository<
|
|
117
|
-
id:
|
|
118
|
-
version:
|
|
119
|
-
createdAt:
|
|
120
|
-
updatedAt:
|
|
121
|
-
userId:
|
|
122
|
-
password:
|
|
123
|
-
provider:
|
|
124
|
-
providerUserId:
|
|
125
|
-
providerData:
|
|
116
|
+
protected readonly defaultIdentities: Repository<alepha1.TObject<{
|
|
117
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
118
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
119
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
120
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
121
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
122
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
123
|
+
provider: alepha1.TString;
|
|
124
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
125
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
126
126
|
}>>;
|
|
127
|
-
protected readonly defaultSessions: Repository<
|
|
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
|
+
protected readonly defaultSessions: Repository<alepha1.TObject<{
|
|
128
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
129
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
130
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
131
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
132
|
+
refreshToken: alepha1.TString;
|
|
133
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
134
|
+
expiresAt: alepha1.TString;
|
|
135
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
136
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
137
|
+
os: alepha1.TString;
|
|
138
|
+
browser: alepha1.TString;
|
|
139
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
140
140
|
}>>;
|
|
141
141
|
}>>;
|
|
142
|
-
protected readonly defaultUsers: Repository<
|
|
143
|
-
id:
|
|
144
|
-
version:
|
|
145
|
-
createdAt:
|
|
146
|
-
updatedAt:
|
|
147
|
-
realm:
|
|
148
|
-
username:
|
|
149
|
-
email:
|
|
150
|
-
phoneNumber:
|
|
151
|
-
roles:
|
|
152
|
-
firstName:
|
|
153
|
-
lastName:
|
|
154
|
-
picture:
|
|
155
|
-
enabled:
|
|
156
|
-
emailVerified:
|
|
142
|
+
protected readonly defaultUsers: Repository<alepha1.TObject<{
|
|
143
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
144
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
145
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
146
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
147
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
148
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
149
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
150
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
151
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
152
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
153
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
154
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
155
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
156
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
157
157
|
}>>;
|
|
158
158
|
protected realms: Map<string, UserRealm>;
|
|
159
159
|
avatars: alepha_bucket0.BucketDescriptor;
|
|
160
|
-
protected readonly onConfigure:
|
|
160
|
+
protected readonly onConfigure: alepha1.HookDescriptor<"configure">;
|
|
161
161
|
register(userRealmName: string, userRealmOptions?: UserRealmOptions): void;
|
|
162
162
|
/**
|
|
163
163
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
@@ -169,12 +169,12 @@ declare class UserRealmProvider {
|
|
|
169
169
|
}
|
|
170
170
|
//#endregion
|
|
171
171
|
//#region src/api-users/schemas/identityQuerySchema.d.ts
|
|
172
|
-
declare const identityQuerySchema:
|
|
173
|
-
page:
|
|
174
|
-
size:
|
|
175
|
-
sort:
|
|
176
|
-
userId:
|
|
177
|
-
provider:
|
|
172
|
+
declare const identityQuerySchema: alepha1.TObject<{
|
|
173
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
174
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
175
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
176
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
177
|
+
provider: alepha1.TOptional<alepha1.TString>;
|
|
178
178
|
}>;
|
|
179
179
|
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
180
180
|
//#endregion
|
|
@@ -182,16 +182,16 @@ type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
|
182
182
|
declare class IdentityService {
|
|
183
183
|
protected readonly log: alepha_logger1.Logger;
|
|
184
184
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
185
|
-
identities(userRealmName?: string):
|
|
186
|
-
id:
|
|
187
|
-
version:
|
|
188
|
-
createdAt:
|
|
189
|
-
updatedAt:
|
|
190
|
-
userId:
|
|
191
|
-
password:
|
|
192
|
-
provider:
|
|
193
|
-
providerUserId:
|
|
194
|
-
providerData:
|
|
185
|
+
identities(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
|
|
186
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
187
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
188
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
189
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
190
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
191
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
192
|
+
provider: alepha1.TString;
|
|
193
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
194
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
195
195
|
}>>;
|
|
196
196
|
/**
|
|
197
197
|
* Find identities with pagination and filtering.
|
|
@@ -216,70 +216,70 @@ declare class IdentityController {
|
|
|
216
216
|
* Find identities with pagination and filtering.
|
|
217
217
|
*/
|
|
218
218
|
readonly findIdentities: alepha_server0.ActionDescriptorFn<{
|
|
219
|
-
query:
|
|
220
|
-
page:
|
|
221
|
-
size:
|
|
222
|
-
sort:
|
|
223
|
-
userId:
|
|
224
|
-
provider:
|
|
225
|
-
userRealmName:
|
|
219
|
+
query: alepha1.TObject<{
|
|
220
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
221
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
222
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
223
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
224
|
+
provider: alepha1.TOptional<alepha1.TString>;
|
|
225
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
226
226
|
}>;
|
|
227
|
-
response:
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
providerUserId:
|
|
235
|
-
providerData:
|
|
227
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
228
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
229
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
230
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
231
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
232
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
233
|
+
provider: alepha1.TString;
|
|
234
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
235
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
236
236
|
}>>;
|
|
237
237
|
}>;
|
|
238
238
|
/**
|
|
239
239
|
* Get an identity by ID.
|
|
240
240
|
*/
|
|
241
241
|
readonly getIdentity: alepha_server0.ActionDescriptorFn<{
|
|
242
|
-
params:
|
|
243
|
-
id:
|
|
242
|
+
params: alepha1.TObject<{
|
|
243
|
+
id: alepha1.TString;
|
|
244
244
|
}>;
|
|
245
|
-
query:
|
|
246
|
-
userRealmName:
|
|
245
|
+
query: alepha1.TObject<{
|
|
246
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
247
247
|
}>;
|
|
248
|
-
response:
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
providerUserId:
|
|
256
|
-
providerData:
|
|
248
|
+
response: alepha1.TObject<{
|
|
249
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
250
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
251
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
252
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
253
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
254
|
+
provider: alepha1.TString;
|
|
255
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
256
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
257
257
|
}>;
|
|
258
258
|
}>;
|
|
259
259
|
/**
|
|
260
260
|
* Delete an identity.
|
|
261
261
|
*/
|
|
262
262
|
readonly deleteIdentity: alepha_server0.ActionDescriptorFn<{
|
|
263
|
-
params:
|
|
264
|
-
id:
|
|
263
|
+
params: alepha1.TObject<{
|
|
264
|
+
id: alepha1.TString;
|
|
265
265
|
}>;
|
|
266
|
-
query:
|
|
267
|
-
userRealmName:
|
|
266
|
+
query: alepha1.TObject<{
|
|
267
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
268
268
|
}>;
|
|
269
|
-
response:
|
|
270
|
-
ok:
|
|
271
|
-
id:
|
|
272
|
-
count:
|
|
269
|
+
response: alepha1.TObject<{
|
|
270
|
+
ok: alepha1.TBoolean;
|
|
271
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
272
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
273
273
|
}>;
|
|
274
274
|
}>;
|
|
275
275
|
}
|
|
276
276
|
//#endregion
|
|
277
277
|
//#region src/api-users/schemas/sessionQuerySchema.d.ts
|
|
278
|
-
declare const sessionQuerySchema:
|
|
279
|
-
page:
|
|
280
|
-
size:
|
|
281
|
-
sort:
|
|
282
|
-
userId:
|
|
278
|
+
declare const sessionQuerySchema: alepha1.TObject<{
|
|
279
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
280
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
281
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
282
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
283
283
|
}>;
|
|
284
284
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
285
285
|
//#endregion
|
|
@@ -287,19 +287,19 @@ type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
|
287
287
|
declare class SessionCrudService {
|
|
288
288
|
protected readonly log: alepha_logger1.Logger;
|
|
289
289
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
290
|
-
sessions(userRealmName?: string):
|
|
291
|
-
id:
|
|
292
|
-
version:
|
|
293
|
-
createdAt:
|
|
294
|
-
updatedAt:
|
|
295
|
-
refreshToken:
|
|
296
|
-
userId:
|
|
297
|
-
expiresAt:
|
|
298
|
-
ip:
|
|
299
|
-
userAgent:
|
|
300
|
-
os:
|
|
301
|
-
browser:
|
|
302
|
-
device:
|
|
290
|
+
sessions(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
|
|
291
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
292
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
293
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
294
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
295
|
+
refreshToken: alepha1.TString;
|
|
296
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
297
|
+
expiresAt: alepha1.TString;
|
|
298
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
299
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
300
|
+
os: alepha1.TString;
|
|
301
|
+
browser: alepha1.TString;
|
|
302
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
303
303
|
}>>;
|
|
304
304
|
}>>;
|
|
305
305
|
/**
|
|
@@ -325,26 +325,26 @@ declare class SessionController {
|
|
|
325
325
|
* Find sessions with pagination and filtering.
|
|
326
326
|
*/
|
|
327
327
|
readonly findSessions: alepha_server0.ActionDescriptorFn<{
|
|
328
|
-
query:
|
|
329
|
-
page:
|
|
330
|
-
size:
|
|
331
|
-
sort:
|
|
332
|
-
userId:
|
|
333
|
-
userRealmName:
|
|
328
|
+
query: alepha1.TObject<{
|
|
329
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
330
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
331
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
332
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
333
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
334
334
|
}>;
|
|
335
|
-
response:
|
|
336
|
-
id:
|
|
337
|
-
version:
|
|
338
|
-
createdAt:
|
|
339
|
-
updatedAt:
|
|
340
|
-
refreshToken:
|
|
341
|
-
userId:
|
|
342
|
-
expiresAt:
|
|
343
|
-
ip:
|
|
344
|
-
userAgent:
|
|
345
|
-
os:
|
|
346
|
-
browser:
|
|
347
|
-
device:
|
|
335
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
336
|
+
id: alepha1.TString;
|
|
337
|
+
version: alepha1.TNumber;
|
|
338
|
+
createdAt: alepha1.TString;
|
|
339
|
+
updatedAt: alepha1.TString;
|
|
340
|
+
refreshToken: alepha1.TString;
|
|
341
|
+
userId: alepha1.TString;
|
|
342
|
+
expiresAt: alepha1.TString;
|
|
343
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
344
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
345
|
+
os: alepha1.TString;
|
|
346
|
+
browser: alepha1.TString;
|
|
347
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
348
348
|
}>>;
|
|
349
349
|
}>>;
|
|
350
350
|
}>;
|
|
@@ -352,25 +352,25 @@ declare class SessionController {
|
|
|
352
352
|
* Get a session by ID.
|
|
353
353
|
*/
|
|
354
354
|
readonly getSession: alepha_server0.ActionDescriptorFn<{
|
|
355
|
-
params:
|
|
356
|
-
id:
|
|
355
|
+
params: alepha1.TObject<{
|
|
356
|
+
id: alepha1.TString;
|
|
357
357
|
}>;
|
|
358
|
-
query:
|
|
359
|
-
userRealmName:
|
|
358
|
+
query: alepha1.TObject<{
|
|
359
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
360
360
|
}>;
|
|
361
|
-
response:
|
|
362
|
-
id:
|
|
363
|
-
version:
|
|
364
|
-
createdAt:
|
|
365
|
-
updatedAt:
|
|
366
|
-
refreshToken:
|
|
367
|
-
userId:
|
|
368
|
-
expiresAt:
|
|
369
|
-
ip:
|
|
370
|
-
userAgent:
|
|
371
|
-
os:
|
|
372
|
-
browser:
|
|
373
|
-
device:
|
|
361
|
+
response: alepha1.TObject<{
|
|
362
|
+
id: alepha1.TString;
|
|
363
|
+
version: alepha1.TNumber;
|
|
364
|
+
createdAt: alepha1.TString;
|
|
365
|
+
updatedAt: alepha1.TString;
|
|
366
|
+
refreshToken: alepha1.TString;
|
|
367
|
+
userId: alepha1.TString;
|
|
368
|
+
expiresAt: alepha1.TString;
|
|
369
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
370
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
371
|
+
os: alepha1.TString;
|
|
372
|
+
browser: alepha1.TString;
|
|
373
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
374
374
|
}>>;
|
|
375
375
|
}>;
|
|
376
376
|
}>;
|
|
@@ -378,16 +378,16 @@ declare class SessionController {
|
|
|
378
378
|
* Delete a session.
|
|
379
379
|
*/
|
|
380
380
|
readonly deleteSession: alepha_server0.ActionDescriptorFn<{
|
|
381
|
-
params:
|
|
382
|
-
id:
|
|
381
|
+
params: alepha1.TObject<{
|
|
382
|
+
id: alepha1.TString;
|
|
383
383
|
}>;
|
|
384
|
-
query:
|
|
385
|
-
userRealmName:
|
|
384
|
+
query: alepha1.TObject<{
|
|
385
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
386
386
|
}>;
|
|
387
|
-
response:
|
|
388
|
-
ok:
|
|
389
|
-
id:
|
|
390
|
-
count:
|
|
387
|
+
response: alepha1.TObject<{
|
|
388
|
+
ok: alepha1.TBoolean;
|
|
389
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
390
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
391
391
|
}>;
|
|
392
392
|
}>;
|
|
393
393
|
}
|
|
@@ -457,23 +457,23 @@ declare module "alepha/server" {
|
|
|
457
457
|
*/
|
|
458
458
|
//#endregion
|
|
459
459
|
//#region src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
460
|
-
declare const apiLinkSchema:
|
|
461
|
-
name:
|
|
462
|
-
group:
|
|
463
|
-
path:
|
|
464
|
-
method:
|
|
465
|
-
requestBodyType:
|
|
466
|
-
service:
|
|
460
|
+
declare const apiLinkSchema: alepha1.TObject<{
|
|
461
|
+
name: alepha1.TString;
|
|
462
|
+
group: alepha1.TOptional<alepha1.TString>;
|
|
463
|
+
path: alepha1.TString;
|
|
464
|
+
method: alepha1.TOptional<alepha1.TString>;
|
|
465
|
+
requestBodyType: alepha1.TOptional<alepha1.TString>;
|
|
466
|
+
service: alepha1.TOptional<alepha1.TString>;
|
|
467
467
|
}>;
|
|
468
|
-
declare const apiLinksResponseSchema:
|
|
469
|
-
prefix:
|
|
470
|
-
links:
|
|
471
|
-
name:
|
|
472
|
-
group:
|
|
473
|
-
path:
|
|
474
|
-
method:
|
|
475
|
-
requestBodyType:
|
|
476
|
-
service:
|
|
468
|
+
declare const apiLinksResponseSchema: alepha1.TObject<{
|
|
469
|
+
prefix: alepha1.TOptional<alepha1.TString>;
|
|
470
|
+
links: alepha1.TArray<alepha1.TObject<{
|
|
471
|
+
name: alepha1.TString;
|
|
472
|
+
group: alepha1.TOptional<alepha1.TString>;
|
|
473
|
+
path: alepha1.TString;
|
|
474
|
+
method: alepha1.TOptional<alepha1.TString>;
|
|
475
|
+
requestBodyType: alepha1.TOptional<alepha1.TString>;
|
|
476
|
+
service: alepha1.TOptional<alepha1.TString>;
|
|
477
477
|
}>>;
|
|
478
478
|
}>;
|
|
479
479
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
@@ -669,7 +669,7 @@ declare class ServerProxyProvider {
|
|
|
669
669
|
protected readonly log: alepha_logger1.Logger;
|
|
670
670
|
protected readonly routerProvider: ServerRouterProvider;
|
|
671
671
|
protected readonly alepha: Alepha;
|
|
672
|
-
protected readonly configure:
|
|
672
|
+
protected readonly configure: alepha1.HookDescriptor<"configure">;
|
|
673
673
|
createProxy(options: ProxyDescriptorOptions): void;
|
|
674
674
|
createProxyHandler(target: string, options: Omit<ProxyDescriptorOptions, "path">): ServerHandler;
|
|
675
675
|
private getRawRequestBody;
|
|
@@ -735,8 +735,8 @@ declare class RemoteDescriptorProvider {
|
|
|
735
735
|
protected readonly remotes: Array<ServerRemote>;
|
|
736
736
|
protected readonly log: alepha_logger1.Logger;
|
|
737
737
|
getRemotes(): ServerRemote[];
|
|
738
|
-
readonly configure:
|
|
739
|
-
readonly start:
|
|
738
|
+
readonly configure: alepha1.HookDescriptor<"configure">;
|
|
739
|
+
readonly start: alepha1.HookDescriptor<"start">;
|
|
740
740
|
registerRemote(value: RemoteDescriptor): Promise<void>;
|
|
741
741
|
protected readonly fetchLinks: alepha_retry0.RetryDescriptorFn<(opts: FetchLinksOptions) => Promise<ApiLinksResponse>>;
|
|
742
742
|
}
|
|
@@ -804,22 +804,22 @@ declare class ServerLinksProvider {
|
|
|
804
804
|
protected readonly remoteProvider: RemoteDescriptorProvider;
|
|
805
805
|
protected readonly serverTimingProvider: ServerTimingProvider;
|
|
806
806
|
get prefix(): string;
|
|
807
|
-
readonly onRoute:
|
|
807
|
+
readonly onRoute: alepha1.HookDescriptor<"configure">;
|
|
808
808
|
/**
|
|
809
809
|
* First API - Get all API links for the user.
|
|
810
810
|
*
|
|
811
811
|
* This is based on the user's permissions.
|
|
812
812
|
*/
|
|
813
813
|
readonly links: alepha_server0.RouteDescriptor<{
|
|
814
|
-
response:
|
|
815
|
-
prefix:
|
|
816
|
-
links:
|
|
817
|
-
name:
|
|
818
|
-
group:
|
|
819
|
-
path:
|
|
820
|
-
method:
|
|
821
|
-
requestBodyType:
|
|
822
|
-
service:
|
|
814
|
+
response: alepha1.TObject<{
|
|
815
|
+
prefix: alepha1.TOptional<alepha1.TString>;
|
|
816
|
+
links: alepha1.TArray<alepha1.TObject<{
|
|
817
|
+
name: alepha1.TString;
|
|
818
|
+
group: alepha1.TOptional<alepha1.TString>;
|
|
819
|
+
path: alepha1.TString;
|
|
820
|
+
method: alepha1.TOptional<alepha1.TString>;
|
|
821
|
+
requestBodyType: alepha1.TOptional<alepha1.TString>;
|
|
822
|
+
service: alepha1.TOptional<alepha1.TString>;
|
|
823
823
|
}>>;
|
|
824
824
|
}>;
|
|
825
825
|
}>;
|
|
@@ -830,10 +830,10 @@ declare class ServerLinksProvider {
|
|
|
830
830
|
* I mean for 150+ links, you got 50ms of serialization time.
|
|
831
831
|
*/
|
|
832
832
|
readonly schema: alepha_server0.RouteDescriptor<{
|
|
833
|
-
params:
|
|
834
|
-
name:
|
|
833
|
+
params: alepha1.TObject<{
|
|
834
|
+
name: alepha1.TString;
|
|
835
835
|
}>;
|
|
836
|
-
response:
|
|
836
|
+
response: alepha1.TRecord<string, alepha1.TAny>;
|
|
837
837
|
}>;
|
|
838
838
|
getSchemaByName(name: string, options?: GetApiLinksOptions): Promise<RequestConfigSchema>;
|
|
839
839
|
/**
|
|
@@ -1762,11 +1762,11 @@ declare class DrizzleKitProvider {
|
|
|
1762
1762
|
*/
|
|
1763
1763
|
protected importDrizzleKit(): typeof DrizzleKit;
|
|
1764
1764
|
}
|
|
1765
|
-
declare const devMigrationsSchema:
|
|
1766
|
-
id:
|
|
1767
|
-
name:
|
|
1768
|
-
snapshot:
|
|
1769
|
-
created_at:
|
|
1765
|
+
declare const devMigrationsSchema: alepha1.TObject<{
|
|
1766
|
+
id: alepha1.TNumber;
|
|
1767
|
+
name: alepha1.TString;
|
|
1768
|
+
snapshot: alepha1.TString;
|
|
1769
|
+
created_at: alepha1.TString;
|
|
1770
1770
|
}>;
|
|
1771
1771
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
1772
1772
|
//#endregion
|
|
@@ -1963,7 +1963,7 @@ declare class QueryManager {
|
|
|
1963
1963
|
createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
|
|
1964
1964
|
column: string;
|
|
1965
1965
|
direction: "asc" | "desc";
|
|
1966
|
-
}>):
|
|
1966
|
+
}>): alepha1.Page<T>;
|
|
1967
1967
|
}
|
|
1968
1968
|
interface PgJoin {
|
|
1969
1969
|
table: string;
|
|
@@ -2271,7 +2271,7 @@ interface StatementOptions {
|
|
|
2271
2271
|
declare module "alepha" {
|
|
2272
2272
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
2273
2273
|
}
|
|
2274
|
-
declare const envSchema:
|
|
2274
|
+
declare const envSchema: alepha1.TObject<{
|
|
2275
2275
|
/**
|
|
2276
2276
|
* Main configuration for database connection.
|
|
2277
2277
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -2279,21 +2279,21 @@ declare const envSchema: alepha23.TObject<{
|
|
|
2279
2279
|
* or
|
|
2280
2280
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
2281
2281
|
*/
|
|
2282
|
-
DATABASE_URL:
|
|
2282
|
+
DATABASE_URL: alepha1.TOptional<alepha1.TString>;
|
|
2283
2283
|
/**
|
|
2284
2284
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
2285
2285
|
*
|
|
2286
2286
|
* It will monkey patch drizzle tables.
|
|
2287
2287
|
*/
|
|
2288
|
-
POSTGRES_SCHEMA:
|
|
2288
|
+
POSTGRES_SCHEMA: alepha1.TOptional<alepha1.TString>;
|
|
2289
2289
|
}>;
|
|
2290
2290
|
//#endregion
|
|
2291
2291
|
//#region src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
2292
2292
|
/**
|
|
2293
2293
|
* Configuration options for the Node.js SQLite database provider.
|
|
2294
2294
|
*/
|
|
2295
|
-
declare const nodeSqliteOptions:
|
|
2296
|
-
path:
|
|
2295
|
+
declare const nodeSqliteOptions: alepha1.Atom<alepha1.TObject<{
|
|
2296
|
+
path: alepha1.TOptional<alepha1.TString>;
|
|
2297
2297
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
2298
2298
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
2299
2299
|
declare module "alepha" {
|
|
@@ -2377,35 +2377,35 @@ declare module "alepha" {
|
|
|
2377
2377
|
}
|
|
2378
2378
|
//#endregion
|
|
2379
2379
|
//#region src/api-verifications/entities/verifications.d.ts
|
|
2380
|
-
declare const verifications:
|
|
2381
|
-
id:
|
|
2382
|
-
createdAt:
|
|
2383
|
-
updatedAt:
|
|
2384
|
-
version:
|
|
2385
|
-
type:
|
|
2386
|
-
target:
|
|
2387
|
-
code:
|
|
2388
|
-
verifiedAt:
|
|
2389
|
-
attempts:
|
|
2380
|
+
declare const verifications: alepha_orm198.EntityDescriptor<alepha1.TObject<{
|
|
2381
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2382
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2383
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2384
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2385
|
+
type: alepha1.TUnsafe<"link" | "code">;
|
|
2386
|
+
target: alepha1.TString;
|
|
2387
|
+
code: alepha1.TString;
|
|
2388
|
+
verifiedAt: alepha1.TOptional<alepha1.TString>;
|
|
2389
|
+
attempts: alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_DEFAULT>;
|
|
2390
2390
|
}>>;
|
|
2391
2391
|
type VerificationEntity = Static<typeof verifications.schema>;
|
|
2392
2392
|
//#endregion
|
|
2393
2393
|
//#region src/api-verifications/schemas/verificationSettingsSchema.d.ts
|
|
2394
|
-
declare const verificationSettingsSchema:
|
|
2395
|
-
code:
|
|
2396
|
-
maxAttempts:
|
|
2397
|
-
codeLength:
|
|
2398
|
-
codeExpiration:
|
|
2399
|
-
verificationCooldown:
|
|
2400
|
-
limitPerDay:
|
|
2394
|
+
declare const verificationSettingsSchema: alepha1.TObject<{
|
|
2395
|
+
code: alepha1.TObject<{
|
|
2396
|
+
maxAttempts: alepha1.TInteger;
|
|
2397
|
+
codeLength: alepha1.TInteger;
|
|
2398
|
+
codeExpiration: alepha1.TInteger;
|
|
2399
|
+
verificationCooldown: alepha1.TInteger;
|
|
2400
|
+
limitPerDay: alepha1.TInteger;
|
|
2401
2401
|
}>;
|
|
2402
|
-
link:
|
|
2403
|
-
maxAttempts:
|
|
2404
|
-
codeExpiration:
|
|
2405
|
-
verificationCooldown:
|
|
2406
|
-
limitPerDay:
|
|
2402
|
+
link: alepha1.TObject<{
|
|
2403
|
+
maxAttempts: alepha1.TInteger;
|
|
2404
|
+
codeExpiration: alepha1.TInteger;
|
|
2405
|
+
verificationCooldown: alepha1.TInteger;
|
|
2406
|
+
limitPerDay: alepha1.TInteger;
|
|
2407
2407
|
}>;
|
|
2408
|
-
purgeDays:
|
|
2408
|
+
purgeDays: alepha1.TInteger;
|
|
2409
2409
|
}>;
|
|
2410
2410
|
type VerificationSettings = Static<typeof verificationSettingsSchema>;
|
|
2411
2411
|
//#endregion
|
|
@@ -2413,21 +2413,21 @@ type VerificationSettings = Static<typeof verificationSettingsSchema>;
|
|
|
2413
2413
|
/**
|
|
2414
2414
|
* Verification settings configuration atom
|
|
2415
2415
|
*/
|
|
2416
|
-
declare const verificationOptions:
|
|
2417
|
-
code:
|
|
2418
|
-
maxAttempts:
|
|
2419
|
-
codeLength:
|
|
2420
|
-
codeExpiration:
|
|
2421
|
-
verificationCooldown:
|
|
2422
|
-
limitPerDay:
|
|
2416
|
+
declare const verificationOptions: alepha1.Atom<alepha1.TObject<{
|
|
2417
|
+
code: alepha1.TObject<{
|
|
2418
|
+
maxAttempts: alepha1.TInteger;
|
|
2419
|
+
codeLength: alepha1.TInteger;
|
|
2420
|
+
codeExpiration: alepha1.TInteger;
|
|
2421
|
+
verificationCooldown: alepha1.TInteger;
|
|
2422
|
+
limitPerDay: alepha1.TInteger;
|
|
2423
2423
|
}>;
|
|
2424
|
-
link:
|
|
2425
|
-
maxAttempts:
|
|
2426
|
-
codeExpiration:
|
|
2427
|
-
verificationCooldown:
|
|
2428
|
-
limitPerDay:
|
|
2424
|
+
link: alepha1.TObject<{
|
|
2425
|
+
maxAttempts: alepha1.TInteger;
|
|
2426
|
+
codeExpiration: alepha1.TInteger;
|
|
2427
|
+
verificationCooldown: alepha1.TInteger;
|
|
2428
|
+
limitPerDay: alepha1.TInteger;
|
|
2429
2429
|
}>;
|
|
2430
|
-
purgeDays:
|
|
2430
|
+
purgeDays: alepha1.TInteger;
|
|
2431
2431
|
}>, "alepha.api.verifications.options">;
|
|
2432
2432
|
type VerificationOptions = Static<typeof verificationOptions.schema>;
|
|
2433
2433
|
declare module "alepha" {
|
|
@@ -2456,23 +2456,23 @@ declare class VerificationParameters {
|
|
|
2456
2456
|
}
|
|
2457
2457
|
//#endregion
|
|
2458
2458
|
//#region src/api-verifications/schemas/requestVerificationCodeResponseSchema.d.ts
|
|
2459
|
-
declare const requestVerificationCodeResponseSchema:
|
|
2460
|
-
token:
|
|
2461
|
-
codeExpiration:
|
|
2462
|
-
verificationCooldown:
|
|
2463
|
-
maxVerificationAttempts:
|
|
2459
|
+
declare const requestVerificationCodeResponseSchema: alepha1.TObject<{
|
|
2460
|
+
token: alepha1.TString;
|
|
2461
|
+
codeExpiration: alepha1.TInteger;
|
|
2462
|
+
verificationCooldown: alepha1.TInteger;
|
|
2463
|
+
maxVerificationAttempts: alepha1.TInteger;
|
|
2464
2464
|
}>;
|
|
2465
2465
|
type RequestVerificationResponse = Static<typeof requestVerificationCodeResponseSchema>;
|
|
2466
2466
|
//#endregion
|
|
2467
2467
|
//#region src/api-verifications/schemas/validateVerificationCodeResponseSchema.d.ts
|
|
2468
|
-
declare const validateVerificationCodeResponseSchema:
|
|
2469
|
-
ok:
|
|
2470
|
-
alreadyVerified:
|
|
2468
|
+
declare const validateVerificationCodeResponseSchema: alepha1.TObject<{
|
|
2469
|
+
ok: alepha1.TBoolean;
|
|
2470
|
+
alreadyVerified: alepha1.TOptional<alepha1.TBoolean>;
|
|
2471
2471
|
}>;
|
|
2472
2472
|
type ValidateVerificationCodeResponse = Static<typeof validateVerificationCodeResponseSchema>;
|
|
2473
2473
|
//#endregion
|
|
2474
2474
|
//#region src/api-verifications/schemas/verificationTypeEnumSchema.d.ts
|
|
2475
|
-
declare const verificationTypeEnumSchema:
|
|
2475
|
+
declare const verificationTypeEnumSchema: alepha1.TUnsafe<"link" | "code">;
|
|
2476
2476
|
type VerificationTypeEnum = Static<typeof verificationTypeEnumSchema>;
|
|
2477
2477
|
//#endregion
|
|
2478
2478
|
//#region src/api-verifications/services/VerificationService.d.ts
|
|
@@ -2480,38 +2480,38 @@ declare class VerificationService {
|
|
|
2480
2480
|
protected readonly log: alepha_logger1.Logger;
|
|
2481
2481
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2482
2482
|
protected readonly verificationParameters: VerificationParameters;
|
|
2483
|
-
protected readonly verificationRepository:
|
|
2484
|
-
id:
|
|
2485
|
-
createdAt:
|
|
2486
|
-
updatedAt:
|
|
2487
|
-
version:
|
|
2488
|
-
type:
|
|
2489
|
-
target:
|
|
2490
|
-
code:
|
|
2491
|
-
verifiedAt:
|
|
2492
|
-
attempts:
|
|
2483
|
+
protected readonly verificationRepository: alepha_orm198.Repository<alepha1.TObject<{
|
|
2484
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2485
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2486
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2487
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2488
|
+
type: alepha1.TUnsafe<"link" | "code">;
|
|
2489
|
+
target: alepha1.TString;
|
|
2490
|
+
code: alepha1.TString;
|
|
2491
|
+
verifiedAt: alepha1.TOptional<alepha1.TString>;
|
|
2492
|
+
attempts: alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_DEFAULT>;
|
|
2493
2493
|
}>>;
|
|
2494
2494
|
findByEntry(entry: VerificationEntry): Promise<VerificationEntity>;
|
|
2495
|
-
findRecentsByEntry(entry: VerificationEntry): Promise<
|
|
2496
|
-
id:
|
|
2497
|
-
createdAt:
|
|
2498
|
-
updatedAt:
|
|
2499
|
-
version:
|
|
2500
|
-
type:
|
|
2501
|
-
target:
|
|
2502
|
-
code:
|
|
2503
|
-
verifiedAt:
|
|
2504
|
-
attempts:
|
|
2505
|
-
}>,
|
|
2506
|
-
id:
|
|
2507
|
-
createdAt:
|
|
2508
|
-
updatedAt:
|
|
2509
|
-
version:
|
|
2510
|
-
type:
|
|
2511
|
-
target:
|
|
2512
|
-
code:
|
|
2513
|
-
verifiedAt:
|
|
2514
|
-
attempts:
|
|
2495
|
+
findRecentsByEntry(entry: VerificationEntry): Promise<alepha_orm198.PgStatic<alepha1.TObject<{
|
|
2496
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2497
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2498
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2499
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2500
|
+
type: alepha1.TUnsafe<"link" | "code">;
|
|
2501
|
+
target: alepha1.TString;
|
|
2502
|
+
code: alepha1.TString;
|
|
2503
|
+
verifiedAt: alepha1.TOptional<alepha1.TString>;
|
|
2504
|
+
attempts: alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_DEFAULT>;
|
|
2505
|
+
}>, alepha_orm198.PgRelationMap<alepha1.TObject<{
|
|
2506
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2507
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2508
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2509
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2510
|
+
type: alepha1.TUnsafe<"link" | "code">;
|
|
2511
|
+
target: alepha1.TString;
|
|
2512
|
+
code: alepha1.TString;
|
|
2513
|
+
verifiedAt: alepha1.TOptional<alepha1.TString>;
|
|
2514
|
+
attempts: alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_DEFAULT>;
|
|
2515
2515
|
}>>>[]>;
|
|
2516
2516
|
/**
|
|
2517
2517
|
* Creates a verification entry and returns the token.
|
|
@@ -2534,62 +2534,62 @@ declare class VerificationController {
|
|
|
2534
2534
|
readonly url = "/verifications";
|
|
2535
2535
|
readonly group = "verifications";
|
|
2536
2536
|
readonly requestVerificationCode: alepha_server0.ActionDescriptorFn<{
|
|
2537
|
-
params:
|
|
2538
|
-
type:
|
|
2537
|
+
params: alepha1.TObject<{
|
|
2538
|
+
type: alepha1.TUnsafe<"link" | "code">;
|
|
2539
2539
|
}>;
|
|
2540
|
-
body:
|
|
2541
|
-
target:
|
|
2540
|
+
body: alepha1.TObject<{
|
|
2541
|
+
target: alepha1.TString;
|
|
2542
2542
|
}>;
|
|
2543
|
-
response:
|
|
2544
|
-
token:
|
|
2545
|
-
codeExpiration:
|
|
2546
|
-
verificationCooldown:
|
|
2547
|
-
maxVerificationAttempts:
|
|
2543
|
+
response: alepha1.TObject<{
|
|
2544
|
+
token: alepha1.TString;
|
|
2545
|
+
codeExpiration: alepha1.TInteger;
|
|
2546
|
+
verificationCooldown: alepha1.TInteger;
|
|
2547
|
+
maxVerificationAttempts: alepha1.TInteger;
|
|
2548
2548
|
}>;
|
|
2549
2549
|
}>;
|
|
2550
2550
|
readonly validateVerificationCode: alepha_server0.ActionDescriptorFn<{
|
|
2551
|
-
params:
|
|
2552
|
-
type:
|
|
2551
|
+
params: alepha1.TObject<{
|
|
2552
|
+
type: alepha1.TUnsafe<"link" | "code">;
|
|
2553
2553
|
}>;
|
|
2554
|
-
body:
|
|
2555
|
-
target:
|
|
2556
|
-
token:
|
|
2554
|
+
body: alepha1.TObject<{
|
|
2555
|
+
target: alepha1.TString;
|
|
2556
|
+
token: alepha1.TString;
|
|
2557
2557
|
}>;
|
|
2558
|
-
response:
|
|
2559
|
-
ok:
|
|
2560
|
-
alreadyVerified:
|
|
2558
|
+
response: alepha1.TObject<{
|
|
2559
|
+
ok: alepha1.TBoolean;
|
|
2560
|
+
alreadyVerified: alepha1.TOptional<alepha1.TBoolean>;
|
|
2561
2561
|
}>;
|
|
2562
2562
|
}>;
|
|
2563
2563
|
}
|
|
2564
2564
|
//#endregion
|
|
2565
2565
|
//#region src/api-notifications/schemas/notificationCreateSchema.d.ts
|
|
2566
|
-
declare const notificationCreateSchema:
|
|
2567
|
-
type:
|
|
2568
|
-
template:
|
|
2569
|
-
contact:
|
|
2570
|
-
variables:
|
|
2566
|
+
declare const notificationCreateSchema: alepha1.TObject<{
|
|
2567
|
+
type: alepha1.TUnsafe<"email" | "sms">;
|
|
2568
|
+
template: alepha1.TString;
|
|
2569
|
+
contact: alepha1.TString;
|
|
2570
|
+
variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
|
|
2571
2571
|
}>;
|
|
2572
2572
|
type NotificationCreate = Static<typeof notificationCreateSchema>;
|
|
2573
2573
|
//#endregion
|
|
2574
2574
|
//#region src/api-notifications/entities/notifications.d.ts
|
|
2575
|
-
declare const notifications:
|
|
2576
|
-
id:
|
|
2577
|
-
version:
|
|
2578
|
-
createdAt:
|
|
2579
|
-
updatedAt:
|
|
2580
|
-
type:
|
|
2581
|
-
template:
|
|
2582
|
-
category:
|
|
2583
|
-
critical:
|
|
2584
|
-
sensitive:
|
|
2585
|
-
contact:
|
|
2586
|
-
variables:
|
|
2587
|
-
scheduledAt:
|
|
2588
|
-
sentAt:
|
|
2589
|
-
error:
|
|
2590
|
-
at:
|
|
2591
|
-
name:
|
|
2592
|
-
message:
|
|
2575
|
+
declare const notifications: alepha_orm198.EntityDescriptor<alepha1.TObject<{
|
|
2576
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2577
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2578
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2579
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2580
|
+
type: alepha1.TUnsafe<"email" | "sms">;
|
|
2581
|
+
template: alepha1.TString;
|
|
2582
|
+
category: alepha1.TOptional<alepha1.TString>;
|
|
2583
|
+
critical: alepha1.TOptional<alepha1.TBoolean>;
|
|
2584
|
+
sensitive: alepha1.TOptional<alepha1.TBoolean>;
|
|
2585
|
+
contact: alepha1.TString;
|
|
2586
|
+
variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
|
|
2587
|
+
scheduledAt: alepha1.TOptional<alepha1.TString>;
|
|
2588
|
+
sentAt: alepha1.TOptional<alepha1.TString>;
|
|
2589
|
+
error: alepha1.TOptional<alepha1.TObject<{
|
|
2590
|
+
at: alepha1.TString;
|
|
2591
|
+
name: alepha1.TString;
|
|
2592
|
+
message: alepha1.TString;
|
|
2593
2593
|
}>>;
|
|
2594
2594
|
}>>;
|
|
2595
2595
|
type NotificationEntity = Static<typeof notifications.schema>;
|
|
@@ -2607,24 +2607,24 @@ interface SmsSendOptions {
|
|
|
2607
2607
|
declare class NotificationSenderService {
|
|
2608
2608
|
protected readonly alepha: Alepha;
|
|
2609
2609
|
protected readonly log: alepha_logger1.Logger;
|
|
2610
|
-
protected readonly notificationRepository:
|
|
2611
|
-
id:
|
|
2612
|
-
version:
|
|
2613
|
-
createdAt:
|
|
2614
|
-
updatedAt:
|
|
2615
|
-
type:
|
|
2616
|
-
template:
|
|
2617
|
-
category:
|
|
2618
|
-
critical:
|
|
2619
|
-
sensitive:
|
|
2620
|
-
contact:
|
|
2621
|
-
variables:
|
|
2622
|
-
scheduledAt:
|
|
2623
|
-
sentAt:
|
|
2624
|
-
error:
|
|
2625
|
-
at:
|
|
2626
|
-
name:
|
|
2627
|
-
message:
|
|
2610
|
+
protected readonly notificationRepository: alepha_orm198.Repository<alepha1.TObject<{
|
|
2611
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2612
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2613
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2614
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2615
|
+
type: alepha1.TUnsafe<"email" | "sms">;
|
|
2616
|
+
template: alepha1.TString;
|
|
2617
|
+
category: alepha1.TOptional<alepha1.TString>;
|
|
2618
|
+
critical: alepha1.TOptional<alepha1.TBoolean>;
|
|
2619
|
+
sensitive: alepha1.TOptional<alepha1.TBoolean>;
|
|
2620
|
+
contact: alepha1.TString;
|
|
2621
|
+
variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
|
|
2622
|
+
scheduledAt: alepha1.TOptional<alepha1.TString>;
|
|
2623
|
+
sentAt: alepha1.TOptional<alepha1.TString>;
|
|
2624
|
+
error: alepha1.TOptional<alepha1.TObject<{
|
|
2625
|
+
at: alepha1.TString;
|
|
2626
|
+
name: alepha1.TString;
|
|
2627
|
+
message: alepha1.TString;
|
|
2628
2628
|
}>>;
|
|
2629
2629
|
}>>;
|
|
2630
2630
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
@@ -2641,15 +2641,15 @@ declare class NotificationSenderService {
|
|
|
2641
2641
|
body: string;
|
|
2642
2642
|
};
|
|
2643
2643
|
protected load(notification: NotificationEntity): {
|
|
2644
|
-
template: NotificationDescriptor<
|
|
2644
|
+
template: NotificationDescriptor<alepha1.TObject<alepha1.TProperties>>;
|
|
2645
2645
|
variables: Record<string, any>;
|
|
2646
2646
|
contact: string;
|
|
2647
2647
|
};
|
|
2648
2648
|
}
|
|
2649
2649
|
//#endregion
|
|
2650
2650
|
//#region src/api-notifications/services/NotificationService.d.ts
|
|
2651
|
-
declare const notificationServiceEnvSchema:
|
|
2652
|
-
NOTIFICATION_QUEUE:
|
|
2651
|
+
declare const notificationServiceEnvSchema: alepha1.TObject<{
|
|
2652
|
+
NOTIFICATION_QUEUE: alepha1.TOptional<alepha1.TBoolean>;
|
|
2653
2653
|
}>;
|
|
2654
2654
|
declare module "alepha" {
|
|
2655
2655
|
interface Env extends Partial<Static<typeof notificationServiceEnvSchema>> {}
|
|
@@ -2660,71 +2660,71 @@ declare class NotificationService {
|
|
|
2660
2660
|
protected readonly env: {
|
|
2661
2661
|
NOTIFICATION_QUEUE?: boolean | undefined;
|
|
2662
2662
|
};
|
|
2663
|
-
protected readonly notificationRepository:
|
|
2664
|
-
id:
|
|
2665
|
-
version:
|
|
2666
|
-
createdAt:
|
|
2667
|
-
updatedAt:
|
|
2668
|
-
type:
|
|
2669
|
-
template:
|
|
2670
|
-
category:
|
|
2671
|
-
critical:
|
|
2672
|
-
sensitive:
|
|
2673
|
-
contact:
|
|
2674
|
-
variables:
|
|
2675
|
-
scheduledAt:
|
|
2676
|
-
sentAt:
|
|
2677
|
-
error:
|
|
2678
|
-
at:
|
|
2679
|
-
name:
|
|
2680
|
-
message:
|
|
2663
|
+
protected readonly notificationRepository: alepha_orm198.Repository<alepha1.TObject<{
|
|
2664
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2665
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2666
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2667
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2668
|
+
type: alepha1.TUnsafe<"email" | "sms">;
|
|
2669
|
+
template: alepha1.TString;
|
|
2670
|
+
category: alepha1.TOptional<alepha1.TString>;
|
|
2671
|
+
critical: alepha1.TOptional<alepha1.TBoolean>;
|
|
2672
|
+
sensitive: alepha1.TOptional<alepha1.TBoolean>;
|
|
2673
|
+
contact: alepha1.TString;
|
|
2674
|
+
variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
|
|
2675
|
+
scheduledAt: alepha1.TOptional<alepha1.TString>;
|
|
2676
|
+
sentAt: alepha1.TOptional<alepha1.TString>;
|
|
2677
|
+
error: alepha1.TOptional<alepha1.TObject<{
|
|
2678
|
+
at: alepha1.TString;
|
|
2679
|
+
name: alepha1.TString;
|
|
2680
|
+
message: alepha1.TString;
|
|
2681
2681
|
}>>;
|
|
2682
2682
|
}>>;
|
|
2683
2683
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2684
2684
|
protected readonly notificationSenderService: NotificationSenderService;
|
|
2685
|
-
readonly notificationBatch: alepha_batch0.BatchDescriptor<
|
|
2686
|
-
type:
|
|
2687
|
-
template:
|
|
2688
|
-
contact:
|
|
2689
|
-
variables:
|
|
2685
|
+
readonly notificationBatch: alepha_batch0.BatchDescriptor<alepha1.TObject<{
|
|
2686
|
+
type: alepha1.TUnsafe<"email" | "sms">;
|
|
2687
|
+
template: alepha1.TString;
|
|
2688
|
+
contact: alepha1.TString;
|
|
2689
|
+
variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
|
|
2690
2690
|
}>, Promise<void>>;
|
|
2691
|
-
findNotificationById(id: string): Promise<
|
|
2692
|
-
id:
|
|
2693
|
-
version:
|
|
2694
|
-
createdAt:
|
|
2695
|
-
updatedAt:
|
|
2696
|
-
type:
|
|
2697
|
-
template:
|
|
2698
|
-
category:
|
|
2699
|
-
critical:
|
|
2700
|
-
sensitive:
|
|
2701
|
-
contact:
|
|
2702
|
-
variables:
|
|
2703
|
-
scheduledAt:
|
|
2704
|
-
sentAt:
|
|
2705
|
-
error:
|
|
2706
|
-
at:
|
|
2707
|
-
name:
|
|
2708
|
-
message:
|
|
2691
|
+
findNotificationById(id: string): Promise<alepha_orm198.PgStatic<alepha1.TObject<{
|
|
2692
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2693
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2694
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2695
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2696
|
+
type: alepha1.TUnsafe<"email" | "sms">;
|
|
2697
|
+
template: alepha1.TString;
|
|
2698
|
+
category: alepha1.TOptional<alepha1.TString>;
|
|
2699
|
+
critical: alepha1.TOptional<alepha1.TBoolean>;
|
|
2700
|
+
sensitive: alepha1.TOptional<alepha1.TBoolean>;
|
|
2701
|
+
contact: alepha1.TString;
|
|
2702
|
+
variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
|
|
2703
|
+
scheduledAt: alepha1.TOptional<alepha1.TString>;
|
|
2704
|
+
sentAt: alepha1.TOptional<alepha1.TString>;
|
|
2705
|
+
error: alepha1.TOptional<alepha1.TObject<{
|
|
2706
|
+
at: alepha1.TString;
|
|
2707
|
+
name: alepha1.TString;
|
|
2708
|
+
message: alepha1.TString;
|
|
2709
2709
|
}>>;
|
|
2710
|
-
}>,
|
|
2711
|
-
id:
|
|
2712
|
-
version:
|
|
2713
|
-
createdAt:
|
|
2714
|
-
updatedAt:
|
|
2715
|
-
type:
|
|
2716
|
-
template:
|
|
2717
|
-
category:
|
|
2718
|
-
critical:
|
|
2719
|
-
sensitive:
|
|
2720
|
-
contact:
|
|
2721
|
-
variables:
|
|
2722
|
-
scheduledAt:
|
|
2723
|
-
sentAt:
|
|
2724
|
-
error:
|
|
2725
|
-
at:
|
|
2726
|
-
name:
|
|
2727
|
-
message:
|
|
2710
|
+
}>, alepha_orm198.PgRelationMap<alepha1.TObject<{
|
|
2711
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2712
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2713
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2714
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2715
|
+
type: alepha1.TUnsafe<"email" | "sms">;
|
|
2716
|
+
template: alepha1.TString;
|
|
2717
|
+
category: alepha1.TOptional<alepha1.TString>;
|
|
2718
|
+
critical: alepha1.TOptional<alepha1.TBoolean>;
|
|
2719
|
+
sensitive: alepha1.TOptional<alepha1.TBoolean>;
|
|
2720
|
+
contact: alepha1.TString;
|
|
2721
|
+
variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
|
|
2722
|
+
scheduledAt: alepha1.TOptional<alepha1.TString>;
|
|
2723
|
+
sentAt: alepha1.TOptional<alepha1.TString>;
|
|
2724
|
+
error: alepha1.TOptional<alepha1.TObject<{
|
|
2725
|
+
at: alepha1.TString;
|
|
2726
|
+
name: alepha1.TString;
|
|
2727
|
+
message: alepha1.TString;
|
|
2728
2728
|
}>>;
|
|
2729
2729
|
}>>>>;
|
|
2730
2730
|
/**
|
|
@@ -2767,30 +2767,30 @@ interface NotificationMessage<T extends TObject> {
|
|
|
2767
2767
|
//#endregion
|
|
2768
2768
|
//#region src/api-users/notifications/UserNotifications.d.ts
|
|
2769
2769
|
declare class UserNotifications {
|
|
2770
|
-
readonly passwordReset: NotificationDescriptor<
|
|
2771
|
-
email:
|
|
2772
|
-
code:
|
|
2773
|
-
expiresInMinutes:
|
|
2770
|
+
readonly passwordReset: NotificationDescriptor<alepha1.TObject<{
|
|
2771
|
+
email: alepha1.TString;
|
|
2772
|
+
code: alepha1.TString;
|
|
2773
|
+
expiresInMinutes: alepha1.TNumber;
|
|
2774
2774
|
}>>;
|
|
2775
|
-
readonly emailVerification: NotificationDescriptor<
|
|
2776
|
-
email:
|
|
2777
|
-
code:
|
|
2778
|
-
expiresInMinutes:
|
|
2775
|
+
readonly emailVerification: NotificationDescriptor<alepha1.TObject<{
|
|
2776
|
+
email: alepha1.TString;
|
|
2777
|
+
code: alepha1.TString;
|
|
2778
|
+
expiresInMinutes: alepha1.TNumber;
|
|
2779
2779
|
}>>;
|
|
2780
|
-
readonly phoneVerification: NotificationDescriptor<
|
|
2781
|
-
phoneNumber:
|
|
2782
|
-
code:
|
|
2783
|
-
expiresInMinutes:
|
|
2780
|
+
readonly phoneVerification: NotificationDescriptor<alepha1.TObject<{
|
|
2781
|
+
phoneNumber: alepha1.TString;
|
|
2782
|
+
code: alepha1.TString;
|
|
2783
|
+
expiresInMinutes: alepha1.TNumber;
|
|
2784
2784
|
}>>;
|
|
2785
|
-
readonly passwordResetLink: NotificationDescriptor<
|
|
2786
|
-
email:
|
|
2787
|
-
resetUrl:
|
|
2788
|
-
expiresInMinutes:
|
|
2785
|
+
readonly passwordResetLink: NotificationDescriptor<alepha1.TObject<{
|
|
2786
|
+
email: alepha1.TString;
|
|
2787
|
+
resetUrl: alepha1.TString;
|
|
2788
|
+
expiresInMinutes: alepha1.TNumber;
|
|
2789
2789
|
}>>;
|
|
2790
|
-
readonly emailVerificationLink: NotificationDescriptor<
|
|
2791
|
-
email:
|
|
2792
|
-
verifyUrl:
|
|
2793
|
-
expiresInMinutes:
|
|
2790
|
+
readonly emailVerificationLink: NotificationDescriptor<alepha1.TObject<{
|
|
2791
|
+
email: alepha1.TString;
|
|
2792
|
+
verifyUrl: alepha1.TString;
|
|
2793
|
+
expiresInMinutes: alepha1.TNumber;
|
|
2794
2794
|
}>>;
|
|
2795
2795
|
}
|
|
2796
2796
|
//#endregion
|
|
@@ -2801,10 +2801,10 @@ declare class UserNotifications {
|
|
|
2801
2801
|
* Requires the intent ID from Phase 1, the verification code,
|
|
2802
2802
|
* and the new password.
|
|
2803
2803
|
*/
|
|
2804
|
-
declare const completePasswordResetRequestSchema:
|
|
2805
|
-
intentId:
|
|
2806
|
-
code:
|
|
2807
|
-
newPassword:
|
|
2804
|
+
declare const completePasswordResetRequestSchema: alepha1.TObject<{
|
|
2805
|
+
intentId: alepha1.TString;
|
|
2806
|
+
code: alepha1.TString;
|
|
2807
|
+
newPassword: alepha1.TString;
|
|
2808
2808
|
}>;
|
|
2809
2809
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
2810
2810
|
//#endregion
|
|
@@ -2815,9 +2815,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
|
|
|
2815
2815
|
* Contains the intent ID needed for Phase 2 completion,
|
|
2816
2816
|
* along with expiration time.
|
|
2817
2817
|
*/
|
|
2818
|
-
declare const passwordResetIntentResponseSchema:
|
|
2819
|
-
intentId:
|
|
2820
|
-
expiresAt:
|
|
2818
|
+
declare const passwordResetIntentResponseSchema: alepha1.TObject<{
|
|
2819
|
+
intentId: alepha1.TString;
|
|
2820
|
+
expiresAt: alepha1.TString;
|
|
2821
2821
|
}>;
|
|
2822
2822
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
2823
2823
|
//#endregion
|
|
@@ -2840,47 +2840,47 @@ declare class CredentialService {
|
|
|
2840
2840
|
protected readonly userNotifications: UserNotifications;
|
|
2841
2841
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2842
2842
|
protected readonly intentCache: alepha_cache0.CacheDescriptorFn<PasswordResetIntent, any[]>;
|
|
2843
|
-
users(userRealmName?: string): Repository$1<
|
|
2844
|
-
id: PgAttr<PgAttr<
|
|
2845
|
-
version: PgAttr<PgAttr<
|
|
2846
|
-
createdAt: PgAttr<PgAttr<
|
|
2847
|
-
updatedAt: PgAttr<PgAttr<
|
|
2848
|
-
realm: PgAttr<
|
|
2849
|
-
username:
|
|
2850
|
-
email:
|
|
2851
|
-
phoneNumber:
|
|
2852
|
-
roles: PgAttr<
|
|
2853
|
-
firstName:
|
|
2854
|
-
lastName:
|
|
2855
|
-
picture:
|
|
2856
|
-
enabled: PgAttr<
|
|
2857
|
-
emailVerified: PgAttr<
|
|
2843
|
+
users(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2844
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2845
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2846
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2847
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2848
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2849
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2850
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2851
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2852
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2853
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2854
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2855
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2856
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2857
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2858
2858
|
}>>;
|
|
2859
|
-
sessions(userRealmName?: string): Repository$1<
|
|
2860
|
-
id: PgAttr<PgAttr<
|
|
2861
|
-
version: PgAttr<PgAttr<
|
|
2862
|
-
createdAt: PgAttr<PgAttr<
|
|
2863
|
-
updatedAt: PgAttr<PgAttr<
|
|
2864
|
-
refreshToken:
|
|
2865
|
-
userId: PgAttr<
|
|
2866
|
-
expiresAt:
|
|
2867
|
-
ip:
|
|
2868
|
-
userAgent:
|
|
2869
|
-
os:
|
|
2870
|
-
browser:
|
|
2871
|
-
device:
|
|
2859
|
+
sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2860
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2861
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2862
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2863
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2864
|
+
refreshToken: alepha1.TString;
|
|
2865
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2866
|
+
expiresAt: alepha1.TString;
|
|
2867
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
2868
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
2869
|
+
os: alepha1.TString;
|
|
2870
|
+
browser: alepha1.TString;
|
|
2871
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2872
2872
|
}>>;
|
|
2873
2873
|
}>>;
|
|
2874
|
-
identities(userRealmName?: string): Repository$1<
|
|
2875
|
-
id: PgAttr<PgAttr<
|
|
2876
|
-
version: PgAttr<PgAttr<
|
|
2877
|
-
createdAt: PgAttr<PgAttr<
|
|
2878
|
-
updatedAt: PgAttr<PgAttr<
|
|
2879
|
-
userId: PgAttr<
|
|
2880
|
-
password:
|
|
2881
|
-
provider:
|
|
2882
|
-
providerUserId:
|
|
2883
|
-
providerData:
|
|
2874
|
+
identities(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2875
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2876
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2877
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2878
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2879
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2880
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
2881
|
+
provider: alepha1.TString;
|
|
2882
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
2883
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
2884
2884
|
}>>;
|
|
2885
2885
|
/**
|
|
2886
2886
|
* Phase 1: Create a password reset intent.
|
|
@@ -2917,11 +2917,11 @@ declare class CredentialService {
|
|
|
2917
2917
|
}
|
|
2918
2918
|
//#endregion
|
|
2919
2919
|
//#region src/api-users/schemas/completeRegistrationRequestSchema.d.ts
|
|
2920
|
-
declare const completeRegistrationRequestSchema:
|
|
2921
|
-
intentId:
|
|
2922
|
-
emailCode:
|
|
2923
|
-
phoneCode:
|
|
2924
|
-
captchaToken:
|
|
2920
|
+
declare const completeRegistrationRequestSchema: alepha1.TObject<{
|
|
2921
|
+
intentId: alepha1.TString;
|
|
2922
|
+
emailCode: alepha1.TOptional<alepha1.TString>;
|
|
2923
|
+
phoneCode: alepha1.TOptional<alepha1.TString>;
|
|
2924
|
+
captchaToken: alepha1.TOptional<alepha1.TString>;
|
|
2925
2925
|
}>;
|
|
2926
2926
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
2927
2927
|
//#endregion
|
|
@@ -2930,24 +2930,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
|
|
|
2930
2930
|
* Schema for user registration request body.
|
|
2931
2931
|
* Password is always required, other fields depend on realm settings.
|
|
2932
2932
|
*/
|
|
2933
|
-
declare const registerRequestSchema:
|
|
2934
|
-
password:
|
|
2935
|
-
username:
|
|
2936
|
-
email:
|
|
2937
|
-
phoneNumber:
|
|
2938
|
-
firstName:
|
|
2939
|
-
lastName:
|
|
2940
|
-
picture:
|
|
2933
|
+
declare const registerRequestSchema: alepha1.TObject<{
|
|
2934
|
+
password: alepha1.TString;
|
|
2935
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2936
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2937
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2938
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2939
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2940
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2941
2941
|
}>;
|
|
2942
2942
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
2943
2943
|
//#endregion
|
|
2944
2944
|
//#region src/api-users/schemas/registrationIntentResponseSchema.d.ts
|
|
2945
|
-
declare const registrationIntentResponseSchema:
|
|
2946
|
-
intentId:
|
|
2947
|
-
expectCaptcha:
|
|
2948
|
-
expectEmailVerification:
|
|
2949
|
-
expectPhoneVerification:
|
|
2950
|
-
expiresAt:
|
|
2945
|
+
declare const registrationIntentResponseSchema: alepha1.TObject<{
|
|
2946
|
+
intentId: alepha1.TString;
|
|
2947
|
+
expectCaptcha: alepha1.TBoolean;
|
|
2948
|
+
expectEmailVerification: alepha1.TBoolean;
|
|
2949
|
+
expectPhoneVerification: alepha1.TBoolean;
|
|
2950
|
+
expiresAt: alepha1.TString;
|
|
2951
2951
|
}>;
|
|
2952
2952
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
2953
2953
|
//#endregion
|
|
@@ -3018,46 +3018,46 @@ declare class RegistrationService {
|
|
|
3018
3018
|
}
|
|
3019
3019
|
//#endregion
|
|
3020
3020
|
//#region src/api-users/schemas/createUserSchema.d.ts
|
|
3021
|
-
declare const createUserSchema:
|
|
3022
|
-
id:
|
|
3023
|
-
version:
|
|
3024
|
-
email:
|
|
3025
|
-
createdAt:
|
|
3026
|
-
updatedAt:
|
|
3027
|
-
username:
|
|
3028
|
-
phoneNumber:
|
|
3029
|
-
roles:
|
|
3030
|
-
firstName:
|
|
3031
|
-
lastName:
|
|
3032
|
-
picture:
|
|
3033
|
-
enabled:
|
|
3034
|
-
emailVerified:
|
|
3021
|
+
declare const createUserSchema: alepha1.TObject<{
|
|
3022
|
+
id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
3023
|
+
version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
3024
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3025
|
+
createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
3026
|
+
updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
3027
|
+
username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3028
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3029
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
3030
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3031
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3032
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3033
|
+
enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
3034
|
+
emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
3035
3035
|
}>;
|
|
3036
3036
|
type CreateUser = Static<typeof createUserSchema>;
|
|
3037
3037
|
//#endregion
|
|
3038
3038
|
//#region src/api-users/schemas/updateUserSchema.d.ts
|
|
3039
|
-
declare const updateUserSchema:
|
|
3040
|
-
email:
|
|
3041
|
-
realm:
|
|
3042
|
-
phoneNumber:
|
|
3043
|
-
roles:
|
|
3044
|
-
firstName:
|
|
3045
|
-
lastName:
|
|
3046
|
-
picture:
|
|
3047
|
-
enabled:
|
|
3039
|
+
declare const updateUserSchema: alepha1.TObject<{
|
|
3040
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3041
|
+
realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
|
|
3042
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3043
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
3044
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3045
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3046
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3047
|
+
enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
3048
3048
|
}>;
|
|
3049
3049
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
3050
3050
|
//#endregion
|
|
3051
3051
|
//#region src/api-users/schemas/userQuerySchema.d.ts
|
|
3052
|
-
declare const userQuerySchema:
|
|
3053
|
-
page:
|
|
3054
|
-
size:
|
|
3055
|
-
sort:
|
|
3056
|
-
email:
|
|
3057
|
-
enabled:
|
|
3058
|
-
emailVerified:
|
|
3059
|
-
roles:
|
|
3060
|
-
query:
|
|
3052
|
+
declare const userQuerySchema: alepha1.TObject<{
|
|
3053
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
3054
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
3055
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
3056
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3057
|
+
enabled: alepha1.TOptional<alepha1.TBoolean>;
|
|
3058
|
+
emailVerified: alepha1.TOptional<alepha1.TBoolean>;
|
|
3059
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
3060
|
+
query: alepha1.TOptional<alepha1.TString>;
|
|
3061
3061
|
}>;
|
|
3062
3062
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
3063
3063
|
//#endregion
|
|
@@ -3067,21 +3067,21 @@ declare class UserService {
|
|
|
3067
3067
|
protected readonly verificationController: HttpVirtualClient<VerificationController>;
|
|
3068
3068
|
protected readonly userNotifications: UserNotifications;
|
|
3069
3069
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
3070
|
-
users(userRealmName?: string):
|
|
3071
|
-
id:
|
|
3072
|
-
version:
|
|
3073
|
-
createdAt:
|
|
3074
|
-
updatedAt:
|
|
3075
|
-
realm:
|
|
3076
|
-
username:
|
|
3077
|
-
email:
|
|
3078
|
-
phoneNumber:
|
|
3079
|
-
roles:
|
|
3080
|
-
firstName:
|
|
3081
|
-
lastName:
|
|
3082
|
-
picture:
|
|
3083
|
-
enabled:
|
|
3084
|
-
emailVerified:
|
|
3070
|
+
users(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
|
|
3071
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3072
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3073
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3074
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3075
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
3076
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
3077
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3078
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
3079
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3080
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
3081
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
3082
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
3083
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3084
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3085
3085
|
}>>;
|
|
3086
3086
|
/**
|
|
3087
3087
|
* Request email verification for a user.
|
|
@@ -3129,122 +3129,122 @@ declare class UserController {
|
|
|
3129
3129
|
* Validates data, creates verification sessions, and stores intent in cache.
|
|
3130
3130
|
*/
|
|
3131
3131
|
readonly createRegistrationIntent: alepha_server0.ActionDescriptorFn<{
|
|
3132
|
-
body:
|
|
3133
|
-
password:
|
|
3134
|
-
username:
|
|
3135
|
-
email:
|
|
3136
|
-
phoneNumber:
|
|
3137
|
-
firstName:
|
|
3138
|
-
lastName:
|
|
3139
|
-
picture:
|
|
3132
|
+
body: alepha1.TObject<{
|
|
3133
|
+
password: alepha1.TString;
|
|
3134
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
3135
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3136
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
3137
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
3138
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
3139
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
3140
3140
|
}>;
|
|
3141
|
-
query:
|
|
3142
|
-
userRealmName:
|
|
3141
|
+
query: alepha1.TObject<{
|
|
3142
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3143
3143
|
}>;
|
|
3144
|
-
response:
|
|
3145
|
-
intentId:
|
|
3146
|
-
expectCaptcha:
|
|
3147
|
-
expectEmailVerification:
|
|
3148
|
-
expectPhoneVerification:
|
|
3149
|
-
expiresAt:
|
|
3144
|
+
response: alepha1.TObject<{
|
|
3145
|
+
intentId: alepha1.TString;
|
|
3146
|
+
expectCaptcha: alepha1.TBoolean;
|
|
3147
|
+
expectEmailVerification: alepha1.TBoolean;
|
|
3148
|
+
expectPhoneVerification: alepha1.TBoolean;
|
|
3149
|
+
expiresAt: alepha1.TString;
|
|
3150
3150
|
}>;
|
|
3151
3151
|
}>;
|
|
3152
3152
|
/**
|
|
3153
3153
|
* Find users with pagination and filtering.
|
|
3154
3154
|
*/
|
|
3155
3155
|
readonly findUsers: alepha_server0.ActionDescriptorFn<{
|
|
3156
|
-
query:
|
|
3157
|
-
page:
|
|
3158
|
-
size:
|
|
3159
|
-
sort:
|
|
3160
|
-
email:
|
|
3161
|
-
enabled:
|
|
3162
|
-
emailVerified:
|
|
3163
|
-
roles:
|
|
3164
|
-
query:
|
|
3165
|
-
userRealmName:
|
|
3156
|
+
query: alepha1.TObject<{
|
|
3157
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
3158
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
3159
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
3160
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3161
|
+
enabled: alepha1.TOptional<alepha1.TBoolean>;
|
|
3162
|
+
emailVerified: alepha1.TOptional<alepha1.TBoolean>;
|
|
3163
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
3164
|
+
query: alepha1.TOptional<alepha1.TString>;
|
|
3165
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3166
3166
|
}>;
|
|
3167
|
-
response:
|
|
3168
|
-
id:
|
|
3169
|
-
version:
|
|
3170
|
-
createdAt:
|
|
3171
|
-
updatedAt:
|
|
3172
|
-
realm:
|
|
3173
|
-
username:
|
|
3174
|
-
email:
|
|
3175
|
-
phoneNumber:
|
|
3176
|
-
roles:
|
|
3177
|
-
firstName:
|
|
3178
|
-
lastName:
|
|
3179
|
-
picture:
|
|
3180
|
-
enabled:
|
|
3181
|
-
emailVerified:
|
|
3167
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
3168
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3169
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3170
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3171
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3172
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
3173
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
3174
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3175
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
3176
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3177
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
3178
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
3179
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
3180
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3181
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3182
3182
|
}>>;
|
|
3183
3183
|
}>;
|
|
3184
3184
|
/**
|
|
3185
3185
|
* Get a user by ID.
|
|
3186
3186
|
*/
|
|
3187
3187
|
readonly getUser: alepha_server0.ActionDescriptorFn<{
|
|
3188
|
-
params:
|
|
3189
|
-
id:
|
|
3188
|
+
params: alepha1.TObject<{
|
|
3189
|
+
id: alepha1.TString;
|
|
3190
3190
|
}>;
|
|
3191
|
-
query:
|
|
3192
|
-
userRealmName:
|
|
3191
|
+
query: alepha1.TObject<{
|
|
3192
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3193
3193
|
}>;
|
|
3194
|
-
response:
|
|
3195
|
-
id:
|
|
3196
|
-
version:
|
|
3197
|
-
createdAt:
|
|
3198
|
-
updatedAt:
|
|
3199
|
-
realm:
|
|
3200
|
-
username:
|
|
3201
|
-
email:
|
|
3202
|
-
phoneNumber:
|
|
3203
|
-
roles:
|
|
3204
|
-
firstName:
|
|
3205
|
-
lastName:
|
|
3206
|
-
picture:
|
|
3207
|
-
enabled:
|
|
3208
|
-
emailVerified:
|
|
3194
|
+
response: alepha1.TObject<{
|
|
3195
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3196
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3197
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3198
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3199
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
3200
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
3201
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3202
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
3203
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3204
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
3205
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
3206
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
3207
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3208
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3209
3209
|
}>;
|
|
3210
3210
|
}>;
|
|
3211
3211
|
/**
|
|
3212
3212
|
* Create a new user.
|
|
3213
3213
|
*/
|
|
3214
3214
|
readonly createUser: alepha_server0.ActionDescriptorFn<{
|
|
3215
|
-
query:
|
|
3216
|
-
userRealmName:
|
|
3215
|
+
query: alepha1.TObject<{
|
|
3216
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3217
3217
|
}>;
|
|
3218
|
-
body:
|
|
3219
|
-
id:
|
|
3220
|
-
version:
|
|
3221
|
-
email:
|
|
3222
|
-
createdAt:
|
|
3223
|
-
updatedAt:
|
|
3224
|
-
username:
|
|
3225
|
-
phoneNumber:
|
|
3226
|
-
roles:
|
|
3227
|
-
firstName:
|
|
3228
|
-
lastName:
|
|
3229
|
-
picture:
|
|
3230
|
-
enabled:
|
|
3231
|
-
emailVerified:
|
|
3218
|
+
body: alepha1.TObject<{
|
|
3219
|
+
id: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>>;
|
|
3220
|
+
version: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>>;
|
|
3221
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3222
|
+
createdAt: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>>;
|
|
3223
|
+
updatedAt: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>>;
|
|
3224
|
+
username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3225
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3226
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
3227
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3228
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3229
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3230
|
+
enabled: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
|
|
3231
|
+
emailVerified: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
|
|
3232
3232
|
}>;
|
|
3233
|
-
response:
|
|
3234
|
-
id:
|
|
3235
|
-
version:
|
|
3236
|
-
createdAt:
|
|
3237
|
-
updatedAt:
|
|
3238
|
-
realm:
|
|
3239
|
-
username:
|
|
3240
|
-
email:
|
|
3241
|
-
phoneNumber:
|
|
3242
|
-
roles:
|
|
3243
|
-
firstName:
|
|
3244
|
-
lastName:
|
|
3245
|
-
picture:
|
|
3246
|
-
enabled:
|
|
3247
|
-
emailVerified:
|
|
3233
|
+
response: alepha1.TObject<{
|
|
3234
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3235
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3236
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3237
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3238
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
3239
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
3240
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3241
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
3242
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3243
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
3244
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
3245
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
3246
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3247
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3248
3248
|
}>;
|
|
3249
3249
|
}>;
|
|
3250
3250
|
/**
|
|
@@ -3252,80 +3252,80 @@ declare class UserController {
|
|
|
3252
3252
|
* Validates verification codes and creates the user.
|
|
3253
3253
|
*/
|
|
3254
3254
|
readonly createUserFromIntent: alepha_server0.ActionDescriptorFn<{
|
|
3255
|
-
body:
|
|
3256
|
-
intentId:
|
|
3257
|
-
emailCode:
|
|
3258
|
-
phoneCode:
|
|
3259
|
-
captchaToken:
|
|
3255
|
+
body: alepha1.TObject<{
|
|
3256
|
+
intentId: alepha1.TString;
|
|
3257
|
+
emailCode: alepha1.TOptional<alepha1.TString>;
|
|
3258
|
+
phoneCode: alepha1.TOptional<alepha1.TString>;
|
|
3259
|
+
captchaToken: alepha1.TOptional<alepha1.TString>;
|
|
3260
3260
|
}>;
|
|
3261
|
-
response:
|
|
3262
|
-
id:
|
|
3263
|
-
version:
|
|
3264
|
-
createdAt:
|
|
3265
|
-
updatedAt:
|
|
3266
|
-
realm:
|
|
3267
|
-
username:
|
|
3268
|
-
email:
|
|
3269
|
-
phoneNumber:
|
|
3270
|
-
roles:
|
|
3271
|
-
firstName:
|
|
3272
|
-
lastName:
|
|
3273
|
-
picture:
|
|
3274
|
-
enabled:
|
|
3275
|
-
emailVerified:
|
|
3261
|
+
response: alepha1.TObject<{
|
|
3262
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3263
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3264
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3265
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3266
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
3267
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
3268
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3269
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
3270
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3271
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
3272
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
3273
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
3274
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3275
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3276
3276
|
}>;
|
|
3277
3277
|
}>;
|
|
3278
3278
|
/**
|
|
3279
3279
|
* Update a user.
|
|
3280
3280
|
*/
|
|
3281
3281
|
readonly updateUser: alepha_server0.ActionDescriptorFn<{
|
|
3282
|
-
params:
|
|
3283
|
-
id:
|
|
3282
|
+
params: alepha1.TObject<{
|
|
3283
|
+
id: alepha1.TString;
|
|
3284
3284
|
}>;
|
|
3285
|
-
query:
|
|
3286
|
-
userRealmName:
|
|
3285
|
+
query: alepha1.TObject<{
|
|
3286
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3287
3287
|
}>;
|
|
3288
|
-
body:
|
|
3289
|
-
email:
|
|
3290
|
-
realm:
|
|
3291
|
-
phoneNumber:
|
|
3292
|
-
roles:
|
|
3293
|
-
firstName:
|
|
3294
|
-
lastName:
|
|
3295
|
-
picture:
|
|
3296
|
-
enabled:
|
|
3288
|
+
body: alepha1.TObject<{
|
|
3289
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3290
|
+
realm: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>>;
|
|
3291
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3292
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
3293
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3294
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3295
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
3296
|
+
enabled: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
|
|
3297
3297
|
}>;
|
|
3298
|
-
response:
|
|
3299
|
-
id:
|
|
3300
|
-
version:
|
|
3301
|
-
createdAt:
|
|
3302
|
-
updatedAt:
|
|
3303
|
-
realm:
|
|
3304
|
-
username:
|
|
3305
|
-
email:
|
|
3306
|
-
phoneNumber:
|
|
3307
|
-
roles:
|
|
3308
|
-
firstName:
|
|
3309
|
-
lastName:
|
|
3310
|
-
picture:
|
|
3311
|
-
enabled:
|
|
3312
|
-
emailVerified:
|
|
3298
|
+
response: alepha1.TObject<{
|
|
3299
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3300
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3301
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3302
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3303
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
3304
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
3305
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3306
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
3307
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
3308
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
3309
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
3310
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
3311
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3312
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
3313
3313
|
}>;
|
|
3314
3314
|
}>;
|
|
3315
3315
|
/**
|
|
3316
3316
|
* Delete a user.
|
|
3317
3317
|
*/
|
|
3318
3318
|
readonly deleteUser: alepha_server0.ActionDescriptorFn<{
|
|
3319
|
-
params:
|
|
3320
|
-
id:
|
|
3319
|
+
params: alepha1.TObject<{
|
|
3320
|
+
id: alepha1.TString;
|
|
3321
3321
|
}>;
|
|
3322
|
-
query:
|
|
3323
|
-
userRealmName:
|
|
3322
|
+
query: alepha1.TObject<{
|
|
3323
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3324
3324
|
}>;
|
|
3325
|
-
response:
|
|
3326
|
-
ok:
|
|
3327
|
-
id:
|
|
3328
|
-
count:
|
|
3325
|
+
response: alepha1.TObject<{
|
|
3326
|
+
ok: alepha1.TBoolean;
|
|
3327
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
3328
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
3329
3329
|
}>;
|
|
3330
3330
|
}>;
|
|
3331
3331
|
/**
|
|
@@ -3333,15 +3333,15 @@ declare class UserController {
|
|
|
3333
3333
|
* Validates email, sends verification code, and stores intent in cache.
|
|
3334
3334
|
*/
|
|
3335
3335
|
readonly createPasswordResetIntent: alepha_server0.ActionDescriptorFn<{
|
|
3336
|
-
query:
|
|
3337
|
-
userRealmName:
|
|
3336
|
+
query: alepha1.TObject<{
|
|
3337
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3338
3338
|
}>;
|
|
3339
|
-
body:
|
|
3340
|
-
email:
|
|
3339
|
+
body: alepha1.TObject<{
|
|
3340
|
+
email: alepha1.TString;
|
|
3341
3341
|
}>;
|
|
3342
|
-
response:
|
|
3343
|
-
intentId:
|
|
3344
|
-
expiresAt:
|
|
3342
|
+
response: alepha1.TObject<{
|
|
3343
|
+
intentId: alepha1.TString;
|
|
3344
|
+
expiresAt: alepha1.TString;
|
|
3345
3345
|
}>;
|
|
3346
3346
|
}>;
|
|
3347
3347
|
/**
|
|
@@ -3349,61 +3349,61 @@ declare class UserController {
|
|
|
3349
3349
|
* Validates verification code, updates password, and invalidates sessions.
|
|
3350
3350
|
*/
|
|
3351
3351
|
readonly completePasswordReset: alepha_server0.ActionDescriptorFn<{
|
|
3352
|
-
body:
|
|
3353
|
-
intentId:
|
|
3354
|
-
code:
|
|
3355
|
-
newPassword:
|
|
3352
|
+
body: alepha1.TObject<{
|
|
3353
|
+
intentId: alepha1.TString;
|
|
3354
|
+
code: alepha1.TString;
|
|
3355
|
+
newPassword: alepha1.TString;
|
|
3356
3356
|
}>;
|
|
3357
|
-
response:
|
|
3358
|
-
ok:
|
|
3359
|
-
id:
|
|
3360
|
-
count:
|
|
3357
|
+
response: alepha1.TObject<{
|
|
3358
|
+
ok: alepha1.TBoolean;
|
|
3359
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
3360
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
3361
3361
|
}>;
|
|
3362
3362
|
}>;
|
|
3363
3363
|
/**
|
|
3364
3364
|
* @deprecated Use createPasswordResetIntent instead
|
|
3365
3365
|
*/
|
|
3366
3366
|
requestPasswordReset: alepha_server0.ActionDescriptorFn<{
|
|
3367
|
-
query:
|
|
3368
|
-
userRealmName:
|
|
3367
|
+
query: alepha1.TObject<{
|
|
3368
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3369
3369
|
}>;
|
|
3370
|
-
body:
|
|
3371
|
-
email:
|
|
3370
|
+
body: alepha1.TObject<{
|
|
3371
|
+
email: alepha1.TString;
|
|
3372
3372
|
}>;
|
|
3373
|
-
response:
|
|
3374
|
-
success:
|
|
3375
|
-
message:
|
|
3373
|
+
response: alepha1.TObject<{
|
|
3374
|
+
success: alepha1.TBoolean;
|
|
3375
|
+
message: alepha1.TString;
|
|
3376
3376
|
}>;
|
|
3377
3377
|
}>;
|
|
3378
3378
|
/**
|
|
3379
3379
|
* @deprecated Use completePasswordReset instead
|
|
3380
3380
|
*/
|
|
3381
3381
|
validateResetToken: alepha_server0.ActionDescriptorFn<{
|
|
3382
|
-
query:
|
|
3383
|
-
email:
|
|
3384
|
-
token:
|
|
3385
|
-
userRealmName:
|
|
3382
|
+
query: alepha1.TObject<{
|
|
3383
|
+
email: alepha1.TString;
|
|
3384
|
+
token: alepha1.TString;
|
|
3385
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3386
3386
|
}>;
|
|
3387
|
-
response:
|
|
3388
|
-
valid:
|
|
3389
|
-
email:
|
|
3387
|
+
response: alepha1.TObject<{
|
|
3388
|
+
valid: alepha1.TBoolean;
|
|
3389
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3390
3390
|
}>;
|
|
3391
3391
|
}>;
|
|
3392
3392
|
/**
|
|
3393
3393
|
* @deprecated Use completePasswordReset instead
|
|
3394
3394
|
*/
|
|
3395
3395
|
resetPassword: alepha_server0.ActionDescriptorFn<{
|
|
3396
|
-
query:
|
|
3397
|
-
userRealmName:
|
|
3396
|
+
query: alepha1.TObject<{
|
|
3397
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3398
3398
|
}>;
|
|
3399
|
-
body:
|
|
3400
|
-
email:
|
|
3401
|
-
token:
|
|
3402
|
-
newPassword:
|
|
3399
|
+
body: alepha1.TObject<{
|
|
3400
|
+
email: alepha1.TString;
|
|
3401
|
+
token: alepha1.TString;
|
|
3402
|
+
newPassword: alepha1.TString;
|
|
3403
3403
|
}>;
|
|
3404
|
-
response:
|
|
3405
|
-
success:
|
|
3406
|
-
message:
|
|
3404
|
+
response: alepha1.TObject<{
|
|
3405
|
+
success: alepha1.TBoolean;
|
|
3406
|
+
message: alepha1.TString;
|
|
3407
3407
|
}>;
|
|
3408
3408
|
}>;
|
|
3409
3409
|
/**
|
|
@@ -3411,15 +3411,15 @@ declare class UserController {
|
|
|
3411
3411
|
* Generates a verification token using verification service and sends an email to the user.
|
|
3412
3412
|
*/
|
|
3413
3413
|
requestEmailVerification: alepha_server0.ActionDescriptorFn<{
|
|
3414
|
-
query:
|
|
3415
|
-
userRealmName:
|
|
3414
|
+
query: alepha1.TObject<{
|
|
3415
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3416
3416
|
}>;
|
|
3417
|
-
body:
|
|
3418
|
-
email:
|
|
3417
|
+
body: alepha1.TObject<{
|
|
3418
|
+
email: alepha1.TString;
|
|
3419
3419
|
}>;
|
|
3420
|
-
response:
|
|
3421
|
-
success:
|
|
3422
|
-
message:
|
|
3420
|
+
response: alepha1.TObject<{
|
|
3421
|
+
success: alepha1.TBoolean;
|
|
3422
|
+
message: alepha1.TString;
|
|
3423
3423
|
}>;
|
|
3424
3424
|
}>;
|
|
3425
3425
|
/**
|
|
@@ -3427,28 +3427,28 @@ declare class UserController {
|
|
|
3427
3427
|
* Updates the user's emailVerified status.
|
|
3428
3428
|
*/
|
|
3429
3429
|
verifyEmail: alepha_server0.ActionDescriptorFn<{
|
|
3430
|
-
query:
|
|
3431
|
-
userRealmName:
|
|
3430
|
+
query: alepha1.TObject<{
|
|
3431
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3432
3432
|
}>;
|
|
3433
|
-
body:
|
|
3434
|
-
email:
|
|
3435
|
-
token:
|
|
3433
|
+
body: alepha1.TObject<{
|
|
3434
|
+
email: alepha1.TString;
|
|
3435
|
+
token: alepha1.TString;
|
|
3436
3436
|
}>;
|
|
3437
|
-
response:
|
|
3438
|
-
success:
|
|
3439
|
-
message:
|
|
3437
|
+
response: alepha1.TObject<{
|
|
3438
|
+
success: alepha1.TBoolean;
|
|
3439
|
+
message: alepha1.TString;
|
|
3440
3440
|
}>;
|
|
3441
3441
|
}>;
|
|
3442
3442
|
/**
|
|
3443
3443
|
* Check if an email is verified.
|
|
3444
3444
|
*/
|
|
3445
3445
|
checkEmailVerification: alepha_server0.ActionDescriptorFn<{
|
|
3446
|
-
query:
|
|
3447
|
-
email:
|
|
3448
|
-
userRealmName:
|
|
3446
|
+
query: alepha1.TObject<{
|
|
3447
|
+
email: alepha1.TString;
|
|
3448
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
3449
3449
|
}>;
|
|
3450
|
-
response:
|
|
3451
|
-
verified:
|
|
3450
|
+
response: alepha1.TObject<{
|
|
3451
|
+
verified: alepha1.TBoolean;
|
|
3452
3452
|
}>;
|
|
3453
3453
|
}>;
|
|
3454
3454
|
}
|
|
@@ -3473,9 +3473,9 @@ declare class ServerCookiesProvider {
|
|
|
3473
3473
|
protected readonly IV_LENGTH = 16;
|
|
3474
3474
|
protected readonly AUTH_TAG_LENGTH = 16;
|
|
3475
3475
|
protected readonly SIGNATURE_LENGTH = 32;
|
|
3476
|
-
readonly onRequest:
|
|
3477
|
-
readonly onAction:
|
|
3478
|
-
readonly onSend:
|
|
3476
|
+
readonly onRequest: alepha1.HookDescriptor<"server:onRequest">;
|
|
3477
|
+
readonly onAction: alepha1.HookDescriptor<"action:onRequest">;
|
|
3478
|
+
readonly onSend: alepha1.HookDescriptor<"server:onSend">;
|
|
3479
3479
|
protected getCookiesFromContext(cookies?: Cookies): Cookies;
|
|
3480
3480
|
getCookie<T extends TSchema>(name: string, options: CookieDescriptorOptions<T>, contextCookies?: Cookies): Static<T> | undefined;
|
|
3481
3481
|
setCookie<T extends TSchema>(name: string, options: CookieDescriptorOptions<T>, data: Static<T>, contextCookies?: Cookies): void;
|
|
@@ -3557,23 +3557,23 @@ declare module "alepha/server" {
|
|
|
3557
3557
|
*/
|
|
3558
3558
|
//#endregion
|
|
3559
3559
|
//#region src/server-auth/schemas/authenticationProviderSchema.d.ts
|
|
3560
|
-
declare const authenticationProviderSchema:
|
|
3561
|
-
name:
|
|
3562
|
-
type:
|
|
3560
|
+
declare const authenticationProviderSchema: alepha1.TObject<{
|
|
3561
|
+
name: alepha1.TString;
|
|
3562
|
+
type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
3563
3563
|
}>;
|
|
3564
3564
|
type AuthenticationProvider = Static<typeof authenticationProviderSchema>;
|
|
3565
3565
|
//#endregion
|
|
3566
3566
|
//#region src/server-auth/schemas/tokensSchema.d.ts
|
|
3567
|
-
declare const tokensSchema:
|
|
3568
|
-
provider:
|
|
3569
|
-
access_token:
|
|
3570
|
-
issued_at:
|
|
3571
|
-
expires_in:
|
|
3572
|
-
refresh_token:
|
|
3573
|
-
refresh_token_expires_in:
|
|
3574
|
-
refresh_expires_in:
|
|
3575
|
-
id_token:
|
|
3576
|
-
scope:
|
|
3567
|
+
declare const tokensSchema: alepha1.TObject<{
|
|
3568
|
+
provider: alepha1.TString;
|
|
3569
|
+
access_token: alepha1.TString;
|
|
3570
|
+
issued_at: alepha1.TNumber;
|
|
3571
|
+
expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3572
|
+
refresh_token: alepha1.TOptional<alepha1.TString>;
|
|
3573
|
+
refresh_token_expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3574
|
+
refresh_expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3575
|
+
id_token: alepha1.TOptional<alepha1.TString>;
|
|
3576
|
+
scope: alepha1.TOptional<alepha1.TString>;
|
|
3577
3577
|
}>;
|
|
3578
3578
|
type Tokens = Static<typeof tokensSchema>;
|
|
3579
3579
|
//#endregion
|
|
@@ -3584,34 +3584,34 @@ declare class ServerAuthProvider {
|
|
|
3584
3584
|
protected readonly serverCookiesProvider: ServerCookiesProvider;
|
|
3585
3585
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
3586
3586
|
protected readonly serverLinksProvider: ServerLinksProvider;
|
|
3587
|
-
protected readonly authorizationCode: AbstractCookieDescriptor<
|
|
3588
|
-
provider:
|
|
3589
|
-
codeVerifier:
|
|
3590
|
-
redirectUri:
|
|
3591
|
-
state:
|
|
3592
|
-
nonce:
|
|
3587
|
+
protected readonly authorizationCode: AbstractCookieDescriptor<alepha1.TObject<{
|
|
3588
|
+
provider: alepha1.TString;
|
|
3589
|
+
codeVerifier: alepha1.TOptional<alepha1.TString>;
|
|
3590
|
+
redirectUri: alepha1.TOptional<alepha1.TString>;
|
|
3591
|
+
state: alepha1.TOptional<alepha1.TString>;
|
|
3592
|
+
nonce: alepha1.TOptional<alepha1.TString>;
|
|
3593
3593
|
}>>;
|
|
3594
|
-
readonly tokens: AbstractCookieDescriptor<
|
|
3595
|
-
provider:
|
|
3596
|
-
access_token:
|
|
3597
|
-
issued_at:
|
|
3598
|
-
expires_in:
|
|
3599
|
-
refresh_token:
|
|
3600
|
-
refresh_token_expires_in:
|
|
3601
|
-
refresh_expires_in:
|
|
3602
|
-
id_token:
|
|
3603
|
-
scope:
|
|
3594
|
+
readonly tokens: AbstractCookieDescriptor<alepha1.TObject<{
|
|
3595
|
+
provider: alepha1.TString;
|
|
3596
|
+
access_token: alepha1.TString;
|
|
3597
|
+
issued_at: alepha1.TNumber;
|
|
3598
|
+
expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3599
|
+
refresh_token: alepha1.TOptional<alepha1.TString>;
|
|
3600
|
+
refresh_token_expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3601
|
+
refresh_expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3602
|
+
id_token: alepha1.TOptional<alepha1.TString>;
|
|
3603
|
+
scope: alepha1.TOptional<alepha1.TString>;
|
|
3604
3604
|
}>>;
|
|
3605
3605
|
get identities(): Array<AuthDescriptor>;
|
|
3606
3606
|
getAuthenticationProviders(filters?: {
|
|
3607
3607
|
realmName?: string;
|
|
3608
3608
|
}): AuthenticationProvider[];
|
|
3609
|
-
protected readonly configure:
|
|
3609
|
+
protected readonly configure: alepha1.HookDescriptor<"configure">;
|
|
3610
3610
|
protected getAccessTokens(tokens: Tokens): string | undefined;
|
|
3611
3611
|
/**
|
|
3612
3612
|
* Fill request headers with access token from cookies or fallback to provider's fallback function.
|
|
3613
3613
|
*/
|
|
3614
|
-
protected readonly onRequest:
|
|
3614
|
+
protected readonly onRequest: alepha1.HookDescriptor<"server:onRequest">;
|
|
3615
3615
|
/**
|
|
3616
3616
|
* Convert cookies to tokens.
|
|
3617
3617
|
* If the tokens are expired, try to refresh them using the refresh token.
|
|
@@ -3622,26 +3622,26 @@ declare class ServerAuthProvider {
|
|
|
3622
3622
|
* Get user information.
|
|
3623
3623
|
*/
|
|
3624
3624
|
readonly userinfo: alepha_server0.RouteDescriptor<{
|
|
3625
|
-
response:
|
|
3626
|
-
user:
|
|
3627
|
-
id:
|
|
3628
|
-
name:
|
|
3629
|
-
email:
|
|
3630
|
-
username:
|
|
3631
|
-
picture:
|
|
3632
|
-
sessionId:
|
|
3633
|
-
organizations:
|
|
3634
|
-
roles:
|
|
3625
|
+
response: alepha1.TObject<{
|
|
3626
|
+
user: alepha1.TOptional<alepha1.TObject<{
|
|
3627
|
+
id: alepha1.TString;
|
|
3628
|
+
name: alepha1.TOptional<alepha1.TString>;
|
|
3629
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3630
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
3631
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
3632
|
+
sessionId: alepha1.TOptional<alepha1.TString>;
|
|
3633
|
+
organizations: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
3634
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
3635
3635
|
}>>;
|
|
3636
|
-
api:
|
|
3637
|
-
prefix:
|
|
3638
|
-
links:
|
|
3639
|
-
name:
|
|
3640
|
-
group:
|
|
3641
|
-
path:
|
|
3642
|
-
method:
|
|
3643
|
-
requestBodyType:
|
|
3644
|
-
service:
|
|
3636
|
+
api: alepha1.TObject<{
|
|
3637
|
+
prefix: alepha1.TOptional<alepha1.TString>;
|
|
3638
|
+
links: alepha1.TArray<alepha1.TObject<{
|
|
3639
|
+
name: alepha1.TString;
|
|
3640
|
+
group: alepha1.TOptional<alepha1.TString>;
|
|
3641
|
+
path: alepha1.TString;
|
|
3642
|
+
method: alepha1.TOptional<alepha1.TString>;
|
|
3643
|
+
requestBodyType: alepha1.TOptional<alepha1.TString>;
|
|
3644
|
+
service: alepha1.TOptional<alepha1.TString>;
|
|
3645
3645
|
}>>;
|
|
3646
3646
|
}>;
|
|
3647
3647
|
}>;
|
|
@@ -3650,65 +3650,65 @@ declare class ServerAuthProvider {
|
|
|
3650
3650
|
* Refresh a token for internal providers.
|
|
3651
3651
|
*/
|
|
3652
3652
|
readonly refresh: alepha_server0.RouteDescriptor<{
|
|
3653
|
-
query:
|
|
3654
|
-
provider:
|
|
3653
|
+
query: alepha1.TObject<{
|
|
3654
|
+
provider: alepha1.TString;
|
|
3655
3655
|
}>;
|
|
3656
|
-
body:
|
|
3657
|
-
refresh_token:
|
|
3658
|
-
access_token:
|
|
3656
|
+
body: alepha1.TObject<{
|
|
3657
|
+
refresh_token: alepha1.TString;
|
|
3658
|
+
access_token: alepha1.TOptional<alepha1.TString>;
|
|
3659
3659
|
}>;
|
|
3660
|
-
response:
|
|
3661
|
-
provider:
|
|
3662
|
-
access_token:
|
|
3663
|
-
issued_at:
|
|
3664
|
-
expires_in:
|
|
3665
|
-
refresh_token:
|
|
3666
|
-
refresh_token_expires_in:
|
|
3667
|
-
refresh_expires_in:
|
|
3668
|
-
id_token:
|
|
3669
|
-
scope:
|
|
3660
|
+
response: alepha1.TObject<{
|
|
3661
|
+
provider: alepha1.TString;
|
|
3662
|
+
access_token: alepha1.TString;
|
|
3663
|
+
issued_at: alepha1.TNumber;
|
|
3664
|
+
expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3665
|
+
refresh_token: alepha1.TOptional<alepha1.TString>;
|
|
3666
|
+
refresh_token_expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3667
|
+
refresh_expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3668
|
+
id_token: alepha1.TOptional<alepha1.TString>;
|
|
3669
|
+
scope: alepha1.TOptional<alepha1.TString>;
|
|
3670
3670
|
}>;
|
|
3671
3671
|
}>;
|
|
3672
3672
|
/**
|
|
3673
3673
|
* Login for local password-based authentication.
|
|
3674
3674
|
*/
|
|
3675
3675
|
readonly token: alepha_server0.RouteDescriptor<{
|
|
3676
|
-
query:
|
|
3677
|
-
provider:
|
|
3676
|
+
query: alepha1.TObject<{
|
|
3677
|
+
provider: alepha1.TString;
|
|
3678
3678
|
}>;
|
|
3679
|
-
body:
|
|
3680
|
-
username:
|
|
3681
|
-
password:
|
|
3679
|
+
body: alepha1.TObject<{
|
|
3680
|
+
username: alepha1.TString;
|
|
3681
|
+
password: alepha1.TString;
|
|
3682
3682
|
}>;
|
|
3683
|
-
response:
|
|
3684
|
-
provider:
|
|
3685
|
-
access_token:
|
|
3686
|
-
issued_at:
|
|
3687
|
-
expires_in:
|
|
3688
|
-
refresh_token:
|
|
3689
|
-
refresh_token_expires_in:
|
|
3690
|
-
refresh_expires_in:
|
|
3691
|
-
id_token:
|
|
3692
|
-
scope:
|
|
3693
|
-
user:
|
|
3694
|
-
id:
|
|
3695
|
-
name:
|
|
3696
|
-
email:
|
|
3697
|
-
username:
|
|
3698
|
-
picture:
|
|
3699
|
-
sessionId:
|
|
3700
|
-
organizations:
|
|
3701
|
-
roles:
|
|
3683
|
+
response: alepha1.TObject<{
|
|
3684
|
+
provider: alepha1.TString;
|
|
3685
|
+
access_token: alepha1.TString;
|
|
3686
|
+
issued_at: alepha1.TNumber;
|
|
3687
|
+
expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3688
|
+
refresh_token: alepha1.TOptional<alepha1.TString>;
|
|
3689
|
+
refresh_token_expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3690
|
+
refresh_expires_in: alepha1.TOptional<alepha1.TNumber>;
|
|
3691
|
+
id_token: alepha1.TOptional<alepha1.TString>;
|
|
3692
|
+
scope: alepha1.TOptional<alepha1.TString>;
|
|
3693
|
+
user: alepha1.TObject<{
|
|
3694
|
+
id: alepha1.TString;
|
|
3695
|
+
name: alepha1.TOptional<alepha1.TString>;
|
|
3696
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
3697
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
3698
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
3699
|
+
sessionId: alepha1.TOptional<alepha1.TString>;
|
|
3700
|
+
organizations: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
3701
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
3702
3702
|
}>;
|
|
3703
|
-
api:
|
|
3704
|
-
prefix:
|
|
3705
|
-
links:
|
|
3706
|
-
name:
|
|
3707
|
-
group:
|
|
3708
|
-
path:
|
|
3709
|
-
method:
|
|
3710
|
-
requestBodyType:
|
|
3711
|
-
service:
|
|
3703
|
+
api: alepha1.TObject<{
|
|
3704
|
+
prefix: alepha1.TOptional<alepha1.TString>;
|
|
3705
|
+
links: alepha1.TArray<alepha1.TObject<{
|
|
3706
|
+
name: alepha1.TString;
|
|
3707
|
+
group: alepha1.TOptional<alepha1.TString>;
|
|
3708
|
+
path: alepha1.TString;
|
|
3709
|
+
method: alepha1.TOptional<alepha1.TString>;
|
|
3710
|
+
requestBodyType: alepha1.TOptional<alepha1.TString>;
|
|
3711
|
+
service: alepha1.TOptional<alepha1.TString>;
|
|
3712
3712
|
}>>;
|
|
3713
3713
|
}>;
|
|
3714
3714
|
}>;
|
|
@@ -3717,9 +3717,9 @@ declare class ServerAuthProvider {
|
|
|
3717
3717
|
* Oauth2/OIDC login route.
|
|
3718
3718
|
*/
|
|
3719
3719
|
readonly login: alepha_server0.RouteDescriptor<{
|
|
3720
|
-
query:
|
|
3721
|
-
provider:
|
|
3722
|
-
redirect_uri:
|
|
3720
|
+
query: alepha1.TObject<{
|
|
3721
|
+
provider: alepha1.TString;
|
|
3722
|
+
redirect_uri: alepha1.TOptional<alepha1.TString>;
|
|
3723
3723
|
}>;
|
|
3724
3724
|
}>;
|
|
3725
3725
|
/**
|
|
@@ -3731,8 +3731,8 @@ declare class ServerAuthProvider {
|
|
|
3731
3731
|
* Logout route for OAuth2/OIDC providers.
|
|
3732
3732
|
*/
|
|
3733
3733
|
readonly logout: alepha_server0.RouteDescriptor<{
|
|
3734
|
-
query:
|
|
3735
|
-
post_logout_redirect_uri:
|
|
3734
|
+
query: alepha1.TObject<{
|
|
3735
|
+
post_logout_redirect_uri: alepha1.TOptional<alepha1.TString>;
|
|
3736
3736
|
}>;
|
|
3737
3737
|
}>;
|
|
3738
3738
|
protected provider(opts: string | {
|
|
@@ -3997,47 +3997,47 @@ declare class UserRealmController {
|
|
|
3997
3997
|
* This endpoint is not exposed in the API documentation.
|
|
3998
3998
|
*/
|
|
3999
3999
|
readonly getRealmConfig: alepha_server0.ActionDescriptorFn<{
|
|
4000
|
-
query:
|
|
4001
|
-
userRealmName:
|
|
4000
|
+
query: alepha1.TObject<{
|
|
4001
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
4002
4002
|
}>;
|
|
4003
|
-
response:
|
|
4004
|
-
settings:
|
|
4005
|
-
registrationAllowed:
|
|
4006
|
-
emailEnabled:
|
|
4007
|
-
emailRequired:
|
|
4008
|
-
usernameEnabled:
|
|
4009
|
-
usernameRequired:
|
|
4010
|
-
phoneEnabled:
|
|
4011
|
-
phoneRequired:
|
|
4012
|
-
verifyEmailRequired:
|
|
4013
|
-
verifyPhoneRequired:
|
|
4014
|
-
firstNameLastNameEnabled:
|
|
4015
|
-
firstNameLastNameRequired:
|
|
4016
|
-
resetPasswordAllowed:
|
|
4017
|
-
passwordPolicy:
|
|
4018
|
-
minLength:
|
|
4019
|
-
requireUppercase:
|
|
4020
|
-
requireLowercase:
|
|
4021
|
-
requireNumbers:
|
|
4022
|
-
requireSpecialCharacters:
|
|
4003
|
+
response: alepha1.TObject<{
|
|
4004
|
+
settings: alepha1.TObject<{
|
|
4005
|
+
registrationAllowed: alepha1.TBoolean;
|
|
4006
|
+
emailEnabled: alepha1.TBoolean;
|
|
4007
|
+
emailRequired: alepha1.TBoolean;
|
|
4008
|
+
usernameEnabled: alepha1.TBoolean;
|
|
4009
|
+
usernameRequired: alepha1.TBoolean;
|
|
4010
|
+
phoneEnabled: alepha1.TBoolean;
|
|
4011
|
+
phoneRequired: alepha1.TBoolean;
|
|
4012
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
4013
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
4014
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
4015
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
4016
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
4017
|
+
passwordPolicy: alepha1.TObject<{
|
|
4018
|
+
minLength: alepha1.TInteger;
|
|
4019
|
+
requireUppercase: alepha1.TBoolean;
|
|
4020
|
+
requireLowercase: alepha1.TBoolean;
|
|
4021
|
+
requireNumbers: alepha1.TBoolean;
|
|
4022
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
4023
4023
|
}>;
|
|
4024
4024
|
}>;
|
|
4025
|
-
realmName:
|
|
4026
|
-
authenticationMethods:
|
|
4027
|
-
name:
|
|
4028
|
-
type:
|
|
4025
|
+
realmName: alepha1.TString;
|
|
4026
|
+
authenticationMethods: alepha1.TArray<alepha1.TObject<{
|
|
4027
|
+
name: alepha1.TString;
|
|
4028
|
+
type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
4029
4029
|
}>>;
|
|
4030
4030
|
}>;
|
|
4031
4031
|
}>;
|
|
4032
4032
|
readonly checkUsernameAvailability: alepha_server0.ActionDescriptorFn<{
|
|
4033
|
-
query:
|
|
4034
|
-
userRealmName:
|
|
4033
|
+
query: alepha1.TObject<{
|
|
4034
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
4035
4035
|
}>;
|
|
4036
|
-
body:
|
|
4037
|
-
username:
|
|
4036
|
+
body: alepha1.TObject<{
|
|
4037
|
+
username: alepha1.TString;
|
|
4038
4038
|
}>;
|
|
4039
|
-
response:
|
|
4040
|
-
available:
|
|
4039
|
+
response: alepha1.TObject<{
|
|
4040
|
+
available: alepha1.TBoolean;
|
|
4041
4041
|
}>;
|
|
4042
4042
|
}>;
|
|
4043
4043
|
}
|
|
@@ -4088,183 +4088,183 @@ interface UserRealmOptions {
|
|
|
4088
4088
|
}
|
|
4089
4089
|
//#endregion
|
|
4090
4090
|
//#region src/api-users/schemas/identityResourceSchema.d.ts
|
|
4091
|
-
declare const identityResourceSchema:
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
providerUserId:
|
|
4099
|
-
providerData:
|
|
4091
|
+
declare const identityResourceSchema: alepha1.TObject<{
|
|
4092
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4093
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4094
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4095
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4096
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
4097
|
+
provider: alepha1.TString;
|
|
4098
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
4099
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
4100
4100
|
}>;
|
|
4101
4101
|
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
4102
4102
|
//#endregion
|
|
4103
4103
|
//#region src/api-users/schemas/loginSchema.d.ts
|
|
4104
|
-
declare const loginSchema:
|
|
4105
|
-
username:
|
|
4106
|
-
password:
|
|
4104
|
+
declare const loginSchema: alepha1.TObject<{
|
|
4105
|
+
username: alepha1.TString;
|
|
4106
|
+
password: alepha1.TString;
|
|
4107
4107
|
}>;
|
|
4108
4108
|
type LoginInput = Static<typeof loginSchema>;
|
|
4109
4109
|
//#endregion
|
|
4110
4110
|
//#region src/api-users/schemas/registerSchema.d.ts
|
|
4111
|
-
declare const registerSchema:
|
|
4112
|
-
username:
|
|
4113
|
-
email:
|
|
4114
|
-
password:
|
|
4115
|
-
confirmPassword:
|
|
4116
|
-
firstName:
|
|
4117
|
-
lastName:
|
|
4111
|
+
declare const registerSchema: alepha1.TObject<{
|
|
4112
|
+
username: alepha1.TString;
|
|
4113
|
+
email: alepha1.TString;
|
|
4114
|
+
password: alepha1.TString;
|
|
4115
|
+
confirmPassword: alepha1.TString;
|
|
4116
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
4117
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
4118
4118
|
}>;
|
|
4119
4119
|
type RegisterInput = Static<typeof registerSchema>;
|
|
4120
4120
|
//#endregion
|
|
4121
4121
|
//#region src/api-users/schemas/resetPasswordSchema.d.ts
|
|
4122
|
-
declare const resetPasswordRequestSchema:
|
|
4123
|
-
email:
|
|
4122
|
+
declare const resetPasswordRequestSchema: alepha1.TObject<{
|
|
4123
|
+
email: alepha1.TString;
|
|
4124
4124
|
}>;
|
|
4125
|
-
declare const resetPasswordSchema:
|
|
4126
|
-
token:
|
|
4127
|
-
password:
|
|
4128
|
-
confirmPassword:
|
|
4125
|
+
declare const resetPasswordSchema: alepha1.TObject<{
|
|
4126
|
+
token: alepha1.TString;
|
|
4127
|
+
password: alepha1.TString;
|
|
4128
|
+
confirmPassword: alepha1.TString;
|
|
4129
4129
|
}>;
|
|
4130
4130
|
type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
|
|
4131
4131
|
type ResetPasswordInput = Static<typeof resetPasswordSchema>;
|
|
4132
4132
|
//#endregion
|
|
4133
4133
|
//#region src/api-users/schemas/sessionResourceSchema.d.ts
|
|
4134
|
-
declare const sessionResourceSchema:
|
|
4135
|
-
id:
|
|
4136
|
-
version:
|
|
4137
|
-
createdAt:
|
|
4138
|
-
updatedAt:
|
|
4139
|
-
refreshToken:
|
|
4140
|
-
userId:
|
|
4141
|
-
expiresAt:
|
|
4142
|
-
ip:
|
|
4143
|
-
userAgent:
|
|
4144
|
-
os:
|
|
4145
|
-
browser:
|
|
4146
|
-
device:
|
|
4134
|
+
declare const sessionResourceSchema: alepha1.TObject<{
|
|
4135
|
+
id: alepha1.TString;
|
|
4136
|
+
version: alepha1.TNumber;
|
|
4137
|
+
createdAt: alepha1.TString;
|
|
4138
|
+
updatedAt: alepha1.TString;
|
|
4139
|
+
refreshToken: alepha1.TString;
|
|
4140
|
+
userId: alepha1.TString;
|
|
4141
|
+
expiresAt: alepha1.TString;
|
|
4142
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
4143
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
4144
|
+
os: alepha1.TString;
|
|
4145
|
+
browser: alepha1.TString;
|
|
4146
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
4147
4147
|
}>>;
|
|
4148
4148
|
}>;
|
|
4149
4149
|
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
4150
4150
|
//#endregion
|
|
4151
4151
|
//#region src/api-users/schemas/userRealmConfigSchema.d.ts
|
|
4152
|
-
declare const userRealmConfigSchema:
|
|
4153
|
-
settings:
|
|
4154
|
-
registrationAllowed:
|
|
4155
|
-
emailEnabled:
|
|
4156
|
-
emailRequired:
|
|
4157
|
-
usernameEnabled:
|
|
4158
|
-
usernameRequired:
|
|
4159
|
-
phoneEnabled:
|
|
4160
|
-
phoneRequired:
|
|
4161
|
-
verifyEmailRequired:
|
|
4162
|
-
verifyPhoneRequired:
|
|
4163
|
-
firstNameLastNameEnabled:
|
|
4164
|
-
firstNameLastNameRequired:
|
|
4165
|
-
resetPasswordAllowed:
|
|
4166
|
-
passwordPolicy:
|
|
4167
|
-
minLength:
|
|
4168
|
-
requireUppercase:
|
|
4169
|
-
requireLowercase:
|
|
4170
|
-
requireNumbers:
|
|
4171
|
-
requireSpecialCharacters:
|
|
4152
|
+
declare const userRealmConfigSchema: alepha1.TObject<{
|
|
4153
|
+
settings: alepha1.TObject<{
|
|
4154
|
+
registrationAllowed: alepha1.TBoolean;
|
|
4155
|
+
emailEnabled: alepha1.TBoolean;
|
|
4156
|
+
emailRequired: alepha1.TBoolean;
|
|
4157
|
+
usernameEnabled: alepha1.TBoolean;
|
|
4158
|
+
usernameRequired: alepha1.TBoolean;
|
|
4159
|
+
phoneEnabled: alepha1.TBoolean;
|
|
4160
|
+
phoneRequired: alepha1.TBoolean;
|
|
4161
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
4162
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
4163
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
4164
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
4165
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
4166
|
+
passwordPolicy: alepha1.TObject<{
|
|
4167
|
+
minLength: alepha1.TInteger;
|
|
4168
|
+
requireUppercase: alepha1.TBoolean;
|
|
4169
|
+
requireLowercase: alepha1.TBoolean;
|
|
4170
|
+
requireNumbers: alepha1.TBoolean;
|
|
4171
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
4172
4172
|
}>;
|
|
4173
4173
|
}>;
|
|
4174
|
-
realmName:
|
|
4175
|
-
authenticationMethods:
|
|
4176
|
-
name:
|
|
4177
|
-
type:
|
|
4174
|
+
realmName: alepha1.TString;
|
|
4175
|
+
authenticationMethods: alepha1.TArray<alepha1.TObject<{
|
|
4176
|
+
name: alepha1.TString;
|
|
4177
|
+
type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
4178
4178
|
}>>;
|
|
4179
4179
|
}>;
|
|
4180
4180
|
type UserRealmConfig = Static<typeof userRealmConfigSchema>;
|
|
4181
4181
|
//#endregion
|
|
4182
4182
|
//#region src/api-users/schemas/userResourceSchema.d.ts
|
|
4183
|
-
declare const userResourceSchema:
|
|
4184
|
-
id: PgAttr<PgAttr<
|
|
4185
|
-
version: PgAttr<PgAttr<
|
|
4186
|
-
createdAt: PgAttr<PgAttr<
|
|
4187
|
-
updatedAt: PgAttr<PgAttr<
|
|
4188
|
-
realm: PgAttr<
|
|
4189
|
-
username:
|
|
4190
|
-
email:
|
|
4191
|
-
phoneNumber:
|
|
4192
|
-
roles: PgAttr<
|
|
4193
|
-
firstName:
|
|
4194
|
-
lastName:
|
|
4195
|
-
picture:
|
|
4196
|
-
enabled: PgAttr<
|
|
4197
|
-
emailVerified: PgAttr<
|
|
4183
|
+
declare const userResourceSchema: alepha1.TObject<{
|
|
4184
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4185
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4186
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4187
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4188
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
4189
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
4190
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
4191
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
4192
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
4193
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
4194
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
4195
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
4196
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
4197
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
4198
4198
|
}>;
|
|
4199
4199
|
type UserResource = Static<typeof userResourceSchema>;
|
|
4200
4200
|
//#endregion
|
|
4201
4201
|
//#region src/api-files/entities/files.d.ts
|
|
4202
|
-
declare const files:
|
|
4203
|
-
id:
|
|
4204
|
-
version:
|
|
4205
|
-
createdAt:
|
|
4206
|
-
updatedAt:
|
|
4207
|
-
blobId:
|
|
4208
|
-
creator:
|
|
4209
|
-
creatorRealm:
|
|
4210
|
-
creatorName:
|
|
4211
|
-
bucket:
|
|
4212
|
-
expirationDate:
|
|
4213
|
-
name:
|
|
4214
|
-
size:
|
|
4215
|
-
mimeType:
|
|
4216
|
-
tags:
|
|
4217
|
-
checksum:
|
|
4202
|
+
declare const files: alepha_orm198.EntityDescriptor<alepha1.TObject<{
|
|
4203
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4204
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4205
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4206
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4207
|
+
blobId: alepha1.TString;
|
|
4208
|
+
creator: alepha1.TOptional<alepha1.TString>;
|
|
4209
|
+
creatorRealm: alepha1.TOptional<alepha1.TString>;
|
|
4210
|
+
creatorName: alepha1.TOptional<alepha1.TString>;
|
|
4211
|
+
bucket: alepha1.TString;
|
|
4212
|
+
expirationDate: alepha1.TOptional<alepha1.TString>;
|
|
4213
|
+
name: alepha1.TString;
|
|
4214
|
+
size: alepha1.TNumber;
|
|
4215
|
+
mimeType: alepha1.TString;
|
|
4216
|
+
tags: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
4217
|
+
checksum: alepha1.TOptional<alepha1.TString>;
|
|
4218
4218
|
}>>;
|
|
4219
4219
|
type FileEntity = Static<typeof files.schema>;
|
|
4220
4220
|
//#endregion
|
|
4221
4221
|
//#region src/api-files/schemas/fileQuerySchema.d.ts
|
|
4222
|
-
declare const fileQuerySchema:
|
|
4223
|
-
page:
|
|
4224
|
-
size:
|
|
4225
|
-
sort:
|
|
4226
|
-
bucket:
|
|
4227
|
-
tags:
|
|
4228
|
-
name:
|
|
4229
|
-
mimeType:
|
|
4230
|
-
creator:
|
|
4231
|
-
createdAfter:
|
|
4232
|
-
createdBefore:
|
|
4222
|
+
declare const fileQuerySchema: alepha1.TObject<{
|
|
4223
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
4224
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
4225
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
4226
|
+
bucket: alepha1.TOptional<alepha1.TString>;
|
|
4227
|
+
tags: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
4228
|
+
name: alepha1.TOptional<alepha1.TString>;
|
|
4229
|
+
mimeType: alepha1.TOptional<alepha1.TString>;
|
|
4230
|
+
creator: alepha1.TOptional<alepha1.TString>;
|
|
4231
|
+
createdAfter: alepha1.TOptional<alepha1.TString>;
|
|
4232
|
+
createdBefore: alepha1.TOptional<alepha1.TString>;
|
|
4233
4233
|
}>;
|
|
4234
4234
|
type FileQuery = Static<typeof fileQuerySchema>;
|
|
4235
4235
|
//#endregion
|
|
4236
4236
|
//#region src/api-files/schemas/fileResourceSchema.d.ts
|
|
4237
|
-
declare const fileResourceSchema:
|
|
4238
|
-
id: PgAttr<PgAttr<
|
|
4239
|
-
version: PgAttr<PgAttr<
|
|
4240
|
-
createdAt: PgAttr<PgAttr<
|
|
4241
|
-
updatedAt: PgAttr<PgAttr<
|
|
4242
|
-
blobId:
|
|
4243
|
-
creator:
|
|
4244
|
-
creatorRealm:
|
|
4245
|
-
creatorName:
|
|
4246
|
-
bucket:
|
|
4247
|
-
expirationDate:
|
|
4248
|
-
name:
|
|
4249
|
-
size:
|
|
4250
|
-
mimeType:
|
|
4251
|
-
tags:
|
|
4252
|
-
checksum:
|
|
4237
|
+
declare const fileResourceSchema: alepha1.TObject<{
|
|
4238
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4239
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4240
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4241
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4242
|
+
blobId: alepha1.TString;
|
|
4243
|
+
creator: alepha1.TOptional<alepha1.TString>;
|
|
4244
|
+
creatorRealm: alepha1.TOptional<alepha1.TString>;
|
|
4245
|
+
creatorName: alepha1.TOptional<alepha1.TString>;
|
|
4246
|
+
bucket: alepha1.TString;
|
|
4247
|
+
expirationDate: alepha1.TOptional<alepha1.TString>;
|
|
4248
|
+
name: alepha1.TString;
|
|
4249
|
+
size: alepha1.TNumber;
|
|
4250
|
+
mimeType: alepha1.TString;
|
|
4251
|
+
tags: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
4252
|
+
checksum: alepha1.TOptional<alepha1.TString>;
|
|
4253
4253
|
}>;
|
|
4254
4254
|
type FileResource = Static<typeof fileResourceSchema>;
|
|
4255
4255
|
//#endregion
|
|
4256
4256
|
//#region src/api-files/schemas/storageStatsSchema.d.ts
|
|
4257
|
-
declare const storageStatsSchema:
|
|
4258
|
-
totalSize:
|
|
4259
|
-
totalFiles:
|
|
4260
|
-
byBucket:
|
|
4261
|
-
bucket:
|
|
4262
|
-
totalSize:
|
|
4263
|
-
fileCount:
|
|
4257
|
+
declare const storageStatsSchema: alepha1.TObject<{
|
|
4258
|
+
totalSize: alepha1.TNumber;
|
|
4259
|
+
totalFiles: alepha1.TNumber;
|
|
4260
|
+
byBucket: alepha1.TArray<alepha1.TObject<{
|
|
4261
|
+
bucket: alepha1.TString;
|
|
4262
|
+
totalSize: alepha1.TNumber;
|
|
4263
|
+
fileCount: alepha1.TNumber;
|
|
4264
4264
|
}>>;
|
|
4265
|
-
byMimeType:
|
|
4266
|
-
mimeType:
|
|
4267
|
-
fileCount:
|
|
4265
|
+
byMimeType: alepha1.TArray<alepha1.TObject<{
|
|
4266
|
+
mimeType: alepha1.TString;
|
|
4267
|
+
fileCount: alepha1.TNumber;
|
|
4268
4268
|
}>>;
|
|
4269
4269
|
}>;
|
|
4270
4270
|
type StorageStats = Static<typeof storageStatsSchema>;
|
|
@@ -4273,27 +4273,27 @@ type StorageStats = Static<typeof storageStatsSchema>;
|
|
|
4273
4273
|
declare class FileService {
|
|
4274
4274
|
protected readonly alepha: Alepha;
|
|
4275
4275
|
protected readonly log: alepha_logger1.Logger;
|
|
4276
|
-
protected readonly fileRepository:
|
|
4277
|
-
id:
|
|
4278
|
-
version:
|
|
4279
|
-
createdAt:
|
|
4280
|
-
updatedAt:
|
|
4281
|
-
blobId:
|
|
4282
|
-
creator:
|
|
4283
|
-
creatorRealm:
|
|
4284
|
-
creatorName:
|
|
4285
|
-
bucket:
|
|
4286
|
-
expirationDate:
|
|
4287
|
-
name:
|
|
4288
|
-
size:
|
|
4289
|
-
mimeType:
|
|
4290
|
-
tags:
|
|
4291
|
-
checksum:
|
|
4276
|
+
protected readonly fileRepository: alepha_orm198.Repository<alepha1.TObject<{
|
|
4277
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4278
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4279
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4280
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4281
|
+
blobId: alepha1.TString;
|
|
4282
|
+
creator: alepha1.TOptional<alepha1.TString>;
|
|
4283
|
+
creatorRealm: alepha1.TOptional<alepha1.TString>;
|
|
4284
|
+
creatorName: alepha1.TOptional<alepha1.TString>;
|
|
4285
|
+
bucket: alepha1.TString;
|
|
4286
|
+
expirationDate: alepha1.TOptional<alepha1.TString>;
|
|
4287
|
+
name: alepha1.TString;
|
|
4288
|
+
size: alepha1.TNumber;
|
|
4289
|
+
mimeType: alepha1.TString;
|
|
4290
|
+
tags: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
4291
|
+
checksum: alepha1.TOptional<alepha1.TString>;
|
|
4292
4292
|
}>>;
|
|
4293
4293
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
4294
4294
|
protected readonly defaultBucket: BucketDescriptor;
|
|
4295
|
-
protected onUploadFile:
|
|
4296
|
-
protected onDeleteBucketFile:
|
|
4295
|
+
protected onUploadFile: alepha1.HookDescriptor<"bucket:file:uploaded">;
|
|
4296
|
+
protected onDeleteBucketFile: alepha1.HookDescriptor<"bucket:file:deleted">;
|
|
4297
4297
|
/**
|
|
4298
4298
|
* Calculates SHA-256 checksum of a file.
|
|
4299
4299
|
*
|
|
@@ -4427,34 +4427,34 @@ declare class FileController {
|
|
|
4427
4427
|
* Supports filtering by bucket and tags.
|
|
4428
4428
|
*/
|
|
4429
4429
|
readonly findFiles: alepha_server0.ActionDescriptorFn<{
|
|
4430
|
-
query:
|
|
4431
|
-
page:
|
|
4432
|
-
size:
|
|
4433
|
-
sort:
|
|
4434
|
-
bucket:
|
|
4435
|
-
tags:
|
|
4436
|
-
name:
|
|
4437
|
-
mimeType:
|
|
4438
|
-
creator:
|
|
4439
|
-
createdAfter:
|
|
4440
|
-
createdBefore:
|
|
4430
|
+
query: alepha1.TObject<{
|
|
4431
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
4432
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
4433
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
4434
|
+
bucket: alepha1.TOptional<alepha1.TString>;
|
|
4435
|
+
tags: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
4436
|
+
name: alepha1.TOptional<alepha1.TString>;
|
|
4437
|
+
mimeType: alepha1.TOptional<alepha1.TString>;
|
|
4438
|
+
creator: alepha1.TOptional<alepha1.TString>;
|
|
4439
|
+
createdAfter: alepha1.TOptional<alepha1.TString>;
|
|
4440
|
+
createdBefore: alepha1.TOptional<alepha1.TString>;
|
|
4441
4441
|
}>;
|
|
4442
|
-
response:
|
|
4443
|
-
id:
|
|
4444
|
-
version:
|
|
4445
|
-
createdAt:
|
|
4446
|
-
updatedAt:
|
|
4447
|
-
blobId:
|
|
4448
|
-
creator:
|
|
4449
|
-
creatorRealm:
|
|
4450
|
-
creatorName:
|
|
4451
|
-
bucket:
|
|
4452
|
-
expirationDate:
|
|
4453
|
-
name:
|
|
4454
|
-
size:
|
|
4455
|
-
mimeType:
|
|
4456
|
-
tags:
|
|
4457
|
-
checksum:
|
|
4442
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
4443
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4444
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4445
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4446
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4447
|
+
blobId: alepha1.TString;
|
|
4448
|
+
creator: alepha1.TOptional<alepha1.TString>;
|
|
4449
|
+
creatorRealm: alepha1.TOptional<alepha1.TString>;
|
|
4450
|
+
creatorName: alepha1.TOptional<alepha1.TString>;
|
|
4451
|
+
bucket: alepha1.TString;
|
|
4452
|
+
expirationDate: alepha1.TOptional<alepha1.TString>;
|
|
4453
|
+
name: alepha1.TString;
|
|
4454
|
+
size: alepha1.TNumber;
|
|
4455
|
+
mimeType: alepha1.TString;
|
|
4456
|
+
tags: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
4457
|
+
checksum: alepha1.TOptional<alepha1.TString>;
|
|
4458
4458
|
}>>;
|
|
4459
4459
|
}>;
|
|
4460
4460
|
/**
|
|
@@ -4462,13 +4462,13 @@ declare class FileController {
|
|
|
4462
4462
|
* Removes the file from the bucket and cleans up the database record.
|
|
4463
4463
|
*/
|
|
4464
4464
|
readonly deleteFile: alepha_server0.ActionDescriptorFn<{
|
|
4465
|
-
params:
|
|
4466
|
-
id:
|
|
4465
|
+
params: alepha1.TObject<{
|
|
4466
|
+
id: alepha1.TString;
|
|
4467
4467
|
}>;
|
|
4468
|
-
response:
|
|
4469
|
-
ok:
|
|
4470
|
-
id:
|
|
4471
|
-
count:
|
|
4468
|
+
response: alepha1.TObject<{
|
|
4469
|
+
ok: alepha1.TBoolean;
|
|
4470
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
4471
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
4472
4472
|
}>;
|
|
4473
4473
|
}>;
|
|
4474
4474
|
/**
|
|
@@ -4477,29 +4477,29 @@ declare class FileController {
|
|
|
4477
4477
|
* Optionally specify bucket and expiration date.
|
|
4478
4478
|
*/
|
|
4479
4479
|
readonly uploadFile: alepha_server0.ActionDescriptorFn<{
|
|
4480
|
-
body:
|
|
4481
|
-
file:
|
|
4480
|
+
body: alepha1.TObject<{
|
|
4481
|
+
file: alepha1.TFile;
|
|
4482
4482
|
}>;
|
|
4483
|
-
query:
|
|
4484
|
-
expirationDate:
|
|
4485
|
-
bucket:
|
|
4483
|
+
query: alepha1.TObject<{
|
|
4484
|
+
expirationDate: alepha1.TOptional<alepha1.TString>;
|
|
4485
|
+
bucket: alepha1.TOptional<alepha1.TString>;
|
|
4486
4486
|
}>;
|
|
4487
|
-
response:
|
|
4488
|
-
id:
|
|
4489
|
-
version:
|
|
4490
|
-
createdAt:
|
|
4491
|
-
updatedAt:
|
|
4492
|
-
blobId:
|
|
4493
|
-
creator:
|
|
4494
|
-
creatorRealm:
|
|
4495
|
-
creatorName:
|
|
4496
|
-
bucket:
|
|
4497
|
-
expirationDate:
|
|
4498
|
-
name:
|
|
4499
|
-
size:
|
|
4500
|
-
mimeType:
|
|
4501
|
-
tags:
|
|
4502
|
-
checksum:
|
|
4487
|
+
response: alepha1.TObject<{
|
|
4488
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4489
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4490
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4491
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4492
|
+
blobId: alepha1.TString;
|
|
4493
|
+
creator: alepha1.TOptional<alepha1.TString>;
|
|
4494
|
+
creatorRealm: alepha1.TOptional<alepha1.TString>;
|
|
4495
|
+
creatorName: alepha1.TOptional<alepha1.TString>;
|
|
4496
|
+
bucket: alepha1.TString;
|
|
4497
|
+
expirationDate: alepha1.TOptional<alepha1.TString>;
|
|
4498
|
+
name: alepha1.TString;
|
|
4499
|
+
size: alepha1.TNumber;
|
|
4500
|
+
mimeType: alepha1.TString;
|
|
4501
|
+
tags: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
4502
|
+
checksum: alepha1.TOptional<alepha1.TString>;
|
|
4503
4503
|
}>;
|
|
4504
4504
|
}>;
|
|
4505
4505
|
/**
|
|
@@ -4507,30 +4507,30 @@ declare class FileController {
|
|
|
4507
4507
|
* Allows updating name, tags, and expiration date without modifying file content.
|
|
4508
4508
|
*/
|
|
4509
4509
|
readonly updateFile: alepha_server0.ActionDescriptorFn<{
|
|
4510
|
-
params:
|
|
4511
|
-
id:
|
|
4510
|
+
params: alepha1.TObject<{
|
|
4511
|
+
id: alepha1.TString;
|
|
4512
4512
|
}>;
|
|
4513
|
-
body:
|
|
4514
|
-
name:
|
|
4515
|
-
tags:
|
|
4516
|
-
expirationDate:
|
|
4513
|
+
body: alepha1.TObject<{
|
|
4514
|
+
name: alepha1.TOptional<alepha1.TString>;
|
|
4515
|
+
tags: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
4516
|
+
expirationDate: alepha1.TOptional<alepha1.TString>;
|
|
4517
4517
|
}>;
|
|
4518
|
-
response:
|
|
4519
|
-
id:
|
|
4520
|
-
version:
|
|
4521
|
-
createdAt:
|
|
4522
|
-
updatedAt:
|
|
4523
|
-
blobId:
|
|
4524
|
-
creator:
|
|
4525
|
-
creatorRealm:
|
|
4526
|
-
creatorName:
|
|
4527
|
-
bucket:
|
|
4528
|
-
expirationDate:
|
|
4529
|
-
name:
|
|
4530
|
-
size:
|
|
4531
|
-
mimeType:
|
|
4532
|
-
tags:
|
|
4533
|
-
checksum:
|
|
4518
|
+
response: alepha1.TObject<{
|
|
4519
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4520
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4521
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4522
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
4523
|
+
blobId: alepha1.TString;
|
|
4524
|
+
creator: alepha1.TOptional<alepha1.TString>;
|
|
4525
|
+
creatorRealm: alepha1.TOptional<alepha1.TString>;
|
|
4526
|
+
creatorName: alepha1.TOptional<alepha1.TString>;
|
|
4527
|
+
bucket: alepha1.TString;
|
|
4528
|
+
expirationDate: alepha1.TOptional<alepha1.TString>;
|
|
4529
|
+
name: alepha1.TString;
|
|
4530
|
+
size: alepha1.TNumber;
|
|
4531
|
+
mimeType: alepha1.TString;
|
|
4532
|
+
tags: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
4533
|
+
checksum: alepha1.TOptional<alepha1.TString>;
|
|
4534
4534
|
}>;
|
|
4535
4535
|
}>;
|
|
4536
4536
|
/**
|
|
@@ -4539,10 +4539,10 @@ declare class FileController {
|
|
|
4539
4539
|
* Cached with ETag support for 1 year (immutable).
|
|
4540
4540
|
*/
|
|
4541
4541
|
readonly streamFile: alepha_server0.ActionDescriptorFn<{
|
|
4542
|
-
params:
|
|
4543
|
-
id:
|
|
4542
|
+
params: alepha1.TObject<{
|
|
4543
|
+
id: alepha1.TString;
|
|
4544
4544
|
}>;
|
|
4545
|
-
response:
|
|
4545
|
+
response: alepha1.TFile;
|
|
4546
4546
|
}>;
|
|
4547
4547
|
}
|
|
4548
4548
|
//#endregion
|
|
@@ -4587,47 +4587,47 @@ declare class SessionService {
|
|
|
4587
4587
|
protected readonly log: alepha_logger1.Logger;
|
|
4588
4588
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
4589
4589
|
protected readonly fileController: HttpVirtualClient<FileController>;
|
|
4590
|
-
users(userRealmName?: string): Repository$1<
|
|
4591
|
-
id: PgAttr<PgAttr<
|
|
4592
|
-
version: PgAttr<PgAttr<
|
|
4593
|
-
createdAt: PgAttr<PgAttr<
|
|
4594
|
-
updatedAt: PgAttr<PgAttr<
|
|
4595
|
-
realm: PgAttr<
|
|
4596
|
-
username:
|
|
4597
|
-
email:
|
|
4598
|
-
phoneNumber:
|
|
4599
|
-
roles: PgAttr<
|
|
4600
|
-
firstName:
|
|
4601
|
-
lastName:
|
|
4602
|
-
picture:
|
|
4603
|
-
enabled: PgAttr<
|
|
4604
|
-
emailVerified: PgAttr<
|
|
4590
|
+
users(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
4591
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4592
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4593
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4594
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4595
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
4596
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
4597
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
4598
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
4599
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
4600
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
4601
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
4602
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
4603
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
4604
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
4605
4605
|
}>>;
|
|
4606
|
-
sessions(userRealmName?: string): Repository$1<
|
|
4607
|
-
id: PgAttr<PgAttr<
|
|
4608
|
-
version: PgAttr<PgAttr<
|
|
4609
|
-
createdAt: PgAttr<PgAttr<
|
|
4610
|
-
updatedAt: PgAttr<PgAttr<
|
|
4611
|
-
refreshToken:
|
|
4612
|
-
userId: PgAttr<
|
|
4613
|
-
expiresAt:
|
|
4614
|
-
ip:
|
|
4615
|
-
userAgent:
|
|
4616
|
-
os:
|
|
4617
|
-
browser:
|
|
4618
|
-
device:
|
|
4606
|
+
sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
4607
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4608
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4609
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4610
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4611
|
+
refreshToken: alepha1.TString;
|
|
4612
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
4613
|
+
expiresAt: alepha1.TString;
|
|
4614
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
4615
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
4616
|
+
os: alepha1.TString;
|
|
4617
|
+
browser: alepha1.TString;
|
|
4618
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
4619
4619
|
}>>;
|
|
4620
4620
|
}>>;
|
|
4621
|
-
identities(userRealmName?: string): Repository$1<
|
|
4622
|
-
id: PgAttr<PgAttr<
|
|
4623
|
-
version: PgAttr<PgAttr<
|
|
4624
|
-
createdAt: PgAttr<PgAttr<
|
|
4625
|
-
updatedAt: PgAttr<PgAttr<
|
|
4626
|
-
userId: PgAttr<
|
|
4627
|
-
password:
|
|
4628
|
-
provider:
|
|
4629
|
-
providerUserId:
|
|
4630
|
-
providerData:
|
|
4621
|
+
identities(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
4622
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4623
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4624
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4625
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4626
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
4627
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
4628
|
+
provider: alepha1.TString;
|
|
4629
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
4630
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
4631
4631
|
}>>;
|
|
4632
4632
|
/**
|
|
4633
4633
|
* Random delay to prevent timing attacks (50-200ms)
|
|
@@ -4643,36 +4643,36 @@ declare class SessionService {
|
|
|
4643
4643
|
sessionId: string;
|
|
4644
4644
|
}>;
|
|
4645
4645
|
refreshSession(refreshToken: string, userRealmName?: string): Promise<{
|
|
4646
|
-
user: PgStatic<
|
|
4647
|
-
id: PgAttr<PgAttr<
|
|
4648
|
-
version: PgAttr<PgAttr<
|
|
4649
|
-
createdAt: PgAttr<PgAttr<
|
|
4650
|
-
updatedAt: PgAttr<PgAttr<
|
|
4651
|
-
realm: PgAttr<
|
|
4652
|
-
username:
|
|
4653
|
-
email:
|
|
4654
|
-
phoneNumber:
|
|
4655
|
-
roles: PgAttr<
|
|
4656
|
-
firstName:
|
|
4657
|
-
lastName:
|
|
4658
|
-
picture:
|
|
4659
|
-
enabled: PgAttr<
|
|
4660
|
-
emailVerified: PgAttr<
|
|
4661
|
-
}>, PgRelationMap<
|
|
4662
|
-
id: PgAttr<PgAttr<
|
|
4663
|
-
version: PgAttr<PgAttr<
|
|
4664
|
-
createdAt: PgAttr<PgAttr<
|
|
4665
|
-
updatedAt: PgAttr<PgAttr<
|
|
4666
|
-
realm: PgAttr<
|
|
4667
|
-
username:
|
|
4668
|
-
email:
|
|
4669
|
-
phoneNumber:
|
|
4670
|
-
roles: PgAttr<
|
|
4671
|
-
firstName:
|
|
4672
|
-
lastName:
|
|
4673
|
-
picture:
|
|
4674
|
-
enabled: PgAttr<
|
|
4675
|
-
emailVerified: PgAttr<
|
|
4646
|
+
user: PgStatic<alepha1.TObject<{
|
|
4647
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4648
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4649
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4650
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4651
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
4652
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
4653
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
4654
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
4655
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
4656
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
4657
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
4658
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
4659
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
4660
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
4661
|
+
}>, PgRelationMap<alepha1.TObject<{
|
|
4662
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4663
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4664
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4665
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4666
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
4667
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
4668
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
4669
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
4670
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
4671
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
4672
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
4673
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
4674
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
4675
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
4676
4676
|
}>>>;
|
|
4677
4677
|
expiresIn: number;
|
|
4678
4678
|
sessionId: string;
|
|
@@ -4734,7 +4734,7 @@ declare class SessionService {
|
|
|
4734
4734
|
*
|
|
4735
4735
|
* @module alepha.api.users
|
|
4736
4736
|
*/
|
|
4737
|
-
declare const AlephaApiUsers:
|
|
4737
|
+
declare const AlephaApiUsers: alepha1.Service<alepha1.Module>;
|
|
4738
4738
|
//#endregion
|
|
4739
4739
|
export { $userRealm, AlephaApiUsers, CompletePasswordResetRequest, CompleteRegistrationRequest, CreateUser, CredentialService, DEFAULT_USER_REALM_NAME, IdentityController, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, LoginInput, PasswordResetIntentResponse, RealmAuthSettings, RegisterInput, RegistrationIntentResponse, RegistrationService, ResetPasswordInput, ResetPasswordRequest, SessionController, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserController, UserEntity, UserQuery, UserRealm, UserRealmConfig, UserRealmController, UserRealmDescriptor, UserRealmOptions, UserRealmProvider, UserRealmRepositories, UserResource, UserService, completePasswordResetRequestSchema, completeRegistrationRequestSchema, createUserSchema, identities, identityQuerySchema, identityResourceSchema, loginSchema, passwordResetIntentResponseSchema, realmAuthSettingsAtom, registerSchema, registrationIntentResponseSchema, resetPasswordRequestSchema, resetPasswordSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userRealmConfigSchema, userResourceSchema, users };
|
|
4740
4740
|
//# sourceMappingURL=index.d.cts.map
|