alepha 0.13.5 → 0.13.6
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-users/index.d.ts +777 -777
- package/dist/redis/index.d.ts +10 -10
- package/dist/scheduler/index.d.ts +6 -6
- package/dist/security/index.d.ts +28 -28
- package/dist/server-auth/index.d.ts +152 -152
- package/dist/websocket/index.d.ts +7 -7
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha1 from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
3
|
import * as alepha_api_notifications0 from "alepha/api/notifications";
|
|
4
4
|
import { VerificationController } from "alepha/api/verifications";
|
|
5
|
-
import * as
|
|
5
|
+
import * as alepha_orm198 from "alepha/orm";
|
|
6
6
|
import { Page as Page$1, Repository } from "alepha/orm";
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
7
|
+
import * as alepha_server14 from "alepha/server";
|
|
8
|
+
import * as alepha_logger0 from "alepha/logger";
|
|
9
9
|
import { UserRealmOptions as UserRealmOptions$1 } from "alepha/api/users";
|
|
10
10
|
import * as alepha_bucket0 from "alepha/bucket";
|
|
11
11
|
import * as alepha_cache0 from "alepha/cache";
|
|
@@ -28,78 +28,78 @@ import "postgres";
|
|
|
28
28
|
import "drizzle-orm/sqlite-core";
|
|
29
29
|
|
|
30
30
|
//#region ../../src/api-users/atoms/realmAuthSettingsAtom.d.ts
|
|
31
|
-
declare const realmAuthSettingsAtom:
|
|
32
|
-
registrationAllowed:
|
|
33
|
-
emailEnabled:
|
|
34
|
-
emailRequired:
|
|
35
|
-
usernameEnabled:
|
|
36
|
-
usernameRequired:
|
|
37
|
-
phoneEnabled:
|
|
38
|
-
phoneRequired:
|
|
39
|
-
verifyEmailRequired:
|
|
40
|
-
verifyPhoneRequired:
|
|
41
|
-
firstNameLastNameEnabled:
|
|
42
|
-
firstNameLastNameRequired:
|
|
43
|
-
resetPasswordAllowed:
|
|
44
|
-
passwordPolicy:
|
|
45
|
-
minLength:
|
|
46
|
-
requireUppercase:
|
|
47
|
-
requireLowercase:
|
|
48
|
-
requireNumbers:
|
|
49
|
-
requireSpecialCharacters:
|
|
31
|
+
declare const realmAuthSettingsAtom: alepha1.Atom<alepha1.TObject<{
|
|
32
|
+
registrationAllowed: alepha1.TBoolean;
|
|
33
|
+
emailEnabled: alepha1.TBoolean;
|
|
34
|
+
emailRequired: alepha1.TBoolean;
|
|
35
|
+
usernameEnabled: alepha1.TBoolean;
|
|
36
|
+
usernameRequired: alepha1.TBoolean;
|
|
37
|
+
phoneEnabled: alepha1.TBoolean;
|
|
38
|
+
phoneRequired: alepha1.TBoolean;
|
|
39
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
40
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
41
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
42
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
43
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
44
|
+
passwordPolicy: alepha1.TObject<{
|
|
45
|
+
minLength: alepha1.TInteger;
|
|
46
|
+
requireUppercase: alepha1.TBoolean;
|
|
47
|
+
requireLowercase: alepha1.TBoolean;
|
|
48
|
+
requireNumbers: alepha1.TBoolean;
|
|
49
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
50
50
|
}>;
|
|
51
51
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
52
52
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
53
53
|
//#endregion
|
|
54
54
|
//#region ../../src/api-users/entities/identities.d.ts
|
|
55
|
-
declare const identities:
|
|
56
|
-
id:
|
|
57
|
-
version:
|
|
58
|
-
createdAt:
|
|
59
|
-
updatedAt:
|
|
60
|
-
userId:
|
|
61
|
-
password:
|
|
62
|
-
provider:
|
|
63
|
-
providerUserId:
|
|
64
|
-
providerData:
|
|
55
|
+
declare const identities: alepha_orm198.EntityPrimitive<alepha1.TObject<{
|
|
56
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
57
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
58
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
59
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
60
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
61
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
62
|
+
provider: alepha1.TString;
|
|
63
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
64
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
65
65
|
}>>;
|
|
66
66
|
type IdentityEntity = Static<typeof identities.schema>;
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region ../../src/api-users/entities/sessions.d.ts
|
|
69
|
-
declare const sessions:
|
|
70
|
-
id:
|
|
71
|
-
version:
|
|
72
|
-
createdAt:
|
|
73
|
-
updatedAt:
|
|
74
|
-
refreshToken:
|
|
75
|
-
userId:
|
|
76
|
-
expiresAt:
|
|
77
|
-
ip:
|
|
78
|
-
userAgent:
|
|
79
|
-
os:
|
|
80
|
-
browser:
|
|
81
|
-
device:
|
|
69
|
+
declare const sessions: alepha_orm198.EntityPrimitive<alepha1.TObject<{
|
|
70
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
71
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
72
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
73
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
74
|
+
refreshToken: alepha1.TString;
|
|
75
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
76
|
+
expiresAt: alepha1.TString;
|
|
77
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
78
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
79
|
+
os: alepha1.TString;
|
|
80
|
+
browser: alepha1.TString;
|
|
81
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
82
82
|
}>>;
|
|
83
83
|
}>>;
|
|
84
84
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region ../../src/api-users/entities/users.d.ts
|
|
87
87
|
declare const DEFAULT_USER_REALM_NAME = "default";
|
|
88
|
-
declare const users:
|
|
89
|
-
id:
|
|
90
|
-
version:
|
|
91
|
-
createdAt:
|
|
92
|
-
updatedAt:
|
|
93
|
-
realm:
|
|
94
|
-
username:
|
|
95
|
-
email:
|
|
96
|
-
phoneNumber:
|
|
97
|
-
roles:
|
|
98
|
-
firstName:
|
|
99
|
-
lastName:
|
|
100
|
-
picture:
|
|
101
|
-
enabled:
|
|
102
|
-
emailVerified:
|
|
88
|
+
declare const users: alepha_orm198.EntityPrimitive<alepha1.TObject<{
|
|
89
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
90
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
91
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
92
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
93
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
94
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
95
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
96
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
97
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
98
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
99
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
100
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
101
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
102
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
103
103
|
}>>;
|
|
104
104
|
type UserEntity = Static<typeof users.schema>;
|
|
105
105
|
//#endregion
|
|
@@ -116,51 +116,51 @@ interface UserRealm {
|
|
|
116
116
|
}
|
|
117
117
|
declare class UserRealmProvider {
|
|
118
118
|
protected readonly alepha: Alepha;
|
|
119
|
-
protected readonly defaultIdentities: Repository<
|
|
120
|
-
id:
|
|
121
|
-
version:
|
|
122
|
-
createdAt:
|
|
123
|
-
updatedAt:
|
|
124
|
-
userId:
|
|
125
|
-
password:
|
|
126
|
-
provider:
|
|
127
|
-
providerUserId:
|
|
128
|
-
providerData:
|
|
119
|
+
protected readonly defaultIdentities: Repository<alepha1.TObject<{
|
|
120
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
121
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
122
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
123
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
124
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
125
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
126
|
+
provider: alepha1.TString;
|
|
127
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
128
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
129
129
|
}>>;
|
|
130
|
-
protected readonly defaultSessions: Repository<
|
|
131
|
-
id:
|
|
132
|
-
version:
|
|
133
|
-
createdAt:
|
|
134
|
-
updatedAt:
|
|
135
|
-
refreshToken:
|
|
136
|
-
userId:
|
|
137
|
-
expiresAt:
|
|
138
|
-
ip:
|
|
139
|
-
userAgent:
|
|
140
|
-
os:
|
|
141
|
-
browser:
|
|
142
|
-
device:
|
|
130
|
+
protected readonly defaultSessions: Repository<alepha1.TObject<{
|
|
131
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
132
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
133
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
134
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
135
|
+
refreshToken: alepha1.TString;
|
|
136
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
137
|
+
expiresAt: alepha1.TString;
|
|
138
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
139
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
140
|
+
os: alepha1.TString;
|
|
141
|
+
browser: alepha1.TString;
|
|
142
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
143
143
|
}>>;
|
|
144
144
|
}>>;
|
|
145
|
-
protected readonly defaultUsers: Repository<
|
|
146
|
-
id:
|
|
147
|
-
version:
|
|
148
|
-
createdAt:
|
|
149
|
-
updatedAt:
|
|
150
|
-
realm:
|
|
151
|
-
username:
|
|
152
|
-
email:
|
|
153
|
-
phoneNumber:
|
|
154
|
-
roles:
|
|
155
|
-
firstName:
|
|
156
|
-
lastName:
|
|
157
|
-
picture:
|
|
158
|
-
enabled:
|
|
159
|
-
emailVerified:
|
|
145
|
+
protected readonly defaultUsers: Repository<alepha1.TObject<{
|
|
146
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
147
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
148
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
149
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
150
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
151
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
152
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
153
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
154
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
155
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
156
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
157
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
158
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
159
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
160
160
|
}>>;
|
|
161
161
|
protected realms: Map<string, UserRealm>;
|
|
162
162
|
avatars: alepha_bucket0.BucketPrimitive;
|
|
163
|
-
protected readonly onConfigure:
|
|
163
|
+
protected readonly onConfigure: alepha1.HookPrimitive<"configure">;
|
|
164
164
|
register(userRealmName: string, userRealmOptions?: UserRealmOptions$1): UserRealm;
|
|
165
165
|
/**
|
|
166
166
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
@@ -172,29 +172,29 @@ declare class UserRealmProvider {
|
|
|
172
172
|
}
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region ../../src/api-users/schemas/identityQuerySchema.d.ts
|
|
175
|
-
declare const identityQuerySchema:
|
|
176
|
-
page:
|
|
177
|
-
size:
|
|
178
|
-
sort:
|
|
179
|
-
userId:
|
|
180
|
-
provider:
|
|
175
|
+
declare const identityQuerySchema: alepha1.TObject<{
|
|
176
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
177
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
178
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
179
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
180
|
+
provider: alepha1.TOptional<alepha1.TString>;
|
|
181
181
|
}>;
|
|
182
182
|
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
183
183
|
//#endregion
|
|
184
184
|
//#region ../../src/api-users/services/IdentityService.d.ts
|
|
185
185
|
declare class IdentityService {
|
|
186
|
-
protected readonly log:
|
|
186
|
+
protected readonly log: alepha_logger0.Logger;
|
|
187
187
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
188
|
-
identities(userRealmName?: string):
|
|
189
|
-
id:
|
|
190
|
-
version:
|
|
191
|
-
createdAt:
|
|
192
|
-
updatedAt:
|
|
193
|
-
userId:
|
|
194
|
-
password:
|
|
195
|
-
provider:
|
|
196
|
-
providerUserId:
|
|
197
|
-
providerData:
|
|
188
|
+
identities(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
|
|
189
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
190
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
191
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
192
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
193
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
194
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
195
|
+
provider: alepha1.TString;
|
|
196
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
197
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
198
198
|
}>>;
|
|
199
199
|
/**
|
|
200
200
|
* Find identities with pagination and filtering.
|
|
@@ -218,91 +218,91 @@ declare class IdentityController {
|
|
|
218
218
|
/**
|
|
219
219
|
* Find identities with pagination and filtering.
|
|
220
220
|
*/
|
|
221
|
-
readonly findIdentities:
|
|
222
|
-
query:
|
|
223
|
-
page:
|
|
224
|
-
size:
|
|
225
|
-
sort:
|
|
226
|
-
userId:
|
|
227
|
-
provider:
|
|
228
|
-
userRealmName:
|
|
221
|
+
readonly findIdentities: alepha_server14.ActionPrimitiveFn<{
|
|
222
|
+
query: alepha1.TObject<{
|
|
223
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
224
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
225
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
226
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
227
|
+
provider: alepha1.TOptional<alepha1.TString>;
|
|
228
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
229
229
|
}>;
|
|
230
|
-
response:
|
|
231
|
-
id:
|
|
232
|
-
version:
|
|
233
|
-
createdAt:
|
|
234
|
-
updatedAt:
|
|
235
|
-
userId:
|
|
236
|
-
provider:
|
|
237
|
-
providerUserId:
|
|
238
|
-
providerData:
|
|
230
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
231
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
232
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
233
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
234
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
235
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
236
|
+
provider: alepha1.TString;
|
|
237
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
238
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
239
239
|
}>>;
|
|
240
240
|
}>;
|
|
241
241
|
/**
|
|
242
242
|
* Get an identity by ID.
|
|
243
243
|
*/
|
|
244
|
-
readonly getIdentity:
|
|
245
|
-
params:
|
|
246
|
-
id:
|
|
244
|
+
readonly getIdentity: alepha_server14.ActionPrimitiveFn<{
|
|
245
|
+
params: alepha1.TObject<{
|
|
246
|
+
id: alepha1.TString;
|
|
247
247
|
}>;
|
|
248
|
-
query:
|
|
249
|
-
userRealmName:
|
|
248
|
+
query: alepha1.TObject<{
|
|
249
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
250
250
|
}>;
|
|
251
|
-
response:
|
|
252
|
-
id:
|
|
253
|
-
version:
|
|
254
|
-
createdAt:
|
|
255
|
-
updatedAt:
|
|
256
|
-
userId:
|
|
257
|
-
provider:
|
|
258
|
-
providerUserId:
|
|
259
|
-
providerData:
|
|
251
|
+
response: alepha1.TObject<{
|
|
252
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
253
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
254
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
255
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
256
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
257
|
+
provider: alepha1.TString;
|
|
258
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
259
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
260
260
|
}>;
|
|
261
261
|
}>;
|
|
262
262
|
/**
|
|
263
263
|
* Delete an identity.
|
|
264
264
|
*/
|
|
265
|
-
readonly deleteIdentity:
|
|
266
|
-
params:
|
|
267
|
-
id:
|
|
265
|
+
readonly deleteIdentity: alepha_server14.ActionPrimitiveFn<{
|
|
266
|
+
params: alepha1.TObject<{
|
|
267
|
+
id: alepha1.TString;
|
|
268
268
|
}>;
|
|
269
|
-
query:
|
|
270
|
-
userRealmName:
|
|
269
|
+
query: alepha1.TObject<{
|
|
270
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
271
271
|
}>;
|
|
272
|
-
response:
|
|
273
|
-
ok:
|
|
274
|
-
id:
|
|
275
|
-
count:
|
|
272
|
+
response: alepha1.TObject<{
|
|
273
|
+
ok: alepha1.TBoolean;
|
|
274
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
275
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
276
276
|
}>;
|
|
277
277
|
}>;
|
|
278
278
|
}
|
|
279
279
|
//#endregion
|
|
280
280
|
//#region ../../src/api-users/schemas/sessionQuerySchema.d.ts
|
|
281
|
-
declare const sessionQuerySchema:
|
|
282
|
-
page:
|
|
283
|
-
size:
|
|
284
|
-
sort:
|
|
285
|
-
userId:
|
|
281
|
+
declare const sessionQuerySchema: alepha1.TObject<{
|
|
282
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
283
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
284
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
285
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
286
286
|
}>;
|
|
287
287
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
288
288
|
//#endregion
|
|
289
289
|
//#region ../../src/api-users/services/SessionCrudService.d.ts
|
|
290
290
|
declare class SessionCrudService {
|
|
291
|
-
protected readonly log:
|
|
291
|
+
protected readonly log: alepha_logger0.Logger;
|
|
292
292
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
293
|
-
sessions(userRealmName?: string):
|
|
294
|
-
id:
|
|
295
|
-
version:
|
|
296
|
-
createdAt:
|
|
297
|
-
updatedAt:
|
|
298
|
-
refreshToken:
|
|
299
|
-
userId:
|
|
300
|
-
expiresAt:
|
|
301
|
-
ip:
|
|
302
|
-
userAgent:
|
|
303
|
-
os:
|
|
304
|
-
browser:
|
|
305
|
-
device:
|
|
293
|
+
sessions(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
|
|
294
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
295
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
296
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
297
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
298
|
+
refreshToken: alepha1.TString;
|
|
299
|
+
userId: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_REF>;
|
|
300
|
+
expiresAt: alepha1.TString;
|
|
301
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
302
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
303
|
+
os: alepha1.TString;
|
|
304
|
+
browser: alepha1.TString;
|
|
305
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
306
306
|
}>>;
|
|
307
307
|
}>>;
|
|
308
308
|
/**
|
|
@@ -327,70 +327,70 @@ declare class SessionController {
|
|
|
327
327
|
/**
|
|
328
328
|
* Find sessions with pagination and filtering.
|
|
329
329
|
*/
|
|
330
|
-
readonly findSessions:
|
|
331
|
-
query:
|
|
332
|
-
page:
|
|
333
|
-
size:
|
|
334
|
-
sort:
|
|
335
|
-
userId:
|
|
336
|
-
userRealmName:
|
|
330
|
+
readonly findSessions: alepha_server14.ActionPrimitiveFn<{
|
|
331
|
+
query: alepha1.TObject<{
|
|
332
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
333
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
334
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
335
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
336
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
337
337
|
}>;
|
|
338
|
-
response:
|
|
339
|
-
id:
|
|
340
|
-
version:
|
|
341
|
-
createdAt:
|
|
342
|
-
updatedAt:
|
|
343
|
-
refreshToken:
|
|
344
|
-
userId:
|
|
345
|
-
expiresAt:
|
|
346
|
-
ip:
|
|
347
|
-
userAgent:
|
|
348
|
-
os:
|
|
349
|
-
browser:
|
|
350
|
-
device:
|
|
338
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
339
|
+
id: alepha1.TString;
|
|
340
|
+
version: alepha1.TNumber;
|
|
341
|
+
createdAt: alepha1.TString;
|
|
342
|
+
updatedAt: alepha1.TString;
|
|
343
|
+
refreshToken: alepha1.TString;
|
|
344
|
+
userId: alepha1.TString;
|
|
345
|
+
expiresAt: alepha1.TString;
|
|
346
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
347
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
348
|
+
os: alepha1.TString;
|
|
349
|
+
browser: alepha1.TString;
|
|
350
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
351
351
|
}>>;
|
|
352
352
|
}>>;
|
|
353
353
|
}>;
|
|
354
354
|
/**
|
|
355
355
|
* Get a session by ID.
|
|
356
356
|
*/
|
|
357
|
-
readonly getSession:
|
|
358
|
-
params:
|
|
359
|
-
id:
|
|
357
|
+
readonly getSession: alepha_server14.ActionPrimitiveFn<{
|
|
358
|
+
params: alepha1.TObject<{
|
|
359
|
+
id: alepha1.TString;
|
|
360
360
|
}>;
|
|
361
|
-
query:
|
|
362
|
-
userRealmName:
|
|
361
|
+
query: alepha1.TObject<{
|
|
362
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
363
363
|
}>;
|
|
364
|
-
response:
|
|
365
|
-
id:
|
|
366
|
-
version:
|
|
367
|
-
createdAt:
|
|
368
|
-
updatedAt:
|
|
369
|
-
refreshToken:
|
|
370
|
-
userId:
|
|
371
|
-
expiresAt:
|
|
372
|
-
ip:
|
|
373
|
-
userAgent:
|
|
374
|
-
os:
|
|
375
|
-
browser:
|
|
376
|
-
device:
|
|
364
|
+
response: alepha1.TObject<{
|
|
365
|
+
id: alepha1.TString;
|
|
366
|
+
version: alepha1.TNumber;
|
|
367
|
+
createdAt: alepha1.TString;
|
|
368
|
+
updatedAt: alepha1.TString;
|
|
369
|
+
refreshToken: alepha1.TString;
|
|
370
|
+
userId: alepha1.TString;
|
|
371
|
+
expiresAt: alepha1.TString;
|
|
372
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
373
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
374
|
+
os: alepha1.TString;
|
|
375
|
+
browser: alepha1.TString;
|
|
376
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
377
377
|
}>>;
|
|
378
378
|
}>;
|
|
379
379
|
}>;
|
|
380
380
|
/**
|
|
381
381
|
* Delete a session.
|
|
382
382
|
*/
|
|
383
|
-
readonly deleteSession:
|
|
384
|
-
params:
|
|
385
|
-
id:
|
|
383
|
+
readonly deleteSession: alepha_server14.ActionPrimitiveFn<{
|
|
384
|
+
params: alepha1.TObject<{
|
|
385
|
+
id: alepha1.TString;
|
|
386
386
|
}>;
|
|
387
|
-
query:
|
|
388
|
-
userRealmName:
|
|
387
|
+
query: alepha1.TObject<{
|
|
388
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
389
389
|
}>;
|
|
390
|
-
response:
|
|
391
|
-
ok:
|
|
392
|
-
id:
|
|
393
|
-
count:
|
|
390
|
+
response: alepha1.TObject<{
|
|
391
|
+
ok: alepha1.TBoolean;
|
|
392
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
393
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
394
394
|
}>;
|
|
395
395
|
}>;
|
|
396
396
|
}
|
|
@@ -1250,7 +1250,7 @@ declare abstract class ModelBuilder {
|
|
|
1250
1250
|
//#endregion
|
|
1251
1251
|
//#region ../../src/orm/providers/DrizzleKitProvider.d.ts
|
|
1252
1252
|
declare class DrizzleKitProvider {
|
|
1253
|
-
protected readonly log:
|
|
1253
|
+
protected readonly log: alepha_logger0.Logger;
|
|
1254
1254
|
protected readonly alepha: Alepha;
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Synchronize database with current schema definitions.
|
|
@@ -1286,11 +1286,11 @@ declare class DrizzleKitProvider {
|
|
|
1286
1286
|
*/
|
|
1287
1287
|
importDrizzleKit(): typeof DrizzleKit;
|
|
1288
1288
|
}
|
|
1289
|
-
declare const devMigrationsSchema:
|
|
1290
|
-
id:
|
|
1291
|
-
name:
|
|
1292
|
-
snapshot:
|
|
1293
|
-
created_at:
|
|
1289
|
+
declare const devMigrationsSchema: alepha1.TObject<{
|
|
1290
|
+
id: alepha1.TNumber;
|
|
1291
|
+
name: alepha1.TString;
|
|
1292
|
+
snapshot: alepha1.TString;
|
|
1293
|
+
created_at: alepha1.TString;
|
|
1294
1294
|
}>;
|
|
1295
1295
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
1296
1296
|
//#endregion
|
|
@@ -1298,7 +1298,7 @@ type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
|
1298
1298
|
type SQLLike = SQLWrapper | string;
|
|
1299
1299
|
declare abstract class DatabaseProvider {
|
|
1300
1300
|
protected readonly alepha: Alepha;
|
|
1301
|
-
protected readonly log:
|
|
1301
|
+
protected readonly log: alepha_logger0.Logger;
|
|
1302
1302
|
protected abstract readonly builder: ModelBuilder;
|
|
1303
1303
|
protected abstract readonly kit: DrizzleKitProvider;
|
|
1304
1304
|
abstract readonly db: PgDatabase<any>;
|
|
@@ -1487,7 +1487,7 @@ declare class QueryManager {
|
|
|
1487
1487
|
createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
|
|
1488
1488
|
column: string;
|
|
1489
1489
|
direction: "asc" | "desc";
|
|
1490
|
-
}>):
|
|
1490
|
+
}>): alepha1.Page<T>;
|
|
1491
1491
|
}
|
|
1492
1492
|
interface PgJoin {
|
|
1493
1493
|
table: string;
|
|
@@ -1795,7 +1795,7 @@ interface StatementOptions {
|
|
|
1795
1795
|
declare module "alepha" {
|
|
1796
1796
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
1797
1797
|
}
|
|
1798
|
-
declare const envSchema:
|
|
1798
|
+
declare const envSchema: alepha1.TObject<{
|
|
1799
1799
|
/**
|
|
1800
1800
|
* Main configuration for database connection.
|
|
1801
1801
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -1803,21 +1803,21 @@ declare const envSchema: alepha23.TObject<{
|
|
|
1803
1803
|
* or
|
|
1804
1804
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
1805
1805
|
*/
|
|
1806
|
-
DATABASE_URL:
|
|
1806
|
+
DATABASE_URL: alepha1.TOptional<alepha1.TString>;
|
|
1807
1807
|
/**
|
|
1808
1808
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
1809
1809
|
*
|
|
1810
1810
|
* It will monkey patch drizzle tables.
|
|
1811
1811
|
*/
|
|
1812
|
-
POSTGRES_SCHEMA:
|
|
1812
|
+
POSTGRES_SCHEMA: alepha1.TOptional<alepha1.TString>;
|
|
1813
1813
|
}>;
|
|
1814
1814
|
//#endregion
|
|
1815
1815
|
//#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
1816
1816
|
/**
|
|
1817
1817
|
* Configuration options for the Node.js SQLite database provider.
|
|
1818
1818
|
*/
|
|
1819
|
-
declare const nodeSqliteOptions:
|
|
1820
|
-
path:
|
|
1819
|
+
declare const nodeSqliteOptions: alepha1.Atom<alepha1.TObject<{
|
|
1820
|
+
path: alepha1.TOptional<alepha1.TString>;
|
|
1821
1821
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
1822
1822
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
1823
1823
|
declare module "alepha" {
|
|
@@ -1902,30 +1902,30 @@ declare module "alepha" {
|
|
|
1902
1902
|
//#endregion
|
|
1903
1903
|
//#region ../../src/api-users/notifications/UserNotifications.d.ts
|
|
1904
1904
|
declare class UserNotifications {
|
|
1905
|
-
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<
|
|
1906
|
-
email:
|
|
1907
|
-
code:
|
|
1908
|
-
expiresInMinutes:
|
|
1905
|
+
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1906
|
+
email: alepha1.TString;
|
|
1907
|
+
code: alepha1.TString;
|
|
1908
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1909
1909
|
}>>;
|
|
1910
|
-
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1911
|
-
email:
|
|
1912
|
-
code:
|
|
1913
|
-
expiresInMinutes:
|
|
1910
|
+
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1911
|
+
email: alepha1.TString;
|
|
1912
|
+
code: alepha1.TString;
|
|
1913
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1914
1914
|
}>>;
|
|
1915
|
-
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1916
|
-
phoneNumber:
|
|
1917
|
-
code:
|
|
1918
|
-
expiresInMinutes:
|
|
1915
|
+
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1916
|
+
phoneNumber: alepha1.TString;
|
|
1917
|
+
code: alepha1.TString;
|
|
1918
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1919
1919
|
}>>;
|
|
1920
|
-
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1921
|
-
email:
|
|
1922
|
-
resetUrl:
|
|
1923
|
-
expiresInMinutes:
|
|
1920
|
+
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1921
|
+
email: alepha1.TString;
|
|
1922
|
+
resetUrl: alepha1.TString;
|
|
1923
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1924
1924
|
}>>;
|
|
1925
|
-
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1926
|
-
email:
|
|
1927
|
-
verifyUrl:
|
|
1928
|
-
expiresInMinutes:
|
|
1925
|
+
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1926
|
+
email: alepha1.TString;
|
|
1927
|
+
verifyUrl: alepha1.TString;
|
|
1928
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1929
1929
|
}>>;
|
|
1930
1930
|
}
|
|
1931
1931
|
//#endregion
|
|
@@ -1936,10 +1936,10 @@ declare class UserNotifications {
|
|
|
1936
1936
|
* Requires the intent ID from Phase 1, the verification code,
|
|
1937
1937
|
* and the new password.
|
|
1938
1938
|
*/
|
|
1939
|
-
declare const completePasswordResetRequestSchema:
|
|
1940
|
-
intentId:
|
|
1941
|
-
code:
|
|
1942
|
-
newPassword:
|
|
1939
|
+
declare const completePasswordResetRequestSchema: alepha1.TObject<{
|
|
1940
|
+
intentId: alepha1.TString;
|
|
1941
|
+
code: alepha1.TString;
|
|
1942
|
+
newPassword: alepha1.TString;
|
|
1943
1943
|
}>;
|
|
1944
1944
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
1945
1945
|
//#endregion
|
|
@@ -1950,9 +1950,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
|
|
|
1950
1950
|
* Contains the intent ID needed for Phase 2 completion,
|
|
1951
1951
|
* along with expiration time.
|
|
1952
1952
|
*/
|
|
1953
|
-
declare const passwordResetIntentResponseSchema:
|
|
1954
|
-
intentId:
|
|
1955
|
-
expiresAt:
|
|
1953
|
+
declare const passwordResetIntentResponseSchema: alepha1.TObject<{
|
|
1954
|
+
intentId: alepha1.TString;
|
|
1955
|
+
expiresAt: alepha1.TString;
|
|
1956
1956
|
}>;
|
|
1957
1957
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
1958
1958
|
//#endregion
|
|
@@ -1968,54 +1968,54 @@ interface PasswordResetIntent {
|
|
|
1968
1968
|
expiresAt: string;
|
|
1969
1969
|
}
|
|
1970
1970
|
declare class CredentialService {
|
|
1971
|
-
protected readonly log:
|
|
1971
|
+
protected readonly log: alepha_logger0.Logger;
|
|
1972
1972
|
protected readonly cryptoProvider: CryptoProvider;
|
|
1973
1973
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
1974
1974
|
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
1975
1975
|
protected readonly userNotifications: UserNotifications;
|
|
1976
1976
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
1977
1977
|
protected readonly intentCache: alepha_cache0.CachePrimitiveFn<PasswordResetIntent, any[]>;
|
|
1978
|
-
users(userRealmName?: string): Repository$1<
|
|
1979
|
-
id: PgAttr<PgAttr<
|
|
1980
|
-
version: PgAttr<PgAttr<
|
|
1981
|
-
createdAt: PgAttr<PgAttr<
|
|
1982
|
-
updatedAt: PgAttr<PgAttr<
|
|
1983
|
-
realm: PgAttr<
|
|
1984
|
-
username:
|
|
1985
|
-
email:
|
|
1986
|
-
phoneNumber:
|
|
1987
|
-
roles: PgAttr<
|
|
1988
|
-
firstName:
|
|
1989
|
-
lastName:
|
|
1990
|
-
picture:
|
|
1991
|
-
enabled: PgAttr<
|
|
1992
|
-
emailVerified: PgAttr<
|
|
1978
|
+
users(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
1979
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1980
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1981
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1982
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1983
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
1984
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
1985
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
1986
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
1987
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
1988
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
1989
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
1990
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
1991
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
1992
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
1993
1993
|
}>>;
|
|
1994
|
-
sessions(userRealmName?: string): Repository$1<
|
|
1995
|
-
id: PgAttr<PgAttr<
|
|
1996
|
-
version: PgAttr<PgAttr<
|
|
1997
|
-
createdAt: PgAttr<PgAttr<
|
|
1998
|
-
updatedAt: PgAttr<PgAttr<
|
|
1999
|
-
refreshToken:
|
|
2000
|
-
userId: PgAttr<
|
|
2001
|
-
expiresAt:
|
|
2002
|
-
ip:
|
|
2003
|
-
userAgent:
|
|
2004
|
-
os:
|
|
2005
|
-
browser:
|
|
2006
|
-
device:
|
|
1994
|
+
sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
1995
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1996
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1997
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1998
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1999
|
+
refreshToken: alepha1.TString;
|
|
2000
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2001
|
+
expiresAt: alepha1.TString;
|
|
2002
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
2003
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
2004
|
+
os: alepha1.TString;
|
|
2005
|
+
browser: alepha1.TString;
|
|
2006
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2007
2007
|
}>>;
|
|
2008
2008
|
}>>;
|
|
2009
|
-
identities(userRealmName?: string): Repository$1<
|
|
2010
|
-
id: PgAttr<PgAttr<
|
|
2011
|
-
version: PgAttr<PgAttr<
|
|
2012
|
-
createdAt: PgAttr<PgAttr<
|
|
2013
|
-
updatedAt: PgAttr<PgAttr<
|
|
2014
|
-
userId: PgAttr<
|
|
2015
|
-
password:
|
|
2016
|
-
provider:
|
|
2017
|
-
providerUserId:
|
|
2018
|
-
providerData:
|
|
2009
|
+
identities(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2010
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2011
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2012
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2013
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2014
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2015
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
2016
|
+
provider: alepha1.TString;
|
|
2017
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
2018
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
2019
2019
|
}>>;
|
|
2020
2020
|
/**
|
|
2021
2021
|
* Phase 1: Create a password reset intent.
|
|
@@ -2052,11 +2052,11 @@ declare class CredentialService {
|
|
|
2052
2052
|
}
|
|
2053
2053
|
//#endregion
|
|
2054
2054
|
//#region ../../src/api-users/schemas/completeRegistrationRequestSchema.d.ts
|
|
2055
|
-
declare const completeRegistrationRequestSchema:
|
|
2056
|
-
intentId:
|
|
2057
|
-
emailCode:
|
|
2058
|
-
phoneCode:
|
|
2059
|
-
captchaToken:
|
|
2055
|
+
declare const completeRegistrationRequestSchema: alepha1.TObject<{
|
|
2056
|
+
intentId: alepha1.TString;
|
|
2057
|
+
emailCode: alepha1.TOptional<alepha1.TString>;
|
|
2058
|
+
phoneCode: alepha1.TOptional<alepha1.TString>;
|
|
2059
|
+
captchaToken: alepha1.TOptional<alepha1.TString>;
|
|
2060
2060
|
}>;
|
|
2061
2061
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
2062
2062
|
//#endregion
|
|
@@ -2065,24 +2065,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
|
|
|
2065
2065
|
* Schema for user registration request body.
|
|
2066
2066
|
* Password is always required, other fields depend on realm settings.
|
|
2067
2067
|
*/
|
|
2068
|
-
declare const registerRequestSchema:
|
|
2069
|
-
password:
|
|
2070
|
-
username:
|
|
2071
|
-
email:
|
|
2072
|
-
phoneNumber:
|
|
2073
|
-
firstName:
|
|
2074
|
-
lastName:
|
|
2075
|
-
picture:
|
|
2068
|
+
declare const registerRequestSchema: alepha1.TObject<{
|
|
2069
|
+
password: alepha1.TString;
|
|
2070
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2071
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2072
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2073
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2074
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2075
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2076
2076
|
}>;
|
|
2077
2077
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
2078
2078
|
//#endregion
|
|
2079
2079
|
//#region ../../src/api-users/schemas/registrationIntentResponseSchema.d.ts
|
|
2080
|
-
declare const registrationIntentResponseSchema:
|
|
2081
|
-
intentId:
|
|
2082
|
-
expectCaptcha:
|
|
2083
|
-
expectEmailVerification:
|
|
2084
|
-
expectPhoneVerification:
|
|
2085
|
-
expiresAt:
|
|
2080
|
+
declare const registrationIntentResponseSchema: alepha1.TObject<{
|
|
2081
|
+
intentId: alepha1.TString;
|
|
2082
|
+
expectCaptcha: alepha1.TBoolean;
|
|
2083
|
+
expectEmailVerification: alepha1.TBoolean;
|
|
2084
|
+
expectPhoneVerification: alepha1.TBoolean;
|
|
2085
|
+
expiresAt: alepha1.TString;
|
|
2086
2086
|
}>;
|
|
2087
2087
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
2088
2088
|
//#endregion
|
|
@@ -2109,7 +2109,7 @@ interface RegistrationIntent {
|
|
|
2109
2109
|
expiresAt: string;
|
|
2110
2110
|
}
|
|
2111
2111
|
declare class RegistrationService {
|
|
2112
|
-
protected readonly log:
|
|
2112
|
+
protected readonly log: alepha_logger0.Logger;
|
|
2113
2113
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2114
2114
|
protected readonly cryptoProvider: CryptoProvider;
|
|
2115
2115
|
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
@@ -2153,70 +2153,70 @@ declare class RegistrationService {
|
|
|
2153
2153
|
}
|
|
2154
2154
|
//#endregion
|
|
2155
2155
|
//#region ../../src/api-users/schemas/createUserSchema.d.ts
|
|
2156
|
-
declare const createUserSchema:
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2156
|
+
declare const createUserSchema: alepha1.TObject<{
|
|
2157
|
+
username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2158
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2159
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2160
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2161
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2162
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2163
|
+
enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
2164
|
+
emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
2165
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2166
|
+
id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
2167
|
+
version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
2168
|
+
createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
2169
|
+
updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
2170
2170
|
}>;
|
|
2171
2171
|
type CreateUser = Static<typeof createUserSchema>;
|
|
2172
2172
|
//#endregion
|
|
2173
2173
|
//#region ../../src/api-users/schemas/updateUserSchema.d.ts
|
|
2174
|
-
declare const updateUserSchema:
|
|
2175
|
-
email:
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2174
|
+
declare const updateUserSchema: alepha1.TObject<{
|
|
2175
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2176
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2177
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2178
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2179
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2180
|
+
enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
2181
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2182
|
+
realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
|
|
2183
2183
|
}>;
|
|
2184
2184
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
2185
2185
|
//#endregion
|
|
2186
2186
|
//#region ../../src/api-users/schemas/userQuerySchema.d.ts
|
|
2187
|
-
declare const userQuerySchema:
|
|
2188
|
-
page:
|
|
2189
|
-
size:
|
|
2190
|
-
sort:
|
|
2191
|
-
email:
|
|
2192
|
-
enabled:
|
|
2193
|
-
emailVerified:
|
|
2194
|
-
roles:
|
|
2195
|
-
query:
|
|
2187
|
+
declare const userQuerySchema: alepha1.TObject<{
|
|
2188
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
2189
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
2190
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
2191
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2192
|
+
enabled: alepha1.TOptional<alepha1.TBoolean>;
|
|
2193
|
+
emailVerified: alepha1.TOptional<alepha1.TBoolean>;
|
|
2194
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2195
|
+
query: alepha1.TOptional<alepha1.TString>;
|
|
2196
2196
|
}>;
|
|
2197
2197
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
2198
2198
|
//#endregion
|
|
2199
2199
|
//#region ../../src/api-users/services/UserService.d.ts
|
|
2200
2200
|
declare class UserService {
|
|
2201
|
-
protected readonly log:
|
|
2201
|
+
protected readonly log: alepha_logger0.Logger;
|
|
2202
2202
|
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
2203
2203
|
protected readonly userNotifications: UserNotifications;
|
|
2204
2204
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2205
|
-
users(userRealmName?: string):
|
|
2206
|
-
id:
|
|
2207
|
-
version:
|
|
2208
|
-
createdAt:
|
|
2209
|
-
updatedAt:
|
|
2210
|
-
realm:
|
|
2211
|
-
username:
|
|
2212
|
-
email:
|
|
2213
|
-
phoneNumber:
|
|
2214
|
-
roles:
|
|
2215
|
-
firstName:
|
|
2216
|
-
lastName:
|
|
2217
|
-
picture:
|
|
2218
|
-
enabled:
|
|
2219
|
-
emailVerified:
|
|
2205
|
+
users(userRealmName?: string): alepha_orm198.Repository<alepha1.TObject<{
|
|
2206
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2207
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2208
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2209
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2210
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
2211
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2212
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2213
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2214
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2215
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2216
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2217
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2218
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2219
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2220
2220
|
}>>;
|
|
2221
2221
|
/**
|
|
2222
2222
|
* Request email verification for a user.
|
|
@@ -2268,282 +2268,282 @@ declare class UserController {
|
|
|
2268
2268
|
* Phase 1: Create a registration intent.
|
|
2269
2269
|
* Validates data, creates verification sessions, and stores intent in cache.
|
|
2270
2270
|
*/
|
|
2271
|
-
readonly createRegistrationIntent:
|
|
2272
|
-
body:
|
|
2273
|
-
password:
|
|
2274
|
-
username:
|
|
2275
|
-
email:
|
|
2276
|
-
phoneNumber:
|
|
2277
|
-
firstName:
|
|
2278
|
-
lastName:
|
|
2279
|
-
picture:
|
|
2271
|
+
readonly createRegistrationIntent: alepha_server14.ActionPrimitiveFn<{
|
|
2272
|
+
body: alepha1.TObject<{
|
|
2273
|
+
password: alepha1.TString;
|
|
2274
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2275
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2276
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2277
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2278
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2279
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2280
2280
|
}>;
|
|
2281
|
-
query:
|
|
2282
|
-
userRealmName:
|
|
2281
|
+
query: alepha1.TObject<{
|
|
2282
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2283
2283
|
}>;
|
|
2284
|
-
response:
|
|
2285
|
-
intentId:
|
|
2286
|
-
expectCaptcha:
|
|
2287
|
-
expectEmailVerification:
|
|
2288
|
-
expectPhoneVerification:
|
|
2289
|
-
expiresAt:
|
|
2284
|
+
response: alepha1.TObject<{
|
|
2285
|
+
intentId: alepha1.TString;
|
|
2286
|
+
expectCaptcha: alepha1.TBoolean;
|
|
2287
|
+
expectEmailVerification: alepha1.TBoolean;
|
|
2288
|
+
expectPhoneVerification: alepha1.TBoolean;
|
|
2289
|
+
expiresAt: alepha1.TString;
|
|
2290
2290
|
}>;
|
|
2291
2291
|
}>;
|
|
2292
2292
|
/**
|
|
2293
2293
|
* Find users with pagination and filtering.
|
|
2294
2294
|
*/
|
|
2295
|
-
readonly findUsers:
|
|
2296
|
-
query:
|
|
2297
|
-
page:
|
|
2298
|
-
size:
|
|
2299
|
-
sort:
|
|
2300
|
-
email:
|
|
2301
|
-
enabled:
|
|
2302
|
-
emailVerified:
|
|
2303
|
-
roles:
|
|
2304
|
-
query:
|
|
2305
|
-
userRealmName:
|
|
2295
|
+
readonly findUsers: alepha_server14.ActionPrimitiveFn<{
|
|
2296
|
+
query: alepha1.TObject<{
|
|
2297
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
2298
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
2299
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
2300
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2301
|
+
enabled: alepha1.TOptional<alepha1.TBoolean>;
|
|
2302
|
+
emailVerified: alepha1.TOptional<alepha1.TBoolean>;
|
|
2303
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2304
|
+
query: alepha1.TOptional<alepha1.TString>;
|
|
2305
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2306
2306
|
}>;
|
|
2307
|
-
response:
|
|
2308
|
-
id:
|
|
2309
|
-
version:
|
|
2310
|
-
createdAt:
|
|
2311
|
-
updatedAt:
|
|
2312
|
-
realm:
|
|
2313
|
-
username:
|
|
2314
|
-
email:
|
|
2315
|
-
phoneNumber:
|
|
2316
|
-
roles:
|
|
2317
|
-
firstName:
|
|
2318
|
-
lastName:
|
|
2319
|
-
picture:
|
|
2320
|
-
enabled:
|
|
2321
|
-
emailVerified:
|
|
2307
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
2308
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2309
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2310
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2311
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2312
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
2313
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2314
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2315
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2316
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2317
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2318
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2319
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2320
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2321
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2322
2322
|
}>>;
|
|
2323
2323
|
}>;
|
|
2324
2324
|
/**
|
|
2325
2325
|
* Get a user by ID.
|
|
2326
2326
|
*/
|
|
2327
|
-
readonly getUser:
|
|
2328
|
-
params:
|
|
2329
|
-
id:
|
|
2327
|
+
readonly getUser: alepha_server14.ActionPrimitiveFn<{
|
|
2328
|
+
params: alepha1.TObject<{
|
|
2329
|
+
id: alepha1.TString;
|
|
2330
2330
|
}>;
|
|
2331
|
-
query:
|
|
2332
|
-
userRealmName:
|
|
2331
|
+
query: alepha1.TObject<{
|
|
2332
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2333
2333
|
}>;
|
|
2334
|
-
response:
|
|
2335
|
-
id:
|
|
2336
|
-
version:
|
|
2337
|
-
createdAt:
|
|
2338
|
-
updatedAt:
|
|
2339
|
-
realm:
|
|
2340
|
-
username:
|
|
2341
|
-
email:
|
|
2342
|
-
phoneNumber:
|
|
2343
|
-
roles:
|
|
2344
|
-
firstName:
|
|
2345
|
-
lastName:
|
|
2346
|
-
picture:
|
|
2347
|
-
enabled:
|
|
2348
|
-
emailVerified:
|
|
2334
|
+
response: alepha1.TObject<{
|
|
2335
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2336
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2337
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2338
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2339
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
2340
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2341
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2342
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2343
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2344
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2345
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2346
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2347
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2348
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2349
2349
|
}>;
|
|
2350
2350
|
}>;
|
|
2351
2351
|
/**
|
|
2352
2352
|
* Create a new user.
|
|
2353
2353
|
*/
|
|
2354
|
-
readonly createUser:
|
|
2355
|
-
query:
|
|
2356
|
-
userRealmName:
|
|
2354
|
+
readonly createUser: alepha_server14.ActionPrimitiveFn<{
|
|
2355
|
+
query: alepha1.TObject<{
|
|
2356
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2357
2357
|
}>;
|
|
2358
|
-
body:
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2358
|
+
body: alepha1.TObject<{
|
|
2359
|
+
username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2360
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2361
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2362
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2363
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2364
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2365
|
+
enabled: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
|
|
2366
|
+
emailVerified: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
|
|
2367
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2368
|
+
id: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>>;
|
|
2369
|
+
version: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>>;
|
|
2370
|
+
createdAt: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>>;
|
|
2371
|
+
updatedAt: alepha1.TOptional<alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>>;
|
|
2372
2372
|
}>;
|
|
2373
|
-
response:
|
|
2374
|
-
id:
|
|
2375
|
-
version:
|
|
2376
|
-
createdAt:
|
|
2377
|
-
updatedAt:
|
|
2378
|
-
realm:
|
|
2379
|
-
username:
|
|
2380
|
-
email:
|
|
2381
|
-
phoneNumber:
|
|
2382
|
-
roles:
|
|
2383
|
-
firstName:
|
|
2384
|
-
lastName:
|
|
2385
|
-
picture:
|
|
2386
|
-
enabled:
|
|
2387
|
-
emailVerified:
|
|
2373
|
+
response: alepha1.TObject<{
|
|
2374
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2375
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2376
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2377
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2378
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
2379
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2380
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2381
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2382
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2383
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2384
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2385
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2386
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2387
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2388
2388
|
}>;
|
|
2389
2389
|
}>;
|
|
2390
2390
|
/**
|
|
2391
2391
|
* Phase 2: Complete registration using an intent.
|
|
2392
2392
|
* Validates verification codes and creates the user.
|
|
2393
2393
|
*/
|
|
2394
|
-
readonly createUserFromIntent:
|
|
2395
|
-
body:
|
|
2396
|
-
intentId:
|
|
2397
|
-
emailCode:
|
|
2398
|
-
phoneCode:
|
|
2399
|
-
captchaToken:
|
|
2394
|
+
readonly createUserFromIntent: alepha_server14.ActionPrimitiveFn<{
|
|
2395
|
+
body: alepha1.TObject<{
|
|
2396
|
+
intentId: alepha1.TString;
|
|
2397
|
+
emailCode: alepha1.TOptional<alepha1.TString>;
|
|
2398
|
+
phoneCode: alepha1.TOptional<alepha1.TString>;
|
|
2399
|
+
captchaToken: alepha1.TOptional<alepha1.TString>;
|
|
2400
2400
|
}>;
|
|
2401
|
-
response:
|
|
2402
|
-
id:
|
|
2403
|
-
version:
|
|
2404
|
-
createdAt:
|
|
2405
|
-
updatedAt:
|
|
2406
|
-
realm:
|
|
2407
|
-
username:
|
|
2408
|
-
email:
|
|
2409
|
-
phoneNumber:
|
|
2410
|
-
roles:
|
|
2411
|
-
firstName:
|
|
2412
|
-
lastName:
|
|
2413
|
-
picture:
|
|
2414
|
-
enabled:
|
|
2415
|
-
emailVerified:
|
|
2401
|
+
response: alepha1.TObject<{
|
|
2402
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2403
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2404
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2405
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2406
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
2407
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2408
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2409
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2410
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2411
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2412
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2413
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2414
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2415
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2416
2416
|
}>;
|
|
2417
2417
|
}>;
|
|
2418
2418
|
/**
|
|
2419
2419
|
* Update a user.
|
|
2420
2420
|
*/
|
|
2421
|
-
readonly updateUser:
|
|
2422
|
-
params:
|
|
2423
|
-
id:
|
|
2421
|
+
readonly updateUser: alepha_server14.ActionPrimitiveFn<{
|
|
2422
|
+
params: alepha1.TObject<{
|
|
2423
|
+
id: alepha1.TString;
|
|
2424
2424
|
}>;
|
|
2425
|
-
query:
|
|
2426
|
-
userRealmName:
|
|
2425
|
+
query: alepha1.TObject<{
|
|
2426
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2427
2427
|
}>;
|
|
2428
|
-
body:
|
|
2429
|
-
email:
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2428
|
+
body: alepha1.TObject<{
|
|
2429
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2430
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2431
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2432
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2433
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2434
|
+
enabled: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>>;
|
|
2435
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2436
|
+
realm: alepha1.TOptional<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>>;
|
|
2437
2437
|
}>;
|
|
2438
|
-
response:
|
|
2439
|
-
id:
|
|
2440
|
-
version:
|
|
2441
|
-
createdAt:
|
|
2442
|
-
updatedAt:
|
|
2443
|
-
realm:
|
|
2444
|
-
username:
|
|
2445
|
-
email:
|
|
2446
|
-
phoneNumber:
|
|
2447
|
-
roles:
|
|
2448
|
-
firstName:
|
|
2449
|
-
lastName:
|
|
2450
|
-
picture:
|
|
2451
|
-
enabled:
|
|
2452
|
-
emailVerified:
|
|
2438
|
+
response: alepha1.TObject<{
|
|
2439
|
+
id: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_PRIMARY_KEY>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2440
|
+
version: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TInteger, typeof alepha_orm198.PG_VERSION>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2441
|
+
createdAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_CREATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2442
|
+
updatedAt: alepha_orm198.PgAttr<alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_UPDATED_AT>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2443
|
+
realm: alepha_orm198.PgAttr<alepha1.TString, typeof alepha_orm198.PG_DEFAULT>;
|
|
2444
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2445
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2446
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2447
|
+
roles: alepha_orm198.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm198.PG_DEFAULT>;
|
|
2448
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2449
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2450
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2451
|
+
enabled: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2452
|
+
emailVerified: alepha_orm198.PgAttr<alepha1.TBoolean, typeof alepha_orm198.PG_DEFAULT>;
|
|
2453
2453
|
}>;
|
|
2454
2454
|
}>;
|
|
2455
2455
|
/**
|
|
2456
2456
|
* Delete a user.
|
|
2457
2457
|
*/
|
|
2458
|
-
readonly deleteUser:
|
|
2459
|
-
params:
|
|
2460
|
-
id:
|
|
2458
|
+
readonly deleteUser: alepha_server14.ActionPrimitiveFn<{
|
|
2459
|
+
params: alepha1.TObject<{
|
|
2460
|
+
id: alepha1.TString;
|
|
2461
2461
|
}>;
|
|
2462
|
-
query:
|
|
2463
|
-
userRealmName:
|
|
2462
|
+
query: alepha1.TObject<{
|
|
2463
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2464
2464
|
}>;
|
|
2465
|
-
response:
|
|
2466
|
-
ok:
|
|
2467
|
-
id:
|
|
2468
|
-
count:
|
|
2465
|
+
response: alepha1.TObject<{
|
|
2466
|
+
ok: alepha1.TBoolean;
|
|
2467
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
2468
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
2469
2469
|
}>;
|
|
2470
2470
|
}>;
|
|
2471
2471
|
/**
|
|
2472
2472
|
* Phase 1: Create a password reset intent.
|
|
2473
2473
|
* Validates email, sends verification code, and stores intent in cache.
|
|
2474
2474
|
*/
|
|
2475
|
-
readonly createPasswordResetIntent:
|
|
2476
|
-
query:
|
|
2477
|
-
userRealmName:
|
|
2475
|
+
readonly createPasswordResetIntent: alepha_server14.ActionPrimitiveFn<{
|
|
2476
|
+
query: alepha1.TObject<{
|
|
2477
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2478
2478
|
}>;
|
|
2479
|
-
body:
|
|
2480
|
-
email:
|
|
2479
|
+
body: alepha1.TObject<{
|
|
2480
|
+
email: alepha1.TString;
|
|
2481
2481
|
}>;
|
|
2482
|
-
response:
|
|
2483
|
-
intentId:
|
|
2484
|
-
expiresAt:
|
|
2482
|
+
response: alepha1.TObject<{
|
|
2483
|
+
intentId: alepha1.TString;
|
|
2484
|
+
expiresAt: alepha1.TString;
|
|
2485
2485
|
}>;
|
|
2486
2486
|
}>;
|
|
2487
2487
|
/**
|
|
2488
2488
|
* Phase 2: Complete password reset using an intent.
|
|
2489
2489
|
* Validates verification code, updates password, and invalidates sessions.
|
|
2490
2490
|
*/
|
|
2491
|
-
readonly completePasswordReset:
|
|
2492
|
-
body:
|
|
2493
|
-
intentId:
|
|
2494
|
-
code:
|
|
2495
|
-
newPassword:
|
|
2491
|
+
readonly completePasswordReset: alepha_server14.ActionPrimitiveFn<{
|
|
2492
|
+
body: alepha1.TObject<{
|
|
2493
|
+
intentId: alepha1.TString;
|
|
2494
|
+
code: alepha1.TString;
|
|
2495
|
+
newPassword: alepha1.TString;
|
|
2496
2496
|
}>;
|
|
2497
|
-
response:
|
|
2498
|
-
ok:
|
|
2499
|
-
id:
|
|
2500
|
-
count:
|
|
2497
|
+
response: alepha1.TObject<{
|
|
2498
|
+
ok: alepha1.TBoolean;
|
|
2499
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
2500
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
2501
2501
|
}>;
|
|
2502
2502
|
}>;
|
|
2503
2503
|
/**
|
|
2504
2504
|
* @deprecated Use createPasswordResetIntent instead
|
|
2505
2505
|
*/
|
|
2506
|
-
requestPasswordReset:
|
|
2507
|
-
query:
|
|
2508
|
-
userRealmName:
|
|
2506
|
+
requestPasswordReset: alepha_server14.ActionPrimitiveFn<{
|
|
2507
|
+
query: alepha1.TObject<{
|
|
2508
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2509
2509
|
}>;
|
|
2510
|
-
body:
|
|
2511
|
-
email:
|
|
2510
|
+
body: alepha1.TObject<{
|
|
2511
|
+
email: alepha1.TString;
|
|
2512
2512
|
}>;
|
|
2513
|
-
response:
|
|
2514
|
-
success:
|
|
2515
|
-
message:
|
|
2513
|
+
response: alepha1.TObject<{
|
|
2514
|
+
success: alepha1.TBoolean;
|
|
2515
|
+
message: alepha1.TString;
|
|
2516
2516
|
}>;
|
|
2517
2517
|
}>;
|
|
2518
2518
|
/**
|
|
2519
2519
|
* @deprecated Use completePasswordReset instead
|
|
2520
2520
|
*/
|
|
2521
|
-
validateResetToken:
|
|
2522
|
-
query:
|
|
2523
|
-
email:
|
|
2524
|
-
token:
|
|
2525
|
-
userRealmName:
|
|
2521
|
+
validateResetToken: alepha_server14.ActionPrimitiveFn<{
|
|
2522
|
+
query: alepha1.TObject<{
|
|
2523
|
+
email: alepha1.TString;
|
|
2524
|
+
token: alepha1.TString;
|
|
2525
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2526
2526
|
}>;
|
|
2527
|
-
response:
|
|
2528
|
-
valid:
|
|
2529
|
-
email:
|
|
2527
|
+
response: alepha1.TObject<{
|
|
2528
|
+
valid: alepha1.TBoolean;
|
|
2529
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2530
2530
|
}>;
|
|
2531
2531
|
}>;
|
|
2532
2532
|
/**
|
|
2533
2533
|
* @deprecated Use completePasswordReset instead
|
|
2534
2534
|
*/
|
|
2535
|
-
resetPassword:
|
|
2536
|
-
query:
|
|
2537
|
-
userRealmName:
|
|
2535
|
+
resetPassword: alepha_server14.ActionPrimitiveFn<{
|
|
2536
|
+
query: alepha1.TObject<{
|
|
2537
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2538
2538
|
}>;
|
|
2539
|
-
body:
|
|
2540
|
-
email:
|
|
2541
|
-
token:
|
|
2542
|
-
newPassword:
|
|
2539
|
+
body: alepha1.TObject<{
|
|
2540
|
+
email: alepha1.TString;
|
|
2541
|
+
token: alepha1.TString;
|
|
2542
|
+
newPassword: alepha1.TString;
|
|
2543
2543
|
}>;
|
|
2544
|
-
response:
|
|
2545
|
-
success:
|
|
2546
|
-
message:
|
|
2544
|
+
response: alepha1.TObject<{
|
|
2545
|
+
success: alepha1.TBoolean;
|
|
2546
|
+
message: alepha1.TString;
|
|
2547
2547
|
}>;
|
|
2548
2548
|
}>;
|
|
2549
2549
|
/**
|
|
@@ -2552,47 +2552,47 @@ declare class UserController {
|
|
|
2552
2552
|
* @param method - The verification method: "code" (default) sends a 6-digit code, "link" sends a clickable verification link.
|
|
2553
2553
|
* @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
|
|
2554
2554
|
*/
|
|
2555
|
-
requestEmailVerification:
|
|
2556
|
-
query:
|
|
2557
|
-
userRealmName:
|
|
2558
|
-
method:
|
|
2559
|
-
verifyUrl:
|
|
2555
|
+
requestEmailVerification: alepha_server14.ActionPrimitiveFn<{
|
|
2556
|
+
query: alepha1.TObject<{
|
|
2557
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2558
|
+
method: alepha1.TOptional<alepha1.TUnsafe<"link" | "code">>;
|
|
2559
|
+
verifyUrl: alepha1.TOptional<alepha1.TString>;
|
|
2560
2560
|
}>;
|
|
2561
|
-
body:
|
|
2562
|
-
email:
|
|
2561
|
+
body: alepha1.TObject<{
|
|
2562
|
+
email: alepha1.TString;
|
|
2563
2563
|
}>;
|
|
2564
|
-
response:
|
|
2565
|
-
success:
|
|
2566
|
-
message:
|
|
2564
|
+
response: alepha1.TObject<{
|
|
2565
|
+
success: alepha1.TBoolean;
|
|
2566
|
+
message: alepha1.TString;
|
|
2567
2567
|
}>;
|
|
2568
2568
|
}>;
|
|
2569
2569
|
/**
|
|
2570
2570
|
* Verify email with a valid token.
|
|
2571
2571
|
* Updates the user's emailVerified status.
|
|
2572
2572
|
*/
|
|
2573
|
-
verifyEmail:
|
|
2574
|
-
query:
|
|
2575
|
-
userRealmName:
|
|
2573
|
+
verifyEmail: alepha_server14.ActionPrimitiveFn<{
|
|
2574
|
+
query: alepha1.TObject<{
|
|
2575
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2576
2576
|
}>;
|
|
2577
|
-
body:
|
|
2578
|
-
email:
|
|
2579
|
-
token:
|
|
2577
|
+
body: alepha1.TObject<{
|
|
2578
|
+
email: alepha1.TString;
|
|
2579
|
+
token: alepha1.TString;
|
|
2580
2580
|
}>;
|
|
2581
|
-
response:
|
|
2582
|
-
success:
|
|
2583
|
-
message:
|
|
2581
|
+
response: alepha1.TObject<{
|
|
2582
|
+
success: alepha1.TBoolean;
|
|
2583
|
+
message: alepha1.TString;
|
|
2584
2584
|
}>;
|
|
2585
2585
|
}>;
|
|
2586
2586
|
/**
|
|
2587
2587
|
* Check if an email is verified.
|
|
2588
2588
|
*/
|
|
2589
|
-
checkEmailVerification:
|
|
2590
|
-
query:
|
|
2591
|
-
email:
|
|
2592
|
-
userRealmName:
|
|
2589
|
+
checkEmailVerification: alepha_server14.ActionPrimitiveFn<{
|
|
2590
|
+
query: alepha1.TObject<{
|
|
2591
|
+
email: alepha1.TString;
|
|
2592
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2593
2593
|
}>;
|
|
2594
|
-
response:
|
|
2595
|
-
verified:
|
|
2594
|
+
response: alepha1.TObject<{
|
|
2595
|
+
verified: alepha1.TBoolean;
|
|
2596
2596
|
}>;
|
|
2597
2597
|
}>;
|
|
2598
2598
|
}
|
|
@@ -2611,48 +2611,48 @@ declare class UserRealmController {
|
|
|
2611
2611
|
* Get realm configuration settings.
|
|
2612
2612
|
* This endpoint is not exposed in the API documentation.
|
|
2613
2613
|
*/
|
|
2614
|
-
readonly getRealmConfig:
|
|
2615
|
-
query:
|
|
2616
|
-
userRealmName:
|
|
2614
|
+
readonly getRealmConfig: alepha_server14.ActionPrimitiveFn<{
|
|
2615
|
+
query: alepha1.TObject<{
|
|
2616
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2617
2617
|
}>;
|
|
2618
|
-
response:
|
|
2619
|
-
settings:
|
|
2620
|
-
registrationAllowed:
|
|
2621
|
-
emailEnabled:
|
|
2622
|
-
emailRequired:
|
|
2623
|
-
usernameEnabled:
|
|
2624
|
-
usernameRequired:
|
|
2625
|
-
phoneEnabled:
|
|
2626
|
-
phoneRequired:
|
|
2627
|
-
verifyEmailRequired:
|
|
2628
|
-
verifyPhoneRequired:
|
|
2629
|
-
firstNameLastNameEnabled:
|
|
2630
|
-
firstNameLastNameRequired:
|
|
2631
|
-
resetPasswordAllowed:
|
|
2632
|
-
passwordPolicy:
|
|
2633
|
-
minLength:
|
|
2634
|
-
requireUppercase:
|
|
2635
|
-
requireLowercase:
|
|
2636
|
-
requireNumbers:
|
|
2637
|
-
requireSpecialCharacters:
|
|
2618
|
+
response: alepha1.TObject<{
|
|
2619
|
+
settings: alepha1.TObject<{
|
|
2620
|
+
registrationAllowed: alepha1.TBoolean;
|
|
2621
|
+
emailEnabled: alepha1.TBoolean;
|
|
2622
|
+
emailRequired: alepha1.TBoolean;
|
|
2623
|
+
usernameEnabled: alepha1.TBoolean;
|
|
2624
|
+
usernameRequired: alepha1.TBoolean;
|
|
2625
|
+
phoneEnabled: alepha1.TBoolean;
|
|
2626
|
+
phoneRequired: alepha1.TBoolean;
|
|
2627
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
2628
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
2629
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
2630
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
2631
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
2632
|
+
passwordPolicy: alepha1.TObject<{
|
|
2633
|
+
minLength: alepha1.TInteger;
|
|
2634
|
+
requireUppercase: alepha1.TBoolean;
|
|
2635
|
+
requireLowercase: alepha1.TBoolean;
|
|
2636
|
+
requireNumbers: alepha1.TBoolean;
|
|
2637
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
2638
2638
|
}>;
|
|
2639
2639
|
}>;
|
|
2640
|
-
realmName:
|
|
2641
|
-
authenticationMethods:
|
|
2642
|
-
name:
|
|
2643
|
-
type:
|
|
2640
|
+
realmName: alepha1.TString;
|
|
2641
|
+
authenticationMethods: alepha1.TArray<alepha1.TObject<{
|
|
2642
|
+
name: alepha1.TString;
|
|
2643
|
+
type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2644
2644
|
}>>;
|
|
2645
2645
|
}>;
|
|
2646
2646
|
}>;
|
|
2647
|
-
readonly checkUsernameAvailability:
|
|
2648
|
-
query:
|
|
2649
|
-
userRealmName:
|
|
2647
|
+
readonly checkUsernameAvailability: alepha_server14.ActionPrimitiveFn<{
|
|
2648
|
+
query: alepha1.TObject<{
|
|
2649
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2650
2650
|
}>;
|
|
2651
|
-
body:
|
|
2652
|
-
username:
|
|
2651
|
+
body: alepha1.TObject<{
|
|
2652
|
+
username: alepha1.TString;
|
|
2653
2653
|
}>;
|
|
2654
|
-
response:
|
|
2655
|
-
available:
|
|
2654
|
+
response: alepha1.TObject<{
|
|
2655
|
+
available: alepha1.TBoolean;
|
|
2656
2656
|
}>;
|
|
2657
2657
|
}>;
|
|
2658
2658
|
}
|
|
@@ -2707,113 +2707,113 @@ interface UserRealmOptions {
|
|
|
2707
2707
|
}
|
|
2708
2708
|
//#endregion
|
|
2709
2709
|
//#region ../../src/api-users/schemas/identityResourceSchema.d.ts
|
|
2710
|
-
declare const identityResourceSchema:
|
|
2711
|
-
id: PgAttr<PgAttr<
|
|
2712
|
-
version: PgAttr<PgAttr<
|
|
2713
|
-
createdAt: PgAttr<PgAttr<
|
|
2714
|
-
updatedAt: PgAttr<PgAttr<
|
|
2715
|
-
userId: PgAttr<
|
|
2716
|
-
provider:
|
|
2717
|
-
providerUserId:
|
|
2718
|
-
providerData:
|
|
2710
|
+
declare const identityResourceSchema: alepha1.TObject<{
|
|
2711
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2712
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2713
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2714
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2715
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2716
|
+
provider: alepha1.TString;
|
|
2717
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
2718
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
2719
2719
|
}>;
|
|
2720
2720
|
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
2721
2721
|
//#endregion
|
|
2722
2722
|
//#region ../../src/api-users/schemas/loginSchema.d.ts
|
|
2723
|
-
declare const loginSchema:
|
|
2724
|
-
username:
|
|
2725
|
-
password:
|
|
2723
|
+
declare const loginSchema: alepha1.TObject<{
|
|
2724
|
+
username: alepha1.TString;
|
|
2725
|
+
password: alepha1.TString;
|
|
2726
2726
|
}>;
|
|
2727
2727
|
type LoginInput = Static<typeof loginSchema>;
|
|
2728
2728
|
//#endregion
|
|
2729
2729
|
//#region ../../src/api-users/schemas/registerSchema.d.ts
|
|
2730
|
-
declare const registerSchema:
|
|
2731
|
-
username:
|
|
2732
|
-
email:
|
|
2733
|
-
password:
|
|
2734
|
-
confirmPassword:
|
|
2735
|
-
firstName:
|
|
2736
|
-
lastName:
|
|
2730
|
+
declare const registerSchema: alepha1.TObject<{
|
|
2731
|
+
username: alepha1.TString;
|
|
2732
|
+
email: alepha1.TString;
|
|
2733
|
+
password: alepha1.TString;
|
|
2734
|
+
confirmPassword: alepha1.TString;
|
|
2735
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2736
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2737
2737
|
}>;
|
|
2738
2738
|
type RegisterInput = Static<typeof registerSchema>;
|
|
2739
2739
|
//#endregion
|
|
2740
2740
|
//#region ../../src/api-users/schemas/resetPasswordSchema.d.ts
|
|
2741
|
-
declare const resetPasswordRequestSchema:
|
|
2742
|
-
email:
|
|
2741
|
+
declare const resetPasswordRequestSchema: alepha1.TObject<{
|
|
2742
|
+
email: alepha1.TString;
|
|
2743
2743
|
}>;
|
|
2744
|
-
declare const resetPasswordSchema:
|
|
2745
|
-
token:
|
|
2746
|
-
password:
|
|
2747
|
-
confirmPassword:
|
|
2744
|
+
declare const resetPasswordSchema: alepha1.TObject<{
|
|
2745
|
+
token: alepha1.TString;
|
|
2746
|
+
password: alepha1.TString;
|
|
2747
|
+
confirmPassword: alepha1.TString;
|
|
2748
2748
|
}>;
|
|
2749
2749
|
type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
|
|
2750
2750
|
type ResetPasswordInput = Static<typeof resetPasswordSchema>;
|
|
2751
2751
|
//#endregion
|
|
2752
2752
|
//#region ../../src/api-users/schemas/sessionResourceSchema.d.ts
|
|
2753
|
-
declare const sessionResourceSchema:
|
|
2754
|
-
id:
|
|
2755
|
-
version:
|
|
2756
|
-
createdAt:
|
|
2757
|
-
updatedAt:
|
|
2758
|
-
refreshToken:
|
|
2759
|
-
userId:
|
|
2760
|
-
expiresAt:
|
|
2761
|
-
ip:
|
|
2762
|
-
userAgent:
|
|
2763
|
-
os:
|
|
2764
|
-
browser:
|
|
2765
|
-
device:
|
|
2753
|
+
declare const sessionResourceSchema: alepha1.TObject<{
|
|
2754
|
+
id: alepha1.TString;
|
|
2755
|
+
version: alepha1.TNumber;
|
|
2756
|
+
createdAt: alepha1.TString;
|
|
2757
|
+
updatedAt: alepha1.TString;
|
|
2758
|
+
refreshToken: alepha1.TString;
|
|
2759
|
+
userId: alepha1.TString;
|
|
2760
|
+
expiresAt: alepha1.TString;
|
|
2761
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
2762
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
2763
|
+
os: alepha1.TString;
|
|
2764
|
+
browser: alepha1.TString;
|
|
2765
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2766
2766
|
}>>;
|
|
2767
2767
|
}>;
|
|
2768
2768
|
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
2769
2769
|
//#endregion
|
|
2770
2770
|
//#region ../../src/api-users/schemas/userRealmConfigSchema.d.ts
|
|
2771
|
-
declare const userRealmConfigSchema:
|
|
2772
|
-
settings:
|
|
2773
|
-
registrationAllowed:
|
|
2774
|
-
emailEnabled:
|
|
2775
|
-
emailRequired:
|
|
2776
|
-
usernameEnabled:
|
|
2777
|
-
usernameRequired:
|
|
2778
|
-
phoneEnabled:
|
|
2779
|
-
phoneRequired:
|
|
2780
|
-
verifyEmailRequired:
|
|
2781
|
-
verifyPhoneRequired:
|
|
2782
|
-
firstNameLastNameEnabled:
|
|
2783
|
-
firstNameLastNameRequired:
|
|
2784
|
-
resetPasswordAllowed:
|
|
2785
|
-
passwordPolicy:
|
|
2786
|
-
minLength:
|
|
2787
|
-
requireUppercase:
|
|
2788
|
-
requireLowercase:
|
|
2789
|
-
requireNumbers:
|
|
2790
|
-
requireSpecialCharacters:
|
|
2771
|
+
declare const userRealmConfigSchema: alepha1.TObject<{
|
|
2772
|
+
settings: alepha1.TObject<{
|
|
2773
|
+
registrationAllowed: alepha1.TBoolean;
|
|
2774
|
+
emailEnabled: alepha1.TBoolean;
|
|
2775
|
+
emailRequired: alepha1.TBoolean;
|
|
2776
|
+
usernameEnabled: alepha1.TBoolean;
|
|
2777
|
+
usernameRequired: alepha1.TBoolean;
|
|
2778
|
+
phoneEnabled: alepha1.TBoolean;
|
|
2779
|
+
phoneRequired: alepha1.TBoolean;
|
|
2780
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
2781
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
2782
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
2783
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
2784
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
2785
|
+
passwordPolicy: alepha1.TObject<{
|
|
2786
|
+
minLength: alepha1.TInteger;
|
|
2787
|
+
requireUppercase: alepha1.TBoolean;
|
|
2788
|
+
requireLowercase: alepha1.TBoolean;
|
|
2789
|
+
requireNumbers: alepha1.TBoolean;
|
|
2790
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
2791
2791
|
}>;
|
|
2792
2792
|
}>;
|
|
2793
|
-
realmName:
|
|
2794
|
-
authenticationMethods:
|
|
2795
|
-
name:
|
|
2796
|
-
type:
|
|
2793
|
+
realmName: alepha1.TString;
|
|
2794
|
+
authenticationMethods: alepha1.TArray<alepha1.TObject<{
|
|
2795
|
+
name: alepha1.TString;
|
|
2796
|
+
type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2797
2797
|
}>>;
|
|
2798
2798
|
}>;
|
|
2799
2799
|
type UserRealmConfig = Static<typeof userRealmConfigSchema>;
|
|
2800
2800
|
//#endregion
|
|
2801
2801
|
//#region ../../src/api-users/schemas/userResourceSchema.d.ts
|
|
2802
|
-
declare const userResourceSchema:
|
|
2803
|
-
id: PgAttr<PgAttr<
|
|
2804
|
-
version: PgAttr<PgAttr<
|
|
2805
|
-
createdAt: PgAttr<PgAttr<
|
|
2806
|
-
updatedAt: PgAttr<PgAttr<
|
|
2807
|
-
realm: PgAttr<
|
|
2808
|
-
username:
|
|
2809
|
-
email:
|
|
2810
|
-
phoneNumber:
|
|
2811
|
-
roles: PgAttr<
|
|
2812
|
-
firstName:
|
|
2813
|
-
lastName:
|
|
2814
|
-
picture:
|
|
2815
|
-
enabled: PgAttr<
|
|
2816
|
-
emailVerified: PgAttr<
|
|
2802
|
+
declare const userResourceSchema: alepha1.TObject<{
|
|
2803
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2804
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2805
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2806
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2807
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2808
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2809
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2810
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2811
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2812
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2813
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2814
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2815
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2816
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2817
2817
|
}>;
|
|
2818
2818
|
type UserResource = Static<typeof userResourceSchema>;
|
|
2819
2819
|
//#endregion
|
|
@@ -2823,50 +2823,50 @@ declare class SessionService {
|
|
|
2823
2823
|
protected readonly fsp: FileSystemProvider;
|
|
2824
2824
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2825
2825
|
protected readonly cryptoProvider: CryptoProvider;
|
|
2826
|
-
protected readonly log:
|
|
2826
|
+
protected readonly log: alepha_logger0.Logger;
|
|
2827
2827
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2828
2828
|
protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
|
|
2829
|
-
users(userRealmName?: string): Repository$1<
|
|
2830
|
-
id: PgAttr<PgAttr<
|
|
2831
|
-
version: PgAttr<PgAttr<
|
|
2832
|
-
createdAt: PgAttr<PgAttr<
|
|
2833
|
-
updatedAt: PgAttr<PgAttr<
|
|
2834
|
-
realm: PgAttr<
|
|
2835
|
-
username:
|
|
2836
|
-
email:
|
|
2837
|
-
phoneNumber:
|
|
2838
|
-
roles: PgAttr<
|
|
2839
|
-
firstName:
|
|
2840
|
-
lastName:
|
|
2841
|
-
picture:
|
|
2842
|
-
enabled: PgAttr<
|
|
2843
|
-
emailVerified: PgAttr<
|
|
2829
|
+
users(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2830
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2831
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2832
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2833
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2834
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2835
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2836
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2837
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2838
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2839
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2840
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2841
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2842
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2843
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2844
2844
|
}>>;
|
|
2845
|
-
sessions(userRealmName?: string): Repository$1<
|
|
2846
|
-
id: PgAttr<PgAttr<
|
|
2847
|
-
version: PgAttr<PgAttr<
|
|
2848
|
-
createdAt: PgAttr<PgAttr<
|
|
2849
|
-
updatedAt: PgAttr<PgAttr<
|
|
2850
|
-
refreshToken:
|
|
2851
|
-
userId: PgAttr<
|
|
2852
|
-
expiresAt:
|
|
2853
|
-
ip:
|
|
2854
|
-
userAgent:
|
|
2855
|
-
os:
|
|
2856
|
-
browser:
|
|
2857
|
-
device:
|
|
2845
|
+
sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2846
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2847
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2848
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2849
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2850
|
+
refreshToken: alepha1.TString;
|
|
2851
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2852
|
+
expiresAt: alepha1.TString;
|
|
2853
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
2854
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
2855
|
+
os: alepha1.TString;
|
|
2856
|
+
browser: alepha1.TString;
|
|
2857
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2858
2858
|
}>>;
|
|
2859
2859
|
}>>;
|
|
2860
|
-
identities(userRealmName?: string): Repository$1<
|
|
2861
|
-
id: PgAttr<PgAttr<
|
|
2862
|
-
version: PgAttr<PgAttr<
|
|
2863
|
-
createdAt: PgAttr<PgAttr<
|
|
2864
|
-
updatedAt: PgAttr<PgAttr<
|
|
2865
|
-
userId: PgAttr<
|
|
2866
|
-
password:
|
|
2867
|
-
provider:
|
|
2868
|
-
providerUserId:
|
|
2869
|
-
providerData:
|
|
2860
|
+
identities(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2861
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2862
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2863
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2864
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2865
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2866
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
2867
|
+
provider: alepha1.TString;
|
|
2868
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
2869
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
2870
2870
|
}>>;
|
|
2871
2871
|
/**
|
|
2872
2872
|
* Random delay to prevent timing attacks (50-200ms)
|
|
@@ -2882,56 +2882,56 @@ declare class SessionService {
|
|
|
2882
2882
|
sessionId: string;
|
|
2883
2883
|
}>;
|
|
2884
2884
|
refreshSession(refreshToken: string, userRealmName?: string): Promise<{
|
|
2885
|
-
user: PgStatic<
|
|
2886
|
-
id: PgAttr<PgAttr<
|
|
2887
|
-
version: PgAttr<PgAttr<
|
|
2888
|
-
createdAt: PgAttr<PgAttr<
|
|
2889
|
-
updatedAt: PgAttr<PgAttr<
|
|
2890
|
-
realm: PgAttr<
|
|
2891
|
-
username:
|
|
2892
|
-
email:
|
|
2893
|
-
phoneNumber:
|
|
2894
|
-
roles: PgAttr<
|
|
2895
|
-
firstName:
|
|
2896
|
-
lastName:
|
|
2897
|
-
picture:
|
|
2898
|
-
enabled: PgAttr<
|
|
2899
|
-
emailVerified: PgAttr<
|
|
2900
|
-
}>, PgRelationMap<
|
|
2901
|
-
id: PgAttr<PgAttr<
|
|
2902
|
-
version: PgAttr<PgAttr<
|
|
2903
|
-
createdAt: PgAttr<PgAttr<
|
|
2904
|
-
updatedAt: PgAttr<PgAttr<
|
|
2905
|
-
realm: PgAttr<
|
|
2906
|
-
username:
|
|
2907
|
-
email:
|
|
2908
|
-
phoneNumber:
|
|
2909
|
-
roles: PgAttr<
|
|
2910
|
-
firstName:
|
|
2911
|
-
lastName:
|
|
2912
|
-
picture:
|
|
2913
|
-
enabled: PgAttr<
|
|
2914
|
-
emailVerified: PgAttr<
|
|
2885
|
+
user: PgStatic<alepha1.TObject<{
|
|
2886
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2887
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2888
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2889
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2890
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2891
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2892
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2893
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2894
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2895
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2896
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2897
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2898
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2899
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2900
|
+
}>, PgRelationMap<alepha1.TObject<{
|
|
2901
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2902
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2903
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2904
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2905
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2906
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2907
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2908
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2909
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2910
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2911
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2912
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2913
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2914
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2915
2915
|
}>>>;
|
|
2916
2916
|
expiresIn: number;
|
|
2917
2917
|
sessionId: string;
|
|
2918
2918
|
}>;
|
|
2919
2919
|
deleteSession(refreshToken: string, userRealmName?: string): Promise<void>;
|
|
2920
2920
|
link(provider: string, profile: OAuth2Profile, userRealmName?: string): Promise<{
|
|
2921
|
-
email?: string | undefined;
|
|
2922
2921
|
username?: string | undefined;
|
|
2922
|
+
email?: string | undefined;
|
|
2923
2923
|
phoneNumber?: string | undefined;
|
|
2924
2924
|
firstName?: string | undefined;
|
|
2925
2925
|
lastName?: string | undefined;
|
|
2926
2926
|
picture?: string | undefined;
|
|
2927
|
+
enabled: boolean;
|
|
2928
|
+
emailVerified: boolean;
|
|
2929
|
+
roles: string[];
|
|
2927
2930
|
id: string;
|
|
2928
2931
|
version: number;
|
|
2929
2932
|
createdAt: string;
|
|
2930
2933
|
updatedAt: string;
|
|
2931
2934
|
realm: string;
|
|
2932
|
-
roles: string[];
|
|
2933
|
-
enabled: boolean;
|
|
2934
|
-
emailVerified: boolean;
|
|
2935
2935
|
} | {
|
|
2936
2936
|
sub: string;
|
|
2937
2937
|
email?: string;
|
|
@@ -2973,7 +2973,7 @@ declare class SessionService {
|
|
|
2973
2973
|
*
|
|
2974
2974
|
* @module alepha.api.users
|
|
2975
2975
|
*/
|
|
2976
|
-
declare const AlephaApiUsers:
|
|
2976
|
+
declare const AlephaApiUsers: alepha1.Service<alepha1.Module>;
|
|
2977
2977
|
//#endregion
|
|
2978
2978
|
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, UserRealmOptions, UserRealmPrimitive, 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 };
|
|
2979
2979
|
//# sourceMappingURL=index.d.ts.map
|