alepha 0.11.9 → 0.11.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -17
- package/dist/index.cjs +17089 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +17088 -0
- package/dist/index.js.map +1 -0
- package/package.json +42 -365
- package/src/assets/biomeJson.ts +33 -0
- package/src/assets/tsconfigJson.ts +18 -0
- package/src/assets/viteConfigTs.ts +14 -0
- package/src/commands/BiomeCommands.ts +41 -0
- package/src/commands/CoreCommands.ts +169 -0
- package/src/commands/DrizzleCommands.ts +228 -0
- package/src/commands/VerifyCommands.ts +44 -0
- package/src/commands/ViteCommands.ts +119 -0
- package/src/index.ts +35 -0
- package/src/services/ProcessRunner.ts +89 -0
- package/src/services/ProjectUtils.ts +508 -0
- package/src/version.ts +7 -0
- package/api/files.cjs +0 -8
- package/api/files.d.ts +0 -438
- package/api/files.js +0 -1
- package/api/jobs.cjs +0 -8
- package/api/jobs.d.ts +0 -327
- package/api/jobs.js +0 -1
- package/api/notifications.cjs +0 -8
- package/api/notifications.d.ts +0 -263
- package/api/notifications.js +0 -1
- package/api/users.cjs +0 -8
- package/api/users.d.ts +0 -923
- package/api/users.js +0 -1
- package/api/verifications.cjs +0 -8
- package/api/verifications.d.ts +0 -1
- package/api/verifications.js +0 -1
- package/batch.cjs +0 -8
- package/batch.d.ts +0 -154
- package/batch.js +0 -1
- package/bucket.cjs +0 -8
- package/bucket.d.ts +0 -520
- package/bucket.js +0 -1
- package/cache/redis.cjs +0 -8
- package/cache/redis.d.ts +0 -40
- package/cache/redis.js +0 -1
- package/cache.cjs +0 -8
- package/cache.d.ts +0 -288
- package/cache.js +0 -1
- package/command.cjs +0 -8
- package/command.d.ts +0 -269
- package/command.js +0 -1
- package/core.cjs +0 -8
- package/core.d.ts +0 -1904
- package/core.js +0 -1
- package/datetime.cjs +0 -8
- package/datetime.d.ts +0 -144
- package/datetime.js +0 -1
- package/devtools.cjs +0 -8
- package/devtools.d.ts +0 -252
- package/devtools.js +0 -1
- package/email.cjs +0 -8
- package/email.d.ts +0 -187
- package/email.js +0 -1
- package/fake.cjs +0 -8
- package/fake.d.ts +0 -73
- package/fake.js +0 -1
- package/file.cjs +0 -8
- package/file.d.ts +0 -528
- package/file.js +0 -1
- package/lock/redis.cjs +0 -8
- package/lock/redis.d.ts +0 -24
- package/lock/redis.js +0 -1
- package/lock.cjs +0 -8
- package/lock.d.ts +0 -552
- package/lock.js +0 -1
- package/logger.cjs +0 -8
- package/logger.d.ts +0 -287
- package/logger.js +0 -1
- package/postgres.cjs +0 -8
- package/postgres.d.ts +0 -2143
- package/postgres.js +0 -1
- package/queue/redis.cjs +0 -8
- package/queue/redis.d.ts +0 -29
- package/queue/redis.js +0 -1
- package/queue.cjs +0 -8
- package/queue.d.ts +0 -760
- package/queue.js +0 -1
- package/react/auth.cjs +0 -8
- package/react/auth.d.ts +0 -504
- package/react/auth.js +0 -1
- package/react/form.cjs +0 -8
- package/react/form.d.ts +0 -211
- package/react/form.js +0 -1
- package/react/head.cjs +0 -8
- package/react/head.d.ts +0 -120
- package/react/head.js +0 -1
- package/react/i18n.cjs +0 -8
- package/react/i18n.d.ts +0 -168
- package/react/i18n.js +0 -1
- package/react.cjs +0 -8
- package/react.d.ts +0 -1263
- package/react.js +0 -1
- package/redis.cjs +0 -8
- package/redis.d.ts +0 -82
- package/redis.js +0 -1
- package/retry.cjs +0 -8
- package/retry.d.ts +0 -162
- package/retry.js +0 -1
- package/router.cjs +0 -8
- package/router.d.ts +0 -45
- package/router.js +0 -1
- package/scheduler.cjs +0 -8
- package/scheduler.d.ts +0 -145
- package/scheduler.js +0 -1
- package/security.cjs +0 -8
- package/security.d.ts +0 -586
- package/security.js +0 -1
- package/server/cache.cjs +0 -8
- package/server/cache.d.ts +0 -163
- package/server/cache.js +0 -1
- package/server/compress.cjs +0 -8
- package/server/compress.d.ts +0 -38
- package/server/compress.js +0 -1
- package/server/cookies.cjs +0 -8
- package/server/cookies.d.ts +0 -144
- package/server/cookies.js +0 -1
- package/server/cors.cjs +0 -8
- package/server/cors.d.ts +0 -45
- package/server/cors.js +0 -1
- package/server/health.cjs +0 -8
- package/server/health.d.ts +0 -58
- package/server/health.js +0 -1
- package/server/helmet.cjs +0 -8
- package/server/helmet.d.ts +0 -98
- package/server/helmet.js +0 -1
- package/server/links.cjs +0 -8
- package/server/links.d.ts +0 -322
- package/server/links.js +0 -1
- package/server/metrics.cjs +0 -8
- package/server/metrics.d.ts +0 -35
- package/server/metrics.js +0 -1
- package/server/multipart.cjs +0 -8
- package/server/multipart.d.ts +0 -42
- package/server/multipart.js +0 -1
- package/server/proxy.cjs +0 -8
- package/server/proxy.d.ts +0 -234
- package/server/proxy.js +0 -1
- package/server/security.cjs +0 -8
- package/server/security.d.ts +0 -92
- package/server/security.js +0 -1
- package/server/static.cjs +0 -8
- package/server/static.d.ts +0 -119
- package/server/static.js +0 -1
- package/server/swagger.cjs +0 -8
- package/server/swagger.d.ts +0 -161
- package/server/swagger.js +0 -1
- package/server.cjs +0 -8
- package/server.d.ts +0 -849
- package/server.js +0 -1
- package/topic/redis.cjs +0 -8
- package/topic/redis.d.ts +0 -42
- package/topic/redis.js +0 -1
- package/topic.cjs +0 -8
- package/topic.d.ts +0 -819
- package/topic.js +0 -1
- package/vite.cjs +0 -8
- package/vite.d.ts +0 -186
- package/vite.js +0 -1
package/api/users.d.ts
DELETED
|
@@ -1,923 +0,0 @@
|
|
|
1
|
-
import * as _alepha_core3 from "alepha";
|
|
2
|
-
import { Alepha, Static } from "alepha";
|
|
3
|
-
import * as _alepha_postgres300 from "alepha/postgres";
|
|
4
|
-
import { Page } from "alepha/postgres";
|
|
5
|
-
import * as _alepha_server13 from "alepha/server";
|
|
6
|
-
import * as _alepha_security0 from "alepha/security";
|
|
7
|
-
import { CryptoProvider, RealmDescriptor, RealmDescriptorOptions, UserAccount } from "alepha/security";
|
|
8
|
-
import * as _alepha_server_links0 from "alepha/server/links";
|
|
9
|
-
import * as _alepha_api_notifications0 from "alepha/api/notifications";
|
|
10
|
-
import { DateTimeProvider } from "alepha/datetime";
|
|
11
|
-
import * as _alepha_react_auth0 from "alepha/react/auth";
|
|
12
|
-
import { OAuth2Profile } from "alepha/react/auth";
|
|
13
|
-
import * as typebox601 from "typebox";
|
|
14
|
-
import { VerificationController } from "alepha/api/verifications";
|
|
15
|
-
|
|
16
|
-
//#region src/entities/identities.d.ts
|
|
17
|
-
declare const identities: _alepha_postgres300.EntityDescriptor<typebox601.TObject<{
|
|
18
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
19
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
20
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
21
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
22
|
-
userId: _alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_REF>;
|
|
23
|
-
provider: typebox601.TString;
|
|
24
|
-
providerUserId: typebox601.TString;
|
|
25
|
-
providerData: typebox601.TOptional<typebox601.TRecord<string, typebox601.TAny>>;
|
|
26
|
-
}>>;
|
|
27
|
-
type IdentityEntity = Static<typeof identities.schema>;
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/schemas/identityQuerySchema.d.ts
|
|
30
|
-
declare const identityQuerySchema: typebox601.TObject<{
|
|
31
|
-
page: typebox601.TOptional<typebox601.TInteger>;
|
|
32
|
-
size: typebox601.TOptional<typebox601.TInteger>;
|
|
33
|
-
sort: typebox601.TOptional<typebox601.TString>;
|
|
34
|
-
userId: typebox601.TOptional<typebox601.TString>;
|
|
35
|
-
provider: typebox601.TOptional<typebox601.TString>;
|
|
36
|
-
}>;
|
|
37
|
-
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/services/IdentityService.d.ts
|
|
40
|
-
declare class IdentityService {
|
|
41
|
-
readonly identities: _alepha_postgres300.Repository<typebox601.TObject<{
|
|
42
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
43
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
44
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
45
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
46
|
-
userId: _alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_REF>;
|
|
47
|
-
provider: typebox601.TString;
|
|
48
|
-
providerUserId: typebox601.TString;
|
|
49
|
-
providerData: typebox601.TOptional<typebox601.TRecord<string, typebox601.TAny>>;
|
|
50
|
-
}>>;
|
|
51
|
-
/**
|
|
52
|
-
* Find identities with pagination and filtering.
|
|
53
|
-
*/
|
|
54
|
-
findIdentities(q?: IdentityQuery): Promise<Page<IdentityEntity>>;
|
|
55
|
-
/**
|
|
56
|
-
* Get an identity by ID.
|
|
57
|
-
*/
|
|
58
|
-
getIdentityById(id: string): Promise<IdentityEntity>;
|
|
59
|
-
/**
|
|
60
|
-
* Delete an identity by ID.
|
|
61
|
-
*/
|
|
62
|
-
deleteIdentity(id: string): Promise<void>;
|
|
63
|
-
}
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region src/controllers/IdentityController.d.ts
|
|
66
|
-
declare class IdentityController {
|
|
67
|
-
protected readonly url = "/identities";
|
|
68
|
-
protected readonly group = "identities";
|
|
69
|
-
protected readonly identityService: IdentityService;
|
|
70
|
-
/**
|
|
71
|
-
* Find identities with pagination and filtering.
|
|
72
|
-
*/
|
|
73
|
-
readonly findIdentities: _alepha_server13.ActionDescriptorFn<{
|
|
74
|
-
query: typebox601.TObject<{
|
|
75
|
-
page: typebox601.TOptional<typebox601.TInteger>;
|
|
76
|
-
size: typebox601.TOptional<typebox601.TInteger>;
|
|
77
|
-
sort: typebox601.TOptional<typebox601.TString>;
|
|
78
|
-
userId: typebox601.TOptional<typebox601.TString>;
|
|
79
|
-
provider: typebox601.TOptional<typebox601.TString>;
|
|
80
|
-
}>;
|
|
81
|
-
response: _alepha_core3.TPage<typebox601.TObject<{
|
|
82
|
-
id: typebox601.TString;
|
|
83
|
-
version: typebox601.TNumber;
|
|
84
|
-
createdAt: typebox601.TString;
|
|
85
|
-
updatedAt: typebox601.TString;
|
|
86
|
-
userId: typebox601.TString;
|
|
87
|
-
provider: typebox601.TString;
|
|
88
|
-
providerUserId: typebox601.TString;
|
|
89
|
-
providerData: typebox601.TOptional<typebox601.TRecord<string, typebox601.TAny>>;
|
|
90
|
-
}>>;
|
|
91
|
-
}>;
|
|
92
|
-
/**
|
|
93
|
-
* Get an identity by ID.
|
|
94
|
-
*/
|
|
95
|
-
readonly getIdentity: _alepha_server13.ActionDescriptorFn<{
|
|
96
|
-
params: typebox601.TObject<{
|
|
97
|
-
id: typebox601.TString;
|
|
98
|
-
}>;
|
|
99
|
-
response: typebox601.TObject<{
|
|
100
|
-
id: typebox601.TString;
|
|
101
|
-
version: typebox601.TNumber;
|
|
102
|
-
createdAt: typebox601.TString;
|
|
103
|
-
updatedAt: typebox601.TString;
|
|
104
|
-
userId: typebox601.TString;
|
|
105
|
-
provider: typebox601.TString;
|
|
106
|
-
providerUserId: typebox601.TString;
|
|
107
|
-
providerData: typebox601.TOptional<typebox601.TRecord<string, typebox601.TAny>>;
|
|
108
|
-
}>;
|
|
109
|
-
}>;
|
|
110
|
-
/**
|
|
111
|
-
* Delete an identity.
|
|
112
|
-
*/
|
|
113
|
-
readonly deleteIdentity: _alepha_server13.ActionDescriptorFn<{
|
|
114
|
-
params: typebox601.TObject<{
|
|
115
|
-
id: typebox601.TString;
|
|
116
|
-
}>;
|
|
117
|
-
response: typebox601.TObject<{
|
|
118
|
-
ok: typebox601.TBoolean;
|
|
119
|
-
id: typebox601.TOptional<typebox601.TUnion<[typebox601.TString, typebox601.TInteger]>>;
|
|
120
|
-
count: typebox601.TOptional<typebox601.TNumber>;
|
|
121
|
-
}>;
|
|
122
|
-
}>;
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region src/entities/sessions.d.ts
|
|
126
|
-
declare const sessions: _alepha_postgres300.EntityDescriptor<typebox601.TObject<{
|
|
127
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
128
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
129
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
130
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
131
|
-
refreshToken: typebox601.TString;
|
|
132
|
-
userId: _alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_REF>;
|
|
133
|
-
expiresAt: typebox601.TString;
|
|
134
|
-
ip: typebox601.TOptional<typebox601.TString>;
|
|
135
|
-
userAgent: typebox601.TOptional<typebox601.TObject<{
|
|
136
|
-
os: typebox601.TString;
|
|
137
|
-
browser: typebox601.TString;
|
|
138
|
-
device: typebox601.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
139
|
-
}>>;
|
|
140
|
-
}>>;
|
|
141
|
-
type SessionEntity = Static<typeof sessions.schema>;
|
|
142
|
-
//#endregion
|
|
143
|
-
//#region src/schemas/sessionQuerySchema.d.ts
|
|
144
|
-
declare const sessionQuerySchema: typebox601.TObject<{
|
|
145
|
-
page: typebox601.TOptional<typebox601.TInteger>;
|
|
146
|
-
size: typebox601.TOptional<typebox601.TInteger>;
|
|
147
|
-
sort: typebox601.TOptional<typebox601.TString>;
|
|
148
|
-
userId: typebox601.TOptional<typebox601.TString>;
|
|
149
|
-
}>;
|
|
150
|
-
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
151
|
-
//#endregion
|
|
152
|
-
//#region src/services/SessionCrudService.d.ts
|
|
153
|
-
declare class SessionCrudService {
|
|
154
|
-
readonly sessions: _alepha_postgres300.Repository<typebox601.TObject<{
|
|
155
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
156
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
157
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
158
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
159
|
-
refreshToken: typebox601.TString;
|
|
160
|
-
userId: _alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_REF>;
|
|
161
|
-
expiresAt: typebox601.TString;
|
|
162
|
-
ip: typebox601.TOptional<typebox601.TString>;
|
|
163
|
-
userAgent: typebox601.TOptional<typebox601.TObject<{
|
|
164
|
-
os: typebox601.TString;
|
|
165
|
-
browser: typebox601.TString;
|
|
166
|
-
device: typebox601.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
167
|
-
}>>;
|
|
168
|
-
}>>;
|
|
169
|
-
/**
|
|
170
|
-
* Find sessions with pagination and filtering.
|
|
171
|
-
*/
|
|
172
|
-
findSessions(q?: SessionQuery): Promise<Page<SessionEntity>>;
|
|
173
|
-
/**
|
|
174
|
-
* Get a session by ID.
|
|
175
|
-
*/
|
|
176
|
-
getSessionById(id: string): Promise<SessionEntity>;
|
|
177
|
-
/**
|
|
178
|
-
* Delete a session by ID.
|
|
179
|
-
*/
|
|
180
|
-
deleteSession(id: string): Promise<void>;
|
|
181
|
-
}
|
|
182
|
-
//#endregion
|
|
183
|
-
//#region src/controllers/SessionController.d.ts
|
|
184
|
-
declare class SessionController {
|
|
185
|
-
protected readonly url = "/sessions";
|
|
186
|
-
protected readonly group = "sessions";
|
|
187
|
-
protected readonly sessionService: SessionCrudService;
|
|
188
|
-
/**
|
|
189
|
-
* Find sessions with pagination and filtering.
|
|
190
|
-
*/
|
|
191
|
-
readonly findSessions: _alepha_server13.ActionDescriptorFn<{
|
|
192
|
-
query: typebox601.TObject<{
|
|
193
|
-
page: typebox601.TOptional<typebox601.TInteger>;
|
|
194
|
-
size: typebox601.TOptional<typebox601.TInteger>;
|
|
195
|
-
sort: typebox601.TOptional<typebox601.TString>;
|
|
196
|
-
userId: typebox601.TOptional<typebox601.TString>;
|
|
197
|
-
}>;
|
|
198
|
-
response: _alepha_core3.TPage<typebox601.TObject<{
|
|
199
|
-
id: typebox601.TString;
|
|
200
|
-
version: typebox601.TNumber;
|
|
201
|
-
createdAt: typebox601.TString;
|
|
202
|
-
updatedAt: typebox601.TString;
|
|
203
|
-
refreshToken: typebox601.TString;
|
|
204
|
-
userId: typebox601.TString;
|
|
205
|
-
expiresAt: typebox601.TString;
|
|
206
|
-
ip: typebox601.TOptional<typebox601.TString>;
|
|
207
|
-
userAgent: typebox601.TOptional<typebox601.TObject<{
|
|
208
|
-
os: typebox601.TString;
|
|
209
|
-
browser: typebox601.TString;
|
|
210
|
-
device: typebox601.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
211
|
-
}>>;
|
|
212
|
-
}>>;
|
|
213
|
-
}>;
|
|
214
|
-
/**
|
|
215
|
-
* Get a session by ID.
|
|
216
|
-
*/
|
|
217
|
-
readonly getSession: _alepha_server13.ActionDescriptorFn<{
|
|
218
|
-
params: typebox601.TObject<{
|
|
219
|
-
id: typebox601.TString;
|
|
220
|
-
}>;
|
|
221
|
-
response: typebox601.TObject<{
|
|
222
|
-
id: typebox601.TString;
|
|
223
|
-
version: typebox601.TNumber;
|
|
224
|
-
createdAt: typebox601.TString;
|
|
225
|
-
updatedAt: typebox601.TString;
|
|
226
|
-
refreshToken: typebox601.TString;
|
|
227
|
-
userId: typebox601.TString;
|
|
228
|
-
expiresAt: typebox601.TString;
|
|
229
|
-
ip: typebox601.TOptional<typebox601.TString>;
|
|
230
|
-
userAgent: typebox601.TOptional<typebox601.TObject<{
|
|
231
|
-
os: typebox601.TString;
|
|
232
|
-
browser: typebox601.TString;
|
|
233
|
-
device: typebox601.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
234
|
-
}>>;
|
|
235
|
-
}>;
|
|
236
|
-
}>;
|
|
237
|
-
/**
|
|
238
|
-
* Delete a session.
|
|
239
|
-
*/
|
|
240
|
-
readonly deleteSession: _alepha_server13.ActionDescriptorFn<{
|
|
241
|
-
params: typebox601.TObject<{
|
|
242
|
-
id: typebox601.TString;
|
|
243
|
-
}>;
|
|
244
|
-
response: typebox601.TObject<{
|
|
245
|
-
ok: typebox601.TBoolean;
|
|
246
|
-
id: typebox601.TOptional<typebox601.TUnion<[typebox601.TString, typebox601.TInteger]>>;
|
|
247
|
-
count: typebox601.TOptional<typebox601.TNumber>;
|
|
248
|
-
}>;
|
|
249
|
-
}>;
|
|
250
|
-
}
|
|
251
|
-
//#endregion
|
|
252
|
-
//#region src/notifications/UserNotifications.d.ts
|
|
253
|
-
declare class UserNotifications {
|
|
254
|
-
readonly passwordReset: _alepha_api_notifications0.NotificationDescriptor<typebox601.TObject<{
|
|
255
|
-
email: typebox601.TString;
|
|
256
|
-
resetUrl: typebox601.TString;
|
|
257
|
-
expiresInMinutes: typebox601.TNumber;
|
|
258
|
-
}>>;
|
|
259
|
-
readonly emailVerification: _alepha_api_notifications0.NotificationDescriptor<typebox601.TObject<{
|
|
260
|
-
email: typebox601.TString;
|
|
261
|
-
verifyUrl: typebox601.TString;
|
|
262
|
-
expiresInMinutes: typebox601.TNumber;
|
|
263
|
-
}>>;
|
|
264
|
-
}
|
|
265
|
-
//#endregion
|
|
266
|
-
//#region src/services/CredentialService.d.ts
|
|
267
|
-
declare class CredentialService {
|
|
268
|
-
protected readonly cryptoProvider: CryptoProvider;
|
|
269
|
-
protected readonly verificationController: _alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
270
|
-
protected readonly userNotifications: UserNotifications;
|
|
271
|
-
readonly users: _alepha_postgres300.Repository<typebox601.TObject<{
|
|
272
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
273
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
274
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
275
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
276
|
-
email: typebox601.TString;
|
|
277
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
278
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
279
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
280
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
281
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
282
|
-
enabled: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
283
|
-
emailVerified: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
284
|
-
}>>;
|
|
285
|
-
readonly sessions: _alepha_postgres300.Repository<typebox601.TObject<{
|
|
286
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
287
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
288
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
289
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
290
|
-
refreshToken: typebox601.TString;
|
|
291
|
-
userId: _alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_REF>;
|
|
292
|
-
expiresAt: typebox601.TString;
|
|
293
|
-
ip: typebox601.TOptional<typebox601.TString>;
|
|
294
|
-
userAgent: typebox601.TOptional<typebox601.TObject<{
|
|
295
|
-
os: typebox601.TString;
|
|
296
|
-
browser: typebox601.TString;
|
|
297
|
-
device: typebox601.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
298
|
-
}>>;
|
|
299
|
-
}>>;
|
|
300
|
-
readonly identities: _alepha_postgres300.Repository<typebox601.TObject<{
|
|
301
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
302
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
303
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
304
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
305
|
-
userId: _alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_REF>;
|
|
306
|
-
provider: typebox601.TString;
|
|
307
|
-
providerUserId: typebox601.TString;
|
|
308
|
-
providerData: typebox601.TOptional<typebox601.TRecord<string, typebox601.TAny>>;
|
|
309
|
-
}>>;
|
|
310
|
-
/**
|
|
311
|
-
* Request a password reset for a user by email.
|
|
312
|
-
* Uses the verification service for secure token generation and management.
|
|
313
|
-
*
|
|
314
|
-
* @param email - User's email address
|
|
315
|
-
* @param resetUrl - Base URL for the password reset page
|
|
316
|
-
* @returns True if reset was initiated (regardless of whether user exists - for security)
|
|
317
|
-
*/
|
|
318
|
-
requestPasswordReset(email: string, resetUrl: string): Promise<boolean>;
|
|
319
|
-
/**
|
|
320
|
-
* Validate a password reset token.
|
|
321
|
-
* Returns email if valid, throws error if invalid/expired.
|
|
322
|
-
*/
|
|
323
|
-
validateResetToken(email: string, token: string): Promise<string>;
|
|
324
|
-
/**
|
|
325
|
-
* Reset a user's password using a valid reset token.
|
|
326
|
-
* Validates token, updates password, and invalidates all sessions.
|
|
327
|
-
*/
|
|
328
|
-
resetPassword(email: string, token: string, newPassword: string): Promise<void>;
|
|
329
|
-
}
|
|
330
|
-
//#endregion
|
|
331
|
-
//#region src/entities/users.d.ts
|
|
332
|
-
declare const users: _alepha_postgres300.EntityDescriptor<typebox601.TObject<{
|
|
333
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
334
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
335
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
336
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
337
|
-
email: typebox601.TString;
|
|
338
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
339
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
340
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
341
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
342
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
343
|
-
enabled: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
344
|
-
emailVerified: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
345
|
-
}>>;
|
|
346
|
-
type UserEntity = Static<typeof users.schema>;
|
|
347
|
-
//#endregion
|
|
348
|
-
//#region src/schemas/createUserSchema.d.ts
|
|
349
|
-
declare const createUserSchema: typebox601.TObject<{
|
|
350
|
-
email: typebox601.TString;
|
|
351
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
352
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
353
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
354
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
355
|
-
roles: typebox601.TOptional<typebox601.TArray<typebox601.TString>>;
|
|
356
|
-
enabled: typebox601.TOptional<typebox601.TBoolean>;
|
|
357
|
-
emailVerified: typebox601.TOptional<typebox601.TBoolean>;
|
|
358
|
-
}>;
|
|
359
|
-
type CreateUser = Static<typeof createUserSchema>;
|
|
360
|
-
//#endregion
|
|
361
|
-
//#region src/schemas/updateUserSchema.d.ts
|
|
362
|
-
declare const updateUserSchema: typebox601.TObject<{
|
|
363
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
364
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
365
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
366
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
367
|
-
roles: typebox601.TOptional<typebox601.TArray<typebox601.TString>>;
|
|
368
|
-
enabled: typebox601.TOptional<typebox601.TBoolean>;
|
|
369
|
-
}>;
|
|
370
|
-
type UpdateUser = Static<typeof updateUserSchema>;
|
|
371
|
-
//#endregion
|
|
372
|
-
//#region src/schemas/userQuerySchema.d.ts
|
|
373
|
-
declare const userQuerySchema: typebox601.TObject<{
|
|
374
|
-
page: typebox601.TOptional<typebox601.TInteger>;
|
|
375
|
-
size: typebox601.TOptional<typebox601.TInteger>;
|
|
376
|
-
sort: typebox601.TOptional<typebox601.TString>;
|
|
377
|
-
email: typebox601.TOptional<typebox601.TString>;
|
|
378
|
-
enabled: typebox601.TOptional<typebox601.TBoolean>;
|
|
379
|
-
emailVerified: typebox601.TOptional<typebox601.TBoolean>;
|
|
380
|
-
roles: typebox601.TOptional<typebox601.TArray<typebox601.TString>>;
|
|
381
|
-
}>;
|
|
382
|
-
type UserQuery = Static<typeof userQuerySchema>;
|
|
383
|
-
//#endregion
|
|
384
|
-
//#region src/services/UserService.d.ts
|
|
385
|
-
declare class UserService {
|
|
386
|
-
protected readonly verificationController: _alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
387
|
-
protected readonly userNotifications: UserNotifications;
|
|
388
|
-
readonly users: _alepha_postgres300.Repository<typebox601.TObject<{
|
|
389
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
390
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
391
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
392
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
393
|
-
email: typebox601.TString;
|
|
394
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
395
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
396
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
397
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
398
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
399
|
-
enabled: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
400
|
-
emailVerified: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
401
|
-
}>>;
|
|
402
|
-
/**
|
|
403
|
-
* Request email verification for a user.
|
|
404
|
-
* Uses the verification service for secure token generation and management.
|
|
405
|
-
*
|
|
406
|
-
* @param email - User's email address
|
|
407
|
-
* @param verifyUrl - Base URL for the email verification page
|
|
408
|
-
* @returns True if verification was initiated
|
|
409
|
-
*/
|
|
410
|
-
requestEmailVerification(email: string, verifyUrl: string): Promise<boolean>;
|
|
411
|
-
/**
|
|
412
|
-
* Verify a user's email using a valid verification token.
|
|
413
|
-
* Validates token and updates the user's emailVerified status.
|
|
414
|
-
*/
|
|
415
|
-
verifyEmail(email: string, token: string): Promise<void>;
|
|
416
|
-
/**
|
|
417
|
-
* Check if an email is verified.
|
|
418
|
-
*
|
|
419
|
-
* @param email - User's email address
|
|
420
|
-
* @returns True if email is verified, false otherwise
|
|
421
|
-
*/
|
|
422
|
-
isEmailVerified(email: string): Promise<boolean>;
|
|
423
|
-
/**
|
|
424
|
-
* Find users with pagination and filtering.
|
|
425
|
-
*/
|
|
426
|
-
findUsers(q?: UserQuery): Promise<Page<UserEntity>>;
|
|
427
|
-
/**
|
|
428
|
-
* Get a user by ID.
|
|
429
|
-
*/
|
|
430
|
-
getUserById(id: string): Promise<UserEntity>;
|
|
431
|
-
/**
|
|
432
|
-
* Create a new user.
|
|
433
|
-
*/
|
|
434
|
-
createUser(data: CreateUser): Promise<UserEntity>;
|
|
435
|
-
/**
|
|
436
|
-
* Update an existing user.
|
|
437
|
-
*/
|
|
438
|
-
updateUser(id: string, data: UpdateUser): Promise<UserEntity>;
|
|
439
|
-
/**
|
|
440
|
-
* Delete a user by ID.
|
|
441
|
-
*/
|
|
442
|
-
deleteUser(id: string): Promise<void>;
|
|
443
|
-
}
|
|
444
|
-
//#endregion
|
|
445
|
-
//#region src/controllers/UserController.d.ts
|
|
446
|
-
declare class UserController {
|
|
447
|
-
protected readonly url = "/users";
|
|
448
|
-
protected readonly group = "users";
|
|
449
|
-
protected readonly credentialService: CredentialService;
|
|
450
|
-
protected readonly userService: UserService;
|
|
451
|
-
/**
|
|
452
|
-
* Find users with pagination and filtering.
|
|
453
|
-
*/
|
|
454
|
-
readonly findUsers: _alepha_server13.ActionDescriptorFn<{
|
|
455
|
-
query: typebox601.TObject<{
|
|
456
|
-
page: typebox601.TOptional<typebox601.TInteger>;
|
|
457
|
-
size: typebox601.TOptional<typebox601.TInteger>;
|
|
458
|
-
sort: typebox601.TOptional<typebox601.TString>;
|
|
459
|
-
email: typebox601.TOptional<typebox601.TString>;
|
|
460
|
-
enabled: typebox601.TOptional<typebox601.TBoolean>;
|
|
461
|
-
emailVerified: typebox601.TOptional<typebox601.TBoolean>;
|
|
462
|
-
roles: typebox601.TOptional<typebox601.TArray<typebox601.TString>>;
|
|
463
|
-
}>;
|
|
464
|
-
response: _alepha_core3.TPage<typebox601.TObject<{
|
|
465
|
-
id: typebox601.TString;
|
|
466
|
-
version: typebox601.TNumber;
|
|
467
|
-
createdAt: typebox601.TString;
|
|
468
|
-
updatedAt: typebox601.TString;
|
|
469
|
-
email: typebox601.TString;
|
|
470
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
471
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
472
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
473
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
474
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
475
|
-
enabled: typebox601.TBoolean;
|
|
476
|
-
emailVerified: typebox601.TBoolean;
|
|
477
|
-
}>>;
|
|
478
|
-
}>;
|
|
479
|
-
/**
|
|
480
|
-
* Get a user by ID.
|
|
481
|
-
*/
|
|
482
|
-
readonly getUser: _alepha_server13.ActionDescriptorFn<{
|
|
483
|
-
params: typebox601.TObject<{
|
|
484
|
-
id: typebox601.TString;
|
|
485
|
-
}>;
|
|
486
|
-
response: typebox601.TObject<{
|
|
487
|
-
id: typebox601.TString;
|
|
488
|
-
version: typebox601.TNumber;
|
|
489
|
-
createdAt: typebox601.TString;
|
|
490
|
-
updatedAt: typebox601.TString;
|
|
491
|
-
email: typebox601.TString;
|
|
492
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
493
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
494
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
495
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
496
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
497
|
-
enabled: typebox601.TBoolean;
|
|
498
|
-
emailVerified: typebox601.TBoolean;
|
|
499
|
-
}>;
|
|
500
|
-
}>;
|
|
501
|
-
/**
|
|
502
|
-
* Create a new user.
|
|
503
|
-
*/
|
|
504
|
-
readonly createUser: _alepha_server13.ActionDescriptorFn<{
|
|
505
|
-
body: typebox601.TObject<{
|
|
506
|
-
email: typebox601.TString;
|
|
507
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
508
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
509
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
510
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
511
|
-
roles: typebox601.TOptional<typebox601.TArray<typebox601.TString>>;
|
|
512
|
-
enabled: typebox601.TOptional<typebox601.TBoolean>;
|
|
513
|
-
emailVerified: typebox601.TOptional<typebox601.TBoolean>;
|
|
514
|
-
}>;
|
|
515
|
-
response: typebox601.TObject<{
|
|
516
|
-
id: typebox601.TString;
|
|
517
|
-
version: typebox601.TNumber;
|
|
518
|
-
createdAt: typebox601.TString;
|
|
519
|
-
updatedAt: typebox601.TString;
|
|
520
|
-
email: typebox601.TString;
|
|
521
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
522
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
523
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
524
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
525
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
526
|
-
enabled: typebox601.TBoolean;
|
|
527
|
-
emailVerified: typebox601.TBoolean;
|
|
528
|
-
}>;
|
|
529
|
-
}>;
|
|
530
|
-
/**
|
|
531
|
-
* Update a user.
|
|
532
|
-
*/
|
|
533
|
-
readonly updateUser: _alepha_server13.ActionDescriptorFn<{
|
|
534
|
-
params: typebox601.TObject<{
|
|
535
|
-
id: typebox601.TString;
|
|
536
|
-
}>;
|
|
537
|
-
body: typebox601.TObject<{
|
|
538
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
539
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
540
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
541
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
542
|
-
roles: typebox601.TOptional<typebox601.TArray<typebox601.TString>>;
|
|
543
|
-
enabled: typebox601.TOptional<typebox601.TBoolean>;
|
|
544
|
-
}>;
|
|
545
|
-
response: typebox601.TObject<{
|
|
546
|
-
id: typebox601.TString;
|
|
547
|
-
version: typebox601.TNumber;
|
|
548
|
-
createdAt: typebox601.TString;
|
|
549
|
-
updatedAt: typebox601.TString;
|
|
550
|
-
email: typebox601.TString;
|
|
551
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
552
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
553
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
554
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
555
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
556
|
-
enabled: typebox601.TBoolean;
|
|
557
|
-
emailVerified: typebox601.TBoolean;
|
|
558
|
-
}>;
|
|
559
|
-
}>;
|
|
560
|
-
/**
|
|
561
|
-
* Delete a user.
|
|
562
|
-
*/
|
|
563
|
-
readonly deleteUser: _alepha_server13.ActionDescriptorFn<{
|
|
564
|
-
params: typebox601.TObject<{
|
|
565
|
-
id: typebox601.TString;
|
|
566
|
-
}>;
|
|
567
|
-
response: typebox601.TObject<{
|
|
568
|
-
ok: typebox601.TBoolean;
|
|
569
|
-
id: typebox601.TOptional<typebox601.TUnion<[typebox601.TString, typebox601.TInteger]>>;
|
|
570
|
-
count: typebox601.TOptional<typebox601.TNumber>;
|
|
571
|
-
}>;
|
|
572
|
-
}>;
|
|
573
|
-
/**
|
|
574
|
-
* Request a password reset.
|
|
575
|
-
* Generates a reset token using verification service and sends an email to the user.
|
|
576
|
-
*/
|
|
577
|
-
requestPasswordReset: _alepha_server13.ActionDescriptorFn<{
|
|
578
|
-
body: typebox601.TObject<{
|
|
579
|
-
email: typebox601.TString;
|
|
580
|
-
resetUrl: typebox601.TString;
|
|
581
|
-
}>;
|
|
582
|
-
response: typebox601.TObject<{
|
|
583
|
-
success: typebox601.TBoolean;
|
|
584
|
-
message: typebox601.TString;
|
|
585
|
-
}>;
|
|
586
|
-
}>;
|
|
587
|
-
/**
|
|
588
|
-
* Validate a password reset token.
|
|
589
|
-
* Checks if the token is valid and not expired.
|
|
590
|
-
*/
|
|
591
|
-
validateResetToken: _alepha_server13.ActionDescriptorFn<{
|
|
592
|
-
query: typebox601.TObject<{
|
|
593
|
-
email: typebox601.TString;
|
|
594
|
-
token: typebox601.TString;
|
|
595
|
-
}>;
|
|
596
|
-
response: typebox601.TObject<{
|
|
597
|
-
valid: typebox601.TBoolean;
|
|
598
|
-
email: typebox601.TOptional<typebox601.TString>;
|
|
599
|
-
}>;
|
|
600
|
-
}>;
|
|
601
|
-
/**
|
|
602
|
-
* Reset password with a valid token.
|
|
603
|
-
* Updates the user's password and invalidates all sessions.
|
|
604
|
-
*/
|
|
605
|
-
resetPassword: _alepha_server13.ActionDescriptorFn<{
|
|
606
|
-
body: typebox601.TObject<{
|
|
607
|
-
email: typebox601.TString;
|
|
608
|
-
token: typebox601.TString;
|
|
609
|
-
newPassword: typebox601.TString;
|
|
610
|
-
}>;
|
|
611
|
-
response: typebox601.TObject<{
|
|
612
|
-
success: typebox601.TBoolean;
|
|
613
|
-
message: typebox601.TString;
|
|
614
|
-
}>;
|
|
615
|
-
}>;
|
|
616
|
-
/**
|
|
617
|
-
* Request email verification.
|
|
618
|
-
* Generates a verification token using verification service and sends an email to the user.
|
|
619
|
-
*/
|
|
620
|
-
requestEmailVerification: _alepha_server13.ActionDescriptorFn<{
|
|
621
|
-
body: typebox601.TObject<{
|
|
622
|
-
email: typebox601.TString;
|
|
623
|
-
verifyUrl: typebox601.TString;
|
|
624
|
-
}>;
|
|
625
|
-
response: typebox601.TObject<{
|
|
626
|
-
success: typebox601.TBoolean;
|
|
627
|
-
message: typebox601.TString;
|
|
628
|
-
}>;
|
|
629
|
-
}>;
|
|
630
|
-
/**
|
|
631
|
-
* Verify email with a valid token.
|
|
632
|
-
* Updates the user's emailVerified status.
|
|
633
|
-
*/
|
|
634
|
-
verifyEmail: _alepha_server13.ActionDescriptorFn<{
|
|
635
|
-
body: typebox601.TObject<{
|
|
636
|
-
email: typebox601.TString;
|
|
637
|
-
token: typebox601.TString;
|
|
638
|
-
}>;
|
|
639
|
-
response: typebox601.TObject<{
|
|
640
|
-
success: typebox601.TBoolean;
|
|
641
|
-
message: typebox601.TString;
|
|
642
|
-
}>;
|
|
643
|
-
}>;
|
|
644
|
-
/**
|
|
645
|
-
* Check if an email is verified.
|
|
646
|
-
*/
|
|
647
|
-
checkEmailVerification: _alepha_server13.ActionDescriptorFn<{
|
|
648
|
-
query: typebox601.TObject<{
|
|
649
|
-
email: typebox601.TString;
|
|
650
|
-
}>;
|
|
651
|
-
response: typebox601.TObject<{
|
|
652
|
-
verified: typebox601.TBoolean;
|
|
653
|
-
}>;
|
|
654
|
-
}>;
|
|
655
|
-
}
|
|
656
|
-
//#endregion
|
|
657
|
-
//#region src/descriptors/$authApple.d.ts
|
|
658
|
-
/**
|
|
659
|
-
* TODO: Implement Apple authentication
|
|
660
|
-
*/
|
|
661
|
-
declare const $authApple: () => never;
|
|
662
|
-
//#endregion
|
|
663
|
-
//#region src/descriptors/$authCredentials.d.ts
|
|
664
|
-
declare const $authCredentials: (realm: RealmDescriptor) => _alepha_react_auth0.AuthDescriptor;
|
|
665
|
-
//#endregion
|
|
666
|
-
//#region src/descriptors/$authGithub.d.ts
|
|
667
|
-
/**
|
|
668
|
-
* Already configured GitHub authentication descriptor.
|
|
669
|
-
*
|
|
670
|
-
* Uses OAuth2 to authenticate users via their GitHub accounts.
|
|
671
|
-
* Upon successful authentication, it links the GitHub account to a user session.
|
|
672
|
-
*
|
|
673
|
-
* Environment Variables:
|
|
674
|
-
* - `GITHUB_CLIENT_ID`: The client ID obtained from the GitHub Developer Settings.
|
|
675
|
-
* - `GITHUB_CLIENT_SECRET`: The client secret obtained from the GitHub Developer Settings.
|
|
676
|
-
*/
|
|
677
|
-
declare const $authGithub: (realm: RealmDescriptor) => _alepha_react_auth0.AuthDescriptor;
|
|
678
|
-
//#endregion
|
|
679
|
-
//#region src/descriptors/$authGoogle.d.ts
|
|
680
|
-
/**
|
|
681
|
-
* Already configured Google authentication descriptor.
|
|
682
|
-
*
|
|
683
|
-
* Uses OpenID Connect (OIDC) to authenticate users via their Google accounts.
|
|
684
|
-
* Upon successful authentication, it links the Google account to a user session.
|
|
685
|
-
*
|
|
686
|
-
* Environment Variables:
|
|
687
|
-
* - `GOOGLE_CLIENT_ID`: The client ID obtained from the Google Developer Console.
|
|
688
|
-
* - `GOOGLE_CLIENT_SECRET`: The client secret obtained from the Google Developer Console.
|
|
689
|
-
*/
|
|
690
|
-
declare const $authGoogle: (realm: RealmDescriptor) => _alepha_react_auth0.AuthDescriptor;
|
|
691
|
-
//#endregion
|
|
692
|
-
//#region src/descriptors/$realmUsers.d.ts
|
|
693
|
-
/**
|
|
694
|
-
* Already configured realm for user management.
|
|
695
|
-
*
|
|
696
|
-
* Realm contains two roles: `admin` and `user`.
|
|
697
|
-
*
|
|
698
|
-
* - `admin`: Has full access to all resources and permissions.
|
|
699
|
-
* - `user`: Has access to their own resources and permissions, but cannot access admin-level resources.
|
|
700
|
-
*
|
|
701
|
-
* Realm uses session management for handling user sessions.
|
|
702
|
-
*
|
|
703
|
-
* Environment Variables:
|
|
704
|
-
* - `APP_SECRET`: Secret key for signing tokens (if not provided in options).
|
|
705
|
-
*/
|
|
706
|
-
declare const $realmUsers: (options?: {
|
|
707
|
-
secret?: string;
|
|
708
|
-
realm?: Partial<RealmDescriptorOptions>;
|
|
709
|
-
}) => _alepha_security0.RealmDescriptor;
|
|
710
|
-
//#endregion
|
|
711
|
-
//#region src/schemas/identityResourceSchema.d.ts
|
|
712
|
-
declare const identityResourceSchema: typebox601.TObject<{
|
|
713
|
-
id: typebox601.TString;
|
|
714
|
-
version: typebox601.TNumber;
|
|
715
|
-
createdAt: typebox601.TString;
|
|
716
|
-
updatedAt: typebox601.TString;
|
|
717
|
-
userId: typebox601.TString;
|
|
718
|
-
provider: typebox601.TString;
|
|
719
|
-
providerUserId: typebox601.TString;
|
|
720
|
-
providerData: typebox601.TOptional<typebox601.TRecord<string, typebox601.TAny>>;
|
|
721
|
-
}>;
|
|
722
|
-
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
723
|
-
//#endregion
|
|
724
|
-
//#region src/schemas/sessionResourceSchema.d.ts
|
|
725
|
-
declare const sessionResourceSchema: typebox601.TObject<{
|
|
726
|
-
id: typebox601.TString;
|
|
727
|
-
version: typebox601.TNumber;
|
|
728
|
-
createdAt: typebox601.TString;
|
|
729
|
-
updatedAt: typebox601.TString;
|
|
730
|
-
refreshToken: typebox601.TString;
|
|
731
|
-
userId: typebox601.TString;
|
|
732
|
-
expiresAt: typebox601.TString;
|
|
733
|
-
ip: typebox601.TOptional<typebox601.TString>;
|
|
734
|
-
userAgent: typebox601.TOptional<typebox601.TObject<{
|
|
735
|
-
os: typebox601.TString;
|
|
736
|
-
browser: typebox601.TString;
|
|
737
|
-
device: typebox601.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
738
|
-
}>>;
|
|
739
|
-
}>;
|
|
740
|
-
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
741
|
-
//#endregion
|
|
742
|
-
//#region src/schemas/userResourceSchema.d.ts
|
|
743
|
-
declare const userResourceSchema: typebox601.TObject<{
|
|
744
|
-
id: typebox601.TString;
|
|
745
|
-
version: typebox601.TNumber;
|
|
746
|
-
createdAt: typebox601.TString;
|
|
747
|
-
updatedAt: typebox601.TString;
|
|
748
|
-
email: typebox601.TString;
|
|
749
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
750
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
751
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
752
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
753
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
754
|
-
enabled: typebox601.TBoolean;
|
|
755
|
-
emailVerified: typebox601.TBoolean;
|
|
756
|
-
}>;
|
|
757
|
-
type UserResource = Static<typeof userResourceSchema>;
|
|
758
|
-
//#endregion
|
|
759
|
-
//#region src/services/SessionService.d.ts
|
|
760
|
-
declare class SessionService {
|
|
761
|
-
protected readonly alepha: Alepha;
|
|
762
|
-
protected readonly dateTimeProvider: DateTimeProvider;
|
|
763
|
-
protected readonly cryptoProvider: CryptoProvider;
|
|
764
|
-
readonly users: _alepha_postgres300.Repository<typebox601.TObject<{
|
|
765
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
766
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
767
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
768
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
769
|
-
email: typebox601.TString;
|
|
770
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
771
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
772
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
773
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
774
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
775
|
-
enabled: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
776
|
-
emailVerified: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
777
|
-
}>>;
|
|
778
|
-
readonly sessions: _alepha_postgres300.Repository<typebox601.TObject<{
|
|
779
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
780
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
781
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
782
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
783
|
-
refreshToken: typebox601.TString;
|
|
784
|
-
userId: _alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_REF>;
|
|
785
|
-
expiresAt: typebox601.TString;
|
|
786
|
-
ip: typebox601.TOptional<typebox601.TString>;
|
|
787
|
-
userAgent: typebox601.TOptional<typebox601.TObject<{
|
|
788
|
-
os: typebox601.TString;
|
|
789
|
-
browser: typebox601.TString;
|
|
790
|
-
device: typebox601.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
791
|
-
}>>;
|
|
792
|
-
}>>;
|
|
793
|
-
readonly identities: _alepha_postgres300.Repository<typebox601.TObject<{
|
|
794
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
795
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
796
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
797
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
798
|
-
userId: _alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_REF>;
|
|
799
|
-
provider: typebox601.TString;
|
|
800
|
-
providerUserId: typebox601.TString;
|
|
801
|
-
providerData: typebox601.TOptional<typebox601.TRecord<string, typebox601.TAny>>;
|
|
802
|
-
}>>;
|
|
803
|
-
login(provider: string, username: string, password: string): Promise<_alepha_postgres300.PgStatic<typebox601.TObject<{
|
|
804
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
805
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
806
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
807
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
808
|
-
email: typebox601.TString;
|
|
809
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
810
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
811
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
812
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
813
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
814
|
-
enabled: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
815
|
-
emailVerified: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
816
|
-
}>, _alepha_postgres300.PgRelationMap<typebox601.TObject<{
|
|
817
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
818
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
819
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
820
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
821
|
-
email: typebox601.TString;
|
|
822
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
823
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
824
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
825
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
826
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
827
|
-
enabled: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
828
|
-
emailVerified: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
829
|
-
}>>>>;
|
|
830
|
-
createSession(user: UserAccount, expiresIn: number): Promise<{
|
|
831
|
-
refreshToken: string;
|
|
832
|
-
sessionId: string;
|
|
833
|
-
}>;
|
|
834
|
-
refreshSession(refreshToken: string): Promise<{
|
|
835
|
-
user: _alepha_postgres300.PgStatic<typebox601.TObject<{
|
|
836
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
837
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
838
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
839
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
840
|
-
email: typebox601.TString;
|
|
841
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
842
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
843
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
844
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
845
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
846
|
-
enabled: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
847
|
-
emailVerified: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
848
|
-
}>, _alepha_postgres300.PgRelationMap<typebox601.TObject<{
|
|
849
|
-
id: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_PRIMARY_KEY>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
850
|
-
version: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TInteger, typeof _alepha_postgres300.PG_VERSION>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
851
|
-
createdAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_CREATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
852
|
-
updatedAt: _alepha_postgres300.PgAttr<_alepha_postgres300.PgAttr<typebox601.TString, typeof _alepha_postgres300.PG_UPDATED_AT>, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
853
|
-
email: typebox601.TString;
|
|
854
|
-
roles: typebox601.TArray<typebox601.TString>;
|
|
855
|
-
name: typebox601.TOptional<typebox601.TString>;
|
|
856
|
-
firstName: typebox601.TOptional<typebox601.TString>;
|
|
857
|
-
lastName: typebox601.TOptional<typebox601.TString>;
|
|
858
|
-
picture: typebox601.TOptional<typebox601.TString>;
|
|
859
|
-
enabled: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
860
|
-
emailVerified: _alepha_postgres300.PgAttr<typebox601.TBoolean, typeof _alepha_postgres300.PG_DEFAULT>;
|
|
861
|
-
}>>>;
|
|
862
|
-
expiresIn: number;
|
|
863
|
-
sessionId: string;
|
|
864
|
-
}>;
|
|
865
|
-
deleteSession(refreshToken: string): Promise<void>;
|
|
866
|
-
link(provider: string, profile: OAuth2Profile): Promise<{
|
|
867
|
-
name?: string | undefined;
|
|
868
|
-
firstName?: string | undefined;
|
|
869
|
-
lastName?: string | undefined;
|
|
870
|
-
picture?: string | undefined;
|
|
871
|
-
email: string;
|
|
872
|
-
enabled: boolean;
|
|
873
|
-
emailVerified: boolean;
|
|
874
|
-
roles: string[];
|
|
875
|
-
id: string;
|
|
876
|
-
version: number;
|
|
877
|
-
createdAt: string;
|
|
878
|
-
updatedAt: string;
|
|
879
|
-
} | {
|
|
880
|
-
sub: string;
|
|
881
|
-
email?: string;
|
|
882
|
-
name?: string;
|
|
883
|
-
given_name?: string;
|
|
884
|
-
family_name?: string;
|
|
885
|
-
middle_name?: string;
|
|
886
|
-
nickname?: string;
|
|
887
|
-
preferred_username?: string;
|
|
888
|
-
profile?: string;
|
|
889
|
-
picture?: string;
|
|
890
|
-
website?: string;
|
|
891
|
-
email_verified?: boolean;
|
|
892
|
-
gender?: string;
|
|
893
|
-
birthdate?: string;
|
|
894
|
-
zoneinfo?: string;
|
|
895
|
-
locale?: string;
|
|
896
|
-
phone_number?: string;
|
|
897
|
-
phone_number_verified?: boolean;
|
|
898
|
-
address?: {
|
|
899
|
-
formatted?: string;
|
|
900
|
-
street_address?: string;
|
|
901
|
-
locality?: string;
|
|
902
|
-
region?: string;
|
|
903
|
-
postal_code?: string;
|
|
904
|
-
country?: string;
|
|
905
|
-
};
|
|
906
|
-
updated_at?: number;
|
|
907
|
-
id: string;
|
|
908
|
-
}>;
|
|
909
|
-
}
|
|
910
|
-
//#endregion
|
|
911
|
-
//#region src/index.d.ts
|
|
912
|
-
/**
|
|
913
|
-
* Provides user management API endpoints for Alepha applications.
|
|
914
|
-
*
|
|
915
|
-
* This module includes user CRUD operations, authentication endpoints,
|
|
916
|
-
* password reset functionality, and user profile management capabilities.
|
|
917
|
-
*
|
|
918
|
-
* @module alepha.api.users
|
|
919
|
-
*/
|
|
920
|
-
declare const AlephaApiUsers: _alepha_core3.Service<_alepha_core3.Module>;
|
|
921
|
-
//#endregion
|
|
922
|
-
export { $authApple, $authCredentials, $authGithub, $authGoogle, $realmUsers, AlephaApiUsers, CreateUser, CredentialService, IdentityController, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, SessionController, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserController, UserEntity, UserQuery, UserResource, UserService, createUserSchema, identities, identityQuerySchema, identityResourceSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userResourceSchema, users };
|
|
923
|
-
//# sourceMappingURL=index.d.ts.map
|