@alepha/ui 0.13.4 → 0.13.6
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-B-0UcHVV.js +3 -0
- package/dist/admin/{AdminFiles-8CC9mVsc.js → AdminFiles-B_jfB_Py.js} +2 -2
- package/dist/admin/{AdminFiles-8CC9mVsc.js.map → AdminFiles-B_jfB_Py.js.map} +1 -1
- package/dist/admin/{AdminLayout-Cm-Y4YTQ.js → AdminLayout-BMtiXAzS.js} +6 -6
- package/dist/admin/{AdminLayout-Cm-Y4YTQ.js.map → AdminLayout-BMtiXAzS.js.map} +1 -1
- package/dist/admin/AdminLayout-BNo3GoHR.js +3 -0
- package/dist/admin/{AdminNotifications-d-gw5Uie.js → AdminNotifications-BFEjqpqx.js} +2 -2
- package/dist/admin/{AdminNotifications-d-gw5Uie.js.map → AdminNotifications-BFEjqpqx.js.map} +1 -1
- package/dist/admin/AdminNotifications-DJs2ZjNj.js +3 -0
- package/dist/admin/{AdminSessions-CpVusqmd.js → AdminSessions-D7DESfWK.js} +2 -2
- package/dist/admin/{AdminSessions-CpVusqmd.js.map → AdminSessions-D7DESfWK.js.map} +1 -1
- package/dist/admin/AdminSessions-PS2M8iXi.js +3 -0
- package/dist/admin/{AdminUserCreate-DH7u_yJj.js → AdminUserCreate-Bhxsn92l.js} +2 -2
- package/dist/admin/{AdminUserCreate-DH7u_yJj.js.map → AdminUserCreate-Bhxsn92l.js.map} +1 -1
- package/dist/admin/{AdminUserCreate-CQIrSslj.js → AdminUserCreate-CYI_xW5T.js} +1 -1
- package/dist/admin/{AdminUserDetails-DVmFCDsU.js → AdminUserDetails-C2y1Ig4n.js} +2 -2
- package/dist/admin/{AdminUserDetails-DVmFCDsU.js.map → AdminUserDetails-C2y1Ig4n.js.map} +1 -1
- package/dist/admin/{AdminUserDetails-T3nkXSdz.js → AdminUserDetails-Cmzx9HxH.js} +1 -1
- package/dist/admin/{AdminUserLayout-DdtZGX8n.js → AdminUserLayout-DGSf612u.js} +1 -1
- package/dist/admin/{AdminUserLayout-gpOyn0Y7.js → AdminUserLayout-sW6cjZL0.js} +2 -2
- package/dist/admin/{AdminUserLayout-gpOyn0Y7.js.map → AdminUserLayout-sW6cjZL0.js.map} +1 -1
- package/dist/admin/{AdminUserSessions-CdVwoM-h.js → AdminUserSessions-CvN15wPe.js} +2 -2
- package/dist/admin/{AdminUserSessions-CdVwoM-h.js.map → AdminUserSessions-CvN15wPe.js.map} +1 -1
- package/dist/admin/AdminUserSessions-D-aOcZgV.js +3 -0
- package/dist/admin/AdminUserSettings-CEMhIYrI.js +3 -0
- package/dist/admin/{AdminUserSettings-S7gZvvjO.js → AdminUserSettings-DvaaxgcV.js} +2 -2
- package/dist/admin/{AdminUserSettings-S7gZvvjO.js.map → AdminUserSettings-DvaaxgcV.js.map} +1 -1
- package/dist/admin/{AdminUsers-9qEzxqAL.js → AdminUsers-BR3C-jrg.js} +2 -2
- package/dist/admin/{AdminUsers-9qEzxqAL.js.map → AdminUsers-BR3C-jrg.js.map} +1 -1
- package/dist/admin/AdminUsers-CMW9vN09.js +3 -0
- package/dist/admin/index.d.ts +1162 -1162
- package/dist/admin/index.js +26 -26
- package/dist/auth/{AuthLayout-BSL8ZHgr.js → AuthLayout-CzwUKD9y.js} +2 -2
- package/dist/auth/{AuthLayout-BSL8ZHgr.js.map → AuthLayout-CzwUKD9y.js.map} +1 -1
- package/dist/auth/{IconGoogle-v_58os2T.js → IconGoogle-Cm5d8J3f.js} +3 -3
- package/dist/auth/{IconGoogle-v_58os2T.js.map → IconGoogle-Cm5d8J3f.js.map} +1 -1
- package/dist/auth/{Login-AlVPPqQp.js → Login-7HlBjDeV.js} +3 -3
- package/dist/auth/{Login-AlVPPqQp.js.map → Login-7HlBjDeV.js.map} +1 -1
- package/dist/auth/Login-C-e27DGb.js +4 -0
- package/dist/auth/{Register-BxJmOqpF.js → Register-CuQr3kgi.js} +3 -3
- package/dist/auth/{Register-BxJmOqpF.js.map → Register-CuQr3kgi.js.map} +1 -1
- package/dist/auth/Register-DbvXwgbG.js +4 -0
- package/dist/auth/{ResetPassword-BhyZ9ek4.js → ResetPassword-BzU-cdd4.js} +2 -2
- package/dist/auth/{ResetPassword-BhyZ9ek4.js.map → ResetPassword-BzU-cdd4.js.map} +1 -1
- package/dist/auth/ResetPassword-DSvrdpaA.js +3 -0
- package/dist/auth/VerifyEmail-Dc9ABKUw.js +3 -0
- package/dist/auth/{VerifyEmail-DeLct3oQ.js → VerifyEmail-R79sSej_.js} +2 -2
- package/dist/auth/{VerifyEmail-DeLct3oQ.js.map → VerifyEmail-R79sSej_.js.map} +1 -1
- package/dist/auth/index.d.ts +534 -534
- package/dist/auth/index.js +14 -14
- package/dist/core/index.d.ts +110 -110
- package/dist/core/index.js +43 -43
- package/package.json +3 -3
- package/dist/admin/AdminFiles-BRLMP_7y.js +0 -3
- package/dist/admin/AdminLayout-D5M9kSiV.js +0 -3
- package/dist/admin/AdminNotifications-DxBKi2RO.js +0 -3
- package/dist/admin/AdminSessions-DA285-5Q.js +0 -3
- package/dist/admin/AdminUserSessions-CWYzjB3D.js +0 -3
- package/dist/admin/AdminUserSettings-jCzVYw_2.js +0 -3
- package/dist/admin/AdminUsers-BcSUxV01.js +0 -3
- package/dist/auth/Login-otdWVvVU.js +0 -4
- package/dist/auth/Register-D10MnlQc.js +0 -4
- package/dist/auth/ResetPassword-llBG-STp.js +0 -3
- package/dist/auth/VerifyEmail-BvOG-IUC.js +0 -3
package/dist/admin/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SidebarNode } from "@alepha/ui";
|
|
2
2
|
import { AuthRouter } from "@alepha/ui/auth";
|
|
3
|
-
import * as
|
|
3
|
+
import * as alepha1532 from "alepha";
|
|
4
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";
|
|
5
5
|
import * as react0 from "react";
|
|
6
6
|
import { FC, ReactNode } from "react";
|
|
@@ -24,34 +24,34 @@ import { LockConfig, LockStrength, PgColumn, PgColumnBuilderBase, PgDatabase, Pg
|
|
|
24
24
|
import { PgTransactionConfig } from "drizzle-orm/pg-core/session";
|
|
25
25
|
import * as DrizzleKit from "drizzle-kit/api";
|
|
26
26
|
|
|
27
|
-
//#region
|
|
28
|
-
declare const userAccountInfoSchema:
|
|
29
|
-
id:
|
|
30
|
-
name:
|
|
31
|
-
email:
|
|
32
|
-
username:
|
|
33
|
-
picture:
|
|
34
|
-
sessionId:
|
|
35
|
-
organizations:
|
|
36
|
-
roles:
|
|
27
|
+
//#region ../../../alepha/src/security/schemas/userAccountInfoSchema.d.ts
|
|
28
|
+
declare const userAccountInfoSchema: alepha1532.TObject<{
|
|
29
|
+
id: alepha1532.TString;
|
|
30
|
+
name: alepha1532.TOptional<alepha1532.TString>;
|
|
31
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
32
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
33
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
34
|
+
sessionId: alepha1532.TOptional<alepha1532.TString>;
|
|
35
|
+
organizations: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
36
|
+
roles: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
37
37
|
}>;
|
|
38
38
|
type UserAccount = Static<typeof userAccountInfoSchema>;
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region
|
|
41
|
-
declare const errorSchema:
|
|
42
|
-
error:
|
|
43
|
-
status:
|
|
44
|
-
message:
|
|
45
|
-
details:
|
|
46
|
-
requestId:
|
|
47
|
-
cause:
|
|
48
|
-
name:
|
|
49
|
-
message:
|
|
40
|
+
//#region ../../../alepha/src/server/schemas/errorSchema.d.ts
|
|
41
|
+
declare const errorSchema: alepha1532.TObject<{
|
|
42
|
+
error: alepha1532.TString;
|
|
43
|
+
status: alepha1532.TInteger;
|
|
44
|
+
message: alepha1532.TString;
|
|
45
|
+
details: alepha1532.TOptional<alepha1532.TString>;
|
|
46
|
+
requestId: alepha1532.TOptional<alepha1532.TString>;
|
|
47
|
+
cause: alepha1532.TOptional<alepha1532.TObject<{
|
|
48
|
+
name: alepha1532.TString;
|
|
49
|
+
message: alepha1532.TString;
|
|
50
50
|
}>>;
|
|
51
51
|
}>;
|
|
52
52
|
type ErrorSchema = Static<typeof errorSchema>;
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region
|
|
54
|
+
//#region ../../../alepha/src/server/errors/HttpError.d.ts
|
|
55
55
|
declare class HttpError extends AlephaError {
|
|
56
56
|
name: string;
|
|
57
57
|
static is: (error: unknown, status?: number) => error is HttpErrorLike;
|
|
@@ -70,7 +70,7 @@ interface HttpErrorLike extends Error {
|
|
|
70
70
|
status: number;
|
|
71
71
|
}
|
|
72
72
|
//#endregion
|
|
73
|
-
//#region
|
|
73
|
+
//#region ../../../alepha/src/router/providers/RouterProvider.d.ts
|
|
74
74
|
declare abstract class RouterProvider<T$1 extends Route = Route> {
|
|
75
75
|
protected routePathRegex: RegExp;
|
|
76
76
|
protected tree: Tree<T$1>;
|
|
@@ -114,11 +114,11 @@ interface Tree<T$1 extends Route> {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
|
-
//#region
|
|
117
|
+
//#region ../../../alepha/src/server/constants/routeMethods.d.ts
|
|
118
118
|
declare const routeMethods: readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "CONNECT", "TRACE"];
|
|
119
119
|
type RouteMethod = (typeof routeMethods)[number];
|
|
120
120
|
//#endregion
|
|
121
|
-
//#region
|
|
121
|
+
//#region ../../../alepha/src/server/helpers/ServerReply.d.ts
|
|
122
122
|
/**
|
|
123
123
|
* Helper for building server replies.
|
|
124
124
|
*/
|
|
@@ -146,7 +146,7 @@ declare class ServerReply {
|
|
|
146
146
|
setBody(body: any): this;
|
|
147
147
|
}
|
|
148
148
|
//#endregion
|
|
149
|
-
//#region
|
|
149
|
+
//#region ../../../alepha/src/server/services/UserAgentParser.d.ts
|
|
150
150
|
interface UserAgentInfo {
|
|
151
151
|
os: "Windows" | "Android" | "Ubuntu" | "MacOS" | "iOS" | "Linux" | "FreeBSD" | "OpenBSD" | "ChromeOS" | "BlackBerry" | "Symbian" | "Windows Phone";
|
|
152
152
|
browser: "Chrome" | "Firefox" | "Safari" | "Edge" | "Opera" | "Internet Explorer" | "Brave" | "Vivaldi" | "Samsung Browser" | "UC Browser" | "Yandex";
|
|
@@ -162,7 +162,7 @@ declare class UserAgentParser {
|
|
|
162
162
|
parse(userAgent?: string): UserAgentInfo;
|
|
163
163
|
}
|
|
164
164
|
//#endregion
|
|
165
|
-
//#region
|
|
165
|
+
//#region ../../../alepha/src/server/interfaces/ServerRequest.d.ts
|
|
166
166
|
type TRequestBody = TObject | TString | TArray | TRecord | TStream;
|
|
167
167
|
type TResponseBody = TObject | TString | TRecord | TFile | TArray | TStream | TVoid;
|
|
168
168
|
interface RequestConfigSchema {
|
|
@@ -284,20 +284,20 @@ interface WebRequestEvent {
|
|
|
284
284
|
res?: Response;
|
|
285
285
|
}
|
|
286
286
|
//#endregion
|
|
287
|
-
//#region
|
|
288
|
-
declare const logEntrySchema:
|
|
289
|
-
level:
|
|
290
|
-
message:
|
|
291
|
-
service:
|
|
292
|
-
module:
|
|
293
|
-
context:
|
|
294
|
-
app:
|
|
295
|
-
data:
|
|
296
|
-
timestamp:
|
|
287
|
+
//#region ../../../alepha/src/logger/schemas/logEntrySchema.d.ts
|
|
288
|
+
declare const logEntrySchema: alepha1532.TObject<{
|
|
289
|
+
level: alepha1532.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
290
|
+
message: alepha1532.TString;
|
|
291
|
+
service: alepha1532.TString;
|
|
292
|
+
module: alepha1532.TString;
|
|
293
|
+
context: alepha1532.TOptional<alepha1532.TString>;
|
|
294
|
+
app: alepha1532.TOptional<alepha1532.TString>;
|
|
295
|
+
data: alepha1532.TOptional<alepha1532.TAny>;
|
|
296
|
+
timestamp: alepha1532.TNumber;
|
|
297
297
|
}>;
|
|
298
298
|
type LogEntry = Static<typeof logEntrySchema>;
|
|
299
299
|
//#endregion
|
|
300
|
-
//#region
|
|
300
|
+
//#region ../../../alepha/src/datetime/providers/DateTimeProvider.d.ts
|
|
301
301
|
type DateTime = DayjsApi.Dayjs;
|
|
302
302
|
type Duration = dayjsDuration.Duration;
|
|
303
303
|
type DurationLike = number | dayjsDuration.Duration | [number, ManipulateType];
|
|
@@ -308,8 +308,8 @@ declare class DateTimeProvider {
|
|
|
308
308
|
protected readonly timeouts: Timeout[];
|
|
309
309
|
protected readonly intervals: Interval[];
|
|
310
310
|
constructor();
|
|
311
|
-
protected readonly onStart:
|
|
312
|
-
protected readonly onStop:
|
|
311
|
+
protected readonly onStart: alepha1532.HookPrimitive<"start">;
|
|
312
|
+
protected readonly onStop: alepha1532.HookPrimitive<"stop">;
|
|
313
313
|
setLocale(locale: string): void;
|
|
314
314
|
isDateTime(value: unknown): value is DateTime;
|
|
315
315
|
/**
|
|
@@ -403,17 +403,17 @@ interface Timeout {
|
|
|
403
403
|
clear: () => void;
|
|
404
404
|
}
|
|
405
405
|
//#endregion
|
|
406
|
-
//#region
|
|
406
|
+
//#region ../../../alepha/src/logger/providers/LogDestinationProvider.d.ts
|
|
407
407
|
declare abstract class LogDestinationProvider {
|
|
408
408
|
abstract write(message: string, entry: LogEntry): void;
|
|
409
409
|
}
|
|
410
410
|
//#endregion
|
|
411
|
-
//#region
|
|
411
|
+
//#region ../../../alepha/src/logger/providers/LogFormatterProvider.d.ts
|
|
412
412
|
declare abstract class LogFormatterProvider {
|
|
413
413
|
abstract format(entry: LogEntry): string;
|
|
414
414
|
}
|
|
415
415
|
//#endregion
|
|
416
|
-
//#region
|
|
416
|
+
//#region ../../../alepha/src/logger/services/Logger.d.ts
|
|
417
417
|
declare class Logger implements LoggerInterface {
|
|
418
418
|
protected readonly alepha: Alepha;
|
|
419
419
|
protected readonly formatter: LogFormatterProvider;
|
|
@@ -440,8 +440,8 @@ declare class Logger implements LoggerInterface {
|
|
|
440
440
|
protected emit(entry: LogEntry, message?: string): void;
|
|
441
441
|
}
|
|
442
442
|
//#endregion
|
|
443
|
-
//#region
|
|
444
|
-
declare const envSchema$9:
|
|
443
|
+
//#region ../../../alepha/src/logger/index.d.ts
|
|
444
|
+
declare const envSchema$9: alepha1532.TObject<{
|
|
445
445
|
/**
|
|
446
446
|
* Default log level for the application.
|
|
447
447
|
*
|
|
@@ -458,14 +458,14 @@ declare const envSchema$9: alepha1572.TObject<{
|
|
|
458
458
|
* LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
|
|
459
459
|
* LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
|
|
460
460
|
*/
|
|
461
|
-
LOG_LEVEL:
|
|
461
|
+
LOG_LEVEL: alepha1532.TOptional<alepha1532.TString>;
|
|
462
462
|
/**
|
|
463
463
|
* Built-in log formats.
|
|
464
464
|
* - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
|
|
465
465
|
* - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
|
|
466
466
|
* - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
|
|
467
467
|
*/
|
|
468
|
-
LOG_FORMAT:
|
|
468
|
+
LOG_FORMAT: alepha1532.TOptional<alepha1532.TUnsafe<"json" | "pretty" | "raw">>;
|
|
469
469
|
}>;
|
|
470
470
|
declare module "alepha" {
|
|
471
471
|
interface Env extends Partial<Static<typeof envSchema$9>> {}
|
|
@@ -483,7 +483,7 @@ declare module "alepha" {
|
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
//#endregion
|
|
486
|
-
//#region
|
|
486
|
+
//#region ../../../alepha/src/server/services/ServerRequestParser.d.ts
|
|
487
487
|
declare class ServerRequestParser {
|
|
488
488
|
protected readonly alepha: Alepha;
|
|
489
489
|
protected readonly userAgentParser: UserAgentParser;
|
|
@@ -493,7 +493,7 @@ declare class ServerRequestParser {
|
|
|
493
493
|
getRequestIp(request: ServerRequestData): string | undefined;
|
|
494
494
|
}
|
|
495
495
|
//#endregion
|
|
496
|
-
//#region
|
|
496
|
+
//#region ../../../alepha/src/server/providers/ServerTimingProvider.d.ts
|
|
497
497
|
type TimingMap = Record<string, [number, number]>;
|
|
498
498
|
declare class ServerTimingProvider {
|
|
499
499
|
protected readonly log: Logger;
|
|
@@ -502,15 +502,15 @@ declare class ServerTimingProvider {
|
|
|
502
502
|
prefix: string;
|
|
503
503
|
disabled: boolean;
|
|
504
504
|
};
|
|
505
|
-
readonly onRequest:
|
|
506
|
-
readonly onResponse:
|
|
505
|
+
readonly onRequest: alepha1532.HookPrimitive<"server:onRequest">;
|
|
506
|
+
readonly onResponse: alepha1532.HookPrimitive<"server:onResponse">;
|
|
507
507
|
protected get handlerName(): string;
|
|
508
508
|
beginTiming(name: string): void;
|
|
509
509
|
endTiming(name: string): void;
|
|
510
510
|
protected setDuration(name: string, timing: TimingMap): void;
|
|
511
511
|
}
|
|
512
512
|
//#endregion
|
|
513
|
-
//#region
|
|
513
|
+
//#region ../../../alepha/src/server/providers/ServerRouterProvider.d.ts
|
|
514
514
|
/**
|
|
515
515
|
* Main router for all routes on the server side.
|
|
516
516
|
*
|
|
@@ -549,7 +549,7 @@ declare class ServerRouterProvider extends RouterProvider<ServerRouteMatcher> {
|
|
|
549
549
|
}, request: ServerRequestConfig): void;
|
|
550
550
|
}
|
|
551
551
|
//#endregion
|
|
552
|
-
//#region
|
|
552
|
+
//#region ../../../alepha/src/server/providers/ServerProvider.d.ts
|
|
553
553
|
/**
|
|
554
554
|
* Base server provider to handle incoming requests and route them.
|
|
555
555
|
*
|
|
@@ -567,11 +567,11 @@ declare class ServerProvider {
|
|
|
567
567
|
/**
|
|
568
568
|
* When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
|
|
569
569
|
*/
|
|
570
|
-
protected readonly onNodeRequest:
|
|
570
|
+
protected readonly onNodeRequest: alepha1532.HookPrimitive<"node:request">;
|
|
571
571
|
/**
|
|
572
572
|
* When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
|
|
573
573
|
*/
|
|
574
|
-
protected readonly onWebRequest:
|
|
574
|
+
protected readonly onWebRequest: alepha1532.HookPrimitive<"web:request">;
|
|
575
575
|
/**
|
|
576
576
|
* Handle Node.js HTTP request event.
|
|
577
577
|
*
|
|
@@ -588,7 +588,7 @@ declare class ServerProvider {
|
|
|
588
588
|
protected isViteNotFound(url?: string, route?: Route, params?: Record<string, string>): boolean;
|
|
589
589
|
}
|
|
590
590
|
//#endregion
|
|
591
|
-
//#region
|
|
591
|
+
//#region ../../../alepha/src/cache/providers/CacheProvider.d.ts
|
|
592
592
|
/**
|
|
593
593
|
* Cache provider interface.
|
|
594
594
|
*
|
|
@@ -631,7 +631,7 @@ declare abstract class CacheProvider {
|
|
|
631
631
|
abstract clear(): Promise<void>;
|
|
632
632
|
}
|
|
633
633
|
//#endregion
|
|
634
|
-
//#region
|
|
634
|
+
//#region ../../../alepha/src/cache/primitives/$cache.d.ts
|
|
635
635
|
interface CachePrimitiveOptions<TReturn = any, TParameter extends any[] = any[]> {
|
|
636
636
|
/**
|
|
637
637
|
* The cache name. This is useful for invalidating multiple caches at once.
|
|
@@ -698,7 +698,7 @@ interface CachePrimitiveFn<TReturn = any, TParameter extends any[] = any[]> exte
|
|
|
698
698
|
(...args: TParameter): Promise<TReturn>;
|
|
699
699
|
}
|
|
700
700
|
//#endregion
|
|
701
|
-
//#region
|
|
701
|
+
//#region ../../../alepha/src/server/services/HttpClient.d.ts
|
|
702
702
|
declare class HttpClient {
|
|
703
703
|
protected readonly log: Logger;
|
|
704
704
|
protected readonly alepha: Alepha;
|
|
@@ -770,7 +770,7 @@ interface HttpAction {
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
//#endregion
|
|
773
|
-
//#region
|
|
773
|
+
//#region ../../../alepha/src/server/primitives/$action.d.ts
|
|
774
774
|
interface ActionPrimitiveOptions<TConfig extends RequestConfigSchema> extends Omit<ServerRoute, "handler" | "path" | "schema" | "mapParams"> {
|
|
775
775
|
/**
|
|
776
776
|
* Name of the action.
|
|
@@ -908,33 +908,33 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
|
|
|
908
908
|
*/
|
|
909
909
|
interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
|
|
910
910
|
//#endregion
|
|
911
|
-
//#region
|
|
912
|
-
declare const okSchema:
|
|
913
|
-
ok:
|
|
914
|
-
id:
|
|
915
|
-
count:
|
|
911
|
+
//#region ../../../alepha/src/server/schemas/okSchema.d.ts
|
|
912
|
+
declare const okSchema: alepha1532.TObject<{
|
|
913
|
+
ok: alepha1532.TBoolean;
|
|
914
|
+
id: alepha1532.TOptional<alepha1532.TUnion<[alepha1532.TString, alepha1532.TInteger]>>;
|
|
915
|
+
count: alepha1532.TOptional<alepha1532.TNumber>;
|
|
916
916
|
}>;
|
|
917
917
|
type Ok = Static<typeof okSchema>;
|
|
918
918
|
//#endregion
|
|
919
|
-
//#region
|
|
920
|
-
declare const envSchema$8:
|
|
921
|
-
SERVER_PORT:
|
|
922
|
-
SERVER_HOST:
|
|
919
|
+
//#region ../../../alepha/src/server/providers/BunHttpServerProvider.d.ts
|
|
920
|
+
declare const envSchema$8: alepha1532.TObject<{
|
|
921
|
+
SERVER_PORT: alepha1532.TInteger;
|
|
922
|
+
SERVER_HOST: alepha1532.TString;
|
|
923
923
|
}>;
|
|
924
924
|
declare module "alepha" {
|
|
925
925
|
interface Env extends Partial<Static<typeof envSchema$8>> {}
|
|
926
926
|
}
|
|
927
927
|
//#endregion
|
|
928
|
-
//#region
|
|
929
|
-
declare const envSchema$7:
|
|
930
|
-
SERVER_PORT:
|
|
931
|
-
SERVER_HOST:
|
|
928
|
+
//#region ../../../alepha/src/server/providers/NodeHttpServerProvider.d.ts
|
|
929
|
+
declare const envSchema$7: alepha1532.TObject<{
|
|
930
|
+
SERVER_PORT: alepha1532.TInteger;
|
|
931
|
+
SERVER_HOST: alepha1532.TString;
|
|
932
932
|
}>;
|
|
933
933
|
declare module "alepha" {
|
|
934
934
|
interface Env extends Partial<Static<typeof envSchema$7>> {}
|
|
935
935
|
}
|
|
936
936
|
//#endregion
|
|
937
|
-
//#region
|
|
937
|
+
//#region ../../../alepha/src/server/index.d.ts
|
|
938
938
|
declare module "alepha" {
|
|
939
939
|
interface State {
|
|
940
940
|
"alepha.node.server"?: Server;
|
|
@@ -990,7 +990,7 @@ declare module "alepha" {
|
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
//#endregion
|
|
993
|
-
//#region
|
|
993
|
+
//#region ../../../alepha/src/security/interfaces/UserAccountToken.d.ts
|
|
994
994
|
/**
|
|
995
995
|
* Add contextual metadata to a user account info.
|
|
996
996
|
* E.g. UserAccountToken is a UserAccountInfo during a request.
|
|
@@ -1011,28 +1011,28 @@ interface UserAccountToken extends UserAccount {
|
|
|
1011
1011
|
ownership?: string | boolean;
|
|
1012
1012
|
}
|
|
1013
1013
|
//#endregion
|
|
1014
|
-
//#region
|
|
1015
|
-
declare const roleSchema:
|
|
1016
|
-
name:
|
|
1017
|
-
description:
|
|
1018
|
-
default:
|
|
1019
|
-
permissions:
|
|
1020
|
-
name:
|
|
1021
|
-
ownership:
|
|
1022
|
-
exclude:
|
|
1014
|
+
//#region ../../../alepha/src/security/schemas/roleSchema.d.ts
|
|
1015
|
+
declare const roleSchema: alepha1532.TObject<{
|
|
1016
|
+
name: alepha1532.TString;
|
|
1017
|
+
description: alepha1532.TOptional<alepha1532.TString>;
|
|
1018
|
+
default: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
1019
|
+
permissions: alepha1532.TArray<alepha1532.TObject<{
|
|
1020
|
+
name: alepha1532.TString;
|
|
1021
|
+
ownership: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
1022
|
+
exclude: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
1023
1023
|
}>>;
|
|
1024
1024
|
}>;
|
|
1025
1025
|
type Role = Static<typeof roleSchema>;
|
|
1026
1026
|
//#endregion
|
|
1027
|
-
//#region
|
|
1028
|
-
declare const envSchema$6:
|
|
1029
|
-
APP_SECRET:
|
|
1027
|
+
//#region ../../../alepha/src/security/providers/SecurityProvider.d.ts
|
|
1028
|
+
declare const envSchema$6: alepha1532.TObject<{
|
|
1029
|
+
APP_SECRET: alepha1532.TString;
|
|
1030
1030
|
}>;
|
|
1031
1031
|
declare module "alepha" {
|
|
1032
1032
|
interface Env extends Partial<Static<typeof envSchema$6>> {}
|
|
1033
1033
|
}
|
|
1034
1034
|
//#endregion
|
|
1035
|
-
//#region
|
|
1035
|
+
//#region ../../../alepha/src/security/primitives/$realm.d.ts
|
|
1036
1036
|
type RealmPrimitiveOptions = {
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Define the realm name.
|
|
@@ -1097,14 +1097,14 @@ interface RealmExternal {
|
|
|
1097
1097
|
jwks: (() => string) | JSONWebKeySet;
|
|
1098
1098
|
}
|
|
1099
1099
|
//#endregion
|
|
1100
|
-
//#region
|
|
1100
|
+
//#region ../../../alepha/src/security/providers/CryptoProvider.d.ts
|
|
1101
1101
|
declare class CryptoProvider {
|
|
1102
1102
|
hashPassword(password: string): Promise<string>;
|
|
1103
1103
|
verifyPassword(password: string, stored: string): Promise<boolean>;
|
|
1104
1104
|
randomUUID(): string;
|
|
1105
1105
|
}
|
|
1106
1106
|
//#endregion
|
|
1107
|
-
//#region
|
|
1107
|
+
//#region ../../../alepha/src/security/index.d.ts
|
|
1108
1108
|
declare module "alepha" {
|
|
1109
1109
|
interface Hooks {
|
|
1110
1110
|
"security:user:created": {
|
|
@@ -1126,19 +1126,19 @@ declare module "alepha" {
|
|
|
1126
1126
|
* @module alepha.security
|
|
1127
1127
|
*/
|
|
1128
1128
|
//#endregion
|
|
1129
|
-
//#region
|
|
1129
|
+
//#region ../../../alepha/src/server-security/providers/ServerBasicAuthProvider.d.ts
|
|
1130
1130
|
interface BasicAuthOptions {
|
|
1131
1131
|
username: string;
|
|
1132
1132
|
password: string;
|
|
1133
1133
|
}
|
|
1134
1134
|
//#endregion
|
|
1135
|
-
//#region
|
|
1135
|
+
//#region ../../../alepha/src/server-security/providers/ServerSecurityProvider.d.ts
|
|
1136
1136
|
type ServerRouteSecure = {
|
|
1137
1137
|
realm?: string;
|
|
1138
1138
|
basic?: BasicAuthOptions;
|
|
1139
1139
|
};
|
|
1140
1140
|
//#endregion
|
|
1141
|
-
//#region
|
|
1141
|
+
//#region ../../../alepha/src/server-security/index.d.ts
|
|
1142
1142
|
declare module "alepha" {
|
|
1143
1143
|
interface State {
|
|
1144
1144
|
/**
|
|
@@ -1190,30 +1190,30 @@ declare module "alepha/server" {
|
|
|
1190
1190
|
* @module alepha.server.security
|
|
1191
1191
|
*/
|
|
1192
1192
|
//#endregion
|
|
1193
|
-
//#region
|
|
1194
|
-
declare const apiLinkSchema:
|
|
1195
|
-
name:
|
|
1196
|
-
group:
|
|
1197
|
-
path:
|
|
1198
|
-
method:
|
|
1199
|
-
requestBodyType:
|
|
1200
|
-
service:
|
|
1193
|
+
//#region ../../../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
1194
|
+
declare const apiLinkSchema: alepha1532.TObject<{
|
|
1195
|
+
name: alepha1532.TString;
|
|
1196
|
+
group: alepha1532.TOptional<alepha1532.TString>;
|
|
1197
|
+
path: alepha1532.TString;
|
|
1198
|
+
method: alepha1532.TOptional<alepha1532.TString>;
|
|
1199
|
+
requestBodyType: alepha1532.TOptional<alepha1532.TString>;
|
|
1200
|
+
service: alepha1532.TOptional<alepha1532.TString>;
|
|
1201
1201
|
}>;
|
|
1202
|
-
declare const apiLinksResponseSchema:
|
|
1203
|
-
prefix:
|
|
1204
|
-
links:
|
|
1205
|
-
name:
|
|
1206
|
-
group:
|
|
1207
|
-
path:
|
|
1208
|
-
method:
|
|
1209
|
-
requestBodyType:
|
|
1210
|
-
service:
|
|
1202
|
+
declare const apiLinksResponseSchema: alepha1532.TObject<{
|
|
1203
|
+
prefix: alepha1532.TOptional<alepha1532.TString>;
|
|
1204
|
+
links: alepha1532.TArray<alepha1532.TObject<{
|
|
1205
|
+
name: alepha1532.TString;
|
|
1206
|
+
group: alepha1532.TOptional<alepha1532.TString>;
|
|
1207
|
+
path: alepha1532.TString;
|
|
1208
|
+
method: alepha1532.TOptional<alepha1532.TString>;
|
|
1209
|
+
requestBodyType: alepha1532.TOptional<alepha1532.TString>;
|
|
1210
|
+
service: alepha1532.TOptional<alepha1532.TString>;
|
|
1211
1211
|
}>>;
|
|
1212
1212
|
}>;
|
|
1213
1213
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
1214
1214
|
type ApiLink = Static<typeof apiLinkSchema>;
|
|
1215
1215
|
//#endregion
|
|
1216
|
-
//#region
|
|
1216
|
+
//#region ../../../alepha/src/server-links/providers/LinkProvider.d.ts
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Browser, SSR friendly, service to handle links.
|
|
1219
1219
|
*/
|
|
@@ -1280,7 +1280,7 @@ interface VirtualAction<T$1 extends RequestConfigSchema> extends Pick<ActionPrim
|
|
|
1280
1280
|
can: () => boolean;
|
|
1281
1281
|
}
|
|
1282
1282
|
//#endregion
|
|
1283
|
-
//#region
|
|
1283
|
+
//#region ../../../alepha/src/retry/providers/RetryProvider.d.ts
|
|
1284
1284
|
interface RetryOptions<T$1 extends (...args: any[]) => any> {
|
|
1285
1285
|
/**
|
|
1286
1286
|
* The function to retry.
|
|
@@ -1367,7 +1367,7 @@ declare class RetryProvider {
|
|
|
1367
1367
|
protected calculateBackoff(attempt: number, options?: number | RetryBackoffOptions): number;
|
|
1368
1368
|
}
|
|
1369
1369
|
//#endregion
|
|
1370
|
-
//#region
|
|
1370
|
+
//#region ../../../alepha/src/retry/primitives/$retry.d.ts
|
|
1371
1371
|
interface RetryPrimitiveOptions<T$1 extends (...args: any[]) => any> {
|
|
1372
1372
|
/**
|
|
1373
1373
|
* The function to retry.
|
|
@@ -1409,7 +1409,7 @@ interface RetryPrimitiveOptions<T$1 extends (...args: any[]) => any> {
|
|
|
1409
1409
|
signal?: AbortSignal;
|
|
1410
1410
|
}
|
|
1411
1411
|
//#endregion
|
|
1412
|
-
//#region
|
|
1412
|
+
//#region ../../../alepha/src/server-links/index.d.ts
|
|
1413
1413
|
declare module "alepha" {
|
|
1414
1414
|
interface State {
|
|
1415
1415
|
/**
|
|
@@ -1433,7 +1433,7 @@ declare module "alepha" {
|
|
|
1433
1433
|
* @module alepha.server.links
|
|
1434
1434
|
*/
|
|
1435
1435
|
//#endregion
|
|
1436
|
-
//#region
|
|
1436
|
+
//#region ../../../alepha/src/server-cache/providers/ServerCacheProvider.d.ts
|
|
1437
1437
|
declare module "alepha/server" {
|
|
1438
1438
|
interface ServerRoute {
|
|
1439
1439
|
/**
|
|
@@ -1530,13 +1530,13 @@ boolean
|
|
|
1530
1530
|
};
|
|
1531
1531
|
};
|
|
1532
1532
|
//#endregion
|
|
1533
|
-
//#region
|
|
1533
|
+
//#region ../../../react/src/core/components/ClientOnly.d.ts
|
|
1534
1534
|
interface ClientOnlyProps {
|
|
1535
1535
|
fallback?: ReactNode;
|
|
1536
1536
|
disabled?: boolean;
|
|
1537
1537
|
}
|
|
1538
1538
|
//#endregion
|
|
1539
|
-
//#region
|
|
1539
|
+
//#region ../../../react/src/core/errors/Redirection.d.ts
|
|
1540
1540
|
/**
|
|
1541
1541
|
* Used for Redirection during the page loading.
|
|
1542
1542
|
*
|
|
@@ -1547,9 +1547,9 @@ declare class Redirection extends Error {
|
|
|
1547
1547
|
constructor(redirect: string);
|
|
1548
1548
|
}
|
|
1549
1549
|
//#endregion
|
|
1550
|
-
//#region
|
|
1551
|
-
declare const envSchema$5:
|
|
1552
|
-
REACT_STRICT_MODE:
|
|
1550
|
+
//#region ../../../react/src/core/providers/ReactPageProvider.d.ts
|
|
1551
|
+
declare const envSchema$5: alepha1532.TObject<{
|
|
1552
|
+
REACT_STRICT_MODE: alepha1532.TBoolean;
|
|
1553
1553
|
}>;
|
|
1554
1554
|
declare module "alepha" {
|
|
1555
1555
|
interface Env extends Partial<Static<typeof envSchema$5>> {}
|
|
@@ -1592,7 +1592,7 @@ declare class ReactPageProvider {
|
|
|
1592
1592
|
}, params?: Record<string, any>): string;
|
|
1593
1593
|
compile(path: string, params?: Record<string, string>): string;
|
|
1594
1594
|
protected renderView(index: number, path: string, view: ReactNode | undefined, page: PageRoute): ReactNode;
|
|
1595
|
-
protected readonly configure:
|
|
1595
|
+
protected readonly configure: alepha1532.HookPrimitive<"configure">;
|
|
1596
1596
|
protected map(pages: Array<PagePrimitive>, target: PagePrimitive): PageRouteEntry;
|
|
1597
1597
|
add(entry: PageRouteEntry): void;
|
|
1598
1598
|
protected createMatch(page: PageRoute): string;
|
|
@@ -1672,7 +1672,7 @@ interface CreateLayersResult {
|
|
|
1672
1672
|
state?: ReactRouterState;
|
|
1673
1673
|
}
|
|
1674
1674
|
//#endregion
|
|
1675
|
-
//#region
|
|
1675
|
+
//#region ../../../react/src/core/services/ReactPageService.d.ts
|
|
1676
1676
|
declare class ReactPageService {
|
|
1677
1677
|
fetch(pathname: string, options?: PagePrimitiveRenderOptions): Promise<{
|
|
1678
1678
|
html: string;
|
|
@@ -1681,7 +1681,7 @@ declare class ReactPageService {
|
|
|
1681
1681
|
render(name: string, options?: PagePrimitiveRenderOptions): Promise<PagePrimitiveRenderResult>;
|
|
1682
1682
|
}
|
|
1683
1683
|
//#endregion
|
|
1684
|
-
//#region
|
|
1684
|
+
//#region ../../../react/src/core/primitives/$page.d.ts
|
|
1685
1685
|
interface PagePrimitiveOptions<TConfig extends PageConfigSchema = PageConfigSchema, TProps extends object = TPropsDefault, TPropsParent extends object = TPropsParentDefault> {
|
|
1686
1686
|
/**
|
|
1687
1687
|
* Identifier name for the page. Must be unique.
|
|
@@ -1910,7 +1910,7 @@ type CssAnimation = {
|
|
|
1910
1910
|
timing?: string;
|
|
1911
1911
|
};
|
|
1912
1912
|
//#endregion
|
|
1913
|
-
//#region
|
|
1913
|
+
//#region ../../../react/src/core/providers/ReactBrowserRouterProvider.d.ts
|
|
1914
1914
|
interface BrowserRoute extends Route {
|
|
1915
1915
|
page: PageRoute;
|
|
1916
1916
|
}
|
|
@@ -1919,14 +1919,14 @@ declare class ReactBrowserRouterProvider extends RouterProvider<BrowserRoute> {
|
|
|
1919
1919
|
protected readonly alepha: Alepha;
|
|
1920
1920
|
protected readonly pageApi: ReactPageProvider;
|
|
1921
1921
|
add(entry: PageRouteEntry): void;
|
|
1922
|
-
protected readonly configure:
|
|
1922
|
+
protected readonly configure: alepha1532.HookPrimitive<"configure">;
|
|
1923
1923
|
transition(url: URL, previous?: PreviousLayerData[], meta?: {}): Promise<string | void>;
|
|
1924
1924
|
root(state: ReactRouterState): ReactNode;
|
|
1925
1925
|
}
|
|
1926
1926
|
//#endregion
|
|
1927
|
-
//#region
|
|
1928
|
-
declare const envSchema$4:
|
|
1929
|
-
REACT_ROOT_ID:
|
|
1927
|
+
//#region ../../../react/src/core/providers/ReactBrowserProvider.d.ts
|
|
1928
|
+
declare const envSchema$4: alepha1532.TObject<{
|
|
1929
|
+
REACT_ROOT_ID: alepha1532.TString;
|
|
1930
1930
|
}>;
|
|
1931
1931
|
declare module "alepha" {
|
|
1932
1932
|
interface Env extends Partial<Static<typeof envSchema$4>> {}
|
|
@@ -1934,8 +1934,8 @@ declare module "alepha" {
|
|
|
1934
1934
|
/**
|
|
1935
1935
|
* React browser renderer configuration atom
|
|
1936
1936
|
*/
|
|
1937
|
-
declare const reactBrowserOptions:
|
|
1938
|
-
scrollRestoration:
|
|
1937
|
+
declare const reactBrowserOptions: alepha1532.Atom<alepha1532.TObject<{
|
|
1938
|
+
scrollRestoration: alepha1532.TUnsafe<"top" | "manual">;
|
|
1939
1939
|
}>, "alepha.react.browser.options">;
|
|
1940
1940
|
type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
|
|
1941
1941
|
declare module "alepha" {
|
|
@@ -1983,8 +1983,8 @@ declare class ReactBrowserProvider {
|
|
|
1983
1983
|
* Get embedded layers from the server.
|
|
1984
1984
|
*/
|
|
1985
1985
|
protected getHydrationState(): ReactHydrationState | undefined;
|
|
1986
|
-
protected readonly onTransitionEnd:
|
|
1987
|
-
readonly ready:
|
|
1986
|
+
protected readonly onTransitionEnd: alepha1532.HookPrimitive<"react:transition:end">;
|
|
1987
|
+
readonly ready: alepha1532.HookPrimitive<"ready">;
|
|
1988
1988
|
}
|
|
1989
1989
|
interface RouterGoOptions {
|
|
1990
1990
|
replace?: boolean;
|
|
@@ -2008,7 +2008,7 @@ interface RouterRenderOptions {
|
|
|
2008
2008
|
meta?: Record<string, any>;
|
|
2009
2009
|
}
|
|
2010
2010
|
//#endregion
|
|
2011
|
-
//#region
|
|
2011
|
+
//#region ../../../react/src/head/interfaces/Head.d.ts
|
|
2012
2012
|
interface Head extends SimpleHead {
|
|
2013
2013
|
description?: string;
|
|
2014
2014
|
keywords?: string[];
|
|
@@ -2053,7 +2053,7 @@ interface SimpleHead {
|
|
|
2053
2053
|
}>;
|
|
2054
2054
|
}
|
|
2055
2055
|
//#endregion
|
|
2056
|
-
//#region
|
|
2056
|
+
//#region ../../../react/src/head/index.d.ts
|
|
2057
2057
|
declare module "@alepha/react" {
|
|
2058
2058
|
interface PagePrimitiveOptions<TConfig extends PageConfigSchema = PageConfigSchema, TProps extends object = TPropsDefault, TPropsParent extends object = TPropsParentDefault> {
|
|
2059
2059
|
head?: Head | ((props: TProps, previous?: Head) => Head);
|
|
@@ -2069,7 +2069,7 @@ declare module "@alepha/react" {
|
|
|
2069
2069
|
* @module alepha.react.head
|
|
2070
2070
|
*/
|
|
2071
2071
|
//#endregion
|
|
2072
|
-
//#region
|
|
2072
|
+
//#region ../../../react/src/core/services/ReactRouter.d.ts
|
|
2073
2073
|
declare class ReactRouter<T$1 extends object> {
|
|
2074
2074
|
protected readonly alepha: Alepha;
|
|
2075
2075
|
protected readonly pageApi: ReactPageProvider;
|
|
@@ -2149,7 +2149,7 @@ declare class ReactRouter<T$1 extends object> {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
type VirtualRouter<T$1> = { [K in keyof T$1 as T$1[K] extends PagePrimitive ? K : never]: T$1[K] };
|
|
2151
2151
|
//#endregion
|
|
2152
|
-
//#region
|
|
2152
|
+
//#region ../../../alepha/src/file/providers/FileSystemProvider.d.ts
|
|
2153
2153
|
/**
|
|
2154
2154
|
* Options for creating a file from a URL
|
|
2155
2155
|
*/
|
|
@@ -2418,7 +2418,7 @@ declare abstract class FileSystemProvider {
|
|
|
2418
2418
|
abstract writeFile(path: string, data: Uint8Array | Buffer | string | FileLike): Promise<void>;
|
|
2419
2419
|
}
|
|
2420
2420
|
//#endregion
|
|
2421
|
-
//#region
|
|
2421
|
+
//#region ../../../alepha/src/file/services/FileDetector.d.ts
|
|
2422
2422
|
interface FileTypeResult {
|
|
2423
2423
|
/**
|
|
2424
2424
|
* The detected MIME type
|
|
@@ -2545,11 +2545,11 @@ declare class FileDetector {
|
|
|
2545
2545
|
protected matchesSignature(buffer: Buffer, signature: (number | null)[]): boolean;
|
|
2546
2546
|
}
|
|
2547
2547
|
//#endregion
|
|
2548
|
-
//#region
|
|
2549
|
-
declare const envSchema$3:
|
|
2550
|
-
REACT_SSR_ENABLED:
|
|
2551
|
-
REACT_ROOT_ID:
|
|
2552
|
-
REACT_SERVER_TEMPLATE:
|
|
2548
|
+
//#region ../../../react/src/core/providers/ReactServerProvider.d.ts
|
|
2549
|
+
declare const envSchema$3: alepha1532.TObject<{
|
|
2550
|
+
REACT_SSR_ENABLED: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
2551
|
+
REACT_ROOT_ID: alepha1532.TString;
|
|
2552
|
+
REACT_SERVER_TEMPLATE: alepha1532.TOptional<alepha1532.TString>;
|
|
2553
2553
|
}>;
|
|
2554
2554
|
declare module "alepha" {
|
|
2555
2555
|
interface Env extends Partial<Static<typeof envSchema$3>> {}
|
|
@@ -2560,11 +2560,11 @@ declare module "alepha" {
|
|
|
2560
2560
|
/**
|
|
2561
2561
|
* React server provider configuration atom
|
|
2562
2562
|
*/
|
|
2563
|
-
declare const reactServerOptions:
|
|
2564
|
-
publicDir:
|
|
2565
|
-
staticServer:
|
|
2566
|
-
disabled:
|
|
2567
|
-
path:
|
|
2563
|
+
declare const reactServerOptions: alepha1532.Atom<alepha1532.TObject<{
|
|
2564
|
+
publicDir: alepha1532.TString;
|
|
2565
|
+
staticServer: alepha1532.TObject<{
|
|
2566
|
+
disabled: alepha1532.TBoolean;
|
|
2567
|
+
path: alepha1532.TString;
|
|
2568
2568
|
}>;
|
|
2569
2569
|
}>, "alepha.react.server.options">;
|
|
2570
2570
|
type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
|
|
@@ -2574,7 +2574,7 @@ declare module "alepha" {
|
|
|
2574
2574
|
}
|
|
2575
2575
|
}
|
|
2576
2576
|
//#endregion
|
|
2577
|
-
//#region
|
|
2577
|
+
//#region ../../../react/src/core/index.d.ts
|
|
2578
2578
|
declare module "alepha" {
|
|
2579
2579
|
interface State {
|
|
2580
2580
|
"alepha.react.router.state"?: ReactRouterState;
|
|
@@ -2677,21 +2677,21 @@ declare module "alepha" {
|
|
|
2677
2677
|
* @module alepha.react
|
|
2678
2678
|
*/
|
|
2679
2679
|
//#endregion
|
|
2680
|
-
//#region
|
|
2681
|
-
declare const tokensSchema:
|
|
2682
|
-
provider:
|
|
2683
|
-
access_token:
|
|
2684
|
-
issued_at:
|
|
2685
|
-
expires_in:
|
|
2686
|
-
refresh_token:
|
|
2687
|
-
refresh_token_expires_in:
|
|
2688
|
-
refresh_expires_in:
|
|
2689
|
-
id_token:
|
|
2690
|
-
scope:
|
|
2680
|
+
//#region ../../../alepha/src/server-auth/schemas/tokensSchema.d.ts
|
|
2681
|
+
declare const tokensSchema: alepha1532.TObject<{
|
|
2682
|
+
provider: alepha1532.TString;
|
|
2683
|
+
access_token: alepha1532.TString;
|
|
2684
|
+
issued_at: alepha1532.TNumber;
|
|
2685
|
+
expires_in: alepha1532.TOptional<alepha1532.TNumber>;
|
|
2686
|
+
refresh_token: alepha1532.TOptional<alepha1532.TString>;
|
|
2687
|
+
refresh_token_expires_in: alepha1532.TOptional<alepha1532.TNumber>;
|
|
2688
|
+
refresh_expires_in: alepha1532.TOptional<alepha1532.TNumber>;
|
|
2689
|
+
id_token: alepha1532.TOptional<alepha1532.TString>;
|
|
2690
|
+
scope: alepha1532.TOptional<alepha1532.TString>;
|
|
2691
2691
|
}>;
|
|
2692
2692
|
type Tokens = Static<typeof tokensSchema>;
|
|
2693
2693
|
//#endregion
|
|
2694
|
-
//#region
|
|
2694
|
+
//#region ../../../alepha/src/server-cookies/primitives/$cookie.d.ts
|
|
2695
2695
|
interface Cookies {
|
|
2696
2696
|
req: Record<string, string>;
|
|
2697
2697
|
res: Record<string, Cookie | null>;
|
|
@@ -2706,7 +2706,7 @@ interface Cookie {
|
|
|
2706
2706
|
domain?: string;
|
|
2707
2707
|
}
|
|
2708
2708
|
//#endregion
|
|
2709
|
-
//#region
|
|
2709
|
+
//#region ../../../alepha/src/server-cookies/index.d.ts
|
|
2710
2710
|
declare module "alepha/server" {
|
|
2711
2711
|
interface ServerRequest {
|
|
2712
2712
|
cookies: Cookies;
|
|
@@ -2723,7 +2723,7 @@ declare module "alepha/server" {
|
|
|
2723
2723
|
* @module alepha.server.cookies
|
|
2724
2724
|
*/
|
|
2725
2725
|
//#endregion
|
|
2726
|
-
//#region
|
|
2726
|
+
//#region ../../../alepha/src/server-auth/index.d.ts
|
|
2727
2727
|
declare module "alepha" {
|
|
2728
2728
|
interface State {
|
|
2729
2729
|
/**
|
|
@@ -2748,7 +2748,7 @@ declare module "alepha" {
|
|
|
2748
2748
|
* @module alepha.server.auth
|
|
2749
2749
|
*/
|
|
2750
2750
|
//#endregion
|
|
2751
|
-
//#region
|
|
2751
|
+
//#region ../../../react/src/auth/services/ReactAuth.d.ts
|
|
2752
2752
|
/**
|
|
2753
2753
|
* Browser, SSR friendly, service to handle authentication.
|
|
2754
2754
|
*/
|
|
@@ -2757,8 +2757,8 @@ declare class ReactAuth {
|
|
|
2757
2757
|
protected readonly alepha: Alepha;
|
|
2758
2758
|
protected readonly httpClient: HttpClient;
|
|
2759
2759
|
protected readonly linkProvider: LinkProvider;
|
|
2760
|
-
protected readonly onBeginTransition:
|
|
2761
|
-
protected readonly onFetchRequest:
|
|
2760
|
+
protected readonly onBeginTransition: alepha1532.HookPrimitive<"react:transition:begin">;
|
|
2761
|
+
protected readonly onFetchRequest: alepha1532.HookPrimitive<"client:onRequest">;
|
|
2762
2762
|
/**
|
|
2763
2763
|
* Get the current authenticated user.
|
|
2764
2764
|
*
|
|
@@ -2786,7 +2786,7 @@ declare class ReactAuth {
|
|
|
2786
2786
|
logout(): void;
|
|
2787
2787
|
}
|
|
2788
2788
|
//#endregion
|
|
2789
|
-
//#region
|
|
2789
|
+
//#region ../../../react/src/auth/index.d.ts
|
|
2790
2790
|
declare module "@alepha/react" {
|
|
2791
2791
|
interface ReactRouterState {
|
|
2792
2792
|
user?: UserAccount;
|
|
@@ -2799,7 +2799,7 @@ declare module "@alepha/react" {
|
|
|
2799
2799
|
* @module alepha.react.auth
|
|
2800
2800
|
*/
|
|
2801
2801
|
//#endregion
|
|
2802
|
-
//#region
|
|
2802
|
+
//#region ../../../alepha/src/orm/schemas/insertSchema.d.ts
|
|
2803
2803
|
/**
|
|
2804
2804
|
* Transforms a TObject schema for insert operations.
|
|
2805
2805
|
* All default properties at the root level are made optional.
|
|
@@ -2814,7 +2814,7 @@ type TObjectInsert<T$1 extends TObject> = TObject<{ [K in keyof T$1["properties"
|
|
|
2814
2814
|
"~optional": true;
|
|
2815
2815
|
} ? TOptional<T$1["properties"][K]> : T$1["properties"][K] }>;
|
|
2816
2816
|
//#endregion
|
|
2817
|
-
//#region
|
|
2817
|
+
//#region ../../../alepha/src/orm/schemas/updateSchema.d.ts
|
|
2818
2818
|
/**
|
|
2819
2819
|
* Transforms a TObject schema for update operations.
|
|
2820
2820
|
* All optional properties at the root level are made nullable (i.e., `T | null`).
|
|
@@ -2826,7 +2826,7 @@ type TObjectInsert<T$1 extends TObject> = TObject<{ [K in keyof T$1["properties"
|
|
|
2826
2826
|
*/
|
|
2827
2827
|
type TObjectUpdate<T$1 extends TObject> = TObject<{ [K in keyof T$1["properties"]]: T$1["properties"][K] extends TOptional<infer U> ? TOptional<TUnion<[U, TNull]>> : T$1["properties"][K] }>;
|
|
2828
2828
|
//#endregion
|
|
2829
|
-
//#region
|
|
2829
|
+
//#region ../../../alepha/src/orm/primitives/$entity.d.ts
|
|
2830
2830
|
interface EntityPrimitiveOptions<T$1 extends TObject, Keys = keyof Static<T$1>> {
|
|
2831
2831
|
/**
|
|
2832
2832
|
* The database table name that will be created for this entity.
|
|
@@ -2965,7 +2965,7 @@ type EntityColumn<T$1 extends TObject> = {
|
|
|
2965
2965
|
};
|
|
2966
2966
|
type EntityColumns<T$1 extends TObject> = { [key in keyof T$1["properties"]]: EntityColumn<T$1> };
|
|
2967
2967
|
//#endregion
|
|
2968
|
-
//#region
|
|
2968
|
+
//#region ../../../alepha/src/orm/constants/PG_SYMBOLS.d.ts
|
|
2969
2969
|
declare const PG_DEFAULT: unique symbol;
|
|
2970
2970
|
declare const PG_PRIMARY_KEY: unique symbol;
|
|
2971
2971
|
declare const PG_CREATED_AT: unique symbol;
|
|
@@ -3015,13 +3015,13 @@ interface PgRefOptions {
|
|
|
3015
3015
|
};
|
|
3016
3016
|
}
|
|
3017
3017
|
//#endregion
|
|
3018
|
-
//#region
|
|
3018
|
+
//#region ../../../alepha/src/orm/errors/DbError.d.ts
|
|
3019
3019
|
declare class DbError extends AlephaError {
|
|
3020
3020
|
name: string;
|
|
3021
3021
|
constructor(message: string, cause?: unknown);
|
|
3022
3022
|
}
|
|
3023
3023
|
//#endregion
|
|
3024
|
-
//#region
|
|
3024
|
+
//#region ../../../alepha/src/orm/interfaces/FilterOperators.d.ts
|
|
3025
3025
|
interface FilterOperators<TValue> {
|
|
3026
3026
|
/**
|
|
3027
3027
|
* Test that two values are equal.
|
|
@@ -3437,7 +3437,7 @@ interface FilterOperators<TValue> {
|
|
|
3437
3437
|
arrayOverlaps?: TValue;
|
|
3438
3438
|
}
|
|
3439
3439
|
//#endregion
|
|
3440
|
-
//#region
|
|
3440
|
+
//#region ../../../alepha/src/orm/interfaces/PgQuery.d.ts
|
|
3441
3441
|
/**
|
|
3442
3442
|
* Order direction for sorting
|
|
3443
3443
|
*/
|
|
@@ -3486,7 +3486,7 @@ type PgRelation<Base extends TObject> = {
|
|
|
3486
3486
|
with?: PgRelationMap<TObject>;
|
|
3487
3487
|
};
|
|
3488
3488
|
//#endregion
|
|
3489
|
-
//#region
|
|
3489
|
+
//#region ../../../alepha/src/orm/interfaces/PgQueryWhere.d.ts
|
|
3490
3490
|
type PgQueryWhere<T$1 extends TObject, Relations extends PgRelationMap<TObject> | undefined = undefined> = (PgQueryWhereOperators<T$1> & PgQueryWhereConditions<T$1>) | (PgQueryWhereRelations<Relations> & PgQueryWhereOperators<T$1> & PgQueryWhereConditions<T$1, Relations>);
|
|
3491
3491
|
type PgQueryWhereOrSQL<T$1 extends TObject, Relations extends PgRelationMap<TObject> | undefined = undefined> = SQLWrapper | PgQueryWhere<T$1, Relations>;
|
|
3492
3492
|
type PgQueryWhereOperators<T$1 extends TObject> = { [Key in keyof Static<T$1>]?: FilterOperators<Static<T$1>[Key]> | Static<T$1>[Key] | (Static<T$1>[Key] extends object ? NestedJsonbQuery<Static<T$1>[Key]> : never) };
|
|
@@ -3565,7 +3565,7 @@ type PgQueryWhereRelations<Relations extends PgRelationMap<TObject> | undefined
|
|
|
3565
3565
|
*/
|
|
3566
3566
|
type NestedJsonbQuery<T$1> = T$1 extends object ? T$1 extends Array<infer U> ? U extends object ? { [K in keyof U]?: FilterOperators<U[K]> | U[K] } : FilterOperators<U> | U : { [K in keyof T$1]?: FilterOperators<T$1[K]> | T$1[K] | (T$1[K] extends object ? NestedJsonbQuery<T$1[K]> : never) } : FilterOperators<T$1> | T$1;
|
|
3567
3567
|
//#endregion
|
|
3568
|
-
//#region
|
|
3568
|
+
//#region ../../../alepha/src/orm/helpers/pgAttr.d.ts
|
|
3569
3569
|
/**
|
|
3570
3570
|
* Type representation.
|
|
3571
3571
|
*/
|
|
@@ -3578,7 +3578,7 @@ interface PgAttrField {
|
|
|
3578
3578
|
one?: boolean;
|
|
3579
3579
|
}
|
|
3580
3580
|
//#endregion
|
|
3581
|
-
//#region
|
|
3581
|
+
//#region ../../../alepha/src/orm/primitives/$sequence.d.ts
|
|
3582
3582
|
interface SequencePrimitiveOptions extends PgSequenceOptions {
|
|
3583
3583
|
/**
|
|
3584
3584
|
* The name of the sequence. If not provided, the property key will be used.
|
|
@@ -3595,7 +3595,7 @@ declare class SequencePrimitive extends Primitive<SequencePrimitiveOptions> {
|
|
|
3595
3595
|
protected $provider(): DatabaseProvider;
|
|
3596
3596
|
}
|
|
3597
3597
|
//#endregion
|
|
3598
|
-
//#region
|
|
3598
|
+
//#region ../../../alepha/src/orm/services/ModelBuilder.d.ts
|
|
3599
3599
|
/**
|
|
3600
3600
|
* Database-specific table configuration functions
|
|
3601
3601
|
*/
|
|
@@ -3652,7 +3652,7 @@ declare abstract class ModelBuilder {
|
|
|
3652
3652
|
protected buildTableConfig<TConfig, TSelf>(entity: EntityPrimitive, builders: TableConfigBuilders<TConfig>, tableResolver?: (entityName: string) => any, customConfigHandler?: (config: any, self: TSelf) => TConfig[]): ((self: TSelf) => TConfig[]) | undefined;
|
|
3653
3653
|
}
|
|
3654
3654
|
//#endregion
|
|
3655
|
-
//#region
|
|
3655
|
+
//#region ../../../alepha/src/orm/providers/DrizzleKitProvider.d.ts
|
|
3656
3656
|
declare class DrizzleKitProvider {
|
|
3657
3657
|
protected readonly log: Logger;
|
|
3658
3658
|
protected readonly alepha: Alepha;
|
|
@@ -3690,15 +3690,15 @@ declare class DrizzleKitProvider {
|
|
|
3690
3690
|
*/
|
|
3691
3691
|
importDrizzleKit(): typeof DrizzleKit;
|
|
3692
3692
|
}
|
|
3693
|
-
declare const devMigrationsSchema:
|
|
3694
|
-
id:
|
|
3695
|
-
name:
|
|
3696
|
-
snapshot:
|
|
3697
|
-
created_at:
|
|
3693
|
+
declare const devMigrationsSchema: alepha1532.TObject<{
|
|
3694
|
+
id: alepha1532.TNumber;
|
|
3695
|
+
name: alepha1532.TString;
|
|
3696
|
+
snapshot: alepha1532.TString;
|
|
3697
|
+
created_at: alepha1532.TString;
|
|
3698
3698
|
}>;
|
|
3699
3699
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
3700
3700
|
//#endregion
|
|
3701
|
-
//#region
|
|
3701
|
+
//#region ../../../alepha/src/orm/providers/drivers/DatabaseProvider.d.ts
|
|
3702
3702
|
type SQLLike = SQLWrapper | string;
|
|
3703
3703
|
declare abstract class DatabaseProvider {
|
|
3704
3704
|
protected readonly alepha: Alepha;
|
|
@@ -3749,7 +3749,7 @@ declare abstract class DatabaseProvider {
|
|
|
3749
3749
|
protected abstract executeMigrations(migrationsFolder: string): Promise<void>;
|
|
3750
3750
|
}
|
|
3751
3751
|
//#endregion
|
|
3752
|
-
//#region
|
|
3752
|
+
//#region ../../../alepha/src/orm/services/PgJsonQueryManager.d.ts
|
|
3753
3753
|
/**
|
|
3754
3754
|
* Manages JSONB query generation for nested object and array queries in PostgreSQL.
|
|
3755
3755
|
* This class handles complex nested queries using PostgreSQL's JSONB operators.
|
|
@@ -3822,7 +3822,7 @@ declare class PgJsonQueryManager {
|
|
|
3822
3822
|
isArrayProperty(schema: TObject, path: string[]): boolean;
|
|
3823
3823
|
}
|
|
3824
3824
|
//#endregion
|
|
3825
|
-
//#region
|
|
3825
|
+
//#region ../../../alepha/src/orm/services/QueryManager.d.ts
|
|
3826
3826
|
declare class QueryManager {
|
|
3827
3827
|
protected readonly jsonQueryManager: PgJsonQueryManager;
|
|
3828
3828
|
protected readonly alepha: Alepha;
|
|
@@ -3891,7 +3891,7 @@ declare class QueryManager {
|
|
|
3891
3891
|
createPagination<T$1>(entities: T$1[], limit?: number, offset?: number, sort?: Array<{
|
|
3892
3892
|
column: string;
|
|
3893
3893
|
direction: "asc" | "desc";
|
|
3894
|
-
}>):
|
|
3894
|
+
}>): alepha1532.Page<T$1>;
|
|
3895
3895
|
}
|
|
3896
3896
|
interface PgJoin {
|
|
3897
3897
|
table: string;
|
|
@@ -3901,7 +3901,7 @@ interface PgJoin {
|
|
|
3901
3901
|
parent?: string;
|
|
3902
3902
|
}
|
|
3903
3903
|
//#endregion
|
|
3904
|
-
//#region
|
|
3904
|
+
//#region ../../../alepha/src/orm/services/PgRelationManager.d.ts
|
|
3905
3905
|
declare class PgRelationManager {
|
|
3906
3906
|
/**
|
|
3907
3907
|
* Recursively build joins for the query builder based on the relations map
|
|
@@ -3921,7 +3921,7 @@ declare class PgRelationManager {
|
|
|
3921
3921
|
buildSchemaWithJoins(baseSchema: TObject, joins: PgJoin[], parentPath?: string): TObject;
|
|
3922
3922
|
}
|
|
3923
3923
|
//#endregion
|
|
3924
|
-
//#region
|
|
3924
|
+
//#region ../../../alepha/src/orm/services/Repository.d.ts
|
|
3925
3925
|
declare abstract class Repository<T$1 extends TObject> {
|
|
3926
3926
|
readonly entity: EntityPrimitive<T$1>;
|
|
3927
3927
|
readonly provider: DatabaseProvider;
|
|
@@ -4195,19 +4195,19 @@ interface StatementOptions {
|
|
|
4195
4195
|
now?: DateTime | string;
|
|
4196
4196
|
}
|
|
4197
4197
|
//#endregion
|
|
4198
|
-
//#region
|
|
4199
|
-
declare const envSchema$2:
|
|
4200
|
-
LOCK_PREFIX_KEY:
|
|
4198
|
+
//#region ../../../alepha/src/lock/primitives/$lock.d.ts
|
|
4199
|
+
declare const envSchema$2: alepha1532.TObject<{
|
|
4200
|
+
LOCK_PREFIX_KEY: alepha1532.TString;
|
|
4201
4201
|
}>;
|
|
4202
4202
|
declare module "alepha" {
|
|
4203
4203
|
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
4204
4204
|
}
|
|
4205
4205
|
//#endregion
|
|
4206
|
-
//#region
|
|
4206
|
+
//#region ../../../alepha/src/orm/providers/drivers/NodePostgresProvider.d.ts
|
|
4207
4207
|
declare module "alepha" {
|
|
4208
4208
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
4209
4209
|
}
|
|
4210
|
-
declare const envSchema$1:
|
|
4210
|
+
declare const envSchema$1: alepha1532.TObject<{
|
|
4211
4211
|
/**
|
|
4212
4212
|
* Main configuration for database connection.
|
|
4213
4213
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -4215,21 +4215,21 @@ declare const envSchema$1: alepha1572.TObject<{
|
|
|
4215
4215
|
* or
|
|
4216
4216
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
4217
4217
|
*/
|
|
4218
|
-
DATABASE_URL:
|
|
4218
|
+
DATABASE_URL: alepha1532.TOptional<alepha1532.TString>;
|
|
4219
4219
|
/**
|
|
4220
4220
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
4221
4221
|
*
|
|
4222
4222
|
* It will monkey patch drizzle tables.
|
|
4223
4223
|
*/
|
|
4224
|
-
POSTGRES_SCHEMA:
|
|
4224
|
+
POSTGRES_SCHEMA: alepha1532.TOptional<alepha1532.TString>;
|
|
4225
4225
|
}>;
|
|
4226
4226
|
//#endregion
|
|
4227
|
-
//#region
|
|
4227
|
+
//#region ../../../alepha/src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
4228
4228
|
/**
|
|
4229
4229
|
* Configuration options for the Node.js SQLite database provider.
|
|
4230
4230
|
*/
|
|
4231
|
-
declare const nodeSqliteOptions:
|
|
4232
|
-
path:
|
|
4231
|
+
declare const nodeSqliteOptions: alepha1532.Atom<alepha1532.TObject<{
|
|
4232
|
+
path: alepha1532.TOptional<alepha1532.TString>;
|
|
4233
4233
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
4234
4234
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
4235
4235
|
declare module "alepha" {
|
|
@@ -4244,7 +4244,7 @@ declare module "alepha" {
|
|
|
4244
4244
|
* This is NOT recommended for production use.
|
|
4245
4245
|
*/
|
|
4246
4246
|
//#endregion
|
|
4247
|
-
//#region
|
|
4247
|
+
//#region ../../../alepha/src/orm/index.d.ts
|
|
4248
4248
|
declare module "alepha" {
|
|
4249
4249
|
interface Hooks {
|
|
4250
4250
|
/**
|
|
@@ -4312,7 +4312,7 @@ declare module "alepha" {
|
|
|
4312
4312
|
}
|
|
4313
4313
|
}
|
|
4314
4314
|
//#endregion
|
|
4315
|
-
//#region
|
|
4315
|
+
//#region ../../../alepha/src/bucket/providers/FileStorageProvider.d.ts
|
|
4316
4316
|
declare abstract class FileStorageProvider {
|
|
4317
4317
|
/**
|
|
4318
4318
|
* Uploads a file to the storage.
|
|
@@ -4348,7 +4348,7 @@ declare abstract class FileStorageProvider {
|
|
|
4348
4348
|
abstract delete(bucketName: string, fileId: string): Promise<void>;
|
|
4349
4349
|
}
|
|
4350
4350
|
//#endregion
|
|
4351
|
-
//#region
|
|
4351
|
+
//#region ../../../alepha/src/bucket/providers/MemoryFileStorageProvider.d.ts
|
|
4352
4352
|
declare class MemoryFileStorageProvider implements FileStorageProvider {
|
|
4353
4353
|
readonly files: Record<string, FileLike>;
|
|
4354
4354
|
protected readonly fileSystem: FileSystemProvider;
|
|
@@ -4360,7 +4360,7 @@ declare class MemoryFileStorageProvider implements FileStorageProvider {
|
|
|
4360
4360
|
protected createId(): string;
|
|
4361
4361
|
}
|
|
4362
4362
|
//#endregion
|
|
4363
|
-
//#region
|
|
4363
|
+
//#region ../../../alepha/src/bucket/primitives/$bucket.d.ts
|
|
4364
4364
|
interface BucketPrimitiveOptions extends BucketFileOptions {
|
|
4365
4365
|
/**
|
|
4366
4366
|
* File storage provider configuration for the bucket.
|
|
@@ -4532,12 +4532,12 @@ interface BucketFileOptions {
|
|
|
4532
4532
|
maxSize?: number;
|
|
4533
4533
|
}
|
|
4534
4534
|
//#endregion
|
|
4535
|
-
//#region
|
|
4535
|
+
//#region ../../../alepha/src/bucket/providers/LocalFileStorageProvider.d.ts
|
|
4536
4536
|
/**
|
|
4537
4537
|
* Local file storage configuration atom
|
|
4538
4538
|
*/
|
|
4539
|
-
declare const localFileStorageOptions:
|
|
4540
|
-
storagePath:
|
|
4539
|
+
declare const localFileStorageOptions: alepha1532.Atom<alepha1532.TObject<{
|
|
4540
|
+
storagePath: alepha1532.TString;
|
|
4541
4541
|
}>, "alepha.bucket.local.options">;
|
|
4542
4542
|
type LocalFileStorageProviderOptions = Static<typeof localFileStorageOptions.schema>;
|
|
4543
4543
|
declare module "alepha" {
|
|
@@ -4546,7 +4546,7 @@ declare module "alepha" {
|
|
|
4546
4546
|
}
|
|
4547
4547
|
}
|
|
4548
4548
|
//#endregion
|
|
4549
|
-
//#region
|
|
4549
|
+
//#region ../../../alepha/src/bucket/index.d.ts
|
|
4550
4550
|
declare module "alepha" {
|
|
4551
4551
|
interface Hooks {
|
|
4552
4552
|
/**
|
|
@@ -4580,102 +4580,102 @@ declare module "alepha" {
|
|
|
4580
4580
|
* @module alepha.bucket
|
|
4581
4581
|
*/
|
|
4582
4582
|
//#endregion
|
|
4583
|
-
//#region
|
|
4584
|
-
declare const files: EntityPrimitive<
|
|
4585
|
-
id: PgAttr<PgAttr<
|
|
4586
|
-
version: PgAttr<PgAttr<
|
|
4587
|
-
createdAt: PgAttr<PgAttr<
|
|
4588
|
-
updatedAt: PgAttr<PgAttr<
|
|
4589
|
-
blobId:
|
|
4590
|
-
creator:
|
|
4591
|
-
creatorRealm:
|
|
4592
|
-
creatorName:
|
|
4593
|
-
bucket:
|
|
4594
|
-
expirationDate:
|
|
4595
|
-
name:
|
|
4596
|
-
size:
|
|
4597
|
-
mimeType:
|
|
4598
|
-
tags:
|
|
4599
|
-
checksum:
|
|
4583
|
+
//#region ../../../alepha/src/api-files/entities/files.d.ts
|
|
4584
|
+
declare const files: EntityPrimitive<alepha1532.TObject<{
|
|
4585
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4586
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4587
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4588
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4589
|
+
blobId: alepha1532.TString;
|
|
4590
|
+
creator: alepha1532.TOptional<alepha1532.TString>;
|
|
4591
|
+
creatorRealm: alepha1532.TOptional<alepha1532.TString>;
|
|
4592
|
+
creatorName: alepha1532.TOptional<alepha1532.TString>;
|
|
4593
|
+
bucket: alepha1532.TString;
|
|
4594
|
+
expirationDate: alepha1532.TOptional<alepha1532.TString>;
|
|
4595
|
+
name: alepha1532.TString;
|
|
4596
|
+
size: alepha1532.TNumber;
|
|
4597
|
+
mimeType: alepha1532.TString;
|
|
4598
|
+
tags: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
4599
|
+
checksum: alepha1532.TOptional<alepha1532.TString>;
|
|
4600
4600
|
}>>;
|
|
4601
4601
|
type FileEntity = Static<typeof files.schema>;
|
|
4602
4602
|
//#endregion
|
|
4603
|
-
//#region
|
|
4604
|
-
declare const fileQuerySchema:
|
|
4605
|
-
page:
|
|
4606
|
-
size:
|
|
4607
|
-
sort:
|
|
4608
|
-
bucket:
|
|
4609
|
-
tags:
|
|
4610
|
-
name:
|
|
4611
|
-
mimeType:
|
|
4612
|
-
creator:
|
|
4613
|
-
createdAfter:
|
|
4614
|
-
createdBefore:
|
|
4603
|
+
//#region ../../../alepha/src/api-files/schemas/fileQuerySchema.d.ts
|
|
4604
|
+
declare const fileQuerySchema: alepha1532.TObject<{
|
|
4605
|
+
page: alepha1532.TOptional<alepha1532.TInteger>;
|
|
4606
|
+
size: alepha1532.TOptional<alepha1532.TInteger>;
|
|
4607
|
+
sort: alepha1532.TOptional<alepha1532.TString>;
|
|
4608
|
+
bucket: alepha1532.TOptional<alepha1532.TString>;
|
|
4609
|
+
tags: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
4610
|
+
name: alepha1532.TOptional<alepha1532.TString>;
|
|
4611
|
+
mimeType: alepha1532.TOptional<alepha1532.TString>;
|
|
4612
|
+
creator: alepha1532.TOptional<alepha1532.TString>;
|
|
4613
|
+
createdAfter: alepha1532.TOptional<alepha1532.TString>;
|
|
4614
|
+
createdBefore: alepha1532.TOptional<alepha1532.TString>;
|
|
4615
4615
|
}>;
|
|
4616
4616
|
type FileQuery = Static<typeof fileQuerySchema>;
|
|
4617
4617
|
//#endregion
|
|
4618
|
-
//#region
|
|
4619
|
-
declare const fileResourceSchema:
|
|
4620
|
-
id: PgAttr<PgAttr<
|
|
4621
|
-
version: PgAttr<PgAttr<
|
|
4622
|
-
createdAt: PgAttr<PgAttr<
|
|
4623
|
-
updatedAt: PgAttr<PgAttr<
|
|
4624
|
-
blobId:
|
|
4625
|
-
creator:
|
|
4626
|
-
creatorRealm:
|
|
4627
|
-
creatorName:
|
|
4628
|
-
bucket:
|
|
4629
|
-
expirationDate:
|
|
4630
|
-
name:
|
|
4631
|
-
size:
|
|
4632
|
-
mimeType:
|
|
4633
|
-
tags:
|
|
4634
|
-
checksum:
|
|
4618
|
+
//#region ../../../alepha/src/api-files/schemas/fileResourceSchema.d.ts
|
|
4619
|
+
declare const fileResourceSchema: alepha1532.TObject<{
|
|
4620
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4621
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4622
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4623
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4624
|
+
blobId: alepha1532.TString;
|
|
4625
|
+
creator: alepha1532.TOptional<alepha1532.TString>;
|
|
4626
|
+
creatorRealm: alepha1532.TOptional<alepha1532.TString>;
|
|
4627
|
+
creatorName: alepha1532.TOptional<alepha1532.TString>;
|
|
4628
|
+
bucket: alepha1532.TString;
|
|
4629
|
+
expirationDate: alepha1532.TOptional<alepha1532.TString>;
|
|
4630
|
+
name: alepha1532.TString;
|
|
4631
|
+
size: alepha1532.TNumber;
|
|
4632
|
+
mimeType: alepha1532.TString;
|
|
4633
|
+
tags: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
4634
|
+
checksum: alepha1532.TOptional<alepha1532.TString>;
|
|
4635
4635
|
}>;
|
|
4636
4636
|
type FileResource = Static<typeof fileResourceSchema>;
|
|
4637
4637
|
//#endregion
|
|
4638
|
-
//#region
|
|
4639
|
-
declare const storageStatsSchema:
|
|
4640
|
-
totalSize:
|
|
4641
|
-
totalFiles:
|
|
4642
|
-
byBucket:
|
|
4643
|
-
bucket:
|
|
4644
|
-
totalSize:
|
|
4645
|
-
fileCount:
|
|
4638
|
+
//#region ../../../alepha/src/api-files/schemas/storageStatsSchema.d.ts
|
|
4639
|
+
declare const storageStatsSchema: alepha1532.TObject<{
|
|
4640
|
+
totalSize: alepha1532.TNumber;
|
|
4641
|
+
totalFiles: alepha1532.TNumber;
|
|
4642
|
+
byBucket: alepha1532.TArray<alepha1532.TObject<{
|
|
4643
|
+
bucket: alepha1532.TString;
|
|
4644
|
+
totalSize: alepha1532.TNumber;
|
|
4645
|
+
fileCount: alepha1532.TNumber;
|
|
4646
4646
|
}>>;
|
|
4647
|
-
byMimeType:
|
|
4648
|
-
mimeType:
|
|
4649
|
-
fileCount:
|
|
4647
|
+
byMimeType: alepha1532.TArray<alepha1532.TObject<{
|
|
4648
|
+
mimeType: alepha1532.TString;
|
|
4649
|
+
fileCount: alepha1532.TNumber;
|
|
4650
4650
|
}>>;
|
|
4651
4651
|
}>;
|
|
4652
4652
|
type StorageStats = Static<typeof storageStatsSchema>;
|
|
4653
4653
|
//#endregion
|
|
4654
|
-
//#region
|
|
4654
|
+
//#region ../../../alepha/src/api-files/services/FileService.d.ts
|
|
4655
4655
|
declare class FileService {
|
|
4656
4656
|
protected readonly alepha: Alepha;
|
|
4657
4657
|
protected readonly log: Logger;
|
|
4658
|
-
protected readonly fileRepository: Repository<
|
|
4659
|
-
id: PgAttr<PgAttr<
|
|
4660
|
-
version: PgAttr<PgAttr<
|
|
4661
|
-
createdAt: PgAttr<PgAttr<
|
|
4662
|
-
updatedAt: PgAttr<PgAttr<
|
|
4663
|
-
blobId:
|
|
4664
|
-
creator:
|
|
4665
|
-
creatorRealm:
|
|
4666
|
-
creatorName:
|
|
4667
|
-
bucket:
|
|
4668
|
-
expirationDate:
|
|
4669
|
-
name:
|
|
4670
|
-
size:
|
|
4671
|
-
mimeType:
|
|
4672
|
-
tags:
|
|
4673
|
-
checksum:
|
|
4658
|
+
protected readonly fileRepository: Repository<alepha1532.TObject<{
|
|
4659
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4660
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4661
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4662
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4663
|
+
blobId: alepha1532.TString;
|
|
4664
|
+
creator: alepha1532.TOptional<alepha1532.TString>;
|
|
4665
|
+
creatorRealm: alepha1532.TOptional<alepha1532.TString>;
|
|
4666
|
+
creatorName: alepha1532.TOptional<alepha1532.TString>;
|
|
4667
|
+
bucket: alepha1532.TString;
|
|
4668
|
+
expirationDate: alepha1532.TOptional<alepha1532.TString>;
|
|
4669
|
+
name: alepha1532.TString;
|
|
4670
|
+
size: alepha1532.TNumber;
|
|
4671
|
+
mimeType: alepha1532.TString;
|
|
4672
|
+
tags: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
4673
|
+
checksum: alepha1532.TOptional<alepha1532.TString>;
|
|
4674
4674
|
}>>;
|
|
4675
4675
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
4676
4676
|
protected readonly defaultBucket: BucketPrimitive;
|
|
4677
|
-
protected onUploadFile:
|
|
4678
|
-
protected onDeleteBucketFile:
|
|
4677
|
+
protected onUploadFile: alepha1532.HookPrimitive<"bucket:file:uploaded">;
|
|
4678
|
+
protected onDeleteBucketFile: alepha1532.HookPrimitive<"bucket:file:deleted">;
|
|
4679
4679
|
/**
|
|
4680
4680
|
* Calculates SHA-256 checksum of a file.
|
|
4681
4681
|
*
|
|
@@ -4795,7 +4795,7 @@ declare class FileService {
|
|
|
4795
4795
|
entityToResource(entity: FileEntity): FileResource;
|
|
4796
4796
|
}
|
|
4797
4797
|
//#endregion
|
|
4798
|
-
//#region
|
|
4798
|
+
//#region ../../../alepha/src/api-files/controllers/FileController.d.ts
|
|
4799
4799
|
/**
|
|
4800
4800
|
* REST API controller for file management operations.
|
|
4801
4801
|
* Provides endpoints for uploading, downloading, listing, and deleting files.
|
|
@@ -4809,34 +4809,34 @@ declare class FileController {
|
|
|
4809
4809
|
* Supports filtering by bucket and tags.
|
|
4810
4810
|
*/
|
|
4811
4811
|
readonly findFiles: ActionPrimitiveFn<{
|
|
4812
|
-
query:
|
|
4813
|
-
page:
|
|
4814
|
-
size:
|
|
4815
|
-
sort:
|
|
4816
|
-
bucket:
|
|
4817
|
-
tags:
|
|
4818
|
-
name:
|
|
4819
|
-
mimeType:
|
|
4820
|
-
creator:
|
|
4821
|
-
createdAfter:
|
|
4822
|
-
createdBefore:
|
|
4812
|
+
query: alepha1532.TObject<{
|
|
4813
|
+
page: alepha1532.TOptional<alepha1532.TInteger>;
|
|
4814
|
+
size: alepha1532.TOptional<alepha1532.TInteger>;
|
|
4815
|
+
sort: alepha1532.TOptional<alepha1532.TString>;
|
|
4816
|
+
bucket: alepha1532.TOptional<alepha1532.TString>;
|
|
4817
|
+
tags: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
4818
|
+
name: alepha1532.TOptional<alepha1532.TString>;
|
|
4819
|
+
mimeType: alepha1532.TOptional<alepha1532.TString>;
|
|
4820
|
+
creator: alepha1532.TOptional<alepha1532.TString>;
|
|
4821
|
+
createdAfter: alepha1532.TOptional<alepha1532.TString>;
|
|
4822
|
+
createdBefore: alepha1532.TOptional<alepha1532.TString>;
|
|
4823
4823
|
}>;
|
|
4824
|
-
response:
|
|
4825
|
-
id: PgAttr<PgAttr<
|
|
4826
|
-
version: PgAttr<PgAttr<
|
|
4827
|
-
createdAt: PgAttr<PgAttr<
|
|
4828
|
-
updatedAt: PgAttr<PgAttr<
|
|
4829
|
-
blobId:
|
|
4830
|
-
creator:
|
|
4831
|
-
creatorRealm:
|
|
4832
|
-
creatorName:
|
|
4833
|
-
bucket:
|
|
4834
|
-
expirationDate:
|
|
4835
|
-
name:
|
|
4836
|
-
size:
|
|
4837
|
-
mimeType:
|
|
4838
|
-
tags:
|
|
4839
|
-
checksum:
|
|
4824
|
+
response: alepha1532.TPage<alepha1532.TObject<{
|
|
4825
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4826
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4827
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4828
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4829
|
+
blobId: alepha1532.TString;
|
|
4830
|
+
creator: alepha1532.TOptional<alepha1532.TString>;
|
|
4831
|
+
creatorRealm: alepha1532.TOptional<alepha1532.TString>;
|
|
4832
|
+
creatorName: alepha1532.TOptional<alepha1532.TString>;
|
|
4833
|
+
bucket: alepha1532.TString;
|
|
4834
|
+
expirationDate: alepha1532.TOptional<alepha1532.TString>;
|
|
4835
|
+
name: alepha1532.TString;
|
|
4836
|
+
size: alepha1532.TNumber;
|
|
4837
|
+
mimeType: alepha1532.TString;
|
|
4838
|
+
tags: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
4839
|
+
checksum: alepha1532.TOptional<alepha1532.TString>;
|
|
4840
4840
|
}>>;
|
|
4841
4841
|
}>;
|
|
4842
4842
|
/**
|
|
@@ -4844,13 +4844,13 @@ declare class FileController {
|
|
|
4844
4844
|
* Removes the file from the bucket and cleans up the database record.
|
|
4845
4845
|
*/
|
|
4846
4846
|
readonly deleteFile: ActionPrimitiveFn<{
|
|
4847
|
-
params:
|
|
4848
|
-
id:
|
|
4847
|
+
params: alepha1532.TObject<{
|
|
4848
|
+
id: alepha1532.TString;
|
|
4849
4849
|
}>;
|
|
4850
|
-
response:
|
|
4851
|
-
ok:
|
|
4852
|
-
id:
|
|
4853
|
-
count:
|
|
4850
|
+
response: alepha1532.TObject<{
|
|
4851
|
+
ok: alepha1532.TBoolean;
|
|
4852
|
+
id: alepha1532.TOptional<alepha1532.TUnion<[alepha1532.TString, alepha1532.TInteger]>>;
|
|
4853
|
+
count: alepha1532.TOptional<alepha1532.TNumber>;
|
|
4854
4854
|
}>;
|
|
4855
4855
|
}>;
|
|
4856
4856
|
/**
|
|
@@ -4859,29 +4859,29 @@ declare class FileController {
|
|
|
4859
4859
|
* Optionally specify bucket and expiration date.
|
|
4860
4860
|
*/
|
|
4861
4861
|
readonly uploadFile: ActionPrimitiveFn<{
|
|
4862
|
-
body:
|
|
4863
|
-
file:
|
|
4862
|
+
body: alepha1532.TObject<{
|
|
4863
|
+
file: alepha1532.TFile;
|
|
4864
4864
|
}>;
|
|
4865
|
-
query:
|
|
4866
|
-
expirationDate:
|
|
4867
|
-
bucket:
|
|
4865
|
+
query: alepha1532.TObject<{
|
|
4866
|
+
expirationDate: alepha1532.TOptional<alepha1532.TString>;
|
|
4867
|
+
bucket: alepha1532.TOptional<alepha1532.TString>;
|
|
4868
4868
|
}>;
|
|
4869
|
-
response:
|
|
4870
|
-
id: PgAttr<PgAttr<
|
|
4871
|
-
version: PgAttr<PgAttr<
|
|
4872
|
-
createdAt: PgAttr<PgAttr<
|
|
4873
|
-
updatedAt: PgAttr<PgAttr<
|
|
4874
|
-
blobId:
|
|
4875
|
-
creator:
|
|
4876
|
-
creatorRealm:
|
|
4877
|
-
creatorName:
|
|
4878
|
-
bucket:
|
|
4879
|
-
expirationDate:
|
|
4880
|
-
name:
|
|
4881
|
-
size:
|
|
4882
|
-
mimeType:
|
|
4883
|
-
tags:
|
|
4884
|
-
checksum:
|
|
4869
|
+
response: alepha1532.TObject<{
|
|
4870
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4871
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4872
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4873
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4874
|
+
blobId: alepha1532.TString;
|
|
4875
|
+
creator: alepha1532.TOptional<alepha1532.TString>;
|
|
4876
|
+
creatorRealm: alepha1532.TOptional<alepha1532.TString>;
|
|
4877
|
+
creatorName: alepha1532.TOptional<alepha1532.TString>;
|
|
4878
|
+
bucket: alepha1532.TString;
|
|
4879
|
+
expirationDate: alepha1532.TOptional<alepha1532.TString>;
|
|
4880
|
+
name: alepha1532.TString;
|
|
4881
|
+
size: alepha1532.TNumber;
|
|
4882
|
+
mimeType: alepha1532.TString;
|
|
4883
|
+
tags: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
4884
|
+
checksum: alepha1532.TOptional<alepha1532.TString>;
|
|
4885
4885
|
}>;
|
|
4886
4886
|
}>;
|
|
4887
4887
|
/**
|
|
@@ -4889,30 +4889,30 @@ declare class FileController {
|
|
|
4889
4889
|
* Allows updating name, tags, and expiration date without modifying file content.
|
|
4890
4890
|
*/
|
|
4891
4891
|
readonly updateFile: ActionPrimitiveFn<{
|
|
4892
|
-
params:
|
|
4893
|
-
id:
|
|
4892
|
+
params: alepha1532.TObject<{
|
|
4893
|
+
id: alepha1532.TString;
|
|
4894
4894
|
}>;
|
|
4895
|
-
body:
|
|
4896
|
-
name:
|
|
4897
|
-
tags:
|
|
4898
|
-
expirationDate:
|
|
4895
|
+
body: alepha1532.TObject<{
|
|
4896
|
+
name: alepha1532.TOptional<alepha1532.TString>;
|
|
4897
|
+
tags: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
4898
|
+
expirationDate: alepha1532.TOptional<alepha1532.TString>;
|
|
4899
4899
|
}>;
|
|
4900
|
-
response:
|
|
4901
|
-
id: PgAttr<PgAttr<
|
|
4902
|
-
version: PgAttr<PgAttr<
|
|
4903
|
-
createdAt: PgAttr<PgAttr<
|
|
4904
|
-
updatedAt: PgAttr<PgAttr<
|
|
4905
|
-
blobId:
|
|
4906
|
-
creator:
|
|
4907
|
-
creatorRealm:
|
|
4908
|
-
creatorName:
|
|
4909
|
-
bucket:
|
|
4910
|
-
expirationDate:
|
|
4911
|
-
name:
|
|
4912
|
-
size:
|
|
4913
|
-
mimeType:
|
|
4914
|
-
tags:
|
|
4915
|
-
checksum:
|
|
4900
|
+
response: alepha1532.TObject<{
|
|
4901
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4902
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4903
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4904
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4905
|
+
blobId: alepha1532.TString;
|
|
4906
|
+
creator: alepha1532.TOptional<alepha1532.TString>;
|
|
4907
|
+
creatorRealm: alepha1532.TOptional<alepha1532.TString>;
|
|
4908
|
+
creatorName: alepha1532.TOptional<alepha1532.TString>;
|
|
4909
|
+
bucket: alepha1532.TString;
|
|
4910
|
+
expirationDate: alepha1532.TOptional<alepha1532.TString>;
|
|
4911
|
+
name: alepha1532.TString;
|
|
4912
|
+
size: alepha1532.TNumber;
|
|
4913
|
+
mimeType: alepha1532.TString;
|
|
4914
|
+
tags: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
4915
|
+
checksum: alepha1532.TOptional<alepha1532.TString>;
|
|
4916
4916
|
}>;
|
|
4917
4917
|
}>;
|
|
4918
4918
|
/**
|
|
@@ -4921,14 +4921,14 @@ declare class FileController {
|
|
|
4921
4921
|
* Cached with ETag support for 1 year (immutable).
|
|
4922
4922
|
*/
|
|
4923
4923
|
readonly streamFile: ActionPrimitiveFn<{
|
|
4924
|
-
params:
|
|
4925
|
-
id:
|
|
4924
|
+
params: alepha1532.TObject<{
|
|
4925
|
+
id: alepha1532.TString;
|
|
4926
4926
|
}>;
|
|
4927
|
-
response:
|
|
4927
|
+
response: alepha1532.TFile;
|
|
4928
4928
|
}>;
|
|
4929
4929
|
}
|
|
4930
4930
|
//#endregion
|
|
4931
|
-
//#region
|
|
4931
|
+
//#region ../../../alepha/src/api-files/index.d.ts
|
|
4932
4932
|
declare module "alepha/bucket" {
|
|
4933
4933
|
interface BucketFileOptions {
|
|
4934
4934
|
/**
|
|
@@ -4960,7 +4960,7 @@ declare module "alepha/bucket" {
|
|
|
4960
4960
|
* @module alepha.api.files
|
|
4961
4961
|
*/
|
|
4962
4962
|
//#endregion
|
|
4963
|
-
//#region
|
|
4963
|
+
//#region ../../../alepha/src/batch/providers/BatchProvider.d.ts
|
|
4964
4964
|
interface BatchOptions<TItem, TResponse = any> {
|
|
4965
4965
|
/**
|
|
4966
4966
|
* The batch processing handler function that processes arrays of validated items.
|
|
@@ -5147,7 +5147,7 @@ declare class BatchProvider {
|
|
|
5147
5147
|
protected startProcessing<TItem, TResponse>(context: BatchContext<TItem, TResponse>): Promise<void>;
|
|
5148
5148
|
}
|
|
5149
5149
|
//#endregion
|
|
5150
|
-
//#region
|
|
5150
|
+
//#region ../../../alepha/src/batch/primitives/$batch.d.ts
|
|
5151
5151
|
interface BatchPrimitiveOptions<TItem extends TSchema, TResponse = any> {
|
|
5152
5152
|
/**
|
|
5153
5153
|
* TypeBox schema for validating each item added to the batch.
|
|
@@ -5226,56 +5226,56 @@ declare class BatchPrimitive<TItem extends TSchema, TResponse = any> extends Pri
|
|
|
5226
5226
|
* @returns The number of items cleared
|
|
5227
5227
|
*/
|
|
5228
5228
|
clearCompleted(status?: "completed" | "failed"): number;
|
|
5229
|
-
protected readonly onReady:
|
|
5230
|
-
protected readonly dispose:
|
|
5231
|
-
}
|
|
5232
|
-
//#endregion
|
|
5233
|
-
//#region
|
|
5234
|
-
declare const notifications: EntityPrimitive<
|
|
5235
|
-
id: PgAttr<PgAttr<
|
|
5236
|
-
version: PgAttr<PgAttr<
|
|
5237
|
-
createdAt: PgAttr<PgAttr<
|
|
5238
|
-
updatedAt: PgAttr<PgAttr<
|
|
5239
|
-
type:
|
|
5240
|
-
template:
|
|
5241
|
-
category:
|
|
5242
|
-
critical:
|
|
5243
|
-
sensitive:
|
|
5244
|
-
contact:
|
|
5245
|
-
variables:
|
|
5246
|
-
scheduledAt:
|
|
5247
|
-
sentAt:
|
|
5248
|
-
error:
|
|
5249
|
-
at:
|
|
5250
|
-
name:
|
|
5251
|
-
message:
|
|
5229
|
+
protected readonly onReady: alepha1532.HookPrimitive<"ready">;
|
|
5230
|
+
protected readonly dispose: alepha1532.HookPrimitive<"stop">;
|
|
5231
|
+
}
|
|
5232
|
+
//#endregion
|
|
5233
|
+
//#region ../../../alepha/src/api-notifications/entities/notifications.d.ts
|
|
5234
|
+
declare const notifications: EntityPrimitive<alepha1532.TObject<{
|
|
5235
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5236
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5237
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5238
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5239
|
+
type: alepha1532.TUnsafe<"email" | "sms">;
|
|
5240
|
+
template: alepha1532.TString;
|
|
5241
|
+
category: alepha1532.TOptional<alepha1532.TString>;
|
|
5242
|
+
critical: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5243
|
+
sensitive: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5244
|
+
contact: alepha1532.TString;
|
|
5245
|
+
variables: alepha1532.TOptional<alepha1532.TRecord<"^.*$", alepha1532.TAny>>;
|
|
5246
|
+
scheduledAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5247
|
+
sentAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5248
|
+
error: alepha1532.TOptional<alepha1532.TObject<{
|
|
5249
|
+
at: alepha1532.TString;
|
|
5250
|
+
name: alepha1532.TString;
|
|
5251
|
+
message: alepha1532.TString;
|
|
5252
5252
|
}>>;
|
|
5253
5253
|
}>>;
|
|
5254
5254
|
type NotificationEntity = Static<typeof notifications.schema>;
|
|
5255
5255
|
//#endregion
|
|
5256
|
-
//#region
|
|
5257
|
-
declare const notificationCreateSchema:
|
|
5258
|
-
type:
|
|
5259
|
-
template:
|
|
5260
|
-
contact:
|
|
5261
|
-
variables:
|
|
5256
|
+
//#region ../../../alepha/src/api-notifications/schemas/notificationCreateSchema.d.ts
|
|
5257
|
+
declare const notificationCreateSchema: alepha1532.TObject<{
|
|
5258
|
+
type: alepha1532.TUnsafe<"email" | "sms">;
|
|
5259
|
+
template: alepha1532.TString;
|
|
5260
|
+
contact: alepha1532.TString;
|
|
5261
|
+
variables: alepha1532.TOptional<alepha1532.TRecord<"^.*$", alepha1532.TAny>>;
|
|
5262
5262
|
}>;
|
|
5263
5263
|
type NotificationCreate = Static<typeof notificationCreateSchema>;
|
|
5264
5264
|
//#endregion
|
|
5265
|
-
//#region
|
|
5266
|
-
declare const notificationQuerySchema:
|
|
5267
|
-
page:
|
|
5268
|
-
size:
|
|
5269
|
-
sort:
|
|
5270
|
-
type:
|
|
5271
|
-
template:
|
|
5272
|
-
contact:
|
|
5273
|
-
category:
|
|
5274
|
-
status:
|
|
5265
|
+
//#region ../../../alepha/src/api-notifications/schemas/notificationQuerySchema.d.ts
|
|
5266
|
+
declare const notificationQuerySchema: alepha1532.TObject<{
|
|
5267
|
+
page: alepha1532.TOptional<alepha1532.TInteger>;
|
|
5268
|
+
size: alepha1532.TOptional<alepha1532.TInteger>;
|
|
5269
|
+
sort: alepha1532.TOptional<alepha1532.TString>;
|
|
5270
|
+
type: alepha1532.TOptional<alepha1532.TUnsafe<"email" | "sms">>;
|
|
5271
|
+
template: alepha1532.TOptional<alepha1532.TString>;
|
|
5272
|
+
contact: alepha1532.TOptional<alepha1532.TString>;
|
|
5273
|
+
category: alepha1532.TOptional<alepha1532.TString>;
|
|
5274
|
+
status: alepha1532.TOptional<alepha1532.TUnsafe<"pending" | "sent" | "failed">>;
|
|
5275
5275
|
}>;
|
|
5276
5276
|
type NotificationQuery = Static<typeof notificationQuerySchema>;
|
|
5277
5277
|
//#endregion
|
|
5278
|
-
//#region
|
|
5278
|
+
//#region ../../../alepha/src/api-notifications/primitives/$notification.d.ts
|
|
5279
5279
|
interface NotificationPrimitiveOptions<T$1 extends TObject> extends NotificationMessage<T$1> {
|
|
5280
5280
|
name?: string;
|
|
5281
5281
|
description?: string;
|
|
@@ -5307,7 +5307,7 @@ interface NotificationMessage<T$1 extends TObject> {
|
|
|
5307
5307
|
};
|
|
5308
5308
|
}
|
|
5309
5309
|
//#endregion
|
|
5310
|
-
//#region
|
|
5310
|
+
//#region ../../../alepha/src/email/providers/EmailProvider.d.ts
|
|
5311
5311
|
/**
|
|
5312
5312
|
* Email provider interface.
|
|
5313
5313
|
*
|
|
@@ -5327,7 +5327,7 @@ type EmailSendOptions = {
|
|
|
5327
5327
|
body: string;
|
|
5328
5328
|
};
|
|
5329
5329
|
//#endregion
|
|
5330
|
-
//#region
|
|
5330
|
+
//#region ../../../alepha/src/email/index.d.ts
|
|
5331
5331
|
declare module "alepha" {
|
|
5332
5332
|
interface Hooks {
|
|
5333
5333
|
"email:sending": {
|
|
@@ -5355,7 +5355,7 @@ declare module "alepha" {
|
|
|
5355
5355
|
* @module alepha.email
|
|
5356
5356
|
*/
|
|
5357
5357
|
//#endregion
|
|
5358
|
-
//#region
|
|
5358
|
+
//#region ../../../alepha/src/sms/providers/SmsProvider.d.ts
|
|
5359
5359
|
/**
|
|
5360
5360
|
* SMS provider interface.
|
|
5361
5361
|
*
|
|
@@ -5374,7 +5374,7 @@ type SmsSendOptions = {
|
|
|
5374
5374
|
message: string;
|
|
5375
5375
|
};
|
|
5376
5376
|
//#endregion
|
|
5377
|
-
//#region
|
|
5377
|
+
//#region ../../../alepha/src/sms/index.d.ts
|
|
5378
5378
|
declare module "alepha" {
|
|
5379
5379
|
interface Hooks {
|
|
5380
5380
|
"sms:sending": {
|
|
@@ -5402,28 +5402,28 @@ declare module "alepha" {
|
|
|
5402
5402
|
* @module alepha.sms
|
|
5403
5403
|
*/
|
|
5404
5404
|
//#endregion
|
|
5405
|
-
//#region
|
|
5405
|
+
//#region ../../../alepha/src/api-notifications/services/NotificationSenderService.d.ts
|
|
5406
5406
|
declare class NotificationSenderService {
|
|
5407
5407
|
protected readonly alepha: Alepha;
|
|
5408
5408
|
protected readonly log: Logger;
|
|
5409
|
-
protected readonly notificationRepository: Repository<
|
|
5410
|
-
id: PgAttr<PgAttr<
|
|
5411
|
-
version: PgAttr<PgAttr<
|
|
5412
|
-
createdAt: PgAttr<PgAttr<
|
|
5413
|
-
updatedAt: PgAttr<PgAttr<
|
|
5414
|
-
type:
|
|
5415
|
-
template:
|
|
5416
|
-
category:
|
|
5417
|
-
critical:
|
|
5418
|
-
sensitive:
|
|
5419
|
-
contact:
|
|
5420
|
-
variables:
|
|
5421
|
-
scheduledAt:
|
|
5422
|
-
sentAt:
|
|
5423
|
-
error:
|
|
5424
|
-
at:
|
|
5425
|
-
name:
|
|
5426
|
-
message:
|
|
5409
|
+
protected readonly notificationRepository: Repository<alepha1532.TObject<{
|
|
5410
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5411
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5412
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5413
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5414
|
+
type: alepha1532.TUnsafe<"email" | "sms">;
|
|
5415
|
+
template: alepha1532.TString;
|
|
5416
|
+
category: alepha1532.TOptional<alepha1532.TString>;
|
|
5417
|
+
critical: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5418
|
+
sensitive: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5419
|
+
contact: alepha1532.TString;
|
|
5420
|
+
variables: alepha1532.TOptional<alepha1532.TRecord<"^.*$", alepha1532.TAny>>;
|
|
5421
|
+
scheduledAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5422
|
+
sentAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5423
|
+
error: alepha1532.TOptional<alepha1532.TObject<{
|
|
5424
|
+
at: alepha1532.TString;
|
|
5425
|
+
name: alepha1532.TString;
|
|
5426
|
+
message: alepha1532.TString;
|
|
5427
5427
|
}>>;
|
|
5428
5428
|
}>>;
|
|
5429
5429
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
@@ -5440,15 +5440,15 @@ declare class NotificationSenderService {
|
|
|
5440
5440
|
body: string;
|
|
5441
5441
|
};
|
|
5442
5442
|
protected load(notification: NotificationEntity): {
|
|
5443
|
-
template: NotificationPrimitive<
|
|
5443
|
+
template: NotificationPrimitive<alepha1532.TObject<alepha1532.TProperties>>;
|
|
5444
5444
|
variables: Record<string, any>;
|
|
5445
5445
|
contact: string;
|
|
5446
5446
|
};
|
|
5447
5447
|
}
|
|
5448
5448
|
//#endregion
|
|
5449
|
-
//#region
|
|
5450
|
-
declare const notificationServiceEnvSchema:
|
|
5451
|
-
NOTIFICATION_QUEUE:
|
|
5449
|
+
//#region ../../../alepha/src/api-notifications/services/NotificationService.d.ts
|
|
5450
|
+
declare const notificationServiceEnvSchema: alepha1532.TObject<{
|
|
5451
|
+
NOTIFICATION_QUEUE: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5452
5452
|
}>;
|
|
5453
5453
|
declare module "alepha" {
|
|
5454
5454
|
interface Env extends Partial<Static<typeof notificationServiceEnvSchema>> {}
|
|
@@ -5459,71 +5459,71 @@ declare class NotificationService {
|
|
|
5459
5459
|
protected readonly env: {
|
|
5460
5460
|
NOTIFICATION_QUEUE?: boolean | undefined;
|
|
5461
5461
|
};
|
|
5462
|
-
protected readonly notificationRepository: Repository<
|
|
5463
|
-
id: PgAttr<PgAttr<
|
|
5464
|
-
version: PgAttr<PgAttr<
|
|
5465
|
-
createdAt: PgAttr<PgAttr<
|
|
5466
|
-
updatedAt: PgAttr<PgAttr<
|
|
5467
|
-
type:
|
|
5468
|
-
template:
|
|
5469
|
-
category:
|
|
5470
|
-
critical:
|
|
5471
|
-
sensitive:
|
|
5472
|
-
contact:
|
|
5473
|
-
variables:
|
|
5474
|
-
scheduledAt:
|
|
5475
|
-
sentAt:
|
|
5476
|
-
error:
|
|
5477
|
-
at:
|
|
5478
|
-
name:
|
|
5479
|
-
message:
|
|
5462
|
+
protected readonly notificationRepository: Repository<alepha1532.TObject<{
|
|
5463
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5464
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5465
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5466
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5467
|
+
type: alepha1532.TUnsafe<"email" | "sms">;
|
|
5468
|
+
template: alepha1532.TString;
|
|
5469
|
+
category: alepha1532.TOptional<alepha1532.TString>;
|
|
5470
|
+
critical: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5471
|
+
sensitive: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5472
|
+
contact: alepha1532.TString;
|
|
5473
|
+
variables: alepha1532.TOptional<alepha1532.TRecord<"^.*$", alepha1532.TAny>>;
|
|
5474
|
+
scheduledAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5475
|
+
sentAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5476
|
+
error: alepha1532.TOptional<alepha1532.TObject<{
|
|
5477
|
+
at: alepha1532.TString;
|
|
5478
|
+
name: alepha1532.TString;
|
|
5479
|
+
message: alepha1532.TString;
|
|
5480
5480
|
}>>;
|
|
5481
5481
|
}>>;
|
|
5482
5482
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
5483
5483
|
protected readonly notificationSenderService: NotificationSenderService;
|
|
5484
|
-
readonly notificationBatch: BatchPrimitive<
|
|
5485
|
-
type:
|
|
5486
|
-
template:
|
|
5487
|
-
contact:
|
|
5488
|
-
variables:
|
|
5484
|
+
readonly notificationBatch: BatchPrimitive<alepha1532.TObject<{
|
|
5485
|
+
type: alepha1532.TUnsafe<"email" | "sms">;
|
|
5486
|
+
template: alepha1532.TString;
|
|
5487
|
+
contact: alepha1532.TString;
|
|
5488
|
+
variables: alepha1532.TOptional<alepha1532.TRecord<"^.*$", alepha1532.TAny>>;
|
|
5489
5489
|
}>, Promise<void>>;
|
|
5490
|
-
findNotificationById(id: string): Promise<PgStatic<
|
|
5491
|
-
id: PgAttr<PgAttr<
|
|
5492
|
-
version: PgAttr<PgAttr<
|
|
5493
|
-
createdAt: PgAttr<PgAttr<
|
|
5494
|
-
updatedAt: PgAttr<PgAttr<
|
|
5495
|
-
type:
|
|
5496
|
-
template:
|
|
5497
|
-
category:
|
|
5498
|
-
critical:
|
|
5499
|
-
sensitive:
|
|
5500
|
-
contact:
|
|
5501
|
-
variables:
|
|
5502
|
-
scheduledAt:
|
|
5503
|
-
sentAt:
|
|
5504
|
-
error:
|
|
5505
|
-
at:
|
|
5506
|
-
name:
|
|
5507
|
-
message:
|
|
5490
|
+
findNotificationById(id: string): Promise<PgStatic<alepha1532.TObject<{
|
|
5491
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5492
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5493
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5494
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5495
|
+
type: alepha1532.TUnsafe<"email" | "sms">;
|
|
5496
|
+
template: alepha1532.TString;
|
|
5497
|
+
category: alepha1532.TOptional<alepha1532.TString>;
|
|
5498
|
+
critical: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5499
|
+
sensitive: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5500
|
+
contact: alepha1532.TString;
|
|
5501
|
+
variables: alepha1532.TOptional<alepha1532.TRecord<"^.*$", alepha1532.TAny>>;
|
|
5502
|
+
scheduledAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5503
|
+
sentAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5504
|
+
error: alepha1532.TOptional<alepha1532.TObject<{
|
|
5505
|
+
at: alepha1532.TString;
|
|
5506
|
+
name: alepha1532.TString;
|
|
5507
|
+
message: alepha1532.TString;
|
|
5508
5508
|
}>>;
|
|
5509
|
-
}>, PgRelationMap<
|
|
5510
|
-
id: PgAttr<PgAttr<
|
|
5511
|
-
version: PgAttr<PgAttr<
|
|
5512
|
-
createdAt: PgAttr<PgAttr<
|
|
5513
|
-
updatedAt: PgAttr<PgAttr<
|
|
5514
|
-
type:
|
|
5515
|
-
template:
|
|
5516
|
-
category:
|
|
5517
|
-
critical:
|
|
5518
|
-
sensitive:
|
|
5519
|
-
contact:
|
|
5520
|
-
variables:
|
|
5521
|
-
scheduledAt:
|
|
5522
|
-
sentAt:
|
|
5523
|
-
error:
|
|
5524
|
-
at:
|
|
5525
|
-
name:
|
|
5526
|
-
message:
|
|
5509
|
+
}>, PgRelationMap<alepha1532.TObject<{
|
|
5510
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5511
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5512
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5513
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5514
|
+
type: alepha1532.TUnsafe<"email" | "sms">;
|
|
5515
|
+
template: alepha1532.TString;
|
|
5516
|
+
category: alepha1532.TOptional<alepha1532.TString>;
|
|
5517
|
+
critical: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5518
|
+
sensitive: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5519
|
+
contact: alepha1532.TString;
|
|
5520
|
+
variables: alepha1532.TOptional<alepha1532.TRecord<"^.*$", alepha1532.TAny>>;
|
|
5521
|
+
scheduledAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5522
|
+
sentAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5523
|
+
error: alepha1532.TOptional<alepha1532.TObject<{
|
|
5524
|
+
at: alepha1532.TString;
|
|
5525
|
+
name: alepha1532.TString;
|
|
5526
|
+
message: alepha1532.TString;
|
|
5527
5527
|
}>>;
|
|
5528
5528
|
}>>>>;
|
|
5529
5529
|
findNotifications(q?: NotificationQuery): Promise<Page$1<NotificationEntity>>;
|
|
@@ -5533,7 +5533,7 @@ declare class NotificationService {
|
|
|
5533
5533
|
createNotification(entry: NotificationCreate): Promise<void>;
|
|
5534
5534
|
}
|
|
5535
5535
|
//#endregion
|
|
5536
|
-
//#region
|
|
5536
|
+
//#region ../../../alepha/src/api-notifications/controllers/NotificationController.d.ts
|
|
5537
5537
|
declare class NotificationController {
|
|
5538
5538
|
protected readonly url = "/notifications";
|
|
5539
5539
|
protected readonly group = "notifications";
|
|
@@ -5542,144 +5542,144 @@ declare class NotificationController {
|
|
|
5542
5542
|
* Find notifications with pagination and filtering.
|
|
5543
5543
|
*/
|
|
5544
5544
|
readonly findNotifications: ActionPrimitiveFn<{
|
|
5545
|
-
query:
|
|
5546
|
-
page:
|
|
5547
|
-
size:
|
|
5548
|
-
sort:
|
|
5549
|
-
type:
|
|
5550
|
-
template:
|
|
5551
|
-
contact:
|
|
5552
|
-
category:
|
|
5553
|
-
status:
|
|
5545
|
+
query: alepha1532.TObject<{
|
|
5546
|
+
page: alepha1532.TOptional<alepha1532.TInteger>;
|
|
5547
|
+
size: alepha1532.TOptional<alepha1532.TInteger>;
|
|
5548
|
+
sort: alepha1532.TOptional<alepha1532.TString>;
|
|
5549
|
+
type: alepha1532.TOptional<alepha1532.TUnsafe<"email" | "sms">>;
|
|
5550
|
+
template: alepha1532.TOptional<alepha1532.TString>;
|
|
5551
|
+
contact: alepha1532.TOptional<alepha1532.TString>;
|
|
5552
|
+
category: alepha1532.TOptional<alepha1532.TString>;
|
|
5553
|
+
status: alepha1532.TOptional<alepha1532.TUnsafe<"pending" | "sent" | "failed">>;
|
|
5554
5554
|
}>;
|
|
5555
|
-
response:
|
|
5556
|
-
id: PgAttr<PgAttr<
|
|
5557
|
-
version: PgAttr<PgAttr<
|
|
5558
|
-
createdAt: PgAttr<PgAttr<
|
|
5559
|
-
updatedAt: PgAttr<PgAttr<
|
|
5560
|
-
type:
|
|
5561
|
-
template:
|
|
5562
|
-
category:
|
|
5563
|
-
critical:
|
|
5564
|
-
sensitive:
|
|
5565
|
-
contact:
|
|
5566
|
-
variables:
|
|
5567
|
-
scheduledAt:
|
|
5568
|
-
sentAt:
|
|
5569
|
-
error:
|
|
5570
|
-
at:
|
|
5571
|
-
name:
|
|
5572
|
-
message:
|
|
5555
|
+
response: alepha1532.TPage<alepha1532.TObject<{
|
|
5556
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5557
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5558
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5559
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5560
|
+
type: alepha1532.TUnsafe<"email" | "sms">;
|
|
5561
|
+
template: alepha1532.TString;
|
|
5562
|
+
category: alepha1532.TOptional<alepha1532.TString>;
|
|
5563
|
+
critical: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5564
|
+
sensitive: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5565
|
+
contact: alepha1532.TString;
|
|
5566
|
+
variables: alepha1532.TOptional<alepha1532.TRecord<"^.*$", alepha1532.TAny>>;
|
|
5567
|
+
scheduledAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5568
|
+
sentAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5569
|
+
error: alepha1532.TOptional<alepha1532.TObject<{
|
|
5570
|
+
at: alepha1532.TString;
|
|
5571
|
+
name: alepha1532.TString;
|
|
5572
|
+
message: alepha1532.TString;
|
|
5573
5573
|
}>>;
|
|
5574
5574
|
}>>;
|
|
5575
5575
|
}>;
|
|
5576
5576
|
}
|
|
5577
5577
|
//#endregion
|
|
5578
|
-
//#region
|
|
5579
|
-
declare const envSchema:
|
|
5578
|
+
//#region ../../../alepha/src/queue/providers/WorkerProvider.d.ts
|
|
5579
|
+
declare const envSchema: alepha1532.TObject<{
|
|
5580
5580
|
/**
|
|
5581
5581
|
* The timeout in seconds for blocking job acquisition.
|
|
5582
5582
|
* Workers will check for shutdown after each timeout period.
|
|
5583
5583
|
*/
|
|
5584
|
-
QUEUE_WORKER_BLOCKING_TIMEOUT:
|
|
5584
|
+
QUEUE_WORKER_BLOCKING_TIMEOUT: alepha1532.TInteger;
|
|
5585
5585
|
/**
|
|
5586
5586
|
* The number of workers to run concurrently. Defaults to 1.
|
|
5587
5587
|
* Useful only if you are doing a lot of I/O.
|
|
5588
5588
|
*/
|
|
5589
|
-
QUEUE_WORKER_CONCURRENCY:
|
|
5589
|
+
QUEUE_WORKER_CONCURRENCY: alepha1532.TInteger;
|
|
5590
5590
|
/**
|
|
5591
5591
|
* Interval in milliseconds for renewing job locks during processing.
|
|
5592
5592
|
* Should be less than the job's lock duration.
|
|
5593
5593
|
*/
|
|
5594
|
-
QUEUE_WORKER_LOCK_RENEWAL_INTERVAL:
|
|
5594
|
+
QUEUE_WORKER_LOCK_RENEWAL_INTERVAL: alepha1532.TInteger;
|
|
5595
5595
|
/**
|
|
5596
5596
|
* Interval in milliseconds for the scheduler to check delayed jobs and stalled jobs.
|
|
5597
5597
|
*/
|
|
5598
|
-
QUEUE_SCHEDULER_INTERVAL:
|
|
5598
|
+
QUEUE_SCHEDULER_INTERVAL: alepha1532.TInteger;
|
|
5599
5599
|
/**
|
|
5600
5600
|
* Threshold in milliseconds after lock expiration to consider a job stalled.
|
|
5601
5601
|
*/
|
|
5602
|
-
QUEUE_STALLED_THRESHOLD:
|
|
5602
|
+
QUEUE_STALLED_THRESHOLD: alepha1532.TInteger;
|
|
5603
5603
|
}>;
|
|
5604
5604
|
declare module "alepha" {
|
|
5605
5605
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
5606
5606
|
}
|
|
5607
5607
|
//#endregion
|
|
5608
|
-
//#region
|
|
5609
|
-
declare const realmAuthSettingsAtom:
|
|
5610
|
-
registrationAllowed:
|
|
5611
|
-
emailEnabled:
|
|
5612
|
-
emailRequired:
|
|
5613
|
-
usernameEnabled:
|
|
5614
|
-
usernameRequired:
|
|
5615
|
-
phoneEnabled:
|
|
5616
|
-
phoneRequired:
|
|
5617
|
-
verifyEmailRequired:
|
|
5618
|
-
verifyPhoneRequired:
|
|
5619
|
-
firstNameLastNameEnabled:
|
|
5620
|
-
firstNameLastNameRequired:
|
|
5621
|
-
resetPasswordAllowed:
|
|
5622
|
-
passwordPolicy:
|
|
5623
|
-
minLength:
|
|
5624
|
-
requireUppercase:
|
|
5625
|
-
requireLowercase:
|
|
5626
|
-
requireNumbers:
|
|
5627
|
-
requireSpecialCharacters:
|
|
5608
|
+
//#region ../../../alepha/src/api-users/atoms/realmAuthSettingsAtom.d.ts
|
|
5609
|
+
declare const realmAuthSettingsAtom: alepha1532.Atom<alepha1532.TObject<{
|
|
5610
|
+
registrationAllowed: alepha1532.TBoolean;
|
|
5611
|
+
emailEnabled: alepha1532.TBoolean;
|
|
5612
|
+
emailRequired: alepha1532.TBoolean;
|
|
5613
|
+
usernameEnabled: alepha1532.TBoolean;
|
|
5614
|
+
usernameRequired: alepha1532.TBoolean;
|
|
5615
|
+
phoneEnabled: alepha1532.TBoolean;
|
|
5616
|
+
phoneRequired: alepha1532.TBoolean;
|
|
5617
|
+
verifyEmailRequired: alepha1532.TBoolean;
|
|
5618
|
+
verifyPhoneRequired: alepha1532.TBoolean;
|
|
5619
|
+
firstNameLastNameEnabled: alepha1532.TBoolean;
|
|
5620
|
+
firstNameLastNameRequired: alepha1532.TBoolean;
|
|
5621
|
+
resetPasswordAllowed: alepha1532.TBoolean;
|
|
5622
|
+
passwordPolicy: alepha1532.TObject<{
|
|
5623
|
+
minLength: alepha1532.TInteger;
|
|
5624
|
+
requireUppercase: alepha1532.TBoolean;
|
|
5625
|
+
requireLowercase: alepha1532.TBoolean;
|
|
5626
|
+
requireNumbers: alepha1532.TBoolean;
|
|
5627
|
+
requireSpecialCharacters: alepha1532.TBoolean;
|
|
5628
5628
|
}>;
|
|
5629
5629
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
5630
5630
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
5631
5631
|
//#endregion
|
|
5632
|
-
//#region
|
|
5633
|
-
declare const identities: EntityPrimitive<
|
|
5634
|
-
id: PgAttr<PgAttr<
|
|
5635
|
-
version: PgAttr<PgAttr<
|
|
5636
|
-
createdAt: PgAttr<PgAttr<
|
|
5637
|
-
updatedAt: PgAttr<PgAttr<
|
|
5638
|
-
userId: PgAttr<
|
|
5639
|
-
password:
|
|
5640
|
-
provider:
|
|
5641
|
-
providerUserId:
|
|
5642
|
-
providerData:
|
|
5632
|
+
//#region ../../../alepha/src/api-users/entities/identities.d.ts
|
|
5633
|
+
declare const identities: EntityPrimitive<alepha1532.TObject<{
|
|
5634
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5635
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5636
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5637
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5638
|
+
userId: PgAttr<alepha1532.TString, typeof PG_REF>;
|
|
5639
|
+
password: alepha1532.TOptional<alepha1532.TString>;
|
|
5640
|
+
provider: alepha1532.TString;
|
|
5641
|
+
providerUserId: alepha1532.TOptional<alepha1532.TString>;
|
|
5642
|
+
providerData: alepha1532.TOptional<alepha1532.TRecord<string, alepha1532.TAny>>;
|
|
5643
5643
|
}>>;
|
|
5644
5644
|
//#endregion
|
|
5645
|
-
//#region
|
|
5646
|
-
declare const sessions: EntityPrimitive<
|
|
5647
|
-
id: PgAttr<PgAttr<
|
|
5648
|
-
version: PgAttr<PgAttr<
|
|
5649
|
-
createdAt: PgAttr<PgAttr<
|
|
5650
|
-
updatedAt: PgAttr<PgAttr<
|
|
5651
|
-
refreshToken:
|
|
5652
|
-
userId: PgAttr<
|
|
5653
|
-
expiresAt:
|
|
5654
|
-
ip:
|
|
5655
|
-
userAgent:
|
|
5656
|
-
os:
|
|
5657
|
-
browser:
|
|
5658
|
-
device:
|
|
5645
|
+
//#region ../../../alepha/src/api-users/entities/sessions.d.ts
|
|
5646
|
+
declare const sessions: EntityPrimitive<alepha1532.TObject<{
|
|
5647
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5648
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5649
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5650
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5651
|
+
refreshToken: alepha1532.TString;
|
|
5652
|
+
userId: PgAttr<alepha1532.TString, typeof PG_REF>;
|
|
5653
|
+
expiresAt: alepha1532.TString;
|
|
5654
|
+
ip: alepha1532.TOptional<alepha1532.TString>;
|
|
5655
|
+
userAgent: alepha1532.TOptional<alepha1532.TObject<{
|
|
5656
|
+
os: alepha1532.TString;
|
|
5657
|
+
browser: alepha1532.TString;
|
|
5658
|
+
device: alepha1532.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5659
5659
|
}>>;
|
|
5660
5660
|
}>>;
|
|
5661
5661
|
type SessionEntity = Static<typeof sessions.schema>;
|
|
5662
5662
|
//#endregion
|
|
5663
|
-
//#region
|
|
5664
|
-
declare const users: EntityPrimitive<
|
|
5665
|
-
id: PgAttr<PgAttr<
|
|
5666
|
-
version: PgAttr<PgAttr<
|
|
5667
|
-
createdAt: PgAttr<PgAttr<
|
|
5668
|
-
updatedAt: PgAttr<PgAttr<
|
|
5669
|
-
realm: PgAttr<
|
|
5670
|
-
username:
|
|
5671
|
-
email:
|
|
5672
|
-
phoneNumber:
|
|
5673
|
-
roles: PgAttr<
|
|
5674
|
-
firstName:
|
|
5675
|
-
lastName:
|
|
5676
|
-
picture:
|
|
5677
|
-
enabled: PgAttr<
|
|
5678
|
-
emailVerified: PgAttr<
|
|
5663
|
+
//#region ../../../alepha/src/api-users/entities/users.d.ts
|
|
5664
|
+
declare const users: EntityPrimitive<alepha1532.TObject<{
|
|
5665
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5666
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5667
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5668
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5669
|
+
realm: PgAttr<alepha1532.TString, typeof PG_DEFAULT>;
|
|
5670
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
5671
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
5672
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TString>;
|
|
5673
|
+
roles: PgAttr<alepha1532.TArray<alepha1532.TString>, typeof PG_DEFAULT>;
|
|
5674
|
+
firstName: alepha1532.TOptional<alepha1532.TString>;
|
|
5675
|
+
lastName: alepha1532.TOptional<alepha1532.TString>;
|
|
5676
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
5677
|
+
enabled: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
5678
|
+
emailVerified: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
5679
5679
|
}>>;
|
|
5680
5680
|
type UserEntity = Static<typeof users.schema>;
|
|
5681
5681
|
//#endregion
|
|
5682
|
-
//#region
|
|
5682
|
+
//#region ../../../alepha/src/api-users/providers/UserRealmProvider.d.ts
|
|
5683
5683
|
interface UserRealmRepositories {
|
|
5684
5684
|
identities: Repository<typeof identities.schema>;
|
|
5685
5685
|
sessions: Repository<typeof sessions.schema>;
|
|
@@ -5692,51 +5692,51 @@ interface UserRealm {
|
|
|
5692
5692
|
}
|
|
5693
5693
|
declare class UserRealmProvider {
|
|
5694
5694
|
protected readonly alepha: Alepha;
|
|
5695
|
-
protected readonly defaultIdentities: Repository<
|
|
5696
|
-
id: PgAttr<PgAttr<
|
|
5697
|
-
version: PgAttr<PgAttr<
|
|
5698
|
-
createdAt: PgAttr<PgAttr<
|
|
5699
|
-
updatedAt: PgAttr<PgAttr<
|
|
5700
|
-
userId: PgAttr<
|
|
5701
|
-
password:
|
|
5702
|
-
provider:
|
|
5703
|
-
providerUserId:
|
|
5704
|
-
providerData:
|
|
5695
|
+
protected readonly defaultIdentities: Repository<alepha1532.TObject<{
|
|
5696
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5697
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5698
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5699
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5700
|
+
userId: PgAttr<alepha1532.TString, typeof PG_REF>;
|
|
5701
|
+
password: alepha1532.TOptional<alepha1532.TString>;
|
|
5702
|
+
provider: alepha1532.TString;
|
|
5703
|
+
providerUserId: alepha1532.TOptional<alepha1532.TString>;
|
|
5704
|
+
providerData: alepha1532.TOptional<alepha1532.TRecord<string, alepha1532.TAny>>;
|
|
5705
5705
|
}>>;
|
|
5706
|
-
protected readonly defaultSessions: Repository<
|
|
5707
|
-
id: PgAttr<PgAttr<
|
|
5708
|
-
version: PgAttr<PgAttr<
|
|
5709
|
-
createdAt: PgAttr<PgAttr<
|
|
5710
|
-
updatedAt: PgAttr<PgAttr<
|
|
5711
|
-
refreshToken:
|
|
5712
|
-
userId: PgAttr<
|
|
5713
|
-
expiresAt:
|
|
5714
|
-
ip:
|
|
5715
|
-
userAgent:
|
|
5716
|
-
os:
|
|
5717
|
-
browser:
|
|
5718
|
-
device:
|
|
5706
|
+
protected readonly defaultSessions: Repository<alepha1532.TObject<{
|
|
5707
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5708
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5709
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5710
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5711
|
+
refreshToken: alepha1532.TString;
|
|
5712
|
+
userId: PgAttr<alepha1532.TString, typeof PG_REF>;
|
|
5713
|
+
expiresAt: alepha1532.TString;
|
|
5714
|
+
ip: alepha1532.TOptional<alepha1532.TString>;
|
|
5715
|
+
userAgent: alepha1532.TOptional<alepha1532.TObject<{
|
|
5716
|
+
os: alepha1532.TString;
|
|
5717
|
+
browser: alepha1532.TString;
|
|
5718
|
+
device: alepha1532.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5719
5719
|
}>>;
|
|
5720
5720
|
}>>;
|
|
5721
|
-
protected readonly defaultUsers: Repository<
|
|
5722
|
-
id: PgAttr<PgAttr<
|
|
5723
|
-
version: PgAttr<PgAttr<
|
|
5724
|
-
createdAt: PgAttr<PgAttr<
|
|
5725
|
-
updatedAt: PgAttr<PgAttr<
|
|
5726
|
-
realm: PgAttr<
|
|
5727
|
-
username:
|
|
5728
|
-
email:
|
|
5729
|
-
phoneNumber:
|
|
5730
|
-
roles: PgAttr<
|
|
5731
|
-
firstName:
|
|
5732
|
-
lastName:
|
|
5733
|
-
picture:
|
|
5734
|
-
enabled: PgAttr<
|
|
5735
|
-
emailVerified: PgAttr<
|
|
5721
|
+
protected readonly defaultUsers: Repository<alepha1532.TObject<{
|
|
5722
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5723
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5724
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5725
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5726
|
+
realm: PgAttr<alepha1532.TString, typeof PG_DEFAULT>;
|
|
5727
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
5728
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
5729
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TString>;
|
|
5730
|
+
roles: PgAttr<alepha1532.TArray<alepha1532.TString>, typeof PG_DEFAULT>;
|
|
5731
|
+
firstName: alepha1532.TOptional<alepha1532.TString>;
|
|
5732
|
+
lastName: alepha1532.TOptional<alepha1532.TString>;
|
|
5733
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
5734
|
+
enabled: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
5735
|
+
emailVerified: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
5736
5736
|
}>>;
|
|
5737
5737
|
protected realms: Map<string, UserRealm>;
|
|
5738
5738
|
avatars: BucketPrimitive;
|
|
5739
|
-
protected readonly onConfigure:
|
|
5739
|
+
protected readonly onConfigure: alepha1532.HookPrimitive<"configure">;
|
|
5740
5740
|
register(userRealmName: string, userRealmOptions?: UserRealmOptions): UserRealm;
|
|
5741
5741
|
/**
|
|
5742
5742
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
@@ -5747,32 +5747,32 @@ declare class UserRealmProvider {
|
|
|
5747
5747
|
userRepository(userRealmName?: string): Repository<typeof users.schema>;
|
|
5748
5748
|
}
|
|
5749
5749
|
//#endregion
|
|
5750
|
-
//#region
|
|
5751
|
-
declare const sessionQuerySchema:
|
|
5752
|
-
page:
|
|
5753
|
-
size:
|
|
5754
|
-
sort:
|
|
5755
|
-
userId:
|
|
5750
|
+
//#region ../../../alepha/src/api-users/schemas/sessionQuerySchema.d.ts
|
|
5751
|
+
declare const sessionQuerySchema: alepha1532.TObject<{
|
|
5752
|
+
page: alepha1532.TOptional<alepha1532.TInteger>;
|
|
5753
|
+
size: alepha1532.TOptional<alepha1532.TInteger>;
|
|
5754
|
+
sort: alepha1532.TOptional<alepha1532.TString>;
|
|
5755
|
+
userId: alepha1532.TOptional<alepha1532.TString>;
|
|
5756
5756
|
}>;
|
|
5757
5757
|
type SessionQuery = Static<typeof sessionQuerySchema>;
|
|
5758
5758
|
//#endregion
|
|
5759
|
-
//#region
|
|
5759
|
+
//#region ../../../alepha/src/api-users/services/SessionCrudService.d.ts
|
|
5760
5760
|
declare class SessionCrudService {
|
|
5761
5761
|
protected readonly log: Logger;
|
|
5762
5762
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
5763
|
-
sessions(userRealmName?: string): Repository<
|
|
5764
|
-
id: PgAttr<PgAttr<
|
|
5765
|
-
version: PgAttr<PgAttr<
|
|
5766
|
-
createdAt: PgAttr<PgAttr<
|
|
5767
|
-
updatedAt: PgAttr<PgAttr<
|
|
5768
|
-
refreshToken:
|
|
5769
|
-
userId: PgAttr<
|
|
5770
|
-
expiresAt:
|
|
5771
|
-
ip:
|
|
5772
|
-
userAgent:
|
|
5773
|
-
os:
|
|
5774
|
-
browser:
|
|
5775
|
-
device:
|
|
5763
|
+
sessions(userRealmName?: string): Repository<alepha1532.TObject<{
|
|
5764
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5765
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5766
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5767
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5768
|
+
refreshToken: alepha1532.TString;
|
|
5769
|
+
userId: PgAttr<alepha1532.TString, typeof PG_REF>;
|
|
5770
|
+
expiresAt: alepha1532.TString;
|
|
5771
|
+
ip: alepha1532.TOptional<alepha1532.TString>;
|
|
5772
|
+
userAgent: alepha1532.TOptional<alepha1532.TObject<{
|
|
5773
|
+
os: alepha1532.TString;
|
|
5774
|
+
browser: alepha1532.TString;
|
|
5775
|
+
device: alepha1532.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5776
5776
|
}>>;
|
|
5777
5777
|
}>>;
|
|
5778
5778
|
/**
|
|
@@ -5789,7 +5789,7 @@ declare class SessionCrudService {
|
|
|
5789
5789
|
deleteSession(id: string, userRealmName?: string): Promise<void>;
|
|
5790
5790
|
}
|
|
5791
5791
|
//#endregion
|
|
5792
|
-
//#region
|
|
5792
|
+
//#region ../../../alepha/src/api-users/controllers/SessionController.d.ts
|
|
5793
5793
|
declare class SessionController {
|
|
5794
5794
|
protected readonly url = "/sessions";
|
|
5795
5795
|
protected readonly group = "sessions";
|
|
@@ -5798,26 +5798,26 @@ declare class SessionController {
|
|
|
5798
5798
|
* Find sessions with pagination and filtering.
|
|
5799
5799
|
*/
|
|
5800
5800
|
readonly findSessions: ActionPrimitiveFn<{
|
|
5801
|
-
query:
|
|
5802
|
-
page:
|
|
5803
|
-
size:
|
|
5804
|
-
sort:
|
|
5805
|
-
userId:
|
|
5806
|
-
userRealmName:
|
|
5801
|
+
query: alepha1532.TObject<{
|
|
5802
|
+
page: alepha1532.TOptional<alepha1532.TInteger>;
|
|
5803
|
+
size: alepha1532.TOptional<alepha1532.TInteger>;
|
|
5804
|
+
sort: alepha1532.TOptional<alepha1532.TString>;
|
|
5805
|
+
userId: alepha1532.TOptional<alepha1532.TString>;
|
|
5806
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
5807
5807
|
}>;
|
|
5808
|
-
response:
|
|
5809
|
-
id:
|
|
5810
|
-
version:
|
|
5811
|
-
createdAt:
|
|
5812
|
-
updatedAt:
|
|
5813
|
-
refreshToken:
|
|
5814
|
-
userId:
|
|
5815
|
-
expiresAt:
|
|
5816
|
-
ip:
|
|
5817
|
-
userAgent:
|
|
5818
|
-
os:
|
|
5819
|
-
browser:
|
|
5820
|
-
device:
|
|
5808
|
+
response: alepha1532.TPage<alepha1532.TObject<{
|
|
5809
|
+
id: alepha1532.TString;
|
|
5810
|
+
version: alepha1532.TNumber;
|
|
5811
|
+
createdAt: alepha1532.TString;
|
|
5812
|
+
updatedAt: alepha1532.TString;
|
|
5813
|
+
refreshToken: alepha1532.TString;
|
|
5814
|
+
userId: alepha1532.TString;
|
|
5815
|
+
expiresAt: alepha1532.TString;
|
|
5816
|
+
ip: alepha1532.TOptional<alepha1532.TString>;
|
|
5817
|
+
userAgent: alepha1532.TOptional<alepha1532.TObject<{
|
|
5818
|
+
os: alepha1532.TString;
|
|
5819
|
+
browser: alepha1532.TString;
|
|
5820
|
+
device: alepha1532.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5821
5821
|
}>>;
|
|
5822
5822
|
}>>;
|
|
5823
5823
|
}>;
|
|
@@ -5825,25 +5825,25 @@ declare class SessionController {
|
|
|
5825
5825
|
* Get a session by ID.
|
|
5826
5826
|
*/
|
|
5827
5827
|
readonly getSession: ActionPrimitiveFn<{
|
|
5828
|
-
params:
|
|
5829
|
-
id:
|
|
5828
|
+
params: alepha1532.TObject<{
|
|
5829
|
+
id: alepha1532.TString;
|
|
5830
5830
|
}>;
|
|
5831
|
-
query:
|
|
5832
|
-
userRealmName:
|
|
5831
|
+
query: alepha1532.TObject<{
|
|
5832
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
5833
5833
|
}>;
|
|
5834
|
-
response:
|
|
5835
|
-
id:
|
|
5836
|
-
version:
|
|
5837
|
-
createdAt:
|
|
5838
|
-
updatedAt:
|
|
5839
|
-
refreshToken:
|
|
5840
|
-
userId:
|
|
5841
|
-
expiresAt:
|
|
5842
|
-
ip:
|
|
5843
|
-
userAgent:
|
|
5844
|
-
os:
|
|
5845
|
-
browser:
|
|
5846
|
-
device:
|
|
5834
|
+
response: alepha1532.TObject<{
|
|
5835
|
+
id: alepha1532.TString;
|
|
5836
|
+
version: alepha1532.TNumber;
|
|
5837
|
+
createdAt: alepha1532.TString;
|
|
5838
|
+
updatedAt: alepha1532.TString;
|
|
5839
|
+
refreshToken: alepha1532.TString;
|
|
5840
|
+
userId: alepha1532.TString;
|
|
5841
|
+
expiresAt: alepha1532.TString;
|
|
5842
|
+
ip: alepha1532.TOptional<alepha1532.TString>;
|
|
5843
|
+
userAgent: alepha1532.TOptional<alepha1532.TObject<{
|
|
5844
|
+
os: alepha1532.TString;
|
|
5845
|
+
browser: alepha1532.TString;
|
|
5846
|
+
device: alepha1532.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5847
5847
|
}>>;
|
|
5848
5848
|
}>;
|
|
5849
5849
|
}>;
|
|
@@ -5851,72 +5851,72 @@ declare class SessionController {
|
|
|
5851
5851
|
* Delete a session.
|
|
5852
5852
|
*/
|
|
5853
5853
|
readonly deleteSession: ActionPrimitiveFn<{
|
|
5854
|
-
params:
|
|
5855
|
-
id:
|
|
5854
|
+
params: alepha1532.TObject<{
|
|
5855
|
+
id: alepha1532.TString;
|
|
5856
5856
|
}>;
|
|
5857
|
-
query:
|
|
5858
|
-
userRealmName:
|
|
5857
|
+
query: alepha1532.TObject<{
|
|
5858
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
5859
5859
|
}>;
|
|
5860
|
-
response:
|
|
5861
|
-
ok:
|
|
5862
|
-
id:
|
|
5863
|
-
count:
|
|
5860
|
+
response: alepha1532.TObject<{
|
|
5861
|
+
ok: alepha1532.TBoolean;
|
|
5862
|
+
id: alepha1532.TOptional<alepha1532.TUnion<[alepha1532.TString, alepha1532.TInteger]>>;
|
|
5863
|
+
count: alepha1532.TOptional<alepha1532.TNumber>;
|
|
5864
5864
|
}>;
|
|
5865
5865
|
}>;
|
|
5866
5866
|
}
|
|
5867
5867
|
//#endregion
|
|
5868
|
-
//#region
|
|
5869
|
-
declare const verifications: EntityPrimitive<
|
|
5870
|
-
id: PgAttr<PgAttr<
|
|
5871
|
-
createdAt: PgAttr<PgAttr<
|
|
5872
|
-
updatedAt: PgAttr<PgAttr<
|
|
5873
|
-
version: PgAttr<PgAttr<
|
|
5874
|
-
type:
|
|
5875
|
-
target:
|
|
5876
|
-
code:
|
|
5877
|
-
verifiedAt:
|
|
5878
|
-
attempts: PgAttr<
|
|
5868
|
+
//#region ../../../alepha/src/api-verifications/entities/verifications.d.ts
|
|
5869
|
+
declare const verifications: EntityPrimitive<alepha1532.TObject<{
|
|
5870
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5871
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5872
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5873
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5874
|
+
type: alepha1532.TUnsafe<"link" | "code">;
|
|
5875
|
+
target: alepha1532.TString;
|
|
5876
|
+
code: alepha1532.TString;
|
|
5877
|
+
verifiedAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5878
|
+
attempts: PgAttr<alepha1532.TInteger, typeof PG_DEFAULT>;
|
|
5879
5879
|
}>>;
|
|
5880
5880
|
type VerificationEntity = Static<typeof verifications.schema>;
|
|
5881
5881
|
//#endregion
|
|
5882
|
-
//#region
|
|
5883
|
-
declare const verificationSettingsSchema:
|
|
5884
|
-
code:
|
|
5885
|
-
maxAttempts:
|
|
5886
|
-
codeLength:
|
|
5887
|
-
codeExpiration:
|
|
5888
|
-
verificationCooldown:
|
|
5889
|
-
limitPerDay:
|
|
5882
|
+
//#region ../../../alepha/src/api-verifications/schemas/verificationSettingsSchema.d.ts
|
|
5883
|
+
declare const verificationSettingsSchema: alepha1532.TObject<{
|
|
5884
|
+
code: alepha1532.TObject<{
|
|
5885
|
+
maxAttempts: alepha1532.TInteger;
|
|
5886
|
+
codeLength: alepha1532.TInteger;
|
|
5887
|
+
codeExpiration: alepha1532.TInteger;
|
|
5888
|
+
verificationCooldown: alepha1532.TInteger;
|
|
5889
|
+
limitPerDay: alepha1532.TInteger;
|
|
5890
5890
|
}>;
|
|
5891
|
-
link:
|
|
5892
|
-
maxAttempts:
|
|
5893
|
-
codeExpiration:
|
|
5894
|
-
verificationCooldown:
|
|
5895
|
-
limitPerDay:
|
|
5891
|
+
link: alepha1532.TObject<{
|
|
5892
|
+
maxAttempts: alepha1532.TInteger;
|
|
5893
|
+
codeExpiration: alepha1532.TInteger;
|
|
5894
|
+
verificationCooldown: alepha1532.TInteger;
|
|
5895
|
+
limitPerDay: alepha1532.TInteger;
|
|
5896
5896
|
}>;
|
|
5897
|
-
purgeDays:
|
|
5897
|
+
purgeDays: alepha1532.TInteger;
|
|
5898
5898
|
}>;
|
|
5899
5899
|
type VerificationSettings = Static<typeof verificationSettingsSchema>;
|
|
5900
5900
|
//#endregion
|
|
5901
|
-
//#region
|
|
5901
|
+
//#region ../../../alepha/src/api-verifications/parameters/VerificationParameters.d.ts
|
|
5902
5902
|
/**
|
|
5903
5903
|
* Verification settings configuration atom
|
|
5904
5904
|
*/
|
|
5905
|
-
declare const verificationOptions:
|
|
5906
|
-
code:
|
|
5907
|
-
maxAttempts:
|
|
5908
|
-
codeLength:
|
|
5909
|
-
codeExpiration:
|
|
5910
|
-
verificationCooldown:
|
|
5911
|
-
limitPerDay:
|
|
5905
|
+
declare const verificationOptions: alepha1532.Atom<alepha1532.TObject<{
|
|
5906
|
+
code: alepha1532.TObject<{
|
|
5907
|
+
maxAttempts: alepha1532.TInteger;
|
|
5908
|
+
codeLength: alepha1532.TInteger;
|
|
5909
|
+
codeExpiration: alepha1532.TInteger;
|
|
5910
|
+
verificationCooldown: alepha1532.TInteger;
|
|
5911
|
+
limitPerDay: alepha1532.TInteger;
|
|
5912
5912
|
}>;
|
|
5913
|
-
link:
|
|
5914
|
-
maxAttempts:
|
|
5915
|
-
codeExpiration:
|
|
5916
|
-
verificationCooldown:
|
|
5917
|
-
limitPerDay:
|
|
5913
|
+
link: alepha1532.TObject<{
|
|
5914
|
+
maxAttempts: alepha1532.TInteger;
|
|
5915
|
+
codeExpiration: alepha1532.TInteger;
|
|
5916
|
+
verificationCooldown: alepha1532.TInteger;
|
|
5917
|
+
limitPerDay: alepha1532.TInteger;
|
|
5918
5918
|
}>;
|
|
5919
|
-
purgeDays:
|
|
5919
|
+
purgeDays: alepha1532.TInteger;
|
|
5920
5920
|
}>, "alepha.api.verifications.options">;
|
|
5921
5921
|
type VerificationOptions = Static<typeof verificationOptions.schema>;
|
|
5922
5922
|
declare module "alepha" {
|
|
@@ -5944,63 +5944,63 @@ declare class VerificationParameters {
|
|
|
5944
5944
|
get<K$1 extends keyof VerificationSettings>(key: K$1): VerificationSettings[K$1];
|
|
5945
5945
|
}
|
|
5946
5946
|
//#endregion
|
|
5947
|
-
//#region
|
|
5948
|
-
declare const requestVerificationCodeResponseSchema:
|
|
5949
|
-
token:
|
|
5950
|
-
codeExpiration:
|
|
5951
|
-
verificationCooldown:
|
|
5952
|
-
maxVerificationAttempts:
|
|
5947
|
+
//#region ../../../alepha/src/api-verifications/schemas/requestVerificationCodeResponseSchema.d.ts
|
|
5948
|
+
declare const requestVerificationCodeResponseSchema: alepha1532.TObject<{
|
|
5949
|
+
token: alepha1532.TString;
|
|
5950
|
+
codeExpiration: alepha1532.TInteger;
|
|
5951
|
+
verificationCooldown: alepha1532.TInteger;
|
|
5952
|
+
maxVerificationAttempts: alepha1532.TInteger;
|
|
5953
5953
|
}>;
|
|
5954
5954
|
type RequestVerificationResponse = Static<typeof requestVerificationCodeResponseSchema>;
|
|
5955
5955
|
//#endregion
|
|
5956
|
-
//#region
|
|
5957
|
-
declare const validateVerificationCodeResponseSchema:
|
|
5958
|
-
ok:
|
|
5959
|
-
alreadyVerified:
|
|
5956
|
+
//#region ../../../alepha/src/api-verifications/schemas/validateVerificationCodeResponseSchema.d.ts
|
|
5957
|
+
declare const validateVerificationCodeResponseSchema: alepha1532.TObject<{
|
|
5958
|
+
ok: alepha1532.TBoolean;
|
|
5959
|
+
alreadyVerified: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
5960
5960
|
}>;
|
|
5961
5961
|
type ValidateVerificationCodeResponse = Static<typeof validateVerificationCodeResponseSchema>;
|
|
5962
5962
|
//#endregion
|
|
5963
|
-
//#region
|
|
5964
|
-
declare const verificationTypeEnumSchema:
|
|
5963
|
+
//#region ../../../alepha/src/api-verifications/schemas/verificationTypeEnumSchema.d.ts
|
|
5964
|
+
declare const verificationTypeEnumSchema: alepha1532.TUnsafe<"link" | "code">;
|
|
5965
5965
|
type VerificationTypeEnum = Static<typeof verificationTypeEnumSchema>;
|
|
5966
5966
|
//#endregion
|
|
5967
|
-
//#region
|
|
5967
|
+
//#region ../../../alepha/src/api-verifications/services/VerificationService.d.ts
|
|
5968
5968
|
declare class VerificationService {
|
|
5969
5969
|
protected readonly log: Logger;
|
|
5970
5970
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
5971
5971
|
protected readonly verificationParameters: VerificationParameters;
|
|
5972
|
-
protected readonly verificationRepository: Repository<
|
|
5973
|
-
id: PgAttr<PgAttr<
|
|
5974
|
-
createdAt: PgAttr<PgAttr<
|
|
5975
|
-
updatedAt: PgAttr<PgAttr<
|
|
5976
|
-
version: PgAttr<PgAttr<
|
|
5977
|
-
type:
|
|
5978
|
-
target:
|
|
5979
|
-
code:
|
|
5980
|
-
verifiedAt:
|
|
5981
|
-
attempts: PgAttr<
|
|
5972
|
+
protected readonly verificationRepository: Repository<alepha1532.TObject<{
|
|
5973
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5974
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5975
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5976
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5977
|
+
type: alepha1532.TUnsafe<"link" | "code">;
|
|
5978
|
+
target: alepha1532.TString;
|
|
5979
|
+
code: alepha1532.TString;
|
|
5980
|
+
verifiedAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5981
|
+
attempts: PgAttr<alepha1532.TInteger, typeof PG_DEFAULT>;
|
|
5982
5982
|
}>>;
|
|
5983
5983
|
findByEntry(entry: VerificationEntry): Promise<VerificationEntity>;
|
|
5984
|
-
findRecentsByEntry(entry: VerificationEntry): Promise<PgStatic<
|
|
5985
|
-
id: PgAttr<PgAttr<
|
|
5986
|
-
createdAt: PgAttr<PgAttr<
|
|
5987
|
-
updatedAt: PgAttr<PgAttr<
|
|
5988
|
-
version: PgAttr<PgAttr<
|
|
5989
|
-
type:
|
|
5990
|
-
target:
|
|
5991
|
-
code:
|
|
5992
|
-
verifiedAt:
|
|
5993
|
-
attempts: PgAttr<
|
|
5994
|
-
}>, PgRelationMap<
|
|
5995
|
-
id: PgAttr<PgAttr<
|
|
5996
|
-
createdAt: PgAttr<PgAttr<
|
|
5997
|
-
updatedAt: PgAttr<PgAttr<
|
|
5998
|
-
version: PgAttr<PgAttr<
|
|
5999
|
-
type:
|
|
6000
|
-
target:
|
|
6001
|
-
code:
|
|
6002
|
-
verifiedAt:
|
|
6003
|
-
attempts: PgAttr<
|
|
5984
|
+
findRecentsByEntry(entry: VerificationEntry): Promise<PgStatic<alepha1532.TObject<{
|
|
5985
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5986
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5987
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5988
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5989
|
+
type: alepha1532.TUnsafe<"link" | "code">;
|
|
5990
|
+
target: alepha1532.TString;
|
|
5991
|
+
code: alepha1532.TString;
|
|
5992
|
+
verifiedAt: alepha1532.TOptional<alepha1532.TString>;
|
|
5993
|
+
attempts: PgAttr<alepha1532.TInteger, typeof PG_DEFAULT>;
|
|
5994
|
+
}>, PgRelationMap<alepha1532.TObject<{
|
|
5995
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5996
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5997
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5998
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5999
|
+
type: alepha1532.TUnsafe<"link" | "code">;
|
|
6000
|
+
target: alepha1532.TString;
|
|
6001
|
+
code: alepha1532.TString;
|
|
6002
|
+
verifiedAt: alepha1532.TOptional<alepha1532.TString>;
|
|
6003
|
+
attempts: PgAttr<alepha1532.TInteger, typeof PG_DEFAULT>;
|
|
6004
6004
|
}>>>[]>;
|
|
6005
6005
|
/**
|
|
6006
6006
|
* Creates a verification entry and returns the token.
|
|
@@ -6017,97 +6017,97 @@ interface VerificationEntry {
|
|
|
6017
6017
|
target: string;
|
|
6018
6018
|
}
|
|
6019
6019
|
//#endregion
|
|
6020
|
-
//#region
|
|
6020
|
+
//#region ../../../alepha/src/api-verifications/controllers/VerificationController.d.ts
|
|
6021
6021
|
declare class VerificationController {
|
|
6022
6022
|
protected readonly verificationService: VerificationService;
|
|
6023
6023
|
readonly url = "/verifications";
|
|
6024
6024
|
readonly group = "verifications";
|
|
6025
6025
|
readonly requestVerificationCode: ActionPrimitiveFn<{
|
|
6026
|
-
params:
|
|
6027
|
-
type:
|
|
6026
|
+
params: alepha1532.TObject<{
|
|
6027
|
+
type: alepha1532.TUnsafe<"link" | "code">;
|
|
6028
6028
|
}>;
|
|
6029
|
-
body:
|
|
6030
|
-
target:
|
|
6029
|
+
body: alepha1532.TObject<{
|
|
6030
|
+
target: alepha1532.TString;
|
|
6031
6031
|
}>;
|
|
6032
|
-
response:
|
|
6033
|
-
token:
|
|
6034
|
-
codeExpiration:
|
|
6035
|
-
verificationCooldown:
|
|
6036
|
-
maxVerificationAttempts:
|
|
6032
|
+
response: alepha1532.TObject<{
|
|
6033
|
+
token: alepha1532.TString;
|
|
6034
|
+
codeExpiration: alepha1532.TInteger;
|
|
6035
|
+
verificationCooldown: alepha1532.TInteger;
|
|
6036
|
+
maxVerificationAttempts: alepha1532.TInteger;
|
|
6037
6037
|
}>;
|
|
6038
6038
|
}>;
|
|
6039
6039
|
readonly validateVerificationCode: ActionPrimitiveFn<{
|
|
6040
|
-
params:
|
|
6041
|
-
type:
|
|
6040
|
+
params: alepha1532.TObject<{
|
|
6041
|
+
type: alepha1532.TUnsafe<"link" | "code">;
|
|
6042
6042
|
}>;
|
|
6043
|
-
body:
|
|
6044
|
-
target:
|
|
6045
|
-
token:
|
|
6043
|
+
body: alepha1532.TObject<{
|
|
6044
|
+
target: alepha1532.TString;
|
|
6045
|
+
token: alepha1532.TString;
|
|
6046
6046
|
}>;
|
|
6047
|
-
response:
|
|
6048
|
-
ok:
|
|
6049
|
-
alreadyVerified:
|
|
6047
|
+
response: alepha1532.TObject<{
|
|
6048
|
+
ok: alepha1532.TBoolean;
|
|
6049
|
+
alreadyVerified: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
6050
6050
|
}>;
|
|
6051
6051
|
}>;
|
|
6052
6052
|
}
|
|
6053
6053
|
//#endregion
|
|
6054
|
-
//#region
|
|
6054
|
+
//#region ../../../alepha/src/api-users/notifications/UserNotifications.d.ts
|
|
6055
6055
|
declare class UserNotifications {
|
|
6056
|
-
readonly passwordReset: NotificationPrimitive<
|
|
6057
|
-
email:
|
|
6058
|
-
code:
|
|
6059
|
-
expiresInMinutes:
|
|
6056
|
+
readonly passwordReset: NotificationPrimitive<alepha1532.TObject<{
|
|
6057
|
+
email: alepha1532.TString;
|
|
6058
|
+
code: alepha1532.TString;
|
|
6059
|
+
expiresInMinutes: alepha1532.TNumber;
|
|
6060
6060
|
}>>;
|
|
6061
|
-
readonly emailVerification: NotificationPrimitive<
|
|
6062
|
-
email:
|
|
6063
|
-
code:
|
|
6064
|
-
expiresInMinutes:
|
|
6061
|
+
readonly emailVerification: NotificationPrimitive<alepha1532.TObject<{
|
|
6062
|
+
email: alepha1532.TString;
|
|
6063
|
+
code: alepha1532.TString;
|
|
6064
|
+
expiresInMinutes: alepha1532.TNumber;
|
|
6065
6065
|
}>>;
|
|
6066
|
-
readonly phoneVerification: NotificationPrimitive<
|
|
6067
|
-
phoneNumber:
|
|
6068
|
-
code:
|
|
6069
|
-
expiresInMinutes:
|
|
6066
|
+
readonly phoneVerification: NotificationPrimitive<alepha1532.TObject<{
|
|
6067
|
+
phoneNumber: alepha1532.TString;
|
|
6068
|
+
code: alepha1532.TString;
|
|
6069
|
+
expiresInMinutes: alepha1532.TNumber;
|
|
6070
6070
|
}>>;
|
|
6071
|
-
readonly passwordResetLink: NotificationPrimitive<
|
|
6072
|
-
email:
|
|
6073
|
-
resetUrl:
|
|
6074
|
-
expiresInMinutes:
|
|
6071
|
+
readonly passwordResetLink: NotificationPrimitive<alepha1532.TObject<{
|
|
6072
|
+
email: alepha1532.TString;
|
|
6073
|
+
resetUrl: alepha1532.TString;
|
|
6074
|
+
expiresInMinutes: alepha1532.TNumber;
|
|
6075
6075
|
}>>;
|
|
6076
|
-
readonly emailVerificationLink: NotificationPrimitive<
|
|
6077
|
-
email:
|
|
6078
|
-
verifyUrl:
|
|
6079
|
-
expiresInMinutes:
|
|
6076
|
+
readonly emailVerificationLink: NotificationPrimitive<alepha1532.TObject<{
|
|
6077
|
+
email: alepha1532.TString;
|
|
6078
|
+
verifyUrl: alepha1532.TString;
|
|
6079
|
+
expiresInMinutes: alepha1532.TNumber;
|
|
6080
6080
|
}>>;
|
|
6081
6081
|
}
|
|
6082
6082
|
//#endregion
|
|
6083
|
-
//#region
|
|
6083
|
+
//#region ../../../alepha/src/api-users/schemas/completePasswordResetRequestSchema.d.ts
|
|
6084
6084
|
/**
|
|
6085
6085
|
* Request schema for completing a password reset.
|
|
6086
6086
|
*
|
|
6087
6087
|
* Requires the intent ID from Phase 1, the verification code,
|
|
6088
6088
|
* and the new password.
|
|
6089
6089
|
*/
|
|
6090
|
-
declare const completePasswordResetRequestSchema:
|
|
6091
|
-
intentId:
|
|
6092
|
-
code:
|
|
6093
|
-
newPassword:
|
|
6090
|
+
declare const completePasswordResetRequestSchema: alepha1532.TObject<{
|
|
6091
|
+
intentId: alepha1532.TString;
|
|
6092
|
+
code: alepha1532.TString;
|
|
6093
|
+
newPassword: alepha1532.TString;
|
|
6094
6094
|
}>;
|
|
6095
6095
|
type CompletePasswordResetRequest = Static<typeof completePasswordResetRequestSchema>;
|
|
6096
6096
|
//#endregion
|
|
6097
|
-
//#region
|
|
6097
|
+
//#region ../../../alepha/src/api-users/schemas/passwordResetIntentResponseSchema.d.ts
|
|
6098
6098
|
/**
|
|
6099
6099
|
* Response schema for password reset intent creation.
|
|
6100
6100
|
*
|
|
6101
6101
|
* Contains the intent ID needed for Phase 2 completion,
|
|
6102
6102
|
* along with expiration time.
|
|
6103
6103
|
*/
|
|
6104
|
-
declare const passwordResetIntentResponseSchema:
|
|
6105
|
-
intentId:
|
|
6106
|
-
expiresAt:
|
|
6104
|
+
declare const passwordResetIntentResponseSchema: alepha1532.TObject<{
|
|
6105
|
+
intentId: alepha1532.TString;
|
|
6106
|
+
expiresAt: alepha1532.TString;
|
|
6107
6107
|
}>;
|
|
6108
6108
|
type PasswordResetIntentResponse = Static<typeof passwordResetIntentResponseSchema>;
|
|
6109
6109
|
//#endregion
|
|
6110
|
-
//#region
|
|
6110
|
+
//#region ../../../alepha/src/api-users/services/CredentialService.d.ts
|
|
6111
6111
|
/**
|
|
6112
6112
|
* Intent stored in cache during the password reset flow.
|
|
6113
6113
|
*/
|
|
@@ -6126,47 +6126,47 @@ declare class CredentialService {
|
|
|
6126
6126
|
protected readonly userNotifications: UserNotifications;
|
|
6127
6127
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
6128
6128
|
protected readonly intentCache: CachePrimitiveFn<PasswordResetIntent, any[]>;
|
|
6129
|
-
users(userRealmName?: string): Repository<
|
|
6130
|
-
id: PgAttr<PgAttr<
|
|
6131
|
-
version: PgAttr<PgAttr<
|
|
6132
|
-
createdAt: PgAttr<PgAttr<
|
|
6133
|
-
updatedAt: PgAttr<PgAttr<
|
|
6134
|
-
realm: PgAttr<
|
|
6135
|
-
username:
|
|
6136
|
-
email:
|
|
6137
|
-
phoneNumber:
|
|
6138
|
-
roles: PgAttr<
|
|
6139
|
-
firstName:
|
|
6140
|
-
lastName:
|
|
6141
|
-
picture:
|
|
6142
|
-
enabled: PgAttr<
|
|
6143
|
-
emailVerified: PgAttr<
|
|
6129
|
+
users(userRealmName?: string): Repository<alepha1532.TObject<{
|
|
6130
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6131
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6132
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6133
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6134
|
+
realm: PgAttr<alepha1532.TString, typeof PG_DEFAULT>;
|
|
6135
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
6136
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6137
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TString>;
|
|
6138
|
+
roles: PgAttr<alepha1532.TArray<alepha1532.TString>, typeof PG_DEFAULT>;
|
|
6139
|
+
firstName: alepha1532.TOptional<alepha1532.TString>;
|
|
6140
|
+
lastName: alepha1532.TOptional<alepha1532.TString>;
|
|
6141
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
6142
|
+
enabled: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6143
|
+
emailVerified: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6144
6144
|
}>>;
|
|
6145
|
-
sessions(userRealmName?: string): Repository<
|
|
6146
|
-
id: PgAttr<PgAttr<
|
|
6147
|
-
version: PgAttr<PgAttr<
|
|
6148
|
-
createdAt: PgAttr<PgAttr<
|
|
6149
|
-
updatedAt: PgAttr<PgAttr<
|
|
6150
|
-
refreshToken:
|
|
6151
|
-
userId: PgAttr<
|
|
6152
|
-
expiresAt:
|
|
6153
|
-
ip:
|
|
6154
|
-
userAgent:
|
|
6155
|
-
os:
|
|
6156
|
-
browser:
|
|
6157
|
-
device:
|
|
6145
|
+
sessions(userRealmName?: string): Repository<alepha1532.TObject<{
|
|
6146
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6147
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6148
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6149
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6150
|
+
refreshToken: alepha1532.TString;
|
|
6151
|
+
userId: PgAttr<alepha1532.TString, typeof PG_REF>;
|
|
6152
|
+
expiresAt: alepha1532.TString;
|
|
6153
|
+
ip: alepha1532.TOptional<alepha1532.TString>;
|
|
6154
|
+
userAgent: alepha1532.TOptional<alepha1532.TObject<{
|
|
6155
|
+
os: alepha1532.TString;
|
|
6156
|
+
browser: alepha1532.TString;
|
|
6157
|
+
device: alepha1532.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
6158
6158
|
}>>;
|
|
6159
6159
|
}>>;
|
|
6160
|
-
identities(userRealmName?: string): Repository<
|
|
6161
|
-
id: PgAttr<PgAttr<
|
|
6162
|
-
version: PgAttr<PgAttr<
|
|
6163
|
-
createdAt: PgAttr<PgAttr<
|
|
6164
|
-
updatedAt: PgAttr<PgAttr<
|
|
6165
|
-
userId: PgAttr<
|
|
6166
|
-
password:
|
|
6167
|
-
provider:
|
|
6168
|
-
providerUserId:
|
|
6169
|
-
providerData:
|
|
6160
|
+
identities(userRealmName?: string): Repository<alepha1532.TObject<{
|
|
6161
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6162
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6163
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6164
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6165
|
+
userId: PgAttr<alepha1532.TString, typeof PG_REF>;
|
|
6166
|
+
password: alepha1532.TOptional<alepha1532.TString>;
|
|
6167
|
+
provider: alepha1532.TString;
|
|
6168
|
+
providerUserId: alepha1532.TOptional<alepha1532.TString>;
|
|
6169
|
+
providerData: alepha1532.TOptional<alepha1532.TRecord<string, alepha1532.TAny>>;
|
|
6170
6170
|
}>>;
|
|
6171
6171
|
/**
|
|
6172
6172
|
* Phase 1: Create a password reset intent.
|
|
@@ -6202,42 +6202,42 @@ declare class CredentialService {
|
|
|
6202
6202
|
resetPassword(email: string, token: string, newPassword: string, userRealmName?: string): Promise<void>;
|
|
6203
6203
|
}
|
|
6204
6204
|
//#endregion
|
|
6205
|
-
//#region
|
|
6206
|
-
declare const completeRegistrationRequestSchema:
|
|
6207
|
-
intentId:
|
|
6208
|
-
emailCode:
|
|
6209
|
-
phoneCode:
|
|
6210
|
-
captchaToken:
|
|
6205
|
+
//#region ../../../alepha/src/api-users/schemas/completeRegistrationRequestSchema.d.ts
|
|
6206
|
+
declare const completeRegistrationRequestSchema: alepha1532.TObject<{
|
|
6207
|
+
intentId: alepha1532.TString;
|
|
6208
|
+
emailCode: alepha1532.TOptional<alepha1532.TString>;
|
|
6209
|
+
phoneCode: alepha1532.TOptional<alepha1532.TString>;
|
|
6210
|
+
captchaToken: alepha1532.TOptional<alepha1532.TString>;
|
|
6211
6211
|
}>;
|
|
6212
6212
|
type CompleteRegistrationRequest = Static<typeof completeRegistrationRequestSchema>;
|
|
6213
6213
|
//#endregion
|
|
6214
|
-
//#region
|
|
6214
|
+
//#region ../../../alepha/src/api-users/schemas/registerRequestSchema.d.ts
|
|
6215
6215
|
/**
|
|
6216
6216
|
* Schema for user registration request body.
|
|
6217
6217
|
* Password is always required, other fields depend on realm settings.
|
|
6218
6218
|
*/
|
|
6219
|
-
declare const registerRequestSchema:
|
|
6220
|
-
password:
|
|
6221
|
-
username:
|
|
6222
|
-
email:
|
|
6223
|
-
phoneNumber:
|
|
6224
|
-
firstName:
|
|
6225
|
-
lastName:
|
|
6226
|
-
picture:
|
|
6219
|
+
declare const registerRequestSchema: alepha1532.TObject<{
|
|
6220
|
+
password: alepha1532.TString;
|
|
6221
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
6222
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6223
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TString>;
|
|
6224
|
+
firstName: alepha1532.TOptional<alepha1532.TString>;
|
|
6225
|
+
lastName: alepha1532.TOptional<alepha1532.TString>;
|
|
6226
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
6227
6227
|
}>;
|
|
6228
6228
|
type RegisterRequest = Static<typeof registerRequestSchema>;
|
|
6229
6229
|
//#endregion
|
|
6230
|
-
//#region
|
|
6231
|
-
declare const registrationIntentResponseSchema:
|
|
6232
|
-
intentId:
|
|
6233
|
-
expectCaptcha:
|
|
6234
|
-
expectEmailVerification:
|
|
6235
|
-
expectPhoneVerification:
|
|
6236
|
-
expiresAt:
|
|
6230
|
+
//#region ../../../alepha/src/api-users/schemas/registrationIntentResponseSchema.d.ts
|
|
6231
|
+
declare const registrationIntentResponseSchema: alepha1532.TObject<{
|
|
6232
|
+
intentId: alepha1532.TString;
|
|
6233
|
+
expectCaptcha: alepha1532.TBoolean;
|
|
6234
|
+
expectEmailVerification: alepha1532.TBoolean;
|
|
6235
|
+
expectPhoneVerification: alepha1532.TBoolean;
|
|
6236
|
+
expiresAt: alepha1532.TString;
|
|
6237
6237
|
}>;
|
|
6238
6238
|
type RegistrationIntentResponse = Static<typeof registrationIntentResponseSchema>;
|
|
6239
6239
|
//#endregion
|
|
6240
|
-
//#region
|
|
6240
|
+
//#region ../../../alepha/src/api-users/services/RegistrationService.d.ts
|
|
6241
6241
|
/**
|
|
6242
6242
|
* Intent stored in cache during the registration flow.
|
|
6243
6243
|
*/
|
|
@@ -6303,71 +6303,71 @@ declare class RegistrationService {
|
|
|
6303
6303
|
protected verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
|
|
6304
6304
|
}
|
|
6305
6305
|
//#endregion
|
|
6306
|
-
//#region
|
|
6307
|
-
declare const createUserSchema:
|
|
6308
|
-
id:
|
|
6309
|
-
email:
|
|
6310
|
-
username:
|
|
6311
|
-
picture:
|
|
6312
|
-
roles:
|
|
6313
|
-
version:
|
|
6314
|
-
createdAt:
|
|
6315
|
-
updatedAt:
|
|
6316
|
-
phoneNumber:
|
|
6317
|
-
firstName:
|
|
6318
|
-
lastName:
|
|
6319
|
-
enabled:
|
|
6320
|
-
emailVerified:
|
|
6306
|
+
//#region ../../../alepha/src/api-users/schemas/createUserSchema.d.ts
|
|
6307
|
+
declare const createUserSchema: alepha1532.TObject<{
|
|
6308
|
+
id: alepha1532.TOptional<PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
6309
|
+
email: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6310
|
+
username: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6311
|
+
picture: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6312
|
+
roles: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
6313
|
+
version: alepha1532.TOptional<PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
6314
|
+
createdAt: alepha1532.TOptional<PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
6315
|
+
updatedAt: alepha1532.TOptional<PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
6316
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6317
|
+
firstName: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6318
|
+
lastName: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6319
|
+
enabled: alepha1532.TOptional<PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>>;
|
|
6320
|
+
emailVerified: alepha1532.TOptional<PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>>;
|
|
6321
6321
|
}>;
|
|
6322
6322
|
type CreateUser = Static<typeof createUserSchema>;
|
|
6323
6323
|
//#endregion
|
|
6324
|
-
//#region
|
|
6325
|
-
declare const updateUserSchema:
|
|
6326
|
-
email:
|
|
6327
|
-
picture:
|
|
6328
|
-
roles:
|
|
6329
|
-
realm:
|
|
6330
|
-
phoneNumber:
|
|
6331
|
-
firstName:
|
|
6332
|
-
lastName:
|
|
6333
|
-
enabled:
|
|
6324
|
+
//#region ../../../alepha/src/api-users/schemas/updateUserSchema.d.ts
|
|
6325
|
+
declare const updateUserSchema: alepha1532.TObject<{
|
|
6326
|
+
email: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6327
|
+
picture: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6328
|
+
roles: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
6329
|
+
realm: alepha1532.TOptional<PgAttr<alepha1532.TString, typeof PG_DEFAULT>>;
|
|
6330
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6331
|
+
firstName: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6332
|
+
lastName: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6333
|
+
enabled: alepha1532.TOptional<PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>>;
|
|
6334
6334
|
}>;
|
|
6335
6335
|
type UpdateUser = Static<typeof updateUserSchema>;
|
|
6336
6336
|
//#endregion
|
|
6337
|
-
//#region
|
|
6338
|
-
declare const userQuerySchema:
|
|
6339
|
-
page:
|
|
6340
|
-
size:
|
|
6341
|
-
sort:
|
|
6342
|
-
email:
|
|
6343
|
-
enabled:
|
|
6344
|
-
emailVerified:
|
|
6345
|
-
roles:
|
|
6346
|
-
query:
|
|
6337
|
+
//#region ../../../alepha/src/api-users/schemas/userQuerySchema.d.ts
|
|
6338
|
+
declare const userQuerySchema: alepha1532.TObject<{
|
|
6339
|
+
page: alepha1532.TOptional<alepha1532.TInteger>;
|
|
6340
|
+
size: alepha1532.TOptional<alepha1532.TInteger>;
|
|
6341
|
+
sort: alepha1532.TOptional<alepha1532.TString>;
|
|
6342
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6343
|
+
enabled: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
6344
|
+
emailVerified: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
6345
|
+
roles: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
6346
|
+
query: alepha1532.TOptional<alepha1532.TString>;
|
|
6347
6347
|
}>;
|
|
6348
6348
|
type UserQuery = Static<typeof userQuerySchema>;
|
|
6349
6349
|
//#endregion
|
|
6350
|
-
//#region
|
|
6350
|
+
//#region ../../../alepha/src/api-users/services/UserService.d.ts
|
|
6351
6351
|
declare class UserService {
|
|
6352
6352
|
protected readonly log: Logger;
|
|
6353
6353
|
protected readonly verificationController: HttpVirtualClient<VerificationController>;
|
|
6354
6354
|
protected readonly userNotifications: UserNotifications;
|
|
6355
6355
|
protected readonly userRealmProvider: UserRealmProvider;
|
|
6356
|
-
users(userRealmName?: string): Repository<
|
|
6357
|
-
id: PgAttr<PgAttr<
|
|
6358
|
-
version: PgAttr<PgAttr<
|
|
6359
|
-
createdAt: PgAttr<PgAttr<
|
|
6360
|
-
updatedAt: PgAttr<PgAttr<
|
|
6361
|
-
realm: PgAttr<
|
|
6362
|
-
username:
|
|
6363
|
-
email:
|
|
6364
|
-
phoneNumber:
|
|
6365
|
-
roles: PgAttr<
|
|
6366
|
-
firstName:
|
|
6367
|
-
lastName:
|
|
6368
|
-
picture:
|
|
6369
|
-
enabled: PgAttr<
|
|
6370
|
-
emailVerified: PgAttr<
|
|
6356
|
+
users(userRealmName?: string): Repository<alepha1532.TObject<{
|
|
6357
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6358
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6359
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6360
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6361
|
+
realm: PgAttr<alepha1532.TString, typeof PG_DEFAULT>;
|
|
6362
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
6363
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6364
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TString>;
|
|
6365
|
+
roles: PgAttr<alepha1532.TArray<alepha1532.TString>, typeof PG_DEFAULT>;
|
|
6366
|
+
firstName: alepha1532.TOptional<alepha1532.TString>;
|
|
6367
|
+
lastName: alepha1532.TOptional<alepha1532.TString>;
|
|
6368
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
6369
|
+
enabled: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6370
|
+
emailVerified: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6371
6371
|
}>>;
|
|
6372
6372
|
/**
|
|
6373
6373
|
* Request email verification for a user.
|
|
@@ -6408,7 +6408,7 @@ declare class UserService {
|
|
|
6408
6408
|
deleteUser(id: string, userRealmName?: string): Promise<void>;
|
|
6409
6409
|
}
|
|
6410
6410
|
//#endregion
|
|
6411
|
-
//#region
|
|
6411
|
+
//#region ../../../alepha/src/api-users/controllers/UserController.d.ts
|
|
6412
6412
|
declare class UserController {
|
|
6413
6413
|
protected readonly url = "/users";
|
|
6414
6414
|
protected readonly group = "users";
|
|
@@ -6420,122 +6420,122 @@ declare class UserController {
|
|
|
6420
6420
|
* Validates data, creates verification sessions, and stores intent in cache.
|
|
6421
6421
|
*/
|
|
6422
6422
|
readonly createRegistrationIntent: ActionPrimitiveFn<{
|
|
6423
|
-
body:
|
|
6424
|
-
password:
|
|
6425
|
-
username:
|
|
6426
|
-
email:
|
|
6427
|
-
phoneNumber:
|
|
6428
|
-
firstName:
|
|
6429
|
-
lastName:
|
|
6430
|
-
picture:
|
|
6423
|
+
body: alepha1532.TObject<{
|
|
6424
|
+
password: alepha1532.TString;
|
|
6425
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
6426
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6427
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TString>;
|
|
6428
|
+
firstName: alepha1532.TOptional<alepha1532.TString>;
|
|
6429
|
+
lastName: alepha1532.TOptional<alepha1532.TString>;
|
|
6430
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
6431
6431
|
}>;
|
|
6432
|
-
query:
|
|
6433
|
-
userRealmName:
|
|
6432
|
+
query: alepha1532.TObject<{
|
|
6433
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6434
6434
|
}>;
|
|
6435
|
-
response:
|
|
6436
|
-
intentId:
|
|
6437
|
-
expectCaptcha:
|
|
6438
|
-
expectEmailVerification:
|
|
6439
|
-
expectPhoneVerification:
|
|
6440
|
-
expiresAt:
|
|
6435
|
+
response: alepha1532.TObject<{
|
|
6436
|
+
intentId: alepha1532.TString;
|
|
6437
|
+
expectCaptcha: alepha1532.TBoolean;
|
|
6438
|
+
expectEmailVerification: alepha1532.TBoolean;
|
|
6439
|
+
expectPhoneVerification: alepha1532.TBoolean;
|
|
6440
|
+
expiresAt: alepha1532.TString;
|
|
6441
6441
|
}>;
|
|
6442
6442
|
}>;
|
|
6443
6443
|
/**
|
|
6444
6444
|
* Find users with pagination and filtering.
|
|
6445
6445
|
*/
|
|
6446
6446
|
readonly findUsers: ActionPrimitiveFn<{
|
|
6447
|
-
query:
|
|
6448
|
-
page:
|
|
6449
|
-
size:
|
|
6450
|
-
sort:
|
|
6451
|
-
email:
|
|
6452
|
-
enabled:
|
|
6453
|
-
emailVerified:
|
|
6454
|
-
roles:
|
|
6455
|
-
query:
|
|
6456
|
-
userRealmName:
|
|
6447
|
+
query: alepha1532.TObject<{
|
|
6448
|
+
page: alepha1532.TOptional<alepha1532.TInteger>;
|
|
6449
|
+
size: alepha1532.TOptional<alepha1532.TInteger>;
|
|
6450
|
+
sort: alepha1532.TOptional<alepha1532.TString>;
|
|
6451
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6452
|
+
enabled: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
6453
|
+
emailVerified: alepha1532.TOptional<alepha1532.TBoolean>;
|
|
6454
|
+
roles: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
6455
|
+
query: alepha1532.TOptional<alepha1532.TString>;
|
|
6456
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6457
6457
|
}>;
|
|
6458
|
-
response:
|
|
6459
|
-
id: PgAttr<PgAttr<
|
|
6460
|
-
version: PgAttr<PgAttr<
|
|
6461
|
-
createdAt: PgAttr<PgAttr<
|
|
6462
|
-
updatedAt: PgAttr<PgAttr<
|
|
6463
|
-
realm: PgAttr<
|
|
6464
|
-
username:
|
|
6465
|
-
email:
|
|
6466
|
-
phoneNumber:
|
|
6467
|
-
roles: PgAttr<
|
|
6468
|
-
firstName:
|
|
6469
|
-
lastName:
|
|
6470
|
-
picture:
|
|
6471
|
-
enabled: PgAttr<
|
|
6472
|
-
emailVerified: PgAttr<
|
|
6458
|
+
response: alepha1532.TPage<alepha1532.TObject<{
|
|
6459
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6460
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6461
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6462
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6463
|
+
realm: PgAttr<alepha1532.TString, typeof PG_DEFAULT>;
|
|
6464
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
6465
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6466
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TString>;
|
|
6467
|
+
roles: PgAttr<alepha1532.TArray<alepha1532.TString>, typeof PG_DEFAULT>;
|
|
6468
|
+
firstName: alepha1532.TOptional<alepha1532.TString>;
|
|
6469
|
+
lastName: alepha1532.TOptional<alepha1532.TString>;
|
|
6470
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
6471
|
+
enabled: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6472
|
+
emailVerified: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6473
6473
|
}>>;
|
|
6474
6474
|
}>;
|
|
6475
6475
|
/**
|
|
6476
6476
|
* Get a user by ID.
|
|
6477
6477
|
*/
|
|
6478
6478
|
readonly getUser: ActionPrimitiveFn<{
|
|
6479
|
-
params:
|
|
6480
|
-
id:
|
|
6479
|
+
params: alepha1532.TObject<{
|
|
6480
|
+
id: alepha1532.TString;
|
|
6481
6481
|
}>;
|
|
6482
|
-
query:
|
|
6483
|
-
userRealmName:
|
|
6482
|
+
query: alepha1532.TObject<{
|
|
6483
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6484
6484
|
}>;
|
|
6485
|
-
response:
|
|
6486
|
-
id: PgAttr<PgAttr<
|
|
6487
|
-
version: PgAttr<PgAttr<
|
|
6488
|
-
createdAt: PgAttr<PgAttr<
|
|
6489
|
-
updatedAt: PgAttr<PgAttr<
|
|
6490
|
-
realm: PgAttr<
|
|
6491
|
-
username:
|
|
6492
|
-
email:
|
|
6493
|
-
phoneNumber:
|
|
6494
|
-
roles: PgAttr<
|
|
6495
|
-
firstName:
|
|
6496
|
-
lastName:
|
|
6497
|
-
picture:
|
|
6498
|
-
enabled: PgAttr<
|
|
6499
|
-
emailVerified: PgAttr<
|
|
6485
|
+
response: alepha1532.TObject<{
|
|
6486
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6487
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6488
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6489
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6490
|
+
realm: PgAttr<alepha1532.TString, typeof PG_DEFAULT>;
|
|
6491
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
6492
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6493
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TString>;
|
|
6494
|
+
roles: PgAttr<alepha1532.TArray<alepha1532.TString>, typeof PG_DEFAULT>;
|
|
6495
|
+
firstName: alepha1532.TOptional<alepha1532.TString>;
|
|
6496
|
+
lastName: alepha1532.TOptional<alepha1532.TString>;
|
|
6497
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
6498
|
+
enabled: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6499
|
+
emailVerified: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6500
6500
|
}>;
|
|
6501
6501
|
}>;
|
|
6502
6502
|
/**
|
|
6503
6503
|
* Create a new user.
|
|
6504
6504
|
*/
|
|
6505
6505
|
readonly createUser: ActionPrimitiveFn<{
|
|
6506
|
-
query:
|
|
6507
|
-
userRealmName:
|
|
6506
|
+
query: alepha1532.TObject<{
|
|
6507
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6508
6508
|
}>;
|
|
6509
|
-
body:
|
|
6510
|
-
id:
|
|
6511
|
-
email:
|
|
6512
|
-
username:
|
|
6513
|
-
picture:
|
|
6514
|
-
roles:
|
|
6515
|
-
version:
|
|
6516
|
-
createdAt:
|
|
6517
|
-
updatedAt:
|
|
6518
|
-
phoneNumber:
|
|
6519
|
-
firstName:
|
|
6520
|
-
lastName:
|
|
6521
|
-
enabled:
|
|
6522
|
-
emailVerified:
|
|
6509
|
+
body: alepha1532.TObject<{
|
|
6510
|
+
id: alepha1532.TOptional<PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>>;
|
|
6511
|
+
email: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6512
|
+
username: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6513
|
+
picture: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6514
|
+
roles: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
6515
|
+
version: alepha1532.TOptional<PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>>;
|
|
6516
|
+
createdAt: alepha1532.TOptional<PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>>;
|
|
6517
|
+
updatedAt: alepha1532.TOptional<PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>>;
|
|
6518
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6519
|
+
firstName: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6520
|
+
lastName: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6521
|
+
enabled: alepha1532.TOptional<PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>>;
|
|
6522
|
+
emailVerified: alepha1532.TOptional<PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>>;
|
|
6523
6523
|
}>;
|
|
6524
|
-
response:
|
|
6525
|
-
id: PgAttr<PgAttr<
|
|
6526
|
-
version: PgAttr<PgAttr<
|
|
6527
|
-
createdAt: PgAttr<PgAttr<
|
|
6528
|
-
updatedAt: PgAttr<PgAttr<
|
|
6529
|
-
realm: PgAttr<
|
|
6530
|
-
username:
|
|
6531
|
-
email:
|
|
6532
|
-
phoneNumber:
|
|
6533
|
-
roles: PgAttr<
|
|
6534
|
-
firstName:
|
|
6535
|
-
lastName:
|
|
6536
|
-
picture:
|
|
6537
|
-
enabled: PgAttr<
|
|
6538
|
-
emailVerified: PgAttr<
|
|
6524
|
+
response: alepha1532.TObject<{
|
|
6525
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6526
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6527
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6528
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6529
|
+
realm: PgAttr<alepha1532.TString, typeof PG_DEFAULT>;
|
|
6530
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
6531
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6532
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TString>;
|
|
6533
|
+
roles: PgAttr<alepha1532.TArray<alepha1532.TString>, typeof PG_DEFAULT>;
|
|
6534
|
+
firstName: alepha1532.TOptional<alepha1532.TString>;
|
|
6535
|
+
lastName: alepha1532.TOptional<alepha1532.TString>;
|
|
6536
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
6537
|
+
enabled: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6538
|
+
emailVerified: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6539
6539
|
}>;
|
|
6540
6540
|
}>;
|
|
6541
6541
|
/**
|
|
@@ -6543,80 +6543,80 @@ declare class UserController {
|
|
|
6543
6543
|
* Validates verification codes and creates the user.
|
|
6544
6544
|
*/
|
|
6545
6545
|
readonly createUserFromIntent: ActionPrimitiveFn<{
|
|
6546
|
-
body:
|
|
6547
|
-
intentId:
|
|
6548
|
-
emailCode:
|
|
6549
|
-
phoneCode:
|
|
6550
|
-
captchaToken:
|
|
6546
|
+
body: alepha1532.TObject<{
|
|
6547
|
+
intentId: alepha1532.TString;
|
|
6548
|
+
emailCode: alepha1532.TOptional<alepha1532.TString>;
|
|
6549
|
+
phoneCode: alepha1532.TOptional<alepha1532.TString>;
|
|
6550
|
+
captchaToken: alepha1532.TOptional<alepha1532.TString>;
|
|
6551
6551
|
}>;
|
|
6552
|
-
response:
|
|
6553
|
-
id: PgAttr<PgAttr<
|
|
6554
|
-
version: PgAttr<PgAttr<
|
|
6555
|
-
createdAt: PgAttr<PgAttr<
|
|
6556
|
-
updatedAt: PgAttr<PgAttr<
|
|
6557
|
-
realm: PgAttr<
|
|
6558
|
-
username:
|
|
6559
|
-
email:
|
|
6560
|
-
phoneNumber:
|
|
6561
|
-
roles: PgAttr<
|
|
6562
|
-
firstName:
|
|
6563
|
-
lastName:
|
|
6564
|
-
picture:
|
|
6565
|
-
enabled: PgAttr<
|
|
6566
|
-
emailVerified: PgAttr<
|
|
6552
|
+
response: alepha1532.TObject<{
|
|
6553
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6554
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6555
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6556
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6557
|
+
realm: PgAttr<alepha1532.TString, typeof PG_DEFAULT>;
|
|
6558
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
6559
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6560
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TString>;
|
|
6561
|
+
roles: PgAttr<alepha1532.TArray<alepha1532.TString>, typeof PG_DEFAULT>;
|
|
6562
|
+
firstName: alepha1532.TOptional<alepha1532.TString>;
|
|
6563
|
+
lastName: alepha1532.TOptional<alepha1532.TString>;
|
|
6564
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
6565
|
+
enabled: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6566
|
+
emailVerified: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6567
6567
|
}>;
|
|
6568
6568
|
}>;
|
|
6569
6569
|
/**
|
|
6570
6570
|
* Update a user.
|
|
6571
6571
|
*/
|
|
6572
6572
|
readonly updateUser: ActionPrimitiveFn<{
|
|
6573
|
-
params:
|
|
6574
|
-
id:
|
|
6573
|
+
params: alepha1532.TObject<{
|
|
6574
|
+
id: alepha1532.TString;
|
|
6575
6575
|
}>;
|
|
6576
|
-
query:
|
|
6577
|
-
userRealmName:
|
|
6576
|
+
query: alepha1532.TObject<{
|
|
6577
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6578
6578
|
}>;
|
|
6579
|
-
body:
|
|
6580
|
-
email:
|
|
6581
|
-
picture:
|
|
6582
|
-
roles:
|
|
6583
|
-
realm:
|
|
6584
|
-
phoneNumber:
|
|
6585
|
-
firstName:
|
|
6586
|
-
lastName:
|
|
6587
|
-
enabled:
|
|
6579
|
+
body: alepha1532.TObject<{
|
|
6580
|
+
email: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6581
|
+
picture: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6582
|
+
roles: alepha1532.TOptional<alepha1532.TArray<alepha1532.TString>>;
|
|
6583
|
+
realm: alepha1532.TOptional<PgAttr<alepha1532.TString, typeof PG_DEFAULT>>;
|
|
6584
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6585
|
+
firstName: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6586
|
+
lastName: alepha1532.TOptional<alepha1532.TOptional<alepha1532.TString>>;
|
|
6587
|
+
enabled: alepha1532.TOptional<PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>>;
|
|
6588
6588
|
}>;
|
|
6589
|
-
response:
|
|
6590
|
-
id: PgAttr<PgAttr<
|
|
6591
|
-
version: PgAttr<PgAttr<
|
|
6592
|
-
createdAt: PgAttr<PgAttr<
|
|
6593
|
-
updatedAt: PgAttr<PgAttr<
|
|
6594
|
-
realm: PgAttr<
|
|
6595
|
-
username:
|
|
6596
|
-
email:
|
|
6597
|
-
phoneNumber:
|
|
6598
|
-
roles: PgAttr<
|
|
6599
|
-
firstName:
|
|
6600
|
-
lastName:
|
|
6601
|
-
picture:
|
|
6602
|
-
enabled: PgAttr<
|
|
6603
|
-
emailVerified: PgAttr<
|
|
6589
|
+
response: alepha1532.TObject<{
|
|
6590
|
+
id: PgAttr<PgAttr<alepha1532.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
6591
|
+
version: PgAttr<PgAttr<alepha1532.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
6592
|
+
createdAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
6593
|
+
updatedAt: PgAttr<PgAttr<alepha1532.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
6594
|
+
realm: PgAttr<alepha1532.TString, typeof PG_DEFAULT>;
|
|
6595
|
+
username: alepha1532.TOptional<alepha1532.TString>;
|
|
6596
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6597
|
+
phoneNumber: alepha1532.TOptional<alepha1532.TString>;
|
|
6598
|
+
roles: PgAttr<alepha1532.TArray<alepha1532.TString>, typeof PG_DEFAULT>;
|
|
6599
|
+
firstName: alepha1532.TOptional<alepha1532.TString>;
|
|
6600
|
+
lastName: alepha1532.TOptional<alepha1532.TString>;
|
|
6601
|
+
picture: alepha1532.TOptional<alepha1532.TString>;
|
|
6602
|
+
enabled: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6603
|
+
emailVerified: PgAttr<alepha1532.TBoolean, typeof PG_DEFAULT>;
|
|
6604
6604
|
}>;
|
|
6605
6605
|
}>;
|
|
6606
6606
|
/**
|
|
6607
6607
|
* Delete a user.
|
|
6608
6608
|
*/
|
|
6609
6609
|
readonly deleteUser: ActionPrimitiveFn<{
|
|
6610
|
-
params:
|
|
6611
|
-
id:
|
|
6610
|
+
params: alepha1532.TObject<{
|
|
6611
|
+
id: alepha1532.TString;
|
|
6612
6612
|
}>;
|
|
6613
|
-
query:
|
|
6614
|
-
userRealmName:
|
|
6613
|
+
query: alepha1532.TObject<{
|
|
6614
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6615
6615
|
}>;
|
|
6616
|
-
response:
|
|
6617
|
-
ok:
|
|
6618
|
-
id:
|
|
6619
|
-
count:
|
|
6616
|
+
response: alepha1532.TObject<{
|
|
6617
|
+
ok: alepha1532.TBoolean;
|
|
6618
|
+
id: alepha1532.TOptional<alepha1532.TUnion<[alepha1532.TString, alepha1532.TInteger]>>;
|
|
6619
|
+
count: alepha1532.TOptional<alepha1532.TNumber>;
|
|
6620
6620
|
}>;
|
|
6621
6621
|
}>;
|
|
6622
6622
|
/**
|
|
@@ -6624,15 +6624,15 @@ declare class UserController {
|
|
|
6624
6624
|
* Validates email, sends verification code, and stores intent in cache.
|
|
6625
6625
|
*/
|
|
6626
6626
|
readonly createPasswordResetIntent: ActionPrimitiveFn<{
|
|
6627
|
-
query:
|
|
6628
|
-
userRealmName:
|
|
6627
|
+
query: alepha1532.TObject<{
|
|
6628
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6629
6629
|
}>;
|
|
6630
|
-
body:
|
|
6631
|
-
email:
|
|
6630
|
+
body: alepha1532.TObject<{
|
|
6631
|
+
email: alepha1532.TString;
|
|
6632
6632
|
}>;
|
|
6633
|
-
response:
|
|
6634
|
-
intentId:
|
|
6635
|
-
expiresAt:
|
|
6633
|
+
response: alepha1532.TObject<{
|
|
6634
|
+
intentId: alepha1532.TString;
|
|
6635
|
+
expiresAt: alepha1532.TString;
|
|
6636
6636
|
}>;
|
|
6637
6637
|
}>;
|
|
6638
6638
|
/**
|
|
@@ -6640,61 +6640,61 @@ declare class UserController {
|
|
|
6640
6640
|
* Validates verification code, updates password, and invalidates sessions.
|
|
6641
6641
|
*/
|
|
6642
6642
|
readonly completePasswordReset: ActionPrimitiveFn<{
|
|
6643
|
-
body:
|
|
6644
|
-
intentId:
|
|
6645
|
-
code:
|
|
6646
|
-
newPassword:
|
|
6643
|
+
body: alepha1532.TObject<{
|
|
6644
|
+
intentId: alepha1532.TString;
|
|
6645
|
+
code: alepha1532.TString;
|
|
6646
|
+
newPassword: alepha1532.TString;
|
|
6647
6647
|
}>;
|
|
6648
|
-
response:
|
|
6649
|
-
ok:
|
|
6650
|
-
id:
|
|
6651
|
-
count:
|
|
6648
|
+
response: alepha1532.TObject<{
|
|
6649
|
+
ok: alepha1532.TBoolean;
|
|
6650
|
+
id: alepha1532.TOptional<alepha1532.TUnion<[alepha1532.TString, alepha1532.TInteger]>>;
|
|
6651
|
+
count: alepha1532.TOptional<alepha1532.TNumber>;
|
|
6652
6652
|
}>;
|
|
6653
6653
|
}>;
|
|
6654
6654
|
/**
|
|
6655
6655
|
* @deprecated Use createPasswordResetIntent instead
|
|
6656
6656
|
*/
|
|
6657
6657
|
requestPasswordReset: ActionPrimitiveFn<{
|
|
6658
|
-
query:
|
|
6659
|
-
userRealmName:
|
|
6658
|
+
query: alepha1532.TObject<{
|
|
6659
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6660
6660
|
}>;
|
|
6661
|
-
body:
|
|
6662
|
-
email:
|
|
6661
|
+
body: alepha1532.TObject<{
|
|
6662
|
+
email: alepha1532.TString;
|
|
6663
6663
|
}>;
|
|
6664
|
-
response:
|
|
6665
|
-
success:
|
|
6666
|
-
message:
|
|
6664
|
+
response: alepha1532.TObject<{
|
|
6665
|
+
success: alepha1532.TBoolean;
|
|
6666
|
+
message: alepha1532.TString;
|
|
6667
6667
|
}>;
|
|
6668
6668
|
}>;
|
|
6669
6669
|
/**
|
|
6670
6670
|
* @deprecated Use completePasswordReset instead
|
|
6671
6671
|
*/
|
|
6672
6672
|
validateResetToken: ActionPrimitiveFn<{
|
|
6673
|
-
query:
|
|
6674
|
-
email:
|
|
6675
|
-
token:
|
|
6676
|
-
userRealmName:
|
|
6673
|
+
query: alepha1532.TObject<{
|
|
6674
|
+
email: alepha1532.TString;
|
|
6675
|
+
token: alepha1532.TString;
|
|
6676
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6677
6677
|
}>;
|
|
6678
|
-
response:
|
|
6679
|
-
valid:
|
|
6680
|
-
email:
|
|
6678
|
+
response: alepha1532.TObject<{
|
|
6679
|
+
valid: alepha1532.TBoolean;
|
|
6680
|
+
email: alepha1532.TOptional<alepha1532.TString>;
|
|
6681
6681
|
}>;
|
|
6682
6682
|
}>;
|
|
6683
6683
|
/**
|
|
6684
6684
|
* @deprecated Use completePasswordReset instead
|
|
6685
6685
|
*/
|
|
6686
6686
|
resetPassword: ActionPrimitiveFn<{
|
|
6687
|
-
query:
|
|
6688
|
-
userRealmName:
|
|
6687
|
+
query: alepha1532.TObject<{
|
|
6688
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6689
6689
|
}>;
|
|
6690
|
-
body:
|
|
6691
|
-
email:
|
|
6692
|
-
token:
|
|
6693
|
-
newPassword:
|
|
6690
|
+
body: alepha1532.TObject<{
|
|
6691
|
+
email: alepha1532.TString;
|
|
6692
|
+
token: alepha1532.TString;
|
|
6693
|
+
newPassword: alepha1532.TString;
|
|
6694
6694
|
}>;
|
|
6695
|
-
response:
|
|
6696
|
-
success:
|
|
6697
|
-
message:
|
|
6695
|
+
response: alepha1532.TObject<{
|
|
6696
|
+
success: alepha1532.TBoolean;
|
|
6697
|
+
message: alepha1532.TString;
|
|
6698
6698
|
}>;
|
|
6699
6699
|
}>;
|
|
6700
6700
|
/**
|
|
@@ -6704,17 +6704,17 @@ declare class UserController {
|
|
|
6704
6704
|
* @param verifyUrl - Required when method is "link". The base URL for the verification link. Token and email will be appended as query params.
|
|
6705
6705
|
*/
|
|
6706
6706
|
requestEmailVerification: ActionPrimitiveFn<{
|
|
6707
|
-
query:
|
|
6708
|
-
userRealmName:
|
|
6709
|
-
method:
|
|
6710
|
-
verifyUrl:
|
|
6707
|
+
query: alepha1532.TObject<{
|
|
6708
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6709
|
+
method: alepha1532.TOptional<alepha1532.TUnsafe<"link" | "code">>;
|
|
6710
|
+
verifyUrl: alepha1532.TOptional<alepha1532.TString>;
|
|
6711
6711
|
}>;
|
|
6712
|
-
body:
|
|
6713
|
-
email:
|
|
6712
|
+
body: alepha1532.TObject<{
|
|
6713
|
+
email: alepha1532.TString;
|
|
6714
6714
|
}>;
|
|
6715
|
-
response:
|
|
6716
|
-
success:
|
|
6717
|
-
message:
|
|
6715
|
+
response: alepha1532.TObject<{
|
|
6716
|
+
success: alepha1532.TBoolean;
|
|
6717
|
+
message: alepha1532.TString;
|
|
6718
6718
|
}>;
|
|
6719
6719
|
}>;
|
|
6720
6720
|
/**
|
|
@@ -6722,33 +6722,33 @@ declare class UserController {
|
|
|
6722
6722
|
* Updates the user's emailVerified status.
|
|
6723
6723
|
*/
|
|
6724
6724
|
verifyEmail: ActionPrimitiveFn<{
|
|
6725
|
-
query:
|
|
6726
|
-
userRealmName:
|
|
6725
|
+
query: alepha1532.TObject<{
|
|
6726
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6727
6727
|
}>;
|
|
6728
|
-
body:
|
|
6729
|
-
email:
|
|
6730
|
-
token:
|
|
6728
|
+
body: alepha1532.TObject<{
|
|
6729
|
+
email: alepha1532.TString;
|
|
6730
|
+
token: alepha1532.TString;
|
|
6731
6731
|
}>;
|
|
6732
|
-
response:
|
|
6733
|
-
success:
|
|
6734
|
-
message:
|
|
6732
|
+
response: alepha1532.TObject<{
|
|
6733
|
+
success: alepha1532.TBoolean;
|
|
6734
|
+
message: alepha1532.TString;
|
|
6735
6735
|
}>;
|
|
6736
6736
|
}>;
|
|
6737
6737
|
/**
|
|
6738
6738
|
* Check if an email is verified.
|
|
6739
6739
|
*/
|
|
6740
6740
|
checkEmailVerification: ActionPrimitiveFn<{
|
|
6741
|
-
query:
|
|
6742
|
-
email:
|
|
6743
|
-
userRealmName:
|
|
6741
|
+
query: alepha1532.TObject<{
|
|
6742
|
+
email: alepha1532.TString;
|
|
6743
|
+
userRealmName: alepha1532.TOptional<alepha1532.TString>;
|
|
6744
6744
|
}>;
|
|
6745
|
-
response:
|
|
6746
|
-
verified:
|
|
6745
|
+
response: alepha1532.TObject<{
|
|
6746
|
+
verified: alepha1532.TBoolean;
|
|
6747
6747
|
}>;
|
|
6748
6748
|
}>;
|
|
6749
6749
|
}
|
|
6750
6750
|
//#endregion
|
|
6751
|
-
//#region
|
|
6751
|
+
//#region ../../../alepha/src/api-users/primitives/$userRealm.d.ts
|
|
6752
6752
|
interface UserRealmOptions {
|
|
6753
6753
|
/**
|
|
6754
6754
|
* Secret key for signing tokens.
|
|
@@ -6782,7 +6782,7 @@ interface UserRealmOptions {
|
|
|
6782
6782
|
};
|
|
6783
6783
|
}
|
|
6784
6784
|
//#endregion
|
|
6785
|
-
//#region src/admin/AdminRouter.d.ts
|
|
6785
|
+
//#region ../../src/admin/AdminRouter.d.ts
|
|
6786
6786
|
declare class AdminRouter {
|
|
6787
6787
|
protected readonly router: ReactRouter<object>;
|
|
6788
6788
|
protected readonly authRouter: AuthRouter;
|
|
@@ -6803,72 +6803,72 @@ declare class AdminRouter {
|
|
|
6803
6803
|
readonly adminFiles: PagePrimitive<PageConfigSchema, any, {}>;
|
|
6804
6804
|
}
|
|
6805
6805
|
//#endregion
|
|
6806
|
-
//#region src/admin/AdminSidebar.d.ts
|
|
6806
|
+
//#region ../../src/admin/AdminSidebar.d.ts
|
|
6807
6807
|
declare class AdminSidebar {
|
|
6808
6808
|
menu: (router: ReactRouter<any>) => SidebarNode[];
|
|
6809
6809
|
}
|
|
6810
6810
|
//#endregion
|
|
6811
|
-
//#region src/admin/components/AdminFiles.d.ts
|
|
6811
|
+
//#region ../../src/admin/components/AdminFiles.d.ts
|
|
6812
6812
|
declare const AdminFiles: () => react_jsx_runtime0.JSX.Element;
|
|
6813
6813
|
//#endregion
|
|
6814
|
-
//#region src/admin/components/AdminJobs.d.ts
|
|
6814
|
+
//#region ../../src/admin/components/AdminJobs.d.ts
|
|
6815
6815
|
declare const AdminJobs: () => react_jsx_runtime0.JSX.Element;
|
|
6816
6816
|
//#endregion
|
|
6817
|
-
//#region src/admin/components/AdminLayout.d.ts
|
|
6817
|
+
//#region ../../src/admin/components/AdminLayout.d.ts
|
|
6818
6818
|
declare const AdminLayout: () => react_jsx_runtime0.JSX.Element;
|
|
6819
6819
|
//#endregion
|
|
6820
|
-
//#region src/admin/components/AdminNotifications.d.ts
|
|
6820
|
+
//#region ../../src/admin/components/AdminNotifications.d.ts
|
|
6821
6821
|
declare const AdminNotifications: () => react_jsx_runtime0.JSX.Element;
|
|
6822
6822
|
//#endregion
|
|
6823
|
-
//#region src/admin/components/AdminParameters.d.ts
|
|
6823
|
+
//#region ../../src/admin/components/AdminParameters.d.ts
|
|
6824
6824
|
declare const AdminParameters: () => react_jsx_runtime0.JSX.Element;
|
|
6825
6825
|
//#endregion
|
|
6826
|
-
//#region src/admin/components/AdminSessions.d.ts
|
|
6826
|
+
//#region ../../src/admin/components/AdminSessions.d.ts
|
|
6827
6827
|
interface AdminSessionsProps {
|
|
6828
6828
|
userRealmName?: string;
|
|
6829
6829
|
}
|
|
6830
6830
|
declare const AdminSessions: (props: AdminSessionsProps) => react_jsx_runtime0.JSX.Element;
|
|
6831
6831
|
//#endregion
|
|
6832
|
-
//#region src/admin/components/AdminUserCreate.d.ts
|
|
6832
|
+
//#region ../../src/admin/components/AdminUserCreate.d.ts
|
|
6833
6833
|
interface AdminUserCreateProps {
|
|
6834
6834
|
userRealmName?: string;
|
|
6835
6835
|
}
|
|
6836
6836
|
declare const AdminUserCreate: (props: AdminUserCreateProps) => react_jsx_runtime0.JSX.Element;
|
|
6837
6837
|
//#endregion
|
|
6838
|
-
//#region src/admin/components/AdminUserDetails.d.ts
|
|
6838
|
+
//#region ../../src/admin/components/AdminUserDetails.d.ts
|
|
6839
6839
|
interface AdminUserDetailsProps {
|
|
6840
6840
|
userRealmName?: string;
|
|
6841
6841
|
}
|
|
6842
6842
|
declare const AdminUserDetails: (props: AdminUserDetailsProps) => react_jsx_runtime0.JSX.Element;
|
|
6843
6843
|
//#endregion
|
|
6844
|
-
//#region src/admin/components/AdminUserLayout.d.ts
|
|
6844
|
+
//#region ../../src/admin/components/AdminUserLayout.d.ts
|
|
6845
6845
|
interface AdminUserLayoutProps {
|
|
6846
6846
|
userRealmName?: string;
|
|
6847
6847
|
}
|
|
6848
6848
|
declare const AdminUserLayout: (props: AdminUserLayoutProps) => react_jsx_runtime0.JSX.Element;
|
|
6849
6849
|
//#endregion
|
|
6850
|
-
//#region src/admin/components/AdminUserSessions.d.ts
|
|
6850
|
+
//#region ../../src/admin/components/AdminUserSessions.d.ts
|
|
6851
6851
|
interface AdminUserSessionsProps {
|
|
6852
6852
|
userRealmName?: string;
|
|
6853
6853
|
}
|
|
6854
6854
|
declare const AdminUserSessions: (props: AdminUserSessionsProps) => react_jsx_runtime0.JSX.Element;
|
|
6855
6855
|
//#endregion
|
|
6856
|
-
//#region src/admin/components/AdminUserSettings.d.ts
|
|
6856
|
+
//#region ../../src/admin/components/AdminUserSettings.d.ts
|
|
6857
6857
|
interface AdminUserSettingsProps {
|
|
6858
6858
|
userRealmName?: string;
|
|
6859
6859
|
}
|
|
6860
6860
|
declare const AdminUserSettings: (props: AdminUserSettingsProps) => react_jsx_runtime0.JSX.Element;
|
|
6861
6861
|
//#endregion
|
|
6862
|
-
//#region src/admin/components/AdminUsers.d.ts
|
|
6862
|
+
//#region ../../src/admin/components/AdminUsers.d.ts
|
|
6863
6863
|
interface AdminUsersProps {
|
|
6864
6864
|
userRealmName?: string;
|
|
6865
6865
|
}
|
|
6866
6866
|
declare const AdminUsers: (props: AdminUsersProps) => react_jsx_runtime0.JSX.Element;
|
|
6867
6867
|
//#endregion
|
|
6868
|
-
//#region src/admin/components/AdminVerifications.d.ts
|
|
6868
|
+
//#region ../../src/admin/components/AdminVerifications.d.ts
|
|
6869
6869
|
declare const AdminVerifications: () => react_jsx_runtime0.JSX.Element;
|
|
6870
6870
|
//#endregion
|
|
6871
|
-
//#region src/admin/MainRouter.d.ts
|
|
6871
|
+
//#region ../../src/admin/MainRouter.d.ts
|
|
6872
6872
|
/**
|
|
6873
6873
|
* Main application router that combines Auth and Admin routers.
|
|
6874
6874
|
*
|
|
@@ -6883,13 +6883,13 @@ declare class MainRouter {
|
|
|
6883
6883
|
layout: PagePrimitive<PageConfigSchema, any, TPropsParentDefault>;
|
|
6884
6884
|
}
|
|
6885
6885
|
//#endregion
|
|
6886
|
-
//#region src/admin/index.d.ts
|
|
6886
|
+
//#region ../../src/admin/index.d.ts
|
|
6887
6887
|
/**
|
|
6888
6888
|
* Admin panel UI Module
|
|
6889
6889
|
*
|
|
6890
6890
|
* @module alepha.ui.admin
|
|
6891
6891
|
*/
|
|
6892
|
-
declare const AlephaUIAdmin:
|
|
6892
|
+
declare const AlephaUIAdmin: alepha1532.Service<alepha1532.Module>;
|
|
6893
6893
|
//#endregion
|
|
6894
6894
|
export { AdminFiles, AdminJobs, AdminLayout, AdminNotifications, AdminParameters, AdminRouter, AdminSessions, AdminSidebar, AdminUserCreate, AdminUserDetails, AdminUserLayout, AdminUserSessions, AdminUserSettings, AdminUsers, AdminVerifications, AlephaUIAdmin, MainRouter };
|
|
6895
6895
|
//# sourceMappingURL=index.d.ts.map
|