alepha 0.13.8 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/audits/index.d.ts +418 -338
- package/dist/api/audits/index.d.ts.map +1 -0
- package/dist/api/files/index.d.ts +81 -1
- package/dist/api/files/index.d.ts.map +1 -0
- package/dist/api/jobs/index.d.ts +107 -27
- package/dist/api/jobs/index.d.ts.map +1 -0
- package/dist/api/notifications/index.d.ts +21 -1
- package/dist/api/notifications/index.d.ts.map +1 -0
- package/dist/api/parameters/index.d.ts +455 -8
- package/dist/api/parameters/index.d.ts.map +1 -0
- package/dist/api/users/index.d.ts +844 -840
- package/dist/api/users/index.d.ts.map +1 -0
- package/dist/api/verifications/index.d.ts.map +1 -0
- package/dist/batch/index.d.ts.map +1 -0
- package/dist/bucket/index.d.ts.map +1 -0
- package/dist/cache/core/index.d.ts.map +1 -0
- package/dist/cache/redis/index.d.ts.map +1 -0
- package/dist/cli/index.d.ts +254 -59
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +499 -127
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +217 -10
- package/dist/command/index.d.ts.map +1 -0
- package/dist/command/index.js +350 -74
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +1334 -1318
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +76 -72
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +1337 -1321
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +1337 -1321
- package/dist/core/index.native.js.map +1 -1
- package/dist/datetime/index.d.ts.map +1 -0
- package/dist/email/index.d.ts.map +1 -0
- package/dist/fake/index.d.ts.map +1 -0
- package/dist/file/index.d.ts.map +1 -0
- package/dist/file/index.js.map +1 -1
- package/dist/lock/core/index.d.ts.map +1 -0
- package/dist/lock/redis/index.d.ts.map +1 -0
- package/dist/logger/index.d.ts +1 -0
- package/dist/logger/index.d.ts.map +1 -0
- package/dist/mcp/index.d.ts +820 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +978 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/orm/index.d.ts +234 -107
- package/dist/orm/index.d.ts.map +1 -0
- package/dist/orm/index.js +376 -316
- package/dist/orm/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +4 -4
- package/dist/queue/core/index.d.ts.map +1 -0
- package/dist/queue/redis/index.d.ts.map +1 -0
- package/dist/queue/redis/index.js +2 -4
- package/dist/queue/redis/index.js.map +1 -1
- package/dist/redis/index.d.ts +400 -29
- package/dist/redis/index.d.ts.map +1 -0
- package/dist/redis/index.js +412 -21
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.d.ts.map +1 -0
- package/dist/router/index.d.ts.map +1 -0
- package/dist/scheduler/index.d.ts +6 -6
- package/dist/scheduler/index.d.ts.map +1 -0
- package/dist/security/index.d.ts +28 -28
- package/dist/security/index.d.ts.map +1 -0
- package/dist/server/auth/index.d.ts +155 -155
- package/dist/server/auth/index.d.ts.map +1 -0
- package/dist/server/cache/index.d.ts.map +1 -0
- package/dist/server/compress/index.d.ts.map +1 -0
- package/dist/server/cookies/index.d.ts.map +1 -0
- package/dist/server/core/index.d.ts +0 -1
- package/dist/server/core/index.d.ts.map +1 -0
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts.map +1 -0
- package/dist/server/health/index.d.ts +17 -17
- package/dist/server/health/index.d.ts.map +1 -0
- package/dist/server/helmet/index.d.ts +4 -1
- package/dist/server/helmet/index.d.ts.map +1 -0
- package/dist/server/links/index.d.ts +33 -33
- package/dist/server/links/index.d.ts.map +1 -0
- package/dist/server/metrics/index.d.ts.map +1 -0
- package/dist/server/multipart/index.d.ts.map +1 -0
- package/dist/server/multipart/index.js.map +1 -1
- package/dist/server/proxy/index.d.ts.map +1 -0
- package/dist/server/proxy/index.js.map +1 -1
- package/dist/server/rate-limit/index.d.ts.map +1 -0
- package/dist/server/security/index.d.ts +9 -9
- package/dist/server/security/index.d.ts.map +1 -0
- package/dist/server/static/index.d.ts.map +1 -0
- package/dist/server/swagger/index.d.ts.map +1 -0
- package/dist/sms/index.d.ts.map +1 -0
- package/dist/thread/index.d.ts.map +1 -0
- package/dist/topic/core/index.d.ts.map +1 -0
- package/dist/topic/redis/index.d.ts.map +1 -0
- package/dist/topic/redis/index.js +3 -3
- package/dist/topic/redis/index.js.map +1 -1
- package/dist/vite/index.d.ts +10 -2
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/index.js +45 -20
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.d.ts.map +1 -0
- package/package.json +9 -4
- package/src/cli/apps/AlephaCli.ts +10 -3
- package/src/cli/apps/AlephaPackageBuilderCli.ts +15 -8
- package/src/cli/assets/mainTs.ts +9 -10
- package/src/cli/atoms/changelogOptions.ts +45 -0
- package/src/cli/commands/ChangelogCommands.ts +259 -0
- package/src/cli/commands/DeployCommands.ts +118 -0
- package/src/cli/commands/DrizzleCommands.ts +230 -10
- package/src/cli/commands/ViteCommands.ts +47 -23
- package/src/cli/defineConfig.ts +15 -0
- package/src/cli/index.ts +3 -0
- package/src/cli/services/AlephaCliUtils.ts +10 -154
- package/src/cli/services/GitMessageParser.ts +77 -0
- package/src/command/helpers/EnvUtils.ts +37 -0
- package/src/command/index.ts +3 -1
- package/src/command/primitives/$command.ts +172 -6
- package/src/command/providers/CliProvider.ts +499 -95
- package/src/core/Alepha.ts +1 -1
- package/src/core/providers/SchemaValidator.ts +23 -1
- package/src/file/providers/NodeFileSystemProvider.ts +3 -1
- package/src/mcp/errors/McpError.ts +72 -0
- package/src/mcp/helpers/jsonrpc.ts +163 -0
- package/src/mcp/index.ts +132 -0
- package/src/mcp/interfaces/McpTypes.ts +248 -0
- package/src/mcp/primitives/$prompt.ts +188 -0
- package/src/mcp/primitives/$resource.ts +171 -0
- package/src/mcp/primitives/$tool.ts +285 -0
- package/src/mcp/providers/McpServerProvider.ts +382 -0
- package/src/mcp/transports/SseMcpTransport.ts +172 -0
- package/src/mcp/transports/StdioMcpTransport.ts +126 -0
- package/src/orm/index.ts +20 -4
- package/src/orm/interfaces/PgQueryWhere.ts +1 -26
- package/src/orm/providers/drivers/BunPostgresProvider.ts +225 -0
- package/src/orm/providers/drivers/BunSqliteProvider.ts +180 -0
- package/src/orm/providers/drivers/CloudflareD1Provider.ts +164 -0
- package/src/orm/providers/drivers/DatabaseProvider.ts +25 -0
- package/src/orm/providers/drivers/NodePostgresProvider.ts +0 -25
- package/src/orm/providers/drivers/NodeSqliteProvider.ts +3 -1
- package/src/orm/services/QueryManager.ts +10 -125
- package/src/queue/redis/providers/RedisQueueProvider.ts +2 -7
- package/src/redis/index.ts +65 -3
- package/src/redis/providers/BunRedisProvider.ts +304 -0
- package/src/redis/providers/BunRedisSubscriberProvider.ts +94 -0
- package/src/redis/providers/NodeRedisProvider.ts +280 -0
- package/src/redis/providers/NodeRedisSubscriberProvider.ts +94 -0
- package/src/redis/providers/RedisProvider.ts +134 -140
- package/src/redis/providers/RedisSubscriberProvider.ts +58 -49
- package/src/server/core/providers/BunHttpServerProvider.ts +0 -3
- package/src/server/core/providers/ServerBodyParserProvider.ts +3 -1
- package/src/server/core/providers/ServerProvider.ts +7 -4
- package/src/server/multipart/providers/ServerMultipartProvider.ts +3 -1
- package/src/server/proxy/providers/ServerProxyProvider.ts +1 -1
- package/src/topic/redis/providers/RedisTopicProvider.ts +3 -3
- package/src/vite/plugins/viteAlephaBuild.ts +8 -2
- package/src/vite/plugins/viteAlephaDev.ts +6 -2
- package/src/vite/tasks/buildServer.ts +2 -1
- package/src/vite/tasks/generateCloudflare.ts +43 -15
- package/src/vite/tasks/runAlepha.ts +1 -0
- package/src/orm/services/PgJsonQueryManager.ts +0 -511
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha23 from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Page, PageQuery, Primitive, Static, StaticEncode, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
3
|
import * as alepha_api_notifications0 from "alepha/api/notifications";
|
|
4
4
|
import { VerificationController } from "alepha/api/verifications";
|
|
5
|
-
import * as
|
|
5
|
+
import * as alepha_orm204 from "alepha/orm";
|
|
6
6
|
import { Page as Page$1, Repository } from "alepha/orm";
|
|
7
7
|
import * as alepha_server0 from "alepha/server";
|
|
8
|
-
import * as
|
|
8
|
+
import * as alepha_logger1 from "alepha/logger";
|
|
9
9
|
import * as alepha_bucket0 from "alepha/bucket";
|
|
10
10
|
import * as alepha_cache0 from "alepha/cache";
|
|
11
11
|
import { DateTime, DateTimeProvider } from "alepha/datetime";
|
|
@@ -14,6 +14,11 @@ import * as alepha_server_links0 from "alepha/server/links";
|
|
|
14
14
|
import { OAuth2Profile, ServerAuthProvider, WithLinkFn, WithLoginFn } from "alepha/server/auth";
|
|
15
15
|
import { FileSystemProvider } from "alepha/file";
|
|
16
16
|
import { FileController } from "alepha/api/files";
|
|
17
|
+
import "bun";
|
|
18
|
+
import "bun:sqlite";
|
|
19
|
+
import "drizzle-orm/bun-sql";
|
|
20
|
+
import "drizzle-orm/bun-sqlite";
|
|
21
|
+
import "drizzle-orm/d1";
|
|
17
22
|
import * as drizzle_orm0 from "drizzle-orm";
|
|
18
23
|
import { BuildExtraConfigColumns, SQL, SQLWrapper } from "drizzle-orm";
|
|
19
24
|
import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
@@ -22,86 +27,86 @@ import { PgTransactionConfig } from "drizzle-orm/pg-core/session";
|
|
|
22
27
|
import * as DrizzleKit from "drizzle-kit/api";
|
|
23
28
|
import "alepha/retry";
|
|
24
29
|
import "alepha/lock";
|
|
30
|
+
import "drizzle-orm/sqlite-core";
|
|
25
31
|
import "drizzle-orm/postgres-js";
|
|
26
32
|
import "postgres";
|
|
27
|
-
import "drizzle-orm/sqlite-core";
|
|
28
33
|
|
|
29
34
|
//#region ../../src/api/users/atoms/realmAuthSettingsAtom.d.ts
|
|
30
|
-
declare const realmAuthSettingsAtom:
|
|
31
|
-
displayName:
|
|
32
|
-
description:
|
|
33
|
-
logoUrl:
|
|
34
|
-
registrationAllowed:
|
|
35
|
-
emailEnabled:
|
|
36
|
-
emailRequired:
|
|
37
|
-
usernameEnabled:
|
|
38
|
-
usernameRequired:
|
|
39
|
-
phoneEnabled:
|
|
40
|
-
phoneRequired:
|
|
41
|
-
verifyEmailRequired:
|
|
42
|
-
verifyPhoneRequired:
|
|
43
|
-
firstNameLastNameEnabled:
|
|
44
|
-
firstNameLastNameRequired:
|
|
45
|
-
resetPasswordAllowed:
|
|
46
|
-
passwordPolicy:
|
|
47
|
-
minLength:
|
|
48
|
-
requireUppercase:
|
|
49
|
-
requireLowercase:
|
|
50
|
-
requireNumbers:
|
|
51
|
-
requireSpecialCharacters:
|
|
35
|
+
declare const realmAuthSettingsAtom: alepha23.Atom<alepha23.TObject<{
|
|
36
|
+
displayName: alepha23.TOptional<alepha23.TString>;
|
|
37
|
+
description: alepha23.TOptional<alepha23.TString>;
|
|
38
|
+
logoUrl: alepha23.TOptional<alepha23.TString>;
|
|
39
|
+
registrationAllowed: alepha23.TBoolean;
|
|
40
|
+
emailEnabled: alepha23.TBoolean;
|
|
41
|
+
emailRequired: alepha23.TBoolean;
|
|
42
|
+
usernameEnabled: alepha23.TBoolean;
|
|
43
|
+
usernameRequired: alepha23.TBoolean;
|
|
44
|
+
phoneEnabled: alepha23.TBoolean;
|
|
45
|
+
phoneRequired: alepha23.TBoolean;
|
|
46
|
+
verifyEmailRequired: alepha23.TBoolean;
|
|
47
|
+
verifyPhoneRequired: alepha23.TBoolean;
|
|
48
|
+
firstNameLastNameEnabled: alepha23.TBoolean;
|
|
49
|
+
firstNameLastNameRequired: alepha23.TBoolean;
|
|
50
|
+
resetPasswordAllowed: alepha23.TBoolean;
|
|
51
|
+
passwordPolicy: alepha23.TObject<{
|
|
52
|
+
minLength: alepha23.TInteger;
|
|
53
|
+
requireUppercase: alepha23.TBoolean;
|
|
54
|
+
requireLowercase: alepha23.TBoolean;
|
|
55
|
+
requireNumbers: alepha23.TBoolean;
|
|
56
|
+
requireSpecialCharacters: alepha23.TBoolean;
|
|
52
57
|
}>;
|
|
53
58
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
54
59
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
55
60
|
//#endregion
|
|
56
61
|
//#region ../../src/api/users/entities/identities.d.ts
|
|
57
|
-
declare const identities:
|
|
58
|
-
id:
|
|
59
|
-
version:
|
|
60
|
-
createdAt:
|
|
61
|
-
updatedAt:
|
|
62
|
-
userId:
|
|
63
|
-
password:
|
|
64
|
-
provider:
|
|
65
|
-
providerUserId:
|
|
66
|
-
providerData:
|
|
62
|
+
declare const identities: alepha_orm204.EntityPrimitive<alepha23.TObject<{
|
|
63
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
64
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
65
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
66
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
67
|
+
userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
|
|
68
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
69
|
+
provider: alepha23.TString;
|
|
70
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
71
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
67
72
|
}>>;
|
|
68
73
|
type IdentityEntity = Static<typeof identities.schema>;
|
|
69
74
|
//#endregion
|
|
70
75
|
//#region ../../src/api/users/entities/sessions.d.ts
|
|
71
|
-
declare const sessions:
|
|
72
|
-
id:
|
|
73
|
-
version:
|
|
74
|
-
createdAt:
|
|
75
|
-
updatedAt:
|
|
76
|
-
refreshToken:
|
|
77
|
-
userId:
|
|
78
|
-
expiresAt:
|
|
79
|
-
ip:
|
|
80
|
-
userAgent:
|
|
81
|
-
os:
|
|
82
|
-
browser:
|
|
83
|
-
device:
|
|
76
|
+
declare const sessions: alepha_orm204.EntityPrimitive<alepha23.TObject<{
|
|
77
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
78
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
79
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
80
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
81
|
+
refreshToken: alepha23.TString;
|
|
82
|
+
userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
|
|
83
|
+
expiresAt: alepha23.TString;
|
|
84
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
85
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
86
|
+
os: alepha23.TString;
|
|
87
|
+
browser: alepha23.TString;
|
|
88
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
84
89
|
}>>;
|
|
85
90
|
}>>;
|
|
86
91
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
87
92
|
//#endregion
|
|
88
93
|
//#region ../../src/api/users/entities/users.d.ts
|
|
89
94
|
declare const DEFAULT_USER_REALM_NAME = "default";
|
|
90
|
-
declare const users:
|
|
91
|
-
id:
|
|
92
|
-
version:
|
|
93
|
-
createdAt:
|
|
94
|
-
updatedAt:
|
|
95
|
-
realm:
|
|
96
|
-
username:
|
|
97
|
-
email:
|
|
98
|
-
phoneNumber:
|
|
99
|
-
roles:
|
|
100
|
-
firstName:
|
|
101
|
-
lastName:
|
|
102
|
-
picture:
|
|
103
|
-
enabled:
|
|
104
|
-
emailVerified:
|
|
95
|
+
declare const users: alepha_orm204.EntityPrimitive<alepha23.TObject<{
|
|
96
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
97
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
98
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
99
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
100
|
+
realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
101
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
102
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
103
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
104
|
+
roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
105
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
106
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
107
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
108
|
+
enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
109
|
+
emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
105
110
|
}>>;
|
|
106
111
|
type UserEntity = Static<typeof users.schema>;
|
|
107
112
|
//#endregion
|
|
@@ -168,51 +173,51 @@ interface UserRealm {
|
|
|
168
173
|
}
|
|
169
174
|
declare class UserRealmProvider {
|
|
170
175
|
protected readonly alepha: Alepha;
|
|
171
|
-
protected readonly defaultIdentities: Repository<
|
|
172
|
-
id:
|
|
173
|
-
version:
|
|
174
|
-
createdAt:
|
|
175
|
-
updatedAt:
|
|
176
|
-
userId:
|
|
177
|
-
password:
|
|
178
|
-
provider:
|
|
179
|
-
providerUserId:
|
|
180
|
-
providerData:
|
|
176
|
+
protected readonly defaultIdentities: Repository<alepha23.TObject<{
|
|
177
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
178
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
179
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
180
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
181
|
+
userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
|
|
182
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
183
|
+
provider: alepha23.TString;
|
|
184
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
185
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
181
186
|
}>>;
|
|
182
|
-
protected readonly defaultSessions: Repository<
|
|
183
|
-
id:
|
|
184
|
-
version:
|
|
185
|
-
createdAt:
|
|
186
|
-
updatedAt:
|
|
187
|
-
refreshToken:
|
|
188
|
-
userId:
|
|
189
|
-
expiresAt:
|
|
190
|
-
ip:
|
|
191
|
-
userAgent:
|
|
192
|
-
os:
|
|
193
|
-
browser:
|
|
194
|
-
device:
|
|
187
|
+
protected readonly defaultSessions: Repository<alepha23.TObject<{
|
|
188
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
189
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
190
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
191
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
192
|
+
refreshToken: alepha23.TString;
|
|
193
|
+
userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
|
|
194
|
+
expiresAt: alepha23.TString;
|
|
195
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
196
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
197
|
+
os: alepha23.TString;
|
|
198
|
+
browser: alepha23.TString;
|
|
199
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
195
200
|
}>>;
|
|
196
201
|
}>>;
|
|
197
|
-
protected readonly defaultUsers: Repository<
|
|
198
|
-
id:
|
|
199
|
-
version:
|
|
200
|
-
createdAt:
|
|
201
|
-
updatedAt:
|
|
202
|
-
realm:
|
|
203
|
-
username:
|
|
204
|
-
email:
|
|
205
|
-
phoneNumber:
|
|
206
|
-
roles:
|
|
207
|
-
firstName:
|
|
208
|
-
lastName:
|
|
209
|
-
picture:
|
|
210
|
-
enabled:
|
|
211
|
-
emailVerified:
|
|
202
|
+
protected readonly defaultUsers: Repository<alepha23.TObject<{
|
|
203
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
204
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
205
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
206
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
207
|
+
realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
208
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
209
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
210
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
211
|
+
roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
212
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
213
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
214
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
215
|
+
enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
216
|
+
emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
212
217
|
}>>;
|
|
213
218
|
protected realms: Map<string, UserRealm>;
|
|
214
219
|
avatars: alepha_bucket0.BucketPrimitive;
|
|
215
|
-
protected readonly onConfigure:
|
|
220
|
+
protected readonly onConfigure: alepha23.HookPrimitive<"configure">;
|
|
216
221
|
register(userRealmName: string, userRealmOptions?: UserRealmOptions): UserRealm;
|
|
217
222
|
/**
|
|
218
223
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
@@ -224,29 +229,29 @@ declare class UserRealmProvider {
|
|
|
224
229
|
}
|
|
225
230
|
//#endregion
|
|
226
231
|
//#region ../../src/api/users/schemas/identityQuerySchema.d.ts
|
|
227
|
-
declare const identityQuerySchema:
|
|
228
|
-
page:
|
|
229
|
-
size:
|
|
230
|
-
sort:
|
|
231
|
-
userId:
|
|
232
|
-
provider:
|
|
232
|
+
declare const identityQuerySchema: alepha23.TObject<{
|
|
233
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
234
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
235
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
236
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
237
|
+
provider: alepha23.TOptional<alepha23.TString>;
|
|
233
238
|
}>;
|
|
234
239
|
type IdentityQuery = Static<typeof identityQuerySchema>;
|
|
235
240
|
//#endregion
|
|
236
241
|
//#region ../../src/api/users/services/IdentityService.d.ts
|
|
237
242
|
declare class IdentityService {
|
|
238
|
-
protected readonly log:
|
|
243
|
+
protected readonly log: alepha_logger1.Logger;
|
|
239
244
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
240
|
-
identities(userRealmName?: string):
|
|
241
|
-
id:
|
|
242
|
-
version:
|
|
243
|
-
createdAt:
|
|
244
|
-
updatedAt:
|
|
245
|
-
userId:
|
|
246
|
-
password:
|
|
247
|
-
provider:
|
|
248
|
-
providerUserId:
|
|
249
|
-
providerData:
|
|
245
|
+
identities(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
|
|
246
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
247
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
248
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
249
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
250
|
+
userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
|
|
251
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
252
|
+
provider: alepha23.TString;
|
|
253
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
254
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
250
255
|
}>>;
|
|
251
256
|
/**
|
|
252
257
|
* Find identities with pagination and filtering.
|
|
@@ -271,90 +276,90 @@ declare class IdentityController {
|
|
|
271
276
|
* Find identities with pagination and filtering.
|
|
272
277
|
*/
|
|
273
278
|
readonly findIdentities: alepha_server0.ActionPrimitiveFn<{
|
|
274
|
-
query:
|
|
275
|
-
page:
|
|
276
|
-
size:
|
|
277
|
-
sort:
|
|
278
|
-
userId:
|
|
279
|
-
provider:
|
|
280
|
-
userRealmName:
|
|
279
|
+
query: alepha23.TObject<{
|
|
280
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
281
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
282
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
283
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
284
|
+
provider: alepha23.TOptional<alepha23.TString>;
|
|
285
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
281
286
|
}>;
|
|
282
|
-
response:
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
providerUserId:
|
|
290
|
-
providerData:
|
|
287
|
+
response: alepha23.TPage<alepha23.TObject<{
|
|
288
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
289
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
290
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
291
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
292
|
+
userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
|
|
293
|
+
provider: alepha23.TString;
|
|
294
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
295
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
291
296
|
}>>;
|
|
292
297
|
}>;
|
|
293
298
|
/**
|
|
294
299
|
* Get an identity by ID.
|
|
295
300
|
*/
|
|
296
301
|
readonly getIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
297
|
-
params:
|
|
298
|
-
id:
|
|
302
|
+
params: alepha23.TObject<{
|
|
303
|
+
id: alepha23.TString;
|
|
299
304
|
}>;
|
|
300
|
-
query:
|
|
301
|
-
userRealmName:
|
|
305
|
+
query: alepha23.TObject<{
|
|
306
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
302
307
|
}>;
|
|
303
|
-
response:
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
providerUserId:
|
|
311
|
-
providerData:
|
|
308
|
+
response: alepha23.TObject<{
|
|
309
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
310
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
311
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
312
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
313
|
+
userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
|
|
314
|
+
provider: alepha23.TString;
|
|
315
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
316
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
312
317
|
}>;
|
|
313
318
|
}>;
|
|
314
319
|
/**
|
|
315
320
|
* Delete an identity.
|
|
316
321
|
*/
|
|
317
322
|
readonly deleteIdentity: alepha_server0.ActionPrimitiveFn<{
|
|
318
|
-
params:
|
|
319
|
-
id:
|
|
323
|
+
params: alepha23.TObject<{
|
|
324
|
+
id: alepha23.TString;
|
|
320
325
|
}>;
|
|
321
|
-
query:
|
|
322
|
-
userRealmName:
|
|
326
|
+
query: alepha23.TObject<{
|
|
327
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
323
328
|
}>;
|
|
324
|
-
response:
|
|
325
|
-
ok:
|
|
326
|
-
id:
|
|
327
|
-
count:
|
|
329
|
+
response: alepha23.TObject<{
|
|
330
|
+
ok: alepha23.TBoolean;
|
|
331
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
332
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
328
333
|
}>;
|
|
329
334
|
}>;
|
|
330
335
|
}
|
|
331
336
|
//#endregion
|
|
332
337
|
//#region ../../src/api/users/schemas/sessionQuerySchema.d.ts
|
|
333
|
-
declare const sessionQuerySchema:
|
|
334
|
-
page:
|
|
335
|
-
size:
|
|
336
|
-
sort:
|
|
337
|
-
userId:
|
|
338
|
+
declare const sessionQuerySchema: alepha23.TObject<{
|
|
339
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
340
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
341
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
342
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
338
343
|
}>;
|
|
339
344
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
340
345
|
//#endregion
|
|
341
346
|
//#region ../../src/api/users/services/SessionCrudService.d.ts
|
|
342
347
|
declare class SessionCrudService {
|
|
343
|
-
protected readonly log:
|
|
348
|
+
protected readonly log: alepha_logger1.Logger;
|
|
344
349
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
345
|
-
sessions(userRealmName?: string):
|
|
346
|
-
id:
|
|
347
|
-
version:
|
|
348
|
-
createdAt:
|
|
349
|
-
updatedAt:
|
|
350
|
-
refreshToken:
|
|
351
|
-
userId:
|
|
352
|
-
expiresAt:
|
|
353
|
-
ip:
|
|
354
|
-
userAgent:
|
|
355
|
-
os:
|
|
356
|
-
browser:
|
|
357
|
-
device:
|
|
350
|
+
sessions(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
|
|
351
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
352
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
353
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
354
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
355
|
+
refreshToken: alepha23.TString;
|
|
356
|
+
userId: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_REF>;
|
|
357
|
+
expiresAt: alepha23.TString;
|
|
358
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
359
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
360
|
+
os: alepha23.TString;
|
|
361
|
+
browser: alepha23.TString;
|
|
362
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
358
363
|
}>>;
|
|
359
364
|
}>>;
|
|
360
365
|
/**
|
|
@@ -380,26 +385,26 @@ declare class SessionController {
|
|
|
380
385
|
* Find sessions with pagination and filtering.
|
|
381
386
|
*/
|
|
382
387
|
readonly findSessions: alepha_server0.ActionPrimitiveFn<{
|
|
383
|
-
query:
|
|
384
|
-
page:
|
|
385
|
-
size:
|
|
386
|
-
sort:
|
|
387
|
-
userId:
|
|
388
|
-
userRealmName:
|
|
388
|
+
query: alepha23.TObject<{
|
|
389
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
390
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
391
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
392
|
+
userId: alepha23.TOptional<alepha23.TString>;
|
|
393
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
389
394
|
}>;
|
|
390
|
-
response:
|
|
391
|
-
id:
|
|
392
|
-
version:
|
|
393
|
-
createdAt:
|
|
394
|
-
updatedAt:
|
|
395
|
-
refreshToken:
|
|
396
|
-
userId:
|
|
397
|
-
expiresAt:
|
|
398
|
-
ip:
|
|
399
|
-
userAgent:
|
|
400
|
-
os:
|
|
401
|
-
browser:
|
|
402
|
-
device:
|
|
395
|
+
response: alepha23.TPage<alepha23.TObject<{
|
|
396
|
+
id: alepha23.TString;
|
|
397
|
+
version: alepha23.TNumber;
|
|
398
|
+
createdAt: alepha23.TString;
|
|
399
|
+
updatedAt: alepha23.TString;
|
|
400
|
+
refreshToken: alepha23.TString;
|
|
401
|
+
userId: alepha23.TString;
|
|
402
|
+
expiresAt: alepha23.TString;
|
|
403
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
404
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
405
|
+
os: alepha23.TString;
|
|
406
|
+
browser: alepha23.TString;
|
|
407
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
403
408
|
}>>;
|
|
404
409
|
}>>;
|
|
405
410
|
}>;
|
|
@@ -407,25 +412,25 @@ declare class SessionController {
|
|
|
407
412
|
* Get a session by ID.
|
|
408
413
|
*/
|
|
409
414
|
readonly getSession: alepha_server0.ActionPrimitiveFn<{
|
|
410
|
-
params:
|
|
411
|
-
id:
|
|
415
|
+
params: alepha23.TObject<{
|
|
416
|
+
id: alepha23.TString;
|
|
412
417
|
}>;
|
|
413
|
-
query:
|
|
414
|
-
userRealmName:
|
|
418
|
+
query: alepha23.TObject<{
|
|
419
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
415
420
|
}>;
|
|
416
|
-
response:
|
|
417
|
-
id:
|
|
418
|
-
version:
|
|
419
|
-
createdAt:
|
|
420
|
-
updatedAt:
|
|
421
|
-
refreshToken:
|
|
422
|
-
userId:
|
|
423
|
-
expiresAt:
|
|
424
|
-
ip:
|
|
425
|
-
userAgent:
|
|
426
|
-
os:
|
|
427
|
-
browser:
|
|
428
|
-
device:
|
|
421
|
+
response: alepha23.TObject<{
|
|
422
|
+
id: alepha23.TString;
|
|
423
|
+
version: alepha23.TNumber;
|
|
424
|
+
createdAt: alepha23.TString;
|
|
425
|
+
updatedAt: alepha23.TString;
|
|
426
|
+
refreshToken: alepha23.TString;
|
|
427
|
+
userId: alepha23.TString;
|
|
428
|
+
expiresAt: alepha23.TString;
|
|
429
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
430
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
431
|
+
os: alepha23.TString;
|
|
432
|
+
browser: alepha23.TString;
|
|
433
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
429
434
|
}>>;
|
|
430
435
|
}>;
|
|
431
436
|
}>;
|
|
@@ -433,16 +438,16 @@ declare class SessionController {
|
|
|
433
438
|
* Delete a session.
|
|
434
439
|
*/
|
|
435
440
|
readonly deleteSession: alepha_server0.ActionPrimitiveFn<{
|
|
436
|
-
params:
|
|
437
|
-
id:
|
|
441
|
+
params: alepha23.TObject<{
|
|
442
|
+
id: alepha23.TString;
|
|
438
443
|
}>;
|
|
439
|
-
query:
|
|
440
|
-
userRealmName:
|
|
444
|
+
query: alepha23.TObject<{
|
|
445
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
441
446
|
}>;
|
|
442
|
-
response:
|
|
443
|
-
ok:
|
|
444
|
-
id:
|
|
445
|
-
count:
|
|
447
|
+
response: alepha23.TObject<{
|
|
448
|
+
ok: alepha23.TBoolean;
|
|
449
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
450
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
446
451
|
}>;
|
|
447
452
|
}>;
|
|
448
453
|
}
|
|
@@ -1137,7 +1142,7 @@ type PgRelation<Base extends TObject> = {
|
|
|
1137
1142
|
//#region ../../src/orm/interfaces/PgQueryWhere.d.ts
|
|
1138
1143
|
type PgQueryWhere<T extends TObject, Relations extends PgRelationMap<TObject> | undefined = undefined> = (PgQueryWhereOperators<T> & PgQueryWhereConditions<T>) | (PgQueryWhereRelations<Relations> & PgQueryWhereOperators<T> & PgQueryWhereConditions<T, Relations>);
|
|
1139
1144
|
type PgQueryWhereOrSQL<T extends TObject, Relations extends PgRelationMap<TObject> | undefined = undefined> = SQLWrapper | PgQueryWhere<T, Relations>;
|
|
1140
|
-
type PgQueryWhereOperators<T extends TObject> = { [Key in keyof Static<T>]?: FilterOperators<Static<T>[Key]> | Static<T>[Key]
|
|
1145
|
+
type PgQueryWhereOperators<T extends TObject> = { [Key in keyof Static<T>]?: FilterOperators<Static<T>[Key]> | Static<T>[Key] };
|
|
1141
1146
|
type PgQueryWhereConditions<T extends TObject, Relations extends PgRelationMap<TObject> | undefined = undefined> = {
|
|
1142
1147
|
/**
|
|
1143
1148
|
* Combine a list of conditions with the `and` operator. Conditions
|
|
@@ -1208,10 +1213,6 @@ type PgQueryWhereConditions<T extends TObject, Relations extends PgRelationMap<T
|
|
|
1208
1213
|
exists?: SQLWrapper;
|
|
1209
1214
|
};
|
|
1210
1215
|
type PgQueryWhereRelations<Relations extends PgRelationMap<TObject> | undefined = undefined> = Relations extends PgRelationMap<TObject> ? { [K in keyof Relations]?: PgQueryWhere<Relations[K]["join"]["schema"], Relations[K]["with"]> } : {};
|
|
1211
|
-
/**
|
|
1212
|
-
* Recursively allow nested queries for JSONB object/array types
|
|
1213
|
-
*/
|
|
1214
|
-
type NestedJsonbQuery<T> = T extends object ? T extends Array<infer U> ? U extends object ? { [K in keyof U]?: FilterOperators<U[K]> | U[K] } : FilterOperators<U> | U : { [K in keyof T]?: FilterOperators<T[K]> | T[K] | (T[K] extends object ? NestedJsonbQuery<T[K]> : never) } : FilterOperators<T> | T;
|
|
1215
1216
|
//#endregion
|
|
1216
1217
|
//#region ../../src/orm/helpers/pgAttr.d.ts
|
|
1217
1218
|
/**
|
|
@@ -1302,7 +1303,7 @@ declare abstract class ModelBuilder {
|
|
|
1302
1303
|
//#endregion
|
|
1303
1304
|
//#region ../../src/orm/providers/DrizzleKitProvider.d.ts
|
|
1304
1305
|
declare class DrizzleKitProvider {
|
|
1305
|
-
protected readonly log:
|
|
1306
|
+
protected readonly log: alepha_logger1.Logger;
|
|
1306
1307
|
protected readonly alepha: Alepha;
|
|
1307
1308
|
/**
|
|
1308
1309
|
* Synchronize database with current schema definitions.
|
|
@@ -1338,11 +1339,11 @@ declare class DrizzleKitProvider {
|
|
|
1338
1339
|
*/
|
|
1339
1340
|
importDrizzleKit(): typeof DrizzleKit;
|
|
1340
1341
|
}
|
|
1341
|
-
declare const devMigrationsSchema:
|
|
1342
|
-
id:
|
|
1343
|
-
name:
|
|
1344
|
-
snapshot:
|
|
1345
|
-
created_at:
|
|
1342
|
+
declare const devMigrationsSchema: alepha23.TObject<{
|
|
1343
|
+
id: alepha23.TNumber;
|
|
1344
|
+
name: alepha23.TString;
|
|
1345
|
+
snapshot: alepha23.TString;
|
|
1346
|
+
created_at: alepha23.TString;
|
|
1346
1347
|
}>;
|
|
1347
1348
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
1348
1349
|
//#endregion
|
|
@@ -1350,7 +1351,7 @@ type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
|
1350
1351
|
type SQLLike = SQLWrapper | string;
|
|
1351
1352
|
declare abstract class DatabaseProvider {
|
|
1352
1353
|
protected readonly alepha: Alepha;
|
|
1353
|
-
protected readonly log:
|
|
1354
|
+
protected readonly log: alepha_logger1.Logger;
|
|
1354
1355
|
protected abstract readonly builder: ModelBuilder;
|
|
1355
1356
|
protected abstract readonly kit: DrizzleKitProvider;
|
|
1356
1357
|
abstract readonly db: PgDatabase<any>;
|
|
@@ -1395,84 +1396,16 @@ declare abstract class DatabaseProvider {
|
|
|
1395
1396
|
* MUST be implemented by each provider
|
|
1396
1397
|
*/
|
|
1397
1398
|
protected abstract executeMigrations(migrationsFolder: string): Promise<void>;
|
|
1398
|
-
}
|
|
1399
|
-
//#endregion
|
|
1400
|
-
//#region ../../src/orm/services/PgJsonQueryManager.d.ts
|
|
1401
|
-
/**
|
|
1402
|
-
* Manages JSONB query generation for nested object and array queries in PostgreSQL.
|
|
1403
|
-
* This class handles complex nested queries using PostgreSQL's JSONB operators.
|
|
1404
|
-
*/
|
|
1405
|
-
declare class PgJsonQueryManager {
|
|
1406
|
-
/**
|
|
1407
|
-
* Check if a query contains nested JSONB queries.
|
|
1408
|
-
* A nested query is when the value is an object with operator keys.
|
|
1409
|
-
*/
|
|
1410
|
-
hasNestedQuery(where: PgQueryWhere<TObject>): boolean;
|
|
1411
|
-
/**
|
|
1412
|
-
* Build a JSONB query condition for nested object queries.
|
|
1413
|
-
* Supports deep nesting like: { profile: { contact: { email: { eq: "test@example.com" } } } }
|
|
1414
|
-
*
|
|
1415
|
-
* @param column The JSONB column
|
|
1416
|
-
* @param path The path to the nested property (e.g., ['profile', 'contact', 'email'])
|
|
1417
|
-
* @param operator The filter operator (e.g., { eq: "test@example.com" })
|
|
1418
|
-
* @param dialect Database dialect (postgresql or sqlite)
|
|
1419
|
-
* @param columnSchema Optional schema of the JSON column for type inference
|
|
1420
|
-
* @returns SQL condition
|
|
1421
|
-
*/
|
|
1422
|
-
buildJsonbCondition(column: PgColumn, path: string[], operator: FilterOperators<any>, dialect: "postgresql" | "sqlite", columnSchema?: any): SQL | undefined;
|
|
1423
|
-
/**
|
|
1424
|
-
* Build JSONB array query conditions.
|
|
1425
|
-
* Supports queries like: { addresses: { city: { eq: "Wonderland" } } }
|
|
1426
|
-
* which translates to: EXISTS (SELECT 1 FROM jsonb_array_elements(addresses) elem WHERE elem->>'city' = 'Wonderland')
|
|
1427
|
-
*
|
|
1428
|
-
* @param dialect Database dialect (postgresql or sqlite)
|
|
1429
|
-
* Note: SQLite array queries are not yet supported
|
|
1430
|
-
*/
|
|
1431
|
-
buildJsonbArrayCondition(column: PgColumn, path: string[], arrayPath: string, operator: FilterOperators<any>, dialect: "postgresql" | "sqlite"): SQL | undefined;
|
|
1432
1399
|
/**
|
|
1433
|
-
*
|
|
1434
|
-
*
|
|
1435
|
-
*
|
|
1400
|
+
* For testing purposes, generate a unique schema name.
|
|
1401
|
+
* The schema name will be generated based on the current date and time.
|
|
1402
|
+
* It will be in the format of `test_YYYYMMDD_HHMMSS_randomSuffix`.
|
|
1436
1403
|
*/
|
|
1437
|
-
|
|
1438
|
-
/**
|
|
1439
|
-
* Parse a nested query object and extract the path and operator.
|
|
1440
|
-
* For example: { profile: { contact: { email: { eq: "test@example.com" } } } }
|
|
1441
|
-
* Returns: { path: ['profile', 'contact', 'email'], operator: { eq: "test@example.com" } }
|
|
1442
|
-
*/
|
|
1443
|
-
parseNestedQuery(nestedQuery: any, currentPath?: string[]): Array<{
|
|
1444
|
-
path: string[];
|
|
1445
|
-
operator: FilterOperators<any>;
|
|
1446
|
-
}>;
|
|
1447
|
-
/**
|
|
1448
|
-
* Determine if a property is a JSONB column based on the schema.
|
|
1449
|
-
* A column is JSONB if it's defined as an object or array in the TypeBox schema.
|
|
1450
|
-
*/
|
|
1451
|
-
isJsonbColumn(schema: TObject, columnName: string): boolean;
|
|
1452
|
-
/**
|
|
1453
|
-
* Check if an array property contains primitive types (string, number, boolean, etc.)
|
|
1454
|
-
* rather than objects. Primitive arrays should use native Drizzle operators.
|
|
1455
|
-
* @returns true if the array contains primitives, false if it contains objects
|
|
1456
|
-
*/
|
|
1457
|
-
isPrimitiveArray(schema: TObject, columnName: string): boolean;
|
|
1458
|
-
/**
|
|
1459
|
-
* Get the type of a field by navigating through a schema path.
|
|
1460
|
-
* Used for smart type casting in SQL queries.
|
|
1461
|
-
*
|
|
1462
|
-
* @param columnSchema The schema of the JSON column (e.g., t.object({ age: t.integer() }))
|
|
1463
|
-
* @param path The path to navigate (e.g., ['contact', 'email'])
|
|
1464
|
-
* @returns The type string (e.g., 'integer', 'number', 'string') or undefined if not found
|
|
1465
|
-
*/
|
|
1466
|
-
private getFieldType;
|
|
1467
|
-
/**
|
|
1468
|
-
* Check if a nested path points to an array property.
|
|
1469
|
-
*/
|
|
1470
|
-
isArrayProperty(schema: TObject, path: string[]): boolean;
|
|
1404
|
+
protected generateTestSchemaName(): string;
|
|
1471
1405
|
}
|
|
1472
1406
|
//#endregion
|
|
1473
1407
|
//#region ../../src/orm/services/QueryManager.d.ts
|
|
1474
1408
|
declare class QueryManager {
|
|
1475
|
-
protected readonly jsonQueryManager: PgJsonQueryManager;
|
|
1476
1409
|
protected readonly alepha: Alepha;
|
|
1477
1410
|
/**
|
|
1478
1411
|
* Convert a query object to a SQL query.
|
|
@@ -1483,10 +1416,6 @@ declare class QueryManager {
|
|
|
1483
1416
|
joins?: PgJoin[];
|
|
1484
1417
|
dialect: "postgresql" | "sqlite";
|
|
1485
1418
|
}): SQL | undefined;
|
|
1486
|
-
/**
|
|
1487
|
-
* Build a JSONB query for nested object/array queries.
|
|
1488
|
-
*/
|
|
1489
|
-
protected buildJsonbQuery(column: PgColumn, nestedQuery: any, schema: TObject, columnName: string, dialect: "postgresql" | "sqlite"): SQL | undefined;
|
|
1490
1419
|
/**
|
|
1491
1420
|
* Check if an object has any filter operator properties.
|
|
1492
1421
|
*/
|
|
@@ -1539,7 +1468,7 @@ declare class QueryManager {
|
|
|
1539
1468
|
createPagination<T>(entities: T[], limit?: number, offset?: number, sort?: Array<{
|
|
1540
1469
|
column: string;
|
|
1541
1470
|
direction: "asc" | "desc";
|
|
1542
|
-
}>):
|
|
1471
|
+
}>): alepha23.Page<T>;
|
|
1543
1472
|
}
|
|
1544
1473
|
interface PgJoin {
|
|
1545
1474
|
table: string;
|
|
@@ -1847,11 +1776,86 @@ interface StatementOptions {
|
|
|
1847
1776
|
now?: DateTime | string;
|
|
1848
1777
|
}
|
|
1849
1778
|
//#endregion
|
|
1779
|
+
//#region ../../src/orm/providers/drivers/BunPostgresProvider.d.ts
|
|
1780
|
+
declare module "alepha" {
|
|
1781
|
+
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
1782
|
+
}
|
|
1783
|
+
declare const envSchema$1: alepha23.TObject<{
|
|
1784
|
+
/**
|
|
1785
|
+
* Main configuration for database connection.
|
|
1786
|
+
* Accept a string in the format of a Postgres connection URL.
|
|
1787
|
+
* Example: postgres://user:password@localhost:5432/database
|
|
1788
|
+
* or
|
|
1789
|
+
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
1790
|
+
*/
|
|
1791
|
+
DATABASE_URL: alepha23.TOptional<alepha23.TString>;
|
|
1792
|
+
/**
|
|
1793
|
+
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
1794
|
+
*/
|
|
1795
|
+
POSTGRES_SCHEMA: alepha23.TOptional<alepha23.TString>;
|
|
1796
|
+
}>;
|
|
1797
|
+
/**
|
|
1798
|
+
* Bun PostgreSQL provider using Drizzle ORM with Bun's native SQL client.
|
|
1799
|
+
*
|
|
1800
|
+
* This provider uses Bun's built-in SQL class for PostgreSQL connections,
|
|
1801
|
+
* which provides excellent performance on the Bun runtime.
|
|
1802
|
+
*
|
|
1803
|
+
* @example
|
|
1804
|
+
* ```ts
|
|
1805
|
+
* // Set DATABASE_URL environment variable
|
|
1806
|
+
* // DATABASE_URL=postgres://user:password@localhost:5432/database
|
|
1807
|
+
*
|
|
1808
|
+
* // Or configure programmatically
|
|
1809
|
+
* alepha.with({
|
|
1810
|
+
* provide: DatabaseProvider,
|
|
1811
|
+
* use: BunPostgresProvider,
|
|
1812
|
+
* });
|
|
1813
|
+
* ```
|
|
1814
|
+
*/
|
|
1815
|
+
//#endregion
|
|
1816
|
+
//#region ../../src/orm/providers/drivers/BunSqliteProvider.d.ts
|
|
1817
|
+
/**
|
|
1818
|
+
* Configuration options for the Bun SQLite database provider.
|
|
1819
|
+
*/
|
|
1820
|
+
declare const bunSqliteOptions: alepha23.Atom<alepha23.TObject<{
|
|
1821
|
+
path: alepha23.TOptional<alepha23.TString>;
|
|
1822
|
+
}>, "alepha.postgres.bun-sqlite.options">;
|
|
1823
|
+
type BunSqliteProviderOptions = Static<typeof bunSqliteOptions.schema>;
|
|
1824
|
+
declare module "alepha" {
|
|
1825
|
+
interface State {
|
|
1826
|
+
[bunSqliteOptions.key]: BunSqliteProviderOptions;
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Bun SQLite provider using Drizzle ORM with Bun's native SQLite client.
|
|
1831
|
+
*
|
|
1832
|
+
* This provider uses Bun's built-in `bun:sqlite` for SQLite connections,
|
|
1833
|
+
* which provides excellent performance on the Bun runtime.
|
|
1834
|
+
*
|
|
1835
|
+
* @example
|
|
1836
|
+
* ```ts
|
|
1837
|
+
* // Set DATABASE_URL environment variable
|
|
1838
|
+
* // DATABASE_URL=sqlite://./my-database.db
|
|
1839
|
+
*
|
|
1840
|
+
* // Or configure programmatically
|
|
1841
|
+
* alepha.with({
|
|
1842
|
+
* provide: DatabaseProvider,
|
|
1843
|
+
* use: BunSqliteProvider,
|
|
1844
|
+
* });
|
|
1845
|
+
*
|
|
1846
|
+
* // Or use options atom
|
|
1847
|
+
* alepha.store.mut(bunSqliteOptions, (old) => ({
|
|
1848
|
+
* ...old,
|
|
1849
|
+
* path: ":memory:",
|
|
1850
|
+
* }));
|
|
1851
|
+
* ```
|
|
1852
|
+
*/
|
|
1853
|
+
//#endregion
|
|
1850
1854
|
//#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
|
|
1851
1855
|
declare module "alepha" {
|
|
1852
1856
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
1853
1857
|
}
|
|
1854
|
-
declare const envSchema:
|
|
1858
|
+
declare const envSchema: alepha23.TObject<{
|
|
1855
1859
|
/**
|
|
1856
1860
|
* Main configuration for database connection.
|
|
1857
1861
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -1859,21 +1863,21 @@ declare const envSchema: alepha1.TObject<{
|
|
|
1859
1863
|
* or
|
|
1860
1864
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
1861
1865
|
*/
|
|
1862
|
-
DATABASE_URL:
|
|
1866
|
+
DATABASE_URL: alepha23.TOptional<alepha23.TString>;
|
|
1863
1867
|
/**
|
|
1864
1868
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
1865
1869
|
*
|
|
1866
1870
|
* It will monkey patch drizzle tables.
|
|
1867
1871
|
*/
|
|
1868
|
-
POSTGRES_SCHEMA:
|
|
1872
|
+
POSTGRES_SCHEMA: alepha23.TOptional<alepha23.TString>;
|
|
1869
1873
|
}>;
|
|
1870
1874
|
//#endregion
|
|
1871
1875
|
//#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
1872
1876
|
/**
|
|
1873
1877
|
* Configuration options for the Node.js SQLite database provider.
|
|
1874
1878
|
*/
|
|
1875
|
-
declare const nodeSqliteOptions:
|
|
1876
|
-
path:
|
|
1879
|
+
declare const nodeSqliteOptions: alepha23.Atom<alepha23.TObject<{
|
|
1880
|
+
path: alepha23.TOptional<alepha23.TString>;
|
|
1877
1881
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
1878
1882
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
1879
1883
|
declare module "alepha" {
|
|
@@ -1958,30 +1962,30 @@ declare module "alepha" {
|
|
|
1958
1962
|
//#endregion
|
|
1959
1963
|
//#region ../../src/api/users/notifications/UserNotifications.d.ts
|
|
1960
1964
|
declare class UserNotifications {
|
|
1961
|
-
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<
|
|
1962
|
-
email:
|
|
1963
|
-
code:
|
|
1964
|
-
expiresInMinutes:
|
|
1965
|
+
readonly passwordReset: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1966
|
+
email: alepha23.TString;
|
|
1967
|
+
code: alepha23.TString;
|
|
1968
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1965
1969
|
}>>;
|
|
1966
|
-
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1967
|
-
email:
|
|
1968
|
-
code:
|
|
1969
|
-
expiresInMinutes:
|
|
1970
|
+
readonly emailVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1971
|
+
email: alepha23.TString;
|
|
1972
|
+
code: alepha23.TString;
|
|
1973
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1970
1974
|
}>>;
|
|
1971
|
-
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<
|
|
1972
|
-
phoneNumber:
|
|
1973
|
-
code:
|
|
1974
|
-
expiresInMinutes:
|
|
1975
|
+
readonly phoneVerification: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1976
|
+
phoneNumber: alepha23.TString;
|
|
1977
|
+
code: alepha23.TString;
|
|
1978
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1975
1979
|
}>>;
|
|
1976
|
-
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1977
|
-
email:
|
|
1978
|
-
resetUrl:
|
|
1979
|
-
expiresInMinutes:
|
|
1980
|
+
readonly passwordResetLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1981
|
+
email: alepha23.TString;
|
|
1982
|
+
resetUrl: alepha23.TString;
|
|
1983
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1980
1984
|
}>>;
|
|
1981
|
-
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<
|
|
1982
|
-
email:
|
|
1983
|
-
verifyUrl:
|
|
1984
|
-
expiresInMinutes:
|
|
1985
|
+
readonly emailVerificationLink: alepha_api_notifications0.NotificationPrimitive<alepha23.TObject<{
|
|
1986
|
+
email: alepha23.TString;
|
|
1987
|
+
verifyUrl: alepha23.TString;
|
|
1988
|
+
expiresInMinutes: alepha23.TNumber;
|
|
1985
1989
|
}>>;
|
|
1986
1990
|
}
|
|
1987
1991
|
//#endregion
|
|
@@ -1992,10 +1996,10 @@ declare class UserNotifications {
|
|
|
1992
1996
|
* Requires the intent ID from Phase 1, the verification code,
|
|
1993
1997
|
* and the new password.
|
|
1994
1998
|
*/
|
|
1995
|
-
declare const completePasswordResetRequestSchema:
|
|
1996
|
-
intentId:
|
|
1997
|
-
code:
|
|
1998
|
-
newPassword:
|
|
1999
|
+
declare const completePasswordResetRequestSchema: alepha23.TObject<{
|
|
2000
|
+
intentId: alepha23.TString;
|
|
2001
|
+
code: alepha23.TString;
|
|
2002
|
+
newPassword: alepha23.TString;
|
|
1999
2003
|
}>;
|
|
2000
2004
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
2001
2005
|
//#endregion
|
|
@@ -2006,9 +2010,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
|
|
|
2006
2010
|
* Contains the intent ID needed for Phase 2 completion,
|
|
2007
2011
|
* along with expiration time.
|
|
2008
2012
|
*/
|
|
2009
|
-
declare const passwordResetIntentResponseSchema:
|
|
2010
|
-
intentId:
|
|
2011
|
-
expiresAt:
|
|
2013
|
+
declare const passwordResetIntentResponseSchema: alepha23.TObject<{
|
|
2014
|
+
intentId: alepha23.TString;
|
|
2015
|
+
expiresAt: alepha23.TString;
|
|
2012
2016
|
}>;
|
|
2013
2017
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
2014
2018
|
//#endregion
|
|
@@ -2024,54 +2028,54 @@ interface PasswordResetIntent {
|
|
|
2024
2028
|
expiresAt: string;
|
|
2025
2029
|
}
|
|
2026
2030
|
declare class CredentialService {
|
|
2027
|
-
protected readonly log:
|
|
2031
|
+
protected readonly log: alepha_logger1.Logger;
|
|
2028
2032
|
protected readonly cryptoProvider: CryptoProvider;
|
|
2029
2033
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2030
2034
|
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
2031
2035
|
protected readonly userNotifications: UserNotifications;
|
|
2032
2036
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2033
2037
|
protected readonly intentCache: alepha_cache0.CachePrimitiveFn<PasswordResetIntent, any[]>;
|
|
2034
|
-
users(userRealmName?: string): Repository$1<
|
|
2035
|
-
id: PgAttr<PgAttr<
|
|
2036
|
-
version: PgAttr<PgAttr<
|
|
2037
|
-
createdAt: PgAttr<PgAttr<
|
|
2038
|
-
updatedAt: PgAttr<PgAttr<
|
|
2039
|
-
realm: PgAttr<
|
|
2040
|
-
username:
|
|
2041
|
-
email:
|
|
2042
|
-
phoneNumber:
|
|
2043
|
-
roles: PgAttr<
|
|
2044
|
-
firstName:
|
|
2045
|
-
lastName:
|
|
2046
|
-
picture:
|
|
2047
|
-
enabled: PgAttr<
|
|
2048
|
-
emailVerified: PgAttr<
|
|
2038
|
+
users(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2039
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2040
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2041
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2042
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2043
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2044
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2045
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2046
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2047
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2048
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2049
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2050
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2051
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2052
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2049
2053
|
}>>;
|
|
2050
|
-
sessions(userRealmName?: string): Repository$1<
|
|
2051
|
-
id: PgAttr<PgAttr<
|
|
2052
|
-
version: PgAttr<PgAttr<
|
|
2053
|
-
createdAt: PgAttr<PgAttr<
|
|
2054
|
-
updatedAt: PgAttr<PgAttr<
|
|
2055
|
-
refreshToken:
|
|
2056
|
-
userId: PgAttr<
|
|
2057
|
-
expiresAt:
|
|
2058
|
-
ip:
|
|
2059
|
-
userAgent:
|
|
2060
|
-
os:
|
|
2061
|
-
browser:
|
|
2062
|
-
device:
|
|
2054
|
+
sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2055
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2056
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2057
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2058
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2059
|
+
refreshToken: alepha23.TString;
|
|
2060
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2061
|
+
expiresAt: alepha23.TString;
|
|
2062
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
2063
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
2064
|
+
os: alepha23.TString;
|
|
2065
|
+
browser: alepha23.TString;
|
|
2066
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2063
2067
|
}>>;
|
|
2064
2068
|
}>>;
|
|
2065
|
-
identities(userRealmName?: string): Repository$1<
|
|
2066
|
-
id: PgAttr<PgAttr<
|
|
2067
|
-
version: PgAttr<PgAttr<
|
|
2068
|
-
createdAt: PgAttr<PgAttr<
|
|
2069
|
-
updatedAt: PgAttr<PgAttr<
|
|
2070
|
-
userId: PgAttr<
|
|
2071
|
-
password:
|
|
2072
|
-
provider:
|
|
2073
|
-
providerUserId:
|
|
2074
|
-
providerData:
|
|
2069
|
+
identities(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2070
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2071
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2072
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2073
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2074
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2075
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
2076
|
+
provider: alepha23.TString;
|
|
2077
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
2078
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
2075
2079
|
}>>;
|
|
2076
2080
|
/**
|
|
2077
2081
|
* Phase 1: Create a password reset intent.
|
|
@@ -2108,11 +2112,11 @@ declare class CredentialService {
|
|
|
2108
2112
|
}
|
|
2109
2113
|
//#endregion
|
|
2110
2114
|
//#region ../../src/api/users/schemas/completeRegistrationRequestSchema.d.ts
|
|
2111
|
-
declare const completeRegistrationRequestSchema:
|
|
2112
|
-
intentId:
|
|
2113
|
-
emailCode:
|
|
2114
|
-
phoneCode:
|
|
2115
|
-
captchaToken:
|
|
2115
|
+
declare const completeRegistrationRequestSchema: alepha23.TObject<{
|
|
2116
|
+
intentId: alepha23.TString;
|
|
2117
|
+
emailCode: alepha23.TOptional<alepha23.TString>;
|
|
2118
|
+
phoneCode: alepha23.TOptional<alepha23.TString>;
|
|
2119
|
+
captchaToken: alepha23.TOptional<alepha23.TString>;
|
|
2116
2120
|
}>;
|
|
2117
2121
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
2118
2122
|
//#endregion
|
|
@@ -2121,24 +2125,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
|
|
|
2121
2125
|
* Schema for user registration request body.
|
|
2122
2126
|
* Password is always required, other fields depend on realm settings.
|
|
2123
2127
|
*/
|
|
2124
|
-
declare const registerRequestSchema:
|
|
2125
|
-
password:
|
|
2126
|
-
username:
|
|
2127
|
-
email:
|
|
2128
|
-
phoneNumber:
|
|
2129
|
-
firstName:
|
|
2130
|
-
lastName:
|
|
2131
|
-
picture:
|
|
2128
|
+
declare const registerRequestSchema: alepha23.TObject<{
|
|
2129
|
+
password: alepha23.TString;
|
|
2130
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2131
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2132
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2133
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2134
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2135
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2132
2136
|
}>;
|
|
2133
2137
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
2134
2138
|
//#endregion
|
|
2135
2139
|
//#region ../../src/api/users/schemas/registrationIntentResponseSchema.d.ts
|
|
2136
|
-
declare const registrationIntentResponseSchema:
|
|
2137
|
-
intentId:
|
|
2138
|
-
expectCaptcha:
|
|
2139
|
-
expectEmailVerification:
|
|
2140
|
-
expectPhoneVerification:
|
|
2141
|
-
expiresAt:
|
|
2140
|
+
declare const registrationIntentResponseSchema: alepha23.TObject<{
|
|
2141
|
+
intentId: alepha23.TString;
|
|
2142
|
+
expectCaptcha: alepha23.TBoolean;
|
|
2143
|
+
expectEmailVerification: alepha23.TBoolean;
|
|
2144
|
+
expectPhoneVerification: alepha23.TBoolean;
|
|
2145
|
+
expiresAt: alepha23.TString;
|
|
2142
2146
|
}>;
|
|
2143
2147
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
2144
2148
|
//#endregion
|
|
@@ -2165,7 +2169,7 @@ interface RegistrationIntent {
|
|
|
2165
2169
|
expiresAt: string;
|
|
2166
2170
|
}
|
|
2167
2171
|
declare class RegistrationService {
|
|
2168
|
-
protected readonly log:
|
|
2172
|
+
protected readonly log: alepha_logger1.Logger;
|
|
2169
2173
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2170
2174
|
protected readonly cryptoProvider: CryptoProvider;
|
|
2171
2175
|
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
@@ -2209,70 +2213,70 @@ declare class RegistrationService {
|
|
|
2209
2213
|
}
|
|
2210
2214
|
//#endregion
|
|
2211
2215
|
//#region ../../src/api/users/schemas/createUserSchema.d.ts
|
|
2212
|
-
declare const createUserSchema:
|
|
2213
|
-
id:
|
|
2214
|
-
version:
|
|
2215
|
-
email:
|
|
2216
|
-
createdAt:
|
|
2217
|
-
updatedAt:
|
|
2218
|
-
username:
|
|
2219
|
-
phoneNumber:
|
|
2220
|
-
roles:
|
|
2221
|
-
firstName:
|
|
2222
|
-
lastName:
|
|
2223
|
-
picture:
|
|
2224
|
-
enabled:
|
|
2225
|
-
emailVerified:
|
|
2216
|
+
declare const createUserSchema: alepha23.TObject<{
|
|
2217
|
+
id: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
2218
|
+
version: alepha23.TOptional<PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
2219
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2220
|
+
createdAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
2221
|
+
updatedAt: alepha23.TOptional<PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
2222
|
+
username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2223
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2224
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
2225
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2226
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2227
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2228
|
+
enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
2229
|
+
emailVerified: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
2226
2230
|
}>;
|
|
2227
2231
|
type CreateUser = Static<typeof createUserSchema>;
|
|
2228
2232
|
//#endregion
|
|
2229
2233
|
//#region ../../src/api/users/schemas/updateUserSchema.d.ts
|
|
2230
|
-
declare const updateUserSchema:
|
|
2231
|
-
email:
|
|
2232
|
-
realm:
|
|
2233
|
-
phoneNumber:
|
|
2234
|
-
roles:
|
|
2235
|
-
firstName:
|
|
2236
|
-
lastName:
|
|
2237
|
-
picture:
|
|
2238
|
-
enabled:
|
|
2234
|
+
declare const updateUserSchema: alepha23.TObject<{
|
|
2235
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2236
|
+
realm: alepha23.TOptional<PgAttr<alepha23.TString, typeof PG_DEFAULT>>;
|
|
2237
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2238
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
2239
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2240
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2241
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2242
|
+
enabled: alepha23.TOptional<PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>>;
|
|
2239
2243
|
}>;
|
|
2240
2244
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
2241
2245
|
//#endregion
|
|
2242
2246
|
//#region ../../src/api/users/schemas/userQuerySchema.d.ts
|
|
2243
|
-
declare const userQuerySchema:
|
|
2244
|
-
page:
|
|
2245
|
-
size:
|
|
2246
|
-
sort:
|
|
2247
|
-
email:
|
|
2248
|
-
enabled:
|
|
2249
|
-
emailVerified:
|
|
2250
|
-
roles:
|
|
2251
|
-
query:
|
|
2247
|
+
declare const userQuerySchema: alepha23.TObject<{
|
|
2248
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
2249
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
2250
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
2251
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2252
|
+
enabled: alepha23.TOptional<alepha23.TBoolean>;
|
|
2253
|
+
emailVerified: alepha23.TOptional<alepha23.TBoolean>;
|
|
2254
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
2255
|
+
query: alepha23.TOptional<alepha23.TString>;
|
|
2252
2256
|
}>;
|
|
2253
2257
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
2254
2258
|
//#endregion
|
|
2255
2259
|
//#region ../../src/api/users/services/UserService.d.ts
|
|
2256
2260
|
declare class UserService {
|
|
2257
|
-
protected readonly log:
|
|
2261
|
+
protected readonly log: alepha_logger1.Logger;
|
|
2258
2262
|
protected readonly verificationController: alepha_server_links0.HttpVirtualClient<VerificationController>;
|
|
2259
2263
|
protected readonly userNotifications: UserNotifications;
|
|
2260
2264
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2261
|
-
users(userRealmName?: string):
|
|
2262
|
-
id:
|
|
2263
|
-
version:
|
|
2264
|
-
createdAt:
|
|
2265
|
-
updatedAt:
|
|
2266
|
-
realm:
|
|
2267
|
-
username:
|
|
2268
|
-
email:
|
|
2269
|
-
phoneNumber:
|
|
2270
|
-
roles:
|
|
2271
|
-
firstName:
|
|
2272
|
-
lastName:
|
|
2273
|
-
picture:
|
|
2274
|
-
enabled:
|
|
2275
|
-
emailVerified:
|
|
2265
|
+
users(userRealmName?: string): alepha_orm204.Repository<alepha23.TObject<{
|
|
2266
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2267
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2268
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2269
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2270
|
+
realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2271
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2272
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2273
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2274
|
+
roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2275
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2276
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2277
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2278
|
+
enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2279
|
+
emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2276
2280
|
}>>;
|
|
2277
2281
|
/**
|
|
2278
2282
|
* Request email verification for a user.
|
|
@@ -2325,122 +2329,122 @@ declare class UserController {
|
|
|
2325
2329
|
* Validates data, creates verification sessions, and stores intent in cache.
|
|
2326
2330
|
*/
|
|
2327
2331
|
readonly createRegistrationIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2328
|
-
body:
|
|
2329
|
-
password:
|
|
2330
|
-
username:
|
|
2331
|
-
email:
|
|
2332
|
-
phoneNumber:
|
|
2333
|
-
firstName:
|
|
2334
|
-
lastName:
|
|
2335
|
-
picture:
|
|
2332
|
+
body: alepha23.TObject<{
|
|
2333
|
+
password: alepha23.TString;
|
|
2334
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2335
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2336
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2337
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2338
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2339
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2336
2340
|
}>;
|
|
2337
|
-
query:
|
|
2338
|
-
userRealmName:
|
|
2341
|
+
query: alepha23.TObject<{
|
|
2342
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2339
2343
|
}>;
|
|
2340
|
-
response:
|
|
2341
|
-
intentId:
|
|
2342
|
-
expectCaptcha:
|
|
2343
|
-
expectEmailVerification:
|
|
2344
|
-
expectPhoneVerification:
|
|
2345
|
-
expiresAt:
|
|
2344
|
+
response: alepha23.TObject<{
|
|
2345
|
+
intentId: alepha23.TString;
|
|
2346
|
+
expectCaptcha: alepha23.TBoolean;
|
|
2347
|
+
expectEmailVerification: alepha23.TBoolean;
|
|
2348
|
+
expectPhoneVerification: alepha23.TBoolean;
|
|
2349
|
+
expiresAt: alepha23.TString;
|
|
2346
2350
|
}>;
|
|
2347
2351
|
}>;
|
|
2348
2352
|
/**
|
|
2349
2353
|
* Find users with pagination and filtering.
|
|
2350
2354
|
*/
|
|
2351
2355
|
readonly findUsers: alepha_server0.ActionPrimitiveFn<{
|
|
2352
|
-
query:
|
|
2353
|
-
page:
|
|
2354
|
-
size:
|
|
2355
|
-
sort:
|
|
2356
|
-
email:
|
|
2357
|
-
enabled:
|
|
2358
|
-
emailVerified:
|
|
2359
|
-
roles:
|
|
2360
|
-
query:
|
|
2361
|
-
userRealmName:
|
|
2356
|
+
query: alepha23.TObject<{
|
|
2357
|
+
page: alepha23.TOptional<alepha23.TInteger>;
|
|
2358
|
+
size: alepha23.TOptional<alepha23.TInteger>;
|
|
2359
|
+
sort: alepha23.TOptional<alepha23.TString>;
|
|
2360
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2361
|
+
enabled: alepha23.TOptional<alepha23.TBoolean>;
|
|
2362
|
+
emailVerified: alepha23.TOptional<alepha23.TBoolean>;
|
|
2363
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
2364
|
+
query: alepha23.TOptional<alepha23.TString>;
|
|
2365
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2362
2366
|
}>;
|
|
2363
|
-
response:
|
|
2364
|
-
id:
|
|
2365
|
-
version:
|
|
2366
|
-
createdAt:
|
|
2367
|
-
updatedAt:
|
|
2368
|
-
realm:
|
|
2369
|
-
username:
|
|
2370
|
-
email:
|
|
2371
|
-
phoneNumber:
|
|
2372
|
-
roles:
|
|
2373
|
-
firstName:
|
|
2374
|
-
lastName:
|
|
2375
|
-
picture:
|
|
2376
|
-
enabled:
|
|
2377
|
-
emailVerified:
|
|
2367
|
+
response: alepha23.TPage<alepha23.TObject<{
|
|
2368
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2369
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2370
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2371
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2372
|
+
realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2373
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2374
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2375
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2376
|
+
roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2377
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2378
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2379
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2380
|
+
enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2381
|
+
emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2378
2382
|
}>>;
|
|
2379
2383
|
}>;
|
|
2380
2384
|
/**
|
|
2381
2385
|
* Get a user by ID.
|
|
2382
2386
|
*/
|
|
2383
2387
|
readonly getUser: alepha_server0.ActionPrimitiveFn<{
|
|
2384
|
-
params:
|
|
2385
|
-
id:
|
|
2388
|
+
params: alepha23.TObject<{
|
|
2389
|
+
id: alepha23.TString;
|
|
2386
2390
|
}>;
|
|
2387
|
-
query:
|
|
2388
|
-
userRealmName:
|
|
2391
|
+
query: alepha23.TObject<{
|
|
2392
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2389
2393
|
}>;
|
|
2390
|
-
response:
|
|
2391
|
-
id:
|
|
2392
|
-
version:
|
|
2393
|
-
createdAt:
|
|
2394
|
-
updatedAt:
|
|
2395
|
-
realm:
|
|
2396
|
-
username:
|
|
2397
|
-
email:
|
|
2398
|
-
phoneNumber:
|
|
2399
|
-
roles:
|
|
2400
|
-
firstName:
|
|
2401
|
-
lastName:
|
|
2402
|
-
picture:
|
|
2403
|
-
enabled:
|
|
2404
|
-
emailVerified:
|
|
2394
|
+
response: alepha23.TObject<{
|
|
2395
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2396
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2397
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2398
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2399
|
+
realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2400
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2401
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2402
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2403
|
+
roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2404
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2405
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2406
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2407
|
+
enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2408
|
+
emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2405
2409
|
}>;
|
|
2406
2410
|
}>;
|
|
2407
2411
|
/**
|
|
2408
2412
|
* Create a new user.
|
|
2409
2413
|
*/
|
|
2410
2414
|
readonly createUser: alepha_server0.ActionPrimitiveFn<{
|
|
2411
|
-
query:
|
|
2412
|
-
userRealmName:
|
|
2415
|
+
query: alepha23.TObject<{
|
|
2416
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2413
2417
|
}>;
|
|
2414
|
-
body:
|
|
2415
|
-
id:
|
|
2416
|
-
version:
|
|
2417
|
-
email:
|
|
2418
|
-
createdAt:
|
|
2419
|
-
updatedAt:
|
|
2420
|
-
username:
|
|
2421
|
-
phoneNumber:
|
|
2422
|
-
roles:
|
|
2423
|
-
firstName:
|
|
2424
|
-
lastName:
|
|
2425
|
-
picture:
|
|
2426
|
-
enabled:
|
|
2427
|
-
emailVerified:
|
|
2418
|
+
body: alepha23.TObject<{
|
|
2419
|
+
id: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2420
|
+
version: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2421
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2422
|
+
createdAt: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2423
|
+
updatedAt: alepha23.TOptional<alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2424
|
+
username: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2425
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2426
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
2427
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2428
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2429
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2430
|
+
enabled: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2431
|
+
emailVerified: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2428
2432
|
}>;
|
|
2429
|
-
response:
|
|
2430
|
-
id:
|
|
2431
|
-
version:
|
|
2432
|
-
createdAt:
|
|
2433
|
-
updatedAt:
|
|
2434
|
-
realm:
|
|
2435
|
-
username:
|
|
2436
|
-
email:
|
|
2437
|
-
phoneNumber:
|
|
2438
|
-
roles:
|
|
2439
|
-
firstName:
|
|
2440
|
-
lastName:
|
|
2441
|
-
picture:
|
|
2442
|
-
enabled:
|
|
2443
|
-
emailVerified:
|
|
2433
|
+
response: alepha23.TObject<{
|
|
2434
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2435
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2436
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2437
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2438
|
+
realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2439
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2440
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2441
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2442
|
+
roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2443
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2444
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2445
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2446
|
+
enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2447
|
+
emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2444
2448
|
}>;
|
|
2445
2449
|
}>;
|
|
2446
2450
|
/**
|
|
@@ -2448,80 +2452,80 @@ declare class UserController {
|
|
|
2448
2452
|
* Validates verification codes and creates the user.
|
|
2449
2453
|
*/
|
|
2450
2454
|
readonly createUserFromIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2451
|
-
body:
|
|
2452
|
-
intentId:
|
|
2453
|
-
emailCode:
|
|
2454
|
-
phoneCode:
|
|
2455
|
-
captchaToken:
|
|
2455
|
+
body: alepha23.TObject<{
|
|
2456
|
+
intentId: alepha23.TString;
|
|
2457
|
+
emailCode: alepha23.TOptional<alepha23.TString>;
|
|
2458
|
+
phoneCode: alepha23.TOptional<alepha23.TString>;
|
|
2459
|
+
captchaToken: alepha23.TOptional<alepha23.TString>;
|
|
2456
2460
|
}>;
|
|
2457
|
-
response:
|
|
2458
|
-
id:
|
|
2459
|
-
version:
|
|
2460
|
-
createdAt:
|
|
2461
|
-
updatedAt:
|
|
2462
|
-
realm:
|
|
2463
|
-
username:
|
|
2464
|
-
email:
|
|
2465
|
-
phoneNumber:
|
|
2466
|
-
roles:
|
|
2467
|
-
firstName:
|
|
2468
|
-
lastName:
|
|
2469
|
-
picture:
|
|
2470
|
-
enabled:
|
|
2471
|
-
emailVerified:
|
|
2461
|
+
response: alepha23.TObject<{
|
|
2462
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2463
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2464
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2465
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2466
|
+
realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2467
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2468
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2469
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2470
|
+
roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2471
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2472
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2473
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2474
|
+
enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2475
|
+
emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2472
2476
|
}>;
|
|
2473
2477
|
}>;
|
|
2474
2478
|
/**
|
|
2475
2479
|
* Update a user.
|
|
2476
2480
|
*/
|
|
2477
2481
|
readonly updateUser: alepha_server0.ActionPrimitiveFn<{
|
|
2478
|
-
params:
|
|
2479
|
-
id:
|
|
2482
|
+
params: alepha23.TObject<{
|
|
2483
|
+
id: alepha23.TString;
|
|
2480
2484
|
}>;
|
|
2481
|
-
query:
|
|
2482
|
-
userRealmName:
|
|
2485
|
+
query: alepha23.TObject<{
|
|
2486
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2483
2487
|
}>;
|
|
2484
|
-
body:
|
|
2485
|
-
email:
|
|
2486
|
-
realm:
|
|
2487
|
-
phoneNumber:
|
|
2488
|
-
roles:
|
|
2489
|
-
firstName:
|
|
2490
|
-
lastName:
|
|
2491
|
-
picture:
|
|
2492
|
-
enabled:
|
|
2488
|
+
body: alepha23.TObject<{
|
|
2489
|
+
email: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2490
|
+
realm: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2491
|
+
phoneNumber: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2492
|
+
roles: alepha23.TOptional<alepha23.TArray<alepha23.TString>>;
|
|
2493
|
+
firstName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2494
|
+
lastName: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2495
|
+
picture: alepha23.TOptional<alepha23.TOptional<alepha23.TString>>;
|
|
2496
|
+
enabled: alepha23.TOptional<alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>>;
|
|
2493
2497
|
}>;
|
|
2494
|
-
response:
|
|
2495
|
-
id:
|
|
2496
|
-
version:
|
|
2497
|
-
createdAt:
|
|
2498
|
-
updatedAt:
|
|
2499
|
-
realm:
|
|
2500
|
-
username:
|
|
2501
|
-
email:
|
|
2502
|
-
phoneNumber:
|
|
2503
|
-
roles:
|
|
2504
|
-
firstName:
|
|
2505
|
-
lastName:
|
|
2506
|
-
picture:
|
|
2507
|
-
enabled:
|
|
2508
|
-
emailVerified:
|
|
2498
|
+
response: alepha23.TObject<{
|
|
2499
|
+
id: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_PRIMARY_KEY>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2500
|
+
version: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TInteger, typeof alepha_orm204.PG_VERSION>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2501
|
+
createdAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_CREATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2502
|
+
updatedAt: alepha_orm204.PgAttr<alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_UPDATED_AT>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2503
|
+
realm: alepha_orm204.PgAttr<alepha23.TString, typeof alepha_orm204.PG_DEFAULT>;
|
|
2504
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2505
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2506
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2507
|
+
roles: alepha_orm204.PgAttr<alepha23.TArray<alepha23.TString>, typeof alepha_orm204.PG_DEFAULT>;
|
|
2508
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2509
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2510
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2511
|
+
enabled: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2512
|
+
emailVerified: alepha_orm204.PgAttr<alepha23.TBoolean, typeof alepha_orm204.PG_DEFAULT>;
|
|
2509
2513
|
}>;
|
|
2510
2514
|
}>;
|
|
2511
2515
|
/**
|
|
2512
2516
|
* Delete a user.
|
|
2513
2517
|
*/
|
|
2514
2518
|
readonly deleteUser: alepha_server0.ActionPrimitiveFn<{
|
|
2515
|
-
params:
|
|
2516
|
-
id:
|
|
2519
|
+
params: alepha23.TObject<{
|
|
2520
|
+
id: alepha23.TString;
|
|
2517
2521
|
}>;
|
|
2518
|
-
query:
|
|
2519
|
-
userRealmName:
|
|
2522
|
+
query: alepha23.TObject<{
|
|
2523
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2520
2524
|
}>;
|
|
2521
|
-
response:
|
|
2522
|
-
ok:
|
|
2523
|
-
id:
|
|
2524
|
-
count:
|
|
2525
|
+
response: alepha23.TObject<{
|
|
2526
|
+
ok: alepha23.TBoolean;
|
|
2527
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
2528
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
2525
2529
|
}>;
|
|
2526
2530
|
}>;
|
|
2527
2531
|
/**
|
|
@@ -2529,15 +2533,15 @@ declare class UserController {
|
|
|
2529
2533
|
* Validates email, sends verification code, and stores intent in cache.
|
|
2530
2534
|
*/
|
|
2531
2535
|
readonly createPasswordResetIntent: alepha_server0.ActionPrimitiveFn<{
|
|
2532
|
-
query:
|
|
2533
|
-
userRealmName:
|
|
2536
|
+
query: alepha23.TObject<{
|
|
2537
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2534
2538
|
}>;
|
|
2535
|
-
body:
|
|
2536
|
-
email:
|
|
2539
|
+
body: alepha23.TObject<{
|
|
2540
|
+
email: alepha23.TString;
|
|
2537
2541
|
}>;
|
|
2538
|
-
response:
|
|
2539
|
-
intentId:
|
|
2540
|
-
expiresAt:
|
|
2542
|
+
response: alepha23.TObject<{
|
|
2543
|
+
intentId: alepha23.TString;
|
|
2544
|
+
expiresAt: alepha23.TString;
|
|
2541
2545
|
}>;
|
|
2542
2546
|
}>;
|
|
2543
2547
|
/**
|
|
@@ -2545,61 +2549,61 @@ declare class UserController {
|
|
|
2545
2549
|
* Validates verification code, updates password, and invalidates sessions.
|
|
2546
2550
|
*/
|
|
2547
2551
|
readonly completePasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
2548
|
-
body:
|
|
2549
|
-
intentId:
|
|
2550
|
-
code:
|
|
2551
|
-
newPassword:
|
|
2552
|
+
body: alepha23.TObject<{
|
|
2553
|
+
intentId: alepha23.TString;
|
|
2554
|
+
code: alepha23.TString;
|
|
2555
|
+
newPassword: alepha23.TString;
|
|
2552
2556
|
}>;
|
|
2553
|
-
response:
|
|
2554
|
-
ok:
|
|
2555
|
-
id:
|
|
2556
|
-
count:
|
|
2557
|
+
response: alepha23.TObject<{
|
|
2558
|
+
ok: alepha23.TBoolean;
|
|
2559
|
+
id: alepha23.TOptional<alepha23.TUnion<[alepha23.TString, alepha23.TInteger]>>;
|
|
2560
|
+
count: alepha23.TOptional<alepha23.TNumber>;
|
|
2557
2561
|
}>;
|
|
2558
2562
|
}>;
|
|
2559
2563
|
/**
|
|
2560
2564
|
* @deprecated Use createPasswordResetIntent instead
|
|
2561
2565
|
*/
|
|
2562
2566
|
requestPasswordReset: alepha_server0.ActionPrimitiveFn<{
|
|
2563
|
-
query:
|
|
2564
|
-
userRealmName:
|
|
2567
|
+
query: alepha23.TObject<{
|
|
2568
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2565
2569
|
}>;
|
|
2566
|
-
body:
|
|
2567
|
-
email:
|
|
2570
|
+
body: alepha23.TObject<{
|
|
2571
|
+
email: alepha23.TString;
|
|
2568
2572
|
}>;
|
|
2569
|
-
response:
|
|
2570
|
-
success:
|
|
2571
|
-
message:
|
|
2573
|
+
response: alepha23.TObject<{
|
|
2574
|
+
success: alepha23.TBoolean;
|
|
2575
|
+
message: alepha23.TString;
|
|
2572
2576
|
}>;
|
|
2573
2577
|
}>;
|
|
2574
2578
|
/**
|
|
2575
2579
|
* @deprecated Use completePasswordReset instead
|
|
2576
2580
|
*/
|
|
2577
2581
|
validateResetToken: alepha_server0.ActionPrimitiveFn<{
|
|
2578
|
-
query:
|
|
2579
|
-
email:
|
|
2580
|
-
token:
|
|
2581
|
-
userRealmName:
|
|
2582
|
+
query: alepha23.TObject<{
|
|
2583
|
+
email: alepha23.TString;
|
|
2584
|
+
token: alepha23.TString;
|
|
2585
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2582
2586
|
}>;
|
|
2583
|
-
response:
|
|
2584
|
-
valid:
|
|
2585
|
-
email:
|
|
2587
|
+
response: alepha23.TObject<{
|
|
2588
|
+
valid: alepha23.TBoolean;
|
|
2589
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2586
2590
|
}>;
|
|
2587
2591
|
}>;
|
|
2588
2592
|
/**
|
|
2589
2593
|
* @deprecated Use completePasswordReset instead
|
|
2590
2594
|
*/
|
|
2591
2595
|
resetPassword: alepha_server0.ActionPrimitiveFn<{
|
|
2592
|
-
query:
|
|
2593
|
-
userRealmName:
|
|
2596
|
+
query: alepha23.TObject<{
|
|
2597
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2594
2598
|
}>;
|
|
2595
|
-
body:
|
|
2596
|
-
email:
|
|
2597
|
-
token:
|
|
2598
|
-
newPassword:
|
|
2599
|
+
body: alepha23.TObject<{
|
|
2600
|
+
email: alepha23.TString;
|
|
2601
|
+
token: alepha23.TString;
|
|
2602
|
+
newPassword: alepha23.TString;
|
|
2599
2603
|
}>;
|
|
2600
|
-
response:
|
|
2601
|
-
success:
|
|
2602
|
-
message:
|
|
2604
|
+
response: alepha23.TObject<{
|
|
2605
|
+
success: alepha23.TBoolean;
|
|
2606
|
+
message: alepha23.TString;
|
|
2603
2607
|
}>;
|
|
2604
2608
|
}>;
|
|
2605
2609
|
/**
|
|
@@ -2609,17 +2613,17 @@ declare class UserController {
|
|
|
2609
2613
|
* @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
|
|
2610
2614
|
*/
|
|
2611
2615
|
requestEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
2612
|
-
query:
|
|
2613
|
-
userRealmName:
|
|
2614
|
-
method:
|
|
2615
|
-
verifyUrl:
|
|
2616
|
+
query: alepha23.TObject<{
|
|
2617
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2618
|
+
method: alepha23.TOptional<alepha23.TUnsafe<"link" | "code">>;
|
|
2619
|
+
verifyUrl: alepha23.TOptional<alepha23.TString>;
|
|
2616
2620
|
}>;
|
|
2617
|
-
body:
|
|
2618
|
-
email:
|
|
2621
|
+
body: alepha23.TObject<{
|
|
2622
|
+
email: alepha23.TString;
|
|
2619
2623
|
}>;
|
|
2620
|
-
response:
|
|
2621
|
-
success:
|
|
2622
|
-
message:
|
|
2624
|
+
response: alepha23.TObject<{
|
|
2625
|
+
success: alepha23.TBoolean;
|
|
2626
|
+
message: alepha23.TString;
|
|
2623
2627
|
}>;
|
|
2624
2628
|
}>;
|
|
2625
2629
|
/**
|
|
@@ -2627,28 +2631,28 @@ declare class UserController {
|
|
|
2627
2631
|
* Updates the user's emailVerified status.
|
|
2628
2632
|
*/
|
|
2629
2633
|
verifyEmail: alepha_server0.ActionPrimitiveFn<{
|
|
2630
|
-
query:
|
|
2631
|
-
userRealmName:
|
|
2634
|
+
query: alepha23.TObject<{
|
|
2635
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2632
2636
|
}>;
|
|
2633
|
-
body:
|
|
2634
|
-
email:
|
|
2635
|
-
token:
|
|
2637
|
+
body: alepha23.TObject<{
|
|
2638
|
+
email: alepha23.TString;
|
|
2639
|
+
token: alepha23.TString;
|
|
2636
2640
|
}>;
|
|
2637
|
-
response:
|
|
2638
|
-
success:
|
|
2639
|
-
message:
|
|
2641
|
+
response: alepha23.TObject<{
|
|
2642
|
+
success: alepha23.TBoolean;
|
|
2643
|
+
message: alepha23.TString;
|
|
2640
2644
|
}>;
|
|
2641
2645
|
}>;
|
|
2642
2646
|
/**
|
|
2643
2647
|
* Check if an email is verified.
|
|
2644
2648
|
*/
|
|
2645
2649
|
checkEmailVerification: alepha_server0.ActionPrimitiveFn<{
|
|
2646
|
-
query:
|
|
2647
|
-
email:
|
|
2648
|
-
userRealmName:
|
|
2650
|
+
query: alepha23.TObject<{
|
|
2651
|
+
email: alepha23.TString;
|
|
2652
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2649
2653
|
}>;
|
|
2650
|
-
response:
|
|
2651
|
-
verified:
|
|
2654
|
+
response: alepha23.TObject<{
|
|
2655
|
+
verified: alepha23.TBoolean;
|
|
2652
2656
|
}>;
|
|
2653
2657
|
}>;
|
|
2654
2658
|
}
|
|
@@ -2667,165 +2671,165 @@ declare class UserRealmController {
|
|
|
2667
2671
|
* This endpoint is not exposed in the API documentation.
|
|
2668
2672
|
*/
|
|
2669
2673
|
readonly getRealmConfig: alepha_server0.ActionPrimitiveFn<{
|
|
2670
|
-
query:
|
|
2671
|
-
userRealmName:
|
|
2674
|
+
query: alepha23.TObject<{
|
|
2675
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2672
2676
|
}>;
|
|
2673
|
-
response:
|
|
2674
|
-
settings:
|
|
2675
|
-
displayName:
|
|
2676
|
-
description:
|
|
2677
|
-
logoUrl:
|
|
2678
|
-
registrationAllowed:
|
|
2679
|
-
emailEnabled:
|
|
2680
|
-
emailRequired:
|
|
2681
|
-
usernameEnabled:
|
|
2682
|
-
usernameRequired:
|
|
2683
|
-
phoneEnabled:
|
|
2684
|
-
phoneRequired:
|
|
2685
|
-
verifyEmailRequired:
|
|
2686
|
-
verifyPhoneRequired:
|
|
2687
|
-
firstNameLastNameEnabled:
|
|
2688
|
-
firstNameLastNameRequired:
|
|
2689
|
-
resetPasswordAllowed:
|
|
2690
|
-
passwordPolicy:
|
|
2691
|
-
minLength:
|
|
2692
|
-
requireUppercase:
|
|
2693
|
-
requireLowercase:
|
|
2694
|
-
requireNumbers:
|
|
2695
|
-
requireSpecialCharacters:
|
|
2677
|
+
response: alepha23.TObject<{
|
|
2678
|
+
settings: alepha23.TObject<{
|
|
2679
|
+
displayName: alepha23.TOptional<alepha23.TString>;
|
|
2680
|
+
description: alepha23.TOptional<alepha23.TString>;
|
|
2681
|
+
logoUrl: alepha23.TOptional<alepha23.TString>;
|
|
2682
|
+
registrationAllowed: alepha23.TBoolean;
|
|
2683
|
+
emailEnabled: alepha23.TBoolean;
|
|
2684
|
+
emailRequired: alepha23.TBoolean;
|
|
2685
|
+
usernameEnabled: alepha23.TBoolean;
|
|
2686
|
+
usernameRequired: alepha23.TBoolean;
|
|
2687
|
+
phoneEnabled: alepha23.TBoolean;
|
|
2688
|
+
phoneRequired: alepha23.TBoolean;
|
|
2689
|
+
verifyEmailRequired: alepha23.TBoolean;
|
|
2690
|
+
verifyPhoneRequired: alepha23.TBoolean;
|
|
2691
|
+
firstNameLastNameEnabled: alepha23.TBoolean;
|
|
2692
|
+
firstNameLastNameRequired: alepha23.TBoolean;
|
|
2693
|
+
resetPasswordAllowed: alepha23.TBoolean;
|
|
2694
|
+
passwordPolicy: alepha23.TObject<{
|
|
2695
|
+
minLength: alepha23.TInteger;
|
|
2696
|
+
requireUppercase: alepha23.TBoolean;
|
|
2697
|
+
requireLowercase: alepha23.TBoolean;
|
|
2698
|
+
requireNumbers: alepha23.TBoolean;
|
|
2699
|
+
requireSpecialCharacters: alepha23.TBoolean;
|
|
2696
2700
|
}>;
|
|
2697
2701
|
}>;
|
|
2698
|
-
realmName:
|
|
2699
|
-
authenticationMethods:
|
|
2700
|
-
name:
|
|
2701
|
-
type:
|
|
2702
|
+
realmName: alepha23.TString;
|
|
2703
|
+
authenticationMethods: alepha23.TArray<alepha23.TObject<{
|
|
2704
|
+
name: alepha23.TString;
|
|
2705
|
+
type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2702
2706
|
}>>;
|
|
2703
2707
|
}>;
|
|
2704
2708
|
}>;
|
|
2705
2709
|
readonly checkUsernameAvailability: alepha_server0.ActionPrimitiveFn<{
|
|
2706
|
-
query:
|
|
2707
|
-
userRealmName:
|
|
2710
|
+
query: alepha23.TObject<{
|
|
2711
|
+
userRealmName: alepha23.TOptional<alepha23.TString>;
|
|
2708
2712
|
}>;
|
|
2709
|
-
body:
|
|
2710
|
-
username:
|
|
2713
|
+
body: alepha23.TObject<{
|
|
2714
|
+
username: alepha23.TString;
|
|
2711
2715
|
}>;
|
|
2712
|
-
response:
|
|
2713
|
-
available:
|
|
2716
|
+
response: alepha23.TObject<{
|
|
2717
|
+
available: alepha23.TBoolean;
|
|
2714
2718
|
}>;
|
|
2715
2719
|
}>;
|
|
2716
2720
|
}
|
|
2717
2721
|
//#endregion
|
|
2718
2722
|
//#region ../../src/api/users/schemas/identityResourceSchema.d.ts
|
|
2719
|
-
declare const identityResourceSchema:
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
providerUserId:
|
|
2727
|
-
providerData:
|
|
2723
|
+
declare const identityResourceSchema: alepha23.TObject<{
|
|
2724
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2725
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2726
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2727
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2728
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2729
|
+
provider: alepha23.TString;
|
|
2730
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
2731
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
2728
2732
|
}>;
|
|
2729
2733
|
type IdentityResource = Static<typeof identityResourceSchema>;
|
|
2730
2734
|
//#endregion
|
|
2731
2735
|
//#region ../../src/api/users/schemas/loginSchema.d.ts
|
|
2732
|
-
declare const loginSchema:
|
|
2733
|
-
username:
|
|
2734
|
-
password:
|
|
2736
|
+
declare const loginSchema: alepha23.TObject<{
|
|
2737
|
+
username: alepha23.TString;
|
|
2738
|
+
password: alepha23.TString;
|
|
2735
2739
|
}>;
|
|
2736
2740
|
type LoginInput = Static<typeof loginSchema>;
|
|
2737
2741
|
//#endregion
|
|
2738
2742
|
//#region ../../src/api/users/schemas/registerSchema.d.ts
|
|
2739
|
-
declare const registerSchema:
|
|
2740
|
-
username:
|
|
2741
|
-
email:
|
|
2742
|
-
password:
|
|
2743
|
-
confirmPassword:
|
|
2744
|
-
firstName:
|
|
2745
|
-
lastName:
|
|
2743
|
+
declare const registerSchema: alepha23.TObject<{
|
|
2744
|
+
username: alepha23.TString;
|
|
2745
|
+
email: alepha23.TString;
|
|
2746
|
+
password: alepha23.TString;
|
|
2747
|
+
confirmPassword: alepha23.TString;
|
|
2748
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2749
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2746
2750
|
}>;
|
|
2747
2751
|
type RegisterInput = Static<typeof registerSchema>;
|
|
2748
2752
|
//#endregion
|
|
2749
2753
|
//#region ../../src/api/users/schemas/resetPasswordSchema.d.ts
|
|
2750
|
-
declare const resetPasswordRequestSchema:
|
|
2751
|
-
email:
|
|
2754
|
+
declare const resetPasswordRequestSchema: alepha23.TObject<{
|
|
2755
|
+
email: alepha23.TString;
|
|
2752
2756
|
}>;
|
|
2753
|
-
declare const resetPasswordSchema:
|
|
2754
|
-
token:
|
|
2755
|
-
password:
|
|
2756
|
-
confirmPassword:
|
|
2757
|
+
declare const resetPasswordSchema: alepha23.TObject<{
|
|
2758
|
+
token: alepha23.TString;
|
|
2759
|
+
password: alepha23.TString;
|
|
2760
|
+
confirmPassword: alepha23.TString;
|
|
2757
2761
|
}>;
|
|
2758
2762
|
type ResetPasswordRequest = Static<typeof resetPasswordRequestSchema>;
|
|
2759
2763
|
type ResetPasswordInput = Static<typeof resetPasswordSchema>;
|
|
2760
2764
|
//#endregion
|
|
2761
2765
|
//#region ../../src/api/users/schemas/sessionResourceSchema.d.ts
|
|
2762
|
-
declare const sessionResourceSchema:
|
|
2763
|
-
id:
|
|
2764
|
-
version:
|
|
2765
|
-
createdAt:
|
|
2766
|
-
updatedAt:
|
|
2767
|
-
refreshToken:
|
|
2768
|
-
userId:
|
|
2769
|
-
expiresAt:
|
|
2770
|
-
ip:
|
|
2771
|
-
userAgent:
|
|
2772
|
-
os:
|
|
2773
|
-
browser:
|
|
2774
|
-
device:
|
|
2766
|
+
declare const sessionResourceSchema: alepha23.TObject<{
|
|
2767
|
+
id: alepha23.TString;
|
|
2768
|
+
version: alepha23.TNumber;
|
|
2769
|
+
createdAt: alepha23.TString;
|
|
2770
|
+
updatedAt: alepha23.TString;
|
|
2771
|
+
refreshToken: alepha23.TString;
|
|
2772
|
+
userId: alepha23.TString;
|
|
2773
|
+
expiresAt: alepha23.TString;
|
|
2774
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
2775
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
2776
|
+
os: alepha23.TString;
|
|
2777
|
+
browser: alepha23.TString;
|
|
2778
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2775
2779
|
}>>;
|
|
2776
2780
|
}>;
|
|
2777
2781
|
type SessionResource = Static<typeof sessionResourceSchema>;
|
|
2778
2782
|
//#endregion
|
|
2779
2783
|
//#region ../../src/api/users/schemas/userRealmConfigSchema.d.ts
|
|
2780
|
-
declare const userRealmConfigSchema:
|
|
2781
|
-
settings:
|
|
2782
|
-
displayName:
|
|
2783
|
-
description:
|
|
2784
|
-
logoUrl:
|
|
2785
|
-
registrationAllowed:
|
|
2786
|
-
emailEnabled:
|
|
2787
|
-
emailRequired:
|
|
2788
|
-
usernameEnabled:
|
|
2789
|
-
usernameRequired:
|
|
2790
|
-
phoneEnabled:
|
|
2791
|
-
phoneRequired:
|
|
2792
|
-
verifyEmailRequired:
|
|
2793
|
-
verifyPhoneRequired:
|
|
2794
|
-
firstNameLastNameEnabled:
|
|
2795
|
-
firstNameLastNameRequired:
|
|
2796
|
-
resetPasswordAllowed:
|
|
2797
|
-
passwordPolicy:
|
|
2798
|
-
minLength:
|
|
2799
|
-
requireUppercase:
|
|
2800
|
-
requireLowercase:
|
|
2801
|
-
requireNumbers:
|
|
2802
|
-
requireSpecialCharacters:
|
|
2784
|
+
declare const userRealmConfigSchema: alepha23.TObject<{
|
|
2785
|
+
settings: alepha23.TObject<{
|
|
2786
|
+
displayName: alepha23.TOptional<alepha23.TString>;
|
|
2787
|
+
description: alepha23.TOptional<alepha23.TString>;
|
|
2788
|
+
logoUrl: alepha23.TOptional<alepha23.TString>;
|
|
2789
|
+
registrationAllowed: alepha23.TBoolean;
|
|
2790
|
+
emailEnabled: alepha23.TBoolean;
|
|
2791
|
+
emailRequired: alepha23.TBoolean;
|
|
2792
|
+
usernameEnabled: alepha23.TBoolean;
|
|
2793
|
+
usernameRequired: alepha23.TBoolean;
|
|
2794
|
+
phoneEnabled: alepha23.TBoolean;
|
|
2795
|
+
phoneRequired: alepha23.TBoolean;
|
|
2796
|
+
verifyEmailRequired: alepha23.TBoolean;
|
|
2797
|
+
verifyPhoneRequired: alepha23.TBoolean;
|
|
2798
|
+
firstNameLastNameEnabled: alepha23.TBoolean;
|
|
2799
|
+
firstNameLastNameRequired: alepha23.TBoolean;
|
|
2800
|
+
resetPasswordAllowed: alepha23.TBoolean;
|
|
2801
|
+
passwordPolicy: alepha23.TObject<{
|
|
2802
|
+
minLength: alepha23.TInteger;
|
|
2803
|
+
requireUppercase: alepha23.TBoolean;
|
|
2804
|
+
requireLowercase: alepha23.TBoolean;
|
|
2805
|
+
requireNumbers: alepha23.TBoolean;
|
|
2806
|
+
requireSpecialCharacters: alepha23.TBoolean;
|
|
2803
2807
|
}>;
|
|
2804
2808
|
}>;
|
|
2805
|
-
realmName:
|
|
2806
|
-
authenticationMethods:
|
|
2807
|
-
name:
|
|
2808
|
-
type:
|
|
2809
|
+
realmName: alepha23.TString;
|
|
2810
|
+
authenticationMethods: alepha23.TArray<alepha23.TObject<{
|
|
2811
|
+
name: alepha23.TString;
|
|
2812
|
+
type: alepha23.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
2809
2813
|
}>>;
|
|
2810
2814
|
}>;
|
|
2811
2815
|
type UserRealmConfig = Static<typeof userRealmConfigSchema>;
|
|
2812
2816
|
//#endregion
|
|
2813
2817
|
//#region ../../src/api/users/schemas/userResourceSchema.d.ts
|
|
2814
|
-
declare const userResourceSchema:
|
|
2815
|
-
id: PgAttr<PgAttr<
|
|
2816
|
-
version: PgAttr<PgAttr<
|
|
2817
|
-
createdAt: PgAttr<PgAttr<
|
|
2818
|
-
updatedAt: PgAttr<PgAttr<
|
|
2819
|
-
realm: PgAttr<
|
|
2820
|
-
username:
|
|
2821
|
-
email:
|
|
2822
|
-
phoneNumber:
|
|
2823
|
-
roles: PgAttr<
|
|
2824
|
-
firstName:
|
|
2825
|
-
lastName:
|
|
2826
|
-
picture:
|
|
2827
|
-
enabled: PgAttr<
|
|
2828
|
-
emailVerified: PgAttr<
|
|
2818
|
+
declare const userResourceSchema: alepha23.TObject<{
|
|
2819
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2820
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2821
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2822
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2823
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2824
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2825
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2826
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2827
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2828
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2829
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2830
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2831
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2832
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2829
2833
|
}>;
|
|
2830
2834
|
type UserResource = Static<typeof userResourceSchema>;
|
|
2831
2835
|
//#endregion
|
|
@@ -2835,50 +2839,50 @@ declare class SessionService {
|
|
|
2835
2839
|
protected readonly fsp: FileSystemProvider;
|
|
2836
2840
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
2837
2841
|
protected readonly cryptoProvider: CryptoProvider;
|
|
2838
|
-
protected readonly log:
|
|
2842
|
+
protected readonly log: alepha_logger1.Logger;
|
|
2839
2843
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
2840
2844
|
protected readonly fileController: alepha_server_links0.HttpVirtualClient<FileController>;
|
|
2841
|
-
users(userRealmName?: string): Repository$1<
|
|
2842
|
-
id: PgAttr<PgAttr<
|
|
2843
|
-
version: PgAttr<PgAttr<
|
|
2844
|
-
createdAt: PgAttr<PgAttr<
|
|
2845
|
-
updatedAt: PgAttr<PgAttr<
|
|
2846
|
-
realm: PgAttr<
|
|
2847
|
-
username:
|
|
2848
|
-
email:
|
|
2849
|
-
phoneNumber:
|
|
2850
|
-
roles: PgAttr<
|
|
2851
|
-
firstName:
|
|
2852
|
-
lastName:
|
|
2853
|
-
picture:
|
|
2854
|
-
enabled: PgAttr<
|
|
2855
|
-
emailVerified: PgAttr<
|
|
2845
|
+
users(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2846
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2847
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2848
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2849
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2850
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2851
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2852
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2853
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2854
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2855
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2856
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2857
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2858
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2859
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2856
2860
|
}>>;
|
|
2857
|
-
sessions(userRealmName?: string): Repository$1<
|
|
2858
|
-
id: PgAttr<PgAttr<
|
|
2859
|
-
version: PgAttr<PgAttr<
|
|
2860
|
-
createdAt: PgAttr<PgAttr<
|
|
2861
|
-
updatedAt: PgAttr<PgAttr<
|
|
2862
|
-
refreshToken:
|
|
2863
|
-
userId: PgAttr<
|
|
2864
|
-
expiresAt:
|
|
2865
|
-
ip:
|
|
2866
|
-
userAgent:
|
|
2867
|
-
os:
|
|
2868
|
-
browser:
|
|
2869
|
-
device:
|
|
2861
|
+
sessions(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2862
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2863
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2864
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2865
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2866
|
+
refreshToken: alepha23.TString;
|
|
2867
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2868
|
+
expiresAt: alepha23.TString;
|
|
2869
|
+
ip: alepha23.TOptional<alepha23.TString>;
|
|
2870
|
+
userAgent: alepha23.TOptional<alepha23.TObject<{
|
|
2871
|
+
os: alepha23.TString;
|
|
2872
|
+
browser: alepha23.TString;
|
|
2873
|
+
device: alepha23.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
2870
2874
|
}>>;
|
|
2871
2875
|
}>>;
|
|
2872
|
-
identities(userRealmName?: string): Repository$1<
|
|
2873
|
-
id: PgAttr<PgAttr<
|
|
2874
|
-
version: PgAttr<PgAttr<
|
|
2875
|
-
createdAt: PgAttr<PgAttr<
|
|
2876
|
-
updatedAt: PgAttr<PgAttr<
|
|
2877
|
-
userId: PgAttr<
|
|
2878
|
-
password:
|
|
2879
|
-
provider:
|
|
2880
|
-
providerUserId:
|
|
2881
|
-
providerData:
|
|
2876
|
+
identities(userRealmName?: string): Repository$1<alepha23.TObject<{
|
|
2877
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2878
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2879
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2880
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2881
|
+
userId: PgAttr<alepha23.TString, typeof PG_REF>;
|
|
2882
|
+
password: alepha23.TOptional<alepha23.TString>;
|
|
2883
|
+
provider: alepha23.TString;
|
|
2884
|
+
providerUserId: alepha23.TOptional<alepha23.TString>;
|
|
2885
|
+
providerData: alepha23.TOptional<alepha23.TRecord<string, alepha23.TAny>>;
|
|
2882
2886
|
}>>;
|
|
2883
2887
|
/**
|
|
2884
2888
|
* Random delay to prevent timing attacks (50-200ms)
|
|
@@ -2894,36 +2898,36 @@ declare class SessionService {
|
|
|
2894
2898
|
sessionId: string;
|
|
2895
2899
|
}>;
|
|
2896
2900
|
refreshSession(refreshToken: string, userRealmName?: string): Promise<{
|
|
2897
|
-
user: PgStatic<
|
|
2898
|
-
id: PgAttr<PgAttr<
|
|
2899
|
-
version: PgAttr<PgAttr<
|
|
2900
|
-
createdAt: PgAttr<PgAttr<
|
|
2901
|
-
updatedAt: PgAttr<PgAttr<
|
|
2902
|
-
realm: PgAttr<
|
|
2903
|
-
username:
|
|
2904
|
-
email:
|
|
2905
|
-
phoneNumber:
|
|
2906
|
-
roles: PgAttr<
|
|
2907
|
-
firstName:
|
|
2908
|
-
lastName:
|
|
2909
|
-
picture:
|
|
2910
|
-
enabled: PgAttr<
|
|
2911
|
-
emailVerified: PgAttr<
|
|
2912
|
-
}>, PgRelationMap<
|
|
2913
|
-
id: PgAttr<PgAttr<
|
|
2914
|
-
version: PgAttr<PgAttr<
|
|
2915
|
-
createdAt: PgAttr<PgAttr<
|
|
2916
|
-
updatedAt: PgAttr<PgAttr<
|
|
2917
|
-
realm: PgAttr<
|
|
2918
|
-
username:
|
|
2919
|
-
email:
|
|
2920
|
-
phoneNumber:
|
|
2921
|
-
roles: PgAttr<
|
|
2922
|
-
firstName:
|
|
2923
|
-
lastName:
|
|
2924
|
-
picture:
|
|
2925
|
-
enabled: PgAttr<
|
|
2926
|
-
emailVerified: PgAttr<
|
|
2901
|
+
user: PgStatic<alepha23.TObject<{
|
|
2902
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2903
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2904
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2905
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2906
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2907
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2908
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2909
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2910
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2911
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2912
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2913
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2914
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2915
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2916
|
+
}>, PgRelationMap<alepha23.TObject<{
|
|
2917
|
+
id: PgAttr<PgAttr<alepha23.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
2918
|
+
version: PgAttr<PgAttr<alepha23.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
2919
|
+
createdAt: PgAttr<PgAttr<alepha23.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
2920
|
+
updatedAt: PgAttr<PgAttr<alepha23.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
2921
|
+
realm: PgAttr<alepha23.TString, typeof PG_DEFAULT>;
|
|
2922
|
+
username: alepha23.TOptional<alepha23.TString>;
|
|
2923
|
+
email: alepha23.TOptional<alepha23.TString>;
|
|
2924
|
+
phoneNumber: alepha23.TOptional<alepha23.TString>;
|
|
2925
|
+
roles: PgAttr<alepha23.TArray<alepha23.TString>, typeof PG_DEFAULT>;
|
|
2926
|
+
firstName: alepha23.TOptional<alepha23.TString>;
|
|
2927
|
+
lastName: alepha23.TOptional<alepha23.TString>;
|
|
2928
|
+
picture: alepha23.TOptional<alepha23.TString>;
|
|
2929
|
+
enabled: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2930
|
+
emailVerified: PgAttr<alepha23.TBoolean, typeof PG_DEFAULT>;
|
|
2927
2931
|
}>>>;
|
|
2928
2932
|
expiresIn: number;
|
|
2929
2933
|
sessionId: string;
|
|
@@ -2985,7 +2989,7 @@ declare class SessionService {
|
|
|
2985
2989
|
*
|
|
2986
2990
|
* @module alepha.api.users
|
|
2987
2991
|
*/
|
|
2988
|
-
declare const AlephaApiUsers:
|
|
2992
|
+
declare const AlephaApiUsers: alepha23.Service<alepha23.Module>;
|
|
2989
2993
|
//#endregion
|
|
2990
2994
|
export { $userRealm, AlephaApiUsers, CompletePasswordResetRequest, CompleteRegistrationRequest, CreateUser, CredentialService, DEFAULT_USER_REALM_NAME, IdentityController, IdentityEntity, IdentityQuery, IdentityResource, IdentityService, LoginInput, PasswordResetIntentResponse, RealmAuthSettings, RegisterInput, RegistrationIntentResponse, RegistrationService, ResetPasswordInput, ResetPasswordRequest, SessionController, SessionCrudService, SessionEntity, SessionQuery, SessionResource, SessionService, UpdateUser, UserController, UserEntity, UserQuery, UserRealm, UserRealmConfig, UserRealmController, UserRealmOptions, UserRealmPrimitive, UserRealmProvider, UserRealmRepositories, UserResource, UserService, completePasswordResetRequestSchema, completeRegistrationRequestSchema, createUserSchema, identities, identityQuerySchema, identityResourceSchema, loginSchema, passwordResetIntentResponseSchema, realmAuthSettingsAtom, registerSchema, registrationIntentResponseSchema, resetPasswordRequestSchema, resetPasswordSchema, sessionQuerySchema, sessionResourceSchema, sessions, updateUserSchema, userQuerySchema, userRealmConfigSchema, userResourceSchema, users };
|
|
2991
2995
|
//# sourceMappingURL=index.d.ts.map
|