alepha 0.14.3 → 0.14.4
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 +1 -1
- package/dist/api/audits/index.d.ts +338 -417
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/files/index.d.ts +1 -80
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/jobs/index.d.ts +156 -235
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/notifications/index.d.ts +170 -249
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/parameters/index.d.ts +266 -345
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/users/index.d.ts +755 -834
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/verifications/index.d.ts +125 -125
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/cli/index.d.ts +116 -20
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +212 -124
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +6 -11
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +2 -2
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +26 -4
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +16 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +26 -4
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +26 -4
- package/dist/core/index.native.js.map +1 -1
- package/dist/logger/index.d.ts +1 -1
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +12 -2
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/index.d.ts +37 -173
- package/dist/orm/index.d.ts.map +1 -1
- package/dist/orm/index.js +193 -422
- package/dist/orm/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +167 -167
- package/dist/server/cache/index.d.ts +12 -0
- package/dist/server/cache/index.d.ts.map +1 -1
- package/dist/server/cache/index.js +55 -2
- package/dist/server/cache/index.js.map +1 -1
- package/dist/server/compress/index.d.ts +6 -0
- package/dist/server/compress/index.d.ts.map +1 -1
- package/dist/server/compress/index.js +36 -1
- package/dist/server/compress/index.js.map +1 -1
- package/dist/server/core/index.browser.js +2 -2
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.d.ts +10 -10
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +6 -3
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/links/index.d.ts +39 -39
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/security/index.d.ts +9 -9
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/static/index.js +4 -0
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +2 -3
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/vite/index.d.ts +101 -106
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +571 -508
- package/dist/vite/index.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/apps/AlephaCli.ts +0 -2
- package/src/cli/atoms/buildOptions.ts +88 -0
- package/src/cli/commands/build.ts +32 -69
- package/src/cli/commands/db.ts +0 -4
- package/src/cli/commands/dev.ts +16 -4
- package/src/cli/commands/gen/env.ts +53 -0
- package/src/cli/commands/gen/openapi.ts +1 -1
- package/src/cli/commands/gen/resource.ts +15 -0
- package/src/cli/commands/gen.ts +7 -1
- package/src/cli/commands/init.ts +0 -1
- package/src/cli/commands/test.ts +0 -1
- package/src/cli/commands/verify.ts +1 -1
- package/src/cli/defineConfig.ts +49 -7
- package/src/cli/index.ts +0 -1
- package/src/cli/services/AlephaCliUtils.ts +36 -25
- package/src/command/helpers/Runner.spec.ts +2 -2
- package/src/command/helpers/Runner.ts +1 -1
- package/src/command/primitives/$command.ts +0 -6
- package/src/command/providers/CliProvider.ts +1 -3
- package/src/core/Alepha.ts +42 -0
- package/src/logger/index.ts +15 -3
- package/src/mcp/transports/StdioMcpTransport.ts +1 -1
- package/src/orm/index.ts +2 -8
- package/src/queue/core/providers/WorkerProvider.spec.ts +48 -32
- package/src/server/cache/providers/ServerCacheProvider.spec.ts +183 -0
- package/src/server/cache/providers/ServerCacheProvider.ts +94 -9
- package/src/server/compress/providers/ServerCompressProvider.ts +61 -2
- package/src/server/core/helpers/ServerReply.ts +2 -2
- package/src/server/core/providers/ServerProvider.ts +11 -1
- package/src/server/static/providers/ServerStaticProvider.ts +10 -0
- package/src/server/swagger/providers/ServerSwaggerProvider.ts +5 -8
- package/src/vite/helpers/importViteReact.ts +13 -0
- package/src/vite/index.ts +1 -21
- package/src/vite/plugins/viteAlephaDev.ts +16 -1
- package/src/vite/plugins/viteAlephaSsrPreload.ts +222 -0
- package/src/vite/tasks/buildClient.ts +11 -0
- package/src/vite/tasks/buildServer.ts +47 -3
- package/src/vite/tasks/devServer.ts +69 -0
- package/src/vite/tasks/index.ts +2 -1
- package/src/cli/assets/viteConfigTs.ts +0 -14
- package/src/cli/commands/run.ts +0 -24
- package/src/vite/plugins/viteAlepha.ts +0 -37
- package/src/vite/plugins/viteAlephaBuild.ts +0 -281
|
@@ -1,24 +1,20 @@
|
|
|
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
5
|
import * as alepha_server0 from "alepha/server";
|
|
6
|
-
import * as
|
|
6
|
+
import * as alepha_orm0 from "alepha/orm";
|
|
7
7
|
import { Page as Page$1, Repository } from "alepha/orm";
|
|
8
8
|
import { AuditService } from "alepha/api/audits";
|
|
9
9
|
import * as alepha_logger5 from "alepha/logger";
|
|
10
10
|
import * as alepha_bucket0 from "alepha/bucket";
|
|
11
|
-
import * as
|
|
11
|
+
import * as alepha_server_links2 from "alepha/server/links";
|
|
12
12
|
import * as alepha_cache0 from "alepha/cache";
|
|
13
13
|
import { DateTime, DateTimeProvider } from "alepha/datetime";
|
|
14
14
|
import { CryptoProvider, RealmPrimitive, RealmPrimitiveOptions, UserAccount } from "alepha/security";
|
|
15
15
|
import { OAuth2Profile, ServerAuthProvider, WithLinkFn, WithLoginFn } from "alepha/server/auth";
|
|
16
16
|
import { FileSystemProvider } from "alepha/file";
|
|
17
17
|
import { FileController } from "alepha/api/files";
|
|
18
|
-
import "bun";
|
|
19
|
-
import "bun:sqlite";
|
|
20
|
-
import "drizzle-orm/bun-sql";
|
|
21
|
-
import "drizzle-orm/bun-sqlite";
|
|
22
18
|
import "drizzle-orm/d1";
|
|
23
19
|
import * as drizzle_orm0 from "drizzle-orm";
|
|
24
20
|
import { BuildExtraConfigColumns, SQL, SQLWrapper } from "drizzle-orm";
|
|
@@ -27,34 +23,34 @@ import { LockConfig, LockStrength, PgColumn, PgColumnBuilderBase, PgDatabase, Pg
|
|
|
27
23
|
import { PgTransactionConfig } from "drizzle-orm/pg-core/session";
|
|
28
24
|
import * as DrizzleKit from "drizzle-kit/api";
|
|
29
25
|
import "alepha/retry";
|
|
30
|
-
import "alepha/lock";
|
|
31
26
|
import "drizzle-orm/sqlite-core";
|
|
27
|
+
import "alepha/lock";
|
|
32
28
|
import "drizzle-orm/postgres-js";
|
|
33
29
|
import "postgres";
|
|
34
30
|
|
|
35
31
|
//#region ../../src/api/users/atoms/realmAuthSettingsAtom.d.ts
|
|
36
|
-
declare const realmAuthSettingsAtom:
|
|
37
|
-
displayName:
|
|
38
|
-
description:
|
|
39
|
-
logoUrl:
|
|
40
|
-
registrationAllowed:
|
|
41
|
-
emailEnabled:
|
|
42
|
-
emailRequired:
|
|
43
|
-
usernameEnabled:
|
|
44
|
-
usernameRequired:
|
|
45
|
-
phoneEnabled:
|
|
46
|
-
phoneRequired:
|
|
47
|
-
verifyEmailRequired:
|
|
48
|
-
verifyPhoneRequired:
|
|
49
|
-
firstNameLastNameEnabled:
|
|
50
|
-
firstNameLastNameRequired:
|
|
51
|
-
resetPasswordAllowed:
|
|
52
|
-
passwordPolicy:
|
|
53
|
-
minLength:
|
|
54
|
-
requireUppercase:
|
|
55
|
-
requireLowercase:
|
|
56
|
-
requireNumbers:
|
|
57
|
-
requireSpecialCharacters:
|
|
32
|
+
declare const realmAuthSettingsAtom: alepha1.Atom<alepha1.TObject<{
|
|
33
|
+
displayName: alepha1.TOptional<alepha1.TString>;
|
|
34
|
+
description: alepha1.TOptional<alepha1.TString>;
|
|
35
|
+
logoUrl: alepha1.TOptional<alepha1.TString>;
|
|
36
|
+
registrationAllowed: alepha1.TBoolean;
|
|
37
|
+
emailEnabled: alepha1.TBoolean;
|
|
38
|
+
emailRequired: alepha1.TBoolean;
|
|
39
|
+
usernameEnabled: alepha1.TBoolean;
|
|
40
|
+
usernameRequired: alepha1.TBoolean;
|
|
41
|
+
phoneEnabled: alepha1.TBoolean;
|
|
42
|
+
phoneRequired: alepha1.TBoolean;
|
|
43
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
44
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
45
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
46
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
47
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
48
|
+
passwordPolicy: alepha1.TObject<{
|
|
49
|
+
minLength: alepha1.TInteger;
|
|
50
|
+
requireUppercase: alepha1.TBoolean;
|
|
51
|
+
requireLowercase: alepha1.TBoolean;
|
|
52
|
+
requireNumbers: alepha1.TBoolean;
|
|
53
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
58
54
|
}>;
|
|
59
55
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
60
56
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
@@ -946,11 +942,11 @@ declare class DrizzleKitProvider {
|
|
|
946
942
|
*/
|
|
947
943
|
importDrizzleKit(): typeof DrizzleKit;
|
|
948
944
|
}
|
|
949
|
-
declare const devMigrationsSchema:
|
|
950
|
-
id:
|
|
951
|
-
name:
|
|
952
|
-
snapshot:
|
|
953
|
-
created_at:
|
|
945
|
+
declare const devMigrationsSchema: alepha1.TObject<{
|
|
946
|
+
id: alepha1.TNumber;
|
|
947
|
+
name: alepha1.TString;
|
|
948
|
+
snapshot: alepha1.TString;
|
|
949
|
+
created_at: alepha1.TString;
|
|
954
950
|
}>;
|
|
955
951
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
956
952
|
//#endregion
|
|
@@ -1075,7 +1071,7 @@ declare class QueryManager {
|
|
|
1075
1071
|
createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
|
|
1076
1072
|
column: string;
|
|
1077
1073
|
direction: "asc" | "desc";
|
|
1078
|
-
}>):
|
|
1074
|
+
}>): alepha1.Page<T>;
|
|
1079
1075
|
}
|
|
1080
1076
|
interface PgJoin {
|
|
1081
1077
|
table: string;
|
|
@@ -1383,86 +1379,11 @@ interface StatementOptions {
|
|
|
1383
1379
|
now?: DateTime | string;
|
|
1384
1380
|
}
|
|
1385
1381
|
//#endregion
|
|
1386
|
-
//#region ../../src/orm/providers/drivers/BunPostgresProvider.d.ts
|
|
1387
|
-
declare module "alepha" {
|
|
1388
|
-
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
1389
|
-
}
|
|
1390
|
-
declare const envSchema$1: alepha23.TObject<{
|
|
1391
|
-
/**
|
|
1392
|
-
* Main configuration for database connection.
|
|
1393
|
-
* Accept a string in the format of a Postgres connection URL.
|
|
1394
|
-
* Example: postgres://user:password@localhost:5432/database
|
|
1395
|
-
* or
|
|
1396
|
-
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
1397
|
-
*/
|
|
1398
|
-
DATABASE_URL: alepha23.TOptional<alepha23.TString>;
|
|
1399
|
-
/**
|
|
1400
|
-
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
1401
|
-
*/
|
|
1402
|
-
POSTGRES_SCHEMA: alepha23.TOptional<alepha23.TString>;
|
|
1403
|
-
}>;
|
|
1404
|
-
/**
|
|
1405
|
-
* Bun PostgreSQL provider using Drizzle ORM with Bun's native SQL client.
|
|
1406
|
-
*
|
|
1407
|
-
* This provider uses Bun's built-in SQL class for PostgreSQL connections,
|
|
1408
|
-
* which provides excellent performance on the Bun runtime.
|
|
1409
|
-
*
|
|
1410
|
-
* @example
|
|
1411
|
-
* ```ts
|
|
1412
|
-
* // Set DATABASE_URL environment variable
|
|
1413
|
-
* // DATABASE_URL=postgres://user:password@localhost:5432/database
|
|
1414
|
-
*
|
|
1415
|
-
* // Or configure programmatically
|
|
1416
|
-
* alepha.with({
|
|
1417
|
-
* provide: DatabaseProvider,
|
|
1418
|
-
* use: BunPostgresProvider,
|
|
1419
|
-
* });
|
|
1420
|
-
* ```
|
|
1421
|
-
*/
|
|
1422
|
-
//#endregion
|
|
1423
|
-
//#region ../../src/orm/providers/drivers/BunSqliteProvider.d.ts
|
|
1424
|
-
/**
|
|
1425
|
-
* Configuration options for the Bun SQLite database provider.
|
|
1426
|
-
*/
|
|
1427
|
-
declare const bunSqliteOptions: alepha23.Atom<alepha23.TObject<{
|
|
1428
|
-
path: alepha23.TOptional<alepha23.TString>;
|
|
1429
|
-
}>, "alepha.postgres.bun-sqlite.options">;
|
|
1430
|
-
type BunSqliteProviderOptions = Static<typeof bunSqliteOptions.schema>;
|
|
1431
|
-
declare module "alepha" {
|
|
1432
|
-
interface State {
|
|
1433
|
-
[bunSqliteOptions.key]: BunSqliteProviderOptions;
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
/**
|
|
1437
|
-
* Bun SQLite provider using Drizzle ORM with Bun's native SQLite client.
|
|
1438
|
-
*
|
|
1439
|
-
* This provider uses Bun's built-in `bun:sqlite` for SQLite connections,
|
|
1440
|
-
* which provides excellent performance on the Bun runtime.
|
|
1441
|
-
*
|
|
1442
|
-
* @example
|
|
1443
|
-
* ```ts
|
|
1444
|
-
* // Set DATABASE_URL environment variable
|
|
1445
|
-
* // DATABASE_URL=sqlite://./my-database.db
|
|
1446
|
-
*
|
|
1447
|
-
* // Or configure programmatically
|
|
1448
|
-
* alepha.with({
|
|
1449
|
-
* provide: DatabaseProvider,
|
|
1450
|
-
* use: BunSqliteProvider,
|
|
1451
|
-
* });
|
|
1452
|
-
*
|
|
1453
|
-
* // Or use options atom
|
|
1454
|
-
* alepha.store.mut(bunSqliteOptions, (old) => ({
|
|
1455
|
-
* ...old,
|
|
1456
|
-
* path: ":memory:",
|
|
1457
|
-
* }));
|
|
1458
|
-
* ```
|
|
1459
|
-
*/
|
|
1460
|
-
//#endregion
|
|
1461
1382
|
//#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
|
|
1462
1383
|
declare module "alepha" {
|
|
1463
1384
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
1464
1385
|
}
|
|
1465
|
-
declare const envSchema:
|
|
1386
|
+
declare const envSchema: alepha1.TObject<{
|
|
1466
1387
|
/**
|
|
1467
1388
|
* Main configuration for database connection.
|
|
1468
1389
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -1470,21 +1391,21 @@ declare const envSchema: alepha23.TObject<{
|
|
|
1470
1391
|
* or
|
|
1471
1392
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
1472
1393
|
*/
|
|
1473
|
-
DATABASE_URL:
|
|
1394
|
+
DATABASE_URL: alepha1.TOptional<alepha1.TString>;
|
|
1474
1395
|
/**
|
|
1475
1396
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
1476
1397
|
*
|
|
1477
1398
|
* It will monkey patch drizzle tables.
|
|
1478
1399
|
*/
|
|
1479
|
-
POSTGRES_SCHEMA:
|
|
1400
|
+
POSTGRES_SCHEMA: alepha1.TOptional<alepha1.TString>;
|
|
1480
1401
|
}>;
|
|
1481
1402
|
//#endregion
|
|
1482
1403
|
//#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
1483
1404
|
/**
|
|
1484
1405
|
* Configuration options for the Node.js SQLite database provider.
|
|
1485
1406
|
*/
|
|
1486
|
-
declare const nodeSqliteOptions:
|
|
1487
|
-
path:
|
|
1407
|
+
declare const nodeSqliteOptions: alepha1.Atom<alepha1.TObject<{
|
|
1408
|
+
path: alepha1.TOptional<alepha1.TString>;
|
|
1488
1409
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
1489
1410
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
1490
1411
|
declare module "alepha" {
|
|
@@ -1568,54 +1489,54 @@ declare module "alepha" {
|
|
|
1568
1489
|
}
|
|
1569
1490
|
//#endregion
|
|
1570
1491
|
//#region ../../src/api/users/entities/identities.d.ts
|
|
1571
|
-
declare const identities:
|
|
1572
|
-
id:
|
|
1573
|
-
version:
|
|
1574
|
-
createdAt:
|
|
1575
|
-
updatedAt:
|
|
1576
|
-
userId:
|
|
1577
|
-
password:
|
|
1578
|
-
provider:
|
|
1579
|
-
providerUserId:
|
|
1580
|
-
providerData:
|
|
1492
|
+
declare const identities: alepha_orm0.EntityPrimitive<alepha1.TObject<{
|
|
1493
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1494
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1495
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1496
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1497
|
+
userId: alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_REF>;
|
|
1498
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
1499
|
+
provider: alepha1.TString;
|
|
1500
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
1501
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
1581
1502
|
}>>;
|
|
1582
1503
|
type IdentityEntity = Static<typeof identities.schema>;
|
|
1583
1504
|
//#endregion
|
|
1584
1505
|
//#region ../../src/api/users/entities/sessions.d.ts
|
|
1585
|
-
declare const sessions:
|
|
1586
|
-
id:
|
|
1587
|
-
version:
|
|
1588
|
-
createdAt:
|
|
1589
|
-
updatedAt:
|
|
1590
|
-
refreshToken:
|
|
1591
|
-
userId:
|
|
1592
|
-
expiresAt:
|
|
1593
|
-
ip:
|
|
1594
|
-
userAgent:
|
|
1595
|
-
os:
|
|
1596
|
-
browser:
|
|
1597
|
-
device:
|
|
1506
|
+
declare const sessions: alepha_orm0.EntityPrimitive<alepha1.TObject<{
|
|
1507
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1508
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1509
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1510
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1511
|
+
refreshToken: alepha1.TString;
|
|
1512
|
+
userId: alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_REF>;
|
|
1513
|
+
expiresAt: alepha1.TString;
|
|
1514
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
1515
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
1516
|
+
os: alepha1.TString;
|
|
1517
|
+
browser: alepha1.TString;
|
|
1518
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1598
1519
|
}>>;
|
|
1599
1520
|
}>>;
|
|
1600
1521
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
1601
1522
|
//#endregion
|
|
1602
1523
|
//#region ../../src/api/users/entities/users.d.ts
|
|
1603
1524
|
declare const DEFAULT_USER_REALM_NAME = "default";
|
|
1604
|
-
declare const users:
|
|
1605
|
-
id:
|
|
1606
|
-
version:
|
|
1607
|
-
createdAt:
|
|
1608
|
-
updatedAt:
|
|
1609
|
-
realm:
|
|
1610
|
-
username:
|
|
1611
|
-
email:
|
|
1612
|
-
phoneNumber:
|
|
1613
|
-
roles:
|
|
1614
|
-
firstName:
|
|
1615
|
-
lastName:
|
|
1616
|
-
picture:
|
|
1617
|
-
enabled:
|
|
1618
|
-
emailVerified:
|
|
1525
|
+
declare const users: alepha_orm0.EntityPrimitive<alepha1.TObject<{
|
|
1526
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1527
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1528
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1529
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1530
|
+
realm: alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_DEFAULT>;
|
|
1531
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
1532
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
1533
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
1534
|
+
roles: alepha_orm0.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1535
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
1536
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
1537
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
1538
|
+
enabled: alepha_orm0.PgAttr<alepha1.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
1539
|
+
emailVerified: alepha_orm0.PgAttr<alepha1.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
1619
1540
|
}>>;
|
|
1620
1541
|
type UserEntity = Static<typeof users.schema>;
|
|
1621
1542
|
//#endregion
|
|
@@ -1682,51 +1603,51 @@ interface UserRealm {
|
|
|
1682
1603
|
}
|
|
1683
1604
|
declare class UserRealmProvider {
|
|
1684
1605
|
protected readonly alepha: Alepha;
|
|
1685
|
-
protected readonly defaultIdentities: Repository<
|
|
1686
|
-
id:
|
|
1687
|
-
version:
|
|
1688
|
-
createdAt:
|
|
1689
|
-
updatedAt:
|
|
1690
|
-
userId:
|
|
1691
|
-
password:
|
|
1692
|
-
provider:
|
|
1693
|
-
providerUserId:
|
|
1694
|
-
providerData:
|
|
1606
|
+
protected readonly defaultIdentities: Repository<alepha1.TObject<{
|
|
1607
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1608
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1609
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1610
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1611
|
+
userId: alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_REF>;
|
|
1612
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
1613
|
+
provider: alepha1.TString;
|
|
1614
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
1615
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
1695
1616
|
}>>;
|
|
1696
|
-
protected readonly defaultSessions: Repository<
|
|
1697
|
-
id:
|
|
1698
|
-
version:
|
|
1699
|
-
createdAt:
|
|
1700
|
-
updatedAt:
|
|
1701
|
-
refreshToken:
|
|
1702
|
-
userId:
|
|
1703
|
-
expiresAt:
|
|
1704
|
-
ip:
|
|
1705
|
-
userAgent:
|
|
1706
|
-
os:
|
|
1707
|
-
browser:
|
|
1708
|
-
device:
|
|
1617
|
+
protected readonly defaultSessions: Repository<alepha1.TObject<{
|
|
1618
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1619
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1620
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1621
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1622
|
+
refreshToken: alepha1.TString;
|
|
1623
|
+
userId: alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_REF>;
|
|
1624
|
+
expiresAt: alepha1.TString;
|
|
1625
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
1626
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
1627
|
+
os: alepha1.TString;
|
|
1628
|
+
browser: alepha1.TString;
|
|
1629
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1709
1630
|
}>>;
|
|
1710
1631
|
}>>;
|
|
1711
|
-
protected readonly defaultUsers: Repository<
|
|
1712
|
-
id:
|
|
1713
|
-
version:
|
|
1714
|
-
createdAt:
|
|
1715
|
-
updatedAt:
|
|
1716
|
-
realm:
|
|
1717
|
-
username:
|
|
1718
|
-
email:
|
|
1719
|
-
phoneNumber:
|
|
1720
|
-
roles:
|
|
1721
|
-
firstName:
|
|
1722
|
-
lastName:
|
|
1723
|
-
picture:
|
|
1724
|
-
enabled:
|
|
1725
|
-
emailVerified:
|
|
1632
|
+
protected readonly defaultUsers: Repository<alepha1.TObject<{
|
|
1633
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1634
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1635
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1636
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1637
|
+
realm: alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_DEFAULT>;
|
|
1638
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
1639
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
1640
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
1641
|
+
roles: alepha_orm0.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1642
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
1643
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
1644
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
1645
|
+
enabled: alepha_orm0.PgAttr<alepha1.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
1646
|
+
emailVerified: alepha_orm0.PgAttr<alepha1.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
1726
1647
|
}>>;
|
|
1727
1648
|
protected realms: Map<string, UserRealm>;
|
|
1728
1649
|
avatars: alepha_bucket0.BucketPrimitive;
|
|
1729
|
-
protected readonly onConfigure:
|
|
1650
|
+
protected readonly onConfigure: alepha1.HookPrimitive<"configure">;
|
|
1730
1651
|
register(userRealmName: string, userRealmOptions?: UserRealmOptions): UserRealm;
|
|
1731
1652
|
/**
|
|
1732
1653
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
@@ -1738,12 +1659,12 @@ declare class UserRealmProvider {
|
|
|
1738
1659
|
}
|
|
1739
1660
|
//#endregion
|
|
1740
1661
|
//#region ../../src/api/users/schemas/identityQuerySchema.d.ts
|
|
1741
|
-
declare const identityQuerySchema:
|
|
1742
|
-
page:
|
|
1743
|
-
size:
|
|
1744
|
-
sort:
|
|
1745
|
-
userId:
|
|
1746
|
-
provider:
|
|
1662
|
+
declare const identityQuerySchema: alepha1.TObject<{
|
|
1663
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
1664
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
1665
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
1666
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
1667
|
+
provider: alepha1.TOptional<alepha1.TString>;
|
|
1747
1668
|
}>;
|
|
1748
1669
|
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
1749
1670
|
//#endregion
|
|
@@ -1752,16 +1673,16 @@ declare class IdentityService {
|
|
|
1752
1673
|
protected readonly log: alepha_logger5.Logger;
|
|
1753
1674
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
1754
1675
|
protected readonly auditService: AuditService;
|
|
1755
|
-
identities(userRealmName?: string):
|
|
1756
|
-
id:
|
|
1757
|
-
version:
|
|
1758
|
-
createdAt:
|
|
1759
|
-
updatedAt:
|
|
1760
|
-
userId:
|
|
1761
|
-
password:
|
|
1762
|
-
provider:
|
|
1763
|
-
providerUserId:
|
|
1764
|
-
providerData:
|
|
1676
|
+
identities(userRealmName?: string): alepha_orm0.Repository<alepha1.TObject<{
|
|
1677
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1678
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1679
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1680
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1681
|
+
userId: alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_REF>;
|
|
1682
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
1683
|
+
provider: alepha1.TString;
|
|
1684
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
1685
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
1765
1686
|
}>>;
|
|
1766
1687
|
/**
|
|
1767
1688
|
* Find identities with pagination and filtering.
|
|
@@ -1786,70 +1707,70 @@ declare class AdminIdentityController {
|
|
|
1786
1707
|
* Find identities with pagination and filtering.
|
|
1787
1708
|
*/
|
|
1788
1709
|
readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
|
|
1789
|
-
query:
|
|
1790
|
-
page:
|
|
1791
|
-
size:
|
|
1792
|
-
sort:
|
|
1793
|
-
userId:
|
|
1794
|
-
provider:
|
|
1795
|
-
userRealmName:
|
|
1710
|
+
query: alepha1.TObject<{
|
|
1711
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
1712
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
1713
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
1714
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
1715
|
+
provider: alepha1.TOptional<alepha1.TString>;
|
|
1716
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
1796
1717
|
}>;
|
|
1797
|
-
response:
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
providerUserId:
|
|
1805
|
-
providerData:
|
|
1718
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
1719
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
1720
|
+
provider: alepha1.TString;
|
|
1721
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1722
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1723
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1724
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1725
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
1726
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
1806
1727
|
}>>;
|
|
1807
1728
|
}>;
|
|
1808
1729
|
/**
|
|
1809
1730
|
* Get an identity by ID.
|
|
1810
1731
|
*/
|
|
1811
1732
|
readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
1812
|
-
params:
|
|
1813
|
-
id:
|
|
1733
|
+
params: alepha1.TObject<{
|
|
1734
|
+
id: alepha1.TString;
|
|
1814
1735
|
}>;
|
|
1815
|
-
query:
|
|
1816
|
-
userRealmName:
|
|
1736
|
+
query: alepha1.TObject<{
|
|
1737
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
1817
1738
|
}>;
|
|
1818
|
-
response:
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
providerUserId:
|
|
1826
|
-
providerData:
|
|
1739
|
+
response: alepha1.TObject<{
|
|
1740
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
1741
|
+
provider: alepha1.TString;
|
|
1742
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1743
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1744
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1745
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1746
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
1747
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
1827
1748
|
}>;
|
|
1828
1749
|
}>;
|
|
1829
1750
|
/**
|
|
1830
1751
|
* Delete an identity.
|
|
1831
1752
|
*/
|
|
1832
1753
|
readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
1833
|
-
params:
|
|
1834
|
-
id:
|
|
1754
|
+
params: alepha1.TObject<{
|
|
1755
|
+
id: alepha1.TString;
|
|
1835
1756
|
}>;
|
|
1836
|
-
query:
|
|
1837
|
-
userRealmName:
|
|
1757
|
+
query: alepha1.TObject<{
|
|
1758
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
1838
1759
|
}>;
|
|
1839
|
-
response:
|
|
1840
|
-
ok:
|
|
1841
|
-
id:
|
|
1842
|
-
count:
|
|
1760
|
+
response: alepha1.TObject<{
|
|
1761
|
+
ok: alepha1.TBoolean;
|
|
1762
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
1763
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
1843
1764
|
}>;
|
|
1844
1765
|
}>;
|
|
1845
1766
|
}
|
|
1846
1767
|
//#endregion
|
|
1847
1768
|
//#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
|
|
1848
|
-
declare const sessionQuerySchema:
|
|
1849
|
-
page:
|
|
1850
|
-
size:
|
|
1851
|
-
sort:
|
|
1852
|
-
userId:
|
|
1769
|
+
declare const sessionQuerySchema: alepha1.TObject<{
|
|
1770
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
1771
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
1772
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
1773
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
1853
1774
|
}>;
|
|
1854
1775
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
1855
1776
|
//#endregion
|
|
@@ -1857,19 +1778,19 @@ type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
|
1857
1778
|
declare class SessionCrudService {
|
|
1858
1779
|
protected readonly log: alepha_logger5.Logger;
|
|
1859
1780
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
1860
|
-
sessions(userRealmName?: string):
|
|
1861
|
-
id:
|
|
1862
|
-
version:
|
|
1863
|
-
createdAt:
|
|
1864
|
-
updatedAt:
|
|
1865
|
-
refreshToken:
|
|
1866
|
-
userId:
|
|
1867
|
-
expiresAt:
|
|
1868
|
-
ip:
|
|
1869
|
-
userAgent:
|
|
1870
|
-
os:
|
|
1871
|
-
browser:
|
|
1872
|
-
device:
|
|
1781
|
+
sessions(userRealmName?: string): alepha_orm0.Repository<alepha1.TObject<{
|
|
1782
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1783
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1784
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1785
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1786
|
+
refreshToken: alepha1.TString;
|
|
1787
|
+
userId: alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_REF>;
|
|
1788
|
+
expiresAt: alepha1.TString;
|
|
1789
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
1790
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
1791
|
+
os: alepha1.TString;
|
|
1792
|
+
browser: alepha1.TString;
|
|
1793
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1873
1794
|
}>>;
|
|
1874
1795
|
}>>;
|
|
1875
1796
|
/**
|
|
@@ -1895,26 +1816,26 @@ declare class AdminSessionController {
|
|
|
1895
1816
|
* Find sessions with pagination and filtering.
|
|
1896
1817
|
*/
|
|
1897
1818
|
readonly findSessions: alepha_server0.ActionPrimitiveFn<{
|
|
1898
|
-
query:
|
|
1899
|
-
page:
|
|
1900
|
-
size:
|
|
1901
|
-
sort:
|
|
1902
|
-
userId:
|
|
1903
|
-
userRealmName:
|
|
1819
|
+
query: alepha1.TObject<{
|
|
1820
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
1821
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
1822
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
1823
|
+
userId: alepha1.TOptional<alepha1.TString>;
|
|
1824
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
1904
1825
|
}>;
|
|
1905
|
-
response:
|
|
1906
|
-
id:
|
|
1907
|
-
version:
|
|
1908
|
-
createdAt:
|
|
1909
|
-
updatedAt:
|
|
1910
|
-
refreshToken:
|
|
1911
|
-
userId:
|
|
1912
|
-
expiresAt:
|
|
1913
|
-
ip:
|
|
1914
|
-
userAgent:
|
|
1915
|
-
os:
|
|
1916
|
-
browser:
|
|
1917
|
-
device:
|
|
1826
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
1827
|
+
id: alepha1.TString;
|
|
1828
|
+
version: alepha1.TNumber;
|
|
1829
|
+
createdAt: alepha1.TString;
|
|
1830
|
+
updatedAt: alepha1.TString;
|
|
1831
|
+
refreshToken: alepha1.TString;
|
|
1832
|
+
userId: alepha1.TString;
|
|
1833
|
+
expiresAt: alepha1.TString;
|
|
1834
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
1835
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
1836
|
+
os: alepha1.TString;
|
|
1837
|
+
browser: alepha1.TString;
|
|
1838
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1918
1839
|
}>>;
|
|
1919
1840
|
}>>;
|
|
1920
1841
|
}>;
|
|
@@ -1922,25 +1843,25 @@ declare class AdminSessionController {
|
|
|
1922
1843
|
* Get a session by ID.
|
|
1923
1844
|
*/
|
|
1924
1845
|
readonly getSession: alepha_server0.ActionPrimitiveFn<{
|
|
1925
|
-
params:
|
|
1926
|
-
id:
|
|
1846
|
+
params: alepha1.TObject<{
|
|
1847
|
+
id: alepha1.TString;
|
|
1927
1848
|
}>;
|
|
1928
|
-
query:
|
|
1929
|
-
userRealmName:
|
|
1849
|
+
query: alepha1.TObject<{
|
|
1850
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
1930
1851
|
}>;
|
|
1931
|
-
response:
|
|
1932
|
-
id:
|
|
1933
|
-
version:
|
|
1934
|
-
createdAt:
|
|
1935
|
-
updatedAt:
|
|
1936
|
-
refreshToken:
|
|
1937
|
-
userId:
|
|
1938
|
-
expiresAt:
|
|
1939
|
-
ip:
|
|
1940
|
-
userAgent:
|
|
1941
|
-
os:
|
|
1942
|
-
browser:
|
|
1943
|
-
device:
|
|
1852
|
+
response: alepha1.TObject<{
|
|
1853
|
+
id: alepha1.TString;
|
|
1854
|
+
version: alepha1.TNumber;
|
|
1855
|
+
createdAt: alepha1.TString;
|
|
1856
|
+
updatedAt: alepha1.TString;
|
|
1857
|
+
refreshToken: alepha1.TString;
|
|
1858
|
+
userId: alepha1.TString;
|
|
1859
|
+
expiresAt: alepha1.TString;
|
|
1860
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
1861
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
1862
|
+
os: alepha1.TString;
|
|
1863
|
+
browser: alepha1.TString;
|
|
1864
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
1944
1865
|
}>>;
|
|
1945
1866
|
}>;
|
|
1946
1867
|
}>;
|
|
@@ -1948,115 +1869,115 @@ declare class AdminSessionController {
|
|
|
1948
1869
|
* Delete a session.
|
|
1949
1870
|
*/
|
|
1950
1871
|
readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
|
|
1951
|
-
params:
|
|
1952
|
-
id:
|
|
1872
|
+
params: alepha1.TObject<{
|
|
1873
|
+
id: alepha1.TString;
|
|
1953
1874
|
}>;
|
|
1954
|
-
query:
|
|
1955
|
-
userRealmName:
|
|
1875
|
+
query: alepha1.TObject<{
|
|
1876
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
1956
1877
|
}>;
|
|
1957
|
-
response:
|
|
1958
|
-
ok:
|
|
1959
|
-
id:
|
|
1960
|
-
count:
|
|
1878
|
+
response: alepha1.TObject<{
|
|
1879
|
+
ok: alepha1.TBoolean;
|
|
1880
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
1881
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
1961
1882
|
}>;
|
|
1962
1883
|
}>;
|
|
1963
1884
|
}
|
|
1964
1885
|
//#endregion
|
|
1965
1886
|
//#region ../../src/api/users/notifications/UserNotifications.d.ts
|
|
1966
1887
|
declare class UserNotifications {
|
|
1967
|
-
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<
|
|
1968
|
-
email:
|
|
1969
|
-
code:
|
|
1970
|
-
expiresInMinutes:
|
|
1888
|
+
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1889
|
+
email: alepha1.TString;
|
|
1890
|
+
code: alepha1.TString;
|
|
1891
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1971
1892
|
}>>;
|
|
1972
|
-
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1973
|
-
email:
|
|
1974
|
-
code:
|
|
1975
|
-
expiresInMinutes:
|
|
1893
|
+
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1894
|
+
email: alepha1.TString;
|
|
1895
|
+
code: alepha1.TString;
|
|
1896
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1976
1897
|
}>>;
|
|
1977
|
-
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1978
|
-
phoneNumber:
|
|
1979
|
-
code:
|
|
1980
|
-
expiresInMinutes:
|
|
1898
|
+
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1899
|
+
phoneNumber: alepha1.TString;
|
|
1900
|
+
code: alepha1.TString;
|
|
1901
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1981
1902
|
}>>;
|
|
1982
|
-
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1983
|
-
email:
|
|
1984
|
-
resetUrl:
|
|
1985
|
-
expiresInMinutes:
|
|
1903
|
+
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1904
|
+
email: alepha1.TString;
|
|
1905
|
+
resetUrl: alepha1.TString;
|
|
1906
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1986
1907
|
}>>;
|
|
1987
|
-
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1988
|
-
email:
|
|
1989
|
-
verifyUrl:
|
|
1990
|
-
expiresInMinutes:
|
|
1908
|
+
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha1.TObject<{
|
|
1909
|
+
email: alepha1.TString;
|
|
1910
|
+
verifyUrl: alepha1.TString;
|
|
1911
|
+
expiresInMinutes: alepha1.TNumber;
|
|
1991
1912
|
}>>;
|
|
1992
1913
|
}
|
|
1993
1914
|
//#endregion
|
|
1994
1915
|
//#region ../../src/api/users/schemas/createUserSchema.d.ts
|
|
1995
|
-
declare const createUserSchema:
|
|
1996
|
-
id:
|
|
1997
|
-
version:
|
|
1998
|
-
email:
|
|
1999
|
-
createdAt:
|
|
2000
|
-
updatedAt:
|
|
2001
|
-
username:
|
|
2002
|
-
phoneNumber:
|
|
2003
|
-
roles:
|
|
2004
|
-
firstName:
|
|
2005
|
-
lastName:
|
|
2006
|
-
picture:
|
|
2007
|
-
enabled:
|
|
2008
|
-
emailVerified:
|
|
1916
|
+
declare const createUserSchema: alepha1.TObject<{
|
|
1917
|
+
id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
1918
|
+
version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
1919
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
1920
|
+
createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
1921
|
+
updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
1922
|
+
username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
1923
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
1924
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
1925
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
1926
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
1927
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
1928
|
+
enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
1929
|
+
emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
2009
1930
|
}>;
|
|
2010
1931
|
type CreateUser = Static<typeof createUserSchema>;
|
|
2011
1932
|
//#endregion
|
|
2012
1933
|
//#region ../../src/api/users/schemas/updateUserSchema.d.ts
|
|
2013
|
-
declare const updateUserSchema:
|
|
2014
|
-
email:
|
|
2015
|
-
realm:
|
|
2016
|
-
phoneNumber:
|
|
2017
|
-
roles:
|
|
2018
|
-
firstName:
|
|
2019
|
-
lastName:
|
|
2020
|
-
picture:
|
|
2021
|
-
enabled:
|
|
1934
|
+
declare const updateUserSchema: alepha1.TObject<{
|
|
1935
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
1936
|
+
realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
|
|
1937
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
1938
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
1939
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
1940
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
1941
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
1942
|
+
enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
2022
1943
|
}>;
|
|
2023
1944
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
2024
1945
|
//#endregion
|
|
2025
1946
|
//#region ../../src/api/users/schemas/userQuerySchema.d.ts
|
|
2026
|
-
declare const userQuerySchema:
|
|
2027
|
-
page:
|
|
2028
|
-
size:
|
|
2029
|
-
sort:
|
|
2030
|
-
email:
|
|
2031
|
-
enabled:
|
|
2032
|
-
emailVerified:
|
|
2033
|
-
roles:
|
|
2034
|
-
query:
|
|
1947
|
+
declare const userQuerySchema: alepha1.TObject<{
|
|
1948
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
1949
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
1950
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
1951
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
1952
|
+
enabled: alepha1.TOptional<alepha1.TBoolean>;
|
|
1953
|
+
emailVerified: alepha1.TOptional<alepha1.TBoolean>;
|
|
1954
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
1955
|
+
query: alepha1.TOptional<alepha1.TString>;
|
|
2035
1956
|
}>;
|
|
2036
1957
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
2037
1958
|
//#endregion
|
|
2038
1959
|
//#region ../../src/api/users/services/UserService.d.ts
|
|
2039
1960
|
declare class UserService {
|
|
2040
1961
|
protected readonly log: alepha_logger5.Logger;
|
|
2041
|
-
protected readonly verificationController:
|
|
1962
|
+
protected readonly verificationController: alepha_server_links2.HttpVirtualClient<VerificationController>;
|
|
2042
1963
|
protected readonly userNotifications: UserNotifications;
|
|
2043
1964
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2044
1965
|
protected readonly auditService: AuditService;
|
|
2045
|
-
users(userRealmName?: string):
|
|
2046
|
-
id:
|
|
2047
|
-
version:
|
|
2048
|
-
createdAt:
|
|
2049
|
-
updatedAt:
|
|
2050
|
-
realm:
|
|
2051
|
-
username:
|
|
2052
|
-
email:
|
|
2053
|
-
phoneNumber:
|
|
2054
|
-
roles:
|
|
2055
|
-
firstName:
|
|
2056
|
-
lastName:
|
|
2057
|
-
picture:
|
|
2058
|
-
enabled:
|
|
2059
|
-
emailVerified:
|
|
1966
|
+
users(userRealmName?: string): alepha_orm0.Repository<alepha1.TObject<{
|
|
1967
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1968
|
+
version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1969
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1970
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1971
|
+
realm: alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_DEFAULT>;
|
|
1972
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
1973
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
1974
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
1975
|
+
roles: alepha_orm0.PgAttr<alepha1.TArray<alepha1.TString>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1976
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
1977
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
1978
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
1979
|
+
enabled: alepha_orm0.PgAttr<alepha1.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
1980
|
+
emailVerified: alepha_orm0.PgAttr<alepha1.TBoolean, typeof alepha_orm0.PG_DEFAULT>;
|
|
2060
1981
|
}>>;
|
|
2061
1982
|
/**
|
|
2062
1983
|
* Request email verification for a user.
|
|
@@ -2106,151 +2027,151 @@ declare class AdminUserController {
|
|
|
2106
2027
|
* Find users with pagination and filtering.
|
|
2107
2028
|
*/
|
|
2108
2029
|
readonly findUsers: alepha_server0.ActionPrimitiveFn<{
|
|
2109
|
-
query:
|
|
2110
|
-
page:
|
|
2111
|
-
size:
|
|
2112
|
-
sort:
|
|
2113
|
-
email:
|
|
2114
|
-
enabled:
|
|
2115
|
-
emailVerified:
|
|
2116
|
-
roles:
|
|
2117
|
-
query:
|
|
2118
|
-
userRealmName:
|
|
2030
|
+
query: alepha1.TObject<{
|
|
2031
|
+
page: alepha1.TOptional<alepha1.TInteger>;
|
|
2032
|
+
size: alepha1.TOptional<alepha1.TInteger>;
|
|
2033
|
+
sort: alepha1.TOptional<alepha1.TString>;
|
|
2034
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2035
|
+
enabled: alepha1.TOptional<alepha1.TBoolean>;
|
|
2036
|
+
emailVerified: alepha1.TOptional<alepha1.TBoolean>;
|
|
2037
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2038
|
+
query: alepha1.TOptional<alepha1.TString>;
|
|
2039
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2119
2040
|
}>;
|
|
2120
|
-
response:
|
|
2121
|
-
id: PgAttr<PgAttr<
|
|
2122
|
-
version: PgAttr<PgAttr<
|
|
2123
|
-
createdAt: PgAttr<PgAttr<
|
|
2124
|
-
updatedAt: PgAttr<PgAttr<
|
|
2125
|
-
realm: PgAttr<
|
|
2126
|
-
username:
|
|
2127
|
-
email:
|
|
2128
|
-
phoneNumber:
|
|
2129
|
-
roles: PgAttr<
|
|
2130
|
-
firstName:
|
|
2131
|
-
lastName:
|
|
2132
|
-
picture:
|
|
2133
|
-
enabled: PgAttr<
|
|
2134
|
-
emailVerified: PgAttr<
|
|
2041
|
+
response: alepha1.TPage<alepha1.TObject<{
|
|
2042
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2043
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2044
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2045
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2046
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2047
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2048
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2049
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2050
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2051
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2052
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2053
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2054
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2055
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2135
2056
|
}>>;
|
|
2136
2057
|
}>;
|
|
2137
2058
|
/**
|
|
2138
2059
|
* Get a user by ID.
|
|
2139
2060
|
*/
|
|
2140
2061
|
readonly getUser: alepha_server0.ActionPrimitiveFn<{
|
|
2141
|
-
params:
|
|
2142
|
-
id:
|
|
2062
|
+
params: alepha1.TObject<{
|
|
2063
|
+
id: alepha1.TString;
|
|
2143
2064
|
}>;
|
|
2144
|
-
query:
|
|
2145
|
-
userRealmName:
|
|
2065
|
+
query: alepha1.TObject<{
|
|
2066
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2146
2067
|
}>;
|
|
2147
|
-
response:
|
|
2148
|
-
id: PgAttr<PgAttr<
|
|
2149
|
-
version: PgAttr<PgAttr<
|
|
2150
|
-
createdAt: PgAttr<PgAttr<
|
|
2151
|
-
updatedAt: PgAttr<PgAttr<
|
|
2152
|
-
realm: PgAttr<
|
|
2153
|
-
username:
|
|
2154
|
-
email:
|
|
2155
|
-
phoneNumber:
|
|
2156
|
-
roles: PgAttr<
|
|
2157
|
-
firstName:
|
|
2158
|
-
lastName:
|
|
2159
|
-
picture:
|
|
2160
|
-
enabled: PgAttr<
|
|
2161
|
-
emailVerified: PgAttr<
|
|
2068
|
+
response: alepha1.TObject<{
|
|
2069
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2070
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2071
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2072
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2073
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2074
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2075
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2076
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2077
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2078
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2079
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2080
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2081
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2082
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2162
2083
|
}>;
|
|
2163
2084
|
}>;
|
|
2164
2085
|
/**
|
|
2165
2086
|
* Create a new user.
|
|
2166
2087
|
*/
|
|
2167
2088
|
readonly createUser: alepha_server0.ActionPrimitiveFn<{
|
|
2168
|
-
query:
|
|
2169
|
-
userRealmName:
|
|
2089
|
+
query: alepha1.TObject<{
|
|
2090
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2170
2091
|
}>;
|
|
2171
|
-
body:
|
|
2172
|
-
id:
|
|
2173
|
-
version:
|
|
2174
|
-
email:
|
|
2175
|
-
createdAt:
|
|
2176
|
-
updatedAt:
|
|
2177
|
-
username:
|
|
2178
|
-
phoneNumber:
|
|
2179
|
-
roles:
|
|
2180
|
-
firstName:
|
|
2181
|
-
lastName:
|
|
2182
|
-
picture:
|
|
2183
|
-
enabled:
|
|
2184
|
-
emailVerified:
|
|
2092
|
+
body: alepha1.TObject<{
|
|
2093
|
+
id: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
2094
|
+
version: alepha1.TOptional<PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
2095
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2096
|
+
createdAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
2097
|
+
updatedAt: alepha1.TOptional<PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
2098
|
+
username: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2099
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2100
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2101
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2102
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2103
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2104
|
+
enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
2105
|
+
emailVerified: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
2185
2106
|
}>;
|
|
2186
|
-
response:
|
|
2187
|
-
id: PgAttr<PgAttr<
|
|
2188
|
-
version: PgAttr<PgAttr<
|
|
2189
|
-
createdAt: PgAttr<PgAttr<
|
|
2190
|
-
updatedAt: PgAttr<PgAttr<
|
|
2191
|
-
realm: PgAttr<
|
|
2192
|
-
username:
|
|
2193
|
-
email:
|
|
2194
|
-
phoneNumber:
|
|
2195
|
-
roles: PgAttr<
|
|
2196
|
-
firstName:
|
|
2197
|
-
lastName:
|
|
2198
|
-
picture:
|
|
2199
|
-
enabled: PgAttr<
|
|
2200
|
-
emailVerified: PgAttr<
|
|
2107
|
+
response: alepha1.TObject<{
|
|
2108
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2109
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2110
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2111
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2112
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2113
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2114
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2115
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2116
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2117
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2118
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2119
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2120
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2121
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2201
2122
|
}>;
|
|
2202
2123
|
}>;
|
|
2203
2124
|
/**
|
|
2204
2125
|
* Update a user.
|
|
2205
2126
|
*/
|
|
2206
2127
|
readonly updateUser: alepha_server0.ActionPrimitiveFn<{
|
|
2207
|
-
params:
|
|
2208
|
-
id:
|
|
2128
|
+
params: alepha1.TObject<{
|
|
2129
|
+
id: alepha1.TString;
|
|
2209
2130
|
}>;
|
|
2210
|
-
query:
|
|
2211
|
-
userRealmName:
|
|
2131
|
+
query: alepha1.TObject<{
|
|
2132
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2212
2133
|
}>;
|
|
2213
|
-
body:
|
|
2214
|
-
email:
|
|
2215
|
-
realm:
|
|
2216
|
-
phoneNumber:
|
|
2217
|
-
roles:
|
|
2218
|
-
firstName:
|
|
2219
|
-
lastName:
|
|
2220
|
-
picture:
|
|
2221
|
-
enabled:
|
|
2134
|
+
body: alepha1.TObject<{
|
|
2135
|
+
email: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2136
|
+
realm: alepha1.TOptional<PgAttr<alepha1.TString, typeof PG_DEFAULT>>;
|
|
2137
|
+
phoneNumber: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2138
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
2139
|
+
firstName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2140
|
+
lastName: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2141
|
+
picture: alepha1.TOptional<alepha1.TOptional<alepha1.TString>>;
|
|
2142
|
+
enabled: alepha1.TOptional<PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>>;
|
|
2222
2143
|
}>;
|
|
2223
|
-
response:
|
|
2224
|
-
id: PgAttr<PgAttr<
|
|
2225
|
-
version: PgAttr<PgAttr<
|
|
2226
|
-
createdAt: PgAttr<PgAttr<
|
|
2227
|
-
updatedAt: PgAttr<PgAttr<
|
|
2228
|
-
realm: PgAttr<
|
|
2229
|
-
username:
|
|
2230
|
-
email:
|
|
2231
|
-
phoneNumber:
|
|
2232
|
-
roles: PgAttr<
|
|
2233
|
-
firstName:
|
|
2234
|
-
lastName:
|
|
2235
|
-
picture:
|
|
2236
|
-
enabled: PgAttr<
|
|
2237
|
-
emailVerified: PgAttr<
|
|
2144
|
+
response: alepha1.TObject<{
|
|
2145
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2146
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2147
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2148
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2149
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2150
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2151
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2152
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2153
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2154
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2155
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2156
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2157
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2158
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2238
2159
|
}>;
|
|
2239
2160
|
}>;
|
|
2240
2161
|
/**
|
|
2241
2162
|
* Delete a user.
|
|
2242
2163
|
*/
|
|
2243
2164
|
readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
|
|
2244
|
-
params:
|
|
2245
|
-
id:
|
|
2165
|
+
params: alepha1.TObject<{
|
|
2166
|
+
id: alepha1.TString;
|
|
2246
2167
|
}>;
|
|
2247
|
-
query:
|
|
2248
|
-
userRealmName:
|
|
2168
|
+
query: alepha1.TObject<{
|
|
2169
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2249
2170
|
}>;
|
|
2250
|
-
response:
|
|
2251
|
-
ok:
|
|
2252
|
-
id:
|
|
2253
|
-
count:
|
|
2171
|
+
response: alepha1.TObject<{
|
|
2172
|
+
ok: alepha1.TBoolean;
|
|
2173
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
2174
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
2254
2175
|
}>;
|
|
2255
2176
|
}>;
|
|
2256
2177
|
}
|
|
@@ -2262,10 +2183,10 @@ declare class AdminUserController {
|
|
|
2262
2183
|
* Requires the intent ID from Phase 1, the verification code,
|
|
2263
2184
|
* and the new password.
|
|
2264
2185
|
*/
|
|
2265
|
-
declare const completePasswordResetRequestSchema:
|
|
2266
|
-
intentId:
|
|
2267
|
-
code:
|
|
2268
|
-
newPassword:
|
|
2186
|
+
declare const completePasswordResetRequestSchema: alepha1.TObject<{
|
|
2187
|
+
intentId: alepha1.TString;
|
|
2188
|
+
code: alepha1.TString;
|
|
2189
|
+
newPassword: alepha1.TString;
|
|
2269
2190
|
}>;
|
|
2270
2191
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
2271
2192
|
//#endregion
|
|
@@ -2276,9 +2197,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
|
|
|
2276
2197
|
* Contains the intent ID needed for Phase 2 completion,
|
|
2277
2198
|
* along with expiration time.
|
|
2278
2199
|
*/
|
|
2279
|
-
declare const passwordResetIntentResponseSchema:
|
|
2280
|
-
intentId:
|
|
2281
|
-
expiresAt:
|
|
2200
|
+
declare const passwordResetIntentResponseSchema: alepha1.TObject<{
|
|
2201
|
+
intentId: alepha1.TString;
|
|
2202
|
+
expiresAt: alepha1.TString;
|
|
2282
2203
|
}>;
|
|
2283
2204
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
2284
2205
|
//#endregion
|
|
@@ -2297,52 +2218,52 @@ declare class CredentialService {
|
|
|
2297
2218
|
protected readonly log: alepha_logger5.Logger;
|
|
2298
2219
|
protected readonly cryptoProvider: CryptoProvider;
|
|
2299
2220
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2300
|
-
protected readonly verificationController:
|
|
2221
|
+
protected readonly verificationController: alepha_server_links2.HttpVirtualClient<VerificationController>;
|
|
2301
2222
|
protected readonly userNotifications: UserNotifications;
|
|
2302
2223
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2303
2224
|
protected readonly auditService: AuditService;
|
|
2304
2225
|
protected readonly intentCache: alepha_cache0.CachePrimitiveFn<PasswordResetIntent, any[]>;
|
|
2305
|
-
users(userRealmName?: string): Repository$1<
|
|
2306
|
-
id: PgAttr<PgAttr<
|
|
2307
|
-
version: PgAttr<PgAttr<
|
|
2308
|
-
createdAt: PgAttr<PgAttr<
|
|
2309
|
-
updatedAt: PgAttr<PgAttr<
|
|
2310
|
-
realm: PgAttr<
|
|
2311
|
-
username:
|
|
2312
|
-
email:
|
|
2313
|
-
phoneNumber:
|
|
2314
|
-
roles: PgAttr<
|
|
2315
|
-
firstName:
|
|
2316
|
-
lastName:
|
|
2317
|
-
picture:
|
|
2318
|
-
enabled: PgAttr<
|
|
2319
|
-
emailVerified: PgAttr<
|
|
2226
|
+
users(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2227
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2228
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2229
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2230
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2231
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2232
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2233
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2234
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2235
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2236
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2237
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2238
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2239
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2240
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2320
2241
|
}>>;
|
|
2321
|
-
sessions(userRealmName?: string): Repository$1<
|
|
2322
|
-
id: PgAttr<PgAttr<
|
|
2323
|
-
version: PgAttr<PgAttr<
|
|
2324
|
-
createdAt: PgAttr<PgAttr<
|
|
2325
|
-
updatedAt: PgAttr<PgAttr<
|
|
2326
|
-
refreshToken:
|
|
2327
|
-
userId: PgAttr<
|
|
2328
|
-
expiresAt:
|
|
2329
|
-
ip:
|
|
2330
|
-
userAgent:
|
|
2331
|
-
os:
|
|
2332
|
-
browser:
|
|
2333
|
-
device:
|
|
2242
|
+
sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2243
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2244
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2245
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2246
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2247
|
+
refreshToken: alepha1.TString;
|
|
2248
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2249
|
+
expiresAt: alepha1.TString;
|
|
2250
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
2251
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
2252
|
+
os: alepha1.TString;
|
|
2253
|
+
browser: alepha1.TString;
|
|
2254
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2334
2255
|
}>>;
|
|
2335
2256
|
}>>;
|
|
2336
|
-
identities(userRealmName?: string): Repository$1<
|
|
2337
|
-
id: PgAttr<PgAttr<
|
|
2338
|
-
version: PgAttr<PgAttr<
|
|
2339
|
-
createdAt: PgAttr<PgAttr<
|
|
2340
|
-
updatedAt: PgAttr<PgAttr<
|
|
2341
|
-
userId: PgAttr<
|
|
2342
|
-
password:
|
|
2343
|
-
provider:
|
|
2344
|
-
providerUserId:
|
|
2345
|
-
providerData:
|
|
2257
|
+
identities(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2258
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2259
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2260
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2261
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2262
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2263
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
2264
|
+
provider: alepha1.TString;
|
|
2265
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
2266
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
2346
2267
|
}>>;
|
|
2347
2268
|
/**
|
|
2348
2269
|
* Phase 1: Create a password reset intent.
|
|
@@ -2379,11 +2300,11 @@ declare class CredentialService {
|
|
|
2379
2300
|
}
|
|
2380
2301
|
//#endregion
|
|
2381
2302
|
//#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
|
|
2382
|
-
declare const completeRegistrationRequestSchema:
|
|
2383
|
-
intentId:
|
|
2384
|
-
emailCode:
|
|
2385
|
-
phoneCode:
|
|
2386
|
-
captchaToken:
|
|
2303
|
+
declare const completeRegistrationRequestSchema: alepha1.TObject<{
|
|
2304
|
+
intentId: alepha1.TString;
|
|
2305
|
+
emailCode: alepha1.TOptional<alepha1.TString>;
|
|
2306
|
+
phoneCode: alepha1.TOptional<alepha1.TString>;
|
|
2307
|
+
captchaToken: alepha1.TOptional<alepha1.TString>;
|
|
2387
2308
|
}>;
|
|
2388
2309
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
2389
2310
|
//#endregion
|
|
@@ -2392,24 +2313,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
|
|
|
2392
2313
|
* Schema for user registration request body.
|
|
2393
2314
|
* Password is always required, other fields depend on realm settings.
|
|
2394
2315
|
*/
|
|
2395
|
-
declare const registerRequestSchema:
|
|
2396
|
-
password:
|
|
2397
|
-
username:
|
|
2398
|
-
email:
|
|
2399
|
-
phoneNumber:
|
|
2400
|
-
firstName:
|
|
2401
|
-
lastName:
|
|
2402
|
-
picture:
|
|
2316
|
+
declare const registerRequestSchema: alepha1.TObject<{
|
|
2317
|
+
password: alepha1.TString;
|
|
2318
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2319
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2320
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2321
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2322
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2323
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2403
2324
|
}>;
|
|
2404
2325
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
2405
2326
|
//#endregion
|
|
2406
2327
|
//#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
|
|
2407
|
-
declare const registrationIntentResponseSchema:
|
|
2408
|
-
intentId:
|
|
2409
|
-
expectCaptcha:
|
|
2410
|
-
expectEmailVerification:
|
|
2411
|
-
expectPhoneVerification:
|
|
2412
|
-
expiresAt:
|
|
2328
|
+
declare const registrationIntentResponseSchema: alepha1.TObject<{
|
|
2329
|
+
intentId: alepha1.TString;
|
|
2330
|
+
expectCaptcha: alepha1.TBoolean;
|
|
2331
|
+
expectEmailVerification: alepha1.TBoolean;
|
|
2332
|
+
expectPhoneVerification: alepha1.TBoolean;
|
|
2333
|
+
expiresAt: alepha1.TString;
|
|
2413
2334
|
}>;
|
|
2414
2335
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
2415
2336
|
//#endregion
|
|
@@ -2439,7 +2360,7 @@ declare class RegistrationService {
|
|
|
2439
2360
|
protected readonly log: alepha_logger5.Logger;
|
|
2440
2361
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2441
2362
|
protected readonly cryptoProvider: CryptoProvider;
|
|
2442
|
-
protected readonly verificationController:
|
|
2363
|
+
protected readonly verificationController: alepha_server_links2.HttpVirtualClient<VerificationController>;
|
|
2443
2364
|
protected readonly userNotifications: UserNotifications;
|
|
2444
2365
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2445
2366
|
protected readonly auditService: AuditService;
|
|
@@ -2492,24 +2413,24 @@ declare class UserController {
|
|
|
2492
2413
|
* Validates data, creates verification sessions, and stores intent in cache.
|
|
2493
2414
|
*/
|
|
2494
2415
|
readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2495
|
-
body:
|
|
2496
|
-
password:
|
|
2497
|
-
username:
|
|
2498
|
-
email:
|
|
2499
|
-
phoneNumber:
|
|
2500
|
-
firstName:
|
|
2501
|
-
lastName:
|
|
2502
|
-
picture:
|
|
2416
|
+
body: alepha1.TObject<{
|
|
2417
|
+
password: alepha1.TString;
|
|
2418
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2419
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2420
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2421
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2422
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2423
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2503
2424
|
}>;
|
|
2504
|
-
query:
|
|
2505
|
-
userRealmName:
|
|
2425
|
+
query: alepha1.TObject<{
|
|
2426
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2506
2427
|
}>;
|
|
2507
|
-
response:
|
|
2508
|
-
intentId:
|
|
2509
|
-
expectCaptcha:
|
|
2510
|
-
expectEmailVerification:
|
|
2511
|
-
expectPhoneVerification:
|
|
2512
|
-
expiresAt:
|
|
2428
|
+
response: alepha1.TObject<{
|
|
2429
|
+
intentId: alepha1.TString;
|
|
2430
|
+
expectCaptcha: alepha1.TBoolean;
|
|
2431
|
+
expectEmailVerification: alepha1.TBoolean;
|
|
2432
|
+
expectPhoneVerification: alepha1.TBoolean;
|
|
2433
|
+
expiresAt: alepha1.TString;
|
|
2513
2434
|
}>;
|
|
2514
2435
|
}>;
|
|
2515
2436
|
/**
|
|
@@ -2517,27 +2438,27 @@ declare class UserController {
|
|
|
2517
2438
|
* Validates verification codes and creates the user.
|
|
2518
2439
|
*/
|
|
2519
2440
|
readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2520
|
-
body:
|
|
2521
|
-
intentId:
|
|
2522
|
-
emailCode:
|
|
2523
|
-
phoneCode:
|
|
2524
|
-
captchaToken:
|
|
2441
|
+
body: alepha1.TObject<{
|
|
2442
|
+
intentId: alepha1.TString;
|
|
2443
|
+
emailCode: alepha1.TOptional<alepha1.TString>;
|
|
2444
|
+
phoneCode: alepha1.TOptional<alepha1.TString>;
|
|
2445
|
+
captchaToken: alepha1.TOptional<alepha1.TString>;
|
|
2525
2446
|
}>;
|
|
2526
|
-
response:
|
|
2527
|
-
id: PgAttr<PgAttr<
|
|
2528
|
-
version: PgAttr<PgAttr<
|
|
2529
|
-
createdAt: PgAttr<PgAttr<
|
|
2530
|
-
updatedAt: PgAttr<PgAttr<
|
|
2531
|
-
realm: PgAttr<
|
|
2532
|
-
username:
|
|
2533
|
-
email:
|
|
2534
|
-
phoneNumber:
|
|
2535
|
-
roles: PgAttr<
|
|
2536
|
-
firstName:
|
|
2537
|
-
lastName:
|
|
2538
|
-
picture:
|
|
2539
|
-
enabled: PgAttr<
|
|
2540
|
-
emailVerified: PgAttr<
|
|
2447
|
+
response: alepha1.TObject<{
|
|
2448
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2449
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2450
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2451
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2452
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2453
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2454
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2455
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2456
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2457
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2458
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2459
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2460
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2461
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2541
2462
|
}>;
|
|
2542
2463
|
}>;
|
|
2543
2464
|
/**
|
|
@@ -2545,15 +2466,15 @@ declare class UserController {
|
|
|
2545
2466
|
* Validates email, sends verification code, and stores intent in cache.
|
|
2546
2467
|
*/
|
|
2547
2468
|
readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2548
|
-
query:
|
|
2549
|
-
userRealmName:
|
|
2469
|
+
query: alepha1.TObject<{
|
|
2470
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2550
2471
|
}>;
|
|
2551
|
-
body:
|
|
2552
|
-
email:
|
|
2472
|
+
body: alepha1.TObject<{
|
|
2473
|
+
email: alepha1.TString;
|
|
2553
2474
|
}>;
|
|
2554
|
-
response:
|
|
2555
|
-
intentId:
|
|
2556
|
-
expiresAt:
|
|
2475
|
+
response: alepha1.TObject<{
|
|
2476
|
+
intentId: alepha1.TString;
|
|
2477
|
+
expiresAt: alepha1.TString;
|
|
2557
2478
|
}>;
|
|
2558
2479
|
}>;
|
|
2559
2480
|
/**
|
|
@@ -2561,61 +2482,61 @@ declare class UserController {
|
|
|
2561
2482
|
* Validates verification code, updates password, and invalidates sessions.
|
|
2562
2483
|
*/
|
|
2563
2484
|
readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
2564
|
-
body:
|
|
2565
|
-
intentId:
|
|
2566
|
-
code:
|
|
2567
|
-
newPassword:
|
|
2485
|
+
body: alepha1.TObject<{
|
|
2486
|
+
intentId: alepha1.TString;
|
|
2487
|
+
code: alepha1.TString;
|
|
2488
|
+
newPassword: alepha1.TString;
|
|
2568
2489
|
}>;
|
|
2569
|
-
response:
|
|
2570
|
-
ok:
|
|
2571
|
-
id:
|
|
2572
|
-
count:
|
|
2490
|
+
response: alepha1.TObject<{
|
|
2491
|
+
ok: alepha1.TBoolean;
|
|
2492
|
+
id: alepha1.TOptional<alepha1.TUnion<[alepha1.TString, alepha1.TInteger]>>;
|
|
2493
|
+
count: alepha1.TOptional<alepha1.TNumber>;
|
|
2573
2494
|
}>;
|
|
2574
2495
|
}>;
|
|
2575
2496
|
/**
|
|
2576
2497
|
* @deprecated Use createPasswordResetIntent instead
|
|
2577
2498
|
*/
|
|
2578
2499
|
requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
2579
|
-
query:
|
|
2580
|
-
userRealmName:
|
|
2500
|
+
query: alepha1.TObject<{
|
|
2501
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2581
2502
|
}>;
|
|
2582
|
-
body:
|
|
2583
|
-
email:
|
|
2503
|
+
body: alepha1.TObject<{
|
|
2504
|
+
email: alepha1.TString;
|
|
2584
2505
|
}>;
|
|
2585
|
-
response:
|
|
2586
|
-
success:
|
|
2587
|
-
message:
|
|
2506
|
+
response: alepha1.TObject<{
|
|
2507
|
+
success: alepha1.TBoolean;
|
|
2508
|
+
message: alepha1.TString;
|
|
2588
2509
|
}>;
|
|
2589
2510
|
}>;
|
|
2590
2511
|
/**
|
|
2591
2512
|
* @deprecated Use completePasswordReset instead
|
|
2592
2513
|
*/
|
|
2593
2514
|
validateResetToken: alepha_server0.ActionPrimitiveFn<{
|
|
2594
|
-
query:
|
|
2595
|
-
email:
|
|
2596
|
-
token:
|
|
2597
|
-
userRealmName:
|
|
2515
|
+
query: alepha1.TObject<{
|
|
2516
|
+
email: alepha1.TString;
|
|
2517
|
+
token: alepha1.TString;
|
|
2518
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2598
2519
|
}>;
|
|
2599
|
-
response:
|
|
2600
|
-
valid:
|
|
2601
|
-
email:
|
|
2520
|
+
response: alepha1.TObject<{
|
|
2521
|
+
valid: alepha1.TBoolean;
|
|
2522
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2602
2523
|
}>;
|
|
2603
2524
|
}>;
|
|
2604
2525
|
/**
|
|
2605
2526
|
* @deprecated Use completePasswordReset instead
|
|
2606
2527
|
*/
|
|
2607
2528
|
resetPassword: alepha_server0.ActionPrimitiveFn<{
|
|
2608
|
-
query:
|
|
2609
|
-
userRealmName:
|
|
2529
|
+
query: alepha1.TObject<{
|
|
2530
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2610
2531
|
}>;
|
|
2611
|
-
body:
|
|
2612
|
-
email:
|
|
2613
|
-
token:
|
|
2614
|
-
newPassword:
|
|
2532
|
+
body: alepha1.TObject<{
|
|
2533
|
+
email: alepha1.TString;
|
|
2534
|
+
token: alepha1.TString;
|
|
2535
|
+
newPassword: alepha1.TString;
|
|
2615
2536
|
}>;
|
|
2616
|
-
response:
|
|
2617
|
-
success:
|
|
2618
|
-
message:
|
|
2537
|
+
response: alepha1.TObject<{
|
|
2538
|
+
success: alepha1.TBoolean;
|
|
2539
|
+
message: alepha1.TString;
|
|
2619
2540
|
}>;
|
|
2620
2541
|
}>;
|
|
2621
2542
|
/**
|
|
@@ -2625,17 +2546,17 @@ declare class UserController {
|
|
|
2625
2546
|
* @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
|
|
2626
2547
|
*/
|
|
2627
2548
|
requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
2628
|
-
query:
|
|
2629
|
-
userRealmName:
|
|
2630
|
-
method:
|
|
2631
|
-
verifyUrl:
|
|
2549
|
+
query: alepha1.TObject<{
|
|
2550
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2551
|
+
method: alepha1.TOptional<alepha1.TUnsafe<"link" | "code">>;
|
|
2552
|
+
verifyUrl: alepha1.TOptional<alepha1.TString>;
|
|
2632
2553
|
}>;
|
|
2633
|
-
body:
|
|
2634
|
-
email:
|
|
2554
|
+
body: alepha1.TObject<{
|
|
2555
|
+
email: alepha1.TString;
|
|
2635
2556
|
}>;
|
|
2636
|
-
response:
|
|
2637
|
-
success:
|
|
2638
|
-
message:
|
|
2557
|
+
response: alepha1.TObject<{
|
|
2558
|
+
success: alepha1.TBoolean;
|
|
2559
|
+
message: alepha1.TString;
|
|
2639
2560
|
}>;
|
|
2640
2561
|
}>;
|
|
2641
2562
|
/**
|
|
@@ -2643,28 +2564,28 @@ declare class UserController {
|
|
|
2643
2564
|
* Updates the user's emailVerified status.
|
|
2644
2565
|
*/
|
|
2645
2566
|
verifyEmail: alepha_server0.ActionPrimitiveFn<{
|
|
2646
|
-
query:
|
|
2647
|
-
userRealmName:
|
|
2567
|
+
query: alepha1.TObject<{
|
|
2568
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2648
2569
|
}>;
|
|
2649
|
-
body:
|
|
2650
|
-
email:
|
|
2651
|
-
token:
|
|
2570
|
+
body: alepha1.TObject<{
|
|
2571
|
+
email: alepha1.TString;
|
|
2572
|
+
token: alepha1.TString;
|
|
2652
2573
|
}>;
|
|
2653
|
-
response:
|
|
2654
|
-
success:
|
|
2655
|
-
message:
|
|
2574
|
+
response: alepha1.TObject<{
|
|
2575
|
+
success: alepha1.TBoolean;
|
|
2576
|
+
message: alepha1.TString;
|
|
2656
2577
|
}>;
|
|
2657
2578
|
}>;
|
|
2658
2579
|
/**
|
|
2659
2580
|
* Check if an email is verified.
|
|
2660
2581
|
*/
|
|
2661
2582
|
checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
2662
|
-
query:
|
|
2663
|
-
email:
|
|
2664
|
-
userRealmName:
|
|
2583
|
+
query: alepha1.TObject<{
|
|
2584
|
+
email: alepha1.TString;
|
|
2585
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2665
2586
|
}>;
|
|
2666
|
-
response:
|
|
2667
|
-
verified:
|
|
2587
|
+
response: alepha1.TObject<{
|
|
2588
|
+
verified: alepha1.TBoolean;
|
|
2668
2589
|
}>;
|
|
2669
2590
|
}>;
|
|
2670
2591
|
}
|
|
@@ -2684,165 +2605,165 @@ declare class UserRealmController {
|
|
|
2684
2605
|
* This endpoint is not exposed in the API documentation.
|
|
2685
2606
|
*/
|
|
2686
2607
|
readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
|
|
2687
|
-
query:
|
|
2688
|
-
userRealmName:
|
|
2608
|
+
query: alepha1.TObject<{
|
|
2609
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2689
2610
|
}>;
|
|
2690
|
-
response:
|
|
2691
|
-
settings:
|
|
2692
|
-
displayName:
|
|
2693
|
-
description:
|
|
2694
|
-
logoUrl:
|
|
2695
|
-
registrationAllowed:
|
|
2696
|
-
emailEnabled:
|
|
2697
|
-
emailRequired:
|
|
2698
|
-
usernameEnabled:
|
|
2699
|
-
usernameRequired:
|
|
2700
|
-
phoneEnabled:
|
|
2701
|
-
phoneRequired:
|
|
2702
|
-
verifyEmailRequired:
|
|
2703
|
-
verifyPhoneRequired:
|
|
2704
|
-
firstNameLastNameEnabled:
|
|
2705
|
-
firstNameLastNameRequired:
|
|
2706
|
-
resetPasswordAllowed:
|
|
2707
|
-
passwordPolicy:
|
|
2708
|
-
minLength:
|
|
2709
|
-
requireUppercase:
|
|
2710
|
-
requireLowercase:
|
|
2711
|
-
requireNumbers:
|
|
2712
|
-
requireSpecialCharacters:
|
|
2611
|
+
response: alepha1.TObject<{
|
|
2612
|
+
settings: alepha1.TObject<{
|
|
2613
|
+
displayName: alepha1.TOptional<alepha1.TString>;
|
|
2614
|
+
description: alepha1.TOptional<alepha1.TString>;
|
|
2615
|
+
logoUrl: alepha1.TOptional<alepha1.TString>;
|
|
2616
|
+
registrationAllowed: alepha1.TBoolean;
|
|
2617
|
+
emailEnabled: alepha1.TBoolean;
|
|
2618
|
+
emailRequired: alepha1.TBoolean;
|
|
2619
|
+
usernameEnabled: alepha1.TBoolean;
|
|
2620
|
+
usernameRequired: alepha1.TBoolean;
|
|
2621
|
+
phoneEnabled: alepha1.TBoolean;
|
|
2622
|
+
phoneRequired: alepha1.TBoolean;
|
|
2623
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
2624
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
2625
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
2626
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
2627
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
2628
|
+
passwordPolicy: alepha1.TObject<{
|
|
2629
|
+
minLength: alepha1.TInteger;
|
|
2630
|
+
requireUppercase: alepha1.TBoolean;
|
|
2631
|
+
requireLowercase: alepha1.TBoolean;
|
|
2632
|
+
requireNumbers: alepha1.TBoolean;
|
|
2633
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
2713
2634
|
}>;
|
|
2714
2635
|
}>;
|
|
2715
|
-
realmName:
|
|
2716
|
-
authenticationMethods:
|
|
2717
|
-
name:
|
|
2718
|
-
type:
|
|
2636
|
+
realmName: alepha1.TString;
|
|
2637
|
+
authenticationMethods: alepha1.TArray<alepha1.TObject<{
|
|
2638
|
+
name: alepha1.TString;
|
|
2639
|
+
type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2719
2640
|
}>>;
|
|
2720
2641
|
}>;
|
|
2721
2642
|
}>;
|
|
2722
2643
|
readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
|
|
2723
|
-
query:
|
|
2724
|
-
userRealmName:
|
|
2644
|
+
query: alepha1.TObject<{
|
|
2645
|
+
userRealmName: alepha1.TOptional<alepha1.TString>;
|
|
2725
2646
|
}>;
|
|
2726
|
-
body:
|
|
2727
|
-
username:
|
|
2647
|
+
body: alepha1.TObject<{
|
|
2648
|
+
username: alepha1.TString;
|
|
2728
2649
|
}>;
|
|
2729
|
-
response:
|
|
2730
|
-
available:
|
|
2650
|
+
response: alepha1.TObject<{
|
|
2651
|
+
available: alepha1.TBoolean;
|
|
2731
2652
|
}>;
|
|
2732
2653
|
}>;
|
|
2733
2654
|
}
|
|
2734
2655
|
//#endregion
|
|
2735
2656
|
//#region ../../src/api/users/schemas/identityResourceSchema.d.ts
|
|
2736
|
-
declare const identityResourceSchema:
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
providerUserId:
|
|
2744
|
-
providerData:
|
|
2657
|
+
declare const identityResourceSchema: alepha1.TObject<{
|
|
2658
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2659
|
+
provider: alepha1.TString;
|
|
2660
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2661
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2662
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2663
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2664
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
2665
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
2745
2666
|
}>;
|
|
2746
2667
|
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
2747
2668
|
//#endregion
|
|
2748
2669
|
//#region ../../src/api/users/schemas/loginSchema.d.ts
|
|
2749
|
-
declare const loginSchema:
|
|
2750
|
-
username:
|
|
2751
|
-
password:
|
|
2670
|
+
declare const loginSchema: alepha1.TObject<{
|
|
2671
|
+
username: alepha1.TString;
|
|
2672
|
+
password: alepha1.TString;
|
|
2752
2673
|
}>;
|
|
2753
2674
|
type LoginInput = Static<typeof loginSchema>;
|
|
2754
2675
|
//#endregion
|
|
2755
2676
|
//#region ../../src/api/users/schemas/registerSchema.d.ts
|
|
2756
|
-
declare const registerSchema:
|
|
2757
|
-
username:
|
|
2758
|
-
email:
|
|
2759
|
-
password:
|
|
2760
|
-
confirmPassword:
|
|
2761
|
-
firstName:
|
|
2762
|
-
lastName:
|
|
2677
|
+
declare const registerSchema: alepha1.TObject<{
|
|
2678
|
+
username: alepha1.TString;
|
|
2679
|
+
email: alepha1.TString;
|
|
2680
|
+
password: alepha1.TString;
|
|
2681
|
+
confirmPassword: alepha1.TString;
|
|
2682
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2683
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2763
2684
|
}>;
|
|
2764
2685
|
type RegisterInput = Static<typeof registerSchema>;
|
|
2765
2686
|
//#endregion
|
|
2766
2687
|
//#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
|
|
2767
|
-
declare const resetPasswordRequestSchema:
|
|
2768
|
-
email:
|
|
2688
|
+
declare const resetPasswordRequestSchema: alepha1.TObject<{
|
|
2689
|
+
email: alepha1.TString;
|
|
2769
2690
|
}>;
|
|
2770
|
-
declare const resetPasswordSchema:
|
|
2771
|
-
token:
|
|
2772
|
-
password:
|
|
2773
|
-
confirmPassword:
|
|
2691
|
+
declare const resetPasswordSchema: alepha1.TObject<{
|
|
2692
|
+
token: alepha1.TString;
|
|
2693
|
+
password: alepha1.TString;
|
|
2694
|
+
confirmPassword: alepha1.TString;
|
|
2774
2695
|
}>;
|
|
2775
2696
|
type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
|
|
2776
2697
|
type ResetPasswordInput = Static<typeof resetPasswordSchema>;
|
|
2777
2698
|
//#endregion
|
|
2778
2699
|
//#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
|
|
2779
|
-
declare const sessionResourceSchema:
|
|
2780
|
-
id:
|
|
2781
|
-
version:
|
|
2782
|
-
createdAt:
|
|
2783
|
-
updatedAt:
|
|
2784
|
-
refreshToken:
|
|
2785
|
-
userId:
|
|
2786
|
-
expiresAt:
|
|
2787
|
-
ip:
|
|
2788
|
-
userAgent:
|
|
2789
|
-
os:
|
|
2790
|
-
browser:
|
|
2791
|
-
device:
|
|
2700
|
+
declare const sessionResourceSchema: alepha1.TObject<{
|
|
2701
|
+
id: alepha1.TString;
|
|
2702
|
+
version: alepha1.TNumber;
|
|
2703
|
+
createdAt: alepha1.TString;
|
|
2704
|
+
updatedAt: alepha1.TString;
|
|
2705
|
+
refreshToken: alepha1.TString;
|
|
2706
|
+
userId: alepha1.TString;
|
|
2707
|
+
expiresAt: alepha1.TString;
|
|
2708
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
2709
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
2710
|
+
os: alepha1.TString;
|
|
2711
|
+
browser: alepha1.TString;
|
|
2712
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2792
2713
|
}>>;
|
|
2793
2714
|
}>;
|
|
2794
2715
|
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
2795
2716
|
//#endregion
|
|
2796
2717
|
//#region ../../src/api/users/schemas/userRealmConfigSchema.d.ts
|
|
2797
|
-
declare const userRealmConfigSchema:
|
|
2798
|
-
settings:
|
|
2799
|
-
displayName:
|
|
2800
|
-
description:
|
|
2801
|
-
logoUrl:
|
|
2802
|
-
registrationAllowed:
|
|
2803
|
-
emailEnabled:
|
|
2804
|
-
emailRequired:
|
|
2805
|
-
usernameEnabled:
|
|
2806
|
-
usernameRequired:
|
|
2807
|
-
phoneEnabled:
|
|
2808
|
-
phoneRequired:
|
|
2809
|
-
verifyEmailRequired:
|
|
2810
|
-
verifyPhoneRequired:
|
|
2811
|
-
firstNameLastNameEnabled:
|
|
2812
|
-
firstNameLastNameRequired:
|
|
2813
|
-
resetPasswordAllowed:
|
|
2814
|
-
passwordPolicy:
|
|
2815
|
-
minLength:
|
|
2816
|
-
requireUppercase:
|
|
2817
|
-
requireLowercase:
|
|
2818
|
-
requireNumbers:
|
|
2819
|
-
requireSpecialCharacters:
|
|
2718
|
+
declare const userRealmConfigSchema: alepha1.TObject<{
|
|
2719
|
+
settings: alepha1.TObject<{
|
|
2720
|
+
displayName: alepha1.TOptional<alepha1.TString>;
|
|
2721
|
+
description: alepha1.TOptional<alepha1.TString>;
|
|
2722
|
+
logoUrl: alepha1.TOptional<alepha1.TString>;
|
|
2723
|
+
registrationAllowed: alepha1.TBoolean;
|
|
2724
|
+
emailEnabled: alepha1.TBoolean;
|
|
2725
|
+
emailRequired: alepha1.TBoolean;
|
|
2726
|
+
usernameEnabled: alepha1.TBoolean;
|
|
2727
|
+
usernameRequired: alepha1.TBoolean;
|
|
2728
|
+
phoneEnabled: alepha1.TBoolean;
|
|
2729
|
+
phoneRequired: alepha1.TBoolean;
|
|
2730
|
+
verifyEmailRequired: alepha1.TBoolean;
|
|
2731
|
+
verifyPhoneRequired: alepha1.TBoolean;
|
|
2732
|
+
firstNameLastNameEnabled: alepha1.TBoolean;
|
|
2733
|
+
firstNameLastNameRequired: alepha1.TBoolean;
|
|
2734
|
+
resetPasswordAllowed: alepha1.TBoolean;
|
|
2735
|
+
passwordPolicy: alepha1.TObject<{
|
|
2736
|
+
minLength: alepha1.TInteger;
|
|
2737
|
+
requireUppercase: alepha1.TBoolean;
|
|
2738
|
+
requireLowercase: alepha1.TBoolean;
|
|
2739
|
+
requireNumbers: alepha1.TBoolean;
|
|
2740
|
+
requireSpecialCharacters: alepha1.TBoolean;
|
|
2820
2741
|
}>;
|
|
2821
2742
|
}>;
|
|
2822
|
-
realmName:
|
|
2823
|
-
authenticationMethods:
|
|
2824
|
-
name:
|
|
2825
|
-
type:
|
|
2743
|
+
realmName: alepha1.TString;
|
|
2744
|
+
authenticationMethods: alepha1.TArray<alepha1.TObject<{
|
|
2745
|
+
name: alepha1.TString;
|
|
2746
|
+
type: alepha1.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2826
2747
|
}>>;
|
|
2827
2748
|
}>;
|
|
2828
2749
|
type UserRealmConfig = Static<typeof userRealmConfigSchema>;
|
|
2829
2750
|
//#endregion
|
|
2830
2751
|
//#region ../../src/api/users/schemas/userResourceSchema.d.ts
|
|
2831
|
-
declare const userResourceSchema:
|
|
2832
|
-
id: PgAttr<PgAttr<
|
|
2833
|
-
version: PgAttr<PgAttr<
|
|
2834
|
-
createdAt: PgAttr<PgAttr<
|
|
2835
|
-
updatedAt: PgAttr<PgAttr<
|
|
2836
|
-
realm: PgAttr<
|
|
2837
|
-
username:
|
|
2838
|
-
email:
|
|
2839
|
-
phoneNumber:
|
|
2840
|
-
roles: PgAttr<
|
|
2841
|
-
firstName:
|
|
2842
|
-
lastName:
|
|
2843
|
-
picture:
|
|
2844
|
-
enabled: PgAttr<
|
|
2845
|
-
emailVerified: PgAttr<
|
|
2752
|
+
declare const userResourceSchema: alepha1.TObject<{
|
|
2753
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2754
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2755
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2756
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2757
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2758
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2759
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2760
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2761
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2762
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2763
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2764
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2765
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2766
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2846
2767
|
}>;
|
|
2847
2768
|
type UserResource = Static<typeof userResourceSchema>;
|
|
2848
2769
|
//#endregion
|
|
@@ -2854,49 +2775,49 @@ declare class SessionService {
|
|
|
2854
2775
|
protected readonly cryptoProvider: CryptoProvider;
|
|
2855
2776
|
protected readonly log: alepha_logger5.Logger;
|
|
2856
2777
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2857
|
-
protected readonly fileController:
|
|
2778
|
+
protected readonly fileController: alepha_server_links2.HttpVirtualClient<FileController>;
|
|
2858
2779
|
protected readonly auditService: AuditService;
|
|
2859
|
-
users(userRealmName?: string): Repository$1<
|
|
2860
|
-
id: PgAttr<PgAttr<
|
|
2861
|
-
version: PgAttr<PgAttr<
|
|
2862
|
-
createdAt: PgAttr<PgAttr<
|
|
2863
|
-
updatedAt: PgAttr<PgAttr<
|
|
2864
|
-
realm: PgAttr<
|
|
2865
|
-
username:
|
|
2866
|
-
email:
|
|
2867
|
-
phoneNumber:
|
|
2868
|
-
roles: PgAttr<
|
|
2869
|
-
firstName:
|
|
2870
|
-
lastName:
|
|
2871
|
-
picture:
|
|
2872
|
-
enabled: PgAttr<
|
|
2873
|
-
emailVerified: PgAttr<
|
|
2780
|
+
users(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2781
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2782
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2783
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2784
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2785
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2786
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2787
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2788
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2789
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2790
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2791
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2792
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2793
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2794
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2874
2795
|
}>>;
|
|
2875
|
-
sessions(userRealmName?: string): Repository$1<
|
|
2876
|
-
id: PgAttr<PgAttr<
|
|
2877
|
-
version: PgAttr<PgAttr<
|
|
2878
|
-
createdAt: PgAttr<PgAttr<
|
|
2879
|
-
updatedAt: PgAttr<PgAttr<
|
|
2880
|
-
refreshToken:
|
|
2881
|
-
userId: PgAttr<
|
|
2882
|
-
expiresAt:
|
|
2883
|
-
ip:
|
|
2884
|
-
userAgent:
|
|
2885
|
-
os:
|
|
2886
|
-
browser:
|
|
2887
|
-
device:
|
|
2796
|
+
sessions(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2797
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2798
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2799
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2800
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2801
|
+
refreshToken: alepha1.TString;
|
|
2802
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2803
|
+
expiresAt: alepha1.TString;
|
|
2804
|
+
ip: alepha1.TOptional<alepha1.TString>;
|
|
2805
|
+
userAgent: alepha1.TOptional<alepha1.TObject<{
|
|
2806
|
+
os: alepha1.TString;
|
|
2807
|
+
browser: alepha1.TString;
|
|
2808
|
+
device: alepha1.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2888
2809
|
}>>;
|
|
2889
2810
|
}>>;
|
|
2890
|
-
identities(userRealmName?: string): Repository$1<
|
|
2891
|
-
id: PgAttr<PgAttr<
|
|
2892
|
-
version: PgAttr<PgAttr<
|
|
2893
|
-
createdAt: PgAttr<PgAttr<
|
|
2894
|
-
updatedAt: PgAttr<PgAttr<
|
|
2895
|
-
userId: PgAttr<
|
|
2896
|
-
password:
|
|
2897
|
-
provider:
|
|
2898
|
-
providerUserId:
|
|
2899
|
-
providerData:
|
|
2811
|
+
identities(userRealmName?: string): Repository$1<alepha1.TObject<{
|
|
2812
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2813
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2814
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2815
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2816
|
+
userId: PgAttr<alepha1.TString, typeof PG_REF>;
|
|
2817
|
+
password: alepha1.TOptional<alepha1.TString>;
|
|
2818
|
+
provider: alepha1.TString;
|
|
2819
|
+
providerUserId: alepha1.TOptional<alepha1.TString>;
|
|
2820
|
+
providerData: alepha1.TOptional<alepha1.TRecord<string, alepha1.TAny>>;
|
|
2900
2821
|
}>>;
|
|
2901
2822
|
/**
|
|
2902
2823
|
* Random delay to prevent timing attacks (50-200ms)
|
|
@@ -2912,36 +2833,36 @@ declare class SessionService {
|
|
|
2912
2833
|
sessionId: string;
|
|
2913
2834
|
}>;
|
|
2914
2835
|
refreshSession(refreshToken: string, userRealmName?: string): Promise<{
|
|
2915
|
-
user: PgStatic<
|
|
2916
|
-
id: PgAttr<PgAttr<
|
|
2917
|
-
version: PgAttr<PgAttr<
|
|
2918
|
-
createdAt: PgAttr<PgAttr<
|
|
2919
|
-
updatedAt: PgAttr<PgAttr<
|
|
2920
|
-
realm: PgAttr<
|
|
2921
|
-
username:
|
|
2922
|
-
email:
|
|
2923
|
-
phoneNumber:
|
|
2924
|
-
roles: PgAttr<
|
|
2925
|
-
firstName:
|
|
2926
|
-
lastName:
|
|
2927
|
-
picture:
|
|
2928
|
-
enabled: PgAttr<
|
|
2929
|
-
emailVerified: PgAttr<
|
|
2930
|
-
}>, PgRelationMap<
|
|
2931
|
-
id: PgAttr<PgAttr<
|
|
2932
|
-
version: PgAttr<PgAttr<
|
|
2933
|
-
createdAt: PgAttr<PgAttr<
|
|
2934
|
-
updatedAt: PgAttr<PgAttr<
|
|
2935
|
-
realm: PgAttr<
|
|
2936
|
-
username:
|
|
2937
|
-
email:
|
|
2938
|
-
phoneNumber:
|
|
2939
|
-
roles: PgAttr<
|
|
2940
|
-
firstName:
|
|
2941
|
-
lastName:
|
|
2942
|
-
picture:
|
|
2943
|
-
enabled: PgAttr<
|
|
2944
|
-
emailVerified: PgAttr<
|
|
2836
|
+
user: PgStatic<alepha1.TObject<{
|
|
2837
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2838
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2839
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2840
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2841
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2842
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2843
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2844
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2845
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2846
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2847
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2848
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2849
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2850
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2851
|
+
}>, PgRelationMap<alepha1.TObject<{
|
|
2852
|
+
id: PgAttr<PgAttr<alepha1.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2853
|
+
version: PgAttr<PgAttr<alepha1.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2854
|
+
createdAt: PgAttr<PgAttr<alepha1.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2855
|
+
updatedAt: PgAttr<PgAttr<alepha1.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2856
|
+
realm: PgAttr<alepha1.TString, typeof PG_DEFAULT>;
|
|
2857
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
2858
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
2859
|
+
phoneNumber: alepha1.TOptional<alepha1.TString>;
|
|
2860
|
+
roles: PgAttr<alepha1.TArray<alepha1.TString>, typeof PG_DEFAULT>;
|
|
2861
|
+
firstName: alepha1.TOptional<alepha1.TString>;
|
|
2862
|
+
lastName: alepha1.TOptional<alepha1.TString>;
|
|
2863
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
2864
|
+
enabled: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2865
|
+
emailVerified: PgAttr<alepha1.TBoolean, typeof PG_DEFAULT>;
|
|
2945
2866
|
}>>>;
|
|
2946
2867
|
expiresIn: number;
|
|
2947
2868
|
sessionId: string;
|
|
@@ -3003,7 +2924,7 @@ declare class SessionService {
|
|
|
3003
2924
|
*
|
|
3004
2925
|
* @module alepha.api.users
|
|
3005
2926
|
*/
|
|
3006
|
-
declare const AlephaApiUsers:
|
|
2927
|
+
declare const AlephaApiUsers: alepha1.Service<alepha1.Module>;
|
|
3007
2928
|
//#endregion
|
|
3008
2929
|
export { $userRealm, AdminIdentityController, AdminSessionController, AdminUserController, AlephaApiUsers, CompletePasswordResetRequest, CompleteRegistrationRequest, CreateUser, CredentialService, DEFAULT_USER_REALM_NAME, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, LoginInput, PasswordResetIntentResponse, RealmAuthSettings, RegisterInput, RegistrationIntentResponse, RegistrationService, ResetPasswordInput, ResetPasswordRequest, 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 };
|
|
3009
2930
|
//# sourceMappingURL=index.d.ts.map
|