@alepha/ui 0.13.3 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/{AdminFiles-BjofP3OC.js → AdminFiles-8CC9mVsc.js} +3 -3
- package/dist/admin/{AdminFiles-BjofP3OC.js.map → AdminFiles-8CC9mVsc.js.map} +1 -1
- package/dist/admin/AdminFiles-BRLMP_7y.js +3 -0
- package/dist/admin/{AdminLayout-JakF7ESb.js → AdminLayout-Cm-Y4YTQ.js} +33 -25
- package/dist/admin/AdminLayout-Cm-Y4YTQ.js.map +1 -0
- package/dist/admin/AdminLayout-D5M9kSiV.js +3 -0
- package/dist/admin/AdminNotifications-DxBKi2RO.js +3 -0
- package/dist/admin/{AdminNotifications-BPrxALdS.js → AdminNotifications-d-gw5Uie.js} +2 -2
- package/dist/admin/{AdminNotifications-BPrxALdS.js.map → AdminNotifications-d-gw5Uie.js.map} +1 -1
- package/dist/admin/{AdminSessions-CMmBtbSw.js → AdminSessions-CpVusqmd.js} +3 -3
- package/dist/admin/{AdminSessions-CMmBtbSw.js.map → AdminSessions-CpVusqmd.js.map} +1 -1
- package/dist/admin/AdminSessions-DA285-5Q.js +3 -0
- package/dist/admin/{AdminUserCreate-DjiCcAk0.js → AdminUserCreate-CQIrSslj.js} +1 -1
- package/dist/admin/{AdminUserCreate-Coa_yi6m.js → AdminUserCreate-DH7u_yJj.js} +2 -2
- package/dist/admin/{AdminUserCreate-Coa_yi6m.js.map → AdminUserCreate-DH7u_yJj.js.map} +1 -1
- package/dist/admin/{AdminUserDetails-BCFwOm9w.js → AdminUserDetails-DVmFCDsU.js} +4 -4
- package/dist/admin/{AdminUserDetails-BCFwOm9w.js.map → AdminUserDetails-DVmFCDsU.js.map} +1 -1
- package/dist/admin/{AdminUserDetails-C5yeJNa3.js → AdminUserDetails-T3nkXSdz.js} +1 -1
- package/dist/admin/{AdminUserLayout-B8ga5QvP.js → AdminUserLayout-DdtZGX8n.js} +1 -1
- package/dist/admin/{AdminUserLayout-CR2OqV9Z.js → AdminUserLayout-gpOyn0Y7.js} +2 -2
- package/dist/admin/{AdminUserLayout-CR2OqV9Z.js.map → AdminUserLayout-gpOyn0Y7.js.map} +1 -1
- package/dist/admin/AdminUserSessions-CWYzjB3D.js +3 -0
- package/dist/admin/{AdminUserSessions-Bcf6-rjG.js → AdminUserSessions-CdVwoM-h.js} +3 -3
- package/dist/admin/{AdminUserSessions-Bcf6-rjG.js.map → AdminUserSessions-CdVwoM-h.js.map} +1 -1
- package/dist/admin/{AdminUserSettings-DRYVdW6S.js → AdminUserSettings-S7gZvvjO.js} +2 -2
- package/dist/admin/{AdminUserSettings-DRYVdW6S.js.map → AdminUserSettings-S7gZvvjO.js.map} +1 -1
- package/dist/admin/AdminUserSettings-jCzVYw_2.js +3 -0
- package/dist/admin/{AdminUsers-IN_2yHKt.js → AdminUsers-9qEzxqAL.js} +2 -2
- package/dist/admin/{AdminUsers-IN_2yHKt.js.map → AdminUsers-9qEzxqAL.js.map} +1 -1
- package/dist/admin/AdminUsers-BcSUxV01.js +3 -0
- package/dist/admin/index.d.ts +1013 -1007
- package/dist/admin/index.js +25 -23
- package/dist/admin/index.js.map +1 -1
- package/dist/auth/{Login-kBfaRgKG.js → Login-AlVPPqQp.js} +2 -2
- package/dist/auth/{Login-kBfaRgKG.js.map → Login-AlVPPqQp.js.map} +1 -1
- package/dist/auth/Login-otdWVvVU.js +4 -0
- package/dist/auth/index.d.ts +413 -413
- package/dist/auth/index.js +3 -2
- package/dist/auth/index.js.map +1 -1
- package/dist/core/index.d.ts +100 -100
- package/dist/core/index.js +8 -16
- package/dist/core/index.js.map +1 -1
- package/package.json +5 -4
- package/src/admin/AdminSidebar.ts +31 -0
- package/src/admin/components/AdminLayout.tsx +5 -26
- package/src/admin/index.ts +4 -1
- package/src/auth/components/Login.tsx +1 -1
- package/src/auth/components/buttons/UserButton.tsx +7 -1
- package/src/core/components/buttons/ActionButton.tsx +1 -0
- package/src/core/components/layout/Sidebar.tsx +0 -2
- package/src/core/hooks/useTheme.ts +2 -2
- package/src/core/providers/ThemeProvider.ts +11 -8
- package/src/core/themes/midnight.ts +1 -7
- package/styles.css +84 -0
- package/dist/admin/AdminFiles-DldZB7oo.js +0 -3
- package/dist/admin/AdminLayout-JakF7ESb.js.map +0 -1
- package/dist/admin/AdminLayout-qNsIyl30.js +0 -3
- package/dist/admin/AdminNotifications-DV-35Fi3.js +0 -3
- package/dist/admin/AdminSessions-Df2VYzlE.js +0 -3
- package/dist/admin/AdminUserSessions-A_5KkqTY.js +0 -3
- package/dist/admin/AdminUserSettings-DAsAhFjX.js +0 -3
- package/dist/admin/AdminUsers-Dd9a5UqO.js +0 -3
- package/dist/auth/Login-DDsyCNAA.js +0 -4
package/dist/admin/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { SidebarNode } from "@alepha/ui";
|
|
1
2
|
import { AuthRouter } from "@alepha/ui/auth";
|
|
2
|
-
import * as
|
|
3
|
+
import * as alepha1572 from "alepha";
|
|
3
4
|
import { Alepha, AlephaError, Async, FileLike, InstantiableClass, LogLevel, LoggerInterface, Page, Page as Page$1, PageQuery, Primitive, Service, Static, StaticEncode, StreamLike, TArray, TFile, TNull, TObject, TOptional, TRecord, TSchema, TStream, TString, TUnion, TVoid } from "alepha";
|
|
4
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
import * as react0 from "react";
|
|
6
6
|
import { FC, ReactNode } from "react";
|
|
7
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
8
|
import { IncomingMessage, Server, ServerResponse } from "node:http";
|
|
8
9
|
import { Readable } from "node:stream";
|
|
9
10
|
import { ReadableStream } from "node:stream/web";
|
|
@@ -24,28 +25,28 @@ import { PgTransactionConfig } from "drizzle-orm/pg-core/session";
|
|
|
24
25
|
import * as DrizzleKit from "drizzle-kit/api";
|
|
25
26
|
|
|
26
27
|
//#region ../alepha/src/security/schemas/userAccountInfoSchema.d.ts
|
|
27
|
-
declare const userAccountInfoSchema:
|
|
28
|
-
id:
|
|
29
|
-
name:
|
|
30
|
-
email:
|
|
31
|
-
username:
|
|
32
|
-
picture:
|
|
33
|
-
sessionId:
|
|
34
|
-
organizations:
|
|
35
|
-
roles:
|
|
28
|
+
declare const userAccountInfoSchema: alepha1572.TObject<{
|
|
29
|
+
id: alepha1572.TString;
|
|
30
|
+
name: alepha1572.TOptional<alepha1572.TString>;
|
|
31
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
32
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
33
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
34
|
+
sessionId: alepha1572.TOptional<alepha1572.TString>;
|
|
35
|
+
organizations: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
36
|
+
roles: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
36
37
|
}>;
|
|
37
38
|
type UserAccount = Static<typeof userAccountInfoSchema>;
|
|
38
39
|
//#endregion
|
|
39
40
|
//#region ../alepha/src/server/schemas/errorSchema.d.ts
|
|
40
|
-
declare const errorSchema:
|
|
41
|
-
error:
|
|
42
|
-
status:
|
|
43
|
-
message:
|
|
44
|
-
details:
|
|
45
|
-
requestId:
|
|
46
|
-
cause:
|
|
47
|
-
name:
|
|
48
|
-
message:
|
|
41
|
+
declare const errorSchema: alepha1572.TObject<{
|
|
42
|
+
error: alepha1572.TString;
|
|
43
|
+
status: alepha1572.TInteger;
|
|
44
|
+
message: alepha1572.TString;
|
|
45
|
+
details: alepha1572.TOptional<alepha1572.TString>;
|
|
46
|
+
requestId: alepha1572.TOptional<alepha1572.TString>;
|
|
47
|
+
cause: alepha1572.TOptional<alepha1572.TObject<{
|
|
48
|
+
name: alepha1572.TString;
|
|
49
|
+
message: alepha1572.TString;
|
|
49
50
|
}>>;
|
|
50
51
|
}>;
|
|
51
52
|
type ErrorSchema = Static<typeof errorSchema>;
|
|
@@ -284,15 +285,15 @@ interface WebRequestEvent {
|
|
|
284
285
|
}
|
|
285
286
|
//#endregion
|
|
286
287
|
//#region ../alepha/src/logger/schemas/logEntrySchema.d.ts
|
|
287
|
-
declare const logEntrySchema:
|
|
288
|
-
level:
|
|
289
|
-
message:
|
|
290
|
-
service:
|
|
291
|
-
module:
|
|
292
|
-
context:
|
|
293
|
-
app:
|
|
294
|
-
data:
|
|
295
|
-
timestamp:
|
|
288
|
+
declare const logEntrySchema: alepha1572.TObject<{
|
|
289
|
+
level: alepha1572.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
290
|
+
message: alepha1572.TString;
|
|
291
|
+
service: alepha1572.TString;
|
|
292
|
+
module: alepha1572.TString;
|
|
293
|
+
context: alepha1572.TOptional<alepha1572.TString>;
|
|
294
|
+
app: alepha1572.TOptional<alepha1572.TString>;
|
|
295
|
+
data: alepha1572.TOptional<alepha1572.TAny>;
|
|
296
|
+
timestamp: alepha1572.TNumber;
|
|
296
297
|
}>;
|
|
297
298
|
type LogEntry = Static<typeof logEntrySchema>;
|
|
298
299
|
//#endregion
|
|
@@ -307,8 +308,8 @@ declare class DateTimeProvider {
|
|
|
307
308
|
protected readonly timeouts: Timeout[];
|
|
308
309
|
protected readonly intervals: Interval[];
|
|
309
310
|
constructor();
|
|
310
|
-
protected readonly onStart:
|
|
311
|
-
protected readonly onStop:
|
|
311
|
+
protected readonly onStart: alepha1572.HookPrimitive<"start">;
|
|
312
|
+
protected readonly onStop: alepha1572.HookPrimitive<"stop">;
|
|
312
313
|
setLocale(locale: string): void;
|
|
313
314
|
isDateTime(value: unknown): value is DateTime;
|
|
314
315
|
/**
|
|
@@ -440,7 +441,7 @@ declare class Logger implements LoggerInterface {
|
|
|
440
441
|
}
|
|
441
442
|
//#endregion
|
|
442
443
|
//#region ../alepha/src/logger/index.d.ts
|
|
443
|
-
declare const envSchema$9:
|
|
444
|
+
declare const envSchema$9: alepha1572.TObject<{
|
|
444
445
|
/**
|
|
445
446
|
* Default log level for the application.
|
|
446
447
|
*
|
|
@@ -457,14 +458,14 @@ declare const envSchema$9: alepha1636.TObject<{
|
|
|
457
458
|
* LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
|
|
458
459
|
* LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
|
|
459
460
|
*/
|
|
460
|
-
LOG_LEVEL:
|
|
461
|
+
LOG_LEVEL: alepha1572.TOptional<alepha1572.TString>;
|
|
461
462
|
/**
|
|
462
463
|
* Built-in log formats.
|
|
463
464
|
* - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
|
|
464
465
|
* - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
|
|
465
466
|
* - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
|
|
466
467
|
*/
|
|
467
|
-
LOG_FORMAT:
|
|
468
|
+
LOG_FORMAT: alepha1572.TOptional<alepha1572.TUnsafe<"json" | "pretty" | "raw">>;
|
|
468
469
|
}>;
|
|
469
470
|
declare module "alepha" {
|
|
470
471
|
interface Env extends Partial<Static<typeof envSchema$9>> {}
|
|
@@ -501,8 +502,8 @@ declare class ServerTimingProvider {
|
|
|
501
502
|
prefix: string;
|
|
502
503
|
disabled: boolean;
|
|
503
504
|
};
|
|
504
|
-
readonly onRequest:
|
|
505
|
-
readonly onResponse:
|
|
505
|
+
readonly onRequest: alepha1572.HookPrimitive<"server:onRequest">;
|
|
506
|
+
readonly onResponse: alepha1572.HookPrimitive<"server:onResponse">;
|
|
506
507
|
protected get handlerName(): string;
|
|
507
508
|
beginTiming(name: string): void;
|
|
508
509
|
endTiming(name: string): void;
|
|
@@ -566,11 +567,11 @@ declare class ServerProvider {
|
|
|
566
567
|
/**
|
|
567
568
|
* When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
|
|
568
569
|
*/
|
|
569
|
-
protected readonly onNodeRequest:
|
|
570
|
+
protected readonly onNodeRequest: alepha1572.HookPrimitive<"node:request">;
|
|
570
571
|
/**
|
|
571
572
|
* When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
|
|
572
573
|
*/
|
|
573
|
-
protected readonly onWebRequest:
|
|
574
|
+
protected readonly onWebRequest: alepha1572.HookPrimitive<"web:request">;
|
|
574
575
|
/**
|
|
575
576
|
* Handle Node.js HTTP request event.
|
|
576
577
|
*
|
|
@@ -908,26 +909,26 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
|
|
|
908
909
|
interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
|
|
909
910
|
//#endregion
|
|
910
911
|
//#region ../alepha/src/server/schemas/okSchema.d.ts
|
|
911
|
-
declare const okSchema:
|
|
912
|
-
ok:
|
|
913
|
-
id:
|
|
914
|
-
count:
|
|
912
|
+
declare const okSchema: alepha1572.TObject<{
|
|
913
|
+
ok: alepha1572.TBoolean;
|
|
914
|
+
id: alepha1572.TOptional<alepha1572.TUnion<[alepha1572.TString, alepha1572.TInteger]>>;
|
|
915
|
+
count: alepha1572.TOptional<alepha1572.TNumber>;
|
|
915
916
|
}>;
|
|
916
917
|
type Ok = Static<typeof okSchema>;
|
|
917
918
|
//#endregion
|
|
918
919
|
//#region ../alepha/src/server/providers/BunHttpServerProvider.d.ts
|
|
919
|
-
declare const envSchema$8:
|
|
920
|
-
SERVER_PORT:
|
|
921
|
-
SERVER_HOST:
|
|
920
|
+
declare const envSchema$8: alepha1572.TObject<{
|
|
921
|
+
SERVER_PORT: alepha1572.TInteger;
|
|
922
|
+
SERVER_HOST: alepha1572.TString;
|
|
922
923
|
}>;
|
|
923
924
|
declare module "alepha" {
|
|
924
925
|
interface Env extends Partial<Static<typeof envSchema$8>> {}
|
|
925
926
|
}
|
|
926
927
|
//#endregion
|
|
927
928
|
//#region ../alepha/src/server/providers/NodeHttpServerProvider.d.ts
|
|
928
|
-
declare const envSchema$7:
|
|
929
|
-
SERVER_PORT:
|
|
930
|
-
SERVER_HOST:
|
|
929
|
+
declare const envSchema$7: alepha1572.TObject<{
|
|
930
|
+
SERVER_PORT: alepha1572.TInteger;
|
|
931
|
+
SERVER_HOST: alepha1572.TString;
|
|
931
932
|
}>;
|
|
932
933
|
declare module "alepha" {
|
|
933
934
|
interface Env extends Partial<Static<typeof envSchema$7>> {}
|
|
@@ -1011,21 +1012,21 @@ interface UserAccountToken extends UserAccount {
|
|
|
1011
1012
|
}
|
|
1012
1013
|
//#endregion
|
|
1013
1014
|
//#region ../alepha/src/security/schemas/roleSchema.d.ts
|
|
1014
|
-
declare const roleSchema:
|
|
1015
|
-
name:
|
|
1016
|
-
description:
|
|
1017
|
-
default:
|
|
1018
|
-
permissions:
|
|
1019
|
-
name:
|
|
1020
|
-
ownership:
|
|
1021
|
-
exclude:
|
|
1015
|
+
declare const roleSchema: alepha1572.TObject<{
|
|
1016
|
+
name: alepha1572.TString;
|
|
1017
|
+
description: alepha1572.TOptional<alepha1572.TString>;
|
|
1018
|
+
default: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
1019
|
+
permissions: alepha1572.TArray<alepha1572.TObject<{
|
|
1020
|
+
name: alepha1572.TString;
|
|
1021
|
+
ownership: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
1022
|
+
exclude: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
1022
1023
|
}>>;
|
|
1023
1024
|
}>;
|
|
1024
1025
|
type Role = Static<typeof roleSchema>;
|
|
1025
1026
|
//#endregion
|
|
1026
1027
|
//#region ../alepha/src/security/providers/SecurityProvider.d.ts
|
|
1027
|
-
declare const envSchema$6:
|
|
1028
|
-
APP_SECRET:
|
|
1028
|
+
declare const envSchema$6: alepha1572.TObject<{
|
|
1029
|
+
APP_SECRET: alepha1572.TString;
|
|
1029
1030
|
}>;
|
|
1030
1031
|
declare module "alepha" {
|
|
1031
1032
|
interface Env extends Partial<Static<typeof envSchema$6>> {}
|
|
@@ -1190,23 +1191,23 @@ declare module "alepha/server" {
|
|
|
1190
1191
|
*/
|
|
1191
1192
|
//#endregion
|
|
1192
1193
|
//#region ../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
1193
|
-
declare const apiLinkSchema:
|
|
1194
|
-
name:
|
|
1195
|
-
group:
|
|
1196
|
-
path:
|
|
1197
|
-
method:
|
|
1198
|
-
requestBodyType:
|
|
1199
|
-
service:
|
|
1194
|
+
declare const apiLinkSchema: alepha1572.TObject<{
|
|
1195
|
+
name: alepha1572.TString;
|
|
1196
|
+
group: alepha1572.TOptional<alepha1572.TString>;
|
|
1197
|
+
path: alepha1572.TString;
|
|
1198
|
+
method: alepha1572.TOptional<alepha1572.TString>;
|
|
1199
|
+
requestBodyType: alepha1572.TOptional<alepha1572.TString>;
|
|
1200
|
+
service: alepha1572.TOptional<alepha1572.TString>;
|
|
1200
1201
|
}>;
|
|
1201
|
-
declare const apiLinksResponseSchema:
|
|
1202
|
-
prefix:
|
|
1203
|
-
links:
|
|
1204
|
-
name:
|
|
1205
|
-
group:
|
|
1206
|
-
path:
|
|
1207
|
-
method:
|
|
1208
|
-
requestBodyType:
|
|
1209
|
-
service:
|
|
1202
|
+
declare const apiLinksResponseSchema: alepha1572.TObject<{
|
|
1203
|
+
prefix: alepha1572.TOptional<alepha1572.TString>;
|
|
1204
|
+
links: alepha1572.TArray<alepha1572.TObject<{
|
|
1205
|
+
name: alepha1572.TString;
|
|
1206
|
+
group: alepha1572.TOptional<alepha1572.TString>;
|
|
1207
|
+
path: alepha1572.TString;
|
|
1208
|
+
method: alepha1572.TOptional<alepha1572.TString>;
|
|
1209
|
+
requestBodyType: alepha1572.TOptional<alepha1572.TString>;
|
|
1210
|
+
service: alepha1572.TOptional<alepha1572.TString>;
|
|
1210
1211
|
}>>;
|
|
1211
1212
|
}>;
|
|
1212
1213
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
@@ -1547,8 +1548,8 @@ declare class Redirection extends Error {
|
|
|
1547
1548
|
}
|
|
1548
1549
|
//#endregion
|
|
1549
1550
|
//#region ../react/src/core/providers/ReactPageProvider.d.ts
|
|
1550
|
-
declare const envSchema$5:
|
|
1551
|
-
REACT_STRICT_MODE:
|
|
1551
|
+
declare const envSchema$5: alepha1572.TObject<{
|
|
1552
|
+
REACT_STRICT_MODE: alepha1572.TBoolean;
|
|
1552
1553
|
}>;
|
|
1553
1554
|
declare module "alepha" {
|
|
1554
1555
|
interface Env extends Partial<Static<typeof envSchema$5>> {}
|
|
@@ -1591,7 +1592,7 @@ declare class ReactPageProvider {
|
|
|
1591
1592
|
}, params?: Record<string, any>): string;
|
|
1592
1593
|
compile(path: string, params?: Record<string, string>): string;
|
|
1593
1594
|
protected renderView(index: number, path: string, view: ReactNode | undefined, page: PageRoute): ReactNode;
|
|
1594
|
-
protected readonly configure:
|
|
1595
|
+
protected readonly configure: alepha1572.HookPrimitive<"configure">;
|
|
1595
1596
|
protected map(pages: Array<PagePrimitive>, target: PagePrimitive): PageRouteEntry;
|
|
1596
1597
|
add(entry: PageRouteEntry): void;
|
|
1597
1598
|
protected createMatch(page: PageRoute): string;
|
|
@@ -1918,14 +1919,14 @@ declare class ReactBrowserRouterProvider extends RouterProvider<BrowserRoute> {
|
|
|
1918
1919
|
protected readonly alepha: Alepha;
|
|
1919
1920
|
protected readonly pageApi: ReactPageProvider;
|
|
1920
1921
|
add(entry: PageRouteEntry): void;
|
|
1921
|
-
protected readonly configure:
|
|
1922
|
+
protected readonly configure: alepha1572.HookPrimitive<"configure">;
|
|
1922
1923
|
transition(url: URL, previous?: PreviousLayerData[], meta?: {}): Promise<string | void>;
|
|
1923
1924
|
root(state: ReactRouterState): ReactNode;
|
|
1924
1925
|
}
|
|
1925
1926
|
//#endregion
|
|
1926
1927
|
//#region ../react/src/core/providers/ReactBrowserProvider.d.ts
|
|
1927
|
-
declare const envSchema$4:
|
|
1928
|
-
REACT_ROOT_ID:
|
|
1928
|
+
declare const envSchema$4: alepha1572.TObject<{
|
|
1929
|
+
REACT_ROOT_ID: alepha1572.TString;
|
|
1929
1930
|
}>;
|
|
1930
1931
|
declare module "alepha" {
|
|
1931
1932
|
interface Env extends Partial<Static<typeof envSchema$4>> {}
|
|
@@ -1933,8 +1934,8 @@ declare module "alepha" {
|
|
|
1933
1934
|
/**
|
|
1934
1935
|
* React browser renderer configuration atom
|
|
1935
1936
|
*/
|
|
1936
|
-
declare const reactBrowserOptions:
|
|
1937
|
-
scrollRestoration:
|
|
1937
|
+
declare const reactBrowserOptions: alepha1572.Atom<alepha1572.TObject<{
|
|
1938
|
+
scrollRestoration: alepha1572.TUnsafe<"top" | "manual">;
|
|
1938
1939
|
}>, "alepha.react.browser.options">;
|
|
1939
1940
|
type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
|
|
1940
1941
|
declare module "alepha" {
|
|
@@ -1982,8 +1983,8 @@ declare class ReactBrowserProvider {
|
|
|
1982
1983
|
* Get embedded layers from the server.
|
|
1983
1984
|
*/
|
|
1984
1985
|
protected getHydrationState(): ReactHydrationState | undefined;
|
|
1985
|
-
protected readonly onTransitionEnd:
|
|
1986
|
-
readonly ready:
|
|
1986
|
+
protected readonly onTransitionEnd: alepha1572.HookPrimitive<"react:transition:end">;
|
|
1987
|
+
readonly ready: alepha1572.HookPrimitive<"ready">;
|
|
1987
1988
|
}
|
|
1988
1989
|
interface RouterGoOptions {
|
|
1989
1990
|
replace?: boolean;
|
|
@@ -2545,10 +2546,10 @@ declare class FileDetector {
|
|
|
2545
2546
|
}
|
|
2546
2547
|
//#endregion
|
|
2547
2548
|
//#region ../react/src/core/providers/ReactServerProvider.d.ts
|
|
2548
|
-
declare const envSchema$3:
|
|
2549
|
-
REACT_SSR_ENABLED:
|
|
2550
|
-
REACT_ROOT_ID:
|
|
2551
|
-
REACT_SERVER_TEMPLATE:
|
|
2549
|
+
declare const envSchema$3: alepha1572.TObject<{
|
|
2550
|
+
REACT_SSR_ENABLED: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
2551
|
+
REACT_ROOT_ID: alepha1572.TString;
|
|
2552
|
+
REACT_SERVER_TEMPLATE: alepha1572.TOptional<alepha1572.TString>;
|
|
2552
2553
|
}>;
|
|
2553
2554
|
declare module "alepha" {
|
|
2554
2555
|
interface Env extends Partial<Static<typeof envSchema$3>> {}
|
|
@@ -2559,11 +2560,11 @@ declare module "alepha" {
|
|
|
2559
2560
|
/**
|
|
2560
2561
|
* React server provider configuration atom
|
|
2561
2562
|
*/
|
|
2562
|
-
declare const reactServerOptions:
|
|
2563
|
-
publicDir:
|
|
2564
|
-
staticServer:
|
|
2565
|
-
disabled:
|
|
2566
|
-
path:
|
|
2563
|
+
declare const reactServerOptions: alepha1572.Atom<alepha1572.TObject<{
|
|
2564
|
+
publicDir: alepha1572.TString;
|
|
2565
|
+
staticServer: alepha1572.TObject<{
|
|
2566
|
+
disabled: alepha1572.TBoolean;
|
|
2567
|
+
path: alepha1572.TString;
|
|
2567
2568
|
}>;
|
|
2568
2569
|
}>, "alepha.react.server.options">;
|
|
2569
2570
|
type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
|
|
@@ -2677,16 +2678,16 @@ declare module "alepha" {
|
|
|
2677
2678
|
*/
|
|
2678
2679
|
//#endregion
|
|
2679
2680
|
//#region ../alepha/src/server-auth/schemas/tokensSchema.d.ts
|
|
2680
|
-
declare const tokensSchema:
|
|
2681
|
-
provider:
|
|
2682
|
-
access_token:
|
|
2683
|
-
issued_at:
|
|
2684
|
-
expires_in:
|
|
2685
|
-
refresh_token:
|
|
2686
|
-
refresh_token_expires_in:
|
|
2687
|
-
refresh_expires_in:
|
|
2688
|
-
id_token:
|
|
2689
|
-
scope:
|
|
2681
|
+
declare const tokensSchema: alepha1572.TObject<{
|
|
2682
|
+
provider: alepha1572.TString;
|
|
2683
|
+
access_token: alepha1572.TString;
|
|
2684
|
+
issued_at: alepha1572.TNumber;
|
|
2685
|
+
expires_in: alepha1572.TOptional<alepha1572.TNumber>;
|
|
2686
|
+
refresh_token: alepha1572.TOptional<alepha1572.TString>;
|
|
2687
|
+
refresh_token_expires_in: alepha1572.TOptional<alepha1572.TNumber>;
|
|
2688
|
+
refresh_expires_in: alepha1572.TOptional<alepha1572.TNumber>;
|
|
2689
|
+
id_token: alepha1572.TOptional<alepha1572.TString>;
|
|
2690
|
+
scope: alepha1572.TOptional<alepha1572.TString>;
|
|
2690
2691
|
}>;
|
|
2691
2692
|
type Tokens = Static<typeof tokensSchema>;
|
|
2692
2693
|
//#endregion
|
|
@@ -2756,8 +2757,8 @@ declare class ReactAuth {
|
|
|
2756
2757
|
protected readonly alepha: Alepha;
|
|
2757
2758
|
protected readonly httpClient: HttpClient;
|
|
2758
2759
|
protected readonly linkProvider: LinkProvider;
|
|
2759
|
-
protected readonly onBeginTransition:
|
|
2760
|
-
protected readonly onFetchRequest:
|
|
2760
|
+
protected readonly onBeginTransition: alepha1572.HookPrimitive<"react:transition:begin">;
|
|
2761
|
+
protected readonly onFetchRequest: alepha1572.HookPrimitive<"client:onRequest">;
|
|
2761
2762
|
/**
|
|
2762
2763
|
* Get the current authenticated user.
|
|
2763
2764
|
*
|
|
@@ -3689,11 +3690,11 @@ declare class DrizzleKitProvider {
|
|
|
3689
3690
|
*/
|
|
3690
3691
|
importDrizzleKit(): typeof DrizzleKit;
|
|
3691
3692
|
}
|
|
3692
|
-
declare const devMigrationsSchema:
|
|
3693
|
-
id:
|
|
3694
|
-
name:
|
|
3695
|
-
snapshot:
|
|
3696
|
-
created_at:
|
|
3693
|
+
declare const devMigrationsSchema: alepha1572.TObject<{
|
|
3694
|
+
id: alepha1572.TNumber;
|
|
3695
|
+
name: alepha1572.TString;
|
|
3696
|
+
snapshot: alepha1572.TString;
|
|
3697
|
+
created_at: alepha1572.TString;
|
|
3697
3698
|
}>;
|
|
3698
3699
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
3699
3700
|
//#endregion
|
|
@@ -3890,7 +3891,7 @@ declare class QueryManager {
|
|
|
3890
3891
|
createPagination<T$1>(entities: T$1[], limit?: number, offset?: number, sort?: Array<{
|
|
3891
3892
|
column: string;
|
|
3892
3893
|
direction: "asc" | "desc";
|
|
3893
|
-
}>):
|
|
3894
|
+
}>): alepha1572.Page<T$1>;
|
|
3894
3895
|
}
|
|
3895
3896
|
interface PgJoin {
|
|
3896
3897
|
table: string;
|
|
@@ -4195,8 +4196,8 @@ interface StatementOptions {
|
|
|
4195
4196
|
}
|
|
4196
4197
|
//#endregion
|
|
4197
4198
|
//#region ../alepha/src/lock/primitives/$lock.d.ts
|
|
4198
|
-
declare const envSchema$2:
|
|
4199
|
-
LOCK_PREFIX_KEY:
|
|
4199
|
+
declare const envSchema$2: alepha1572.TObject<{
|
|
4200
|
+
LOCK_PREFIX_KEY: alepha1572.TString;
|
|
4200
4201
|
}>;
|
|
4201
4202
|
declare module "alepha" {
|
|
4202
4203
|
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
@@ -4206,7 +4207,7 @@ declare module "alepha" {
|
|
|
4206
4207
|
declare module "alepha" {
|
|
4207
4208
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
4208
4209
|
}
|
|
4209
|
-
declare const envSchema$1:
|
|
4210
|
+
declare const envSchema$1: alepha1572.TObject<{
|
|
4210
4211
|
/**
|
|
4211
4212
|
* Main configuration for database connection.
|
|
4212
4213
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -4214,21 +4215,21 @@ declare const envSchema$1: alepha1636.TObject<{
|
|
|
4214
4215
|
* or
|
|
4215
4216
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
4216
4217
|
*/
|
|
4217
|
-
DATABASE_URL:
|
|
4218
|
+
DATABASE_URL: alepha1572.TOptional<alepha1572.TString>;
|
|
4218
4219
|
/**
|
|
4219
4220
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
4220
4221
|
*
|
|
4221
4222
|
* It will monkey patch drizzle tables.
|
|
4222
4223
|
*/
|
|
4223
|
-
POSTGRES_SCHEMA:
|
|
4224
|
+
POSTGRES_SCHEMA: alepha1572.TOptional<alepha1572.TString>;
|
|
4224
4225
|
}>;
|
|
4225
4226
|
//#endregion
|
|
4226
4227
|
//#region ../alepha/src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
4227
4228
|
/**
|
|
4228
4229
|
* Configuration options for the Node.js SQLite database provider.
|
|
4229
4230
|
*/
|
|
4230
|
-
declare const nodeSqliteOptions:
|
|
4231
|
-
path:
|
|
4231
|
+
declare const nodeSqliteOptions: alepha1572.Atom<alepha1572.TObject<{
|
|
4232
|
+
path: alepha1572.TOptional<alepha1572.TString>;
|
|
4232
4233
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
4233
4234
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
4234
4235
|
declare module "alepha" {
|
|
@@ -4535,8 +4536,8 @@ interface BucketFileOptions {
|
|
|
4535
4536
|
/**
|
|
4536
4537
|
* Local file storage configuration atom
|
|
4537
4538
|
*/
|
|
4538
|
-
declare const localFileStorageOptions:
|
|
4539
|
-
storagePath:
|
|
4539
|
+
declare const localFileStorageOptions: alepha1572.Atom<alepha1572.TObject<{
|
|
4540
|
+
storagePath: alepha1572.TString;
|
|
4540
4541
|
}>, "alepha.bucket.local.options">;
|
|
4541
4542
|
type LocalFileStorageProviderOptions = Static<typeof localFileStorageOptions.schema>;
|
|
4542
4543
|
declare module "alepha" {
|
|
@@ -4580,72 +4581,72 @@ declare module "alepha" {
|
|
|
4580
4581
|
*/
|
|
4581
4582
|
//#endregion
|
|
4582
4583
|
//#region ../alepha/src/api-files/entities/files.d.ts
|
|
4583
|
-
declare const files: EntityPrimitive<
|
|
4584
|
-
id: PgAttr<PgAttr<
|
|
4585
|
-
version: PgAttr<PgAttr<
|
|
4586
|
-
createdAt: PgAttr<PgAttr<
|
|
4587
|
-
updatedAt: PgAttr<PgAttr<
|
|
4588
|
-
blobId:
|
|
4589
|
-
creator:
|
|
4590
|
-
creatorRealm:
|
|
4591
|
-
creatorName:
|
|
4592
|
-
bucket:
|
|
4593
|
-
expirationDate:
|
|
4594
|
-
name:
|
|
4595
|
-
size:
|
|
4596
|
-
mimeType:
|
|
4597
|
-
tags:
|
|
4598
|
-
checksum:
|
|
4584
|
+
declare const files: EntityPrimitive<alepha1572.TObject<{
|
|
4585
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4586
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4587
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4588
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4589
|
+
blobId: alepha1572.TString;
|
|
4590
|
+
creator: alepha1572.TOptional<alepha1572.TString>;
|
|
4591
|
+
creatorRealm: alepha1572.TOptional<alepha1572.TString>;
|
|
4592
|
+
creatorName: alepha1572.TOptional<alepha1572.TString>;
|
|
4593
|
+
bucket: alepha1572.TString;
|
|
4594
|
+
expirationDate: alepha1572.TOptional<alepha1572.TString>;
|
|
4595
|
+
name: alepha1572.TString;
|
|
4596
|
+
size: alepha1572.TNumber;
|
|
4597
|
+
mimeType: alepha1572.TString;
|
|
4598
|
+
tags: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
4599
|
+
checksum: alepha1572.TOptional<alepha1572.TString>;
|
|
4599
4600
|
}>>;
|
|
4600
4601
|
type FileEntity = Static<typeof files.schema>;
|
|
4601
4602
|
//#endregion
|
|
4602
4603
|
//#region ../alepha/src/api-files/schemas/fileQuerySchema.d.ts
|
|
4603
|
-
declare const fileQuerySchema:
|
|
4604
|
-
page:
|
|
4605
|
-
size:
|
|
4606
|
-
sort:
|
|
4607
|
-
bucket:
|
|
4608
|
-
tags:
|
|
4609
|
-
name:
|
|
4610
|
-
mimeType:
|
|
4611
|
-
creator:
|
|
4612
|
-
createdAfter:
|
|
4613
|
-
createdBefore:
|
|
4604
|
+
declare const fileQuerySchema: alepha1572.TObject<{
|
|
4605
|
+
page: alepha1572.TOptional<alepha1572.TInteger>;
|
|
4606
|
+
size: alepha1572.TOptional<alepha1572.TInteger>;
|
|
4607
|
+
sort: alepha1572.TOptional<alepha1572.TString>;
|
|
4608
|
+
bucket: alepha1572.TOptional<alepha1572.TString>;
|
|
4609
|
+
tags: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
4610
|
+
name: alepha1572.TOptional<alepha1572.TString>;
|
|
4611
|
+
mimeType: alepha1572.TOptional<alepha1572.TString>;
|
|
4612
|
+
creator: alepha1572.TOptional<alepha1572.TString>;
|
|
4613
|
+
createdAfter: alepha1572.TOptional<alepha1572.TString>;
|
|
4614
|
+
createdBefore: alepha1572.TOptional<alepha1572.TString>;
|
|
4614
4615
|
}>;
|
|
4615
4616
|
type FileQuery = Static<typeof fileQuerySchema>;
|
|
4616
4617
|
//#endregion
|
|
4617
4618
|
//#region ../alepha/src/api-files/schemas/fileResourceSchema.d.ts
|
|
4618
|
-
declare const fileResourceSchema:
|
|
4619
|
-
id: PgAttr<PgAttr<
|
|
4620
|
-
version: PgAttr<PgAttr<
|
|
4621
|
-
createdAt: PgAttr<PgAttr<
|
|
4622
|
-
updatedAt: PgAttr<PgAttr<
|
|
4623
|
-
blobId:
|
|
4624
|
-
creator:
|
|
4625
|
-
creatorRealm:
|
|
4626
|
-
creatorName:
|
|
4627
|
-
bucket:
|
|
4628
|
-
expirationDate:
|
|
4629
|
-
name:
|
|
4630
|
-
size:
|
|
4631
|
-
mimeType:
|
|
4632
|
-
tags:
|
|
4633
|
-
checksum:
|
|
4619
|
+
declare const fileResourceSchema: alepha1572.TObject<{
|
|
4620
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4621
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4622
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4623
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4624
|
+
blobId: alepha1572.TString;
|
|
4625
|
+
creator: alepha1572.TOptional<alepha1572.TString>;
|
|
4626
|
+
creatorRealm: alepha1572.TOptional<alepha1572.TString>;
|
|
4627
|
+
creatorName: alepha1572.TOptional<alepha1572.TString>;
|
|
4628
|
+
bucket: alepha1572.TString;
|
|
4629
|
+
expirationDate: alepha1572.TOptional<alepha1572.TString>;
|
|
4630
|
+
name: alepha1572.TString;
|
|
4631
|
+
size: alepha1572.TNumber;
|
|
4632
|
+
mimeType: alepha1572.TString;
|
|
4633
|
+
tags: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
4634
|
+
checksum: alepha1572.TOptional<alepha1572.TString>;
|
|
4634
4635
|
}>;
|
|
4635
4636
|
type FileResource = Static<typeof fileResourceSchema>;
|
|
4636
4637
|
//#endregion
|
|
4637
4638
|
//#region ../alepha/src/api-files/schemas/storageStatsSchema.d.ts
|
|
4638
|
-
declare const storageStatsSchema:
|
|
4639
|
-
totalSize:
|
|
4640
|
-
totalFiles:
|
|
4641
|
-
byBucket:
|
|
4642
|
-
bucket:
|
|
4643
|
-
totalSize:
|
|
4644
|
-
fileCount:
|
|
4639
|
+
declare const storageStatsSchema: alepha1572.TObject<{
|
|
4640
|
+
totalSize: alepha1572.TNumber;
|
|
4641
|
+
totalFiles: alepha1572.TNumber;
|
|
4642
|
+
byBucket: alepha1572.TArray<alepha1572.TObject<{
|
|
4643
|
+
bucket: alepha1572.TString;
|
|
4644
|
+
totalSize: alepha1572.TNumber;
|
|
4645
|
+
fileCount: alepha1572.TNumber;
|
|
4645
4646
|
}>>;
|
|
4646
|
-
byMimeType:
|
|
4647
|
-
mimeType:
|
|
4648
|
-
fileCount:
|
|
4647
|
+
byMimeType: alepha1572.TArray<alepha1572.TObject<{
|
|
4648
|
+
mimeType: alepha1572.TString;
|
|
4649
|
+
fileCount: alepha1572.TNumber;
|
|
4649
4650
|
}>>;
|
|
4650
4651
|
}>;
|
|
4651
4652
|
type StorageStats = Static<typeof storageStatsSchema>;
|
|
@@ -4654,27 +4655,27 @@ type StorageStats = Static<typeof storageStatsSchema>;
|
|
|
4654
4655
|
declare class FileService {
|
|
4655
4656
|
protected readonly alepha: Alepha;
|
|
4656
4657
|
protected readonly log: Logger;
|
|
4657
|
-
protected readonly fileRepository: Repository<
|
|
4658
|
-
id: PgAttr<PgAttr<
|
|
4659
|
-
version: PgAttr<PgAttr<
|
|
4660
|
-
createdAt: PgAttr<PgAttr<
|
|
4661
|
-
updatedAt: PgAttr<PgAttr<
|
|
4662
|
-
blobId:
|
|
4663
|
-
creator:
|
|
4664
|
-
creatorRealm:
|
|
4665
|
-
creatorName:
|
|
4666
|
-
bucket:
|
|
4667
|
-
expirationDate:
|
|
4668
|
-
name:
|
|
4669
|
-
size:
|
|
4670
|
-
mimeType:
|
|
4671
|
-
tags:
|
|
4672
|
-
checksum:
|
|
4658
|
+
protected readonly fileRepository: Repository<alepha1572.TObject<{
|
|
4659
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4660
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4661
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4662
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4663
|
+
blobId: alepha1572.TString;
|
|
4664
|
+
creator: alepha1572.TOptional<alepha1572.TString>;
|
|
4665
|
+
creatorRealm: alepha1572.TOptional<alepha1572.TString>;
|
|
4666
|
+
creatorName: alepha1572.TOptional<alepha1572.TString>;
|
|
4667
|
+
bucket: alepha1572.TString;
|
|
4668
|
+
expirationDate: alepha1572.TOptional<alepha1572.TString>;
|
|
4669
|
+
name: alepha1572.TString;
|
|
4670
|
+
size: alepha1572.TNumber;
|
|
4671
|
+
mimeType: alepha1572.TString;
|
|
4672
|
+
tags: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
4673
|
+
checksum: alepha1572.TOptional<alepha1572.TString>;
|
|
4673
4674
|
}>>;
|
|
4674
4675
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
4675
4676
|
protected readonly defaultBucket: BucketPrimitive;
|
|
4676
|
-
protected onUploadFile:
|
|
4677
|
-
protected onDeleteBucketFile:
|
|
4677
|
+
protected onUploadFile: alepha1572.HookPrimitive<"bucket:file:uploaded">;
|
|
4678
|
+
protected onDeleteBucketFile: alepha1572.HookPrimitive<"bucket:file:deleted">;
|
|
4678
4679
|
/**
|
|
4679
4680
|
* Calculates SHA-256 checksum of a file.
|
|
4680
4681
|
*
|
|
@@ -4808,34 +4809,34 @@ declare class FileController {
|
|
|
4808
4809
|
* Supports filtering by bucket and tags.
|
|
4809
4810
|
*/
|
|
4810
4811
|
readonly findFiles: ActionPrimitiveFn<{
|
|
4811
|
-
query:
|
|
4812
|
-
page:
|
|
4813
|
-
size:
|
|
4814
|
-
sort:
|
|
4815
|
-
bucket:
|
|
4816
|
-
tags:
|
|
4817
|
-
name:
|
|
4818
|
-
mimeType:
|
|
4819
|
-
creator:
|
|
4820
|
-
createdAfter:
|
|
4821
|
-
createdBefore:
|
|
4812
|
+
query: alepha1572.TObject<{
|
|
4813
|
+
page: alepha1572.TOptional<alepha1572.TInteger>;
|
|
4814
|
+
size: alepha1572.TOptional<alepha1572.TInteger>;
|
|
4815
|
+
sort: alepha1572.TOptional<alepha1572.TString>;
|
|
4816
|
+
bucket: alepha1572.TOptional<alepha1572.TString>;
|
|
4817
|
+
tags: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
4818
|
+
name: alepha1572.TOptional<alepha1572.TString>;
|
|
4819
|
+
mimeType: alepha1572.TOptional<alepha1572.TString>;
|
|
4820
|
+
creator: alepha1572.TOptional<alepha1572.TString>;
|
|
4821
|
+
createdAfter: alepha1572.TOptional<alepha1572.TString>;
|
|
4822
|
+
createdBefore: alepha1572.TOptional<alepha1572.TString>;
|
|
4822
4823
|
}>;
|
|
4823
|
-
response:
|
|
4824
|
-
id: PgAttr<PgAttr<
|
|
4825
|
-
version: PgAttr<PgAttr<
|
|
4826
|
-
createdAt: PgAttr<PgAttr<
|
|
4827
|
-
updatedAt: PgAttr<PgAttr<
|
|
4828
|
-
blobId:
|
|
4829
|
-
creator:
|
|
4830
|
-
creatorRealm:
|
|
4831
|
-
creatorName:
|
|
4832
|
-
bucket:
|
|
4833
|
-
expirationDate:
|
|
4834
|
-
name:
|
|
4835
|
-
size:
|
|
4836
|
-
mimeType:
|
|
4837
|
-
tags:
|
|
4838
|
-
checksum:
|
|
4824
|
+
response: alepha1572.TPage<alepha1572.TObject<{
|
|
4825
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4826
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4827
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4828
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4829
|
+
blobId: alepha1572.TString;
|
|
4830
|
+
creator: alepha1572.TOptional<alepha1572.TString>;
|
|
4831
|
+
creatorRealm: alepha1572.TOptional<alepha1572.TString>;
|
|
4832
|
+
creatorName: alepha1572.TOptional<alepha1572.TString>;
|
|
4833
|
+
bucket: alepha1572.TString;
|
|
4834
|
+
expirationDate: alepha1572.TOptional<alepha1572.TString>;
|
|
4835
|
+
name: alepha1572.TString;
|
|
4836
|
+
size: alepha1572.TNumber;
|
|
4837
|
+
mimeType: alepha1572.TString;
|
|
4838
|
+
tags: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
4839
|
+
checksum: alepha1572.TOptional<alepha1572.TString>;
|
|
4839
4840
|
}>>;
|
|
4840
4841
|
}>;
|
|
4841
4842
|
/**
|
|
@@ -4843,13 +4844,13 @@ declare class FileController {
|
|
|
4843
4844
|
* Removes the file from the bucket and cleans up the database record.
|
|
4844
4845
|
*/
|
|
4845
4846
|
readonly deleteFile: ActionPrimitiveFn<{
|
|
4846
|
-
params:
|
|
4847
|
-
id:
|
|
4847
|
+
params: alepha1572.TObject<{
|
|
4848
|
+
id: alepha1572.TString;
|
|
4848
4849
|
}>;
|
|
4849
|
-
response:
|
|
4850
|
-
ok:
|
|
4851
|
-
id:
|
|
4852
|
-
count:
|
|
4850
|
+
response: alepha1572.TObject<{
|
|
4851
|
+
ok: alepha1572.TBoolean;
|
|
4852
|
+
id: alepha1572.TOptional<alepha1572.TUnion<[alepha1572.TString, alepha1572.TInteger]>>;
|
|
4853
|
+
count: alepha1572.TOptional<alepha1572.TNumber>;
|
|
4853
4854
|
}>;
|
|
4854
4855
|
}>;
|
|
4855
4856
|
/**
|
|
@@ -4858,29 +4859,29 @@ declare class FileController {
|
|
|
4858
4859
|
* Optionally specify bucket and expiration date.
|
|
4859
4860
|
*/
|
|
4860
4861
|
readonly uploadFile: ActionPrimitiveFn<{
|
|
4861
|
-
body:
|
|
4862
|
-
file:
|
|
4862
|
+
body: alepha1572.TObject<{
|
|
4863
|
+
file: alepha1572.TFile;
|
|
4863
4864
|
}>;
|
|
4864
|
-
query:
|
|
4865
|
-
expirationDate:
|
|
4866
|
-
bucket:
|
|
4865
|
+
query: alepha1572.TObject<{
|
|
4866
|
+
expirationDate: alepha1572.TOptional<alepha1572.TString>;
|
|
4867
|
+
bucket: alepha1572.TOptional<alepha1572.TString>;
|
|
4867
4868
|
}>;
|
|
4868
|
-
response:
|
|
4869
|
-
id: PgAttr<PgAttr<
|
|
4870
|
-
version: PgAttr<PgAttr<
|
|
4871
|
-
createdAt: PgAttr<PgAttr<
|
|
4872
|
-
updatedAt: PgAttr<PgAttr<
|
|
4873
|
-
blobId:
|
|
4874
|
-
creator:
|
|
4875
|
-
creatorRealm:
|
|
4876
|
-
creatorName:
|
|
4877
|
-
bucket:
|
|
4878
|
-
expirationDate:
|
|
4879
|
-
name:
|
|
4880
|
-
size:
|
|
4881
|
-
mimeType:
|
|
4882
|
-
tags:
|
|
4883
|
-
checksum:
|
|
4869
|
+
response: alepha1572.TObject<{
|
|
4870
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4871
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4872
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4873
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4874
|
+
blobId: alepha1572.TString;
|
|
4875
|
+
creator: alepha1572.TOptional<alepha1572.TString>;
|
|
4876
|
+
creatorRealm: alepha1572.TOptional<alepha1572.TString>;
|
|
4877
|
+
creatorName: alepha1572.TOptional<alepha1572.TString>;
|
|
4878
|
+
bucket: alepha1572.TString;
|
|
4879
|
+
expirationDate: alepha1572.TOptional<alepha1572.TString>;
|
|
4880
|
+
name: alepha1572.TString;
|
|
4881
|
+
size: alepha1572.TNumber;
|
|
4882
|
+
mimeType: alepha1572.TString;
|
|
4883
|
+
tags: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
4884
|
+
checksum: alepha1572.TOptional<alepha1572.TString>;
|
|
4884
4885
|
}>;
|
|
4885
4886
|
}>;
|
|
4886
4887
|
/**
|
|
@@ -4888,30 +4889,30 @@ declare class FileController {
|
|
|
4888
4889
|
* Allows updating name, tags, and expiration date without modifying file content.
|
|
4889
4890
|
*/
|
|
4890
4891
|
readonly updateFile: ActionPrimitiveFn<{
|
|
4891
|
-
params:
|
|
4892
|
-
id:
|
|
4892
|
+
params: alepha1572.TObject<{
|
|
4893
|
+
id: alepha1572.TString;
|
|
4893
4894
|
}>;
|
|
4894
|
-
body:
|
|
4895
|
-
name:
|
|
4896
|
-
tags:
|
|
4897
|
-
expirationDate:
|
|
4895
|
+
body: alepha1572.TObject<{
|
|
4896
|
+
name: alepha1572.TOptional<alepha1572.TString>;
|
|
4897
|
+
tags: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
4898
|
+
expirationDate: alepha1572.TOptional<alepha1572.TString>;
|
|
4898
4899
|
}>;
|
|
4899
|
-
response:
|
|
4900
|
-
id: PgAttr<PgAttr<
|
|
4901
|
-
version: PgAttr<PgAttr<
|
|
4902
|
-
createdAt: PgAttr<PgAttr<
|
|
4903
|
-
updatedAt: PgAttr<PgAttr<
|
|
4904
|
-
blobId:
|
|
4905
|
-
creator:
|
|
4906
|
-
creatorRealm:
|
|
4907
|
-
creatorName:
|
|
4908
|
-
bucket:
|
|
4909
|
-
expirationDate:
|
|
4910
|
-
name:
|
|
4911
|
-
size:
|
|
4912
|
-
mimeType:
|
|
4913
|
-
tags:
|
|
4914
|
-
checksum:
|
|
4900
|
+
response: alepha1572.TObject<{
|
|
4901
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4902
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4903
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4904
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4905
|
+
blobId: alepha1572.TString;
|
|
4906
|
+
creator: alepha1572.TOptional<alepha1572.TString>;
|
|
4907
|
+
creatorRealm: alepha1572.TOptional<alepha1572.TString>;
|
|
4908
|
+
creatorName: alepha1572.TOptional<alepha1572.TString>;
|
|
4909
|
+
bucket: alepha1572.TString;
|
|
4910
|
+
expirationDate: alepha1572.TOptional<alepha1572.TString>;
|
|
4911
|
+
name: alepha1572.TString;
|
|
4912
|
+
size: alepha1572.TNumber;
|
|
4913
|
+
mimeType: alepha1572.TString;
|
|
4914
|
+
tags: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
4915
|
+
checksum: alepha1572.TOptional<alepha1572.TString>;
|
|
4915
4916
|
}>;
|
|
4916
4917
|
}>;
|
|
4917
4918
|
/**
|
|
@@ -4920,10 +4921,10 @@ declare class FileController {
|
|
|
4920
4921
|
* Cached with ETag support for 1 year (immutable).
|
|
4921
4922
|
*/
|
|
4922
4923
|
readonly streamFile: ActionPrimitiveFn<{
|
|
4923
|
-
params:
|
|
4924
|
-
id:
|
|
4924
|
+
params: alepha1572.TObject<{
|
|
4925
|
+
id: alepha1572.TString;
|
|
4925
4926
|
}>;
|
|
4926
|
-
response:
|
|
4927
|
+
response: alepha1572.TFile;
|
|
4927
4928
|
}>;
|
|
4928
4929
|
}
|
|
4929
4930
|
//#endregion
|
|
@@ -5225,52 +5226,52 @@ declare class BatchPrimitive<TItem extends TSchema, TResponse = any> extends Pri
|
|
|
5225
5226
|
* @returns The number of items cleared
|
|
5226
5227
|
*/
|
|
5227
5228
|
clearCompleted(status?: "completed" | "failed"): number;
|
|
5228
|
-
protected readonly onReady:
|
|
5229
|
-
protected readonly dispose:
|
|
5229
|
+
protected readonly onReady: alepha1572.HookPrimitive<"ready">;
|
|
5230
|
+
protected readonly dispose: alepha1572.HookPrimitive<"stop">;
|
|
5230
5231
|
}
|
|
5231
5232
|
//#endregion
|
|
5232
5233
|
//#region ../alepha/src/api-notifications/entities/notifications.d.ts
|
|
5233
|
-
declare const notifications: EntityPrimitive<
|
|
5234
|
-
id: PgAttr<PgAttr<
|
|
5235
|
-
version: PgAttr<PgAttr<
|
|
5236
|
-
createdAt: PgAttr<PgAttr<
|
|
5237
|
-
updatedAt: PgAttr<PgAttr<
|
|
5238
|
-
type:
|
|
5239
|
-
template:
|
|
5240
|
-
category:
|
|
5241
|
-
critical:
|
|
5242
|
-
sensitive:
|
|
5243
|
-
contact:
|
|
5244
|
-
variables:
|
|
5245
|
-
scheduledAt:
|
|
5246
|
-
sentAt:
|
|
5247
|
-
error:
|
|
5248
|
-
at:
|
|
5249
|
-
name:
|
|
5250
|
-
message:
|
|
5234
|
+
declare const notifications: EntityPrimitive<alepha1572.TObject<{
|
|
5235
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5236
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5237
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5238
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5239
|
+
type: alepha1572.TUnsafe<"email" | "sms">;
|
|
5240
|
+
template: alepha1572.TString;
|
|
5241
|
+
category: alepha1572.TOptional<alepha1572.TString>;
|
|
5242
|
+
critical: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5243
|
+
sensitive: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5244
|
+
contact: alepha1572.TString;
|
|
5245
|
+
variables: alepha1572.TOptional<alepha1572.TRecord<"^.*$", alepha1572.TAny>>;
|
|
5246
|
+
scheduledAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5247
|
+
sentAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5248
|
+
error: alepha1572.TOptional<alepha1572.TObject<{
|
|
5249
|
+
at: alepha1572.TString;
|
|
5250
|
+
name: alepha1572.TString;
|
|
5251
|
+
message: alepha1572.TString;
|
|
5251
5252
|
}>>;
|
|
5252
5253
|
}>>;
|
|
5253
5254
|
type NotificationEntity = Static<typeof notifications.schema>;
|
|
5254
5255
|
//#endregion
|
|
5255
5256
|
//#region ../alepha/src/api-notifications/schemas/notificationCreateSchema.d.ts
|
|
5256
|
-
declare const notificationCreateSchema:
|
|
5257
|
-
type:
|
|
5258
|
-
template:
|
|
5259
|
-
contact:
|
|
5260
|
-
variables:
|
|
5257
|
+
declare const notificationCreateSchema: alepha1572.TObject<{
|
|
5258
|
+
type: alepha1572.TUnsafe<"email" | "sms">;
|
|
5259
|
+
template: alepha1572.TString;
|
|
5260
|
+
contact: alepha1572.TString;
|
|
5261
|
+
variables: alepha1572.TOptional<alepha1572.TRecord<"^.*$", alepha1572.TAny>>;
|
|
5261
5262
|
}>;
|
|
5262
5263
|
type NotificationCreate = Static<typeof notificationCreateSchema>;
|
|
5263
5264
|
//#endregion
|
|
5264
5265
|
//#region ../alepha/src/api-notifications/schemas/notificationQuerySchema.d.ts
|
|
5265
|
-
declare const notificationQuerySchema:
|
|
5266
|
-
page:
|
|
5267
|
-
size:
|
|
5268
|
-
sort:
|
|
5269
|
-
type:
|
|
5270
|
-
template:
|
|
5271
|
-
contact:
|
|
5272
|
-
category:
|
|
5273
|
-
status:
|
|
5266
|
+
declare const notificationQuerySchema: alepha1572.TObject<{
|
|
5267
|
+
page: alepha1572.TOptional<alepha1572.TInteger>;
|
|
5268
|
+
size: alepha1572.TOptional<alepha1572.TInteger>;
|
|
5269
|
+
sort: alepha1572.TOptional<alepha1572.TString>;
|
|
5270
|
+
type: alepha1572.TOptional<alepha1572.TUnsafe<"email" | "sms">>;
|
|
5271
|
+
template: alepha1572.TOptional<alepha1572.TString>;
|
|
5272
|
+
contact: alepha1572.TOptional<alepha1572.TString>;
|
|
5273
|
+
category: alepha1572.TOptional<alepha1572.TString>;
|
|
5274
|
+
status: alepha1572.TOptional<alepha1572.TUnsafe<"pending" | "sent" | "failed">>;
|
|
5274
5275
|
}>;
|
|
5275
5276
|
type NotificationQuery = Static<typeof notificationQuerySchema>;
|
|
5276
5277
|
//#endregion
|
|
@@ -5405,24 +5406,24 @@ declare module "alepha" {
|
|
|
5405
5406
|
declare class NotificationSenderService {
|
|
5406
5407
|
protected readonly alepha: Alepha;
|
|
5407
5408
|
protected readonly log: Logger;
|
|
5408
|
-
protected readonly notificationRepository: Repository<
|
|
5409
|
-
id: PgAttr<PgAttr<
|
|
5410
|
-
version: PgAttr<PgAttr<
|
|
5411
|
-
createdAt: PgAttr<PgAttr<
|
|
5412
|
-
updatedAt: PgAttr<PgAttr<
|
|
5413
|
-
type:
|
|
5414
|
-
template:
|
|
5415
|
-
category:
|
|
5416
|
-
critical:
|
|
5417
|
-
sensitive:
|
|
5418
|
-
contact:
|
|
5419
|
-
variables:
|
|
5420
|
-
scheduledAt:
|
|
5421
|
-
sentAt:
|
|
5422
|
-
error:
|
|
5423
|
-
at:
|
|
5424
|
-
name:
|
|
5425
|
-
message:
|
|
5409
|
+
protected readonly notificationRepository: Repository<alepha1572.TObject<{
|
|
5410
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5411
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5412
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5413
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5414
|
+
type: alepha1572.TUnsafe<"email" | "sms">;
|
|
5415
|
+
template: alepha1572.TString;
|
|
5416
|
+
category: alepha1572.TOptional<alepha1572.TString>;
|
|
5417
|
+
critical: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5418
|
+
sensitive: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5419
|
+
contact: alepha1572.TString;
|
|
5420
|
+
variables: alepha1572.TOptional<alepha1572.TRecord<"^.*$", alepha1572.TAny>>;
|
|
5421
|
+
scheduledAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5422
|
+
sentAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5423
|
+
error: alepha1572.TOptional<alepha1572.TObject<{
|
|
5424
|
+
at: alepha1572.TString;
|
|
5425
|
+
name: alepha1572.TString;
|
|
5426
|
+
message: alepha1572.TString;
|
|
5426
5427
|
}>>;
|
|
5427
5428
|
}>>;
|
|
5428
5429
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
@@ -5439,15 +5440,15 @@ declare class NotificationSenderService {
|
|
|
5439
5440
|
body: string;
|
|
5440
5441
|
};
|
|
5441
5442
|
protected load(notification: NotificationEntity): {
|
|
5442
|
-
template: NotificationPrimitive<
|
|
5443
|
+
template: NotificationPrimitive<alepha1572.TObject<alepha1572.TProperties>>;
|
|
5443
5444
|
variables: Record<string, any>;
|
|
5444
5445
|
contact: string;
|
|
5445
5446
|
};
|
|
5446
5447
|
}
|
|
5447
5448
|
//#endregion
|
|
5448
5449
|
//#region ../alepha/src/api-notifications/services/NotificationService.d.ts
|
|
5449
|
-
declare const notificationServiceEnvSchema:
|
|
5450
|
-
NOTIFICATION_QUEUE:
|
|
5450
|
+
declare const notificationServiceEnvSchema: alepha1572.TObject<{
|
|
5451
|
+
NOTIFICATION_QUEUE: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5451
5452
|
}>;
|
|
5452
5453
|
declare module "alepha" {
|
|
5453
5454
|
interface Env extends Partial<Static<typeof notificationServiceEnvSchema>> {}
|
|
@@ -5458,71 +5459,71 @@ declare class NotificationService {
|
|
|
5458
5459
|
protected readonly env: {
|
|
5459
5460
|
NOTIFICATION_QUEUE?: boolean | undefined;
|
|
5460
5461
|
};
|
|
5461
|
-
protected readonly notificationRepository: Repository<
|
|
5462
|
-
id: PgAttr<PgAttr<
|
|
5463
|
-
version: PgAttr<PgAttr<
|
|
5464
|
-
createdAt: PgAttr<PgAttr<
|
|
5465
|
-
updatedAt: PgAttr<PgAttr<
|
|
5466
|
-
type:
|
|
5467
|
-
template:
|
|
5468
|
-
category:
|
|
5469
|
-
critical:
|
|
5470
|
-
sensitive:
|
|
5471
|
-
contact:
|
|
5472
|
-
variables:
|
|
5473
|
-
scheduledAt:
|
|
5474
|
-
sentAt:
|
|
5475
|
-
error:
|
|
5476
|
-
at:
|
|
5477
|
-
name:
|
|
5478
|
-
message:
|
|
5462
|
+
protected readonly notificationRepository: Repository<alepha1572.TObject<{
|
|
5463
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5464
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5465
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5466
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5467
|
+
type: alepha1572.TUnsafe<"email" | "sms">;
|
|
5468
|
+
template: alepha1572.TString;
|
|
5469
|
+
category: alepha1572.TOptional<alepha1572.TString>;
|
|
5470
|
+
critical: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5471
|
+
sensitive: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5472
|
+
contact: alepha1572.TString;
|
|
5473
|
+
variables: alepha1572.TOptional<alepha1572.TRecord<"^.*$", alepha1572.TAny>>;
|
|
5474
|
+
scheduledAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5475
|
+
sentAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5476
|
+
error: alepha1572.TOptional<alepha1572.TObject<{
|
|
5477
|
+
at: alepha1572.TString;
|
|
5478
|
+
name: alepha1572.TString;
|
|
5479
|
+
message: alepha1572.TString;
|
|
5479
5480
|
}>>;
|
|
5480
5481
|
}>>;
|
|
5481
5482
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
5482
5483
|
protected readonly notificationSenderService: NotificationSenderService;
|
|
5483
|
-
readonly notificationBatch: BatchPrimitive<
|
|
5484
|
-
type:
|
|
5485
|
-
template:
|
|
5486
|
-
contact:
|
|
5487
|
-
variables:
|
|
5484
|
+
readonly notificationBatch: BatchPrimitive<alepha1572.TObject<{
|
|
5485
|
+
type: alepha1572.TUnsafe<"email" | "sms">;
|
|
5486
|
+
template: alepha1572.TString;
|
|
5487
|
+
contact: alepha1572.TString;
|
|
5488
|
+
variables: alepha1572.TOptional<alepha1572.TRecord<"^.*$", alepha1572.TAny>>;
|
|
5488
5489
|
}>, Promise<void>>;
|
|
5489
|
-
findNotificationById(id: string): Promise<PgStatic<
|
|
5490
|
-
id: PgAttr<PgAttr<
|
|
5491
|
-
version: PgAttr<PgAttr<
|
|
5492
|
-
createdAt: PgAttr<PgAttr<
|
|
5493
|
-
updatedAt: PgAttr<PgAttr<
|
|
5494
|
-
type:
|
|
5495
|
-
template:
|
|
5496
|
-
category:
|
|
5497
|
-
critical:
|
|
5498
|
-
sensitive:
|
|
5499
|
-
contact:
|
|
5500
|
-
variables:
|
|
5501
|
-
scheduledAt:
|
|
5502
|
-
sentAt:
|
|
5503
|
-
error:
|
|
5504
|
-
at:
|
|
5505
|
-
name:
|
|
5506
|
-
message:
|
|
5490
|
+
findNotificationById(id: string): Promise<PgStatic<alepha1572.TObject<{
|
|
5491
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5492
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5493
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5494
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5495
|
+
type: alepha1572.TUnsafe<"email" | "sms">;
|
|
5496
|
+
template: alepha1572.TString;
|
|
5497
|
+
category: alepha1572.TOptional<alepha1572.TString>;
|
|
5498
|
+
critical: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5499
|
+
sensitive: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5500
|
+
contact: alepha1572.TString;
|
|
5501
|
+
variables: alepha1572.TOptional<alepha1572.TRecord<"^.*$", alepha1572.TAny>>;
|
|
5502
|
+
scheduledAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5503
|
+
sentAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5504
|
+
error: alepha1572.TOptional<alepha1572.TObject<{
|
|
5505
|
+
at: alepha1572.TString;
|
|
5506
|
+
name: alepha1572.TString;
|
|
5507
|
+
message: alepha1572.TString;
|
|
5507
5508
|
}>>;
|
|
5508
|
-
}>, PgRelationMap<
|
|
5509
|
-
id: PgAttr<PgAttr<
|
|
5510
|
-
version: PgAttr<PgAttr<
|
|
5511
|
-
createdAt: PgAttr<PgAttr<
|
|
5512
|
-
updatedAt: PgAttr<PgAttr<
|
|
5513
|
-
type:
|
|
5514
|
-
template:
|
|
5515
|
-
category:
|
|
5516
|
-
critical:
|
|
5517
|
-
sensitive:
|
|
5518
|
-
contact:
|
|
5519
|
-
variables:
|
|
5520
|
-
scheduledAt:
|
|
5521
|
-
sentAt:
|
|
5522
|
-
error:
|
|
5523
|
-
at:
|
|
5524
|
-
name:
|
|
5525
|
-
message:
|
|
5509
|
+
}>, PgRelationMap<alepha1572.TObject<{
|
|
5510
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5511
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5512
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5513
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5514
|
+
type: alepha1572.TUnsafe<"email" | "sms">;
|
|
5515
|
+
template: alepha1572.TString;
|
|
5516
|
+
category: alepha1572.TOptional<alepha1572.TString>;
|
|
5517
|
+
critical: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5518
|
+
sensitive: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5519
|
+
contact: alepha1572.TString;
|
|
5520
|
+
variables: alepha1572.TOptional<alepha1572.TRecord<"^.*$", alepha1572.TAny>>;
|
|
5521
|
+
scheduledAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5522
|
+
sentAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5523
|
+
error: alepha1572.TOptional<alepha1572.TObject<{
|
|
5524
|
+
at: alepha1572.TString;
|
|
5525
|
+
name: alepha1572.TString;
|
|
5526
|
+
message: alepha1572.TString;
|
|
5526
5527
|
}>>;
|
|
5527
5528
|
}>>>>;
|
|
5528
5529
|
findNotifications(q?: NotificationQuery): Promise<Page$1<NotificationEntity>>;
|
|
@@ -5541,140 +5542,140 @@ declare class NotificationController {
|
|
|
5541
5542
|
* Find notifications with pagination and filtering.
|
|
5542
5543
|
*/
|
|
5543
5544
|
readonly findNotifications: ActionPrimitiveFn<{
|
|
5544
|
-
query:
|
|
5545
|
-
page:
|
|
5546
|
-
size:
|
|
5547
|
-
sort:
|
|
5548
|
-
type:
|
|
5549
|
-
template:
|
|
5550
|
-
contact:
|
|
5551
|
-
category:
|
|
5552
|
-
status:
|
|
5545
|
+
query: alepha1572.TObject<{
|
|
5546
|
+
page: alepha1572.TOptional<alepha1572.TInteger>;
|
|
5547
|
+
size: alepha1572.TOptional<alepha1572.TInteger>;
|
|
5548
|
+
sort: alepha1572.TOptional<alepha1572.TString>;
|
|
5549
|
+
type: alepha1572.TOptional<alepha1572.TUnsafe<"email" | "sms">>;
|
|
5550
|
+
template: alepha1572.TOptional<alepha1572.TString>;
|
|
5551
|
+
contact: alepha1572.TOptional<alepha1572.TString>;
|
|
5552
|
+
category: alepha1572.TOptional<alepha1572.TString>;
|
|
5553
|
+
status: alepha1572.TOptional<alepha1572.TUnsafe<"pending" | "sent" | "failed">>;
|
|
5553
5554
|
}>;
|
|
5554
|
-
response:
|
|
5555
|
-
id: PgAttr<PgAttr<
|
|
5556
|
-
version: PgAttr<PgAttr<
|
|
5557
|
-
createdAt: PgAttr<PgAttr<
|
|
5558
|
-
updatedAt: PgAttr<PgAttr<
|
|
5559
|
-
type:
|
|
5560
|
-
template:
|
|
5561
|
-
category:
|
|
5562
|
-
critical:
|
|
5563
|
-
sensitive:
|
|
5564
|
-
contact:
|
|
5565
|
-
variables:
|
|
5566
|
-
scheduledAt:
|
|
5567
|
-
sentAt:
|
|
5568
|
-
error:
|
|
5569
|
-
at:
|
|
5570
|
-
name:
|
|
5571
|
-
message:
|
|
5555
|
+
response: alepha1572.TPage<alepha1572.TObject<{
|
|
5556
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5557
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5558
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5559
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5560
|
+
type: alepha1572.TUnsafe<"email" | "sms">;
|
|
5561
|
+
template: alepha1572.TString;
|
|
5562
|
+
category: alepha1572.TOptional<alepha1572.TString>;
|
|
5563
|
+
critical: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5564
|
+
sensitive: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5565
|
+
contact: alepha1572.TString;
|
|
5566
|
+
variables: alepha1572.TOptional<alepha1572.TRecord<"^.*$", alepha1572.TAny>>;
|
|
5567
|
+
scheduledAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5568
|
+
sentAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5569
|
+
error: alepha1572.TOptional<alepha1572.TObject<{
|
|
5570
|
+
at: alepha1572.TString;
|
|
5571
|
+
name: alepha1572.TString;
|
|
5572
|
+
message: alepha1572.TString;
|
|
5572
5573
|
}>>;
|
|
5573
5574
|
}>>;
|
|
5574
5575
|
}>;
|
|
5575
5576
|
}
|
|
5576
5577
|
//#endregion
|
|
5577
5578
|
//#region ../alepha/src/queue/providers/WorkerProvider.d.ts
|
|
5578
|
-
declare const envSchema:
|
|
5579
|
+
declare const envSchema: alepha1572.TObject<{
|
|
5579
5580
|
/**
|
|
5580
5581
|
* The timeout in seconds for blocking job acquisition.
|
|
5581
5582
|
* Workers will check for shutdown after each timeout period.
|
|
5582
5583
|
*/
|
|
5583
|
-
QUEUE_WORKER_BLOCKING_TIMEOUT:
|
|
5584
|
+
QUEUE_WORKER_BLOCKING_TIMEOUT: alepha1572.TInteger;
|
|
5584
5585
|
/**
|
|
5585
5586
|
* The number of workers to run concurrently. Defaults to 1.
|
|
5586
5587
|
* Useful only if you are doing a lot of I/O.
|
|
5587
5588
|
*/
|
|
5588
|
-
QUEUE_WORKER_CONCURRENCY:
|
|
5589
|
+
QUEUE_WORKER_CONCURRENCY: alepha1572.TInteger;
|
|
5589
5590
|
/**
|
|
5590
5591
|
* Interval in milliseconds for renewing job locks during processing.
|
|
5591
5592
|
* Should be less than the job's lock duration.
|
|
5592
5593
|
*/
|
|
5593
|
-
QUEUE_WORKER_LOCK_RENEWAL_INTERVAL:
|
|
5594
|
+
QUEUE_WORKER_LOCK_RENEWAL_INTERVAL: alepha1572.TInteger;
|
|
5594
5595
|
/**
|
|
5595
5596
|
* Interval in milliseconds for the scheduler to check delayed jobs and stalled jobs.
|
|
5596
5597
|
*/
|
|
5597
|
-
QUEUE_SCHEDULER_INTERVAL:
|
|
5598
|
+
QUEUE_SCHEDULER_INTERVAL: alepha1572.TInteger;
|
|
5598
5599
|
/**
|
|
5599
5600
|
* Threshold in milliseconds after lock expiration to consider a job stalled.
|
|
5600
5601
|
*/
|
|
5601
|
-
QUEUE_STALLED_THRESHOLD:
|
|
5602
|
+
QUEUE_STALLED_THRESHOLD: alepha1572.TInteger;
|
|
5602
5603
|
}>;
|
|
5603
5604
|
declare module "alepha" {
|
|
5604
5605
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
5605
5606
|
}
|
|
5606
5607
|
//#endregion
|
|
5607
5608
|
//#region ../alepha/src/api-users/atoms/realmAuthSettingsAtom.d.ts
|
|
5608
|
-
declare const realmAuthSettingsAtom:
|
|
5609
|
-
registrationAllowed:
|
|
5610
|
-
emailEnabled:
|
|
5611
|
-
emailRequired:
|
|
5612
|
-
usernameEnabled:
|
|
5613
|
-
usernameRequired:
|
|
5614
|
-
phoneEnabled:
|
|
5615
|
-
phoneRequired:
|
|
5616
|
-
verifyEmailRequired:
|
|
5617
|
-
verifyPhoneRequired:
|
|
5618
|
-
firstNameLastNameEnabled:
|
|
5619
|
-
firstNameLastNameRequired:
|
|
5620
|
-
resetPasswordAllowed:
|
|
5621
|
-
passwordPolicy:
|
|
5622
|
-
minLength:
|
|
5623
|
-
requireUppercase:
|
|
5624
|
-
requireLowercase:
|
|
5625
|
-
requireNumbers:
|
|
5626
|
-
requireSpecialCharacters:
|
|
5609
|
+
declare const realmAuthSettingsAtom: alepha1572.Atom<alepha1572.TObject<{
|
|
5610
|
+
registrationAllowed: alepha1572.TBoolean;
|
|
5611
|
+
emailEnabled: alepha1572.TBoolean;
|
|
5612
|
+
emailRequired: alepha1572.TBoolean;
|
|
5613
|
+
usernameEnabled: alepha1572.TBoolean;
|
|
5614
|
+
usernameRequired: alepha1572.TBoolean;
|
|
5615
|
+
phoneEnabled: alepha1572.TBoolean;
|
|
5616
|
+
phoneRequired: alepha1572.TBoolean;
|
|
5617
|
+
verifyEmailRequired: alepha1572.TBoolean;
|
|
5618
|
+
verifyPhoneRequired: alepha1572.TBoolean;
|
|
5619
|
+
firstNameLastNameEnabled: alepha1572.TBoolean;
|
|
5620
|
+
firstNameLastNameRequired: alepha1572.TBoolean;
|
|
5621
|
+
resetPasswordAllowed: alepha1572.TBoolean;
|
|
5622
|
+
passwordPolicy: alepha1572.TObject<{
|
|
5623
|
+
minLength: alepha1572.TInteger;
|
|
5624
|
+
requireUppercase: alepha1572.TBoolean;
|
|
5625
|
+
requireLowercase: alepha1572.TBoolean;
|
|
5626
|
+
requireNumbers: alepha1572.TBoolean;
|
|
5627
|
+
requireSpecialCharacters: alepha1572.TBoolean;
|
|
5627
5628
|
}>;
|
|
5628
5629
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
5629
5630
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
5630
5631
|
//#endregion
|
|
5631
5632
|
//#region ../alepha/src/api-users/entities/identities.d.ts
|
|
5632
|
-
declare const identities: EntityPrimitive<
|
|
5633
|
-
id: PgAttr<PgAttr<
|
|
5634
|
-
version: PgAttr<PgAttr<
|
|
5635
|
-
createdAt: PgAttr<PgAttr<
|
|
5636
|
-
updatedAt: PgAttr<PgAttr<
|
|
5637
|
-
userId: PgAttr<
|
|
5638
|
-
password:
|
|
5639
|
-
provider:
|
|
5640
|
-
providerUserId:
|
|
5641
|
-
providerData:
|
|
5633
|
+
declare const identities: EntityPrimitive<alepha1572.TObject<{
|
|
5634
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5635
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5636
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5637
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5638
|
+
userId: PgAttr<alepha1572.TString, typeof PG_REF>;
|
|
5639
|
+
password: alepha1572.TOptional<alepha1572.TString>;
|
|
5640
|
+
provider: alepha1572.TString;
|
|
5641
|
+
providerUserId: alepha1572.TOptional<alepha1572.TString>;
|
|
5642
|
+
providerData: alepha1572.TOptional<alepha1572.TRecord<string, alepha1572.TAny>>;
|
|
5642
5643
|
}>>;
|
|
5643
5644
|
//#endregion
|
|
5644
5645
|
//#region ../alepha/src/api-users/entities/sessions.d.ts
|
|
5645
|
-
declare const sessions: EntityPrimitive<
|
|
5646
|
-
id: PgAttr<PgAttr<
|
|
5647
|
-
version: PgAttr<PgAttr<
|
|
5648
|
-
createdAt: PgAttr<PgAttr<
|
|
5649
|
-
updatedAt: PgAttr<PgAttr<
|
|
5650
|
-
refreshToken:
|
|
5651
|
-
userId: PgAttr<
|
|
5652
|
-
expiresAt:
|
|
5653
|
-
ip:
|
|
5654
|
-
userAgent:
|
|
5655
|
-
os:
|
|
5656
|
-
browser:
|
|
5657
|
-
device:
|
|
5646
|
+
declare const sessions: EntityPrimitive<alepha1572.TObject<{
|
|
5647
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5648
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5649
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5650
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5651
|
+
refreshToken: alepha1572.TString;
|
|
5652
|
+
userId: PgAttr<alepha1572.TString, typeof PG_REF>;
|
|
5653
|
+
expiresAt: alepha1572.TString;
|
|
5654
|
+
ip: alepha1572.TOptional<alepha1572.TString>;
|
|
5655
|
+
userAgent: alepha1572.TOptional<alepha1572.TObject<{
|
|
5656
|
+
os: alepha1572.TString;
|
|
5657
|
+
browser: alepha1572.TString;
|
|
5658
|
+
device: alepha1572.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5658
5659
|
}>>;
|
|
5659
5660
|
}>>;
|
|
5660
5661
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
5661
5662
|
//#endregion
|
|
5662
5663
|
//#region ../alepha/src/api-users/entities/users.d.ts
|
|
5663
|
-
declare const users: EntityPrimitive<
|
|
5664
|
-
id: PgAttr<PgAttr<
|
|
5665
|
-
version: PgAttr<PgAttr<
|
|
5666
|
-
createdAt: PgAttr<PgAttr<
|
|
5667
|
-
updatedAt: PgAttr<PgAttr<
|
|
5668
|
-
realm: PgAttr<
|
|
5669
|
-
username:
|
|
5670
|
-
email:
|
|
5671
|
-
phoneNumber:
|
|
5672
|
-
roles: PgAttr<
|
|
5673
|
-
firstName:
|
|
5674
|
-
lastName:
|
|
5675
|
-
picture:
|
|
5676
|
-
enabled: PgAttr<
|
|
5677
|
-
emailVerified: PgAttr<
|
|
5664
|
+
declare const users: EntityPrimitive<alepha1572.TObject<{
|
|
5665
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5666
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5667
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5668
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5669
|
+
realm: PgAttr<alepha1572.TString, typeof PG_DEFAULT>;
|
|
5670
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
5671
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
5672
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TString>;
|
|
5673
|
+
roles: PgAttr<alepha1572.TArray<alepha1572.TString>, typeof PG_DEFAULT>;
|
|
5674
|
+
firstName: alepha1572.TOptional<alepha1572.TString>;
|
|
5675
|
+
lastName: alepha1572.TOptional<alepha1572.TString>;
|
|
5676
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
5677
|
+
enabled: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
5678
|
+
emailVerified: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
5678
5679
|
}>>;
|
|
5679
5680
|
type UserEntity = Static<typeof users.schema>;
|
|
5680
5681
|
//#endregion
|
|
@@ -5691,51 +5692,51 @@ interface UserRealm {
|
|
|
5691
5692
|
}
|
|
5692
5693
|
declare class UserRealmProvider {
|
|
5693
5694
|
protected readonly alepha: Alepha;
|
|
5694
|
-
protected readonly defaultIdentities: Repository<
|
|
5695
|
-
id: PgAttr<PgAttr<
|
|
5696
|
-
version: PgAttr<PgAttr<
|
|
5697
|
-
createdAt: PgAttr<PgAttr<
|
|
5698
|
-
updatedAt: PgAttr<PgAttr<
|
|
5699
|
-
userId: PgAttr<
|
|
5700
|
-
password:
|
|
5701
|
-
provider:
|
|
5702
|
-
providerUserId:
|
|
5703
|
-
providerData:
|
|
5695
|
+
protected readonly defaultIdentities: Repository<alepha1572.TObject<{
|
|
5696
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5697
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5698
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5699
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5700
|
+
userId: PgAttr<alepha1572.TString, typeof PG_REF>;
|
|
5701
|
+
password: alepha1572.TOptional<alepha1572.TString>;
|
|
5702
|
+
provider: alepha1572.TString;
|
|
5703
|
+
providerUserId: alepha1572.TOptional<alepha1572.TString>;
|
|
5704
|
+
providerData: alepha1572.TOptional<alepha1572.TRecord<string, alepha1572.TAny>>;
|
|
5704
5705
|
}>>;
|
|
5705
|
-
protected readonly defaultSessions: Repository<
|
|
5706
|
-
id: PgAttr<PgAttr<
|
|
5707
|
-
version: PgAttr<PgAttr<
|
|
5708
|
-
createdAt: PgAttr<PgAttr<
|
|
5709
|
-
updatedAt: PgAttr<PgAttr<
|
|
5710
|
-
refreshToken:
|
|
5711
|
-
userId: PgAttr<
|
|
5712
|
-
expiresAt:
|
|
5713
|
-
ip:
|
|
5714
|
-
userAgent:
|
|
5715
|
-
os:
|
|
5716
|
-
browser:
|
|
5717
|
-
device:
|
|
5706
|
+
protected readonly defaultSessions: Repository<alepha1572.TObject<{
|
|
5707
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5708
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5709
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5710
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5711
|
+
refreshToken: alepha1572.TString;
|
|
5712
|
+
userId: PgAttr<alepha1572.TString, typeof PG_REF>;
|
|
5713
|
+
expiresAt: alepha1572.TString;
|
|
5714
|
+
ip: alepha1572.TOptional<alepha1572.TString>;
|
|
5715
|
+
userAgent: alepha1572.TOptional<alepha1572.TObject<{
|
|
5716
|
+
os: alepha1572.TString;
|
|
5717
|
+
browser: alepha1572.TString;
|
|
5718
|
+
device: alepha1572.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5718
5719
|
}>>;
|
|
5719
5720
|
}>>;
|
|
5720
|
-
protected readonly defaultUsers: Repository<
|
|
5721
|
-
id: PgAttr<PgAttr<
|
|
5722
|
-
version: PgAttr<PgAttr<
|
|
5723
|
-
createdAt: PgAttr<PgAttr<
|
|
5724
|
-
updatedAt: PgAttr<PgAttr<
|
|
5725
|
-
realm: PgAttr<
|
|
5726
|
-
username:
|
|
5727
|
-
email:
|
|
5728
|
-
phoneNumber:
|
|
5729
|
-
roles: PgAttr<
|
|
5730
|
-
firstName:
|
|
5731
|
-
lastName:
|
|
5732
|
-
picture:
|
|
5733
|
-
enabled: PgAttr<
|
|
5734
|
-
emailVerified: PgAttr<
|
|
5721
|
+
protected readonly defaultUsers: Repository<alepha1572.TObject<{
|
|
5722
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5723
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5724
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5725
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5726
|
+
realm: PgAttr<alepha1572.TString, typeof PG_DEFAULT>;
|
|
5727
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
5728
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
5729
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TString>;
|
|
5730
|
+
roles: PgAttr<alepha1572.TArray<alepha1572.TString>, typeof PG_DEFAULT>;
|
|
5731
|
+
firstName: alepha1572.TOptional<alepha1572.TString>;
|
|
5732
|
+
lastName: alepha1572.TOptional<alepha1572.TString>;
|
|
5733
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
5734
|
+
enabled: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
5735
|
+
emailVerified: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
5735
5736
|
}>>;
|
|
5736
5737
|
protected realms: Map<string, UserRealm>;
|
|
5737
5738
|
avatars: BucketPrimitive;
|
|
5738
|
-
protected readonly onConfigure:
|
|
5739
|
+
protected readonly onConfigure: alepha1572.HookPrimitive<"configure">;
|
|
5739
5740
|
register(userRealmName: string, userRealmOptions?: UserRealmOptions): UserRealm;
|
|
5740
5741
|
/**
|
|
5741
5742
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
@@ -5747,11 +5748,11 @@ declare class UserRealmProvider {
|
|
|
5747
5748
|
}
|
|
5748
5749
|
//#endregion
|
|
5749
5750
|
//#region ../alepha/src/api-users/schemas/sessionQuerySchema.d.ts
|
|
5750
|
-
declare const sessionQuerySchema:
|
|
5751
|
-
page:
|
|
5752
|
-
size:
|
|
5753
|
-
sort:
|
|
5754
|
-
userId:
|
|
5751
|
+
declare const sessionQuerySchema: alepha1572.TObject<{
|
|
5752
|
+
page: alepha1572.TOptional<alepha1572.TInteger>;
|
|
5753
|
+
size: alepha1572.TOptional<alepha1572.TInteger>;
|
|
5754
|
+
sort: alepha1572.TOptional<alepha1572.TString>;
|
|
5755
|
+
userId: alepha1572.TOptional<alepha1572.TString>;
|
|
5755
5756
|
}>;
|
|
5756
5757
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
5757
5758
|
//#endregion
|
|
@@ -5759,19 +5760,19 @@ type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
|
5759
5760
|
declare class SessionCrudService {
|
|
5760
5761
|
protected readonly log: Logger;
|
|
5761
5762
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
5762
|
-
sessions(userRealmName?: string): Repository<
|
|
5763
|
-
id: PgAttr<PgAttr<
|
|
5764
|
-
version: PgAttr<PgAttr<
|
|
5765
|
-
createdAt: PgAttr<PgAttr<
|
|
5766
|
-
updatedAt: PgAttr<PgAttr<
|
|
5767
|
-
refreshToken:
|
|
5768
|
-
userId: PgAttr<
|
|
5769
|
-
expiresAt:
|
|
5770
|
-
ip:
|
|
5771
|
-
userAgent:
|
|
5772
|
-
os:
|
|
5773
|
-
browser:
|
|
5774
|
-
device:
|
|
5763
|
+
sessions(userRealmName?: string): Repository<alepha1572.TObject<{
|
|
5764
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5765
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5766
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5767
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5768
|
+
refreshToken: alepha1572.TString;
|
|
5769
|
+
userId: PgAttr<alepha1572.TString, typeof PG_REF>;
|
|
5770
|
+
expiresAt: alepha1572.TString;
|
|
5771
|
+
ip: alepha1572.TOptional<alepha1572.TString>;
|
|
5772
|
+
userAgent: alepha1572.TOptional<alepha1572.TObject<{
|
|
5773
|
+
os: alepha1572.TString;
|
|
5774
|
+
browser: alepha1572.TString;
|
|
5775
|
+
device: alepha1572.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5775
5776
|
}>>;
|
|
5776
5777
|
}>>;
|
|
5777
5778
|
/**
|
|
@@ -5797,26 +5798,26 @@ declare class SessionController {
|
|
|
5797
5798
|
* Find sessions with pagination and filtering.
|
|
5798
5799
|
*/
|
|
5799
5800
|
readonly findSessions: ActionPrimitiveFn<{
|
|
5800
|
-
query:
|
|
5801
|
-
page:
|
|
5802
|
-
size:
|
|
5803
|
-
sort:
|
|
5804
|
-
userId:
|
|
5805
|
-
userRealmName:
|
|
5801
|
+
query: alepha1572.TObject<{
|
|
5802
|
+
page: alepha1572.TOptional<alepha1572.TInteger>;
|
|
5803
|
+
size: alepha1572.TOptional<alepha1572.TInteger>;
|
|
5804
|
+
sort: alepha1572.TOptional<alepha1572.TString>;
|
|
5805
|
+
userId: alepha1572.TOptional<alepha1572.TString>;
|
|
5806
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
5806
5807
|
}>;
|
|
5807
|
-
response:
|
|
5808
|
-
id:
|
|
5809
|
-
version:
|
|
5810
|
-
createdAt:
|
|
5811
|
-
updatedAt:
|
|
5812
|
-
refreshToken:
|
|
5813
|
-
userId:
|
|
5814
|
-
expiresAt:
|
|
5815
|
-
ip:
|
|
5816
|
-
userAgent:
|
|
5817
|
-
os:
|
|
5818
|
-
browser:
|
|
5819
|
-
device:
|
|
5808
|
+
response: alepha1572.TPage<alepha1572.TObject<{
|
|
5809
|
+
id: alepha1572.TString;
|
|
5810
|
+
version: alepha1572.TNumber;
|
|
5811
|
+
createdAt: alepha1572.TString;
|
|
5812
|
+
updatedAt: alepha1572.TString;
|
|
5813
|
+
refreshToken: alepha1572.TString;
|
|
5814
|
+
userId: alepha1572.TString;
|
|
5815
|
+
expiresAt: alepha1572.TString;
|
|
5816
|
+
ip: alepha1572.TOptional<alepha1572.TString>;
|
|
5817
|
+
userAgent: alepha1572.TOptional<alepha1572.TObject<{
|
|
5818
|
+
os: alepha1572.TString;
|
|
5819
|
+
browser: alepha1572.TString;
|
|
5820
|
+
device: alepha1572.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5820
5821
|
}>>;
|
|
5821
5822
|
}>>;
|
|
5822
5823
|
}>;
|
|
@@ -5824,25 +5825,25 @@ declare class SessionController {
|
|
|
5824
5825
|
* Get a session by ID.
|
|
5825
5826
|
*/
|
|
5826
5827
|
readonly getSession: ActionPrimitiveFn<{
|
|
5827
|
-
params:
|
|
5828
|
-
id:
|
|
5828
|
+
params: alepha1572.TObject<{
|
|
5829
|
+
id: alepha1572.TString;
|
|
5829
5830
|
}>;
|
|
5830
|
-
query:
|
|
5831
|
-
userRealmName:
|
|
5831
|
+
query: alepha1572.TObject<{
|
|
5832
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
5832
5833
|
}>;
|
|
5833
|
-
response:
|
|
5834
|
-
id:
|
|
5835
|
-
version:
|
|
5836
|
-
createdAt:
|
|
5837
|
-
updatedAt:
|
|
5838
|
-
refreshToken:
|
|
5839
|
-
userId:
|
|
5840
|
-
expiresAt:
|
|
5841
|
-
ip:
|
|
5842
|
-
userAgent:
|
|
5843
|
-
os:
|
|
5844
|
-
browser:
|
|
5845
|
-
device:
|
|
5834
|
+
response: alepha1572.TObject<{
|
|
5835
|
+
id: alepha1572.TString;
|
|
5836
|
+
version: alepha1572.TNumber;
|
|
5837
|
+
createdAt: alepha1572.TString;
|
|
5838
|
+
updatedAt: alepha1572.TString;
|
|
5839
|
+
refreshToken: alepha1572.TString;
|
|
5840
|
+
userId: alepha1572.TString;
|
|
5841
|
+
expiresAt: alepha1572.TString;
|
|
5842
|
+
ip: alepha1572.TOptional<alepha1572.TString>;
|
|
5843
|
+
userAgent: alepha1572.TOptional<alepha1572.TObject<{
|
|
5844
|
+
os: alepha1572.TString;
|
|
5845
|
+
browser: alepha1572.TString;
|
|
5846
|
+
device: alepha1572.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5846
5847
|
}>>;
|
|
5847
5848
|
}>;
|
|
5848
5849
|
}>;
|
|
@@ -5850,50 +5851,50 @@ declare class SessionController {
|
|
|
5850
5851
|
* Delete a session.
|
|
5851
5852
|
*/
|
|
5852
5853
|
readonly deleteSession: ActionPrimitiveFn<{
|
|
5853
|
-
params:
|
|
5854
|
-
id:
|
|
5854
|
+
params: alepha1572.TObject<{
|
|
5855
|
+
id: alepha1572.TString;
|
|
5855
5856
|
}>;
|
|
5856
|
-
query:
|
|
5857
|
-
userRealmName:
|
|
5857
|
+
query: alepha1572.TObject<{
|
|
5858
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
5858
5859
|
}>;
|
|
5859
|
-
response:
|
|
5860
|
-
ok:
|
|
5861
|
-
id:
|
|
5862
|
-
count:
|
|
5860
|
+
response: alepha1572.TObject<{
|
|
5861
|
+
ok: alepha1572.TBoolean;
|
|
5862
|
+
id: alepha1572.TOptional<alepha1572.TUnion<[alepha1572.TString, alepha1572.TInteger]>>;
|
|
5863
|
+
count: alepha1572.TOptional<alepha1572.TNumber>;
|
|
5863
5864
|
}>;
|
|
5864
5865
|
}>;
|
|
5865
5866
|
}
|
|
5866
5867
|
//#endregion
|
|
5867
5868
|
//#region ../alepha/src/api-verifications/entities/verifications.d.ts
|
|
5868
|
-
declare const verifications: EntityPrimitive<
|
|
5869
|
-
id: PgAttr<PgAttr<
|
|
5870
|
-
createdAt: PgAttr<PgAttr<
|
|
5871
|
-
updatedAt: PgAttr<PgAttr<
|
|
5872
|
-
version: PgAttr<PgAttr<
|
|
5873
|
-
type:
|
|
5874
|
-
target:
|
|
5875
|
-
code:
|
|
5876
|
-
verifiedAt:
|
|
5877
|
-
attempts: PgAttr<
|
|
5869
|
+
declare const verifications: EntityPrimitive<alepha1572.TObject<{
|
|
5870
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5871
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5872
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5873
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5874
|
+
type: alepha1572.TUnsafe<"link" | "code">;
|
|
5875
|
+
target: alepha1572.TString;
|
|
5876
|
+
code: alepha1572.TString;
|
|
5877
|
+
verifiedAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5878
|
+
attempts: PgAttr<alepha1572.TInteger, typeof PG_DEFAULT>;
|
|
5878
5879
|
}>>;
|
|
5879
5880
|
type VerificationEntity = Static<typeof verifications.schema>;
|
|
5880
5881
|
//#endregion
|
|
5881
5882
|
//#region ../alepha/src/api-verifications/schemas/verificationSettingsSchema.d.ts
|
|
5882
|
-
declare const verificationSettingsSchema:
|
|
5883
|
-
code:
|
|
5884
|
-
maxAttempts:
|
|
5885
|
-
codeLength:
|
|
5886
|
-
codeExpiration:
|
|
5887
|
-
verificationCooldown:
|
|
5888
|
-
limitPerDay:
|
|
5883
|
+
declare const verificationSettingsSchema: alepha1572.TObject<{
|
|
5884
|
+
code: alepha1572.TObject<{
|
|
5885
|
+
maxAttempts: alepha1572.TInteger;
|
|
5886
|
+
codeLength: alepha1572.TInteger;
|
|
5887
|
+
codeExpiration: alepha1572.TInteger;
|
|
5888
|
+
verificationCooldown: alepha1572.TInteger;
|
|
5889
|
+
limitPerDay: alepha1572.TInteger;
|
|
5889
5890
|
}>;
|
|
5890
|
-
link:
|
|
5891
|
-
maxAttempts:
|
|
5892
|
-
codeExpiration:
|
|
5893
|
-
verificationCooldown:
|
|
5894
|
-
limitPerDay:
|
|
5891
|
+
link: alepha1572.TObject<{
|
|
5892
|
+
maxAttempts: alepha1572.TInteger;
|
|
5893
|
+
codeExpiration: alepha1572.TInteger;
|
|
5894
|
+
verificationCooldown: alepha1572.TInteger;
|
|
5895
|
+
limitPerDay: alepha1572.TInteger;
|
|
5895
5896
|
}>;
|
|
5896
|
-
purgeDays:
|
|
5897
|
+
purgeDays: alepha1572.TInteger;
|
|
5897
5898
|
}>;
|
|
5898
5899
|
type VerificationSettings = Static<typeof verificationSettingsSchema>;
|
|
5899
5900
|
//#endregion
|
|
@@ -5901,21 +5902,21 @@ type VerificationSettings = Static<typeof verificationSettingsSchema>;
|
|
|
5901
5902
|
/**
|
|
5902
5903
|
* Verification settings configuration atom
|
|
5903
5904
|
*/
|
|
5904
|
-
declare const verificationOptions:
|
|
5905
|
-
code:
|
|
5906
|
-
maxAttempts:
|
|
5907
|
-
codeLength:
|
|
5908
|
-
codeExpiration:
|
|
5909
|
-
verificationCooldown:
|
|
5910
|
-
limitPerDay:
|
|
5905
|
+
declare const verificationOptions: alepha1572.Atom<alepha1572.TObject<{
|
|
5906
|
+
code: alepha1572.TObject<{
|
|
5907
|
+
maxAttempts: alepha1572.TInteger;
|
|
5908
|
+
codeLength: alepha1572.TInteger;
|
|
5909
|
+
codeExpiration: alepha1572.TInteger;
|
|
5910
|
+
verificationCooldown: alepha1572.TInteger;
|
|
5911
|
+
limitPerDay: alepha1572.TInteger;
|
|
5911
5912
|
}>;
|
|
5912
|
-
link:
|
|
5913
|
-
maxAttempts:
|
|
5914
|
-
codeExpiration:
|
|
5915
|
-
verificationCooldown:
|
|
5916
|
-
limitPerDay:
|
|
5913
|
+
link: alepha1572.TObject<{
|
|
5914
|
+
maxAttempts: alepha1572.TInteger;
|
|
5915
|
+
codeExpiration: alepha1572.TInteger;
|
|
5916
|
+
verificationCooldown: alepha1572.TInteger;
|
|
5917
|
+
limitPerDay: alepha1572.TInteger;
|
|
5917
5918
|
}>;
|
|
5918
|
-
purgeDays:
|
|
5919
|
+
purgeDays: alepha1572.TInteger;
|
|
5919
5920
|
}>, "alepha.api.verifications.options">;
|
|
5920
5921
|
type VerificationOptions = Static<typeof verificationOptions.schema>;
|
|
5921
5922
|
declare module "alepha" {
|
|
@@ -5944,23 +5945,23 @@ declare class VerificationParameters {
|
|
|
5944
5945
|
}
|
|
5945
5946
|
//#endregion
|
|
5946
5947
|
//#region ../alepha/src/api-verifications/schemas/requestVerificationCodeResponseSchema.d.ts
|
|
5947
|
-
declare const requestVerificationCodeResponseSchema:
|
|
5948
|
-
token:
|
|
5949
|
-
codeExpiration:
|
|
5950
|
-
verificationCooldown:
|
|
5951
|
-
maxVerificationAttempts:
|
|
5948
|
+
declare const requestVerificationCodeResponseSchema: alepha1572.TObject<{
|
|
5949
|
+
token: alepha1572.TString;
|
|
5950
|
+
codeExpiration: alepha1572.TInteger;
|
|
5951
|
+
verificationCooldown: alepha1572.TInteger;
|
|
5952
|
+
maxVerificationAttempts: alepha1572.TInteger;
|
|
5952
5953
|
}>;
|
|
5953
5954
|
type RequestVerificationResponse = Static<typeof requestVerificationCodeResponseSchema>;
|
|
5954
5955
|
//#endregion
|
|
5955
5956
|
//#region ../alepha/src/api-verifications/schemas/validateVerificationCodeResponseSchema.d.ts
|
|
5956
|
-
declare const validateVerificationCodeResponseSchema:
|
|
5957
|
-
ok:
|
|
5958
|
-
alreadyVerified:
|
|
5957
|
+
declare const validateVerificationCodeResponseSchema: alepha1572.TObject<{
|
|
5958
|
+
ok: alepha1572.TBoolean;
|
|
5959
|
+
alreadyVerified: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
5959
5960
|
}>;
|
|
5960
5961
|
type ValidateVerificationCodeResponse = Static<typeof validateVerificationCodeResponseSchema>;
|
|
5961
5962
|
//#endregion
|
|
5962
5963
|
//#region ../alepha/src/api-verifications/schemas/verificationTypeEnumSchema.d.ts
|
|
5963
|
-
declare const verificationTypeEnumSchema:
|
|
5964
|
+
declare const verificationTypeEnumSchema: alepha1572.TUnsafe<"link" | "code">;
|
|
5964
5965
|
type VerificationTypeEnum = Static<typeof verificationTypeEnumSchema>;
|
|
5965
5966
|
//#endregion
|
|
5966
5967
|
//#region ../alepha/src/api-verifications/services/VerificationService.d.ts
|
|
@@ -5968,38 +5969,38 @@ declare class VerificationService {
|
|
|
5968
5969
|
protected readonly log: Logger;
|
|
5969
5970
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
5970
5971
|
protected readonly verificationParameters: VerificationParameters;
|
|
5971
|
-
protected readonly verificationRepository: Repository<
|
|
5972
|
-
id: PgAttr<PgAttr<
|
|
5973
|
-
createdAt: PgAttr<PgAttr<
|
|
5974
|
-
updatedAt: PgAttr<PgAttr<
|
|
5975
|
-
version: PgAttr<PgAttr<
|
|
5976
|
-
type:
|
|
5977
|
-
target:
|
|
5978
|
-
code:
|
|
5979
|
-
verifiedAt:
|
|
5980
|
-
attempts: PgAttr<
|
|
5972
|
+
protected readonly verificationRepository: Repository<alepha1572.TObject<{
|
|
5973
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5974
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5975
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5976
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5977
|
+
type: alepha1572.TUnsafe<"link" | "code">;
|
|
5978
|
+
target: alepha1572.TString;
|
|
5979
|
+
code: alepha1572.TString;
|
|
5980
|
+
verifiedAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5981
|
+
attempts: PgAttr<alepha1572.TInteger, typeof PG_DEFAULT>;
|
|
5981
5982
|
}>>;
|
|
5982
5983
|
findByEntry(entry: VerificationEntry): Promise<VerificationEntity>;
|
|
5983
|
-
findRecentsByEntry(entry: VerificationEntry): Promise<PgStatic<
|
|
5984
|
-
id: PgAttr<PgAttr<
|
|
5985
|
-
createdAt: PgAttr<PgAttr<
|
|
5986
|
-
updatedAt: PgAttr<PgAttr<
|
|
5987
|
-
version: PgAttr<PgAttr<
|
|
5988
|
-
type:
|
|
5989
|
-
target:
|
|
5990
|
-
code:
|
|
5991
|
-
verifiedAt:
|
|
5992
|
-
attempts: PgAttr<
|
|
5993
|
-
}>, PgRelationMap<
|
|
5994
|
-
id: PgAttr<PgAttr<
|
|
5995
|
-
createdAt: PgAttr<PgAttr<
|
|
5996
|
-
updatedAt: PgAttr<PgAttr<
|
|
5997
|
-
version: PgAttr<PgAttr<
|
|
5998
|
-
type:
|
|
5999
|
-
target:
|
|
6000
|
-
code:
|
|
6001
|
-
verifiedAt:
|
|
6002
|
-
attempts: PgAttr<
|
|
5984
|
+
findRecentsByEntry(entry: VerificationEntry): Promise<PgStatic<alepha1572.TObject<{
|
|
5985
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5986
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5987
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5988
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5989
|
+
type: alepha1572.TUnsafe<"link" | "code">;
|
|
5990
|
+
target: alepha1572.TString;
|
|
5991
|
+
code: alepha1572.TString;
|
|
5992
|
+
verifiedAt: alepha1572.TOptional<alepha1572.TString>;
|
|
5993
|
+
attempts: PgAttr<alepha1572.TInteger, typeof PG_DEFAULT>;
|
|
5994
|
+
}>, PgRelationMap<alepha1572.TObject<{
|
|
5995
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5996
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5997
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5998
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5999
|
+
type: alepha1572.TUnsafe<"link" | "code">;
|
|
6000
|
+
target: alepha1572.TString;
|
|
6001
|
+
code: alepha1572.TString;
|
|
6002
|
+
verifiedAt: alepha1572.TOptional<alepha1572.TString>;
|
|
6003
|
+
attempts: PgAttr<alepha1572.TInteger, typeof PG_DEFAULT>;
|
|
6003
6004
|
}>>>[]>;
|
|
6004
6005
|
/**
|
|
6005
6006
|
* Creates a verification entry and returns the token.
|
|
@@ -6022,60 +6023,60 @@ declare class VerificationController {
|
|
|
6022
6023
|
readonly url = "/verifications";
|
|
6023
6024
|
readonly group = "verifications";
|
|
6024
6025
|
readonly requestVerificationCode: ActionPrimitiveFn<{
|
|
6025
|
-
params:
|
|
6026
|
-
type:
|
|
6026
|
+
params: alepha1572.TObject<{
|
|
6027
|
+
type: alepha1572.TUnsafe<"link" | "code">;
|
|
6027
6028
|
}>;
|
|
6028
|
-
body:
|
|
6029
|
-
target:
|
|
6029
|
+
body: alepha1572.TObject<{
|
|
6030
|
+
target: alepha1572.TString;
|
|
6030
6031
|
}>;
|
|
6031
|
-
response:
|
|
6032
|
-
token:
|
|
6033
|
-
codeExpiration:
|
|
6034
|
-
verificationCooldown:
|
|
6035
|
-
maxVerificationAttempts:
|
|
6032
|
+
response: alepha1572.TObject<{
|
|
6033
|
+
token: alepha1572.TString;
|
|
6034
|
+
codeExpiration: alepha1572.TInteger;
|
|
6035
|
+
verificationCooldown: alepha1572.TInteger;
|
|
6036
|
+
maxVerificationAttempts: alepha1572.TInteger;
|
|
6036
6037
|
}>;
|
|
6037
6038
|
}>;
|
|
6038
6039
|
readonly validateVerificationCode: ActionPrimitiveFn<{
|
|
6039
|
-
params:
|
|
6040
|
-
type:
|
|
6040
|
+
params: alepha1572.TObject<{
|
|
6041
|
+
type: alepha1572.TUnsafe<"link" | "code">;
|
|
6041
6042
|
}>;
|
|
6042
|
-
body:
|
|
6043
|
-
target:
|
|
6044
|
-
token:
|
|
6043
|
+
body: alepha1572.TObject<{
|
|
6044
|
+
target: alepha1572.TString;
|
|
6045
|
+
token: alepha1572.TString;
|
|
6045
6046
|
}>;
|
|
6046
|
-
response:
|
|
6047
|
-
ok:
|
|
6048
|
-
alreadyVerified:
|
|
6047
|
+
response: alepha1572.TObject<{
|
|
6048
|
+
ok: alepha1572.TBoolean;
|
|
6049
|
+
alreadyVerified: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
6049
6050
|
}>;
|
|
6050
6051
|
}>;
|
|
6051
6052
|
}
|
|
6052
6053
|
//#endregion
|
|
6053
6054
|
//#region ../alepha/src/api-users/notifications/UserNotifications.d.ts
|
|
6054
6055
|
declare class UserNotifications {
|
|
6055
|
-
readonly passwordReset: NotificationPrimitive<
|
|
6056
|
-
email:
|
|
6057
|
-
code:
|
|
6058
|
-
expiresInMinutes:
|
|
6056
|
+
readonly passwordReset: NotificationPrimitive<alepha1572.TObject<{
|
|
6057
|
+
email: alepha1572.TString;
|
|
6058
|
+
code: alepha1572.TString;
|
|
6059
|
+
expiresInMinutes: alepha1572.TNumber;
|
|
6059
6060
|
}>>;
|
|
6060
|
-
readonly emailVerification: NotificationPrimitive<
|
|
6061
|
-
email:
|
|
6062
|
-
code:
|
|
6063
|
-
expiresInMinutes:
|
|
6061
|
+
readonly emailVerification: NotificationPrimitive<alepha1572.TObject<{
|
|
6062
|
+
email: alepha1572.TString;
|
|
6063
|
+
code: alepha1572.TString;
|
|
6064
|
+
expiresInMinutes: alepha1572.TNumber;
|
|
6064
6065
|
}>>;
|
|
6065
|
-
readonly phoneVerification: NotificationPrimitive<
|
|
6066
|
-
phoneNumber:
|
|
6067
|
-
code:
|
|
6068
|
-
expiresInMinutes:
|
|
6066
|
+
readonly phoneVerification: NotificationPrimitive<alepha1572.TObject<{
|
|
6067
|
+
phoneNumber: alepha1572.TString;
|
|
6068
|
+
code: alepha1572.TString;
|
|
6069
|
+
expiresInMinutes: alepha1572.TNumber;
|
|
6069
6070
|
}>>;
|
|
6070
|
-
readonly passwordResetLink: NotificationPrimitive<
|
|
6071
|
-
email:
|
|
6072
|
-
resetUrl:
|
|
6073
|
-
expiresInMinutes:
|
|
6071
|
+
readonly passwordResetLink: NotificationPrimitive<alepha1572.TObject<{
|
|
6072
|
+
email: alepha1572.TString;
|
|
6073
|
+
resetUrl: alepha1572.TString;
|
|
6074
|
+
expiresInMinutes: alepha1572.TNumber;
|
|
6074
6075
|
}>>;
|
|
6075
|
-
readonly emailVerificationLink: NotificationPrimitive<
|
|
6076
|
-
email:
|
|
6077
|
-
verifyUrl:
|
|
6078
|
-
expiresInMinutes:
|
|
6076
|
+
readonly emailVerificationLink: NotificationPrimitive<alepha1572.TObject<{
|
|
6077
|
+
email: alepha1572.TString;
|
|
6078
|
+
verifyUrl: alepha1572.TString;
|
|
6079
|
+
expiresInMinutes: alepha1572.TNumber;
|
|
6079
6080
|
}>>;
|
|
6080
6081
|
}
|
|
6081
6082
|
//#endregion
|
|
@@ -6086,10 +6087,10 @@ declare class UserNotifications {
|
|
|
6086
6087
|
* Requires the intent ID from Phase 1, the verification code,
|
|
6087
6088
|
* and the new password.
|
|
6088
6089
|
*/
|
|
6089
|
-
declare const completePasswordResetRequestSchema:
|
|
6090
|
-
intentId:
|
|
6091
|
-
code:
|
|
6092
|
-
newPassword:
|
|
6090
|
+
declare const completePasswordResetRequestSchema: alepha1572.TObject<{
|
|
6091
|
+
intentId: alepha1572.TString;
|
|
6092
|
+
code: alepha1572.TString;
|
|
6093
|
+
newPassword: alepha1572.TString;
|
|
6093
6094
|
}>;
|
|
6094
6095
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
6095
6096
|
//#endregion
|
|
@@ -6100,9 +6101,9 @@ type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSc
|
|
|
6100
6101
|
* Contains the intent ID needed for Phase 2 completion,
|
|
6101
6102
|
* along with expiration time.
|
|
6102
6103
|
*/
|
|
6103
|
-
declare const passwordResetIntentResponseSchema:
|
|
6104
|
-
intentId:
|
|
6105
|
-
expiresAt:
|
|
6104
|
+
declare const passwordResetIntentResponseSchema: alepha1572.TObject<{
|
|
6105
|
+
intentId: alepha1572.TString;
|
|
6106
|
+
expiresAt: alepha1572.TString;
|
|
6106
6107
|
}>;
|
|
6107
6108
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
6108
6109
|
//#endregion
|
|
@@ -6125,47 +6126,47 @@ declare class CredentialService {
|
|
|
6125
6126
|
protected readonly userNotifications: UserNotifications;
|
|
6126
6127
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
6127
6128
|
protected readonly intentCache: CachePrimitiveFn<PasswordResetIntent, any[]>;
|
|
6128
|
-
users(userRealmName?: string): Repository<
|
|
6129
|
-
id: PgAttr<PgAttr<
|
|
6130
|
-
version: PgAttr<PgAttr<
|
|
6131
|
-
createdAt: PgAttr<PgAttr<
|
|
6132
|
-
updatedAt: PgAttr<PgAttr<
|
|
6133
|
-
realm: PgAttr<
|
|
6134
|
-
username:
|
|
6135
|
-
email:
|
|
6136
|
-
phoneNumber:
|
|
6137
|
-
roles: PgAttr<
|
|
6138
|
-
firstName:
|
|
6139
|
-
lastName:
|
|
6140
|
-
picture:
|
|
6141
|
-
enabled: PgAttr<
|
|
6142
|
-
emailVerified: PgAttr<
|
|
6129
|
+
users(userRealmName?: string): Repository<alepha1572.TObject<{
|
|
6130
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6131
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6132
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6133
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6134
|
+
realm: PgAttr<alepha1572.TString, typeof PG_DEFAULT>;
|
|
6135
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
6136
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6137
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TString>;
|
|
6138
|
+
roles: PgAttr<alepha1572.TArray<alepha1572.TString>, typeof PG_DEFAULT>;
|
|
6139
|
+
firstName: alepha1572.TOptional<alepha1572.TString>;
|
|
6140
|
+
lastName: alepha1572.TOptional<alepha1572.TString>;
|
|
6141
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
6142
|
+
enabled: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6143
|
+
emailVerified: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6143
6144
|
}>>;
|
|
6144
|
-
sessions(userRealmName?: string): Repository<
|
|
6145
|
-
id: PgAttr<PgAttr<
|
|
6146
|
-
version: PgAttr<PgAttr<
|
|
6147
|
-
createdAt: PgAttr<PgAttr<
|
|
6148
|
-
updatedAt: PgAttr<PgAttr<
|
|
6149
|
-
refreshToken:
|
|
6150
|
-
userId: PgAttr<
|
|
6151
|
-
expiresAt:
|
|
6152
|
-
ip:
|
|
6153
|
-
userAgent:
|
|
6154
|
-
os:
|
|
6155
|
-
browser:
|
|
6156
|
-
device:
|
|
6145
|
+
sessions(userRealmName?: string): Repository<alepha1572.TObject<{
|
|
6146
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6147
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6148
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6149
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6150
|
+
refreshToken: alepha1572.TString;
|
|
6151
|
+
userId: PgAttr<alepha1572.TString, typeof PG_REF>;
|
|
6152
|
+
expiresAt: alepha1572.TString;
|
|
6153
|
+
ip: alepha1572.TOptional<alepha1572.TString>;
|
|
6154
|
+
userAgent: alepha1572.TOptional<alepha1572.TObject<{
|
|
6155
|
+
os: alepha1572.TString;
|
|
6156
|
+
browser: alepha1572.TString;
|
|
6157
|
+
device: alepha1572.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
6157
6158
|
}>>;
|
|
6158
6159
|
}>>;
|
|
6159
|
-
identities(userRealmName?: string): Repository<
|
|
6160
|
-
id: PgAttr<PgAttr<
|
|
6161
|
-
version: PgAttr<PgAttr<
|
|
6162
|
-
createdAt: PgAttr<PgAttr<
|
|
6163
|
-
updatedAt: PgAttr<PgAttr<
|
|
6164
|
-
userId: PgAttr<
|
|
6165
|
-
password:
|
|
6166
|
-
provider:
|
|
6167
|
-
providerUserId:
|
|
6168
|
-
providerData:
|
|
6160
|
+
identities(userRealmName?: string): Repository<alepha1572.TObject<{
|
|
6161
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6162
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6163
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6164
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6165
|
+
userId: PgAttr<alepha1572.TString, typeof PG_REF>;
|
|
6166
|
+
password: alepha1572.TOptional<alepha1572.TString>;
|
|
6167
|
+
provider: alepha1572.TString;
|
|
6168
|
+
providerUserId: alepha1572.TOptional<alepha1572.TString>;
|
|
6169
|
+
providerData: alepha1572.TOptional<alepha1572.TRecord<string, alepha1572.TAny>>;
|
|
6169
6170
|
}>>;
|
|
6170
6171
|
/**
|
|
6171
6172
|
* Phase 1: Create a password reset intent.
|
|
@@ -6202,11 +6203,11 @@ declare class CredentialService {
|
|
|
6202
6203
|
}
|
|
6203
6204
|
//#endregion
|
|
6204
6205
|
//#region ../alepha/src/api-users/schemas/completeRegistrationRequestSchema.d.ts
|
|
6205
|
-
declare const completeRegistrationRequestSchema:
|
|
6206
|
-
intentId:
|
|
6207
|
-
emailCode:
|
|
6208
|
-
phoneCode:
|
|
6209
|
-
captchaToken:
|
|
6206
|
+
declare const completeRegistrationRequestSchema: alepha1572.TObject<{
|
|
6207
|
+
intentId: alepha1572.TString;
|
|
6208
|
+
emailCode: alepha1572.TOptional<alepha1572.TString>;
|
|
6209
|
+
phoneCode: alepha1572.TOptional<alepha1572.TString>;
|
|
6210
|
+
captchaToken: alepha1572.TOptional<alepha1572.TString>;
|
|
6210
6211
|
}>;
|
|
6211
6212
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
6212
6213
|
//#endregion
|
|
@@ -6215,24 +6216,24 @@ type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSche
|
|
|
6215
6216
|
* Schema for user registration request body.
|
|
6216
6217
|
* Password is always required, other fields depend on realm settings.
|
|
6217
6218
|
*/
|
|
6218
|
-
declare const registerRequestSchema:
|
|
6219
|
-
password:
|
|
6220
|
-
username:
|
|
6221
|
-
email:
|
|
6222
|
-
phoneNumber:
|
|
6223
|
-
firstName:
|
|
6224
|
-
lastName:
|
|
6225
|
-
picture:
|
|
6219
|
+
declare const registerRequestSchema: alepha1572.TObject<{
|
|
6220
|
+
password: alepha1572.TString;
|
|
6221
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
6222
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6223
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TString>;
|
|
6224
|
+
firstName: alepha1572.TOptional<alepha1572.TString>;
|
|
6225
|
+
lastName: alepha1572.TOptional<alepha1572.TString>;
|
|
6226
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
6226
6227
|
}>;
|
|
6227
6228
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
6228
6229
|
//#endregion
|
|
6229
6230
|
//#region ../alepha/src/api-users/schemas/registrationIntentResponseSchema.d.ts
|
|
6230
|
-
declare const registrationIntentResponseSchema:
|
|
6231
|
-
intentId:
|
|
6232
|
-
expectCaptcha:
|
|
6233
|
-
expectEmailVerification:
|
|
6234
|
-
expectPhoneVerification:
|
|
6235
|
-
expiresAt:
|
|
6231
|
+
declare const registrationIntentResponseSchema: alepha1572.TObject<{
|
|
6232
|
+
intentId: alepha1572.TString;
|
|
6233
|
+
expectCaptcha: alepha1572.TBoolean;
|
|
6234
|
+
expectEmailVerification: alepha1572.TBoolean;
|
|
6235
|
+
expectPhoneVerification: alepha1572.TBoolean;
|
|
6236
|
+
expiresAt: alepha1572.TString;
|
|
6236
6237
|
}>;
|
|
6237
6238
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
6238
6239
|
//#endregion
|
|
@@ -6303,46 +6304,46 @@ declare class RegistrationService {
|
|
|
6303
6304
|
}
|
|
6304
6305
|
//#endregion
|
|
6305
6306
|
//#region ../alepha/src/api-users/schemas/createUserSchema.d.ts
|
|
6306
|
-
declare const createUserSchema:
|
|
6307
|
-
id:
|
|
6308
|
-
email:
|
|
6309
|
-
username:
|
|
6310
|
-
picture:
|
|
6311
|
-
roles:
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6307
|
+
declare const createUserSchema: alepha1572.TObject<{
|
|
6308
|
+
id: alepha1572.TOptional<PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
6309
|
+
email: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6310
|
+
username: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6311
|
+
picture: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6312
|
+
roles: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
6313
|
+
version: alepha1572.TOptional<PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
6314
|
+
createdAt: alepha1572.TOptional<PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
6315
|
+
updatedAt: alepha1572.TOptional<PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
6316
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6317
|
+
firstName: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6318
|
+
lastName: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6319
|
+
enabled: alepha1572.TOptional<PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>>;
|
|
6320
|
+
emailVerified: alepha1572.TOptional<PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>>;
|
|
6320
6321
|
}>;
|
|
6321
6322
|
type CreateUser = Static<typeof createUserSchema>;
|
|
6322
6323
|
//#endregion
|
|
6323
6324
|
//#region ../alepha/src/api-users/schemas/updateUserSchema.d.ts
|
|
6324
|
-
declare const updateUserSchema:
|
|
6325
|
-
email:
|
|
6326
|
-
picture:
|
|
6327
|
-
roles:
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6325
|
+
declare const updateUserSchema: alepha1572.TObject<{
|
|
6326
|
+
email: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6327
|
+
picture: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6328
|
+
roles: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
6329
|
+
realm: alepha1572.TOptional<PgAttr<alepha1572.TString, typeof PG_DEFAULT>>;
|
|
6330
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6331
|
+
firstName: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6332
|
+
lastName: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6333
|
+
enabled: alepha1572.TOptional<PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>>;
|
|
6333
6334
|
}>;
|
|
6334
6335
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
6335
6336
|
//#endregion
|
|
6336
6337
|
//#region ../alepha/src/api-users/schemas/userQuerySchema.d.ts
|
|
6337
|
-
declare const userQuerySchema:
|
|
6338
|
-
page:
|
|
6339
|
-
size:
|
|
6340
|
-
sort:
|
|
6341
|
-
email:
|
|
6342
|
-
enabled:
|
|
6343
|
-
emailVerified:
|
|
6344
|
-
roles:
|
|
6345
|
-
query:
|
|
6338
|
+
declare const userQuerySchema: alepha1572.TObject<{
|
|
6339
|
+
page: alepha1572.TOptional<alepha1572.TInteger>;
|
|
6340
|
+
size: alepha1572.TOptional<alepha1572.TInteger>;
|
|
6341
|
+
sort: alepha1572.TOptional<alepha1572.TString>;
|
|
6342
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6343
|
+
enabled: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
6344
|
+
emailVerified: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
6345
|
+
roles: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
6346
|
+
query: alepha1572.TOptional<alepha1572.TString>;
|
|
6346
6347
|
}>;
|
|
6347
6348
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
6348
6349
|
//#endregion
|
|
@@ -6352,21 +6353,21 @@ declare class UserService {
|
|
|
6352
6353
|
protected readonly verificationController: HttpVirtualClient<VerificationController>;
|
|
6353
6354
|
protected readonly userNotifications: UserNotifications;
|
|
6354
6355
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
6355
|
-
users(userRealmName?: string): Repository<
|
|
6356
|
-
id: PgAttr<PgAttr<
|
|
6357
|
-
version: PgAttr<PgAttr<
|
|
6358
|
-
createdAt: PgAttr<PgAttr<
|
|
6359
|
-
updatedAt: PgAttr<PgAttr<
|
|
6360
|
-
realm: PgAttr<
|
|
6361
|
-
username:
|
|
6362
|
-
email:
|
|
6363
|
-
phoneNumber:
|
|
6364
|
-
roles: PgAttr<
|
|
6365
|
-
firstName:
|
|
6366
|
-
lastName:
|
|
6367
|
-
picture:
|
|
6368
|
-
enabled: PgAttr<
|
|
6369
|
-
emailVerified: PgAttr<
|
|
6356
|
+
users(userRealmName?: string): Repository<alepha1572.TObject<{
|
|
6357
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6358
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6359
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6360
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6361
|
+
realm: PgAttr<alepha1572.TString, typeof PG_DEFAULT>;
|
|
6362
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
6363
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6364
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TString>;
|
|
6365
|
+
roles: PgAttr<alepha1572.TArray<alepha1572.TString>, typeof PG_DEFAULT>;
|
|
6366
|
+
firstName: alepha1572.TOptional<alepha1572.TString>;
|
|
6367
|
+
lastName: alepha1572.TOptional<alepha1572.TString>;
|
|
6368
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
6369
|
+
enabled: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6370
|
+
emailVerified: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6370
6371
|
}>>;
|
|
6371
6372
|
/**
|
|
6372
6373
|
* Request email verification for a user.
|
|
@@ -6419,122 +6420,122 @@ declare class UserController {
|
|
|
6419
6420
|
* Validates data, creates verification sessions, and stores intent in cache.
|
|
6420
6421
|
*/
|
|
6421
6422
|
readonly createRegistrationIntent: ActionPrimitiveFn<{
|
|
6422
|
-
body:
|
|
6423
|
-
password:
|
|
6424
|
-
username:
|
|
6425
|
-
email:
|
|
6426
|
-
phoneNumber:
|
|
6427
|
-
firstName:
|
|
6428
|
-
lastName:
|
|
6429
|
-
picture:
|
|
6423
|
+
body: alepha1572.TObject<{
|
|
6424
|
+
password: alepha1572.TString;
|
|
6425
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
6426
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6427
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TString>;
|
|
6428
|
+
firstName: alepha1572.TOptional<alepha1572.TString>;
|
|
6429
|
+
lastName: alepha1572.TOptional<alepha1572.TString>;
|
|
6430
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
6430
6431
|
}>;
|
|
6431
|
-
query:
|
|
6432
|
-
userRealmName:
|
|
6432
|
+
query: alepha1572.TObject<{
|
|
6433
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6433
6434
|
}>;
|
|
6434
|
-
response:
|
|
6435
|
-
intentId:
|
|
6436
|
-
expectCaptcha:
|
|
6437
|
-
expectEmailVerification:
|
|
6438
|
-
expectPhoneVerification:
|
|
6439
|
-
expiresAt:
|
|
6435
|
+
response: alepha1572.TObject<{
|
|
6436
|
+
intentId: alepha1572.TString;
|
|
6437
|
+
expectCaptcha: alepha1572.TBoolean;
|
|
6438
|
+
expectEmailVerification: alepha1572.TBoolean;
|
|
6439
|
+
expectPhoneVerification: alepha1572.TBoolean;
|
|
6440
|
+
expiresAt: alepha1572.TString;
|
|
6440
6441
|
}>;
|
|
6441
6442
|
}>;
|
|
6442
6443
|
/**
|
|
6443
6444
|
* Find users with pagination and filtering.
|
|
6444
6445
|
*/
|
|
6445
6446
|
readonly findUsers: ActionPrimitiveFn<{
|
|
6446
|
-
query:
|
|
6447
|
-
page:
|
|
6448
|
-
size:
|
|
6449
|
-
sort:
|
|
6450
|
-
email:
|
|
6451
|
-
enabled:
|
|
6452
|
-
emailVerified:
|
|
6453
|
-
roles:
|
|
6454
|
-
query:
|
|
6455
|
-
userRealmName:
|
|
6447
|
+
query: alepha1572.TObject<{
|
|
6448
|
+
page: alepha1572.TOptional<alepha1572.TInteger>;
|
|
6449
|
+
size: alepha1572.TOptional<alepha1572.TInteger>;
|
|
6450
|
+
sort: alepha1572.TOptional<alepha1572.TString>;
|
|
6451
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6452
|
+
enabled: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
6453
|
+
emailVerified: alepha1572.TOptional<alepha1572.TBoolean>;
|
|
6454
|
+
roles: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
6455
|
+
query: alepha1572.TOptional<alepha1572.TString>;
|
|
6456
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6456
6457
|
}>;
|
|
6457
|
-
response:
|
|
6458
|
-
id: PgAttr<PgAttr<
|
|
6459
|
-
version: PgAttr<PgAttr<
|
|
6460
|
-
createdAt: PgAttr<PgAttr<
|
|
6461
|
-
updatedAt: PgAttr<PgAttr<
|
|
6462
|
-
realm: PgAttr<
|
|
6463
|
-
username:
|
|
6464
|
-
email:
|
|
6465
|
-
phoneNumber:
|
|
6466
|
-
roles: PgAttr<
|
|
6467
|
-
firstName:
|
|
6468
|
-
lastName:
|
|
6469
|
-
picture:
|
|
6470
|
-
enabled: PgAttr<
|
|
6471
|
-
emailVerified: PgAttr<
|
|
6458
|
+
response: alepha1572.TPage<alepha1572.TObject<{
|
|
6459
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6460
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6461
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6462
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6463
|
+
realm: PgAttr<alepha1572.TString, typeof PG_DEFAULT>;
|
|
6464
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
6465
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6466
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TString>;
|
|
6467
|
+
roles: PgAttr<alepha1572.TArray<alepha1572.TString>, typeof PG_DEFAULT>;
|
|
6468
|
+
firstName: alepha1572.TOptional<alepha1572.TString>;
|
|
6469
|
+
lastName: alepha1572.TOptional<alepha1572.TString>;
|
|
6470
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
6471
|
+
enabled: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6472
|
+
emailVerified: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6472
6473
|
}>>;
|
|
6473
6474
|
}>;
|
|
6474
6475
|
/**
|
|
6475
6476
|
* Get a user by ID.
|
|
6476
6477
|
*/
|
|
6477
6478
|
readonly getUser: ActionPrimitiveFn<{
|
|
6478
|
-
params:
|
|
6479
|
-
id:
|
|
6479
|
+
params: alepha1572.TObject<{
|
|
6480
|
+
id: alepha1572.TString;
|
|
6480
6481
|
}>;
|
|
6481
|
-
query:
|
|
6482
|
-
userRealmName:
|
|
6482
|
+
query: alepha1572.TObject<{
|
|
6483
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6483
6484
|
}>;
|
|
6484
|
-
response:
|
|
6485
|
-
id: PgAttr<PgAttr<
|
|
6486
|
-
version: PgAttr<PgAttr<
|
|
6487
|
-
createdAt: PgAttr<PgAttr<
|
|
6488
|
-
updatedAt: PgAttr<PgAttr<
|
|
6489
|
-
realm: PgAttr<
|
|
6490
|
-
username:
|
|
6491
|
-
email:
|
|
6492
|
-
phoneNumber:
|
|
6493
|
-
roles: PgAttr<
|
|
6494
|
-
firstName:
|
|
6495
|
-
lastName:
|
|
6496
|
-
picture:
|
|
6497
|
-
enabled: PgAttr<
|
|
6498
|
-
emailVerified: PgAttr<
|
|
6485
|
+
response: alepha1572.TObject<{
|
|
6486
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6487
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6488
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6489
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6490
|
+
realm: PgAttr<alepha1572.TString, typeof PG_DEFAULT>;
|
|
6491
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
6492
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6493
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TString>;
|
|
6494
|
+
roles: PgAttr<alepha1572.TArray<alepha1572.TString>, typeof PG_DEFAULT>;
|
|
6495
|
+
firstName: alepha1572.TOptional<alepha1572.TString>;
|
|
6496
|
+
lastName: alepha1572.TOptional<alepha1572.TString>;
|
|
6497
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
6498
|
+
enabled: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6499
|
+
emailVerified: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6499
6500
|
}>;
|
|
6500
6501
|
}>;
|
|
6501
6502
|
/**
|
|
6502
6503
|
* Create a new user.
|
|
6503
6504
|
*/
|
|
6504
6505
|
readonly createUser: ActionPrimitiveFn<{
|
|
6505
|
-
query:
|
|
6506
|
-
userRealmName:
|
|
6506
|
+
query: alepha1572.TObject<{
|
|
6507
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6507
6508
|
}>;
|
|
6508
|
-
body:
|
|
6509
|
-
id:
|
|
6510
|
-
email:
|
|
6511
|
-
username:
|
|
6512
|
-
picture:
|
|
6513
|
-
roles:
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6509
|
+
body: alepha1572.TObject<{
|
|
6510
|
+
id: alepha1572.TOptional<PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
6511
|
+
email: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6512
|
+
username: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6513
|
+
picture: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6514
|
+
roles: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
6515
|
+
version: alepha1572.TOptional<PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
6516
|
+
createdAt: alepha1572.TOptional<PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
6517
|
+
updatedAt: alepha1572.TOptional<PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
6518
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6519
|
+
firstName: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6520
|
+
lastName: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6521
|
+
enabled: alepha1572.TOptional<PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>>;
|
|
6522
|
+
emailVerified: alepha1572.TOptional<PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>>;
|
|
6522
6523
|
}>;
|
|
6523
|
-
response:
|
|
6524
|
-
id: PgAttr<PgAttr<
|
|
6525
|
-
version: PgAttr<PgAttr<
|
|
6526
|
-
createdAt: PgAttr<PgAttr<
|
|
6527
|
-
updatedAt: PgAttr<PgAttr<
|
|
6528
|
-
realm: PgAttr<
|
|
6529
|
-
username:
|
|
6530
|
-
email:
|
|
6531
|
-
phoneNumber:
|
|
6532
|
-
roles: PgAttr<
|
|
6533
|
-
firstName:
|
|
6534
|
-
lastName:
|
|
6535
|
-
picture:
|
|
6536
|
-
enabled: PgAttr<
|
|
6537
|
-
emailVerified: PgAttr<
|
|
6524
|
+
response: alepha1572.TObject<{
|
|
6525
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6526
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6527
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6528
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6529
|
+
realm: PgAttr<alepha1572.TString, typeof PG_DEFAULT>;
|
|
6530
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
6531
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6532
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TString>;
|
|
6533
|
+
roles: PgAttr<alepha1572.TArray<alepha1572.TString>, typeof PG_DEFAULT>;
|
|
6534
|
+
firstName: alepha1572.TOptional<alepha1572.TString>;
|
|
6535
|
+
lastName: alepha1572.TOptional<alepha1572.TString>;
|
|
6536
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
6537
|
+
enabled: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6538
|
+
emailVerified: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6538
6539
|
}>;
|
|
6539
6540
|
}>;
|
|
6540
6541
|
/**
|
|
@@ -6542,80 +6543,80 @@ declare class UserController {
|
|
|
6542
6543
|
* Validates verification codes and creates the user.
|
|
6543
6544
|
*/
|
|
6544
6545
|
readonly createUserFromIntent: ActionPrimitiveFn<{
|
|
6545
|
-
body:
|
|
6546
|
-
intentId:
|
|
6547
|
-
emailCode:
|
|
6548
|
-
phoneCode:
|
|
6549
|
-
captchaToken:
|
|
6546
|
+
body: alepha1572.TObject<{
|
|
6547
|
+
intentId: alepha1572.TString;
|
|
6548
|
+
emailCode: alepha1572.TOptional<alepha1572.TString>;
|
|
6549
|
+
phoneCode: alepha1572.TOptional<alepha1572.TString>;
|
|
6550
|
+
captchaToken: alepha1572.TOptional<alepha1572.TString>;
|
|
6550
6551
|
}>;
|
|
6551
|
-
response:
|
|
6552
|
-
id: PgAttr<PgAttr<
|
|
6553
|
-
version: PgAttr<PgAttr<
|
|
6554
|
-
createdAt: PgAttr<PgAttr<
|
|
6555
|
-
updatedAt: PgAttr<PgAttr<
|
|
6556
|
-
realm: PgAttr<
|
|
6557
|
-
username:
|
|
6558
|
-
email:
|
|
6559
|
-
phoneNumber:
|
|
6560
|
-
roles: PgAttr<
|
|
6561
|
-
firstName:
|
|
6562
|
-
lastName:
|
|
6563
|
-
picture:
|
|
6564
|
-
enabled: PgAttr<
|
|
6565
|
-
emailVerified: PgAttr<
|
|
6552
|
+
response: alepha1572.TObject<{
|
|
6553
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6554
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6555
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6556
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6557
|
+
realm: PgAttr<alepha1572.TString, typeof PG_DEFAULT>;
|
|
6558
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
6559
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6560
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TString>;
|
|
6561
|
+
roles: PgAttr<alepha1572.TArray<alepha1572.TString>, typeof PG_DEFAULT>;
|
|
6562
|
+
firstName: alepha1572.TOptional<alepha1572.TString>;
|
|
6563
|
+
lastName: alepha1572.TOptional<alepha1572.TString>;
|
|
6564
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
6565
|
+
enabled: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6566
|
+
emailVerified: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6566
6567
|
}>;
|
|
6567
6568
|
}>;
|
|
6568
6569
|
/**
|
|
6569
6570
|
* Update a user.
|
|
6570
6571
|
*/
|
|
6571
6572
|
readonly updateUser: ActionPrimitiveFn<{
|
|
6572
|
-
params:
|
|
6573
|
-
id:
|
|
6573
|
+
params: alepha1572.TObject<{
|
|
6574
|
+
id: alepha1572.TString;
|
|
6574
6575
|
}>;
|
|
6575
|
-
query:
|
|
6576
|
-
userRealmName:
|
|
6576
|
+
query: alepha1572.TObject<{
|
|
6577
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6577
6578
|
}>;
|
|
6578
|
-
body:
|
|
6579
|
-
email:
|
|
6580
|
-
picture:
|
|
6581
|
-
roles:
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6579
|
+
body: alepha1572.TObject<{
|
|
6580
|
+
email: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6581
|
+
picture: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6582
|
+
roles: alepha1572.TOptional<alepha1572.TArray<alepha1572.TString>>;
|
|
6583
|
+
realm: alepha1572.TOptional<PgAttr<alepha1572.TString, typeof PG_DEFAULT>>;
|
|
6584
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6585
|
+
firstName: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6586
|
+
lastName: alepha1572.TOptional<alepha1572.TOptional<alepha1572.TString>>;
|
|
6587
|
+
enabled: alepha1572.TOptional<PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>>;
|
|
6587
6588
|
}>;
|
|
6588
|
-
response:
|
|
6589
|
-
id: PgAttr<PgAttr<
|
|
6590
|
-
version: PgAttr<PgAttr<
|
|
6591
|
-
createdAt: PgAttr<PgAttr<
|
|
6592
|
-
updatedAt: PgAttr<PgAttr<
|
|
6593
|
-
realm: PgAttr<
|
|
6594
|
-
username:
|
|
6595
|
-
email:
|
|
6596
|
-
phoneNumber:
|
|
6597
|
-
roles: PgAttr<
|
|
6598
|
-
firstName:
|
|
6599
|
-
lastName:
|
|
6600
|
-
picture:
|
|
6601
|
-
enabled: PgAttr<
|
|
6602
|
-
emailVerified: PgAttr<
|
|
6589
|
+
response: alepha1572.TObject<{
|
|
6590
|
+
id: PgAttr<PgAttr<alepha1572.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6591
|
+
version: PgAttr<PgAttr<alepha1572.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6592
|
+
createdAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6593
|
+
updatedAt: PgAttr<PgAttr<alepha1572.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6594
|
+
realm: PgAttr<alepha1572.TString, typeof PG_DEFAULT>;
|
|
6595
|
+
username: alepha1572.TOptional<alepha1572.TString>;
|
|
6596
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6597
|
+
phoneNumber: alepha1572.TOptional<alepha1572.TString>;
|
|
6598
|
+
roles: PgAttr<alepha1572.TArray<alepha1572.TString>, typeof PG_DEFAULT>;
|
|
6599
|
+
firstName: alepha1572.TOptional<alepha1572.TString>;
|
|
6600
|
+
lastName: alepha1572.TOptional<alepha1572.TString>;
|
|
6601
|
+
picture: alepha1572.TOptional<alepha1572.TString>;
|
|
6602
|
+
enabled: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6603
|
+
emailVerified: PgAttr<alepha1572.TBoolean, typeof PG_DEFAULT>;
|
|
6603
6604
|
}>;
|
|
6604
6605
|
}>;
|
|
6605
6606
|
/**
|
|
6606
6607
|
* Delete a user.
|
|
6607
6608
|
*/
|
|
6608
6609
|
readonly deleteUser: ActionPrimitiveFn<{
|
|
6609
|
-
params:
|
|
6610
|
-
id:
|
|
6610
|
+
params: alepha1572.TObject<{
|
|
6611
|
+
id: alepha1572.TString;
|
|
6611
6612
|
}>;
|
|
6612
|
-
query:
|
|
6613
|
-
userRealmName:
|
|
6613
|
+
query: alepha1572.TObject<{
|
|
6614
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6614
6615
|
}>;
|
|
6615
|
-
response:
|
|
6616
|
-
ok:
|
|
6617
|
-
id:
|
|
6618
|
-
count:
|
|
6616
|
+
response: alepha1572.TObject<{
|
|
6617
|
+
ok: alepha1572.TBoolean;
|
|
6618
|
+
id: alepha1572.TOptional<alepha1572.TUnion<[alepha1572.TString, alepha1572.TInteger]>>;
|
|
6619
|
+
count: alepha1572.TOptional<alepha1572.TNumber>;
|
|
6619
6620
|
}>;
|
|
6620
6621
|
}>;
|
|
6621
6622
|
/**
|
|
@@ -6623,15 +6624,15 @@ declare class UserController {
|
|
|
6623
6624
|
* Validates email, sends verification code, and stores intent in cache.
|
|
6624
6625
|
*/
|
|
6625
6626
|
readonly createPasswordResetIntent: ActionPrimitiveFn<{
|
|
6626
|
-
query:
|
|
6627
|
-
userRealmName:
|
|
6627
|
+
query: alepha1572.TObject<{
|
|
6628
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6628
6629
|
}>;
|
|
6629
|
-
body:
|
|
6630
|
-
email:
|
|
6630
|
+
body: alepha1572.TObject<{
|
|
6631
|
+
email: alepha1572.TString;
|
|
6631
6632
|
}>;
|
|
6632
|
-
response:
|
|
6633
|
-
intentId:
|
|
6634
|
-
expiresAt:
|
|
6633
|
+
response: alepha1572.TObject<{
|
|
6634
|
+
intentId: alepha1572.TString;
|
|
6635
|
+
expiresAt: alepha1572.TString;
|
|
6635
6636
|
}>;
|
|
6636
6637
|
}>;
|
|
6637
6638
|
/**
|
|
@@ -6639,61 +6640,61 @@ declare class UserController {
|
|
|
6639
6640
|
* Validates verification code, updates password, and invalidates sessions.
|
|
6640
6641
|
*/
|
|
6641
6642
|
readonly completePasswordReset: ActionPrimitiveFn<{
|
|
6642
|
-
body:
|
|
6643
|
-
intentId:
|
|
6644
|
-
code:
|
|
6645
|
-
newPassword:
|
|
6643
|
+
body: alepha1572.TObject<{
|
|
6644
|
+
intentId: alepha1572.TString;
|
|
6645
|
+
code: alepha1572.TString;
|
|
6646
|
+
newPassword: alepha1572.TString;
|
|
6646
6647
|
}>;
|
|
6647
|
-
response:
|
|
6648
|
-
ok:
|
|
6649
|
-
id:
|
|
6650
|
-
count:
|
|
6648
|
+
response: alepha1572.TObject<{
|
|
6649
|
+
ok: alepha1572.TBoolean;
|
|
6650
|
+
id: alepha1572.TOptional<alepha1572.TUnion<[alepha1572.TString, alepha1572.TInteger]>>;
|
|
6651
|
+
count: alepha1572.TOptional<alepha1572.TNumber>;
|
|
6651
6652
|
}>;
|
|
6652
6653
|
}>;
|
|
6653
6654
|
/**
|
|
6654
6655
|
* @deprecated Use createPasswordResetIntent instead
|
|
6655
6656
|
*/
|
|
6656
6657
|
requestPasswordReset: ActionPrimitiveFn<{
|
|
6657
|
-
query:
|
|
6658
|
-
userRealmName:
|
|
6658
|
+
query: alepha1572.TObject<{
|
|
6659
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6659
6660
|
}>;
|
|
6660
|
-
body:
|
|
6661
|
-
email:
|
|
6661
|
+
body: alepha1572.TObject<{
|
|
6662
|
+
email: alepha1572.TString;
|
|
6662
6663
|
}>;
|
|
6663
|
-
response:
|
|
6664
|
-
success:
|
|
6665
|
-
message:
|
|
6664
|
+
response: alepha1572.TObject<{
|
|
6665
|
+
success: alepha1572.TBoolean;
|
|
6666
|
+
message: alepha1572.TString;
|
|
6666
6667
|
}>;
|
|
6667
6668
|
}>;
|
|
6668
6669
|
/**
|
|
6669
6670
|
* @deprecated Use completePasswordReset instead
|
|
6670
6671
|
*/
|
|
6671
6672
|
validateResetToken: ActionPrimitiveFn<{
|
|
6672
|
-
query:
|
|
6673
|
-
email:
|
|
6674
|
-
token:
|
|
6675
|
-
userRealmName:
|
|
6673
|
+
query: alepha1572.TObject<{
|
|
6674
|
+
email: alepha1572.TString;
|
|
6675
|
+
token: alepha1572.TString;
|
|
6676
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6676
6677
|
}>;
|
|
6677
|
-
response:
|
|
6678
|
-
valid:
|
|
6679
|
-
email:
|
|
6678
|
+
response: alepha1572.TObject<{
|
|
6679
|
+
valid: alepha1572.TBoolean;
|
|
6680
|
+
email: alepha1572.TOptional<alepha1572.TString>;
|
|
6680
6681
|
}>;
|
|
6681
6682
|
}>;
|
|
6682
6683
|
/**
|
|
6683
6684
|
* @deprecated Use completePasswordReset instead
|
|
6684
6685
|
*/
|
|
6685
6686
|
resetPassword: ActionPrimitiveFn<{
|
|
6686
|
-
query:
|
|
6687
|
-
userRealmName:
|
|
6687
|
+
query: alepha1572.TObject<{
|
|
6688
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6688
6689
|
}>;
|
|
6689
|
-
body:
|
|
6690
|
-
email:
|
|
6691
|
-
token:
|
|
6692
|
-
newPassword:
|
|
6690
|
+
body: alepha1572.TObject<{
|
|
6691
|
+
email: alepha1572.TString;
|
|
6692
|
+
token: alepha1572.TString;
|
|
6693
|
+
newPassword: alepha1572.TString;
|
|
6693
6694
|
}>;
|
|
6694
|
-
response:
|
|
6695
|
-
success:
|
|
6696
|
-
message:
|
|
6695
|
+
response: alepha1572.TObject<{
|
|
6696
|
+
success: alepha1572.TBoolean;
|
|
6697
|
+
message: alepha1572.TString;
|
|
6697
6698
|
}>;
|
|
6698
6699
|
}>;
|
|
6699
6700
|
/**
|
|
@@ -6703,17 +6704,17 @@ declare class UserController {
|
|
|
6703
6704
|
* @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
|
|
6704
6705
|
*/
|
|
6705
6706
|
requestEmailVerification: ActionPrimitiveFn<{
|
|
6706
|
-
query:
|
|
6707
|
-
userRealmName:
|
|
6708
|
-
method:
|
|
6709
|
-
verifyUrl:
|
|
6707
|
+
query: alepha1572.TObject<{
|
|
6708
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6709
|
+
method: alepha1572.TOptional<alepha1572.TUnsafe<"link" | "code">>;
|
|
6710
|
+
verifyUrl: alepha1572.TOptional<alepha1572.TString>;
|
|
6710
6711
|
}>;
|
|
6711
|
-
body:
|
|
6712
|
-
email:
|
|
6712
|
+
body: alepha1572.TObject<{
|
|
6713
|
+
email: alepha1572.TString;
|
|
6713
6714
|
}>;
|
|
6714
|
-
response:
|
|
6715
|
-
success:
|
|
6716
|
-
message:
|
|
6715
|
+
response: alepha1572.TObject<{
|
|
6716
|
+
success: alepha1572.TBoolean;
|
|
6717
|
+
message: alepha1572.TString;
|
|
6717
6718
|
}>;
|
|
6718
6719
|
}>;
|
|
6719
6720
|
/**
|
|
@@ -6721,28 +6722,28 @@ declare class UserController {
|
|
|
6721
6722
|
* Updates the user's emailVerified status.
|
|
6722
6723
|
*/
|
|
6723
6724
|
verifyEmail: ActionPrimitiveFn<{
|
|
6724
|
-
query:
|
|
6725
|
-
userRealmName:
|
|
6725
|
+
query: alepha1572.TObject<{
|
|
6726
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6726
6727
|
}>;
|
|
6727
|
-
body:
|
|
6728
|
-
email:
|
|
6729
|
-
token:
|
|
6728
|
+
body: alepha1572.TObject<{
|
|
6729
|
+
email: alepha1572.TString;
|
|
6730
|
+
token: alepha1572.TString;
|
|
6730
6731
|
}>;
|
|
6731
|
-
response:
|
|
6732
|
-
success:
|
|
6733
|
-
message:
|
|
6732
|
+
response: alepha1572.TObject<{
|
|
6733
|
+
success: alepha1572.TBoolean;
|
|
6734
|
+
message: alepha1572.TString;
|
|
6734
6735
|
}>;
|
|
6735
6736
|
}>;
|
|
6736
6737
|
/**
|
|
6737
6738
|
* Check if an email is verified.
|
|
6738
6739
|
*/
|
|
6739
6740
|
checkEmailVerification: ActionPrimitiveFn<{
|
|
6740
|
-
query:
|
|
6741
|
-
email:
|
|
6742
|
-
userRealmName:
|
|
6741
|
+
query: alepha1572.TObject<{
|
|
6742
|
+
email: alepha1572.TString;
|
|
6743
|
+
userRealmName: alepha1572.TOptional<alepha1572.TString>;
|
|
6743
6744
|
}>;
|
|
6744
|
-
response:
|
|
6745
|
-
verified:
|
|
6745
|
+
response: alepha1572.TObject<{
|
|
6746
|
+
verified: alepha1572.TBoolean;
|
|
6746
6747
|
}>;
|
|
6747
6748
|
}>;
|
|
6748
6749
|
}
|
|
@@ -6802,6 +6803,11 @@ declare class AdminRouter {
|
|
|
6802
6803
|
readonly adminFiles: PagePrimitive<PageConfigSchema, any, {}>;
|
|
6803
6804
|
}
|
|
6804
6805
|
//#endregion
|
|
6806
|
+
//#region src/admin/AdminSidebar.d.ts
|
|
6807
|
+
declare class AdminSidebar {
|
|
6808
|
+
menu: (router: ReactRouter<any>) => SidebarNode[];
|
|
6809
|
+
}
|
|
6810
|
+
//#endregion
|
|
6805
6811
|
//#region src/admin/components/AdminFiles.d.ts
|
|
6806
6812
|
declare const AdminFiles: () => react_jsx_runtime0.JSX.Element;
|
|
6807
6813
|
//#endregion
|
|
@@ -6883,7 +6889,7 @@ declare class MainRouter {
|
|
|
6883
6889
|
*
|
|
6884
6890
|
* @module alepha.ui.admin
|
|
6885
6891
|
*/
|
|
6886
|
-
declare const AlephaUIAdmin:
|
|
6892
|
+
declare const AlephaUIAdmin: alepha1572.Service<alepha1572.Module>;
|
|
6887
6893
|
//#endregion
|
|
6888
|
-
export { AdminFiles, AdminJobs, AdminLayout, AdminNotifications, AdminParameters, AdminRouter, AdminSessions, AdminUserCreate, AdminUserDetails, AdminUserLayout, AdminUserSessions, AdminUserSettings, AdminUsers, AdminVerifications, AlephaUIAdmin, MainRouter };
|
|
6894
|
+
export { AdminFiles, AdminJobs, AdminLayout, AdminNotifications, AdminParameters, AdminRouter, AdminSessions, AdminSidebar, AdminUserCreate, AdminUserDetails, AdminUserLayout, AdminUserSessions, AdminUserSettings, AdminUsers, AdminVerifications, AlephaUIAdmin, MainRouter };
|
|
6889
6895
|
//# sourceMappingURL=index.d.ts.map
|