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