@alepha/ui 0.13.5 → 0.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/index.d.ts +1005 -1005
- package/dist/auth/index.d.ts +413 -413
- package/package.json +3 -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 alepha1178 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,28 +25,28 @@ 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: alepha1178.TObject<{
|
|
29
|
+
id: alepha1178.TString;
|
|
30
|
+
name: alepha1178.TOptional<alepha1178.TString>;
|
|
31
|
+
email: alepha1178.TOptional<alepha1178.TString>;
|
|
32
|
+
username: alepha1178.TOptional<alepha1178.TString>;
|
|
33
|
+
picture: alepha1178.TOptional<alepha1178.TString>;
|
|
34
|
+
sessionId: alepha1178.TOptional<alepha1178.TString>;
|
|
35
|
+
organizations: alepha1178.TOptional<alepha1178.TArray<alepha1178.TString>>;
|
|
36
|
+
roles: alepha1178.TOptional<alepha1178.TArray<alepha1178.TString>>;
|
|
37
37
|
}>;
|
|
38
38
|
type UserAccount = Static<typeof userAccountInfoSchema>;
|
|
39
39
|
//#endregion
|
|
40
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:
|
|
41
|
+
declare const errorSchema: alepha1178.TObject<{
|
|
42
|
+
error: alepha1178.TString;
|
|
43
|
+
status: alepha1178.TInteger;
|
|
44
|
+
message: alepha1178.TString;
|
|
45
|
+
details: alepha1178.TOptional<alepha1178.TString>;
|
|
46
|
+
requestId: alepha1178.TOptional<alepha1178.TString>;
|
|
47
|
+
cause: alepha1178.TOptional<alepha1178.TObject<{
|
|
48
|
+
name: alepha1178.TString;
|
|
49
|
+
message: alepha1178.TString;
|
|
50
50
|
}>>;
|
|
51
51
|
}>;
|
|
52
52
|
type ErrorSchema = Static<typeof errorSchema>;
|
|
@@ -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: alepha1178.TObject<{
|
|
289
|
+
level: alepha1178.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
290
|
+
message: alepha1178.TString;
|
|
291
|
+
service: alepha1178.TString;
|
|
292
|
+
module: alepha1178.TString;
|
|
293
|
+
context: alepha1178.TOptional<alepha1178.TString>;
|
|
294
|
+
app: alepha1178.TOptional<alepha1178.TString>;
|
|
295
|
+
data: alepha1178.TOptional<alepha1178.TAny>;
|
|
296
|
+
timestamp: alepha1178.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: alepha1178.HookPrimitive<"start">;
|
|
312
|
+
protected readonly onStop: alepha1178.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$9:
|
|
444
|
+
declare const envSchema$9: alepha1178.TObject<{
|
|
445
445
|
/**
|
|
446
446
|
* Default log level for the application.
|
|
447
447
|
*
|
|
@@ -458,14 +458,14 @@ declare const envSchema$9: alepha1118.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: alepha1178.TOptional<alepha1178.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: alepha1178.TOptional<alepha1178.TUnsafe<"json" | "pretty" | "raw">>;
|
|
469
469
|
}>;
|
|
470
470
|
declare module "alepha" {
|
|
471
471
|
interface Env extends Partial<Static<typeof envSchema$9>> {}
|
|
@@ -502,8 +502,8 @@ declare class ServerTimingProvider {
|
|
|
502
502
|
prefix: string;
|
|
503
503
|
disabled: boolean;
|
|
504
504
|
};
|
|
505
|
-
readonly onRequest:
|
|
506
|
-
readonly onResponse:
|
|
505
|
+
readonly onRequest: alepha1178.HookPrimitive<"server:onRequest">;
|
|
506
|
+
readonly onResponse: alepha1178.HookPrimitive<"server:onResponse">;
|
|
507
507
|
protected get handlerName(): string;
|
|
508
508
|
beginTiming(name: string): void;
|
|
509
509
|
endTiming(name: string): void;
|
|
@@ -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: alepha1178.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: alepha1178.HookPrimitive<"web:request">;
|
|
575
575
|
/**
|
|
576
576
|
* Handle Node.js HTTP request event.
|
|
577
577
|
*
|
|
@@ -916,18 +916,18 @@ declare class RoutePrimitive<TConfig extends RequestConfigSchema> extends Primit
|
|
|
916
916
|
}
|
|
917
917
|
//#endregion
|
|
918
918
|
//#region ../../../alepha/src/server/providers/BunHttpServerProvider.d.ts
|
|
919
|
-
declare const envSchema$8:
|
|
920
|
-
SERVER_PORT:
|
|
921
|
-
SERVER_HOST:
|
|
919
|
+
declare const envSchema$8: alepha1178.TObject<{
|
|
920
|
+
SERVER_PORT: alepha1178.TInteger;
|
|
921
|
+
SERVER_HOST: alepha1178.TString;
|
|
922
922
|
}>;
|
|
923
923
|
declare module "alepha" {
|
|
924
924
|
interface Env extends Partial<Static<typeof envSchema$8>> {}
|
|
925
925
|
}
|
|
926
926
|
//#endregion
|
|
927
927
|
//#region ../../../alepha/src/server/providers/NodeHttpServerProvider.d.ts
|
|
928
|
-
declare const envSchema$7:
|
|
929
|
-
SERVER_PORT:
|
|
930
|
-
SERVER_HOST:
|
|
928
|
+
declare const envSchema$7: alepha1178.TObject<{
|
|
929
|
+
SERVER_PORT: alepha1178.TInteger;
|
|
930
|
+
SERVER_HOST: alepha1178.TString;
|
|
931
931
|
}>;
|
|
932
932
|
declare module "alepha" {
|
|
933
933
|
interface Env extends Partial<Static<typeof envSchema$7>> {}
|
|
@@ -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: alepha1178.TObject<{
|
|
1015
|
+
name: alepha1178.TString;
|
|
1016
|
+
group: alepha1178.TOptional<alepha1178.TString>;
|
|
1017
|
+
description: alepha1178.TOptional<alepha1178.TString>;
|
|
1018
|
+
method: alepha1178.TOptional<alepha1178.TString>;
|
|
1019
|
+
path: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
1025
|
+
name: alepha1178.TString;
|
|
1026
|
+
description: alepha1178.TOptional<alepha1178.TString>;
|
|
1027
|
+
default: alepha1178.TOptional<alepha1178.TBoolean>;
|
|
1028
|
+
permissions: alepha1178.TArray<alepha1178.TObject<{
|
|
1029
|
+
name: alepha1178.TString;
|
|
1030
|
+
ownership: alepha1178.TOptional<alepha1178.TBoolean>;
|
|
1031
|
+
exclude: alepha1178.TOptional<alepha1178.TArray<alepha1178.TString>>;
|
|
1032
1032
|
}>>;
|
|
1033
1033
|
}>;
|
|
1034
1034
|
type Role = Static<typeof roleSchema>;
|
|
@@ -1100,8 +1100,8 @@ interface JwtParseResult {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
//#endregion
|
|
1102
1102
|
//#region ../../../alepha/src/security/providers/SecurityProvider.d.ts
|
|
1103
|
-
declare const envSchema$6:
|
|
1104
|
-
APP_SECRET:
|
|
1103
|
+
declare const envSchema$6: alepha1178.TObject<{
|
|
1104
|
+
APP_SECRET: alepha1178.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: alepha1178.HookPrimitive<"start">;
|
|
1129
1129
|
/**
|
|
1130
1130
|
* Adds a role to one or more realms.
|
|
1131
1131
|
*
|
|
@@ -1468,23 +1468,23 @@ declare module "alepha/server" {
|
|
|
1468
1468
|
*/
|
|
1469
1469
|
//#endregion
|
|
1470
1470
|
//#region ../../../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
1471
|
-
declare const apiLinkSchema:
|
|
1472
|
-
name:
|
|
1473
|
-
group:
|
|
1474
|
-
path:
|
|
1475
|
-
method:
|
|
1476
|
-
requestBodyType:
|
|
1477
|
-
service:
|
|
1471
|
+
declare const apiLinkSchema: alepha1178.TObject<{
|
|
1472
|
+
name: alepha1178.TString;
|
|
1473
|
+
group: alepha1178.TOptional<alepha1178.TString>;
|
|
1474
|
+
path: alepha1178.TString;
|
|
1475
|
+
method: alepha1178.TOptional<alepha1178.TString>;
|
|
1476
|
+
requestBodyType: alepha1178.TOptional<alepha1178.TString>;
|
|
1477
|
+
service: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
1480
|
+
prefix: alepha1178.TOptional<alepha1178.TString>;
|
|
1481
|
+
links: alepha1178.TArray<alepha1178.TObject<{
|
|
1482
|
+
name: alepha1178.TString;
|
|
1483
|
+
group: alepha1178.TOptional<alepha1178.TString>;
|
|
1484
|
+
path: alepha1178.TString;
|
|
1485
|
+
method: alepha1178.TOptional<alepha1178.TString>;
|
|
1486
|
+
requestBodyType: alepha1178.TOptional<alepha1178.TString>;
|
|
1487
|
+
service: alepha1178.TOptional<alepha1178.TString>;
|
|
1488
1488
|
}>>;
|
|
1489
1489
|
}>;
|
|
1490
1490
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
@@ -1680,7 +1680,7 @@ 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: alepha1178.HookPrimitive<"configure">;
|
|
1684
1684
|
createProxy(options: ProxyPrimitiveOptions): void;
|
|
1685
1685
|
createProxyHandler(target: string, options: Omit<ProxyPrimitiveOptions, "path">): ServerHandler;
|
|
1686
1686
|
private getRawRequestBody;
|
|
@@ -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: alepha1178.HookPrimitive<"configure">;
|
|
1888
|
+
readonly start: alepha1178.HookPrimitive<"start">;
|
|
1889
1889
|
registerRemote(value: RemotePrimitive): Promise<void>;
|
|
1890
1890
|
protected readonly fetchLinks: RetryPrimitiveFn<(opts: FetchLinksOptions) => Promise<ApiLinksResponse>>;
|
|
1891
1891
|
}
|
|
@@ -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: alepha1178.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: alepha1178.TObject<{
|
|
1964
|
+
prefix: alepha1178.TOptional<alepha1178.TString>;
|
|
1965
|
+
links: alepha1178.TArray<alepha1178.TObject<{
|
|
1966
|
+
name: alepha1178.TString;
|
|
1967
|
+
group: alepha1178.TOptional<alepha1178.TString>;
|
|
1968
|
+
path: alepha1178.TString;
|
|
1969
|
+
method: alepha1178.TOptional<alepha1178.TString>;
|
|
1970
|
+
requestBodyType: alepha1178.TOptional<alepha1178.TString>;
|
|
1971
|
+
service: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
1983
|
+
name: alepha1178.TString;
|
|
1984
1984
|
}>;
|
|
1985
|
-
response:
|
|
1985
|
+
response: alepha1178.TRecord<string, alepha1178.TAny>;
|
|
1986
1986
|
}>;
|
|
1987
1987
|
getSchemaByName(name: string, options?: GetApiLinksOptions): Promise<RequestConfigSchema>;
|
|
1988
1988
|
/**
|
|
@@ -2135,8 +2135,8 @@ declare class Redirection extends Error {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
//#endregion
|
|
2137
2137
|
//#region ../../../react/src/core/providers/ReactPageProvider.d.ts
|
|
2138
|
-
declare const envSchema$5:
|
|
2139
|
-
REACT_STRICT_MODE:
|
|
2138
|
+
declare const envSchema$5: alepha1178.TObject<{
|
|
2139
|
+
REACT_STRICT_MODE: alepha1178.TBoolean;
|
|
2140
2140
|
}>;
|
|
2141
2141
|
declare module "alepha" {
|
|
2142
2142
|
interface Env extends Partial<Static<typeof envSchema$5>> {}
|
|
@@ -2434,8 +2434,8 @@ type CssAnimation = {
|
|
|
2434
2434
|
};
|
|
2435
2435
|
//#endregion
|
|
2436
2436
|
//#region ../../../react/src/core/providers/ReactBrowserProvider.d.ts
|
|
2437
|
-
declare const envSchema$4:
|
|
2438
|
-
REACT_ROOT_ID:
|
|
2437
|
+
declare const envSchema$4: alepha1178.TObject<{
|
|
2438
|
+
REACT_ROOT_ID: alepha1178.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: alepha1178.Atom<alepha1178.TObject<{
|
|
2447
|
+
scrollRestoration: alepha1178.TUnsafe<"top" | "manual">;
|
|
2448
2448
|
}>, "alepha.react.browser.options">;
|
|
2449
2449
|
type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
|
|
2450
2450
|
declare module "alepha" {
|
|
@@ -2916,10 +2916,10 @@ declare class FileDetector {
|
|
|
2916
2916
|
}
|
|
2917
2917
|
//#endregion
|
|
2918
2918
|
//#region ../../../react/src/core/providers/ReactServerProvider.d.ts
|
|
2919
|
-
declare const envSchema$3:
|
|
2920
|
-
REACT_SSR_ENABLED:
|
|
2921
|
-
REACT_ROOT_ID:
|
|
2922
|
-
REACT_SERVER_TEMPLATE:
|
|
2919
|
+
declare const envSchema$3: alepha1178.TObject<{
|
|
2920
|
+
REACT_SSR_ENABLED: alepha1178.TOptional<alepha1178.TBoolean>;
|
|
2921
|
+
REACT_ROOT_ID: alepha1178.TString;
|
|
2922
|
+
REACT_SERVER_TEMPLATE: alepha1178.TOptional<alepha1178.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: alepha1178.Atom<alepha1178.TObject<{
|
|
2934
|
+
publicDir: alepha1178.TString;
|
|
2935
|
+
staticServer: alepha1178.TObject<{
|
|
2936
|
+
disabled: alepha1178.TBoolean;
|
|
2937
|
+
path: alepha1178.TString;
|
|
2938
2938
|
}>;
|
|
2939
2939
|
}>, "alepha.react.server.options">;
|
|
2940
2940
|
type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
|
|
@@ -3048,23 +3048,23 @@ declare module "alepha" {
|
|
|
3048
3048
|
*/
|
|
3049
3049
|
//#endregion
|
|
3050
3050
|
//#region ../../../alepha/src/server-auth/schemas/authenticationProviderSchema.d.ts
|
|
3051
|
-
declare const authenticationProviderSchema:
|
|
3052
|
-
name:
|
|
3053
|
-
type:
|
|
3051
|
+
declare const authenticationProviderSchema: alepha1178.TObject<{
|
|
3052
|
+
name: alepha1178.TString;
|
|
3053
|
+
type: alepha1178.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
3054
3054
|
}>;
|
|
3055
3055
|
type AuthenticationProvider = Static<typeof authenticationProviderSchema>;
|
|
3056
3056
|
//#endregion
|
|
3057
3057
|
//#region ../../../alepha/src/server-auth/schemas/tokensSchema.d.ts
|
|
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:
|
|
3058
|
+
declare const tokensSchema: alepha1178.TObject<{
|
|
3059
|
+
provider: alepha1178.TString;
|
|
3060
|
+
access_token: alepha1178.TString;
|
|
3061
|
+
issued_at: alepha1178.TNumber;
|
|
3062
|
+
expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3063
|
+
refresh_token: alepha1178.TOptional<alepha1178.TString>;
|
|
3064
|
+
refresh_token_expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3065
|
+
refresh_expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3066
|
+
id_token: alepha1178.TOptional<alepha1178.TString>;
|
|
3067
|
+
scope: alepha1178.TOptional<alepha1178.TString>;
|
|
3068
3068
|
}>;
|
|
3069
3069
|
type Tokens = Static<typeof tokensSchema>;
|
|
3070
3070
|
//#endregion
|
|
@@ -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: alepha1178.HookPrimitive<"server:onRequest">;
|
|
3092
|
+
readonly onAction: alepha1178.HookPrimitive<"action:onRequest">;
|
|
3093
|
+
readonly onSend: alepha1178.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;
|
|
@@ -3178,34 +3178,34 @@ declare class ServerAuthProvider {
|
|
|
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<alepha1178.TObject<{
|
|
3182
|
+
provider: alepha1178.TString;
|
|
3183
|
+
codeVerifier: alepha1178.TOptional<alepha1178.TString>;
|
|
3184
|
+
redirectUri: alepha1178.TOptional<alepha1178.TString>;
|
|
3185
|
+
state: alepha1178.TOptional<alepha1178.TString>;
|
|
3186
|
+
nonce: alepha1178.TOptional<alepha1178.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<alepha1178.TObject<{
|
|
3189
|
+
provider: alepha1178.TString;
|
|
3190
|
+
access_token: alepha1178.TString;
|
|
3191
|
+
issued_at: alepha1178.TNumber;
|
|
3192
|
+
expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3193
|
+
refresh_token: alepha1178.TOptional<alepha1178.TString>;
|
|
3194
|
+
refresh_token_expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3195
|
+
refresh_expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3196
|
+
id_token: alepha1178.TOptional<alepha1178.TString>;
|
|
3197
|
+
scope: alepha1178.TOptional<alepha1178.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: alepha1178.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: alepha1178.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: alepha1178.TObject<{
|
|
3220
|
+
user: alepha1178.TOptional<alepha1178.TObject<{
|
|
3221
|
+
id: alepha1178.TString;
|
|
3222
|
+
name: alepha1178.TOptional<alepha1178.TString>;
|
|
3223
|
+
email: alepha1178.TOptional<alepha1178.TString>;
|
|
3224
|
+
username: alepha1178.TOptional<alepha1178.TString>;
|
|
3225
|
+
picture: alepha1178.TOptional<alepha1178.TString>;
|
|
3226
|
+
sessionId: alepha1178.TOptional<alepha1178.TString>;
|
|
3227
|
+
organizations: alepha1178.TOptional<alepha1178.TArray<alepha1178.TString>>;
|
|
3228
|
+
roles: alepha1178.TOptional<alepha1178.TArray<alepha1178.TString>>;
|
|
3229
3229
|
}>>;
|
|
3230
|
-
api:
|
|
3231
|
-
prefix:
|
|
3232
|
-
links:
|
|
3233
|
-
name:
|
|
3234
|
-
group:
|
|
3235
|
-
path:
|
|
3236
|
-
method:
|
|
3237
|
-
requestBodyType:
|
|
3238
|
-
service:
|
|
3230
|
+
api: alepha1178.TObject<{
|
|
3231
|
+
prefix: alepha1178.TOptional<alepha1178.TString>;
|
|
3232
|
+
links: alepha1178.TArray<alepha1178.TObject<{
|
|
3233
|
+
name: alepha1178.TString;
|
|
3234
|
+
group: alepha1178.TOptional<alepha1178.TString>;
|
|
3235
|
+
path: alepha1178.TString;
|
|
3236
|
+
method: alepha1178.TOptional<alepha1178.TString>;
|
|
3237
|
+
requestBodyType: alepha1178.TOptional<alepha1178.TString>;
|
|
3238
|
+
service: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
3248
|
+
provider: alepha1178.TString;
|
|
3249
3249
|
}>;
|
|
3250
|
-
body:
|
|
3251
|
-
refresh_token:
|
|
3252
|
-
access_token:
|
|
3250
|
+
body: alepha1178.TObject<{
|
|
3251
|
+
refresh_token: alepha1178.TString;
|
|
3252
|
+
access_token: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
3255
|
+
provider: alepha1178.TString;
|
|
3256
|
+
access_token: alepha1178.TString;
|
|
3257
|
+
issued_at: alepha1178.TNumber;
|
|
3258
|
+
expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3259
|
+
refresh_token: alepha1178.TOptional<alepha1178.TString>;
|
|
3260
|
+
refresh_token_expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3261
|
+
refresh_expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3262
|
+
id_token: alepha1178.TOptional<alepha1178.TString>;
|
|
3263
|
+
scope: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
3271
|
+
provider: alepha1178.TString;
|
|
3272
3272
|
}>;
|
|
3273
|
-
body:
|
|
3274
|
-
username:
|
|
3275
|
-
password:
|
|
3273
|
+
body: alepha1178.TObject<{
|
|
3274
|
+
username: alepha1178.TString;
|
|
3275
|
+
password: alepha1178.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: alepha1178.TObject<{
|
|
3278
|
+
provider: alepha1178.TString;
|
|
3279
|
+
access_token: alepha1178.TString;
|
|
3280
|
+
issued_at: alepha1178.TNumber;
|
|
3281
|
+
expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3282
|
+
refresh_token: alepha1178.TOptional<alepha1178.TString>;
|
|
3283
|
+
refresh_token_expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3284
|
+
refresh_expires_in: alepha1178.TOptional<alepha1178.TNumber>;
|
|
3285
|
+
id_token: alepha1178.TOptional<alepha1178.TString>;
|
|
3286
|
+
scope: alepha1178.TOptional<alepha1178.TString>;
|
|
3287
|
+
user: alepha1178.TObject<{
|
|
3288
|
+
id: alepha1178.TString;
|
|
3289
|
+
name: alepha1178.TOptional<alepha1178.TString>;
|
|
3290
|
+
email: alepha1178.TOptional<alepha1178.TString>;
|
|
3291
|
+
username: alepha1178.TOptional<alepha1178.TString>;
|
|
3292
|
+
picture: alepha1178.TOptional<alepha1178.TString>;
|
|
3293
|
+
sessionId: alepha1178.TOptional<alepha1178.TString>;
|
|
3294
|
+
organizations: alepha1178.TOptional<alepha1178.TArray<alepha1178.TString>>;
|
|
3295
|
+
roles: alepha1178.TOptional<alepha1178.TArray<alepha1178.TString>>;
|
|
3296
3296
|
}>;
|
|
3297
|
-
api:
|
|
3298
|
-
prefix:
|
|
3299
|
-
links:
|
|
3300
|
-
name:
|
|
3301
|
-
group:
|
|
3302
|
-
path:
|
|
3303
|
-
method:
|
|
3304
|
-
requestBodyType:
|
|
3305
|
-
service:
|
|
3297
|
+
api: alepha1178.TObject<{
|
|
3298
|
+
prefix: alepha1178.TOptional<alepha1178.TString>;
|
|
3299
|
+
links: alepha1178.TArray<alepha1178.TObject<{
|
|
3300
|
+
name: alepha1178.TString;
|
|
3301
|
+
group: alepha1178.TOptional<alepha1178.TString>;
|
|
3302
|
+
path: alepha1178.TString;
|
|
3303
|
+
method: alepha1178.TOptional<alepha1178.TString>;
|
|
3304
|
+
requestBodyType: alepha1178.TOptional<alepha1178.TString>;
|
|
3305
|
+
service: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
3315
|
+
provider: alepha1178.TString;
|
|
3316
|
+
redirect_uri: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
3329
|
+
post_logout_redirect_uri: alepha1178.TOptional<alepha1178.TString>;
|
|
3330
3330
|
}>;
|
|
3331
3331
|
}>;
|
|
3332
3332
|
protected provider(opts: string | {
|
|
@@ -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: alepha1178.HookPrimitive<"react:transition:begin">;
|
|
3583
|
+
protected readonly onFetchRequest: alepha1178.HookPrimitive<"client:onRequest">;
|
|
3584
3584
|
/**
|
|
3585
3585
|
* Get the current authenticated user.
|
|
3586
3586
|
*
|
|
@@ -3622,25 +3622,25 @@ declare module "@alepha/react" {
|
|
|
3622
3622
|
*/
|
|
3623
3623
|
//#endregion
|
|
3624
3624
|
//#region ../../../alepha/src/api-users/atoms/realmAuthSettingsAtom.d.ts
|
|
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:
|
|
3625
|
+
declare const realmAuthSettingsAtom: alepha1178.Atom<alepha1178.TObject<{
|
|
3626
|
+
registrationAllowed: alepha1178.TBoolean;
|
|
3627
|
+
emailEnabled: alepha1178.TBoolean;
|
|
3628
|
+
emailRequired: alepha1178.TBoolean;
|
|
3629
|
+
usernameEnabled: alepha1178.TBoolean;
|
|
3630
|
+
usernameRequired: alepha1178.TBoolean;
|
|
3631
|
+
phoneEnabled: alepha1178.TBoolean;
|
|
3632
|
+
phoneRequired: alepha1178.TBoolean;
|
|
3633
|
+
verifyEmailRequired: alepha1178.TBoolean;
|
|
3634
|
+
verifyPhoneRequired: alepha1178.TBoolean;
|
|
3635
|
+
firstNameLastNameEnabled: alepha1178.TBoolean;
|
|
3636
|
+
firstNameLastNameRequired: alepha1178.TBoolean;
|
|
3637
|
+
resetPasswordAllowed: alepha1178.TBoolean;
|
|
3638
|
+
passwordPolicy: alepha1178.TObject<{
|
|
3639
|
+
minLength: alepha1178.TInteger;
|
|
3640
|
+
requireUppercase: alepha1178.TBoolean;
|
|
3641
|
+
requireLowercase: alepha1178.TBoolean;
|
|
3642
|
+
requireNumbers: alepha1178.TBoolean;
|
|
3643
|
+
requireSpecialCharacters: alepha1178.TBoolean;
|
|
3644
3644
|
}>;
|
|
3645
3645
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
3646
3646
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
@@ -4536,11 +4536,11 @@ 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: alepha1178.TObject<{
|
|
4540
|
+
id: alepha1178.TNumber;
|
|
4541
|
+
name: alepha1178.TString;
|
|
4542
|
+
snapshot: alepha1178.TString;
|
|
4543
|
+
created_at: alepha1178.TString;
|
|
4544
4544
|
}>;
|
|
4545
4545
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
4546
4546
|
//#endregion
|
|
@@ -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
|
+
}>): alepha1178.Page<T$1>;
|
|
4741
4741
|
}
|
|
4742
4742
|
interface PgJoin {
|
|
4743
4743
|
table: string;
|
|
@@ -5042,8 +5042,8 @@ interface StatementOptions {
|
|
|
5042
5042
|
}
|
|
5043
5043
|
//#endregion
|
|
5044
5044
|
//#region ../../../alepha/src/lock/primitives/$lock.d.ts
|
|
5045
|
-
declare const envSchema$2:
|
|
5046
|
-
LOCK_PREFIX_KEY:
|
|
5045
|
+
declare const envSchema$2: alepha1178.TObject<{
|
|
5046
|
+
LOCK_PREFIX_KEY: alepha1178.TString;
|
|
5047
5047
|
}>;
|
|
5048
5048
|
declare module "alepha" {
|
|
5049
5049
|
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
@@ -5053,7 +5053,7 @@ declare module "alepha" {
|
|
|
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: alepha1178.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: alepha1118.TObject<{
|
|
|
5061
5061
|
* or
|
|
5062
5062
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
5063
5063
|
*/
|
|
5064
|
-
DATABASE_URL:
|
|
5064
|
+
DATABASE_URL: alepha1178.TOptional<alepha1178.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: alepha1178.TOptional<alepha1178.TString>;
|
|
5071
5071
|
}>;
|
|
5072
5072
|
//#endregion
|
|
5073
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: alepha1178.Atom<alepha1178.TObject<{
|
|
5078
|
+
path: alepha1178.TOptional<alepha1178.TString>;
|
|
5079
5079
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
5080
5080
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
5081
5081
|
declare module "alepha" {
|
|
@@ -5159,16 +5159,16 @@ declare module "alepha" {
|
|
|
5159
5159
|
}
|
|
5160
5160
|
//#endregion
|
|
5161
5161
|
//#region ../../../alepha/src/api-users/entities/identities.d.ts
|
|
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:
|
|
5162
|
+
declare const identities: EntityPrimitive<alepha1178.TObject<{
|
|
5163
|
+
id: PgAttr<PgAttr<alepha1178.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5164
|
+
version: PgAttr<PgAttr<alepha1178.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5165
|
+
createdAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5166
|
+
updatedAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5167
|
+
userId: PgAttr<alepha1178.TString, typeof PG_REF>;
|
|
5168
|
+
password: alepha1178.TOptional<alepha1178.TString>;
|
|
5169
|
+
provider: alepha1178.TString;
|
|
5170
|
+
providerUserId: alepha1178.TOptional<alepha1178.TString>;
|
|
5171
|
+
providerData: alepha1178.TOptional<alepha1178.TRecord<string, alepha1178.TAny>>;
|
|
5172
5172
|
}>>;
|
|
5173
5173
|
//#endregion
|
|
5174
5174
|
//#region ../../../alepha/src/bucket/providers/FileStorageProvider.d.ts
|
|
@@ -5395,8 +5395,8 @@ interface BucketFileOptions {
|
|
|
5395
5395
|
/**
|
|
5396
5396
|
* Local file storage configuration atom
|
|
5397
5397
|
*/
|
|
5398
|
-
declare const localFileStorageOptions:
|
|
5399
|
-
storagePath:
|
|
5398
|
+
declare const localFileStorageOptions: alepha1178.Atom<alepha1178.TObject<{
|
|
5399
|
+
storagePath: alepha1178.TString;
|
|
5400
5400
|
}>, "alepha.bucket.local.options">;
|
|
5401
5401
|
type LocalFileStorageProviderOptions = Static<typeof localFileStorageOptions.schema>;
|
|
5402
5402
|
declare module "alepha" {
|
|
@@ -5440,38 +5440,38 @@ declare module "alepha" {
|
|
|
5440
5440
|
*/
|
|
5441
5441
|
//#endregion
|
|
5442
5442
|
//#region ../../../alepha/src/api-users/entities/sessions.d.ts
|
|
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:
|
|
5443
|
+
declare const sessions: EntityPrimitive<alepha1178.TObject<{
|
|
5444
|
+
id: PgAttr<PgAttr<alepha1178.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5445
|
+
version: PgAttr<PgAttr<alepha1178.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5446
|
+
createdAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5447
|
+
updatedAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5448
|
+
refreshToken: alepha1178.TString;
|
|
5449
|
+
userId: PgAttr<alepha1178.TString, typeof PG_REF>;
|
|
5450
|
+
expiresAt: alepha1178.TString;
|
|
5451
|
+
ip: alepha1178.TOptional<alepha1178.TString>;
|
|
5452
|
+
userAgent: alepha1178.TOptional<alepha1178.TObject<{
|
|
5453
|
+
os: alepha1178.TString;
|
|
5454
|
+
browser: alepha1178.TString;
|
|
5455
|
+
device: alepha1178.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
5456
5456
|
}>>;
|
|
5457
5457
|
}>>;
|
|
5458
5458
|
//#endregion
|
|
5459
5459
|
//#region ../../../alepha/src/api-users/entities/users.d.ts
|
|
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<
|
|
5460
|
+
declare const users: EntityPrimitive<alepha1178.TObject<{
|
|
5461
|
+
id: PgAttr<PgAttr<alepha1178.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5462
|
+
version: PgAttr<PgAttr<alepha1178.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5463
|
+
createdAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5464
|
+
updatedAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5465
|
+
realm: PgAttr<alepha1178.TString, typeof PG_DEFAULT>;
|
|
5466
|
+
username: alepha1178.TOptional<alepha1178.TString>;
|
|
5467
|
+
email: alepha1178.TOptional<alepha1178.TString>;
|
|
5468
|
+
phoneNumber: alepha1178.TOptional<alepha1178.TString>;
|
|
5469
|
+
roles: PgAttr<alepha1178.TArray<alepha1178.TString>, typeof PG_DEFAULT>;
|
|
5470
|
+
firstName: alepha1178.TOptional<alepha1178.TString>;
|
|
5471
|
+
lastName: alepha1178.TOptional<alepha1178.TString>;
|
|
5472
|
+
picture: alepha1178.TOptional<alepha1178.TString>;
|
|
5473
|
+
enabled: PgAttr<alepha1178.TBoolean, typeof PG_DEFAULT>;
|
|
5474
|
+
emailVerified: PgAttr<alepha1178.TBoolean, typeof PG_DEFAULT>;
|
|
5475
5475
|
}>>;
|
|
5476
5476
|
//#endregion
|
|
5477
5477
|
//#region ../../../alepha/src/api-users/providers/UserRealmProvider.d.ts
|
|
@@ -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<alepha1178.TObject<{
|
|
5491
|
+
id: PgAttr<PgAttr<alepha1178.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5492
|
+
version: PgAttr<PgAttr<alepha1178.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5493
|
+
createdAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5494
|
+
updatedAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5495
|
+
userId: PgAttr<alepha1178.TString, typeof PG_REF>;
|
|
5496
|
+
password: alepha1178.TOptional<alepha1178.TString>;
|
|
5497
|
+
provider: alepha1178.TString;
|
|
5498
|
+
providerUserId: alepha1178.TOptional<alepha1178.TString>;
|
|
5499
|
+
providerData: alepha1178.TOptional<alepha1178.TRecord<string, alepha1178.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<alepha1178.TObject<{
|
|
5502
|
+
id: PgAttr<PgAttr<alepha1178.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5503
|
+
version: PgAttr<PgAttr<alepha1178.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5504
|
+
createdAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5505
|
+
updatedAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5506
|
+
refreshToken: alepha1178.TString;
|
|
5507
|
+
userId: PgAttr<alepha1178.TString, typeof PG_REF>;
|
|
5508
|
+
expiresAt: alepha1178.TString;
|
|
5509
|
+
ip: alepha1178.TOptional<alepha1178.TString>;
|
|
5510
|
+
userAgent: alepha1178.TOptional<alepha1178.TObject<{
|
|
5511
|
+
os: alepha1178.TString;
|
|
5512
|
+
browser: alepha1178.TString;
|
|
5513
|
+
device: alepha1178.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<alepha1178.TObject<{
|
|
5517
|
+
id: PgAttr<PgAttr<alepha1178.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
5518
|
+
version: PgAttr<PgAttr<alepha1178.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
5519
|
+
createdAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
5520
|
+
updatedAt: PgAttr<PgAttr<alepha1178.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
5521
|
+
realm: PgAttr<alepha1178.TString, typeof PG_DEFAULT>;
|
|
5522
|
+
username: alepha1178.TOptional<alepha1178.TString>;
|
|
5523
|
+
email: alepha1178.TOptional<alepha1178.TString>;
|
|
5524
|
+
phoneNumber: alepha1178.TOptional<alepha1178.TString>;
|
|
5525
|
+
roles: PgAttr<alepha1178.TArray<alepha1178.TString>, typeof PG_DEFAULT>;
|
|
5526
|
+
firstName: alepha1178.TOptional<alepha1178.TString>;
|
|
5527
|
+
lastName: alepha1178.TOptional<alepha1178.TString>;
|
|
5528
|
+
picture: alepha1178.TOptional<alepha1178.TString>;
|
|
5529
|
+
enabled: PgAttr<alepha1178.TBoolean, typeof PG_DEFAULT>;
|
|
5530
|
+
emailVerified: PgAttr<alepha1178.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: alepha1178.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.
|
|
@@ -5546,21 +5546,21 @@ declare class UserRealmProvider {
|
|
|
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: alepha1178.Atom<alepha1178.TObject<{
|
|
5550
|
+
code: alepha1178.TObject<{
|
|
5551
|
+
maxAttempts: alepha1178.TInteger;
|
|
5552
|
+
codeLength: alepha1178.TInteger;
|
|
5553
|
+
codeExpiration: alepha1178.TInteger;
|
|
5554
|
+
verificationCooldown: alepha1178.TInteger;
|
|
5555
|
+
limitPerDay: alepha1178.TInteger;
|
|
5556
5556
|
}>;
|
|
5557
|
-
link:
|
|
5558
|
-
maxAttempts:
|
|
5559
|
-
codeExpiration:
|
|
5560
|
-
verificationCooldown:
|
|
5561
|
-
limitPerDay:
|
|
5557
|
+
link: alepha1178.TObject<{
|
|
5558
|
+
maxAttempts: alepha1178.TInteger;
|
|
5559
|
+
codeExpiration: alepha1178.TInteger;
|
|
5560
|
+
verificationCooldown: alepha1178.TInteger;
|
|
5561
|
+
limitPerDay: alepha1178.TInteger;
|
|
5562
5562
|
}>;
|
|
5563
|
-
purgeDays:
|
|
5563
|
+
purgeDays: alepha1178.TInteger;
|
|
5564
5564
|
}>, "alepha.api.verifications.options">;
|
|
5565
5565
|
type VerificationOptions = Static<typeof verificationOptions.schema>;
|
|
5566
5566
|
declare module "alepha" {
|
|
@@ -5665,38 +5665,38 @@ declare module "alepha" {
|
|
|
5665
5665
|
*/
|
|
5666
5666
|
//#endregion
|
|
5667
5667
|
//#region ../../../alepha/src/api-notifications/services/NotificationService.d.ts
|
|
5668
|
-
declare const notificationServiceEnvSchema:
|
|
5669
|
-
NOTIFICATION_QUEUE:
|
|
5668
|
+
declare const notificationServiceEnvSchema: alepha1178.TObject<{
|
|
5669
|
+
NOTIFICATION_QUEUE: alepha1178.TOptional<alepha1178.TBoolean>;
|
|
5670
5670
|
}>;
|
|
5671
5671
|
declare module "alepha" {
|
|
5672
5672
|
interface Env extends Partial<Static<typeof notificationServiceEnvSchema>> {}
|
|
5673
5673
|
}
|
|
5674
5674
|
//#endregion
|
|
5675
5675
|
//#region ../../../alepha/src/queue/providers/WorkerProvider.d.ts
|
|
5676
|
-
declare const envSchema:
|
|
5676
|
+
declare const envSchema: alepha1178.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: alepha1178.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: alepha1178.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: alepha1178.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: alepha1178.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: alepha1178.TInteger;
|
|
5700
5700
|
}>;
|
|
5701
5701
|
declare module "alepha" {
|
|
5702
5702
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -5717,47 +5717,47 @@ 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: alepha1178.TObject<{
|
|
5721
|
+
userRealmName: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
5724
|
+
settings: alepha1178.TObject<{
|
|
5725
|
+
registrationAllowed: alepha1178.TBoolean;
|
|
5726
|
+
emailEnabled: alepha1178.TBoolean;
|
|
5727
|
+
emailRequired: alepha1178.TBoolean;
|
|
5728
|
+
usernameEnabled: alepha1178.TBoolean;
|
|
5729
|
+
usernameRequired: alepha1178.TBoolean;
|
|
5730
|
+
phoneEnabled: alepha1178.TBoolean;
|
|
5731
|
+
phoneRequired: alepha1178.TBoolean;
|
|
5732
|
+
verifyEmailRequired: alepha1178.TBoolean;
|
|
5733
|
+
verifyPhoneRequired: alepha1178.TBoolean;
|
|
5734
|
+
firstNameLastNameEnabled: alepha1178.TBoolean;
|
|
5735
|
+
firstNameLastNameRequired: alepha1178.TBoolean;
|
|
5736
|
+
resetPasswordAllowed: alepha1178.TBoolean;
|
|
5737
|
+
passwordPolicy: alepha1178.TObject<{
|
|
5738
|
+
minLength: alepha1178.TInteger;
|
|
5739
|
+
requireUppercase: alepha1178.TBoolean;
|
|
5740
|
+
requireLowercase: alepha1178.TBoolean;
|
|
5741
|
+
requireNumbers: alepha1178.TBoolean;
|
|
5742
|
+
requireSpecialCharacters: alepha1178.TBoolean;
|
|
5743
5743
|
}>;
|
|
5744
5744
|
}>;
|
|
5745
|
-
realmName:
|
|
5746
|
-
authenticationMethods:
|
|
5747
|
-
name:
|
|
5748
|
-
type:
|
|
5745
|
+
realmName: alepha1178.TString;
|
|
5746
|
+
authenticationMethods: alepha1178.TArray<alepha1178.TObject<{
|
|
5747
|
+
name: alepha1178.TString;
|
|
5748
|
+
type: alepha1178.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
5749
5749
|
}>>;
|
|
5750
5750
|
}>;
|
|
5751
5751
|
}>;
|
|
5752
5752
|
readonly checkUsernameAvailability: ActionPrimitiveFn<{
|
|
5753
|
-
query:
|
|
5754
|
-
userRealmName:
|
|
5753
|
+
query: alepha1178.TObject<{
|
|
5754
|
+
userRealmName: alepha1178.TOptional<alepha1178.TString>;
|
|
5755
5755
|
}>;
|
|
5756
|
-
body:
|
|
5757
|
-
username:
|
|
5756
|
+
body: alepha1178.TObject<{
|
|
5757
|
+
username: alepha1178.TString;
|
|
5758
5758
|
}>;
|
|
5759
|
-
response:
|
|
5760
|
-
available:
|
|
5759
|
+
response: alepha1178.TObject<{
|
|
5760
|
+
available: alepha1178.TBoolean;
|
|
5761
5761
|
}>;
|
|
5762
5762
|
}>;
|
|
5763
5763
|
}
|
|
@@ -5797,32 +5797,32 @@ interface UserRealmOptions {
|
|
|
5797
5797
|
}
|
|
5798
5798
|
//#endregion
|
|
5799
5799
|
//#region ../../../alepha/src/api-users/schemas/userRealmConfigSchema.d.ts
|
|
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:
|
|
5800
|
+
declare const userRealmConfigSchema: alepha1178.TObject<{
|
|
5801
|
+
settings: alepha1178.TObject<{
|
|
5802
|
+
registrationAllowed: alepha1178.TBoolean;
|
|
5803
|
+
emailEnabled: alepha1178.TBoolean;
|
|
5804
|
+
emailRequired: alepha1178.TBoolean;
|
|
5805
|
+
usernameEnabled: alepha1178.TBoolean;
|
|
5806
|
+
usernameRequired: alepha1178.TBoolean;
|
|
5807
|
+
phoneEnabled: alepha1178.TBoolean;
|
|
5808
|
+
phoneRequired: alepha1178.TBoolean;
|
|
5809
|
+
verifyEmailRequired: alepha1178.TBoolean;
|
|
5810
|
+
verifyPhoneRequired: alepha1178.TBoolean;
|
|
5811
|
+
firstNameLastNameEnabled: alepha1178.TBoolean;
|
|
5812
|
+
firstNameLastNameRequired: alepha1178.TBoolean;
|
|
5813
|
+
resetPasswordAllowed: alepha1178.TBoolean;
|
|
5814
|
+
passwordPolicy: alepha1178.TObject<{
|
|
5815
|
+
minLength: alepha1178.TInteger;
|
|
5816
|
+
requireUppercase: alepha1178.TBoolean;
|
|
5817
|
+
requireLowercase: alepha1178.TBoolean;
|
|
5818
|
+
requireNumbers: alepha1178.TBoolean;
|
|
5819
|
+
requireSpecialCharacters: alepha1178.TBoolean;
|
|
5820
5820
|
}>;
|
|
5821
5821
|
}>;
|
|
5822
|
-
realmName:
|
|
5823
|
-
authenticationMethods:
|
|
5824
|
-
name:
|
|
5825
|
-
type:
|
|
5822
|
+
realmName: alepha1178.TString;
|
|
5823
|
+
authenticationMethods: alepha1178.TArray<alepha1178.TObject<{
|
|
5824
|
+
name: alepha1178.TString;
|
|
5825
|
+
type: alepha1178.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
5826
5826
|
}>>;
|
|
5827
5827
|
}>;
|
|
5828
5828
|
type UserRealmConfig = Static<typeof userRealmConfigSchema>;
|
|
@@ -5865,8 +5865,8 @@ declare class AuthRouter {
|
|
|
5865
5865
|
protected readonly auth: ReactAuth;
|
|
5866
5866
|
layout: PagePrimitive<PageConfigSchema, any, TPropsParentDefault>;
|
|
5867
5867
|
login: PagePrimitive<{
|
|
5868
|
-
query:
|
|
5869
|
-
r:
|
|
5868
|
+
query: alepha1178.TObject<{
|
|
5869
|
+
r: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
5903
|
+
r: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
5937
|
+
r: alepha1178.TOptional<alepha1178.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: alepha1178.TObject<{
|
|
5971
|
+
email: alepha1178.TOptional<alepha1178.TString>;
|
|
5972
|
+
token: alepha1178.TOptional<alepha1178.TString>;
|
|
5973
5973
|
}>;
|
|
5974
5974
|
}, any, TPropsParentDefault>;
|
|
5975
5975
|
logout: PagePrimitive<PageConfigSchema, {}, TPropsParentDefault>;
|
|
@@ -6056,7 +6056,7 @@ declare const VerifyEmail: (_props: VerifyEmailProps) => react_jsx_runtime0.JSX.
|
|
|
6056
6056
|
*
|
|
6057
6057
|
* @module alepha.ui.auth
|
|
6058
6058
|
*/
|
|
6059
|
-
declare const AlephaUIAuth:
|
|
6059
|
+
declare const AlephaUIAuth: alepha1178.Service<alepha1178.Module>;
|
|
6060
6060
|
//#endregion
|
|
6061
6061
|
export { AlephaUIAuth, AuthRouter, Login, Register, ResetPassword, UserButton, type UserButtonProps, VerifyEmail };
|
|
6062
6062
|
//# sourceMappingURL=index.d.ts.map
|