@alepha/ui 0.13.3 → 0.13.5
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-BjofP3OC.js → AdminFiles-B_jfB_Py.js} +4 -4
- package/dist/admin/{AdminFiles-BjofP3OC.js.map → AdminFiles-B_jfB_Py.js.map} +1 -1
- package/dist/admin/{AdminLayout-JakF7ESb.js → AdminLayout-BMtiXAzS.js} +37 -29
- package/dist/admin/AdminLayout-BMtiXAzS.js.map +1 -0
- package/dist/admin/AdminLayout-BNo3GoHR.js +3 -0
- package/dist/admin/{AdminNotifications-BPrxALdS.js → AdminNotifications-BFEjqpqx.js} +3 -3
- package/dist/admin/{AdminNotifications-BPrxALdS.js.map → AdminNotifications-BFEjqpqx.js.map} +1 -1
- package/dist/admin/AdminNotifications-DJs2ZjNj.js +3 -0
- package/dist/admin/{AdminSessions-CMmBtbSw.js → AdminSessions-D7DESfWK.js} +4 -4
- package/dist/admin/{AdminSessions-CMmBtbSw.js.map → AdminSessions-D7DESfWK.js.map} +1 -1
- package/dist/admin/AdminSessions-PS2M8iXi.js +3 -0
- package/dist/admin/{AdminUserCreate-Coa_yi6m.js → AdminUserCreate-Bhxsn92l.js} +3 -3
- package/dist/admin/{AdminUserCreate-Coa_yi6m.js.map → AdminUserCreate-Bhxsn92l.js.map} +1 -1
- package/dist/admin/{AdminUserCreate-DjiCcAk0.js → AdminUserCreate-CYI_xW5T.js} +1 -1
- package/dist/admin/{AdminUserDetails-BCFwOm9w.js → AdminUserDetails-C2y1Ig4n.js} +5 -5
- package/dist/admin/{AdminUserDetails-BCFwOm9w.js.map → AdminUserDetails-C2y1Ig4n.js.map} +1 -1
- package/dist/admin/{AdminUserDetails-C5yeJNa3.js → AdminUserDetails-Cmzx9HxH.js} +1 -1
- package/dist/admin/{AdminUserLayout-B8ga5QvP.js → AdminUserLayout-DGSf612u.js} +1 -1
- package/dist/admin/{AdminUserLayout-CR2OqV9Z.js → AdminUserLayout-sW6cjZL0.js} +3 -3
- package/dist/admin/{AdminUserLayout-CR2OqV9Z.js.map → AdminUserLayout-sW6cjZL0.js.map} +1 -1
- package/dist/admin/{AdminUserSessions-Bcf6-rjG.js → AdminUserSessions-CvN15wPe.js} +4 -4
- package/dist/admin/{AdminUserSessions-Bcf6-rjG.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-DRYVdW6S.js → AdminUserSettings-DvaaxgcV.js} +3 -3
- package/dist/admin/{AdminUserSettings-DRYVdW6S.js.map → AdminUserSettings-DvaaxgcV.js.map} +1 -1
- package/dist/admin/{AdminUsers-IN_2yHKt.js → AdminUsers-BR3C-jrg.js} +3 -3
- package/dist/admin/{AdminUsers-IN_2yHKt.js.map → AdminUsers-BR3C-jrg.js.map} +1 -1
- package/dist/admin/AdminUsers-CMW9vN09.js +3 -0
- package/dist/admin/index.d.ts +1169 -1163
- package/dist/admin/index.js +31 -29
- package/dist/admin/index.js.map +1 -1
- 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-kBfaRgKG.js → Login-7HlBjDeV.js} +4 -4
- package/dist/auth/{Login-kBfaRgKG.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 +15 -14
- package/dist/auth/index.js.map +1 -1
- package/dist/core/index.d.ts +187 -187
- package/dist/core/index.js +51 -59
- package/dist/core/index.js.map +1 -1
- package/package.json +5 -4
- package/src/admin/AdminSidebar.ts +31 -0
- package/src/admin/components/AdminLayout.tsx +5 -26
- package/src/admin/index.ts +4 -1
- package/src/auth/components/Login.tsx +1 -1
- package/src/auth/components/buttons/UserButton.tsx +7 -1
- package/src/core/components/buttons/ActionButton.tsx +1 -0
- package/src/core/components/layout/Sidebar.tsx +0 -2
- package/src/core/hooks/useTheme.ts +2 -2
- package/src/core/providers/ThemeProvider.ts +11 -8
- package/src/core/themes/midnight.ts +1 -7
- package/styles.css +84 -0
- package/dist/admin/AdminFiles-DldZB7oo.js +0 -3
- package/dist/admin/AdminLayout-JakF7ESb.js.map +0 -1
- package/dist/admin/AdminLayout-qNsIyl30.js +0 -3
- package/dist/admin/AdminNotifications-DV-35Fi3.js +0 -3
- package/dist/admin/AdminSessions-Df2VYzlE.js +0 -3
- package/dist/admin/AdminUserSessions-A_5KkqTY.js +0 -3
- package/dist/admin/AdminUserSettings-DAsAhFjX.js +0 -3
- package/dist/admin/AdminUsers-Dd9a5UqO.js +0 -3
- package/dist/auth/Login-DDsyCNAA.js +0 -4
- package/dist/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/auth/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActionMenuConfig, ActionMenuItem, ActionProps } from "@alepha/ui";
|
|
2
|
-
import * as
|
|
2
|
+
import * as alepha1118 from "alepha";
|
|
3
3
|
import { Alepha, AlephaError, Async, FileLike, InstantiableClass, LogLevel, LoggerInterface, Page, PageQuery, Primitive, PrimitiveArgs, Service, Static, StaticEncode, StreamLike, TArray, TFile, TNull, TObject, TOptional, TRecord, TSchema, TStream, TString, TUnion, TVoid } from "alepha";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
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: alepha1118.TObject<{
|
|
29
|
+
id: alepha1118.TString;
|
|
30
|
+
name: alepha1118.TOptional<alepha1118.TString>;
|
|
31
|
+
email: alepha1118.TOptional<alepha1118.TString>;
|
|
32
|
+
username: alepha1118.TOptional<alepha1118.TString>;
|
|
33
|
+
picture: alepha1118.TOptional<alepha1118.TString>;
|
|
34
|
+
sessionId: alepha1118.TOptional<alepha1118.TString>;
|
|
35
|
+
organizations: alepha1118.TOptional<alepha1118.TArray<alepha1118.TString>>;
|
|
36
|
+
roles: alepha1118.TOptional<alepha1118.TArray<alepha1118.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: alepha1118.TObject<{
|
|
42
|
+
error: alepha1118.TString;
|
|
43
|
+
status: alepha1118.TInteger;
|
|
44
|
+
message: alepha1118.TString;
|
|
45
|
+
details: alepha1118.TOptional<alepha1118.TString>;
|
|
46
|
+
requestId: alepha1118.TOptional<alepha1118.TString>;
|
|
47
|
+
cause: alepha1118.TOptional<alepha1118.TObject<{
|
|
48
|
+
name: alepha1118.TString;
|
|
49
|
+
message: alepha1118.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: alepha1118.TObject<{
|
|
289
|
+
level: alepha1118.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
290
|
+
message: alepha1118.TString;
|
|
291
|
+
service: alepha1118.TString;
|
|
292
|
+
module: alepha1118.TString;
|
|
293
|
+
context: alepha1118.TOptional<alepha1118.TString>;
|
|
294
|
+
app: alepha1118.TOptional<alepha1118.TString>;
|
|
295
|
+
data: alepha1118.TOptional<alepha1118.TAny>;
|
|
296
|
+
timestamp: alepha1118.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: alepha1118.HookPrimitive<"start">;
|
|
312
|
+
protected readonly onStop: alepha1118.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: alepha1118.TObject<{
|
|
445
445
|
/**
|
|
446
446
|
* Default log level for the application.
|
|
447
447
|
*
|
|
@@ -458,14 +458,14 @@ declare const envSchema$9: alepha1184.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: alepha1118.TOptional<alepha1118.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: alepha1118.TOptional<alepha1118.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: alepha1118.HookPrimitive<"server:onRequest">;
|
|
506
|
+
readonly onResponse: alepha1118.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: alepha1118.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: alepha1118.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,32 +908,32 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
|
|
|
908
908
|
*/
|
|
909
909
|
interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
|
|
910
910
|
//#endregion
|
|
911
|
-
//#region
|
|
911
|
+
//#region ../../../alepha/src/server/primitives/$route.d.ts
|
|
912
912
|
interface RoutePrimitiveOptions<TConfig extends RequestConfigSchema = RequestConfigSchema> extends ServerRoute<TConfig> {}
|
|
913
913
|
declare class RoutePrimitive<TConfig extends RequestConfigSchema> extends Primitive<RoutePrimitiveOptions<TConfig>> {
|
|
914
914
|
protected readonly serverRouterProvider: ServerRouterProvider;
|
|
915
915
|
protected onInit(): void;
|
|
916
916
|
}
|
|
917
917
|
//#endregion
|
|
918
|
-
//#region
|
|
919
|
-
declare const envSchema$8:
|
|
920
|
-
SERVER_PORT:
|
|
921
|
-
SERVER_HOST:
|
|
918
|
+
//#region ../../../alepha/src/server/providers/BunHttpServerProvider.d.ts
|
|
919
|
+
declare const envSchema$8: alepha1118.TObject<{
|
|
920
|
+
SERVER_PORT: alepha1118.TInteger;
|
|
921
|
+
SERVER_HOST: alepha1118.TString;
|
|
922
922
|
}>;
|
|
923
923
|
declare module "alepha" {
|
|
924
924
|
interface Env extends Partial<Static<typeof envSchema$8>> {}
|
|
925
925
|
}
|
|
926
926
|
//#endregion
|
|
927
|
-
//#region
|
|
928
|
-
declare const envSchema$7:
|
|
929
|
-
SERVER_PORT:
|
|
930
|
-
SERVER_HOST:
|
|
927
|
+
//#region ../../../alepha/src/server/providers/NodeHttpServerProvider.d.ts
|
|
928
|
+
declare const envSchema$7: alepha1118.TObject<{
|
|
929
|
+
SERVER_PORT: alepha1118.TInteger;
|
|
930
|
+
SERVER_HOST: alepha1118.TString;
|
|
931
931
|
}>;
|
|
932
932
|
declare module "alepha" {
|
|
933
933
|
interface Env extends Partial<Static<typeof envSchema$7>> {}
|
|
934
934
|
}
|
|
935
935
|
//#endregion
|
|
936
|
-
//#region
|
|
936
|
+
//#region ../../../alepha/src/server/index.d.ts
|
|
937
937
|
declare module "alepha" {
|
|
938
938
|
interface State {
|
|
939
939
|
"alepha.node.server"?: Server;
|
|
@@ -989,7 +989,7 @@ declare module "alepha" {
|
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
991
|
//#endregion
|
|
992
|
-
//#region
|
|
992
|
+
//#region ../../../alepha/src/security/interfaces/UserAccountToken.d.ts
|
|
993
993
|
/**
|
|
994
994
|
* Add contextual metadata to a user account info.
|
|
995
995
|
* E.g. UserAccountToken is a UserAccountInfo during a request.
|
|
@@ -1010,30 +1010,30 @@ interface UserAccountToken extends UserAccount {
|
|
|
1010
1010
|
ownership?: string | boolean;
|
|
1011
1011
|
}
|
|
1012
1012
|
//#endregion
|
|
1013
|
-
//#region
|
|
1014
|
-
declare const permissionSchema:
|
|
1015
|
-
name:
|
|
1016
|
-
group:
|
|
1017
|
-
description:
|
|
1018
|
-
method:
|
|
1019
|
-
path:
|
|
1013
|
+
//#region ../../../alepha/src/security/schemas/permissionSchema.d.ts
|
|
1014
|
+
declare const permissionSchema: alepha1118.TObject<{
|
|
1015
|
+
name: alepha1118.TString;
|
|
1016
|
+
group: alepha1118.TOptional<alepha1118.TString>;
|
|
1017
|
+
description: alepha1118.TOptional<alepha1118.TString>;
|
|
1018
|
+
method: alepha1118.TOptional<alepha1118.TString>;
|
|
1019
|
+
path: alepha1118.TOptional<alepha1118.TString>;
|
|
1020
1020
|
}>;
|
|
1021
1021
|
type Permission = Static<typeof permissionSchema>;
|
|
1022
1022
|
//#endregion
|
|
1023
|
-
//#region
|
|
1024
|
-
declare const roleSchema:
|
|
1025
|
-
name:
|
|
1026
|
-
description:
|
|
1027
|
-
default:
|
|
1028
|
-
permissions:
|
|
1029
|
-
name:
|
|
1030
|
-
ownership:
|
|
1031
|
-
exclude:
|
|
1023
|
+
//#region ../../../alepha/src/security/schemas/roleSchema.d.ts
|
|
1024
|
+
declare const roleSchema: alepha1118.TObject<{
|
|
1025
|
+
name: alepha1118.TString;
|
|
1026
|
+
description: alepha1118.TOptional<alepha1118.TString>;
|
|
1027
|
+
default: alepha1118.TOptional<alepha1118.TBoolean>;
|
|
1028
|
+
permissions: alepha1118.TArray<alepha1118.TObject<{
|
|
1029
|
+
name: alepha1118.TString;
|
|
1030
|
+
ownership: alepha1118.TOptional<alepha1118.TBoolean>;
|
|
1031
|
+
exclude: alepha1118.TOptional<alepha1118.TArray<alepha1118.TString>>;
|
|
1032
1032
|
}>>;
|
|
1033
1033
|
}>;
|
|
1034
1034
|
type Role = Static<typeof roleSchema>;
|
|
1035
1035
|
//#endregion
|
|
1036
|
-
//#region
|
|
1036
|
+
//#region ../../../alepha/src/security/providers/JwtProvider.d.ts
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Provides utilities for working with JSON Web Tokens (JWT).
|
|
1039
1039
|
*/
|
|
@@ -1099,9 +1099,9 @@ interface JwtParseResult {
|
|
|
1099
1099
|
result: JWTVerifyResult<ExtendedJWTPayload>;
|
|
1100
1100
|
}
|
|
1101
1101
|
//#endregion
|
|
1102
|
-
//#region
|
|
1103
|
-
declare const envSchema$6:
|
|
1104
|
-
APP_SECRET:
|
|
1102
|
+
//#region ../../../alepha/src/security/providers/SecurityProvider.d.ts
|
|
1103
|
+
declare const envSchema$6: alepha1118.TObject<{
|
|
1104
|
+
APP_SECRET: alepha1118.TString;
|
|
1105
1105
|
}>;
|
|
1106
1106
|
declare module "alepha" {
|
|
1107
1107
|
interface Env extends Partial<Static<typeof envSchema$6>> {}
|
|
@@ -1125,7 +1125,7 @@ declare class SecurityProvider {
|
|
|
1125
1125
|
* The realms configured for the security provider.
|
|
1126
1126
|
*/
|
|
1127
1127
|
protected readonly realms: Realm[];
|
|
1128
|
-
protected start:
|
|
1128
|
+
protected start: alepha1118.HookPrimitive<"start">;
|
|
1129
1129
|
/**
|
|
1130
1130
|
* Adds a role to one or more realms.
|
|
1131
1131
|
*
|
|
@@ -1260,7 +1260,7 @@ interface SecurityCheckResult {
|
|
|
1260
1260
|
ownership: string | boolean | undefined;
|
|
1261
1261
|
}
|
|
1262
1262
|
//#endregion
|
|
1263
|
-
//#region
|
|
1263
|
+
//#region ../../../alepha/src/security/primitives/$realm.d.ts
|
|
1264
1264
|
type RealmPrimitiveOptions = {
|
|
1265
1265
|
/**
|
|
1266
1266
|
* Define the realm name.
|
|
@@ -1369,19 +1369,19 @@ interface AccessTokenResponse {
|
|
|
1369
1369
|
scope?: string;
|
|
1370
1370
|
}
|
|
1371
1371
|
//#endregion
|
|
1372
|
-
//#region
|
|
1372
|
+
//#region ../../../alepha/src/security/primitives/$serviceAccount.d.ts
|
|
1373
1373
|
interface ServiceAccountPrimitive {
|
|
1374
1374
|
token: () => Promise<string>;
|
|
1375
1375
|
}
|
|
1376
1376
|
//#endregion
|
|
1377
|
-
//#region
|
|
1377
|
+
//#region ../../../alepha/src/security/providers/CryptoProvider.d.ts
|
|
1378
1378
|
declare class CryptoProvider {
|
|
1379
1379
|
hashPassword(password: string): Promise<string>;
|
|
1380
1380
|
verifyPassword(password: string, stored: string): Promise<boolean>;
|
|
1381
1381
|
randomUUID(): string;
|
|
1382
1382
|
}
|
|
1383
1383
|
//#endregion
|
|
1384
|
-
//#region
|
|
1384
|
+
//#region ../../../alepha/src/security/index.d.ts
|
|
1385
1385
|
declare module "alepha" {
|
|
1386
1386
|
interface Hooks {
|
|
1387
1387
|
"security:user:created": {
|
|
@@ -1403,19 +1403,19 @@ declare module "alepha" {
|
|
|
1403
1403
|
* @module alepha.security
|
|
1404
1404
|
*/
|
|
1405
1405
|
//#endregion
|
|
1406
|
-
//#region
|
|
1406
|
+
//#region ../../../alepha/src/server-security/providers/ServerBasicAuthProvider.d.ts
|
|
1407
1407
|
interface BasicAuthOptions {
|
|
1408
1408
|
username: string;
|
|
1409
1409
|
password: string;
|
|
1410
1410
|
}
|
|
1411
1411
|
//#endregion
|
|
1412
|
-
//#region
|
|
1412
|
+
//#region ../../../alepha/src/server-security/providers/ServerSecurityProvider.d.ts
|
|
1413
1413
|
type ServerRouteSecure = {
|
|
1414
1414
|
realm?: string;
|
|
1415
1415
|
basic?: BasicAuthOptions;
|
|
1416
1416
|
};
|
|
1417
1417
|
//#endregion
|
|
1418
|
-
//#region
|
|
1418
|
+
//#region ../../../alepha/src/server-security/index.d.ts
|
|
1419
1419
|
declare module "alepha" {
|
|
1420
1420
|
interface State {
|
|
1421
1421
|
/**
|
|
@@ -1467,30 +1467,30 @@ declare module "alepha/server" {
|
|
|
1467
1467
|
* @module alepha.server.security
|
|
1468
1468
|
*/
|
|
1469
1469
|
//#endregion
|
|
1470
|
-
//#region
|
|
1471
|
-
declare const apiLinkSchema:
|
|
1472
|
-
name:
|
|
1473
|
-
group:
|
|
1474
|
-
path:
|
|
1475
|
-
method:
|
|
1476
|
-
requestBodyType:
|
|
1477
|
-
service:
|
|
1470
|
+
//#region ../../../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
1471
|
+
declare const apiLinkSchema: alepha1118.TObject<{
|
|
1472
|
+
name: alepha1118.TString;
|
|
1473
|
+
group: alepha1118.TOptional<alepha1118.TString>;
|
|
1474
|
+
path: alepha1118.TString;
|
|
1475
|
+
method: alepha1118.TOptional<alepha1118.TString>;
|
|
1476
|
+
requestBodyType: alepha1118.TOptional<alepha1118.TString>;
|
|
1477
|
+
service: alepha1118.TOptional<alepha1118.TString>;
|
|
1478
1478
|
}>;
|
|
1479
|
-
declare const apiLinksResponseSchema:
|
|
1480
|
-
prefix:
|
|
1481
|
-
links:
|
|
1482
|
-
name:
|
|
1483
|
-
group:
|
|
1484
|
-
path:
|
|
1485
|
-
method:
|
|
1486
|
-
requestBodyType:
|
|
1487
|
-
service:
|
|
1479
|
+
declare const apiLinksResponseSchema: alepha1118.TObject<{
|
|
1480
|
+
prefix: alepha1118.TOptional<alepha1118.TString>;
|
|
1481
|
+
links: alepha1118.TArray<alepha1118.TObject<{
|
|
1482
|
+
name: alepha1118.TString;
|
|
1483
|
+
group: alepha1118.TOptional<alepha1118.TString>;
|
|
1484
|
+
path: alepha1118.TString;
|
|
1485
|
+
method: alepha1118.TOptional<alepha1118.TString>;
|
|
1486
|
+
requestBodyType: alepha1118.TOptional<alepha1118.TString>;
|
|
1487
|
+
service: alepha1118.TOptional<alepha1118.TString>;
|
|
1488
1488
|
}>>;
|
|
1489
1489
|
}>;
|
|
1490
1490
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
1491
1491
|
type ApiLink = Static<typeof apiLinkSchema>;
|
|
1492
1492
|
//#endregion
|
|
1493
|
-
//#region
|
|
1493
|
+
//#region ../../../alepha/src/server-links/providers/LinkProvider.d.ts
|
|
1494
1494
|
/**
|
|
1495
1495
|
* Browser, SSR friendly, service to handle links.
|
|
1496
1496
|
*/
|
|
@@ -1557,7 +1557,7 @@ interface VirtualAction<T$1 extends RequestConfigSchema> extends Pick<ActionPrim
|
|
|
1557
1557
|
can: () => boolean;
|
|
1558
1558
|
}
|
|
1559
1559
|
//#endregion
|
|
1560
|
-
//#region
|
|
1560
|
+
//#region ../../../alepha/src/server-proxy/primitives/$proxy.d.ts
|
|
1561
1561
|
type ProxyPrimitiveOptions = {
|
|
1562
1562
|
/**
|
|
1563
1563
|
* Path pattern to match for proxying requests.
|
|
@@ -1675,18 +1675,18 @@ type ProxyPrimitiveOptions = {
|
|
|
1675
1675
|
rewrite?: (url: URL) => void;
|
|
1676
1676
|
};
|
|
1677
1677
|
//#endregion
|
|
1678
|
-
//#region
|
|
1678
|
+
//#region ../../../alepha/src/server-proxy/providers/ServerProxyProvider.d.ts
|
|
1679
1679
|
declare class ServerProxyProvider {
|
|
1680
1680
|
protected readonly log: Logger;
|
|
1681
1681
|
protected readonly routerProvider: ServerRouterProvider;
|
|
1682
1682
|
protected readonly alepha: Alepha;
|
|
1683
|
-
protected readonly configure:
|
|
1683
|
+
protected readonly configure: alepha1118.HookPrimitive<"configure">;
|
|
1684
1684
|
createProxy(options: ProxyPrimitiveOptions): void;
|
|
1685
1685
|
createProxyHandler(target: string, options: Omit<ProxyPrimitiveOptions, "path">): ServerHandler;
|
|
1686
1686
|
private getRawRequestBody;
|
|
1687
1687
|
}
|
|
1688
1688
|
//#endregion
|
|
1689
|
-
//#region
|
|
1689
|
+
//#region ../../../alepha/src/server-links/primitives/$remote.d.ts
|
|
1690
1690
|
interface RemotePrimitiveOptions {
|
|
1691
1691
|
/**
|
|
1692
1692
|
* The URL of the remote service.
|
|
@@ -1735,7 +1735,7 @@ declare class RemotePrimitive extends Primitive<RemotePrimitiveOptions> {
|
|
|
1735
1735
|
get name(): string;
|
|
1736
1736
|
}
|
|
1737
1737
|
//#endregion
|
|
1738
|
-
//#region
|
|
1738
|
+
//#region ../../../alepha/src/retry/providers/RetryProvider.d.ts
|
|
1739
1739
|
interface RetryOptions<T$1 extends (...args: any[]) => any> {
|
|
1740
1740
|
/**
|
|
1741
1741
|
* The function to retry.
|
|
@@ -1822,7 +1822,7 @@ declare class RetryProvider {
|
|
|
1822
1822
|
protected calculateBackoff(attempt: number, options?: number | RetryBackoffOptions): number;
|
|
1823
1823
|
}
|
|
1824
1824
|
//#endregion
|
|
1825
|
-
//#region
|
|
1825
|
+
//#region ../../../alepha/src/retry/primitives/$retry.d.ts
|
|
1826
1826
|
interface RetryPrimitiveOptions<T$1 extends (...args: any[]) => any> {
|
|
1827
1827
|
/**
|
|
1828
1828
|
* The function to retry.
|
|
@@ -1873,7 +1873,7 @@ interface RetryPrimitiveFn<T$1 extends (...args: any[]) => any> extends RetryPri
|
|
|
1873
1873
|
(...args: Parameters<T$1>): Promise<ReturnType<T$1>>;
|
|
1874
1874
|
}
|
|
1875
1875
|
//#endregion
|
|
1876
|
-
//#region
|
|
1876
|
+
//#region ../../../alepha/src/server-links/providers/RemotePrimitiveProvider.d.ts
|
|
1877
1877
|
declare class RemotePrimitiveProvider {
|
|
1878
1878
|
protected readonly env: {
|
|
1879
1879
|
SERVER_API_PREFIX: string;
|
|
@@ -1884,8 +1884,8 @@ declare class RemotePrimitiveProvider {
|
|
|
1884
1884
|
protected readonly remotes: Array<ServerRemote>;
|
|
1885
1885
|
protected readonly log: Logger;
|
|
1886
1886
|
getRemotes(): ServerRemote[];
|
|
1887
|
-
readonly configure:
|
|
1888
|
-
readonly start:
|
|
1887
|
+
readonly configure: alepha1118.HookPrimitive<"configure">;
|
|
1888
|
+
readonly start: alepha1118.HookPrimitive<"start">;
|
|
1889
1889
|
registerRemote(value: RemotePrimitive): Promise<void>;
|
|
1890
1890
|
protected readonly fetchLinks: RetryPrimitiveFn<(opts: FetchLinksOptions) => Promise<ApiLinksResponse>>;
|
|
1891
1891
|
}
|
|
@@ -1943,7 +1943,7 @@ interface ServerRemote {
|
|
|
1943
1943
|
prefix: string;
|
|
1944
1944
|
}
|
|
1945
1945
|
//#endregion
|
|
1946
|
-
//#region
|
|
1946
|
+
//#region ../../../alepha/src/server-links/providers/ServerLinksProvider.d.ts
|
|
1947
1947
|
declare class ServerLinksProvider {
|
|
1948
1948
|
protected readonly env: {
|
|
1949
1949
|
SERVER_API_PREFIX: string;
|
|
@@ -1953,22 +1953,22 @@ declare class ServerLinksProvider {
|
|
|
1953
1953
|
protected readonly remoteProvider: RemotePrimitiveProvider;
|
|
1954
1954
|
protected readonly serverTimingProvider: ServerTimingProvider;
|
|
1955
1955
|
get prefix(): string;
|
|
1956
|
-
readonly onRoute:
|
|
1956
|
+
readonly onRoute: alepha1118.HookPrimitive<"configure">;
|
|
1957
1957
|
/**
|
|
1958
1958
|
* First API - Get all API links for the user.
|
|
1959
1959
|
*
|
|
1960
1960
|
* This is based on the user's permissions.
|
|
1961
1961
|
*/
|
|
1962
1962
|
readonly links: RoutePrimitive<{
|
|
1963
|
-
response:
|
|
1964
|
-
prefix:
|
|
1965
|
-
links:
|
|
1966
|
-
name:
|
|
1967
|
-
group:
|
|
1968
|
-
path:
|
|
1969
|
-
method:
|
|
1970
|
-
requestBodyType:
|
|
1971
|
-
service:
|
|
1963
|
+
response: alepha1118.TObject<{
|
|
1964
|
+
prefix: alepha1118.TOptional<alepha1118.TString>;
|
|
1965
|
+
links: alepha1118.TArray<alepha1118.TObject<{
|
|
1966
|
+
name: alepha1118.TString;
|
|
1967
|
+
group: alepha1118.TOptional<alepha1118.TString>;
|
|
1968
|
+
path: alepha1118.TString;
|
|
1969
|
+
method: alepha1118.TOptional<alepha1118.TString>;
|
|
1970
|
+
requestBodyType: alepha1118.TOptional<alepha1118.TString>;
|
|
1971
|
+
service: alepha1118.TOptional<alepha1118.TString>;
|
|
1972
1972
|
}>>;
|
|
1973
1973
|
}>;
|
|
1974
1974
|
}>;
|
|
@@ -1979,10 +1979,10 @@ declare class ServerLinksProvider {
|
|
|
1979
1979
|
* I mean for 150+ links, you got 50ms of serialization time.
|
|
1980
1980
|
*/
|
|
1981
1981
|
readonly schema: RoutePrimitive<{
|
|
1982
|
-
params:
|
|
1983
|
-
name:
|
|
1982
|
+
params: alepha1118.TObject<{
|
|
1983
|
+
name: alepha1118.TString;
|
|
1984
1984
|
}>;
|
|
1985
|
-
response:
|
|
1985
|
+
response: alepha1118.TRecord<string, alepha1118.TAny>;
|
|
1986
1986
|
}>;
|
|
1987
1987
|
getSchemaByName(name: string, options?: GetApiLinksOptions): Promise<RequestConfigSchema>;
|
|
1988
1988
|
/**
|
|
@@ -1996,7 +1996,7 @@ interface GetApiLinksOptions {
|
|
|
1996
1996
|
authorization?: string;
|
|
1997
1997
|
}
|
|
1998
1998
|
//#endregion
|
|
1999
|
-
//#region
|
|
1999
|
+
//#region ../../../alepha/src/server-links/index.d.ts
|
|
2000
2000
|
declare module "alepha" {
|
|
2001
2001
|
interface State {
|
|
2002
2002
|
/**
|
|
@@ -2020,7 +2020,7 @@ declare module "alepha" {
|
|
|
2020
2020
|
* @module alepha.server.links
|
|
2021
2021
|
*/
|
|
2022
2022
|
//#endregion
|
|
2023
|
-
//#region
|
|
2023
|
+
//#region ../../../alepha/src/server-cache/providers/ServerCacheProvider.d.ts
|
|
2024
2024
|
declare module "alepha/server" {
|
|
2025
2025
|
interface ServerRoute {
|
|
2026
2026
|
/**
|
|
@@ -2117,13 +2117,13 @@ boolean
|
|
|
2117
2117
|
};
|
|
2118
2118
|
};
|
|
2119
2119
|
//#endregion
|
|
2120
|
-
//#region
|
|
2120
|
+
//#region ../../../react/src/core/components/ClientOnly.d.ts
|
|
2121
2121
|
interface ClientOnlyProps {
|
|
2122
2122
|
fallback?: ReactNode;
|
|
2123
2123
|
disabled?: boolean;
|
|
2124
2124
|
}
|
|
2125
2125
|
//#endregion
|
|
2126
|
-
//#region
|
|
2126
|
+
//#region ../../../react/src/core/errors/Redirection.d.ts
|
|
2127
2127
|
/**
|
|
2128
2128
|
* Used for Redirection during the page loading.
|
|
2129
2129
|
*
|
|
@@ -2134,9 +2134,9 @@ declare class Redirection extends Error {
|
|
|
2134
2134
|
constructor(redirect: string);
|
|
2135
2135
|
}
|
|
2136
2136
|
//#endregion
|
|
2137
|
-
//#region
|
|
2138
|
-
declare const envSchema$5:
|
|
2139
|
-
REACT_STRICT_MODE:
|
|
2137
|
+
//#region ../../../react/src/core/providers/ReactPageProvider.d.ts
|
|
2138
|
+
declare const envSchema$5: alepha1118.TObject<{
|
|
2139
|
+
REACT_STRICT_MODE: alepha1118.TBoolean;
|
|
2140
2140
|
}>;
|
|
2141
2141
|
declare module "alepha" {
|
|
2142
2142
|
interface Env extends Partial<Static<typeof envSchema$5>> {}
|
|
@@ -2195,7 +2195,7 @@ interface ReactRouterState {
|
|
|
2195
2195
|
name?: string;
|
|
2196
2196
|
}
|
|
2197
2197
|
//#endregion
|
|
2198
|
-
//#region
|
|
2198
|
+
//#region ../../../react/src/core/services/ReactPageService.d.ts
|
|
2199
2199
|
declare class ReactPageService {
|
|
2200
2200
|
fetch(pathname: string, options?: PagePrimitiveRenderOptions): Promise<{
|
|
2201
2201
|
html: string;
|
|
@@ -2204,7 +2204,7 @@ declare class ReactPageService {
|
|
|
2204
2204
|
render(name: string, options?: PagePrimitiveRenderOptions): Promise<PagePrimitiveRenderResult>;
|
|
2205
2205
|
}
|
|
2206
2206
|
//#endregion
|
|
2207
|
-
//#region
|
|
2207
|
+
//#region ../../../react/src/core/primitives/$page.d.ts
|
|
2208
2208
|
interface PagePrimitiveOptions<TConfig extends PageConfigSchema = PageConfigSchema, TProps extends object = TPropsDefault, TPropsParent extends object = TPropsParentDefault> {
|
|
2209
2209
|
/**
|
|
2210
2210
|
* Identifier name for the page. Must be unique.
|
|
@@ -2433,9 +2433,9 @@ type CssAnimation = {
|
|
|
2433
2433
|
timing?: string;
|
|
2434
2434
|
};
|
|
2435
2435
|
//#endregion
|
|
2436
|
-
//#region
|
|
2437
|
-
declare const envSchema$4:
|
|
2438
|
-
REACT_ROOT_ID:
|
|
2436
|
+
//#region ../../../react/src/core/providers/ReactBrowserProvider.d.ts
|
|
2437
|
+
declare const envSchema$4: alepha1118.TObject<{
|
|
2438
|
+
REACT_ROOT_ID: alepha1118.TString;
|
|
2439
2439
|
}>;
|
|
2440
2440
|
declare module "alepha" {
|
|
2441
2441
|
interface Env extends Partial<Static<typeof envSchema$4>> {}
|
|
@@ -2443,8 +2443,8 @@ declare module "alepha" {
|
|
|
2443
2443
|
/**
|
|
2444
2444
|
* React browser renderer configuration atom
|
|
2445
2445
|
*/
|
|
2446
|
-
declare const reactBrowserOptions:
|
|
2447
|
-
scrollRestoration:
|
|
2446
|
+
declare const reactBrowserOptions: alepha1118.Atom<alepha1118.TObject<{
|
|
2447
|
+
scrollRestoration: alepha1118.TUnsafe<"top" | "manual">;
|
|
2448
2448
|
}>, "alepha.react.browser.options">;
|
|
2449
2449
|
type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
|
|
2450
2450
|
declare module "alepha" {
|
|
@@ -2458,7 +2458,7 @@ type ReactHydrationState = {
|
|
|
2458
2458
|
[key: string]: any;
|
|
2459
2459
|
};
|
|
2460
2460
|
//#endregion
|
|
2461
|
-
//#region
|
|
2461
|
+
//#region ../../../react/src/head/interfaces/Head.d.ts
|
|
2462
2462
|
interface Head extends SimpleHead {
|
|
2463
2463
|
description?: string;
|
|
2464
2464
|
keywords?: string[];
|
|
@@ -2503,7 +2503,7 @@ interface SimpleHead {
|
|
|
2503
2503
|
}>;
|
|
2504
2504
|
}
|
|
2505
2505
|
//#endregion
|
|
2506
|
-
//#region
|
|
2506
|
+
//#region ../../../react/src/head/index.d.ts
|
|
2507
2507
|
declare module "@alepha/react" {
|
|
2508
2508
|
interface PagePrimitiveOptions<TConfig extends PageConfigSchema = PageConfigSchema, TProps extends object = TPropsDefault, TPropsParent extends object = TPropsParentDefault> {
|
|
2509
2509
|
head?: Head | ((props: TProps, previous?: Head) => Head);
|
|
@@ -2519,7 +2519,7 @@ declare module "@alepha/react" {
|
|
|
2519
2519
|
* @module alepha.react.head
|
|
2520
2520
|
*/
|
|
2521
2521
|
//#endregion
|
|
2522
|
-
//#region
|
|
2522
|
+
//#region ../../../alepha/src/file/providers/FileSystemProvider.d.ts
|
|
2523
2523
|
/**
|
|
2524
2524
|
* Options for creating a file from a URL
|
|
2525
2525
|
*/
|
|
@@ -2788,7 +2788,7 @@ declare abstract class FileSystemProvider {
|
|
|
2788
2788
|
abstract writeFile(path: string, data: Uint8Array | Buffer | string | FileLike): Promise<void>;
|
|
2789
2789
|
}
|
|
2790
2790
|
//#endregion
|
|
2791
|
-
//#region
|
|
2791
|
+
//#region ../../../alepha/src/file/services/FileDetector.d.ts
|
|
2792
2792
|
interface FileTypeResult {
|
|
2793
2793
|
/**
|
|
2794
2794
|
* The detected MIME type
|
|
@@ -2915,11 +2915,11 @@ declare class FileDetector {
|
|
|
2915
2915
|
protected matchesSignature(buffer: Buffer, signature: (number | null)[]): boolean;
|
|
2916
2916
|
}
|
|
2917
2917
|
//#endregion
|
|
2918
|
-
//#region
|
|
2919
|
-
declare const envSchema$3:
|
|
2920
|
-
REACT_SSR_ENABLED:
|
|
2921
|
-
REACT_ROOT_ID:
|
|
2922
|
-
REACT_SERVER_TEMPLATE:
|
|
2918
|
+
//#region ../../../react/src/core/providers/ReactServerProvider.d.ts
|
|
2919
|
+
declare const envSchema$3: alepha1118.TObject<{
|
|
2920
|
+
REACT_SSR_ENABLED: alepha1118.TOptional<alepha1118.TBoolean>;
|
|
2921
|
+
REACT_ROOT_ID: alepha1118.TString;
|
|
2922
|
+
REACT_SERVER_TEMPLATE: alepha1118.TOptional<alepha1118.TString>;
|
|
2923
2923
|
}>;
|
|
2924
2924
|
declare module "alepha" {
|
|
2925
2925
|
interface Env extends Partial<Static<typeof envSchema$3>> {}
|
|
@@ -2930,11 +2930,11 @@ declare module "alepha" {
|
|
|
2930
2930
|
/**
|
|
2931
2931
|
* React server provider configuration atom
|
|
2932
2932
|
*/
|
|
2933
|
-
declare const reactServerOptions:
|
|
2934
|
-
publicDir:
|
|
2935
|
-
staticServer:
|
|
2936
|
-
disabled:
|
|
2937
|
-
path:
|
|
2933
|
+
declare const reactServerOptions: alepha1118.Atom<alepha1118.TObject<{
|
|
2934
|
+
publicDir: alepha1118.TString;
|
|
2935
|
+
staticServer: alepha1118.TObject<{
|
|
2936
|
+
disabled: alepha1118.TBoolean;
|
|
2937
|
+
path: alepha1118.TString;
|
|
2938
2938
|
}>;
|
|
2939
2939
|
}>, "alepha.react.server.options">;
|
|
2940
2940
|
type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
|
|
@@ -2944,7 +2944,7 @@ declare module "alepha" {
|
|
|
2944
2944
|
}
|
|
2945
2945
|
}
|
|
2946
2946
|
//#endregion
|
|
2947
|
-
//#region
|
|
2947
|
+
//#region ../../../react/src/core/index.d.ts
|
|
2948
2948
|
declare module "alepha" {
|
|
2949
2949
|
interface State {
|
|
2950
2950
|
"alepha.react.router.state"?: ReactRouterState;
|
|
@@ -3047,35 +3047,35 @@ declare module "alepha" {
|
|
|
3047
3047
|
* @module alepha.react
|
|
3048
3048
|
*/
|
|
3049
3049
|
//#endregion
|
|
3050
|
-
//#region
|
|
3051
|
-
declare const authenticationProviderSchema:
|
|
3052
|
-
name:
|
|
3053
|
-
type:
|
|
3050
|
+
//#region ../../../alepha/src/server-auth/schemas/authenticationProviderSchema.d.ts
|
|
3051
|
+
declare const authenticationProviderSchema: alepha1118.TObject<{
|
|
3052
|
+
name: alepha1118.TString;
|
|
3053
|
+
type: alepha1118.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
3054
3054
|
}>;
|
|
3055
3055
|
type AuthenticationProvider = Static<typeof authenticationProviderSchema>;
|
|
3056
3056
|
//#endregion
|
|
3057
|
-
//#region
|
|
3058
|
-
declare const tokensSchema:
|
|
3059
|
-
provider:
|
|
3060
|
-
access_token:
|
|
3061
|
-
issued_at:
|
|
3062
|
-
expires_in:
|
|
3063
|
-
refresh_token:
|
|
3064
|
-
refresh_token_expires_in:
|
|
3065
|
-
refresh_expires_in:
|
|
3066
|
-
id_token:
|
|
3067
|
-
scope:
|
|
3057
|
+
//#region ../../../alepha/src/server-auth/schemas/tokensSchema.d.ts
|
|
3058
|
+
declare const tokensSchema: alepha1118.TObject<{
|
|
3059
|
+
provider: alepha1118.TString;
|
|
3060
|
+
access_token: alepha1118.TString;
|
|
3061
|
+
issued_at: alepha1118.TNumber;
|
|
3062
|
+
expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3063
|
+
refresh_token: alepha1118.TOptional<alepha1118.TString>;
|
|
3064
|
+
refresh_token_expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3065
|
+
refresh_expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3066
|
+
id_token: alepha1118.TOptional<alepha1118.TString>;
|
|
3067
|
+
scope: alepha1118.TOptional<alepha1118.TString>;
|
|
3068
3068
|
}>;
|
|
3069
3069
|
type Tokens = Static<typeof tokensSchema>;
|
|
3070
3070
|
//#endregion
|
|
3071
|
-
//#region
|
|
3071
|
+
//#region ../../../alepha/src/server-cookies/services/CookieParser.d.ts
|
|
3072
3072
|
declare class CookieParser {
|
|
3073
3073
|
parseRequestCookies(header: string): Record<string, string>;
|
|
3074
3074
|
serializeResponseCookies(cookies: Record<string, Cookie | null>, isHttps: boolean): string[];
|
|
3075
3075
|
cookieToString(name: string, cookie: Cookie, isHttps?: boolean): string;
|
|
3076
3076
|
}
|
|
3077
3077
|
//#endregion
|
|
3078
|
-
//#region
|
|
3078
|
+
//#region ../../../alepha/src/server-cookies/providers/ServerCookiesProvider.d.ts
|
|
3079
3079
|
declare class ServerCookiesProvider {
|
|
3080
3080
|
protected readonly alepha: Alepha;
|
|
3081
3081
|
protected readonly log: Logger;
|
|
@@ -3088,9 +3088,9 @@ declare class ServerCookiesProvider {
|
|
|
3088
3088
|
protected readonly IV_LENGTH = 16;
|
|
3089
3089
|
protected readonly AUTH_TAG_LENGTH = 16;
|
|
3090
3090
|
protected readonly SIGNATURE_LENGTH = 32;
|
|
3091
|
-
readonly onRequest:
|
|
3092
|
-
readonly onAction:
|
|
3093
|
-
readonly onSend:
|
|
3091
|
+
readonly onRequest: alepha1118.HookPrimitive<"server:onRequest">;
|
|
3092
|
+
readonly onAction: alepha1118.HookPrimitive<"action:onRequest">;
|
|
3093
|
+
readonly onSend: alepha1118.HookPrimitive<"server:onSend">;
|
|
3094
3094
|
protected getCookiesFromContext(cookies?: Cookies): Cookies;
|
|
3095
3095
|
getCookie<T$1 extends TSchema>(name: string, options: CookiePrimitiveOptions<T$1>, contextCookies?: Cookies): Static<T$1> | undefined;
|
|
3096
3096
|
setCookie<T$1 extends TSchema>(name: string, options: CookiePrimitiveOptions<T$1>, data: Static<T$1>, contextCookies?: Cookies): void;
|
|
@@ -3101,7 +3101,7 @@ declare class ServerCookiesProvider {
|
|
|
3101
3101
|
protected sign(data: string): string;
|
|
3102
3102
|
}
|
|
3103
3103
|
//#endregion
|
|
3104
|
-
//#region
|
|
3104
|
+
//#region ../../../alepha/src/server-cookies/primitives/$cookie.d.ts
|
|
3105
3105
|
interface CookiePrimitiveOptions<T$1 extends TSchema> {
|
|
3106
3106
|
/** The schema for the cookie's value, used for validation and type safety. */
|
|
3107
3107
|
schema: T$1;
|
|
@@ -3154,7 +3154,7 @@ interface Cookie {
|
|
|
3154
3154
|
domain?: string;
|
|
3155
3155
|
}
|
|
3156
3156
|
//#endregion
|
|
3157
|
-
//#region
|
|
3157
|
+
//#region ../../../alepha/src/server-cookies/index.d.ts
|
|
3158
3158
|
declare module "alepha/server" {
|
|
3159
3159
|
interface ServerRequest {
|
|
3160
3160
|
cookies: Cookies;
|
|
@@ -3171,41 +3171,41 @@ declare module "alepha/server" {
|
|
|
3171
3171
|
* @module alepha.server.cookies
|
|
3172
3172
|
*/
|
|
3173
3173
|
//#endregion
|
|
3174
|
-
//#region
|
|
3174
|
+
//#region ../../../alepha/src/server-auth/providers/ServerAuthProvider.d.ts
|
|
3175
3175
|
declare class ServerAuthProvider {
|
|
3176
3176
|
protected readonly log: Logger;
|
|
3177
3177
|
protected readonly alepha: Alepha;
|
|
3178
3178
|
protected readonly serverCookiesProvider: ServerCookiesProvider;
|
|
3179
3179
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
3180
3180
|
protected readonly serverLinksProvider: ServerLinksProvider;
|
|
3181
|
-
protected readonly authorizationCode: AbstractCookiePrimitive<
|
|
3182
|
-
provider:
|
|
3183
|
-
codeVerifier:
|
|
3184
|
-
redirectUri:
|
|
3185
|
-
state:
|
|
3186
|
-
nonce:
|
|
3181
|
+
protected readonly authorizationCode: AbstractCookiePrimitive<alepha1118.TObject<{
|
|
3182
|
+
provider: alepha1118.TString;
|
|
3183
|
+
codeVerifier: alepha1118.TOptional<alepha1118.TString>;
|
|
3184
|
+
redirectUri: alepha1118.TOptional<alepha1118.TString>;
|
|
3185
|
+
state: alepha1118.TOptional<alepha1118.TString>;
|
|
3186
|
+
nonce: alepha1118.TOptional<alepha1118.TString>;
|
|
3187
3187
|
}>>;
|
|
3188
|
-
readonly tokens: AbstractCookiePrimitive<
|
|
3189
|
-
provider:
|
|
3190
|
-
access_token:
|
|
3191
|
-
issued_at:
|
|
3192
|
-
expires_in:
|
|
3193
|
-
refresh_token:
|
|
3194
|
-
refresh_token_expires_in:
|
|
3195
|
-
refresh_expires_in:
|
|
3196
|
-
id_token:
|
|
3197
|
-
scope:
|
|
3188
|
+
readonly tokens: AbstractCookiePrimitive<alepha1118.TObject<{
|
|
3189
|
+
provider: alepha1118.TString;
|
|
3190
|
+
access_token: alepha1118.TString;
|
|
3191
|
+
issued_at: alepha1118.TNumber;
|
|
3192
|
+
expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3193
|
+
refresh_token: alepha1118.TOptional<alepha1118.TString>;
|
|
3194
|
+
refresh_token_expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3195
|
+
refresh_expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3196
|
+
id_token: alepha1118.TOptional<alepha1118.TString>;
|
|
3197
|
+
scope: alepha1118.TOptional<alepha1118.TString>;
|
|
3198
3198
|
}>>;
|
|
3199
3199
|
get identities(): Array<AuthPrimitive>;
|
|
3200
3200
|
getAuthenticationProviders(filters?: {
|
|
3201
3201
|
realmName?: string;
|
|
3202
3202
|
}): AuthenticationProvider[];
|
|
3203
|
-
protected readonly configure:
|
|
3203
|
+
protected readonly configure: alepha1118.HookPrimitive<"configure">;
|
|
3204
3204
|
protected getAccessTokens(tokens: Tokens): string | undefined;
|
|
3205
3205
|
/**
|
|
3206
3206
|
* Fill request headers with access token from cookies or fallback to provider's fallback function.
|
|
3207
3207
|
*/
|
|
3208
|
-
protected readonly onRequest:
|
|
3208
|
+
protected readonly onRequest: alepha1118.HookPrimitive<"server:onRequest">;
|
|
3209
3209
|
/**
|
|
3210
3210
|
* Convert cookies to tokens.
|
|
3211
3211
|
* If the tokens are expired, try to refresh them using the refresh token.
|
|
@@ -3216,26 +3216,26 @@ declare class ServerAuthProvider {
|
|
|
3216
3216
|
* Get user information.
|
|
3217
3217
|
*/
|
|
3218
3218
|
readonly userinfo: RoutePrimitive<{
|
|
3219
|
-
response:
|
|
3220
|
-
user:
|
|
3221
|
-
id:
|
|
3222
|
-
name:
|
|
3223
|
-
email:
|
|
3224
|
-
username:
|
|
3225
|
-
picture:
|
|
3226
|
-
sessionId:
|
|
3227
|
-
organizations:
|
|
3228
|
-
roles:
|
|
3219
|
+
response: alepha1118.TObject<{
|
|
3220
|
+
user: alepha1118.TOptional<alepha1118.TObject<{
|
|
3221
|
+
id: alepha1118.TString;
|
|
3222
|
+
name: alepha1118.TOptional<alepha1118.TString>;
|
|
3223
|
+
email: alepha1118.TOptional<alepha1118.TString>;
|
|
3224
|
+
username: alepha1118.TOptional<alepha1118.TString>;
|
|
3225
|
+
picture: alepha1118.TOptional<alepha1118.TString>;
|
|
3226
|
+
sessionId: alepha1118.TOptional<alepha1118.TString>;
|
|
3227
|
+
organizations: alepha1118.TOptional<alepha1118.TArray<alepha1118.TString>>;
|
|
3228
|
+
roles: alepha1118.TOptional<alepha1118.TArray<alepha1118.TString>>;
|
|
3229
3229
|
}>>;
|
|
3230
|
-
api:
|
|
3231
|
-
prefix:
|
|
3232
|
-
links:
|
|
3233
|
-
name:
|
|
3234
|
-
group:
|
|
3235
|
-
path:
|
|
3236
|
-
method:
|
|
3237
|
-
requestBodyType:
|
|
3238
|
-
service:
|
|
3230
|
+
api: alepha1118.TObject<{
|
|
3231
|
+
prefix: alepha1118.TOptional<alepha1118.TString>;
|
|
3232
|
+
links: alepha1118.TArray<alepha1118.TObject<{
|
|
3233
|
+
name: alepha1118.TString;
|
|
3234
|
+
group: alepha1118.TOptional<alepha1118.TString>;
|
|
3235
|
+
path: alepha1118.TString;
|
|
3236
|
+
method: alepha1118.TOptional<alepha1118.TString>;
|
|
3237
|
+
requestBodyType: alepha1118.TOptional<alepha1118.TString>;
|
|
3238
|
+
service: alepha1118.TOptional<alepha1118.TString>;
|
|
3239
3239
|
}>>;
|
|
3240
3240
|
}>;
|
|
3241
3241
|
}>;
|
|
@@ -3244,65 +3244,65 @@ declare class ServerAuthProvider {
|
|
|
3244
3244
|
* Refresh a token for internal providers.
|
|
3245
3245
|
*/
|
|
3246
3246
|
readonly refresh: RoutePrimitive<{
|
|
3247
|
-
query:
|
|
3248
|
-
provider:
|
|
3247
|
+
query: alepha1118.TObject<{
|
|
3248
|
+
provider: alepha1118.TString;
|
|
3249
3249
|
}>;
|
|
3250
|
-
body:
|
|
3251
|
-
refresh_token:
|
|
3252
|
-
access_token:
|
|
3250
|
+
body: alepha1118.TObject<{
|
|
3251
|
+
refresh_token: alepha1118.TString;
|
|
3252
|
+
access_token: alepha1118.TOptional<alepha1118.TString>;
|
|
3253
3253
|
}>;
|
|
3254
|
-
response:
|
|
3255
|
-
provider:
|
|
3256
|
-
access_token:
|
|
3257
|
-
issued_at:
|
|
3258
|
-
expires_in:
|
|
3259
|
-
refresh_token:
|
|
3260
|
-
refresh_token_expires_in:
|
|
3261
|
-
refresh_expires_in:
|
|
3262
|
-
id_token:
|
|
3263
|
-
scope:
|
|
3254
|
+
response: alepha1118.TObject<{
|
|
3255
|
+
provider: alepha1118.TString;
|
|
3256
|
+
access_token: alepha1118.TString;
|
|
3257
|
+
issued_at: alepha1118.TNumber;
|
|
3258
|
+
expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3259
|
+
refresh_token: alepha1118.TOptional<alepha1118.TString>;
|
|
3260
|
+
refresh_token_expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3261
|
+
refresh_expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3262
|
+
id_token: alepha1118.TOptional<alepha1118.TString>;
|
|
3263
|
+
scope: alepha1118.TOptional<alepha1118.TString>;
|
|
3264
3264
|
}>;
|
|
3265
3265
|
}>;
|
|
3266
3266
|
/**
|
|
3267
3267
|
* Login for local password-based authentication.
|
|
3268
3268
|
*/
|
|
3269
3269
|
readonly token: RoutePrimitive<{
|
|
3270
|
-
query:
|
|
3271
|
-
provider:
|
|
3270
|
+
query: alepha1118.TObject<{
|
|
3271
|
+
provider: alepha1118.TString;
|
|
3272
3272
|
}>;
|
|
3273
|
-
body:
|
|
3274
|
-
username:
|
|
3275
|
-
password:
|
|
3273
|
+
body: alepha1118.TObject<{
|
|
3274
|
+
username: alepha1118.TString;
|
|
3275
|
+
password: alepha1118.TString;
|
|
3276
3276
|
}>;
|
|
3277
|
-
response:
|
|
3278
|
-
provider:
|
|
3279
|
-
access_token:
|
|
3280
|
-
issued_at:
|
|
3281
|
-
expires_in:
|
|
3282
|
-
refresh_token:
|
|
3283
|
-
refresh_token_expires_in:
|
|
3284
|
-
refresh_expires_in:
|
|
3285
|
-
id_token:
|
|
3286
|
-
scope:
|
|
3287
|
-
user:
|
|
3288
|
-
id:
|
|
3289
|
-
name:
|
|
3290
|
-
email:
|
|
3291
|
-
username:
|
|
3292
|
-
picture:
|
|
3293
|
-
sessionId:
|
|
3294
|
-
organizations:
|
|
3295
|
-
roles:
|
|
3277
|
+
response: alepha1118.TObject<{
|
|
3278
|
+
provider: alepha1118.TString;
|
|
3279
|
+
access_token: alepha1118.TString;
|
|
3280
|
+
issued_at: alepha1118.TNumber;
|
|
3281
|
+
expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3282
|
+
refresh_token: alepha1118.TOptional<alepha1118.TString>;
|
|
3283
|
+
refresh_token_expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3284
|
+
refresh_expires_in: alepha1118.TOptional<alepha1118.TNumber>;
|
|
3285
|
+
id_token: alepha1118.TOptional<alepha1118.TString>;
|
|
3286
|
+
scope: alepha1118.TOptional<alepha1118.TString>;
|
|
3287
|
+
user: alepha1118.TObject<{
|
|
3288
|
+
id: alepha1118.TString;
|
|
3289
|
+
name: alepha1118.TOptional<alepha1118.TString>;
|
|
3290
|
+
email: alepha1118.TOptional<alepha1118.TString>;
|
|
3291
|
+
username: alepha1118.TOptional<alepha1118.TString>;
|
|
3292
|
+
picture: alepha1118.TOptional<alepha1118.TString>;
|
|
3293
|
+
sessionId: alepha1118.TOptional<alepha1118.TString>;
|
|
3294
|
+
organizations: alepha1118.TOptional<alepha1118.TArray<alepha1118.TString>>;
|
|
3295
|
+
roles: alepha1118.TOptional<alepha1118.TArray<alepha1118.TString>>;
|
|
3296
3296
|
}>;
|
|
3297
|
-
api:
|
|
3298
|
-
prefix:
|
|
3299
|
-
links:
|
|
3300
|
-
name:
|
|
3301
|
-
group:
|
|
3302
|
-
path:
|
|
3303
|
-
method:
|
|
3304
|
-
requestBodyType:
|
|
3305
|
-
service:
|
|
3297
|
+
api: alepha1118.TObject<{
|
|
3298
|
+
prefix: alepha1118.TOptional<alepha1118.TString>;
|
|
3299
|
+
links: alepha1118.TArray<alepha1118.TObject<{
|
|
3300
|
+
name: alepha1118.TString;
|
|
3301
|
+
group: alepha1118.TOptional<alepha1118.TString>;
|
|
3302
|
+
path: alepha1118.TString;
|
|
3303
|
+
method: alepha1118.TOptional<alepha1118.TString>;
|
|
3304
|
+
requestBodyType: alepha1118.TOptional<alepha1118.TString>;
|
|
3305
|
+
service: alepha1118.TOptional<alepha1118.TString>;
|
|
3306
3306
|
}>>;
|
|
3307
3307
|
}>;
|
|
3308
3308
|
}>;
|
|
@@ -3311,9 +3311,9 @@ declare class ServerAuthProvider {
|
|
|
3311
3311
|
* Oauth2/OIDC login route.
|
|
3312
3312
|
*/
|
|
3313
3313
|
readonly login: RoutePrimitive<{
|
|
3314
|
-
query:
|
|
3315
|
-
provider:
|
|
3316
|
-
redirect_uri:
|
|
3314
|
+
query: alepha1118.TObject<{
|
|
3315
|
+
provider: alepha1118.TString;
|
|
3316
|
+
redirect_uri: alepha1118.TOptional<alepha1118.TString>;
|
|
3317
3317
|
}>;
|
|
3318
3318
|
}>;
|
|
3319
3319
|
/**
|
|
@@ -3325,8 +3325,8 @@ declare class ServerAuthProvider {
|
|
|
3325
3325
|
* Logout route for OAuth2/OIDC providers.
|
|
3326
3326
|
*/
|
|
3327
3327
|
readonly logout: RoutePrimitive<{
|
|
3328
|
-
query:
|
|
3329
|
-
post_logout_redirect_uri:
|
|
3328
|
+
query: alepha1118.TObject<{
|
|
3329
|
+
post_logout_redirect_uri: alepha1118.TOptional<alepha1118.TString>;
|
|
3330
3330
|
}>;
|
|
3331
3331
|
}>;
|
|
3332
3332
|
protected provider(opts: string | {
|
|
@@ -3365,7 +3365,7 @@ interface OAuth2Profile {
|
|
|
3365
3365
|
[key: string]: unknown;
|
|
3366
3366
|
}
|
|
3367
3367
|
//#endregion
|
|
3368
|
-
//#region
|
|
3368
|
+
//#region ../../../alepha/src/server-auth/primitives/$auth.d.ts
|
|
3369
3369
|
type AuthPrimitiveOptions = {
|
|
3370
3370
|
/**
|
|
3371
3371
|
* Name of the identity provider.
|
|
@@ -3545,7 +3545,7 @@ type AccessToken = string | {
|
|
|
3545
3545
|
token: () => Async<string>;
|
|
3546
3546
|
};
|
|
3547
3547
|
//#endregion
|
|
3548
|
-
//#region
|
|
3548
|
+
//#region ../../../alepha/src/server-auth/index.d.ts
|
|
3549
3549
|
declare module "alepha" {
|
|
3550
3550
|
interface State {
|
|
3551
3551
|
/**
|
|
@@ -3570,7 +3570,7 @@ declare module "alepha" {
|
|
|
3570
3570
|
* @module alepha.server.auth
|
|
3571
3571
|
*/
|
|
3572
3572
|
//#endregion
|
|
3573
|
-
//#region
|
|
3573
|
+
//#region ../../../react/src/auth/services/ReactAuth.d.ts
|
|
3574
3574
|
/**
|
|
3575
3575
|
* Browser, SSR friendly, service to handle authentication.
|
|
3576
3576
|
*/
|
|
@@ -3579,8 +3579,8 @@ declare class ReactAuth {
|
|
|
3579
3579
|
protected readonly alepha: Alepha;
|
|
3580
3580
|
protected readonly httpClient: HttpClient;
|
|
3581
3581
|
protected readonly linkProvider: LinkProvider;
|
|
3582
|
-
protected readonly onBeginTransition:
|
|
3583
|
-
protected readonly onFetchRequest:
|
|
3582
|
+
protected readonly onBeginTransition: alepha1118.HookPrimitive<"react:transition:begin">;
|
|
3583
|
+
protected readonly onFetchRequest: alepha1118.HookPrimitive<"client:onRequest">;
|
|
3584
3584
|
/**
|
|
3585
3585
|
* Get the current authenticated user.
|
|
3586
3586
|
*
|
|
@@ -3608,7 +3608,7 @@ declare class ReactAuth {
|
|
|
3608
3608
|
logout(): void;
|
|
3609
3609
|
}
|
|
3610
3610
|
//#endregion
|
|
3611
|
-
//#region
|
|
3611
|
+
//#region ../../../react/src/auth/index.d.ts
|
|
3612
3612
|
declare module "@alepha/react" {
|
|
3613
3613
|
interface ReactRouterState {
|
|
3614
3614
|
user?: UserAccount;
|
|
@@ -3621,31 +3621,31 @@ declare module "@alepha/react" {
|
|
|
3621
3621
|
* @module alepha.react.auth
|
|
3622
3622
|
*/
|
|
3623
3623
|
//#endregion
|
|
3624
|
-
//#region
|
|
3625
|
-
declare const realmAuthSettingsAtom:
|
|
3626
|
-
registrationAllowed:
|
|
3627
|
-
emailEnabled:
|
|
3628
|
-
emailRequired:
|
|
3629
|
-
usernameEnabled:
|
|
3630
|
-
usernameRequired:
|
|
3631
|
-
phoneEnabled:
|
|
3632
|
-
phoneRequired:
|
|
3633
|
-
verifyEmailRequired:
|
|
3634
|
-
verifyPhoneRequired:
|
|
3635
|
-
firstNameLastNameEnabled:
|
|
3636
|
-
firstNameLastNameRequired:
|
|
3637
|
-
resetPasswordAllowed:
|
|
3638
|
-
passwordPolicy:
|
|
3639
|
-
minLength:
|
|
3640
|
-
requireUppercase:
|
|
3641
|
-
requireLowercase:
|
|
3642
|
-
requireNumbers:
|
|
3643
|
-
requireSpecialCharacters:
|
|
3624
|
+
//#region ../../../alepha/src/api-users/atoms/realmAuthSettingsAtom.d.ts
|
|
3625
|
+
declare const realmAuthSettingsAtom: alepha1118.Atom<alepha1118.TObject<{
|
|
3626
|
+
registrationAllowed: alepha1118.TBoolean;
|
|
3627
|
+
emailEnabled: alepha1118.TBoolean;
|
|
3628
|
+
emailRequired: alepha1118.TBoolean;
|
|
3629
|
+
usernameEnabled: alepha1118.TBoolean;
|
|
3630
|
+
usernameRequired: alepha1118.TBoolean;
|
|
3631
|
+
phoneEnabled: alepha1118.TBoolean;
|
|
3632
|
+
phoneRequired: alepha1118.TBoolean;
|
|
3633
|
+
verifyEmailRequired: alepha1118.TBoolean;
|
|
3634
|
+
verifyPhoneRequired: alepha1118.TBoolean;
|
|
3635
|
+
firstNameLastNameEnabled: alepha1118.TBoolean;
|
|
3636
|
+
firstNameLastNameRequired: alepha1118.TBoolean;
|
|
3637
|
+
resetPasswordAllowed: alepha1118.TBoolean;
|
|
3638
|
+
passwordPolicy: alepha1118.TObject<{
|
|
3639
|
+
minLength: alepha1118.TInteger;
|
|
3640
|
+
requireUppercase: alepha1118.TBoolean;
|
|
3641
|
+
requireLowercase: alepha1118.TBoolean;
|
|
3642
|
+
requireNumbers: alepha1118.TBoolean;
|
|
3643
|
+
requireSpecialCharacters: alepha1118.TBoolean;
|
|
3644
3644
|
}>;
|
|
3645
3645
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
3646
3646
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
3647
3647
|
//#endregion
|
|
3648
|
-
//#region
|
|
3648
|
+
//#region ../../../alepha/src/orm/schemas/insertSchema.d.ts
|
|
3649
3649
|
/**
|
|
3650
3650
|
* Transforms a TObject schema for insert operations.
|
|
3651
3651
|
* All default properties at the root level are made optional.
|
|
@@ -3660,7 +3660,7 @@ type TObjectInsert<T$1 extends TObject> = TObject<{ [K in keyof T$1["properties"
|
|
|
3660
3660
|
"~optional": true;
|
|
3661
3661
|
} ? TOptional<T$1["properties"][K]> : T$1["properties"][K] }>;
|
|
3662
3662
|
//#endregion
|
|
3663
|
-
//#region
|
|
3663
|
+
//#region ../../../alepha/src/orm/schemas/updateSchema.d.ts
|
|
3664
3664
|
/**
|
|
3665
3665
|
* Transforms a TObject schema for update operations.
|
|
3666
3666
|
* All optional properties at the root level are made nullable (i.e., `T | null`).
|
|
@@ -3672,7 +3672,7 @@ type TObjectInsert<T$1 extends TObject> = TObject<{ [K in keyof T$1["properties"
|
|
|
3672
3672
|
*/
|
|
3673
3673
|
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] }>;
|
|
3674
3674
|
//#endregion
|
|
3675
|
-
//#region
|
|
3675
|
+
//#region ../../../alepha/src/orm/primitives/$entity.d.ts
|
|
3676
3676
|
interface EntityPrimitiveOptions<T$1 extends TObject, Keys = keyof Static<T$1>> {
|
|
3677
3677
|
/**
|
|
3678
3678
|
* The database table name that will be created for this entity.
|
|
@@ -3811,7 +3811,7 @@ type EntityColumn<T$1 extends TObject> = {
|
|
|
3811
3811
|
};
|
|
3812
3812
|
type EntityColumns<T$1 extends TObject> = { [key in keyof T$1["properties"]]: EntityColumn<T$1> };
|
|
3813
3813
|
//#endregion
|
|
3814
|
-
//#region
|
|
3814
|
+
//#region ../../../alepha/src/orm/constants/PG_SYMBOLS.d.ts
|
|
3815
3815
|
declare const PG_DEFAULT: unique symbol;
|
|
3816
3816
|
declare const PG_PRIMARY_KEY: unique symbol;
|
|
3817
3817
|
declare const PG_CREATED_AT: unique symbol;
|
|
@@ -3861,13 +3861,13 @@ interface PgRefOptions {
|
|
|
3861
3861
|
};
|
|
3862
3862
|
}
|
|
3863
3863
|
//#endregion
|
|
3864
|
-
//#region
|
|
3864
|
+
//#region ../../../alepha/src/orm/errors/DbError.d.ts
|
|
3865
3865
|
declare class DbError extends AlephaError {
|
|
3866
3866
|
name: string;
|
|
3867
3867
|
constructor(message: string, cause?: unknown);
|
|
3868
3868
|
}
|
|
3869
3869
|
//#endregion
|
|
3870
|
-
//#region
|
|
3870
|
+
//#region ../../../alepha/src/orm/interfaces/FilterOperators.d.ts
|
|
3871
3871
|
interface FilterOperators<TValue> {
|
|
3872
3872
|
/**
|
|
3873
3873
|
* Test that two values are equal.
|
|
@@ -4283,7 +4283,7 @@ interface FilterOperators<TValue> {
|
|
|
4283
4283
|
arrayOverlaps?: TValue;
|
|
4284
4284
|
}
|
|
4285
4285
|
//#endregion
|
|
4286
|
-
//#region
|
|
4286
|
+
//#region ../../../alepha/src/orm/interfaces/PgQuery.d.ts
|
|
4287
4287
|
/**
|
|
4288
4288
|
* Order direction for sorting
|
|
4289
4289
|
*/
|
|
@@ -4332,7 +4332,7 @@ type PgRelation<Base extends TObject> = {
|
|
|
4332
4332
|
with?: PgRelationMap<TObject>;
|
|
4333
4333
|
};
|
|
4334
4334
|
//#endregion
|
|
4335
|
-
//#region
|
|
4335
|
+
//#region ../../../alepha/src/orm/interfaces/PgQueryWhere.d.ts
|
|
4336
4336
|
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>);
|
|
4337
4337
|
type PgQueryWhereOrSQL<T$1 extends TObject, Relations extends PgRelationMap<TObject> | undefined = undefined> = SQLWrapper | PgQueryWhere<T$1, Relations>;
|
|
4338
4338
|
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) };
|
|
@@ -4411,7 +4411,7 @@ type PgQueryWhereRelations<Relations extends PgRelationMap<TObject> | undefined
|
|
|
4411
4411
|
*/
|
|
4412
4412
|
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;
|
|
4413
4413
|
//#endregion
|
|
4414
|
-
//#region
|
|
4414
|
+
//#region ../../../alepha/src/orm/helpers/pgAttr.d.ts
|
|
4415
4415
|
/**
|
|
4416
4416
|
* Type representation.
|
|
4417
4417
|
*/
|
|
@@ -4424,7 +4424,7 @@ interface PgAttrField {
|
|
|
4424
4424
|
one?: boolean;
|
|
4425
4425
|
}
|
|
4426
4426
|
//#endregion
|
|
4427
|
-
//#region
|
|
4427
|
+
//#region ../../../alepha/src/orm/primitives/$sequence.d.ts
|
|
4428
4428
|
interface SequencePrimitiveOptions extends PgSequenceOptions {
|
|
4429
4429
|
/**
|
|
4430
4430
|
* The name of the sequence. If not provided, the property key will be used.
|
|
@@ -4441,7 +4441,7 @@ declare class SequencePrimitive extends Primitive<SequencePrimitiveOptions> {
|
|
|
4441
4441
|
protected $provider(): DatabaseProvider;
|
|
4442
4442
|
}
|
|
4443
4443
|
//#endregion
|
|
4444
|
-
//#region
|
|
4444
|
+
//#region ../../../alepha/src/orm/services/ModelBuilder.d.ts
|
|
4445
4445
|
/**
|
|
4446
4446
|
* Database-specific table configuration functions
|
|
4447
4447
|
*/
|
|
@@ -4498,7 +4498,7 @@ declare abstract class ModelBuilder {
|
|
|
4498
4498
|
protected buildTableConfig<TConfig, TSelf>(entity: EntityPrimitive, builders: TableConfigBuilders<TConfig>, tableResolver?: (entityName: string) => any, customConfigHandler?: (config: any, self: TSelf) => TConfig[]): ((self: TSelf) => TConfig[]) | undefined;
|
|
4499
4499
|
}
|
|
4500
4500
|
//#endregion
|
|
4501
|
-
//#region
|
|
4501
|
+
//#region ../../../alepha/src/orm/providers/DrizzleKitProvider.d.ts
|
|
4502
4502
|
declare class DrizzleKitProvider {
|
|
4503
4503
|
protected readonly log: Logger;
|
|
4504
4504
|
protected readonly alepha: Alepha;
|
|
@@ -4536,15 +4536,15 @@ declare class DrizzleKitProvider {
|
|
|
4536
4536
|
*/
|
|
4537
4537
|
importDrizzleKit(): typeof DrizzleKit;
|
|
4538
4538
|
}
|
|
4539
|
-
declare const devMigrationsSchema:
|
|
4540
|
-
id:
|
|
4541
|
-
name:
|
|
4542
|
-
snapshot:
|
|
4543
|
-
created_at:
|
|
4539
|
+
declare const devMigrationsSchema: alepha1118.TObject<{
|
|
4540
|
+
id: alepha1118.TNumber;
|
|
4541
|
+
name: alepha1118.TString;
|
|
4542
|
+
snapshot: alepha1118.TString;
|
|
4543
|
+
created_at: alepha1118.TString;
|
|
4544
4544
|
}>;
|
|
4545
4545
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
4546
4546
|
//#endregion
|
|
4547
|
-
//#region
|
|
4547
|
+
//#region ../../../alepha/src/orm/providers/drivers/DatabaseProvider.d.ts
|
|
4548
4548
|
type SQLLike = SQLWrapper | string;
|
|
4549
4549
|
declare abstract class DatabaseProvider {
|
|
4550
4550
|
protected readonly alepha: Alepha;
|
|
@@ -4595,7 +4595,7 @@ declare abstract class DatabaseProvider {
|
|
|
4595
4595
|
protected abstract executeMigrations(migrationsFolder: string): Promise<void>;
|
|
4596
4596
|
}
|
|
4597
4597
|
//#endregion
|
|
4598
|
-
//#region
|
|
4598
|
+
//#region ../../../alepha/src/orm/services/PgJsonQueryManager.d.ts
|
|
4599
4599
|
/**
|
|
4600
4600
|
* Manages JSONB query generation for nested object and array queries in PostgreSQL.
|
|
4601
4601
|
* This class handles complex nested queries using PostgreSQL's JSONB operators.
|
|
@@ -4668,7 +4668,7 @@ declare class PgJsonQueryManager {
|
|
|
4668
4668
|
isArrayProperty(schema: TObject, path: string[]): boolean;
|
|
4669
4669
|
}
|
|
4670
4670
|
//#endregion
|
|
4671
|
-
//#region
|
|
4671
|
+
//#region ../../../alepha/src/orm/services/QueryManager.d.ts
|
|
4672
4672
|
declare class QueryManager {
|
|
4673
4673
|
protected readonly jsonQueryManager: PgJsonQueryManager;
|
|
4674
4674
|
protected readonly alepha: Alepha;
|
|
@@ -4737,7 +4737,7 @@ declare class QueryManager {
|
|
|
4737
4737
|
createPagination<T$1>(entities: T$1[], limit?: number, offset?: number, sort?: Array<{
|
|
4738
4738
|
column: string;
|
|
4739
4739
|
direction: "asc" | "desc";
|
|
4740
|
-
}>):
|
|
4740
|
+
}>): alepha1118.Page<T$1>;
|
|
4741
4741
|
}
|
|
4742
4742
|
interface PgJoin {
|
|
4743
4743
|
table: string;
|
|
@@ -4747,7 +4747,7 @@ interface PgJoin {
|
|
|
4747
4747
|
parent?: string;
|
|
4748
4748
|
}
|
|
4749
4749
|
//#endregion
|
|
4750
|
-
//#region
|
|
4750
|
+
//#region ../../../alepha/src/orm/services/PgRelationManager.d.ts
|
|
4751
4751
|
declare class PgRelationManager {
|
|
4752
4752
|
/**
|
|
4753
4753
|
* Recursively build joins for the query builder based on the relations map
|
|
@@ -4767,7 +4767,7 @@ declare class PgRelationManager {
|
|
|
4767
4767
|
buildSchemaWithJoins(baseSchema: TObject, joins: PgJoin[], parentPath?: string): TObject;
|
|
4768
4768
|
}
|
|
4769
4769
|
//#endregion
|
|
4770
|
-
//#region
|
|
4770
|
+
//#region ../../../alepha/src/orm/services/Repository.d.ts
|
|
4771
4771
|
declare abstract class Repository<T$1 extends TObject> {
|
|
4772
4772
|
readonly entity: EntityPrimitive<T$1>;
|
|
4773
4773
|
readonly provider: DatabaseProvider;
|
|
@@ -5041,19 +5041,19 @@ interface StatementOptions {
|
|
|
5041
5041
|
now?: DateTime | string;
|
|
5042
5042
|
}
|
|
5043
5043
|
//#endregion
|
|
5044
|
-
//#region
|
|
5045
|
-
declare const envSchema$2:
|
|
5046
|
-
LOCK_PREFIX_KEY:
|
|
5044
|
+
//#region ../../../alepha/src/lock/primitives/$lock.d.ts
|
|
5045
|
+
declare const envSchema$2: alepha1118.TObject<{
|
|
5046
|
+
LOCK_PREFIX_KEY: alepha1118.TString;
|
|
5047
5047
|
}>;
|
|
5048
5048
|
declare module "alepha" {
|
|
5049
5049
|
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
5050
5050
|
}
|
|
5051
5051
|
//#endregion
|
|
5052
|
-
//#region
|
|
5052
|
+
//#region ../../../alepha/src/orm/providers/drivers/NodePostgresProvider.d.ts
|
|
5053
5053
|
declare module "alepha" {
|
|
5054
5054
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
5055
5055
|
}
|
|
5056
|
-
declare const envSchema$1:
|
|
5056
|
+
declare const envSchema$1: alepha1118.TObject<{
|
|
5057
5057
|
/**
|
|
5058
5058
|
* Main configuration for database connection.
|
|
5059
5059
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -5061,21 +5061,21 @@ declare const envSchema$1: alepha1184.TObject<{
|
|
|
5061
5061
|
* or
|
|
5062
5062
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
5063
5063
|
*/
|
|
5064
|
-
DATABASE_URL:
|
|
5064
|
+
DATABASE_URL: alepha1118.TOptional<alepha1118.TString>;
|
|
5065
5065
|
/**
|
|
5066
5066
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
5067
5067
|
*
|
|
5068
5068
|
* It will monkey patch drizzle tables.
|
|
5069
5069
|
*/
|
|
5070
|
-
POSTGRES_SCHEMA:
|
|
5070
|
+
POSTGRES_SCHEMA: alepha1118.TOptional<alepha1118.TString>;
|
|
5071
5071
|
}>;
|
|
5072
5072
|
//#endregion
|
|
5073
|
-
//#region
|
|
5073
|
+
//#region ../../../alepha/src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
5074
5074
|
/**
|
|
5075
5075
|
* Configuration options for the Node.js SQLite database provider.
|
|
5076
5076
|
*/
|
|
5077
|
-
declare const nodeSqliteOptions:
|
|
5078
|
-
path:
|
|
5077
|
+
declare const nodeSqliteOptions: alepha1118.Atom<alepha1118.TObject<{
|
|
5078
|
+
path: alepha1118.TOptional<alepha1118.TString>;
|
|
5079
5079
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
5080
5080
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
5081
5081
|
declare module "alepha" {
|
|
@@ -5090,7 +5090,7 @@ declare module "alepha" {
|
|
|
5090
5090
|
* This is NOT recommended for production use.
|
|
5091
5091
|
*/
|
|
5092
5092
|
//#endregion
|
|
5093
|
-
//#region
|
|
5093
|
+
//#region ../../../alepha/src/orm/index.d.ts
|
|
5094
5094
|
declare module "alepha" {
|
|
5095
5095
|
interface Hooks {
|
|
5096
5096
|
/**
|
|
@@ -5158,20 +5158,20 @@ declare module "alepha" {
|
|
|
5158
5158
|
}
|
|
5159
5159
|
}
|
|
5160
5160
|
//#endregion
|
|
5161
|
-
//#region
|
|
5162
|
-
declare const identities: EntityPrimitive<
|
|
5163
|
-
id: PgAttr<PgAttr<
|
|
5164
|
-
version: PgAttr<PgAttr<
|
|
5165
|
-
createdAt: PgAttr<PgAttr<
|
|
5166
|
-
updatedAt: PgAttr<PgAttr<
|
|
5167
|
-
userId: PgAttr<
|
|
5168
|
-
password:
|
|
5169
|
-
provider:
|
|
5170
|
-
providerUserId:
|
|
5171
|
-
providerData:
|
|
5161
|
+
//#region ../../../alepha/src/api-users/entities/identities.d.ts
|
|
5162
|
+
declare const identities: EntityPrimitive<alepha1118.TObject<{
|
|
5163
|
+
id: PgAttr<PgAttr<alepha1118.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5164
|
+
version: PgAttr<PgAttr<alepha1118.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5165
|
+
createdAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5166
|
+
updatedAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5167
|
+
userId: PgAttr<alepha1118.TString, typeof PG_REF>;
|
|
5168
|
+
password: alepha1118.TOptional<alepha1118.TString>;
|
|
5169
|
+
provider: alepha1118.TString;
|
|
5170
|
+
providerUserId: alepha1118.TOptional<alepha1118.TString>;
|
|
5171
|
+
providerData: alepha1118.TOptional<alepha1118.TRecord<string, alepha1118.TAny>>;
|
|
5172
5172
|
}>>;
|
|
5173
5173
|
//#endregion
|
|
5174
|
-
//#region
|
|
5174
|
+
//#region ../../../alepha/src/bucket/providers/FileStorageProvider.d.ts
|
|
5175
5175
|
declare abstract class FileStorageProvider {
|
|
5176
5176
|
/**
|
|
5177
5177
|
* Uploads a file to the storage.
|
|
@@ -5207,7 +5207,7 @@ declare abstract class FileStorageProvider {
|
|
|
5207
5207
|
abstract delete(bucketName: string, fileId: string): Promise<void>;
|
|
5208
5208
|
}
|
|
5209
5209
|
//#endregion
|
|
5210
|
-
//#region
|
|
5210
|
+
//#region ../../../alepha/src/bucket/providers/MemoryFileStorageProvider.d.ts
|
|
5211
5211
|
declare class MemoryFileStorageProvider implements FileStorageProvider {
|
|
5212
5212
|
readonly files: Record<string, FileLike>;
|
|
5213
5213
|
protected readonly fileSystem: FileSystemProvider;
|
|
@@ -5219,7 +5219,7 @@ declare class MemoryFileStorageProvider implements FileStorageProvider {
|
|
|
5219
5219
|
protected createId(): string;
|
|
5220
5220
|
}
|
|
5221
5221
|
//#endregion
|
|
5222
|
-
//#region
|
|
5222
|
+
//#region ../../../alepha/src/bucket/primitives/$bucket.d.ts
|
|
5223
5223
|
interface BucketPrimitiveOptions extends BucketFileOptions {
|
|
5224
5224
|
/**
|
|
5225
5225
|
* File storage provider configuration for the bucket.
|
|
@@ -5391,12 +5391,12 @@ interface BucketFileOptions {
|
|
|
5391
5391
|
maxSize?: number;
|
|
5392
5392
|
}
|
|
5393
5393
|
//#endregion
|
|
5394
|
-
//#region
|
|
5394
|
+
//#region ../../../alepha/src/bucket/providers/LocalFileStorageProvider.d.ts
|
|
5395
5395
|
/**
|
|
5396
5396
|
* Local file storage configuration atom
|
|
5397
5397
|
*/
|
|
5398
|
-
declare const localFileStorageOptions:
|
|
5399
|
-
storagePath:
|
|
5398
|
+
declare const localFileStorageOptions: alepha1118.Atom<alepha1118.TObject<{
|
|
5399
|
+
storagePath: alepha1118.TString;
|
|
5400
5400
|
}>, "alepha.bucket.local.options">;
|
|
5401
5401
|
type LocalFileStorageProviderOptions = Static<typeof localFileStorageOptions.schema>;
|
|
5402
5402
|
declare module "alepha" {
|
|
@@ -5405,7 +5405,7 @@ declare module "alepha" {
|
|
|
5405
5405
|
}
|
|
5406
5406
|
}
|
|
5407
5407
|
//#endregion
|
|
5408
|
-
//#region
|
|
5408
|
+
//#region ../../../alepha/src/bucket/index.d.ts
|
|
5409
5409
|
declare module "alepha" {
|
|
5410
5410
|
interface Hooks {
|
|
5411
5411
|
/**
|
|
@@ -5439,42 +5439,42 @@ declare module "alepha" {
|
|
|
5439
5439
|
* @module alepha.bucket
|
|
5440
5440
|
*/
|
|
5441
5441
|
//#endregion
|
|
5442
|
-
//#region
|
|
5443
|
-
declare const sessions: EntityPrimitive<
|
|
5444
|
-
id: PgAttr<PgAttr<
|
|
5445
|
-
version: PgAttr<PgAttr<
|
|
5446
|
-
createdAt: PgAttr<PgAttr<
|
|
5447
|
-
updatedAt: PgAttr<PgAttr<
|
|
5448
|
-
refreshToken:
|
|
5449
|
-
userId: PgAttr<
|
|
5450
|
-
expiresAt:
|
|
5451
|
-
ip:
|
|
5452
|
-
userAgent:
|
|
5453
|
-
os:
|
|
5454
|
-
browser:
|
|
5455
|
-
device:
|
|
5442
|
+
//#region ../../../alepha/src/api-users/entities/sessions.d.ts
|
|
5443
|
+
declare const sessions: EntityPrimitive<alepha1118.TObject<{
|
|
5444
|
+
id: PgAttr<PgAttr<alepha1118.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5445
|
+
version: PgAttr<PgAttr<alepha1118.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5446
|
+
createdAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5447
|
+
updatedAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5448
|
+
refreshToken: alepha1118.TString;
|
|
5449
|
+
userId: PgAttr<alepha1118.TString, typeof PG_REF>;
|
|
5450
|
+
expiresAt: alepha1118.TString;
|
|
5451
|
+
ip: alepha1118.TOptional<alepha1118.TString>;
|
|
5452
|
+
userAgent: alepha1118.TOptional<alepha1118.TObject<{
|
|
5453
|
+
os: alepha1118.TString;
|
|
5454
|
+
browser: alepha1118.TString;
|
|
5455
|
+
device: alepha1118.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5456
5456
|
}>>;
|
|
5457
5457
|
}>>;
|
|
5458
5458
|
//#endregion
|
|
5459
|
-
//#region
|
|
5460
|
-
declare const users: EntityPrimitive<
|
|
5461
|
-
id: PgAttr<PgAttr<
|
|
5462
|
-
version: PgAttr<PgAttr<
|
|
5463
|
-
createdAt: PgAttr<PgAttr<
|
|
5464
|
-
updatedAt: PgAttr<PgAttr<
|
|
5465
|
-
realm: PgAttr<
|
|
5466
|
-
username:
|
|
5467
|
-
email:
|
|
5468
|
-
phoneNumber:
|
|
5469
|
-
roles: PgAttr<
|
|
5470
|
-
firstName:
|
|
5471
|
-
lastName:
|
|
5472
|
-
picture:
|
|
5473
|
-
enabled: PgAttr<
|
|
5474
|
-
emailVerified: PgAttr<
|
|
5459
|
+
//#region ../../../alepha/src/api-users/entities/users.d.ts
|
|
5460
|
+
declare const users: EntityPrimitive<alepha1118.TObject<{
|
|
5461
|
+
id: PgAttr<PgAttr<alepha1118.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5462
|
+
version: PgAttr<PgAttr<alepha1118.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5463
|
+
createdAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5464
|
+
updatedAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5465
|
+
realm: PgAttr<alepha1118.TString, typeof PG_DEFAULT>;
|
|
5466
|
+
username: alepha1118.TOptional<alepha1118.TString>;
|
|
5467
|
+
email: alepha1118.TOptional<alepha1118.TString>;
|
|
5468
|
+
phoneNumber: alepha1118.TOptional<alepha1118.TString>;
|
|
5469
|
+
roles: PgAttr<alepha1118.TArray<alepha1118.TString>, typeof PG_DEFAULT>;
|
|
5470
|
+
firstName: alepha1118.TOptional<alepha1118.TString>;
|
|
5471
|
+
lastName: alepha1118.TOptional<alepha1118.TString>;
|
|
5472
|
+
picture: alepha1118.TOptional<alepha1118.TString>;
|
|
5473
|
+
enabled: PgAttr<alepha1118.TBoolean, typeof PG_DEFAULT>;
|
|
5474
|
+
emailVerified: PgAttr<alepha1118.TBoolean, typeof PG_DEFAULT>;
|
|
5475
5475
|
}>>;
|
|
5476
5476
|
//#endregion
|
|
5477
|
-
//#region
|
|
5477
|
+
//#region ../../../alepha/src/api-users/providers/UserRealmProvider.d.ts
|
|
5478
5478
|
interface UserRealmRepositories {
|
|
5479
5479
|
identities: Repository<typeof identities.schema>;
|
|
5480
5480
|
sessions: Repository<typeof sessions.schema>;
|
|
@@ -5487,51 +5487,51 @@ interface UserRealm {
|
|
|
5487
5487
|
}
|
|
5488
5488
|
declare class UserRealmProvider {
|
|
5489
5489
|
protected readonly alepha: Alepha;
|
|
5490
|
-
protected readonly defaultIdentities: Repository<
|
|
5491
|
-
id: PgAttr<PgAttr<
|
|
5492
|
-
version: PgAttr<PgAttr<
|
|
5493
|
-
createdAt: PgAttr<PgAttr<
|
|
5494
|
-
updatedAt: PgAttr<PgAttr<
|
|
5495
|
-
userId: PgAttr<
|
|
5496
|
-
password:
|
|
5497
|
-
provider:
|
|
5498
|
-
providerUserId:
|
|
5499
|
-
providerData:
|
|
5490
|
+
protected readonly defaultIdentities: Repository<alepha1118.TObject<{
|
|
5491
|
+
id: PgAttr<PgAttr<alepha1118.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5492
|
+
version: PgAttr<PgAttr<alepha1118.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5493
|
+
createdAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5494
|
+
updatedAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5495
|
+
userId: PgAttr<alepha1118.TString, typeof PG_REF>;
|
|
5496
|
+
password: alepha1118.TOptional<alepha1118.TString>;
|
|
5497
|
+
provider: alepha1118.TString;
|
|
5498
|
+
providerUserId: alepha1118.TOptional<alepha1118.TString>;
|
|
5499
|
+
providerData: alepha1118.TOptional<alepha1118.TRecord<string, alepha1118.TAny>>;
|
|
5500
5500
|
}>>;
|
|
5501
|
-
protected readonly defaultSessions: Repository<
|
|
5502
|
-
id: PgAttr<PgAttr<
|
|
5503
|
-
version: PgAttr<PgAttr<
|
|
5504
|
-
createdAt: PgAttr<PgAttr<
|
|
5505
|
-
updatedAt: PgAttr<PgAttr<
|
|
5506
|
-
refreshToken:
|
|
5507
|
-
userId: PgAttr<
|
|
5508
|
-
expiresAt:
|
|
5509
|
-
ip:
|
|
5510
|
-
userAgent:
|
|
5511
|
-
os:
|
|
5512
|
-
browser:
|
|
5513
|
-
device:
|
|
5501
|
+
protected readonly defaultSessions: Repository<alepha1118.TObject<{
|
|
5502
|
+
id: PgAttr<PgAttr<alepha1118.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5503
|
+
version: PgAttr<PgAttr<alepha1118.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5504
|
+
createdAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5505
|
+
updatedAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5506
|
+
refreshToken: alepha1118.TString;
|
|
5507
|
+
userId: PgAttr<alepha1118.TString, typeof PG_REF>;
|
|
5508
|
+
expiresAt: alepha1118.TString;
|
|
5509
|
+
ip: alepha1118.TOptional<alepha1118.TString>;
|
|
5510
|
+
userAgent: alepha1118.TOptional<alepha1118.TObject<{
|
|
5511
|
+
os: alepha1118.TString;
|
|
5512
|
+
browser: alepha1118.TString;
|
|
5513
|
+
device: alepha1118.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5514
5514
|
}>>;
|
|
5515
5515
|
}>>;
|
|
5516
|
-
protected readonly defaultUsers: Repository<
|
|
5517
|
-
id: PgAttr<PgAttr<
|
|
5518
|
-
version: PgAttr<PgAttr<
|
|
5519
|
-
createdAt: PgAttr<PgAttr<
|
|
5520
|
-
updatedAt: PgAttr<PgAttr<
|
|
5521
|
-
realm: PgAttr<
|
|
5522
|
-
username:
|
|
5523
|
-
email:
|
|
5524
|
-
phoneNumber:
|
|
5525
|
-
roles: PgAttr<
|
|
5526
|
-
firstName:
|
|
5527
|
-
lastName:
|
|
5528
|
-
picture:
|
|
5529
|
-
enabled: PgAttr<
|
|
5530
|
-
emailVerified: PgAttr<
|
|
5516
|
+
protected readonly defaultUsers: Repository<alepha1118.TObject<{
|
|
5517
|
+
id: PgAttr<PgAttr<alepha1118.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5518
|
+
version: PgAttr<PgAttr<alepha1118.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5519
|
+
createdAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5520
|
+
updatedAt: PgAttr<PgAttr<alepha1118.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5521
|
+
realm: PgAttr<alepha1118.TString, typeof PG_DEFAULT>;
|
|
5522
|
+
username: alepha1118.TOptional<alepha1118.TString>;
|
|
5523
|
+
email: alepha1118.TOptional<alepha1118.TString>;
|
|
5524
|
+
phoneNumber: alepha1118.TOptional<alepha1118.TString>;
|
|
5525
|
+
roles: PgAttr<alepha1118.TArray<alepha1118.TString>, typeof PG_DEFAULT>;
|
|
5526
|
+
firstName: alepha1118.TOptional<alepha1118.TString>;
|
|
5527
|
+
lastName: alepha1118.TOptional<alepha1118.TString>;
|
|
5528
|
+
picture: alepha1118.TOptional<alepha1118.TString>;
|
|
5529
|
+
enabled: PgAttr<alepha1118.TBoolean, typeof PG_DEFAULT>;
|
|
5530
|
+
emailVerified: PgAttr<alepha1118.TBoolean, typeof PG_DEFAULT>;
|
|
5531
5531
|
}>>;
|
|
5532
5532
|
protected realms: Map<string, UserRealm>;
|
|
5533
5533
|
avatars: BucketPrimitive;
|
|
5534
|
-
protected readonly onConfigure:
|
|
5534
|
+
protected readonly onConfigure: alepha1118.HookPrimitive<"configure">;
|
|
5535
5535
|
register(userRealmName: string, userRealmOptions?: UserRealmOptions): UserRealm;
|
|
5536
5536
|
/**
|
|
5537
5537
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
@@ -5542,25 +5542,25 @@ declare class UserRealmProvider {
|
|
|
5542
5542
|
userRepository(userRealmName?: string): Repository<typeof users.schema>;
|
|
5543
5543
|
}
|
|
5544
5544
|
//#endregion
|
|
5545
|
-
//#region
|
|
5545
|
+
//#region ../../../alepha/src/api-verifications/parameters/VerificationParameters.d.ts
|
|
5546
5546
|
/**
|
|
5547
5547
|
* Verification settings configuration atom
|
|
5548
5548
|
*/
|
|
5549
|
-
declare const verificationOptions:
|
|
5550
|
-
code:
|
|
5551
|
-
maxAttempts:
|
|
5552
|
-
codeLength:
|
|
5553
|
-
codeExpiration:
|
|
5554
|
-
verificationCooldown:
|
|
5555
|
-
limitPerDay:
|
|
5549
|
+
declare const verificationOptions: alepha1118.Atom<alepha1118.TObject<{
|
|
5550
|
+
code: alepha1118.TObject<{
|
|
5551
|
+
maxAttempts: alepha1118.TInteger;
|
|
5552
|
+
codeLength: alepha1118.TInteger;
|
|
5553
|
+
codeExpiration: alepha1118.TInteger;
|
|
5554
|
+
verificationCooldown: alepha1118.TInteger;
|
|
5555
|
+
limitPerDay: alepha1118.TInteger;
|
|
5556
5556
|
}>;
|
|
5557
|
-
link:
|
|
5558
|
-
maxAttempts:
|
|
5559
|
-
codeExpiration:
|
|
5560
|
-
verificationCooldown:
|
|
5561
|
-
limitPerDay:
|
|
5557
|
+
link: alepha1118.TObject<{
|
|
5558
|
+
maxAttempts: alepha1118.TInteger;
|
|
5559
|
+
codeExpiration: alepha1118.TInteger;
|
|
5560
|
+
verificationCooldown: alepha1118.TInteger;
|
|
5561
|
+
limitPerDay: alepha1118.TInteger;
|
|
5562
5562
|
}>;
|
|
5563
|
-
purgeDays:
|
|
5563
|
+
purgeDays: alepha1118.TInteger;
|
|
5564
5564
|
}>, "alepha.api.verifications.options">;
|
|
5565
5565
|
type VerificationOptions = Static<typeof verificationOptions.schema>;
|
|
5566
5566
|
declare module "alepha" {
|
|
@@ -5569,7 +5569,7 @@ declare module "alepha" {
|
|
|
5569
5569
|
}
|
|
5570
5570
|
}
|
|
5571
5571
|
//#endregion
|
|
5572
|
-
//#region
|
|
5572
|
+
//#region ../../../alepha/src/email/providers/EmailProvider.d.ts
|
|
5573
5573
|
/**
|
|
5574
5574
|
* Email provider interface.
|
|
5575
5575
|
*
|
|
@@ -5589,7 +5589,7 @@ type EmailSendOptions = {
|
|
|
5589
5589
|
body: string;
|
|
5590
5590
|
};
|
|
5591
5591
|
//#endregion
|
|
5592
|
-
//#region
|
|
5592
|
+
//#region ../../../alepha/src/email/index.d.ts
|
|
5593
5593
|
declare module "alepha" {
|
|
5594
5594
|
interface Hooks {
|
|
5595
5595
|
"email:sending": {
|
|
@@ -5617,7 +5617,7 @@ declare module "alepha" {
|
|
|
5617
5617
|
* @module alepha.email
|
|
5618
5618
|
*/
|
|
5619
5619
|
//#endregion
|
|
5620
|
-
//#region
|
|
5620
|
+
//#region ../../../alepha/src/sms/providers/SmsProvider.d.ts
|
|
5621
5621
|
/**
|
|
5622
5622
|
* SMS provider interface.
|
|
5623
5623
|
*
|
|
@@ -5636,7 +5636,7 @@ type SmsSendOptions = {
|
|
|
5636
5636
|
message: string;
|
|
5637
5637
|
};
|
|
5638
5638
|
//#endregion
|
|
5639
|
-
//#region
|
|
5639
|
+
//#region ../../../alepha/src/sms/index.d.ts
|
|
5640
5640
|
declare module "alepha" {
|
|
5641
5641
|
interface Hooks {
|
|
5642
5642
|
"sms:sending": {
|
|
@@ -5664,45 +5664,45 @@ declare module "alepha" {
|
|
|
5664
5664
|
* @module alepha.sms
|
|
5665
5665
|
*/
|
|
5666
5666
|
//#endregion
|
|
5667
|
-
//#region
|
|
5668
|
-
declare const notificationServiceEnvSchema:
|
|
5669
|
-
NOTIFICATION_QUEUE:
|
|
5667
|
+
//#region ../../../alepha/src/api-notifications/services/NotificationService.d.ts
|
|
5668
|
+
declare const notificationServiceEnvSchema: alepha1118.TObject<{
|
|
5669
|
+
NOTIFICATION_QUEUE: alepha1118.TOptional<alepha1118.TBoolean>;
|
|
5670
5670
|
}>;
|
|
5671
5671
|
declare module "alepha" {
|
|
5672
5672
|
interface Env extends Partial<Static<typeof notificationServiceEnvSchema>> {}
|
|
5673
5673
|
}
|
|
5674
5674
|
//#endregion
|
|
5675
|
-
//#region
|
|
5676
|
-
declare const envSchema:
|
|
5675
|
+
//#region ../../../alepha/src/queue/providers/WorkerProvider.d.ts
|
|
5676
|
+
declare const envSchema: alepha1118.TObject<{
|
|
5677
5677
|
/**
|
|
5678
5678
|
* The timeout in seconds for blocking job acquisition.
|
|
5679
5679
|
* Workers will check for shutdown after each timeout period.
|
|
5680
5680
|
*/
|
|
5681
|
-
QUEUE_WORKER_BLOCKING_TIMEOUT:
|
|
5681
|
+
QUEUE_WORKER_BLOCKING_TIMEOUT: alepha1118.TInteger;
|
|
5682
5682
|
/**
|
|
5683
5683
|
* The number of workers to run concurrently. Defaults to 1.
|
|
5684
5684
|
* Useful only if you are doing a lot of I/O.
|
|
5685
5685
|
*/
|
|
5686
|
-
QUEUE_WORKER_CONCURRENCY:
|
|
5686
|
+
QUEUE_WORKER_CONCURRENCY: alepha1118.TInteger;
|
|
5687
5687
|
/**
|
|
5688
5688
|
* Interval in milliseconds for renewing job locks during processing.
|
|
5689
5689
|
* Should be less than the job's lock duration.
|
|
5690
5690
|
*/
|
|
5691
|
-
QUEUE_WORKER_LOCK_RENEWAL_INTERVAL:
|
|
5691
|
+
QUEUE_WORKER_LOCK_RENEWAL_INTERVAL: alepha1118.TInteger;
|
|
5692
5692
|
/**
|
|
5693
5693
|
* Interval in milliseconds for the scheduler to check delayed jobs and stalled jobs.
|
|
5694
5694
|
*/
|
|
5695
|
-
QUEUE_SCHEDULER_INTERVAL:
|
|
5695
|
+
QUEUE_SCHEDULER_INTERVAL: alepha1118.TInteger;
|
|
5696
5696
|
/**
|
|
5697
5697
|
* Threshold in milliseconds after lock expiration to consider a job stalled.
|
|
5698
5698
|
*/
|
|
5699
|
-
QUEUE_STALLED_THRESHOLD:
|
|
5699
|
+
QUEUE_STALLED_THRESHOLD: alepha1118.TInteger;
|
|
5700
5700
|
}>;
|
|
5701
5701
|
declare module "alepha" {
|
|
5702
5702
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
5703
5703
|
}
|
|
5704
5704
|
//#endregion
|
|
5705
|
-
//#region
|
|
5705
|
+
//#region ../../../alepha/src/api-users/controllers/UserRealmController.d.ts
|
|
5706
5706
|
/**
|
|
5707
5707
|
* Controller for exposing realm configuration.
|
|
5708
5708
|
* Uses $route instead of $action to keep endpoints hidden from API documentation.
|
|
@@ -5717,52 +5717,52 @@ declare class UserRealmController {
|
|
|
5717
5717
|
* This endpoint is not exposed in the API documentation.
|
|
5718
5718
|
*/
|
|
5719
5719
|
readonly getRealmConfig: ActionPrimitiveFn<{
|
|
5720
|
-
query:
|
|
5721
|
-
userRealmName:
|
|
5720
|
+
query: alepha1118.TObject<{
|
|
5721
|
+
userRealmName: alepha1118.TOptional<alepha1118.TString>;
|
|
5722
5722
|
}>;
|
|
5723
|
-
response:
|
|
5724
|
-
settings:
|
|
5725
|
-
registrationAllowed:
|
|
5726
|
-
emailEnabled:
|
|
5727
|
-
emailRequired:
|
|
5728
|
-
usernameEnabled:
|
|
5729
|
-
usernameRequired:
|
|
5730
|
-
phoneEnabled:
|
|
5731
|
-
phoneRequired:
|
|
5732
|
-
verifyEmailRequired:
|
|
5733
|
-
verifyPhoneRequired:
|
|
5734
|
-
firstNameLastNameEnabled:
|
|
5735
|
-
firstNameLastNameRequired:
|
|
5736
|
-
resetPasswordAllowed:
|
|
5737
|
-
passwordPolicy:
|
|
5738
|
-
minLength:
|
|
5739
|
-
requireUppercase:
|
|
5740
|
-
requireLowercase:
|
|
5741
|
-
requireNumbers:
|
|
5742
|
-
requireSpecialCharacters:
|
|
5723
|
+
response: alepha1118.TObject<{
|
|
5724
|
+
settings: alepha1118.TObject<{
|
|
5725
|
+
registrationAllowed: alepha1118.TBoolean;
|
|
5726
|
+
emailEnabled: alepha1118.TBoolean;
|
|
5727
|
+
emailRequired: alepha1118.TBoolean;
|
|
5728
|
+
usernameEnabled: alepha1118.TBoolean;
|
|
5729
|
+
usernameRequired: alepha1118.TBoolean;
|
|
5730
|
+
phoneEnabled: alepha1118.TBoolean;
|
|
5731
|
+
phoneRequired: alepha1118.TBoolean;
|
|
5732
|
+
verifyEmailRequired: alepha1118.TBoolean;
|
|
5733
|
+
verifyPhoneRequired: alepha1118.TBoolean;
|
|
5734
|
+
firstNameLastNameEnabled: alepha1118.TBoolean;
|
|
5735
|
+
firstNameLastNameRequired: alepha1118.TBoolean;
|
|
5736
|
+
resetPasswordAllowed: alepha1118.TBoolean;
|
|
5737
|
+
passwordPolicy: alepha1118.TObject<{
|
|
5738
|
+
minLength: alepha1118.TInteger;
|
|
5739
|
+
requireUppercase: alepha1118.TBoolean;
|
|
5740
|
+
requireLowercase: alepha1118.TBoolean;
|
|
5741
|
+
requireNumbers: alepha1118.TBoolean;
|
|
5742
|
+
requireSpecialCharacters: alepha1118.TBoolean;
|
|
5743
5743
|
}>;
|
|
5744
5744
|
}>;
|
|
5745
|
-
realmName:
|
|
5746
|
-
authenticationMethods:
|
|
5747
|
-
name:
|
|
5748
|
-
type:
|
|
5745
|
+
realmName: alepha1118.TString;
|
|
5746
|
+
authenticationMethods: alepha1118.TArray<alepha1118.TObject<{
|
|
5747
|
+
name: alepha1118.TString;
|
|
5748
|
+
type: alepha1118.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
5749
5749
|
}>>;
|
|
5750
5750
|
}>;
|
|
5751
5751
|
}>;
|
|
5752
5752
|
readonly checkUsernameAvailability: ActionPrimitiveFn<{
|
|
5753
|
-
query:
|
|
5754
|
-
userRealmName:
|
|
5753
|
+
query: alepha1118.TObject<{
|
|
5754
|
+
userRealmName: alepha1118.TOptional<alepha1118.TString>;
|
|
5755
5755
|
}>;
|
|
5756
|
-
body:
|
|
5757
|
-
username:
|
|
5756
|
+
body: alepha1118.TObject<{
|
|
5757
|
+
username: alepha1118.TString;
|
|
5758
5758
|
}>;
|
|
5759
|
-
response:
|
|
5760
|
-
available:
|
|
5759
|
+
response: alepha1118.TObject<{
|
|
5760
|
+
available: alepha1118.TBoolean;
|
|
5761
5761
|
}>;
|
|
5762
5762
|
}>;
|
|
5763
5763
|
}
|
|
5764
5764
|
//#endregion
|
|
5765
|
-
//#region
|
|
5765
|
+
//#region ../../../alepha/src/api-users/primitives/$userRealm.d.ts
|
|
5766
5766
|
interface UserRealmOptions {
|
|
5767
5767
|
/**
|
|
5768
5768
|
* Secret key for signing tokens.
|
|
@@ -5796,38 +5796,38 @@ interface UserRealmOptions {
|
|
|
5796
5796
|
};
|
|
5797
5797
|
}
|
|
5798
5798
|
//#endregion
|
|
5799
|
-
//#region
|
|
5800
|
-
declare const userRealmConfigSchema:
|
|
5801
|
-
settings:
|
|
5802
|
-
registrationAllowed:
|
|
5803
|
-
emailEnabled:
|
|
5804
|
-
emailRequired:
|
|
5805
|
-
usernameEnabled:
|
|
5806
|
-
usernameRequired:
|
|
5807
|
-
phoneEnabled:
|
|
5808
|
-
phoneRequired:
|
|
5809
|
-
verifyEmailRequired:
|
|
5810
|
-
verifyPhoneRequired:
|
|
5811
|
-
firstNameLastNameEnabled:
|
|
5812
|
-
firstNameLastNameRequired:
|
|
5813
|
-
resetPasswordAllowed:
|
|
5814
|
-
passwordPolicy:
|
|
5815
|
-
minLength:
|
|
5816
|
-
requireUppercase:
|
|
5817
|
-
requireLowercase:
|
|
5818
|
-
requireNumbers:
|
|
5819
|
-
requireSpecialCharacters:
|
|
5799
|
+
//#region ../../../alepha/src/api-users/schemas/userRealmConfigSchema.d.ts
|
|
5800
|
+
declare const userRealmConfigSchema: alepha1118.TObject<{
|
|
5801
|
+
settings: alepha1118.TObject<{
|
|
5802
|
+
registrationAllowed: alepha1118.TBoolean;
|
|
5803
|
+
emailEnabled: alepha1118.TBoolean;
|
|
5804
|
+
emailRequired: alepha1118.TBoolean;
|
|
5805
|
+
usernameEnabled: alepha1118.TBoolean;
|
|
5806
|
+
usernameRequired: alepha1118.TBoolean;
|
|
5807
|
+
phoneEnabled: alepha1118.TBoolean;
|
|
5808
|
+
phoneRequired: alepha1118.TBoolean;
|
|
5809
|
+
verifyEmailRequired: alepha1118.TBoolean;
|
|
5810
|
+
verifyPhoneRequired: alepha1118.TBoolean;
|
|
5811
|
+
firstNameLastNameEnabled: alepha1118.TBoolean;
|
|
5812
|
+
firstNameLastNameRequired: alepha1118.TBoolean;
|
|
5813
|
+
resetPasswordAllowed: alepha1118.TBoolean;
|
|
5814
|
+
passwordPolicy: alepha1118.TObject<{
|
|
5815
|
+
minLength: alepha1118.TInteger;
|
|
5816
|
+
requireUppercase: alepha1118.TBoolean;
|
|
5817
|
+
requireLowercase: alepha1118.TBoolean;
|
|
5818
|
+
requireNumbers: alepha1118.TBoolean;
|
|
5819
|
+
requireSpecialCharacters: alepha1118.TBoolean;
|
|
5820
5820
|
}>;
|
|
5821
5821
|
}>;
|
|
5822
|
-
realmName:
|
|
5823
|
-
authenticationMethods:
|
|
5824
|
-
name:
|
|
5825
|
-
type:
|
|
5822
|
+
realmName: alepha1118.TString;
|
|
5823
|
+
authenticationMethods: alepha1118.TArray<alepha1118.TObject<{
|
|
5824
|
+
name: alepha1118.TString;
|
|
5825
|
+
type: alepha1118.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
5826
5826
|
}>>;
|
|
5827
5827
|
}>;
|
|
5828
5828
|
type UserRealmConfig = Static<typeof userRealmConfigSchema>;
|
|
5829
5829
|
//#endregion
|
|
5830
|
-
//#region
|
|
5830
|
+
//#region ../../../alepha/src/api-files/index.d.ts
|
|
5831
5831
|
declare module "alepha/bucket" {
|
|
5832
5832
|
interface BucketFileOptions {
|
|
5833
5833
|
/**
|
|
@@ -5859,14 +5859,14 @@ declare module "alepha/bucket" {
|
|
|
5859
5859
|
* @module alepha.api.files
|
|
5860
5860
|
*/
|
|
5861
5861
|
//#endregion
|
|
5862
|
-
//#region src/auth/AuthRouter.d.ts
|
|
5862
|
+
//#region ../../src/auth/AuthRouter.d.ts
|
|
5863
5863
|
declare class AuthRouter {
|
|
5864
5864
|
protected readonly userRealmClient: HttpVirtualClient<UserRealmController>;
|
|
5865
5865
|
protected readonly auth: ReactAuth;
|
|
5866
5866
|
layout: PagePrimitive<PageConfigSchema, any, TPropsParentDefault>;
|
|
5867
5867
|
login: PagePrimitive<{
|
|
5868
|
-
query:
|
|
5869
|
-
r:
|
|
5868
|
+
query: alepha1118.TObject<{
|
|
5869
|
+
r: alepha1118.TOptional<alepha1118.TString>;
|
|
5870
5870
|
}>;
|
|
5871
5871
|
}, {
|
|
5872
5872
|
realmConfig: {
|
|
@@ -5899,8 +5899,8 @@ declare class AuthRouter {
|
|
|
5899
5899
|
};
|
|
5900
5900
|
}, TPropsParentDefault>;
|
|
5901
5901
|
register: PagePrimitive<{
|
|
5902
|
-
query:
|
|
5903
|
-
r:
|
|
5902
|
+
query: alepha1118.TObject<{
|
|
5903
|
+
r: alepha1118.TOptional<alepha1118.TString>;
|
|
5904
5904
|
}>;
|
|
5905
5905
|
}, {
|
|
5906
5906
|
realmConfig: {
|
|
@@ -5933,8 +5933,8 @@ declare class AuthRouter {
|
|
|
5933
5933
|
};
|
|
5934
5934
|
}, TPropsParentDefault>;
|
|
5935
5935
|
resetPassword: PagePrimitive<{
|
|
5936
|
-
query:
|
|
5937
|
-
r:
|
|
5936
|
+
query: alepha1118.TObject<{
|
|
5937
|
+
r: alepha1118.TOptional<alepha1118.TString>;
|
|
5938
5938
|
}>;
|
|
5939
5939
|
}, {
|
|
5940
5940
|
realmConfig: {
|
|
@@ -5967,9 +5967,9 @@ declare class AuthRouter {
|
|
|
5967
5967
|
};
|
|
5968
5968
|
}, TPropsParentDefault>;
|
|
5969
5969
|
verifyEmail: PagePrimitive<{
|
|
5970
|
-
query:
|
|
5971
|
-
email:
|
|
5972
|
-
token:
|
|
5970
|
+
query: alepha1118.TObject<{
|
|
5971
|
+
email: alepha1118.TOptional<alepha1118.TString>;
|
|
5972
|
+
token: alepha1118.TOptional<alepha1118.TString>;
|
|
5973
5973
|
}>;
|
|
5974
5974
|
}, any, TPropsParentDefault>;
|
|
5975
5975
|
logout: PagePrimitive<PageConfigSchema, {}, TPropsParentDefault>;
|
|
@@ -6003,7 +6003,7 @@ declare class AuthRouter {
|
|
|
6003
6003
|
}>;
|
|
6004
6004
|
}
|
|
6005
6005
|
//#endregion
|
|
6006
|
-
//#region src/auth/components/buttons/UserButton.d.ts
|
|
6006
|
+
//#region ../../src/auth/components/buttons/UserButton.d.ts
|
|
6007
6007
|
interface UserButtonProps extends Omit<ActionProps, "menu" | "icon" | "onClick"> {
|
|
6008
6008
|
/**
|
|
6009
6009
|
* Additional menu items to display before the logout option
|
|
@@ -6028,35 +6028,35 @@ interface UserButtonProps extends Omit<ActionProps, "menu" | "icon" | "onClick">
|
|
|
6028
6028
|
}
|
|
6029
6029
|
declare const UserButton: (props: UserButtonProps) => react_jsx_runtime0.JSX.Element;
|
|
6030
6030
|
//#endregion
|
|
6031
|
-
//#region src/auth/components/Login.d.ts
|
|
6031
|
+
//#region ../../src/auth/components/Login.d.ts
|
|
6032
6032
|
interface LoginProps {
|
|
6033
6033
|
realmConfig: UserRealmConfig;
|
|
6034
6034
|
}
|
|
6035
6035
|
declare const Login: (props: LoginProps) => react_jsx_runtime0.JSX.Element;
|
|
6036
6036
|
//#endregion
|
|
6037
|
-
//#region src/auth/components/Register.d.ts
|
|
6037
|
+
//#region ../../src/auth/components/Register.d.ts
|
|
6038
6038
|
interface RegisterProps {
|
|
6039
6039
|
realmConfig: UserRealmConfig;
|
|
6040
6040
|
}
|
|
6041
6041
|
declare const Register: (props: RegisterProps) => react_jsx_runtime0.JSX.Element;
|
|
6042
6042
|
//#endregion
|
|
6043
|
-
//#region src/auth/components/ResetPassword.d.ts
|
|
6043
|
+
//#region ../../src/auth/components/ResetPassword.d.ts
|
|
6044
6044
|
interface ResetPasswordProps {
|
|
6045
6045
|
realmConfig: UserRealmConfig;
|
|
6046
6046
|
}
|
|
6047
6047
|
declare const ResetPassword: (props: ResetPasswordProps) => react_jsx_runtime0.JSX.Element;
|
|
6048
6048
|
//#endregion
|
|
6049
|
-
//#region src/auth/components/VerifyEmail.d.ts
|
|
6049
|
+
//#region ../../src/auth/components/VerifyEmail.d.ts
|
|
6050
6050
|
type VerifyEmailProps = {};
|
|
6051
6051
|
declare const VerifyEmail: (_props: VerifyEmailProps) => react_jsx_runtime0.JSX.Element;
|
|
6052
6052
|
//#endregion
|
|
6053
|
-
//#region src/auth/index.d.ts
|
|
6053
|
+
//#region ../../src/auth/index.d.ts
|
|
6054
6054
|
/**
|
|
6055
6055
|
* Login UI Module
|
|
6056
6056
|
*
|
|
6057
6057
|
* @module alepha.ui.auth
|
|
6058
6058
|
*/
|
|
6059
|
-
declare const AlephaUIAuth:
|
|
6059
|
+
declare const AlephaUIAuth: alepha1118.Service<alepha1118.Module>;
|
|
6060
6060
|
//#endregion
|
|
6061
6061
|
export { AlephaUIAuth, AuthRouter, Login, Register, ResetPassword, UserButton, type UserButtonProps, VerifyEmail };
|
|
6062
6062
|
//# sourceMappingURL=index.d.ts.map
|