@alepha/ui 0.13.7 → 0.13.8
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/index.d.ts +1921 -1399
- package/dist/auth/index.d.ts +562 -534
- package/dist/core/index.d.ts +51 -51
- package/package.json +15 -16
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 alepha1159 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";
|
|
@@ -25,33 +25,33 @@ import { PgTransactionConfig } from "drizzle-orm/pg-core/session";
|
|
|
25
25
|
import * as DrizzleKit from "drizzle-kit/api";
|
|
26
26
|
|
|
27
27
|
//#region ../../../alepha/src/security/schemas/userAccountInfoSchema.d.ts
|
|
28
|
-
declare const userAccountInfoSchema:
|
|
29
|
-
id:
|
|
30
|
-
name:
|
|
31
|
-
email:
|
|
32
|
-
username:
|
|
33
|
-
picture:
|
|
34
|
-
sessionId:
|
|
35
|
-
organizations:
|
|
36
|
-
roles:
|
|
28
|
+
declare const userAccountInfoSchema: alepha1159.TObject<{
|
|
29
|
+
id: alepha1159.TString;
|
|
30
|
+
name: alepha1159.TOptional<alepha1159.TString>;
|
|
31
|
+
email: alepha1159.TOptional<alepha1159.TString>;
|
|
32
|
+
username: alepha1159.TOptional<alepha1159.TString>;
|
|
33
|
+
picture: alepha1159.TOptional<alepha1159.TString>;
|
|
34
|
+
sessionId: alepha1159.TOptional<alepha1159.TString>;
|
|
35
|
+
organizations: alepha1159.TOptional<alepha1159.TArray<alepha1159.TString>>;
|
|
36
|
+
roles: alepha1159.TOptional<alepha1159.TArray<alepha1159.TString>>;
|
|
37
37
|
}>;
|
|
38
38
|
type UserAccount = Static<typeof userAccountInfoSchema>;
|
|
39
39
|
//#endregion
|
|
40
|
-
//#region ../../../alepha/src/server/schemas/errorSchema.d.ts
|
|
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/core/schemas/errorSchema.d.ts
|
|
41
|
+
declare const errorSchema: alepha1159.TObject<{
|
|
42
|
+
error: alepha1159.TString;
|
|
43
|
+
status: alepha1159.TInteger;
|
|
44
|
+
message: alepha1159.TString;
|
|
45
|
+
details: alepha1159.TOptional<alepha1159.TString>;
|
|
46
|
+
requestId: alepha1159.TOptional<alepha1159.TString>;
|
|
47
|
+
cause: alepha1159.TOptional<alepha1159.TObject<{
|
|
48
|
+
name: alepha1159.TString;
|
|
49
|
+
message: alepha1159.TString;
|
|
50
50
|
}>>;
|
|
51
51
|
}>;
|
|
52
52
|
type ErrorSchema = Static<typeof errorSchema>;
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region ../../../alepha/src/server/errors/HttpError.d.ts
|
|
54
|
+
//#region ../../../alepha/src/server/core/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;
|
|
@@ -114,11 +114,11 @@ interface Tree<T$1 extends Route> {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
|
-
//#region ../../../alepha/src/server/constants/routeMethods.d.ts
|
|
117
|
+
//#region ../../../alepha/src/server/core/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 ../../../alepha/src/server/helpers/ServerReply.d.ts
|
|
121
|
+
//#region ../../../alepha/src/server/core/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 ../../../alepha/src/server/services/UserAgentParser.d.ts
|
|
149
|
+
//#region ../../../alepha/src/server/core/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 ../../../alepha/src/server/interfaces/ServerRequest.d.ts
|
|
165
|
+
//#region ../../../alepha/src/server/core/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 {
|
|
@@ -285,15 +285,15 @@ interface WebRequestEvent {
|
|
|
285
285
|
}
|
|
286
286
|
//#endregion
|
|
287
287
|
//#region ../../../alepha/src/logger/schemas/logEntrySchema.d.ts
|
|
288
|
-
declare const logEntrySchema:
|
|
289
|
-
level:
|
|
290
|
-
message:
|
|
291
|
-
service:
|
|
292
|
-
module:
|
|
293
|
-
context:
|
|
294
|
-
app:
|
|
295
|
-
data:
|
|
296
|
-
timestamp:
|
|
288
|
+
declare const logEntrySchema: alepha1159.TObject<{
|
|
289
|
+
level: alepha1159.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
290
|
+
message: alepha1159.TString;
|
|
291
|
+
service: alepha1159.TString;
|
|
292
|
+
module: alepha1159.TString;
|
|
293
|
+
context: alepha1159.TOptional<alepha1159.TString>;
|
|
294
|
+
app: alepha1159.TOptional<alepha1159.TString>;
|
|
295
|
+
data: alepha1159.TOptional<alepha1159.TAny>;
|
|
296
|
+
timestamp: alepha1159.TNumber;
|
|
297
297
|
}>;
|
|
298
298
|
type LogEntry = Static<typeof logEntrySchema>;
|
|
299
299
|
//#endregion
|
|
@@ -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: alepha1159.HookPrimitive<"start">;
|
|
312
|
+
protected readonly onStop: alepha1159.HookPrimitive<"stop">;
|
|
313
313
|
setLocale(locale: string): void;
|
|
314
314
|
isDateTime(value: unknown): value is DateTime;
|
|
315
315
|
/**
|
|
@@ -441,7 +441,7 @@ declare class Logger implements LoggerInterface {
|
|
|
441
441
|
}
|
|
442
442
|
//#endregion
|
|
443
443
|
//#region ../../../alepha/src/logger/index.d.ts
|
|
444
|
-
declare const envSchema$
|
|
444
|
+
declare const envSchema$10: alepha1159.TObject<{
|
|
445
445
|
/**
|
|
446
446
|
* Default log level for the application.
|
|
447
447
|
*
|
|
@@ -458,17 +458,17 @@ declare const envSchema$9: alepha1165.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: alepha1159.TOptional<alepha1159.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 PrettyFormatterProvider}
|
|
466
466
|
* - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
|
|
467
467
|
*/
|
|
468
|
-
LOG_FORMAT:
|
|
468
|
+
LOG_FORMAT: alepha1159.TOptional<alepha1159.TUnsafe<"json" | "pretty" | "raw">>;
|
|
469
469
|
}>;
|
|
470
470
|
declare module "alepha" {
|
|
471
|
-
interface Env extends Partial<Static<typeof envSchema$
|
|
471
|
+
interface Env extends Partial<Static<typeof envSchema$10>> {}
|
|
472
472
|
interface State {
|
|
473
473
|
/**
|
|
474
474
|
* Current log level for the application or specific modules.
|
|
@@ -483,7 +483,7 @@ declare module "alepha" {
|
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
//#endregion
|
|
486
|
-
//#region ../../../alepha/src/server/services/ServerRequestParser.d.ts
|
|
486
|
+
//#region ../../../alepha/src/server/core/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 ../../../alepha/src/server/providers/ServerTimingProvider.d.ts
|
|
496
|
+
//#region ../../../alepha/src/server/core/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: alepha1159.HookPrimitive<"server:onRequest">;
|
|
506
|
+
readonly onResponse: alepha1159.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 ../../../alepha/src/server/providers/ServerRouterProvider.d.ts
|
|
513
|
+
//#region ../../../alepha/src/server/core/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 ../../../alepha/src/server/providers/ServerProvider.d.ts
|
|
552
|
+
//#region ../../../alepha/src/server/core/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: alepha1159.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: alepha1159.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 ../../../alepha/src/cache/providers/CacheProvider.d.ts
|
|
591
|
+
//#region ../../../alepha/src/cache/core/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 ../../../alepha/src/cache/primitives/$cache.d.ts
|
|
634
|
+
//#region ../../../alepha/src/cache/core/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 ../../../alepha/src/server/services/HttpClient.d.ts
|
|
701
|
+
//#region ../../../alepha/src/server/core/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 ../../../alepha/src/server/primitives/$action.d.ts
|
|
773
|
+
//#region ../../../alepha/src/server/core/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 ../../../alepha/src/server/primitives/$route.d.ts
|
|
911
|
+
//#region ../../../alepha/src/server/core/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 ../../../alepha/src/server/providers/BunHttpServerProvider.d.ts
|
|
919
|
-
declare const envSchema$
|
|
920
|
-
SERVER_PORT:
|
|
921
|
-
SERVER_HOST:
|
|
918
|
+
//#region ../../../alepha/src/server/core/providers/BunHttpServerProvider.d.ts
|
|
919
|
+
declare const envSchema$9: alepha1159.TObject<{
|
|
920
|
+
SERVER_PORT: alepha1159.TInteger;
|
|
921
|
+
SERVER_HOST: alepha1159.TString;
|
|
922
922
|
}>;
|
|
923
923
|
declare module "alepha" {
|
|
924
|
-
interface Env extends Partial<Static<typeof envSchema$
|
|
924
|
+
interface Env extends Partial<Static<typeof envSchema$9>> {}
|
|
925
925
|
}
|
|
926
926
|
//#endregion
|
|
927
|
-
//#region ../../../alepha/src/server/providers/NodeHttpServerProvider.d.ts
|
|
928
|
-
declare const envSchema$
|
|
929
|
-
SERVER_PORT:
|
|
930
|
-
SERVER_HOST:
|
|
927
|
+
//#region ../../../alepha/src/server/core/providers/NodeHttpServerProvider.d.ts
|
|
928
|
+
declare const envSchema$8: alepha1159.TObject<{
|
|
929
|
+
SERVER_PORT: alepha1159.TInteger;
|
|
930
|
+
SERVER_HOST: alepha1159.TString;
|
|
931
931
|
}>;
|
|
932
932
|
declare module "alepha" {
|
|
933
|
-
interface Env extends Partial<Static<typeof envSchema$
|
|
933
|
+
interface Env extends Partial<Static<typeof envSchema$8>> {}
|
|
934
934
|
}
|
|
935
935
|
//#endregion
|
|
936
|
-
//#region ../../../alepha/src/server/index.d.ts
|
|
936
|
+
//#region ../../../alepha/src/server/core/index.d.ts
|
|
937
937
|
declare module "alepha" {
|
|
938
938
|
interface State {
|
|
939
939
|
"alepha.node.server"?: Server;
|
|
@@ -1011,24 +1011,24 @@ interface UserAccountToken extends UserAccount {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
//#endregion
|
|
1013
1013
|
//#region ../../../alepha/src/security/schemas/permissionSchema.d.ts
|
|
1014
|
-
declare const permissionSchema:
|
|
1015
|
-
name:
|
|
1016
|
-
group:
|
|
1017
|
-
description:
|
|
1018
|
-
method:
|
|
1019
|
-
path:
|
|
1014
|
+
declare const permissionSchema: alepha1159.TObject<{
|
|
1015
|
+
name: alepha1159.TString;
|
|
1016
|
+
group: alepha1159.TOptional<alepha1159.TString>;
|
|
1017
|
+
description: alepha1159.TOptional<alepha1159.TString>;
|
|
1018
|
+
method: alepha1159.TOptional<alepha1159.TString>;
|
|
1019
|
+
path: alepha1159.TOptional<alepha1159.TString>;
|
|
1020
1020
|
}>;
|
|
1021
1021
|
type Permission = Static<typeof permissionSchema>;
|
|
1022
1022
|
//#endregion
|
|
1023
1023
|
//#region ../../../alepha/src/security/schemas/roleSchema.d.ts
|
|
1024
|
-
declare const roleSchema:
|
|
1025
|
-
name:
|
|
1026
|
-
description:
|
|
1027
|
-
default:
|
|
1028
|
-
permissions:
|
|
1029
|
-
name:
|
|
1030
|
-
ownership:
|
|
1031
|
-
exclude:
|
|
1024
|
+
declare const roleSchema: alepha1159.TObject<{
|
|
1025
|
+
name: alepha1159.TString;
|
|
1026
|
+
description: alepha1159.TOptional<alepha1159.TString>;
|
|
1027
|
+
default: alepha1159.TOptional<alepha1159.TBoolean>;
|
|
1028
|
+
permissions: alepha1159.TArray<alepha1159.TObject<{
|
|
1029
|
+
name: alepha1159.TString;
|
|
1030
|
+
ownership: alepha1159.TOptional<alepha1159.TBoolean>;
|
|
1031
|
+
exclude: alepha1159.TOptional<alepha1159.TArray<alepha1159.TString>>;
|
|
1032
1032
|
}>>;
|
|
1033
1033
|
}>;
|
|
1034
1034
|
type Role = Static<typeof roleSchema>;
|
|
@@ -1100,11 +1100,11 @@ interface JwtParseResult {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
//#endregion
|
|
1102
1102
|
//#region ../../../alepha/src/security/providers/SecurityProvider.d.ts
|
|
1103
|
-
declare const envSchema$
|
|
1104
|
-
APP_SECRET:
|
|
1103
|
+
declare const envSchema$7: alepha1159.TObject<{
|
|
1104
|
+
APP_SECRET: alepha1159.TString;
|
|
1105
1105
|
}>;
|
|
1106
1106
|
declare module "alepha" {
|
|
1107
|
-
interface Env extends Partial<Static<typeof envSchema$
|
|
1107
|
+
interface Env extends Partial<Static<typeof envSchema$7>> {}
|
|
1108
1108
|
}
|
|
1109
1109
|
declare class SecurityProvider {
|
|
1110
1110
|
protected readonly UNKNOWN_USER_NAME = "Anonymous User";
|
|
@@ -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: alepha1159.HookPrimitive<"start">;
|
|
1129
1129
|
/**
|
|
1130
1130
|
* Adds a role to one or more realms.
|
|
1131
1131
|
*
|
|
@@ -1396,19 +1396,19 @@ declare module "alepha" {
|
|
|
1396
1396
|
* @module alepha.security
|
|
1397
1397
|
*/
|
|
1398
1398
|
//#endregion
|
|
1399
|
-
//#region ../../../alepha/src/server
|
|
1399
|
+
//#region ../../../alepha/src/server/security/providers/ServerBasicAuthProvider.d.ts
|
|
1400
1400
|
interface BasicAuthOptions {
|
|
1401
1401
|
username: string;
|
|
1402
1402
|
password: string;
|
|
1403
1403
|
}
|
|
1404
1404
|
//#endregion
|
|
1405
|
-
//#region ../../../alepha/src/server
|
|
1405
|
+
//#region ../../../alepha/src/server/security/providers/ServerSecurityProvider.d.ts
|
|
1406
1406
|
type ServerRouteSecure = {
|
|
1407
1407
|
realm?: string;
|
|
1408
1408
|
basic?: BasicAuthOptions;
|
|
1409
1409
|
};
|
|
1410
1410
|
//#endregion
|
|
1411
|
-
//#region ../../../alepha/src/server
|
|
1411
|
+
//#region ../../../alepha/src/server/security/index.d.ts
|
|
1412
1412
|
declare module "alepha" {
|
|
1413
1413
|
interface State {
|
|
1414
1414
|
/**
|
|
@@ -1460,30 +1460,30 @@ declare module "alepha/server" {
|
|
|
1460
1460
|
* @module alepha.server.security
|
|
1461
1461
|
*/
|
|
1462
1462
|
//#endregion
|
|
1463
|
-
//#region ../../../alepha/src/server
|
|
1464
|
-
declare const apiLinkSchema:
|
|
1465
|
-
name:
|
|
1466
|
-
group:
|
|
1467
|
-
path:
|
|
1468
|
-
method:
|
|
1469
|
-
requestBodyType:
|
|
1470
|
-
service:
|
|
1463
|
+
//#region ../../../alepha/src/server/links/schemas/apiLinksResponseSchema.d.ts
|
|
1464
|
+
declare const apiLinkSchema: alepha1159.TObject<{
|
|
1465
|
+
name: alepha1159.TString;
|
|
1466
|
+
group: alepha1159.TOptional<alepha1159.TString>;
|
|
1467
|
+
path: alepha1159.TString;
|
|
1468
|
+
method: alepha1159.TOptional<alepha1159.TString>;
|
|
1469
|
+
requestBodyType: alepha1159.TOptional<alepha1159.TString>;
|
|
1470
|
+
service: alepha1159.TOptional<alepha1159.TString>;
|
|
1471
1471
|
}>;
|
|
1472
|
-
declare const apiLinksResponseSchema:
|
|
1473
|
-
prefix:
|
|
1474
|
-
links:
|
|
1475
|
-
name:
|
|
1476
|
-
group:
|
|
1477
|
-
path:
|
|
1478
|
-
method:
|
|
1479
|
-
requestBodyType:
|
|
1480
|
-
service:
|
|
1472
|
+
declare const apiLinksResponseSchema: alepha1159.TObject<{
|
|
1473
|
+
prefix: alepha1159.TOptional<alepha1159.TString>;
|
|
1474
|
+
links: alepha1159.TArray<alepha1159.TObject<{
|
|
1475
|
+
name: alepha1159.TString;
|
|
1476
|
+
group: alepha1159.TOptional<alepha1159.TString>;
|
|
1477
|
+
path: alepha1159.TString;
|
|
1478
|
+
method: alepha1159.TOptional<alepha1159.TString>;
|
|
1479
|
+
requestBodyType: alepha1159.TOptional<alepha1159.TString>;
|
|
1480
|
+
service: alepha1159.TOptional<alepha1159.TString>;
|
|
1481
1481
|
}>>;
|
|
1482
1482
|
}>;
|
|
1483
1483
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
1484
1484
|
type ApiLink = Static<typeof apiLinkSchema>;
|
|
1485
1485
|
//#endregion
|
|
1486
|
-
//#region ../../../alepha/src/server
|
|
1486
|
+
//#region ../../../alepha/src/server/links/providers/LinkProvider.d.ts
|
|
1487
1487
|
/**
|
|
1488
1488
|
* Browser, SSR friendly, service to handle links.
|
|
1489
1489
|
*/
|
|
@@ -1550,7 +1550,7 @@ interface VirtualAction<T$1 extends RequestConfigSchema> extends Pick<ActionPrim
|
|
|
1550
1550
|
can: () => boolean;
|
|
1551
1551
|
}
|
|
1552
1552
|
//#endregion
|
|
1553
|
-
//#region ../../../alepha/src/server
|
|
1553
|
+
//#region ../../../alepha/src/server/proxy/primitives/$proxy.d.ts
|
|
1554
1554
|
type ProxyPrimitiveOptions = {
|
|
1555
1555
|
/**
|
|
1556
1556
|
* Path pattern to match for proxying requests.
|
|
@@ -1668,18 +1668,18 @@ type ProxyPrimitiveOptions = {
|
|
|
1668
1668
|
rewrite?: (url: URL) => void;
|
|
1669
1669
|
};
|
|
1670
1670
|
//#endregion
|
|
1671
|
-
//#region ../../../alepha/src/server
|
|
1671
|
+
//#region ../../../alepha/src/server/proxy/providers/ServerProxyProvider.d.ts
|
|
1672
1672
|
declare class ServerProxyProvider {
|
|
1673
1673
|
protected readonly log: Logger;
|
|
1674
1674
|
protected readonly routerProvider: ServerRouterProvider;
|
|
1675
1675
|
protected readonly alepha: Alepha;
|
|
1676
|
-
protected readonly configure:
|
|
1676
|
+
protected readonly configure: alepha1159.HookPrimitive<"configure">;
|
|
1677
1677
|
createProxy(options: ProxyPrimitiveOptions): void;
|
|
1678
1678
|
createProxyHandler(target: string, options: Omit<ProxyPrimitiveOptions, "path">): ServerHandler;
|
|
1679
1679
|
private getRawRequestBody;
|
|
1680
1680
|
}
|
|
1681
1681
|
//#endregion
|
|
1682
|
-
//#region ../../../alepha/src/server
|
|
1682
|
+
//#region ../../../alepha/src/server/links/primitives/$remote.d.ts
|
|
1683
1683
|
interface RemotePrimitiveOptions {
|
|
1684
1684
|
/**
|
|
1685
1685
|
* The URL of the remote service.
|
|
@@ -1866,7 +1866,7 @@ interface RetryPrimitiveFn<T$1 extends (...args: any[]) => any> extends RetryPri
|
|
|
1866
1866
|
(...args: Parameters<T$1>): Promise<ReturnType<T$1>>;
|
|
1867
1867
|
}
|
|
1868
1868
|
//#endregion
|
|
1869
|
-
//#region ../../../alepha/src/server
|
|
1869
|
+
//#region ../../../alepha/src/server/links/providers/RemotePrimitiveProvider.d.ts
|
|
1870
1870
|
declare class RemotePrimitiveProvider {
|
|
1871
1871
|
protected readonly env: {
|
|
1872
1872
|
SERVER_API_PREFIX: string;
|
|
@@ -1877,8 +1877,8 @@ declare class RemotePrimitiveProvider {
|
|
|
1877
1877
|
protected readonly remotes: Array<ServerRemote>;
|
|
1878
1878
|
protected readonly log: Logger;
|
|
1879
1879
|
getRemotes(): ServerRemote[];
|
|
1880
|
-
readonly configure:
|
|
1881
|
-
readonly start:
|
|
1880
|
+
readonly configure: alepha1159.HookPrimitive<"configure">;
|
|
1881
|
+
readonly start: alepha1159.HookPrimitive<"start">;
|
|
1882
1882
|
registerRemote(value: RemotePrimitive): Promise<void>;
|
|
1883
1883
|
protected readonly fetchLinks: RetryPrimitiveFn<(opts: FetchLinksOptions) => Promise<ApiLinksResponse>>;
|
|
1884
1884
|
}
|
|
@@ -1936,7 +1936,7 @@ interface ServerRemote {
|
|
|
1936
1936
|
prefix: string;
|
|
1937
1937
|
}
|
|
1938
1938
|
//#endregion
|
|
1939
|
-
//#region ../../../alepha/src/server
|
|
1939
|
+
//#region ../../../alepha/src/server/links/providers/ServerLinksProvider.d.ts
|
|
1940
1940
|
declare class ServerLinksProvider {
|
|
1941
1941
|
protected readonly env: {
|
|
1942
1942
|
SERVER_API_PREFIX: string;
|
|
@@ -1946,22 +1946,22 @@ declare class ServerLinksProvider {
|
|
|
1946
1946
|
protected readonly remoteProvider: RemotePrimitiveProvider;
|
|
1947
1947
|
protected readonly serverTimingProvider: ServerTimingProvider;
|
|
1948
1948
|
get prefix(): string;
|
|
1949
|
-
readonly onRoute:
|
|
1949
|
+
readonly onRoute: alepha1159.HookPrimitive<"configure">;
|
|
1950
1950
|
/**
|
|
1951
1951
|
* First API - Get all API links for the user.
|
|
1952
1952
|
*
|
|
1953
1953
|
* This is based on the user's permissions.
|
|
1954
1954
|
*/
|
|
1955
1955
|
readonly links: RoutePrimitive<{
|
|
1956
|
-
response:
|
|
1957
|
-
prefix:
|
|
1958
|
-
links:
|
|
1959
|
-
name:
|
|
1960
|
-
group:
|
|
1961
|
-
path:
|
|
1962
|
-
method:
|
|
1963
|
-
requestBodyType:
|
|
1964
|
-
service:
|
|
1956
|
+
response: alepha1159.TObject<{
|
|
1957
|
+
prefix: alepha1159.TOptional<alepha1159.TString>;
|
|
1958
|
+
links: alepha1159.TArray<alepha1159.TObject<{
|
|
1959
|
+
name: alepha1159.TString;
|
|
1960
|
+
group: alepha1159.TOptional<alepha1159.TString>;
|
|
1961
|
+
path: alepha1159.TString;
|
|
1962
|
+
method: alepha1159.TOptional<alepha1159.TString>;
|
|
1963
|
+
requestBodyType: alepha1159.TOptional<alepha1159.TString>;
|
|
1964
|
+
service: alepha1159.TOptional<alepha1159.TString>;
|
|
1965
1965
|
}>>;
|
|
1966
1966
|
}>;
|
|
1967
1967
|
}>;
|
|
@@ -1972,10 +1972,10 @@ declare class ServerLinksProvider {
|
|
|
1972
1972
|
* I mean for 150+ links, you got 50ms of serialization time.
|
|
1973
1973
|
*/
|
|
1974
1974
|
readonly schema: RoutePrimitive<{
|
|
1975
|
-
params:
|
|
1976
|
-
name:
|
|
1975
|
+
params: alepha1159.TObject<{
|
|
1976
|
+
name: alepha1159.TString;
|
|
1977
1977
|
}>;
|
|
1978
|
-
response:
|
|
1978
|
+
response: alepha1159.TRecord<string, alepha1159.TAny>;
|
|
1979
1979
|
}>;
|
|
1980
1980
|
getSchemaByName(name: string, options?: GetApiLinksOptions): Promise<RequestConfigSchema>;
|
|
1981
1981
|
/**
|
|
@@ -1989,7 +1989,7 @@ interface GetApiLinksOptions {
|
|
|
1989
1989
|
authorization?: string;
|
|
1990
1990
|
}
|
|
1991
1991
|
//#endregion
|
|
1992
|
-
//#region ../../../alepha/src/server
|
|
1992
|
+
//#region ../../../alepha/src/server/links/index.d.ts
|
|
1993
1993
|
declare module "alepha" {
|
|
1994
1994
|
interface State {
|
|
1995
1995
|
/**
|
|
@@ -2013,7 +2013,7 @@ declare module "alepha" {
|
|
|
2013
2013
|
* @module alepha.server.links
|
|
2014
2014
|
*/
|
|
2015
2015
|
//#endregion
|
|
2016
|
-
//#region ../../../alepha/src/server
|
|
2016
|
+
//#region ../../../alepha/src/server/cache/providers/ServerCacheProvider.d.ts
|
|
2017
2017
|
declare module "alepha/server" {
|
|
2018
2018
|
interface ServerRoute {
|
|
2019
2019
|
/**
|
|
@@ -2128,11 +2128,11 @@ declare class Redirection extends Error {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
//#endregion
|
|
2130
2130
|
//#region ../../../react/src/core/providers/ReactPageProvider.d.ts
|
|
2131
|
-
declare const envSchema$
|
|
2132
|
-
REACT_STRICT_MODE:
|
|
2131
|
+
declare const envSchema$6: alepha1159.TObject<{
|
|
2132
|
+
REACT_STRICT_MODE: alepha1159.TBoolean;
|
|
2133
2133
|
}>;
|
|
2134
2134
|
declare module "alepha" {
|
|
2135
|
-
interface Env extends Partial<Static<typeof envSchema$
|
|
2135
|
+
interface Env extends Partial<Static<typeof envSchema$6>> {}
|
|
2136
2136
|
}
|
|
2137
2137
|
interface PageRouteEntry extends Omit<PagePrimitiveOptions, "children" | "parent"> {
|
|
2138
2138
|
children?: PageRouteEntry[];
|
|
@@ -2439,17 +2439,17 @@ type CssAnimation = {
|
|
|
2439
2439
|
};
|
|
2440
2440
|
//#endregion
|
|
2441
2441
|
//#region ../../../react/src/core/providers/ReactBrowserProvider.d.ts
|
|
2442
|
-
declare const envSchema$
|
|
2443
|
-
REACT_ROOT_ID:
|
|
2442
|
+
declare const envSchema$5: alepha1159.TObject<{
|
|
2443
|
+
REACT_ROOT_ID: alepha1159.TString;
|
|
2444
2444
|
}>;
|
|
2445
2445
|
declare module "alepha" {
|
|
2446
|
-
interface Env extends Partial<Static<typeof envSchema$
|
|
2446
|
+
interface Env extends Partial<Static<typeof envSchema$5>> {}
|
|
2447
2447
|
}
|
|
2448
2448
|
/**
|
|
2449
2449
|
* React browser renderer configuration atom
|
|
2450
2450
|
*/
|
|
2451
|
-
declare const reactBrowserOptions:
|
|
2452
|
-
scrollRestoration:
|
|
2451
|
+
declare const reactBrowserOptions: alepha1159.Atom<alepha1159.TObject<{
|
|
2452
|
+
scrollRestoration: alepha1159.TUnsafe<"top" | "manual">;
|
|
2453
2453
|
}>, "alepha.react.browser.options">;
|
|
2454
2454
|
type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
|
|
2455
2455
|
declare module "alepha" {
|
|
@@ -2921,12 +2921,12 @@ declare class FileDetector {
|
|
|
2921
2921
|
}
|
|
2922
2922
|
//#endregion
|
|
2923
2923
|
//#region ../../../react/src/core/providers/ReactServerProvider.d.ts
|
|
2924
|
-
declare const envSchema$
|
|
2925
|
-
REACT_SSR_ENABLED:
|
|
2926
|
-
REACT_ROOT_ID:
|
|
2924
|
+
declare const envSchema$4: alepha1159.TObject<{
|
|
2925
|
+
REACT_SSR_ENABLED: alepha1159.TOptional<alepha1159.TBoolean>;
|
|
2926
|
+
REACT_ROOT_ID: alepha1159.TString;
|
|
2927
2927
|
}>;
|
|
2928
2928
|
declare module "alepha" {
|
|
2929
|
-
interface Env extends Partial<Static<typeof envSchema$
|
|
2929
|
+
interface Env extends Partial<Static<typeof envSchema$4>> {}
|
|
2930
2930
|
interface State {
|
|
2931
2931
|
"alepha.react.server.ssr"?: boolean;
|
|
2932
2932
|
"alepha.react.server.template"?: string;
|
|
@@ -2935,11 +2935,11 @@ declare module "alepha" {
|
|
|
2935
2935
|
/**
|
|
2936
2936
|
* React server provider configuration atom
|
|
2937
2937
|
*/
|
|
2938
|
-
declare const reactServerOptions:
|
|
2939
|
-
publicDir:
|
|
2940
|
-
staticServer:
|
|
2941
|
-
disabled:
|
|
2942
|
-
path:
|
|
2938
|
+
declare const reactServerOptions: alepha1159.Atom<alepha1159.TObject<{
|
|
2939
|
+
publicDir: alepha1159.TString;
|
|
2940
|
+
staticServer: alepha1159.TObject<{
|
|
2941
|
+
disabled: alepha1159.TBoolean;
|
|
2942
|
+
path: alepha1159.TString;
|
|
2943
2943
|
}>;
|
|
2944
2944
|
}>, "alepha.react.server.options">;
|
|
2945
2945
|
type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
|
|
@@ -3052,35 +3052,35 @@ declare module "alepha" {
|
|
|
3052
3052
|
* @module alepha.react
|
|
3053
3053
|
*/
|
|
3054
3054
|
//#endregion
|
|
3055
|
-
//#region ../../../alepha/src/server
|
|
3056
|
-
declare const authenticationProviderSchema:
|
|
3057
|
-
name:
|
|
3058
|
-
type:
|
|
3055
|
+
//#region ../../../alepha/src/server/auth/schemas/authenticationProviderSchema.d.ts
|
|
3056
|
+
declare const authenticationProviderSchema: alepha1159.TObject<{
|
|
3057
|
+
name: alepha1159.TString;
|
|
3058
|
+
type: alepha1159.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
3059
3059
|
}>;
|
|
3060
3060
|
type AuthenticationProvider = Static<typeof authenticationProviderSchema>;
|
|
3061
3061
|
//#endregion
|
|
3062
|
-
//#region ../../../alepha/src/server
|
|
3063
|
-
declare const tokensSchema:
|
|
3064
|
-
provider:
|
|
3065
|
-
access_token:
|
|
3066
|
-
issued_at:
|
|
3067
|
-
expires_in:
|
|
3068
|
-
refresh_token:
|
|
3069
|
-
refresh_token_expires_in:
|
|
3070
|
-
refresh_expires_in:
|
|
3071
|
-
id_token:
|
|
3072
|
-
scope:
|
|
3062
|
+
//#region ../../../alepha/src/server/auth/schemas/tokensSchema.d.ts
|
|
3063
|
+
declare const tokensSchema: alepha1159.TObject<{
|
|
3064
|
+
provider: alepha1159.TString;
|
|
3065
|
+
access_token: alepha1159.TString;
|
|
3066
|
+
issued_at: alepha1159.TNumber;
|
|
3067
|
+
expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3068
|
+
refresh_token: alepha1159.TOptional<alepha1159.TString>;
|
|
3069
|
+
refresh_token_expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3070
|
+
refresh_expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3071
|
+
id_token: alepha1159.TOptional<alepha1159.TString>;
|
|
3072
|
+
scope: alepha1159.TOptional<alepha1159.TString>;
|
|
3073
3073
|
}>;
|
|
3074
3074
|
type Tokens = Static<typeof tokensSchema>;
|
|
3075
3075
|
//#endregion
|
|
3076
|
-
//#region ../../../alepha/src/server
|
|
3076
|
+
//#region ../../../alepha/src/server/cookies/services/CookieParser.d.ts
|
|
3077
3077
|
declare class CookieParser {
|
|
3078
3078
|
parseRequestCookies(header: string): Record<string, string>;
|
|
3079
3079
|
serializeResponseCookies(cookies: Record<string, Cookie | null>, isHttps: boolean): string[];
|
|
3080
3080
|
cookieToString(name: string, cookie: Cookie, isHttps?: boolean): string;
|
|
3081
3081
|
}
|
|
3082
3082
|
//#endregion
|
|
3083
|
-
//#region ../../../alepha/src/server
|
|
3083
|
+
//#region ../../../alepha/src/server/cookies/providers/ServerCookiesProvider.d.ts
|
|
3084
3084
|
declare class ServerCookiesProvider {
|
|
3085
3085
|
protected readonly alepha: Alepha;
|
|
3086
3086
|
protected readonly log: Logger;
|
|
@@ -3093,9 +3093,9 @@ declare class ServerCookiesProvider {
|
|
|
3093
3093
|
protected readonly IV_LENGTH = 16;
|
|
3094
3094
|
protected readonly AUTH_TAG_LENGTH = 16;
|
|
3095
3095
|
protected readonly SIGNATURE_LENGTH = 32;
|
|
3096
|
-
readonly onRequest:
|
|
3097
|
-
readonly onAction:
|
|
3098
|
-
readonly onSend:
|
|
3096
|
+
readonly onRequest: alepha1159.HookPrimitive<"server:onRequest">;
|
|
3097
|
+
readonly onAction: alepha1159.HookPrimitive<"action:onRequest">;
|
|
3098
|
+
readonly onSend: alepha1159.HookPrimitive<"server:onSend">;
|
|
3099
3099
|
protected getCookiesFromContext(cookies?: Cookies): Cookies;
|
|
3100
3100
|
getCookie<T$1 extends TSchema>(name: string, options: CookiePrimitiveOptions<T$1>, contextCookies?: Cookies): Static<T$1> | undefined;
|
|
3101
3101
|
setCookie<T$1 extends TSchema>(name: string, options: CookiePrimitiveOptions<T$1>, data: Static<T$1>, contextCookies?: Cookies): void;
|
|
@@ -3106,7 +3106,7 @@ declare class ServerCookiesProvider {
|
|
|
3106
3106
|
protected sign(data: string): string;
|
|
3107
3107
|
}
|
|
3108
3108
|
//#endregion
|
|
3109
|
-
//#region ../../../alepha/src/server
|
|
3109
|
+
//#region ../../../alepha/src/server/cookies/primitives/$cookie.d.ts
|
|
3110
3110
|
interface CookiePrimitiveOptions<T$1 extends TSchema> {
|
|
3111
3111
|
/** The schema for the cookie's value, used for validation and type safety. */
|
|
3112
3112
|
schema: T$1;
|
|
@@ -3159,7 +3159,7 @@ interface Cookie {
|
|
|
3159
3159
|
domain?: string;
|
|
3160
3160
|
}
|
|
3161
3161
|
//#endregion
|
|
3162
|
-
//#region ../../../alepha/src/server
|
|
3162
|
+
//#region ../../../alepha/src/server/cookies/index.d.ts
|
|
3163
3163
|
declare module "alepha/server" {
|
|
3164
3164
|
interface ServerRequest {
|
|
3165
3165
|
cookies: Cookies;
|
|
@@ -3176,42 +3176,42 @@ declare module "alepha/server" {
|
|
|
3176
3176
|
* @module alepha.server.cookies
|
|
3177
3177
|
*/
|
|
3178
3178
|
//#endregion
|
|
3179
|
-
//#region ../../../alepha/src/server
|
|
3179
|
+
//#region ../../../alepha/src/server/auth/providers/ServerAuthProvider.d.ts
|
|
3180
3180
|
declare class ServerAuthProvider {
|
|
3181
3181
|
protected readonly log: Logger;
|
|
3182
3182
|
protected readonly alepha: Alepha;
|
|
3183
3183
|
protected readonly serverCookiesProvider: ServerCookiesProvider;
|
|
3184
3184
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
3185
3185
|
protected readonly serverLinksProvider: ServerLinksProvider;
|
|
3186
|
-
protected readonly authorizationCode: AbstractCookiePrimitive<
|
|
3187
|
-
provider:
|
|
3188
|
-
realm:
|
|
3189
|
-
codeVerifier:
|
|
3190
|
-
redirectUri:
|
|
3191
|
-
state:
|
|
3192
|
-
nonce:
|
|
3186
|
+
protected readonly authorizationCode: AbstractCookiePrimitive<alepha1159.TObject<{
|
|
3187
|
+
provider: alepha1159.TString;
|
|
3188
|
+
realm: alepha1159.TOptional<alepha1159.TString>;
|
|
3189
|
+
codeVerifier: alepha1159.TOptional<alepha1159.TString>;
|
|
3190
|
+
redirectUri: alepha1159.TOptional<alepha1159.TString>;
|
|
3191
|
+
state: alepha1159.TOptional<alepha1159.TString>;
|
|
3192
|
+
nonce: alepha1159.TOptional<alepha1159.TString>;
|
|
3193
3193
|
}>>;
|
|
3194
|
-
readonly tokens: AbstractCookiePrimitive<
|
|
3195
|
-
provider:
|
|
3196
|
-
access_token:
|
|
3197
|
-
issued_at:
|
|
3198
|
-
expires_in:
|
|
3199
|
-
refresh_token:
|
|
3200
|
-
refresh_token_expires_in:
|
|
3201
|
-
refresh_expires_in:
|
|
3202
|
-
id_token:
|
|
3203
|
-
scope:
|
|
3194
|
+
readonly tokens: AbstractCookiePrimitive<alepha1159.TObject<{
|
|
3195
|
+
provider: alepha1159.TString;
|
|
3196
|
+
access_token: alepha1159.TString;
|
|
3197
|
+
issued_at: alepha1159.TNumber;
|
|
3198
|
+
expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3199
|
+
refresh_token: alepha1159.TOptional<alepha1159.TString>;
|
|
3200
|
+
refresh_token_expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3201
|
+
refresh_expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3202
|
+
id_token: alepha1159.TOptional<alepha1159.TString>;
|
|
3203
|
+
scope: alepha1159.TOptional<alepha1159.TString>;
|
|
3204
3204
|
}>>;
|
|
3205
3205
|
get identities(): Array<AuthPrimitive>;
|
|
3206
3206
|
getAuthenticationProviders(filters?: {
|
|
3207
3207
|
realmName?: string;
|
|
3208
3208
|
}): AuthenticationProvider[];
|
|
3209
|
-
protected readonly configure:
|
|
3209
|
+
protected readonly configure: alepha1159.HookPrimitive<"configure">;
|
|
3210
3210
|
protected getAccessTokens(tokens: Tokens): string | undefined;
|
|
3211
3211
|
/**
|
|
3212
3212
|
* Fill request headers with access token from cookies or fallback to provider's fallback function.
|
|
3213
3213
|
*/
|
|
3214
|
-
protected readonly onRequest:
|
|
3214
|
+
protected readonly onRequest: alepha1159.HookPrimitive<"server:onRequest">;
|
|
3215
3215
|
/**
|
|
3216
3216
|
* Convert cookies to tokens.
|
|
3217
3217
|
* If the tokens are expired, try to refresh them using the refresh token.
|
|
@@ -3222,26 +3222,26 @@ declare class ServerAuthProvider {
|
|
|
3222
3222
|
* Get user information.
|
|
3223
3223
|
*/
|
|
3224
3224
|
readonly userinfo: RoutePrimitive<{
|
|
3225
|
-
response:
|
|
3226
|
-
user:
|
|
3227
|
-
id:
|
|
3228
|
-
name:
|
|
3229
|
-
email:
|
|
3230
|
-
username:
|
|
3231
|
-
picture:
|
|
3232
|
-
sessionId:
|
|
3233
|
-
organizations:
|
|
3234
|
-
roles:
|
|
3225
|
+
response: alepha1159.TObject<{
|
|
3226
|
+
user: alepha1159.TOptional<alepha1159.TObject<{
|
|
3227
|
+
id: alepha1159.TString;
|
|
3228
|
+
name: alepha1159.TOptional<alepha1159.TString>;
|
|
3229
|
+
email: alepha1159.TOptional<alepha1159.TString>;
|
|
3230
|
+
username: alepha1159.TOptional<alepha1159.TString>;
|
|
3231
|
+
picture: alepha1159.TOptional<alepha1159.TString>;
|
|
3232
|
+
sessionId: alepha1159.TOptional<alepha1159.TString>;
|
|
3233
|
+
organizations: alepha1159.TOptional<alepha1159.TArray<alepha1159.TString>>;
|
|
3234
|
+
roles: alepha1159.TOptional<alepha1159.TArray<alepha1159.TString>>;
|
|
3235
3235
|
}>>;
|
|
3236
|
-
api:
|
|
3237
|
-
prefix:
|
|
3238
|
-
links:
|
|
3239
|
-
name:
|
|
3240
|
-
group:
|
|
3241
|
-
path:
|
|
3242
|
-
method:
|
|
3243
|
-
requestBodyType:
|
|
3244
|
-
service:
|
|
3236
|
+
api: alepha1159.TObject<{
|
|
3237
|
+
prefix: alepha1159.TOptional<alepha1159.TString>;
|
|
3238
|
+
links: alepha1159.TArray<alepha1159.TObject<{
|
|
3239
|
+
name: alepha1159.TString;
|
|
3240
|
+
group: alepha1159.TOptional<alepha1159.TString>;
|
|
3241
|
+
path: alepha1159.TString;
|
|
3242
|
+
method: alepha1159.TOptional<alepha1159.TString>;
|
|
3243
|
+
requestBodyType: alepha1159.TOptional<alepha1159.TString>;
|
|
3244
|
+
service: alepha1159.TOptional<alepha1159.TString>;
|
|
3245
3245
|
}>>;
|
|
3246
3246
|
}>;
|
|
3247
3247
|
}>;
|
|
@@ -3250,66 +3250,66 @@ declare class ServerAuthProvider {
|
|
|
3250
3250
|
* Refresh a token for internal providers.
|
|
3251
3251
|
*/
|
|
3252
3252
|
readonly refresh: RoutePrimitive<{
|
|
3253
|
-
query:
|
|
3254
|
-
provider:
|
|
3253
|
+
query: alepha1159.TObject<{
|
|
3254
|
+
provider: alepha1159.TString;
|
|
3255
3255
|
}>;
|
|
3256
|
-
body:
|
|
3257
|
-
refresh_token:
|
|
3258
|
-
access_token:
|
|
3256
|
+
body: alepha1159.TObject<{
|
|
3257
|
+
refresh_token: alepha1159.TString;
|
|
3258
|
+
access_token: alepha1159.TOptional<alepha1159.TString>;
|
|
3259
3259
|
}>;
|
|
3260
|
-
response:
|
|
3261
|
-
provider:
|
|
3262
|
-
access_token:
|
|
3263
|
-
issued_at:
|
|
3264
|
-
expires_in:
|
|
3265
|
-
refresh_token:
|
|
3266
|
-
refresh_token_expires_in:
|
|
3267
|
-
refresh_expires_in:
|
|
3268
|
-
id_token:
|
|
3269
|
-
scope:
|
|
3260
|
+
response: alepha1159.TObject<{
|
|
3261
|
+
provider: alepha1159.TString;
|
|
3262
|
+
access_token: alepha1159.TString;
|
|
3263
|
+
issued_at: alepha1159.TNumber;
|
|
3264
|
+
expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3265
|
+
refresh_token: alepha1159.TOptional<alepha1159.TString>;
|
|
3266
|
+
refresh_token_expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3267
|
+
refresh_expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3268
|
+
id_token: alepha1159.TOptional<alepha1159.TString>;
|
|
3269
|
+
scope: alepha1159.TOptional<alepha1159.TString>;
|
|
3270
3270
|
}>;
|
|
3271
3271
|
}>;
|
|
3272
3272
|
/**
|
|
3273
3273
|
* Login for local password-based authentication.
|
|
3274
3274
|
*/
|
|
3275
3275
|
readonly token: RoutePrimitive<{
|
|
3276
|
-
query:
|
|
3277
|
-
provider:
|
|
3278
|
-
realm:
|
|
3276
|
+
query: alepha1159.TObject<{
|
|
3277
|
+
provider: alepha1159.TString;
|
|
3278
|
+
realm: alepha1159.TOptional<alepha1159.TString>;
|
|
3279
3279
|
}>;
|
|
3280
|
-
body:
|
|
3281
|
-
username:
|
|
3282
|
-
password:
|
|
3280
|
+
body: alepha1159.TObject<{
|
|
3281
|
+
username: alepha1159.TString;
|
|
3282
|
+
password: alepha1159.TString;
|
|
3283
3283
|
}>;
|
|
3284
|
-
response:
|
|
3285
|
-
provider:
|
|
3286
|
-
access_token:
|
|
3287
|
-
issued_at:
|
|
3288
|
-
expires_in:
|
|
3289
|
-
refresh_token:
|
|
3290
|
-
refresh_token_expires_in:
|
|
3291
|
-
refresh_expires_in:
|
|
3292
|
-
id_token:
|
|
3293
|
-
scope:
|
|
3294
|
-
user:
|
|
3295
|
-
id:
|
|
3296
|
-
name:
|
|
3297
|
-
email:
|
|
3298
|
-
username:
|
|
3299
|
-
picture:
|
|
3300
|
-
sessionId:
|
|
3301
|
-
organizations:
|
|
3302
|
-
roles:
|
|
3284
|
+
response: alepha1159.TObject<{
|
|
3285
|
+
provider: alepha1159.TString;
|
|
3286
|
+
access_token: alepha1159.TString;
|
|
3287
|
+
issued_at: alepha1159.TNumber;
|
|
3288
|
+
expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3289
|
+
refresh_token: alepha1159.TOptional<alepha1159.TString>;
|
|
3290
|
+
refresh_token_expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3291
|
+
refresh_expires_in: alepha1159.TOptional<alepha1159.TNumber>;
|
|
3292
|
+
id_token: alepha1159.TOptional<alepha1159.TString>;
|
|
3293
|
+
scope: alepha1159.TOptional<alepha1159.TString>;
|
|
3294
|
+
user: alepha1159.TObject<{
|
|
3295
|
+
id: alepha1159.TString;
|
|
3296
|
+
name: alepha1159.TOptional<alepha1159.TString>;
|
|
3297
|
+
email: alepha1159.TOptional<alepha1159.TString>;
|
|
3298
|
+
username: alepha1159.TOptional<alepha1159.TString>;
|
|
3299
|
+
picture: alepha1159.TOptional<alepha1159.TString>;
|
|
3300
|
+
sessionId: alepha1159.TOptional<alepha1159.TString>;
|
|
3301
|
+
organizations: alepha1159.TOptional<alepha1159.TArray<alepha1159.TString>>;
|
|
3302
|
+
roles: alepha1159.TOptional<alepha1159.TArray<alepha1159.TString>>;
|
|
3303
3303
|
}>;
|
|
3304
|
-
api:
|
|
3305
|
-
prefix:
|
|
3306
|
-
links:
|
|
3307
|
-
name:
|
|
3308
|
-
group:
|
|
3309
|
-
path:
|
|
3310
|
-
method:
|
|
3311
|
-
requestBodyType:
|
|
3312
|
-
service:
|
|
3304
|
+
api: alepha1159.TObject<{
|
|
3305
|
+
prefix: alepha1159.TOptional<alepha1159.TString>;
|
|
3306
|
+
links: alepha1159.TArray<alepha1159.TObject<{
|
|
3307
|
+
name: alepha1159.TString;
|
|
3308
|
+
group: alepha1159.TOptional<alepha1159.TString>;
|
|
3309
|
+
path: alepha1159.TString;
|
|
3310
|
+
method: alepha1159.TOptional<alepha1159.TString>;
|
|
3311
|
+
requestBodyType: alepha1159.TOptional<alepha1159.TString>;
|
|
3312
|
+
service: alepha1159.TOptional<alepha1159.TString>;
|
|
3313
3313
|
}>>;
|
|
3314
3314
|
}>;
|
|
3315
3315
|
}>;
|
|
@@ -3318,10 +3318,10 @@ declare class ServerAuthProvider {
|
|
|
3318
3318
|
* Oauth2/OIDC login route.
|
|
3319
3319
|
*/
|
|
3320
3320
|
readonly login: RoutePrimitive<{
|
|
3321
|
-
query:
|
|
3322
|
-
provider:
|
|
3323
|
-
realm:
|
|
3324
|
-
redirect_uri:
|
|
3321
|
+
query: alepha1159.TObject<{
|
|
3322
|
+
provider: alepha1159.TString;
|
|
3323
|
+
realm: alepha1159.TOptional<alepha1159.TString>;
|
|
3324
|
+
redirect_uri: alepha1159.TOptional<alepha1159.TString>;
|
|
3325
3325
|
}>;
|
|
3326
3326
|
}>;
|
|
3327
3327
|
/**
|
|
@@ -3333,8 +3333,8 @@ declare class ServerAuthProvider {
|
|
|
3333
3333
|
* Logout route for OAuth2/OIDC providers.
|
|
3334
3334
|
*/
|
|
3335
3335
|
readonly logout: RoutePrimitive<{
|
|
3336
|
-
query:
|
|
3337
|
-
post_logout_redirect_uri:
|
|
3336
|
+
query: alepha1159.TObject<{
|
|
3337
|
+
post_logout_redirect_uri: alepha1159.TOptional<alepha1159.TString>;
|
|
3338
3338
|
}>;
|
|
3339
3339
|
}>;
|
|
3340
3340
|
/**
|
|
@@ -3380,7 +3380,7 @@ interface OAuth2Profile {
|
|
|
3380
3380
|
[key: string]: unknown;
|
|
3381
3381
|
}
|
|
3382
3382
|
//#endregion
|
|
3383
|
-
//#region ../../../alepha/src/server
|
|
3383
|
+
//#region ../../../alepha/src/server/auth/primitives/$auth.d.ts
|
|
3384
3384
|
type AuthPrimitiveOptions = {
|
|
3385
3385
|
/**
|
|
3386
3386
|
* Name of the identity provider.
|
|
@@ -3561,7 +3561,7 @@ type AccessToken = string | {
|
|
|
3561
3561
|
token: () => Async<string>;
|
|
3562
3562
|
};
|
|
3563
3563
|
//#endregion
|
|
3564
|
-
//#region ../../../alepha/src/server
|
|
3564
|
+
//#region ../../../alepha/src/server/auth/index.d.ts
|
|
3565
3565
|
declare module "alepha" {
|
|
3566
3566
|
interface State {
|
|
3567
3567
|
/**
|
|
@@ -3595,8 +3595,8 @@ declare class ReactAuth {
|
|
|
3595
3595
|
protected readonly alepha: Alepha;
|
|
3596
3596
|
protected readonly httpClient: HttpClient;
|
|
3597
3597
|
protected readonly linkProvider: LinkProvider;
|
|
3598
|
-
protected readonly onBeginTransition:
|
|
3599
|
-
protected readonly onFetchRequest:
|
|
3598
|
+
protected readonly onBeginTransition: alepha1159.HookPrimitive<"react:transition:begin">;
|
|
3599
|
+
protected readonly onFetchRequest: alepha1159.HookPrimitive<"client:onRequest">;
|
|
3600
3600
|
/**
|
|
3601
3601
|
* Get the current authenticated user.
|
|
3602
3602
|
*
|
|
@@ -3638,29 +3638,29 @@ declare module "@alepha/react" {
|
|
|
3638
3638
|
* @module alepha.react.auth
|
|
3639
3639
|
*/
|
|
3640
3640
|
//#endregion
|
|
3641
|
-
//#region ../../../alepha/src/api
|
|
3642
|
-
declare const realmAuthSettingsAtom:
|
|
3643
|
-
displayName:
|
|
3644
|
-
description:
|
|
3645
|
-
logoUrl:
|
|
3646
|
-
registrationAllowed:
|
|
3647
|
-
emailEnabled:
|
|
3648
|
-
emailRequired:
|
|
3649
|
-
usernameEnabled:
|
|
3650
|
-
usernameRequired:
|
|
3651
|
-
phoneEnabled:
|
|
3652
|
-
phoneRequired:
|
|
3653
|
-
verifyEmailRequired:
|
|
3654
|
-
verifyPhoneRequired:
|
|
3655
|
-
firstNameLastNameEnabled:
|
|
3656
|
-
firstNameLastNameRequired:
|
|
3657
|
-
resetPasswordAllowed:
|
|
3658
|
-
passwordPolicy:
|
|
3659
|
-
minLength:
|
|
3660
|
-
requireUppercase:
|
|
3661
|
-
requireLowercase:
|
|
3662
|
-
requireNumbers:
|
|
3663
|
-
requireSpecialCharacters:
|
|
3641
|
+
//#region ../../../alepha/src/api/users/atoms/realmAuthSettingsAtom.d.ts
|
|
3642
|
+
declare const realmAuthSettingsAtom: alepha1159.Atom<alepha1159.TObject<{
|
|
3643
|
+
displayName: alepha1159.TOptional<alepha1159.TString>;
|
|
3644
|
+
description: alepha1159.TOptional<alepha1159.TString>;
|
|
3645
|
+
logoUrl: alepha1159.TOptional<alepha1159.TString>;
|
|
3646
|
+
registrationAllowed: alepha1159.TBoolean;
|
|
3647
|
+
emailEnabled: alepha1159.TBoolean;
|
|
3648
|
+
emailRequired: alepha1159.TBoolean;
|
|
3649
|
+
usernameEnabled: alepha1159.TBoolean;
|
|
3650
|
+
usernameRequired: alepha1159.TBoolean;
|
|
3651
|
+
phoneEnabled: alepha1159.TBoolean;
|
|
3652
|
+
phoneRequired: alepha1159.TBoolean;
|
|
3653
|
+
verifyEmailRequired: alepha1159.TBoolean;
|
|
3654
|
+
verifyPhoneRequired: alepha1159.TBoolean;
|
|
3655
|
+
firstNameLastNameEnabled: alepha1159.TBoolean;
|
|
3656
|
+
firstNameLastNameRequired: alepha1159.TBoolean;
|
|
3657
|
+
resetPasswordAllowed: alepha1159.TBoolean;
|
|
3658
|
+
passwordPolicy: alepha1159.TObject<{
|
|
3659
|
+
minLength: alepha1159.TInteger;
|
|
3660
|
+
requireUppercase: alepha1159.TBoolean;
|
|
3661
|
+
requireLowercase: alepha1159.TBoolean;
|
|
3662
|
+
requireNumbers: alepha1159.TBoolean;
|
|
3663
|
+
requireSpecialCharacters: alepha1159.TBoolean;
|
|
3664
3664
|
}>;
|
|
3665
3665
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
3666
3666
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
@@ -4556,11 +4556,11 @@ declare class DrizzleKitProvider {
|
|
|
4556
4556
|
*/
|
|
4557
4557
|
importDrizzleKit(): typeof DrizzleKit;
|
|
4558
4558
|
}
|
|
4559
|
-
declare const devMigrationsSchema:
|
|
4560
|
-
id:
|
|
4561
|
-
name:
|
|
4562
|
-
snapshot:
|
|
4563
|
-
created_at:
|
|
4559
|
+
declare const devMigrationsSchema: alepha1159.TObject<{
|
|
4560
|
+
id: alepha1159.TNumber;
|
|
4561
|
+
name: alepha1159.TString;
|
|
4562
|
+
snapshot: alepha1159.TString;
|
|
4563
|
+
created_at: alepha1159.TString;
|
|
4564
4564
|
}>;
|
|
4565
4565
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
4566
4566
|
//#endregion
|
|
@@ -4757,7 +4757,7 @@ declare class QueryManager {
|
|
|
4757
4757
|
createPagination<T$1>(entities: T$1[], limit?: number, offset?: number, sort?: Array<{
|
|
4758
4758
|
column: string;
|
|
4759
4759
|
direction: "asc" | "desc";
|
|
4760
|
-
}>):
|
|
4760
|
+
}>): alepha1159.Page<T$1>;
|
|
4761
4761
|
}
|
|
4762
4762
|
interface PgJoin {
|
|
4763
4763
|
table: string;
|
|
@@ -5065,19 +5065,19 @@ interface StatementOptions {
|
|
|
5065
5065
|
now?: DateTime | string;
|
|
5066
5066
|
}
|
|
5067
5067
|
//#endregion
|
|
5068
|
-
//#region ../../../alepha/src/lock/primitives/$lock.d.ts
|
|
5069
|
-
declare const envSchema$
|
|
5070
|
-
LOCK_PREFIX_KEY:
|
|
5068
|
+
//#region ../../../alepha/src/lock/core/primitives/$lock.d.ts
|
|
5069
|
+
declare const envSchema$3: alepha1159.TObject<{
|
|
5070
|
+
LOCK_PREFIX_KEY: alepha1159.TString;
|
|
5071
5071
|
}>;
|
|
5072
5072
|
declare module "alepha" {
|
|
5073
|
-
interface Env extends Partial<Static<typeof envSchema$
|
|
5073
|
+
interface Env extends Partial<Static<typeof envSchema$3>> {}
|
|
5074
5074
|
}
|
|
5075
5075
|
//#endregion
|
|
5076
5076
|
//#region ../../../alepha/src/orm/providers/drivers/NodePostgresProvider.d.ts
|
|
5077
5077
|
declare module "alepha" {
|
|
5078
|
-
interface Env extends Partial<Static<typeof envSchema$
|
|
5078
|
+
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
5079
5079
|
}
|
|
5080
|
-
declare const envSchema$
|
|
5080
|
+
declare const envSchema$2: alepha1159.TObject<{
|
|
5081
5081
|
/**
|
|
5082
5082
|
* Main configuration for database connection.
|
|
5083
5083
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -5085,21 +5085,21 @@ declare const envSchema$1: alepha1165.TObject<{
|
|
|
5085
5085
|
* or
|
|
5086
5086
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
5087
5087
|
*/
|
|
5088
|
-
DATABASE_URL:
|
|
5088
|
+
DATABASE_URL: alepha1159.TOptional<alepha1159.TString>;
|
|
5089
5089
|
/**
|
|
5090
5090
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
5091
5091
|
*
|
|
5092
5092
|
* It will monkey patch drizzle tables.
|
|
5093
5093
|
*/
|
|
5094
|
-
POSTGRES_SCHEMA:
|
|
5094
|
+
POSTGRES_SCHEMA: alepha1159.TOptional<alepha1159.TString>;
|
|
5095
5095
|
}>;
|
|
5096
5096
|
//#endregion
|
|
5097
5097
|
//#region ../../../alepha/src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
5098
5098
|
/**
|
|
5099
5099
|
* Configuration options for the Node.js SQLite database provider.
|
|
5100
5100
|
*/
|
|
5101
|
-
declare const nodeSqliteOptions:
|
|
5102
|
-
path:
|
|
5101
|
+
declare const nodeSqliteOptions: alepha1159.Atom<alepha1159.TObject<{
|
|
5102
|
+
path: alepha1159.TOptional<alepha1159.TString>;
|
|
5103
5103
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
5104
5104
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
5105
5105
|
declare module "alepha" {
|
|
@@ -5182,17 +5182,17 @@ declare module "alepha" {
|
|
|
5182
5182
|
}
|
|
5183
5183
|
}
|
|
5184
5184
|
//#endregion
|
|
5185
|
-
//#region ../../../alepha/src/api
|
|
5186
|
-
declare const identities: EntityPrimitive<
|
|
5187
|
-
id: PgAttr<PgAttr<
|
|
5188
|
-
version: PgAttr<PgAttr<
|
|
5189
|
-
createdAt: PgAttr<PgAttr<
|
|
5190
|
-
updatedAt: PgAttr<PgAttr<
|
|
5191
|
-
userId: PgAttr<
|
|
5192
|
-
password:
|
|
5193
|
-
provider:
|
|
5194
|
-
providerUserId:
|
|
5195
|
-
providerData:
|
|
5185
|
+
//#region ../../../alepha/src/api/users/entities/identities.d.ts
|
|
5186
|
+
declare const identities: EntityPrimitive<alepha1159.TObject<{
|
|
5187
|
+
id: PgAttr<PgAttr<alepha1159.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5188
|
+
version: PgAttr<PgAttr<alepha1159.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5189
|
+
createdAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5190
|
+
updatedAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5191
|
+
userId: PgAttr<alepha1159.TString, typeof PG_REF>;
|
|
5192
|
+
password: alepha1159.TOptional<alepha1159.TString>;
|
|
5193
|
+
provider: alepha1159.TString;
|
|
5194
|
+
providerUserId: alepha1159.TOptional<alepha1159.TString>;
|
|
5195
|
+
providerData: alepha1159.TOptional<alepha1159.TRecord<string, alepha1159.TAny>>;
|
|
5196
5196
|
}>>;
|
|
5197
5197
|
//#endregion
|
|
5198
5198
|
//#region ../../../alepha/src/bucket/providers/FileStorageProvider.d.ts
|
|
@@ -5419,8 +5419,8 @@ interface BucketFileOptions {
|
|
|
5419
5419
|
/**
|
|
5420
5420
|
* Local file storage configuration atom
|
|
5421
5421
|
*/
|
|
5422
|
-
declare const localFileStorageOptions:
|
|
5423
|
-
storagePath:
|
|
5422
|
+
declare const localFileStorageOptions: alepha1159.Atom<alepha1159.TObject<{
|
|
5423
|
+
storagePath: alepha1159.TString;
|
|
5424
5424
|
}>, "alepha.bucket.local.options">;
|
|
5425
5425
|
type LocalFileStorageProviderOptions = Static<typeof localFileStorageOptions.schema>;
|
|
5426
5426
|
declare module "alepha" {
|
|
@@ -5463,42 +5463,77 @@ declare module "alepha" {
|
|
|
5463
5463
|
* @module alepha.bucket
|
|
5464
5464
|
*/
|
|
5465
5465
|
//#endregion
|
|
5466
|
-
//#region ../../../alepha/src/api
|
|
5467
|
-
declare const sessions: EntityPrimitive<
|
|
5468
|
-
id: PgAttr<PgAttr<
|
|
5469
|
-
version: PgAttr<PgAttr<
|
|
5470
|
-
createdAt: PgAttr<PgAttr<
|
|
5471
|
-
updatedAt: PgAttr<PgAttr<
|
|
5472
|
-
refreshToken:
|
|
5473
|
-
userId: PgAttr<
|
|
5474
|
-
expiresAt:
|
|
5475
|
-
ip:
|
|
5476
|
-
userAgent:
|
|
5477
|
-
os:
|
|
5478
|
-
browser:
|
|
5479
|
-
device:
|
|
5466
|
+
//#region ../../../alepha/src/api/users/entities/sessions.d.ts
|
|
5467
|
+
declare const sessions: EntityPrimitive<alepha1159.TObject<{
|
|
5468
|
+
id: PgAttr<PgAttr<alepha1159.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5469
|
+
version: PgAttr<PgAttr<alepha1159.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5470
|
+
createdAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5471
|
+
updatedAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5472
|
+
refreshToken: alepha1159.TString;
|
|
5473
|
+
userId: PgAttr<alepha1159.TString, typeof PG_REF>;
|
|
5474
|
+
expiresAt: alepha1159.TString;
|
|
5475
|
+
ip: alepha1159.TOptional<alepha1159.TString>;
|
|
5476
|
+
userAgent: alepha1159.TOptional<alepha1159.TObject<{
|
|
5477
|
+
os: alepha1159.TString;
|
|
5478
|
+
browser: alepha1159.TString;
|
|
5479
|
+
device: alepha1159.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5480
5480
|
}>>;
|
|
5481
5481
|
}>>;
|
|
5482
5482
|
//#endregion
|
|
5483
|
-
//#region ../../../alepha/src/api
|
|
5484
|
-
declare const users: EntityPrimitive<
|
|
5485
|
-
id: PgAttr<PgAttr<
|
|
5486
|
-
version: PgAttr<PgAttr<
|
|
5487
|
-
createdAt: PgAttr<PgAttr<
|
|
5488
|
-
updatedAt: PgAttr<PgAttr<
|
|
5489
|
-
realm: PgAttr<
|
|
5490
|
-
username:
|
|
5491
|
-
email:
|
|
5492
|
-
phoneNumber:
|
|
5493
|
-
roles: PgAttr<
|
|
5494
|
-
firstName:
|
|
5495
|
-
lastName:
|
|
5496
|
-
picture:
|
|
5497
|
-
enabled: PgAttr<
|
|
5498
|
-
emailVerified: PgAttr<
|
|
5483
|
+
//#region ../../../alepha/src/api/users/entities/users.d.ts
|
|
5484
|
+
declare const users: EntityPrimitive<alepha1159.TObject<{
|
|
5485
|
+
id: PgAttr<PgAttr<alepha1159.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5486
|
+
version: PgAttr<PgAttr<alepha1159.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5487
|
+
createdAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5488
|
+
updatedAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5489
|
+
realm: PgAttr<alepha1159.TString, typeof PG_DEFAULT>;
|
|
5490
|
+
username: alepha1159.TOptional<alepha1159.TString>;
|
|
5491
|
+
email: alepha1159.TOptional<alepha1159.TString>;
|
|
5492
|
+
phoneNumber: alepha1159.TOptional<alepha1159.TString>;
|
|
5493
|
+
roles: PgAttr<alepha1159.TArray<alepha1159.TString>, typeof PG_DEFAULT>;
|
|
5494
|
+
firstName: alepha1159.TOptional<alepha1159.TString>;
|
|
5495
|
+
lastName: alepha1159.TOptional<alepha1159.TString>;
|
|
5496
|
+
picture: alepha1159.TOptional<alepha1159.TString>;
|
|
5497
|
+
enabled: PgAttr<alepha1159.TBoolean, typeof PG_DEFAULT>;
|
|
5498
|
+
emailVerified: PgAttr<alepha1159.TBoolean, typeof PG_DEFAULT>;
|
|
5499
5499
|
}>>;
|
|
5500
5500
|
//#endregion
|
|
5501
|
-
//#region ../../../alepha/src/api
|
|
5501
|
+
//#region ../../../alepha/src/api/users/primitives/$userRealm.d.ts
|
|
5502
|
+
interface UserRealmOptions {
|
|
5503
|
+
/**
|
|
5504
|
+
* Secret key for signing tokens.
|
|
5505
|
+
*
|
|
5506
|
+
* If not provided, the secret from the SecurityProvider will be used (usually from the APP_SECRET environment variable).
|
|
5507
|
+
*/
|
|
5508
|
+
secret?: string;
|
|
5509
|
+
/**
|
|
5510
|
+
* Realm configuration options.
|
|
5511
|
+
*
|
|
5512
|
+
* It's already pre-configured for user management with admin and user roles.
|
|
5513
|
+
*/
|
|
5514
|
+
realm?: Partial<RealmPrimitiveOptions>;
|
|
5515
|
+
/**
|
|
5516
|
+
* Override entities.
|
|
5517
|
+
*/
|
|
5518
|
+
entities?: {
|
|
5519
|
+
users?: Repository<typeof users.schema>;
|
|
5520
|
+
identities?: Repository<typeof identities.schema>;
|
|
5521
|
+
sessions?: Repository<typeof sessions.schema>;
|
|
5522
|
+
};
|
|
5523
|
+
settings?: Partial<RealmAuthSettings>;
|
|
5524
|
+
identities?: {
|
|
5525
|
+
credentials?: true;
|
|
5526
|
+
google?: true;
|
|
5527
|
+
github?: true;
|
|
5528
|
+
};
|
|
5529
|
+
modules?: {
|
|
5530
|
+
files?: boolean;
|
|
5531
|
+
audits?: boolean;
|
|
5532
|
+
jobs?: boolean;
|
|
5533
|
+
};
|
|
5534
|
+
}
|
|
5535
|
+
//#endregion
|
|
5536
|
+
//#region ../../../alepha/src/api/users/providers/UserRealmProvider.d.ts
|
|
5502
5537
|
interface UserRealmRepositories {
|
|
5503
5538
|
identities: Repository<typeof identities.schema>;
|
|
5504
5539
|
sessions: Repository<typeof sessions.schema>;
|
|
@@ -5511,51 +5546,51 @@ interface UserRealm {
|
|
|
5511
5546
|
}
|
|
5512
5547
|
declare class UserRealmProvider {
|
|
5513
5548
|
protected readonly alepha: Alepha;
|
|
5514
|
-
protected readonly defaultIdentities: Repository<
|
|
5515
|
-
id: PgAttr<PgAttr<
|
|
5516
|
-
version: PgAttr<PgAttr<
|
|
5517
|
-
createdAt: PgAttr<PgAttr<
|
|
5518
|
-
updatedAt: PgAttr<PgAttr<
|
|
5519
|
-
userId: PgAttr<
|
|
5520
|
-
password:
|
|
5521
|
-
provider:
|
|
5522
|
-
providerUserId:
|
|
5523
|
-
providerData:
|
|
5549
|
+
protected readonly defaultIdentities: Repository<alepha1159.TObject<{
|
|
5550
|
+
id: PgAttr<PgAttr<alepha1159.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5551
|
+
version: PgAttr<PgAttr<alepha1159.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5552
|
+
createdAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5553
|
+
updatedAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5554
|
+
userId: PgAttr<alepha1159.TString, typeof PG_REF>;
|
|
5555
|
+
password: alepha1159.TOptional<alepha1159.TString>;
|
|
5556
|
+
provider: alepha1159.TString;
|
|
5557
|
+
providerUserId: alepha1159.TOptional<alepha1159.TString>;
|
|
5558
|
+
providerData: alepha1159.TOptional<alepha1159.TRecord<string, alepha1159.TAny>>;
|
|
5524
5559
|
}>>;
|
|
5525
|
-
protected readonly defaultSessions: Repository<
|
|
5526
|
-
id: PgAttr<PgAttr<
|
|
5527
|
-
version: PgAttr<PgAttr<
|
|
5528
|
-
createdAt: PgAttr<PgAttr<
|
|
5529
|
-
updatedAt: PgAttr<PgAttr<
|
|
5530
|
-
refreshToken:
|
|
5531
|
-
userId: PgAttr<
|
|
5532
|
-
expiresAt:
|
|
5533
|
-
ip:
|
|
5534
|
-
userAgent:
|
|
5535
|
-
os:
|
|
5536
|
-
browser:
|
|
5537
|
-
device:
|
|
5560
|
+
protected readonly defaultSessions: Repository<alepha1159.TObject<{
|
|
5561
|
+
id: PgAttr<PgAttr<alepha1159.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5562
|
+
version: PgAttr<PgAttr<alepha1159.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5563
|
+
createdAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5564
|
+
updatedAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5565
|
+
refreshToken: alepha1159.TString;
|
|
5566
|
+
userId: PgAttr<alepha1159.TString, typeof PG_REF>;
|
|
5567
|
+
expiresAt: alepha1159.TString;
|
|
5568
|
+
ip: alepha1159.TOptional<alepha1159.TString>;
|
|
5569
|
+
userAgent: alepha1159.TOptional<alepha1159.TObject<{
|
|
5570
|
+
os: alepha1159.TString;
|
|
5571
|
+
browser: alepha1159.TString;
|
|
5572
|
+
device: alepha1159.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5538
5573
|
}>>;
|
|
5539
5574
|
}>>;
|
|
5540
|
-
protected readonly defaultUsers: Repository<
|
|
5541
|
-
id: PgAttr<PgAttr<
|
|
5542
|
-
version: PgAttr<PgAttr<
|
|
5543
|
-
createdAt: PgAttr<PgAttr<
|
|
5544
|
-
updatedAt: PgAttr<PgAttr<
|
|
5545
|
-
realm: PgAttr<
|
|
5546
|
-
username:
|
|
5547
|
-
email:
|
|
5548
|
-
phoneNumber:
|
|
5549
|
-
roles: PgAttr<
|
|
5550
|
-
firstName:
|
|
5551
|
-
lastName:
|
|
5552
|
-
picture:
|
|
5553
|
-
enabled: PgAttr<
|
|
5554
|
-
emailVerified: PgAttr<
|
|
5575
|
+
protected readonly defaultUsers: Repository<alepha1159.TObject<{
|
|
5576
|
+
id: PgAttr<PgAttr<alepha1159.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5577
|
+
version: PgAttr<PgAttr<alepha1159.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5578
|
+
createdAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5579
|
+
updatedAt: PgAttr<PgAttr<alepha1159.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5580
|
+
realm: PgAttr<alepha1159.TString, typeof PG_DEFAULT>;
|
|
5581
|
+
username: alepha1159.TOptional<alepha1159.TString>;
|
|
5582
|
+
email: alepha1159.TOptional<alepha1159.TString>;
|
|
5583
|
+
phoneNumber: alepha1159.TOptional<alepha1159.TString>;
|
|
5584
|
+
roles: PgAttr<alepha1159.TArray<alepha1159.TString>, typeof PG_DEFAULT>;
|
|
5585
|
+
firstName: alepha1159.TOptional<alepha1159.TString>;
|
|
5586
|
+
lastName: alepha1159.TOptional<alepha1159.TString>;
|
|
5587
|
+
picture: alepha1159.TOptional<alepha1159.TString>;
|
|
5588
|
+
enabled: PgAttr<alepha1159.TBoolean, typeof PG_DEFAULT>;
|
|
5589
|
+
emailVerified: PgAttr<alepha1159.TBoolean, typeof PG_DEFAULT>;
|
|
5555
5590
|
}>>;
|
|
5556
5591
|
protected realms: Map<string, UserRealm>;
|
|
5557
5592
|
avatars: BucketPrimitive;
|
|
5558
|
-
protected readonly onConfigure:
|
|
5593
|
+
protected readonly onConfigure: alepha1159.HookPrimitive<"configure">;
|
|
5559
5594
|
register(userRealmName: string, userRealmOptions?: UserRealmOptions): UserRealm;
|
|
5560
5595
|
/**
|
|
5561
5596
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
@@ -5566,25 +5601,25 @@ declare class UserRealmProvider {
|
|
|
5566
5601
|
userRepository(userRealmName?: string): Repository<typeof users.schema>;
|
|
5567
5602
|
}
|
|
5568
5603
|
//#endregion
|
|
5569
|
-
//#region ../../../alepha/src/api
|
|
5604
|
+
//#region ../../../alepha/src/api/verifications/parameters/VerificationParameters.d.ts
|
|
5570
5605
|
/**
|
|
5571
5606
|
* Verification settings configuration atom
|
|
5572
5607
|
*/
|
|
5573
|
-
declare const verificationOptions:
|
|
5574
|
-
code:
|
|
5575
|
-
maxAttempts:
|
|
5576
|
-
codeLength:
|
|
5577
|
-
codeExpiration:
|
|
5578
|
-
verificationCooldown:
|
|
5579
|
-
limitPerDay:
|
|
5608
|
+
declare const verificationOptions: alepha1159.Atom<alepha1159.TObject<{
|
|
5609
|
+
code: alepha1159.TObject<{
|
|
5610
|
+
maxAttempts: alepha1159.TInteger;
|
|
5611
|
+
codeLength: alepha1159.TInteger;
|
|
5612
|
+
codeExpiration: alepha1159.TInteger;
|
|
5613
|
+
verificationCooldown: alepha1159.TInteger;
|
|
5614
|
+
limitPerDay: alepha1159.TInteger;
|
|
5580
5615
|
}>;
|
|
5581
|
-
link:
|
|
5582
|
-
maxAttempts:
|
|
5583
|
-
codeExpiration:
|
|
5584
|
-
verificationCooldown:
|
|
5585
|
-
limitPerDay:
|
|
5616
|
+
link: alepha1159.TObject<{
|
|
5617
|
+
maxAttempts: alepha1159.TInteger;
|
|
5618
|
+
codeExpiration: alepha1159.TInteger;
|
|
5619
|
+
verificationCooldown: alepha1159.TInteger;
|
|
5620
|
+
limitPerDay: alepha1159.TInteger;
|
|
5586
5621
|
}>;
|
|
5587
|
-
purgeDays:
|
|
5622
|
+
purgeDays: alepha1159.TInteger;
|
|
5588
5623
|
}>, "alepha.api.verifications.options">;
|
|
5589
5624
|
type VerificationOptions = Static<typeof verificationOptions.schema>;
|
|
5590
5625
|
declare module "alepha" {
|
|
@@ -5593,6 +5628,44 @@ declare module "alepha" {
|
|
|
5593
5628
|
}
|
|
5594
5629
|
}
|
|
5595
5630
|
//#endregion
|
|
5631
|
+
//#region ../../../alepha/src/scheduler/primitives/$scheduler.d.ts
|
|
5632
|
+
declare const envSchema$1: alepha1159.TObject<{
|
|
5633
|
+
SCHEDULER_PREFIX: alepha1159.TOptional<alepha1159.TString>;
|
|
5634
|
+
}>;
|
|
5635
|
+
declare module "alepha" {
|
|
5636
|
+
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
5637
|
+
}
|
|
5638
|
+
//#endregion
|
|
5639
|
+
//#region ../../../alepha/src/scheduler/index.d.ts
|
|
5640
|
+
declare module "alepha" {
|
|
5641
|
+
interface Hooks {
|
|
5642
|
+
"scheduler:begin": {
|
|
5643
|
+
name: string;
|
|
5644
|
+
now: DateTime;
|
|
5645
|
+
context: string;
|
|
5646
|
+
};
|
|
5647
|
+
"scheduler:success": {
|
|
5648
|
+
name: string;
|
|
5649
|
+
context: string;
|
|
5650
|
+
};
|
|
5651
|
+
"scheduler:error": {
|
|
5652
|
+
name: string;
|
|
5653
|
+
error: Error;
|
|
5654
|
+
context: string;
|
|
5655
|
+
};
|
|
5656
|
+
"scheduler:end": {
|
|
5657
|
+
name: string;
|
|
5658
|
+
context: string;
|
|
5659
|
+
};
|
|
5660
|
+
}
|
|
5661
|
+
}
|
|
5662
|
+
/**
|
|
5663
|
+
* Generic interface for scheduling tasks.
|
|
5664
|
+
*
|
|
5665
|
+
* @see {@link $scheduler}
|
|
5666
|
+
* @module alepha.scheduler
|
|
5667
|
+
*/
|
|
5668
|
+
//#endregion
|
|
5596
5669
|
//#region ../../../alepha/src/email/providers/EmailProvider.d.ts
|
|
5597
5670
|
/**
|
|
5598
5671
|
* Email provider interface.
|
|
@@ -5688,45 +5761,35 @@ declare module "alepha" {
|
|
|
5688
5761
|
* @module alepha.sms
|
|
5689
5762
|
*/
|
|
5690
5763
|
//#endregion
|
|
5691
|
-
//#region ../../../alepha/src/api
|
|
5692
|
-
declare const notificationServiceEnvSchema:
|
|
5693
|
-
NOTIFICATION_QUEUE:
|
|
5764
|
+
//#region ../../../alepha/src/api/notifications/services/NotificationService.d.ts
|
|
5765
|
+
declare const notificationServiceEnvSchema: alepha1159.TObject<{
|
|
5766
|
+
NOTIFICATION_QUEUE: alepha1159.TOptional<alepha1159.TBoolean>;
|
|
5694
5767
|
}>;
|
|
5695
5768
|
declare module "alepha" {
|
|
5696
5769
|
interface Env extends Partial<Static<typeof notificationServiceEnvSchema>> {}
|
|
5697
5770
|
}
|
|
5698
5771
|
//#endregion
|
|
5699
|
-
//#region ../../../alepha/src/queue/providers/WorkerProvider.d.ts
|
|
5700
|
-
declare const envSchema:
|
|
5772
|
+
//#region ../../../alepha/src/queue/core/providers/WorkerProvider.d.ts
|
|
5773
|
+
declare const envSchema: alepha1159.TObject<{
|
|
5701
5774
|
/**
|
|
5702
|
-
* The
|
|
5703
|
-
* Workers will check for shutdown after each timeout period.
|
|
5775
|
+
* The interval in milliseconds to wait before checking for new messages.
|
|
5704
5776
|
*/
|
|
5705
|
-
|
|
5777
|
+
QUEUE_WORKER_INTERVAL: alepha1159.TInteger;
|
|
5706
5778
|
/**
|
|
5707
|
-
* The
|
|
5708
|
-
* Useful only if you are doing a lot of I/O.
|
|
5709
|
-
*/
|
|
5710
|
-
QUEUE_WORKER_CONCURRENCY: alepha1165.TInteger;
|
|
5711
|
-
/**
|
|
5712
|
-
* Interval in milliseconds for renewing job locks during processing.
|
|
5713
|
-
* Should be less than the job's lock duration.
|
|
5779
|
+
* The maximum interval in milliseconds to wait before checking for new messages.
|
|
5714
5780
|
*/
|
|
5715
|
-
|
|
5781
|
+
QUEUE_WORKER_MAX_INTERVAL: alepha1159.TInteger;
|
|
5716
5782
|
/**
|
|
5717
|
-
*
|
|
5718
|
-
|
|
5719
|
-
QUEUE_SCHEDULER_INTERVAL: alepha1165.TInteger;
|
|
5720
|
-
/**
|
|
5721
|
-
* Threshold in milliseconds after lock expiration to consider a job stalled.
|
|
5783
|
+
* The number of workers to run concurrently. Defaults to 1.
|
|
5784
|
+
* Useful only if you are doing a lot of I/O.
|
|
5722
5785
|
*/
|
|
5723
|
-
|
|
5786
|
+
QUEUE_WORKER_CONCURRENCY: alepha1159.TInteger;
|
|
5724
5787
|
}>;
|
|
5725
5788
|
declare module "alepha" {
|
|
5726
5789
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
5727
5790
|
}
|
|
5728
5791
|
//#endregion
|
|
5729
|
-
//#region ../../../alepha/src/api
|
|
5792
|
+
//#region ../../../alepha/src/api/users/controllers/UserRealmController.d.ts
|
|
5730
5793
|
/**
|
|
5731
5794
|
* Controller for exposing realm configuration.
|
|
5732
5795
|
* Uses $route instead of $action to keep endpoints hidden from API documentation.
|
|
@@ -5740,124 +5803,89 @@ declare class UserRealmController {
|
|
|
5740
5803
|
* This endpoint is not exposed in the API documentation.
|
|
5741
5804
|
*/
|
|
5742
5805
|
readonly getRealmConfig: ActionPrimitiveFn<{
|
|
5743
|
-
query:
|
|
5744
|
-
userRealmName:
|
|
5806
|
+
query: alepha1159.TObject<{
|
|
5807
|
+
userRealmName: alepha1159.TOptional<alepha1159.TString>;
|
|
5745
5808
|
}>;
|
|
5746
|
-
response:
|
|
5747
|
-
settings:
|
|
5748
|
-
displayName:
|
|
5749
|
-
description:
|
|
5750
|
-
logoUrl:
|
|
5751
|
-
registrationAllowed:
|
|
5752
|
-
emailEnabled:
|
|
5753
|
-
emailRequired:
|
|
5754
|
-
usernameEnabled:
|
|
5755
|
-
usernameRequired:
|
|
5756
|
-
phoneEnabled:
|
|
5757
|
-
phoneRequired:
|
|
5758
|
-
verifyEmailRequired:
|
|
5759
|
-
verifyPhoneRequired:
|
|
5760
|
-
firstNameLastNameEnabled:
|
|
5761
|
-
firstNameLastNameRequired:
|
|
5762
|
-
resetPasswordAllowed:
|
|
5763
|
-
passwordPolicy:
|
|
5764
|
-
minLength:
|
|
5765
|
-
requireUppercase:
|
|
5766
|
-
requireLowercase:
|
|
5767
|
-
requireNumbers:
|
|
5768
|
-
requireSpecialCharacters:
|
|
5809
|
+
response: alepha1159.TObject<{
|
|
5810
|
+
settings: alepha1159.TObject<{
|
|
5811
|
+
displayName: alepha1159.TOptional<alepha1159.TString>;
|
|
5812
|
+
description: alepha1159.TOptional<alepha1159.TString>;
|
|
5813
|
+
logoUrl: alepha1159.TOptional<alepha1159.TString>;
|
|
5814
|
+
registrationAllowed: alepha1159.TBoolean;
|
|
5815
|
+
emailEnabled: alepha1159.TBoolean;
|
|
5816
|
+
emailRequired: alepha1159.TBoolean;
|
|
5817
|
+
usernameEnabled: alepha1159.TBoolean;
|
|
5818
|
+
usernameRequired: alepha1159.TBoolean;
|
|
5819
|
+
phoneEnabled: alepha1159.TBoolean;
|
|
5820
|
+
phoneRequired: alepha1159.TBoolean;
|
|
5821
|
+
verifyEmailRequired: alepha1159.TBoolean;
|
|
5822
|
+
verifyPhoneRequired: alepha1159.TBoolean;
|
|
5823
|
+
firstNameLastNameEnabled: alepha1159.TBoolean;
|
|
5824
|
+
firstNameLastNameRequired: alepha1159.TBoolean;
|
|
5825
|
+
resetPasswordAllowed: alepha1159.TBoolean;
|
|
5826
|
+
passwordPolicy: alepha1159.TObject<{
|
|
5827
|
+
minLength: alepha1159.TInteger;
|
|
5828
|
+
requireUppercase: alepha1159.TBoolean;
|
|
5829
|
+
requireLowercase: alepha1159.TBoolean;
|
|
5830
|
+
requireNumbers: alepha1159.TBoolean;
|
|
5831
|
+
requireSpecialCharacters: alepha1159.TBoolean;
|
|
5769
5832
|
}>;
|
|
5770
5833
|
}>;
|
|
5771
|
-
realmName:
|
|
5772
|
-
authenticationMethods:
|
|
5773
|
-
name:
|
|
5774
|
-
type:
|
|
5834
|
+
realmName: alepha1159.TString;
|
|
5835
|
+
authenticationMethods: alepha1159.TArray<alepha1159.TObject<{
|
|
5836
|
+
name: alepha1159.TString;
|
|
5837
|
+
type: alepha1159.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
5775
5838
|
}>>;
|
|
5776
5839
|
}>;
|
|
5777
5840
|
}>;
|
|
5778
5841
|
readonly checkUsernameAvailability: ActionPrimitiveFn<{
|
|
5779
|
-
query:
|
|
5780
|
-
userRealmName:
|
|
5842
|
+
query: alepha1159.TObject<{
|
|
5843
|
+
userRealmName: alepha1159.TOptional<alepha1159.TString>;
|
|
5781
5844
|
}>;
|
|
5782
|
-
body:
|
|
5783
|
-
username:
|
|
5845
|
+
body: alepha1159.TObject<{
|
|
5846
|
+
username: alepha1159.TString;
|
|
5784
5847
|
}>;
|
|
5785
|
-
response:
|
|
5786
|
-
available:
|
|
5848
|
+
response: alepha1159.TObject<{
|
|
5849
|
+
available: alepha1159.TBoolean;
|
|
5787
5850
|
}>;
|
|
5788
5851
|
}>;
|
|
5789
5852
|
}
|
|
5790
5853
|
//#endregion
|
|
5791
|
-
//#region ../../../alepha/src/api
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
credentials?: true;
|
|
5816
|
-
google?: true;
|
|
5817
|
-
github?: true;
|
|
5818
|
-
};
|
|
5819
|
-
modules?: {
|
|
5820
|
-
files?: boolean;
|
|
5821
|
-
audits?: boolean;
|
|
5822
|
-
jobs?: boolean;
|
|
5823
|
-
};
|
|
5824
|
-
}
|
|
5825
|
-
//#endregion
|
|
5826
|
-
//#region ../../../alepha/src/api-users/schemas/userRealmConfigSchema.d.ts
|
|
5827
|
-
declare const userRealmConfigSchema: alepha1165.TObject<{
|
|
5828
|
-
settings: alepha1165.TObject<{
|
|
5829
|
-
displayName: alepha1165.TOptional<alepha1165.TString>;
|
|
5830
|
-
description: alepha1165.TOptional<alepha1165.TString>;
|
|
5831
|
-
logoUrl: alepha1165.TOptional<alepha1165.TString>;
|
|
5832
|
-
registrationAllowed: alepha1165.TBoolean;
|
|
5833
|
-
emailEnabled: alepha1165.TBoolean;
|
|
5834
|
-
emailRequired: alepha1165.TBoolean;
|
|
5835
|
-
usernameEnabled: alepha1165.TBoolean;
|
|
5836
|
-
usernameRequired: alepha1165.TBoolean;
|
|
5837
|
-
phoneEnabled: alepha1165.TBoolean;
|
|
5838
|
-
phoneRequired: alepha1165.TBoolean;
|
|
5839
|
-
verifyEmailRequired: alepha1165.TBoolean;
|
|
5840
|
-
verifyPhoneRequired: alepha1165.TBoolean;
|
|
5841
|
-
firstNameLastNameEnabled: alepha1165.TBoolean;
|
|
5842
|
-
firstNameLastNameRequired: alepha1165.TBoolean;
|
|
5843
|
-
resetPasswordAllowed: alepha1165.TBoolean;
|
|
5844
|
-
passwordPolicy: alepha1165.TObject<{
|
|
5845
|
-
minLength: alepha1165.TInteger;
|
|
5846
|
-
requireUppercase: alepha1165.TBoolean;
|
|
5847
|
-
requireLowercase: alepha1165.TBoolean;
|
|
5848
|
-
requireNumbers: alepha1165.TBoolean;
|
|
5849
|
-
requireSpecialCharacters: alepha1165.TBoolean;
|
|
5854
|
+
//#region ../../../alepha/src/api/users/schemas/userRealmConfigSchema.d.ts
|
|
5855
|
+
declare const userRealmConfigSchema: alepha1159.TObject<{
|
|
5856
|
+
settings: alepha1159.TObject<{
|
|
5857
|
+
displayName: alepha1159.TOptional<alepha1159.TString>;
|
|
5858
|
+
description: alepha1159.TOptional<alepha1159.TString>;
|
|
5859
|
+
logoUrl: alepha1159.TOptional<alepha1159.TString>;
|
|
5860
|
+
registrationAllowed: alepha1159.TBoolean;
|
|
5861
|
+
emailEnabled: alepha1159.TBoolean;
|
|
5862
|
+
emailRequired: alepha1159.TBoolean;
|
|
5863
|
+
usernameEnabled: alepha1159.TBoolean;
|
|
5864
|
+
usernameRequired: alepha1159.TBoolean;
|
|
5865
|
+
phoneEnabled: alepha1159.TBoolean;
|
|
5866
|
+
phoneRequired: alepha1159.TBoolean;
|
|
5867
|
+
verifyEmailRequired: alepha1159.TBoolean;
|
|
5868
|
+
verifyPhoneRequired: alepha1159.TBoolean;
|
|
5869
|
+
firstNameLastNameEnabled: alepha1159.TBoolean;
|
|
5870
|
+
firstNameLastNameRequired: alepha1159.TBoolean;
|
|
5871
|
+
resetPasswordAllowed: alepha1159.TBoolean;
|
|
5872
|
+
passwordPolicy: alepha1159.TObject<{
|
|
5873
|
+
minLength: alepha1159.TInteger;
|
|
5874
|
+
requireUppercase: alepha1159.TBoolean;
|
|
5875
|
+
requireLowercase: alepha1159.TBoolean;
|
|
5876
|
+
requireNumbers: alepha1159.TBoolean;
|
|
5877
|
+
requireSpecialCharacters: alepha1159.TBoolean;
|
|
5850
5878
|
}>;
|
|
5851
5879
|
}>;
|
|
5852
|
-
realmName:
|
|
5853
|
-
authenticationMethods:
|
|
5854
|
-
name:
|
|
5855
|
-
type:
|
|
5880
|
+
realmName: alepha1159.TString;
|
|
5881
|
+
authenticationMethods: alepha1159.TArray<alepha1159.TObject<{
|
|
5882
|
+
name: alepha1159.TString;
|
|
5883
|
+
type: alepha1159.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
5856
5884
|
}>>;
|
|
5857
5885
|
}>;
|
|
5858
5886
|
type UserRealmConfig = Static<typeof userRealmConfigSchema>;
|
|
5859
5887
|
//#endregion
|
|
5860
|
-
//#region ../../../alepha/src/api
|
|
5888
|
+
//#region ../../../alepha/src/api/files/index.d.ts
|
|
5861
5889
|
declare module "alepha/bucket" {
|
|
5862
5890
|
interface BucketFileOptions {
|
|
5863
5891
|
/**
|
|
@@ -5895,9 +5923,9 @@ declare class AuthRouter {
|
|
|
5895
5923
|
protected readonly auth: ReactAuth;
|
|
5896
5924
|
layout: PagePrimitive<PageConfigSchema, any, TPropsParentDefault>;
|
|
5897
5925
|
login: PagePrimitive<{
|
|
5898
|
-
query:
|
|
5899
|
-
r:
|
|
5900
|
-
realm:
|
|
5926
|
+
query: alepha1159.TObject<{
|
|
5927
|
+
r: alepha1159.TOptional<alepha1159.TString>;
|
|
5928
|
+
realm: alepha1159.TOptional<alepha1159.TString>;
|
|
5901
5929
|
}>;
|
|
5902
5930
|
}, {
|
|
5903
5931
|
realmConfig: {
|
|
@@ -5933,9 +5961,9 @@ declare class AuthRouter {
|
|
|
5933
5961
|
};
|
|
5934
5962
|
}, TPropsParentDefault>;
|
|
5935
5963
|
register: PagePrimitive<{
|
|
5936
|
-
query:
|
|
5937
|
-
r:
|
|
5938
|
-
realm:
|
|
5964
|
+
query: alepha1159.TObject<{
|
|
5965
|
+
r: alepha1159.TOptional<alepha1159.TString>;
|
|
5966
|
+
realm: alepha1159.TOptional<alepha1159.TString>;
|
|
5939
5967
|
}>;
|
|
5940
5968
|
}, {
|
|
5941
5969
|
realmConfig: {
|
|
@@ -5971,9 +5999,9 @@ declare class AuthRouter {
|
|
|
5971
5999
|
};
|
|
5972
6000
|
}, TPropsParentDefault>;
|
|
5973
6001
|
resetPassword: PagePrimitive<{
|
|
5974
|
-
query:
|
|
5975
|
-
r:
|
|
5976
|
-
realm:
|
|
6002
|
+
query: alepha1159.TObject<{
|
|
6003
|
+
r: alepha1159.TOptional<alepha1159.TString>;
|
|
6004
|
+
realm: alepha1159.TOptional<alepha1159.TString>;
|
|
5977
6005
|
}>;
|
|
5978
6006
|
}, {
|
|
5979
6007
|
realmConfig: {
|
|
@@ -6009,9 +6037,9 @@ declare class AuthRouter {
|
|
|
6009
6037
|
};
|
|
6010
6038
|
}, TPropsParentDefault>;
|
|
6011
6039
|
verifyEmail: PagePrimitive<{
|
|
6012
|
-
query:
|
|
6013
|
-
email:
|
|
6014
|
-
token:
|
|
6040
|
+
query: alepha1159.TObject<{
|
|
6041
|
+
email: alepha1159.TOptional<alepha1159.TString>;
|
|
6042
|
+
token: alepha1159.TOptional<alepha1159.TString>;
|
|
6015
6043
|
}>;
|
|
6016
6044
|
}, any, TPropsParentDefault>;
|
|
6017
6045
|
logout: PagePrimitive<PageConfigSchema, {}, TPropsParentDefault>;
|
|
@@ -6101,7 +6129,7 @@ declare const VerifyEmail: (_props: VerifyEmailProps) => react_jsx_runtime0.JSX.
|
|
|
6101
6129
|
*
|
|
6102
6130
|
* @module alepha.ui.auth
|
|
6103
6131
|
*/
|
|
6104
|
-
declare const AlephaUIAuth:
|
|
6132
|
+
declare const AlephaUIAuth: alepha1159.Service<alepha1159.Module>;
|
|
6105
6133
|
//#endregion
|
|
6106
6134
|
export { AlephaUIAuth, AuthRouter, Login, Register, ResetPassword, UserButton, type UserButtonProps, VerifyEmail };
|
|
6107
6135
|
//# sourceMappingURL=index.d.ts.map
|