@alepha/ui 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/{AdminFiles-CllAxb1B.js → AdminFiles-BjofP3OC.js} +11 -11
- package/dist/admin/AdminFiles-BjofP3OC.js.map +1 -0
- package/dist/admin/AdminFiles-DldZB7oo.js +3 -0
- package/dist/admin/AdminJobs-BOq6AZOW.js +3 -0
- package/dist/admin/{AdminJobs-BXkFtlVo.js → AdminJobs-CDnVxEv6.js} +11 -11
- package/dist/admin/AdminJobs-CDnVxEv6.js.map +1 -0
- package/dist/admin/AdminLayout-Bgx25J8m.js +3 -0
- package/dist/admin/{AdminLayout-CtkVYk-u.js → AdminLayout-CervL8LV.js} +6 -6
- package/dist/admin/AdminLayout-CervL8LV.js.map +1 -0
- package/dist/admin/AdminNotifications-BDQXt3-e.js +3 -0
- package/dist/admin/{AdminNotifications-DnnulNNV.js → AdminNotifications-DvI2989x.js} +6 -6
- package/dist/admin/AdminNotifications-DvI2989x.js.map +1 -0
- package/dist/admin/{AdminParameters-B3hvpLpu.js → AdminParameters-CWi7crdn.js} +6 -6
- package/dist/admin/AdminParameters-CWi7crdn.js.map +1 -0
- package/dist/admin/AdminParameters-DKRAVen3.js +3 -0
- package/dist/admin/{AdminSessions-Pjdz-iZx.js → AdminSessions-CmDVneE2.js} +11 -11
- package/dist/admin/AdminSessions-CmDVneE2.js.map +1 -0
- package/dist/admin/AdminSessions-Dkk_fzWK.js +3 -0
- package/dist/admin/{AdminUsers-C1HsrRxn.js → AdminUsers-88De5pev.js} +9 -9
- package/dist/admin/AdminUsers-88De5pev.js.map +1 -0
- package/dist/admin/AdminUsers-oyAXqZ5l.js +3 -0
- package/dist/admin/AdminVerifications-D93TKymL.js +3 -0
- package/dist/admin/{AdminVerifications-VMpm30mS.js → AdminVerifications-DBVEoqJe.js} +6 -6
- package/dist/admin/AdminVerifications-DBVEoqJe.js.map +1 -0
- package/dist/admin/index.d.ts +80 -80
- package/dist/admin/index.js +17 -17
- package/dist/auth/{IconGoogle-Bfmuv9Rv.js → IconGoogle-v_58os2T.js} +1 -1
- package/dist/auth/{IconGoogle-Bfmuv9Rv.js.map → IconGoogle-v_58os2T.js.map} +1 -1
- package/dist/auth/Login-BC2jTczq.js +4 -0
- package/dist/auth/{Login-JeXFsUf5.js → Login-OCrvjs9U.js} +12 -12
- package/dist/auth/Login-OCrvjs9U.js.map +1 -0
- package/dist/auth/Register-Dh0lsQmI.js +4 -0
- package/dist/auth/{Register-CPQnvXCZ.js → Register-Ei34GSba.js} +16 -16
- package/dist/auth/Register-Ei34GSba.js.map +1 -0
- package/dist/auth/ResetPassword-BnlAQAOE.js +3 -0
- package/dist/auth/{ResetPassword-BzUjGG_-.js → ResetPassword-tO0oMzfo.js} +12 -12
- package/dist/auth/ResetPassword-tO0oMzfo.js.map +1 -0
- package/dist/auth/index.d.ts +413 -830
- package/dist/auth/index.js +10 -10
- package/dist/auth/index.js.map +1 -1
- package/dist/core/index.d.ts +70 -70
- package/package.json +6 -9
- package/dist/admin/AdminFiles-BM6_7_5A.cjs +0 -4
- package/dist/admin/AdminFiles-BaCIMeNt.js +0 -4
- package/dist/admin/AdminFiles-CllAxb1B.js.map +0 -1
- package/dist/admin/AdminFiles-DC3T8uWZ.cjs +0 -122
- package/dist/admin/AdminFiles-DC3T8uWZ.cjs.map +0 -1
- package/dist/admin/AdminJobs-BXkFtlVo.js.map +0 -1
- package/dist/admin/AdminJobs-C428qrNQ.cjs +0 -130
- package/dist/admin/AdminJobs-C428qrNQ.cjs.map +0 -1
- package/dist/admin/AdminJobs-DCPPaJ4i.cjs +0 -4
- package/dist/admin/AdminJobs-yC6DarGO.js +0 -4
- package/dist/admin/AdminLayout-Bqo4cd33.cjs +0 -4
- package/dist/admin/AdminLayout-CQpxfko6.js +0 -4
- package/dist/admin/AdminLayout-CiLlywAQ.cjs +0 -93
- package/dist/admin/AdminLayout-CiLlywAQ.cjs.map +0 -1
- package/dist/admin/AdminLayout-CtkVYk-u.js.map +0 -1
- package/dist/admin/AdminNotifications-DNUeJ-PW.cjs +0 -44
- package/dist/admin/AdminNotifications-DNUeJ-PW.cjs.map +0 -1
- package/dist/admin/AdminNotifications-DaMu1AQ4.js +0 -4
- package/dist/admin/AdminNotifications-DnnulNNV.js.map +0 -1
- package/dist/admin/AdminNotifications-ihgbKVCx.cjs +0 -4
- package/dist/admin/AdminParameters-B3hvpLpu.js.map +0 -1
- package/dist/admin/AdminParameters-U4lU1rUF.cjs +0 -4
- package/dist/admin/AdminParameters-gdf7036N.cjs +0 -44
- package/dist/admin/AdminParameters-gdf7036N.cjs.map +0 -1
- package/dist/admin/AdminParameters-prMcCgxf.js +0 -4
- package/dist/admin/AdminSessions-BF_P4lHs.cjs +0 -128
- package/dist/admin/AdminSessions-BF_P4lHs.cjs.map +0 -1
- package/dist/admin/AdminSessions-CATIU61I.cjs +0 -4
- package/dist/admin/AdminSessions-DqOXOpYR.js +0 -4
- package/dist/admin/AdminSessions-Pjdz-iZx.js.map +0 -1
- package/dist/admin/AdminUsers-BgTL-zSY.js +0 -4
- package/dist/admin/AdminUsers-C1HsrRxn.js.map +0 -1
- package/dist/admin/AdminUsers-HqvxwNGZ.cjs +0 -4
- package/dist/admin/AdminUsers-M2uEQbp5.cjs +0 -109
- package/dist/admin/AdminUsers-M2uEQbp5.cjs.map +0 -1
- package/dist/admin/AdminVerifications-BVssbtfU.cjs +0 -44
- package/dist/admin/AdminVerifications-BVssbtfU.cjs.map +0 -1
- package/dist/admin/AdminVerifications-Df6DRgNo.js +0 -4
- package/dist/admin/AdminVerifications-DxAtcYUR.cjs +0 -4
- package/dist/admin/AdminVerifications-VMpm30mS.js.map +0 -1
- package/dist/admin/core-CzO6aavT.js +0 -2507
- package/dist/admin/core-CzO6aavT.js.map +0 -1
- package/dist/admin/core-aFtK4l9I.cjs +0 -2530
- package/dist/admin/core-aFtK4l9I.cjs.map +0 -1
- package/dist/admin/index.cjs +0 -87
- package/dist/admin/index.cjs.map +0 -1
- package/dist/admin/index.d.cts +0 -1739
- package/dist/auth/IconGoogle-B17BTQyD.cjs +0 -69
- package/dist/auth/IconGoogle-B17BTQyD.cjs.map +0 -1
- package/dist/auth/Login-BTBmbnWl.cjs +0 -181
- package/dist/auth/Login-BTBmbnWl.cjs.map +0 -1
- package/dist/auth/Login-BcQOtG3v.js +0 -5
- package/dist/auth/Login-Btmd70Um.cjs +0 -5
- package/dist/auth/Login-JeXFsUf5.js.map +0 -1
- package/dist/auth/Register-CPQnvXCZ.js.map +0 -1
- package/dist/auth/Register-CbesZal3.cjs +0 -5
- package/dist/auth/Register-DpI_JdyO.js +0 -5
- package/dist/auth/Register-HP3rP71B.cjs +0 -323
- package/dist/auth/Register-HP3rP71B.cjs.map +0 -1
- package/dist/auth/ResetPassword-B-tkzV7g.cjs +0 -248
- package/dist/auth/ResetPassword-B-tkzV7g.cjs.map +0 -1
- package/dist/auth/ResetPassword-BlK3xEpU.js +0 -4
- package/dist/auth/ResetPassword-BzUjGG_-.js.map +0 -1
- package/dist/auth/ResetPassword-W3xjOnWy.cjs +0 -4
- package/dist/auth/chunk-DhGyd7sr.js +0 -28
- package/dist/auth/core-D1MHij1j.js +0 -1795
- package/dist/auth/core-D1MHij1j.js.map +0 -1
- package/dist/auth/core-rDZ9d92K.cjs +0 -1824
- package/dist/auth/core-rDZ9d92K.cjs.map +0 -1
- package/dist/auth/index.cjs +0 -211
- package/dist/auth/index.cjs.map +0 -1
- package/dist/auth/index.d.cts +0 -6265
- package/dist/core/index.cjs +0 -2620
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.d.cts +0 -2737
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import "@mantine/modals";
|
|
5
|
-
import "@mantine/notifications";
|
|
6
|
-
import "@mantine/nprogress";
|
|
1
|
+
import { ActionMenuConfig, ActionMenuItem, ActionProps } from "@alepha/ui";
|
|
2
|
+
import * as alepha1246 from "alepha";
|
|
3
|
+
import { Alepha, AlephaError, Async, Descriptor, DescriptorArgs, FileLike, InstantiableClass, LogLevel, LoggerInterface, Page, PageQuery, Service, Static, StaticEncode, StreamLike, TArray, TFile, TNull, TObject, TOptional, TRecord, TSchema, TStream, TString, TUnion, TVoid } from "alepha";
|
|
7
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
9
|
-
import { DateInputProps, DateTimePickerProps, TimeInputProps } from "@mantine/dates";
|
|
5
|
+
import { FC, ReactNode } from "react";
|
|
10
6
|
import "dayjs/plugin/relativeTime.js";
|
|
11
7
|
import dayjsDuration from "dayjs/plugin/duration.js";
|
|
12
8
|
import "dayjs/plugin/utc.js";
|
|
@@ -29,28 +25,28 @@ import * as DrizzleKit from "drizzle-kit/api";
|
|
|
29
25
|
import { Configuration } from "openid-client";
|
|
30
26
|
|
|
31
27
|
//#region ../alepha/src/security/schemas/userAccountInfoSchema.d.ts
|
|
32
|
-
declare const userAccountInfoSchema:
|
|
33
|
-
id:
|
|
34
|
-
name:
|
|
35
|
-
email:
|
|
36
|
-
username:
|
|
37
|
-
picture:
|
|
38
|
-
sessionId:
|
|
39
|
-
organizations:
|
|
40
|
-
roles:
|
|
28
|
+
declare const userAccountInfoSchema: alepha1246.TObject<{
|
|
29
|
+
id: alepha1246.TString;
|
|
30
|
+
name: alepha1246.TOptional<alepha1246.TString>;
|
|
31
|
+
email: alepha1246.TOptional<alepha1246.TString>;
|
|
32
|
+
username: alepha1246.TOptional<alepha1246.TString>;
|
|
33
|
+
picture: alepha1246.TOptional<alepha1246.TString>;
|
|
34
|
+
sessionId: alepha1246.TOptional<alepha1246.TString>;
|
|
35
|
+
organizations: alepha1246.TOptional<alepha1246.TArray<alepha1246.TString>>;
|
|
36
|
+
roles: alepha1246.TOptional<alepha1246.TArray<alepha1246.TString>>;
|
|
41
37
|
}>;
|
|
42
38
|
type UserAccount = Static<typeof userAccountInfoSchema>;
|
|
43
39
|
//#endregion
|
|
44
40
|
//#region ../alepha/src/logger/schemas/logEntrySchema.d.ts
|
|
45
|
-
declare const logEntrySchema:
|
|
46
|
-
level:
|
|
47
|
-
message:
|
|
48
|
-
service:
|
|
49
|
-
module:
|
|
50
|
-
context:
|
|
51
|
-
app:
|
|
52
|
-
data:
|
|
53
|
-
timestamp:
|
|
41
|
+
declare const logEntrySchema: alepha1246.TObject<{
|
|
42
|
+
level: alepha1246.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
43
|
+
message: alepha1246.TString;
|
|
44
|
+
service: alepha1246.TString;
|
|
45
|
+
module: alepha1246.TString;
|
|
46
|
+
context: alepha1246.TOptional<alepha1246.TString>;
|
|
47
|
+
app: alepha1246.TOptional<alepha1246.TString>;
|
|
48
|
+
data: alepha1246.TOptional<alepha1246.TAny>;
|
|
49
|
+
timestamp: alepha1246.TNumber;
|
|
54
50
|
}>;
|
|
55
51
|
type LogEntry = Static<typeof logEntrySchema>;
|
|
56
52
|
//#endregion
|
|
@@ -65,8 +61,8 @@ declare class DateTimeProvider {
|
|
|
65
61
|
protected readonly timeouts: Timeout[];
|
|
66
62
|
protected readonly intervals: Interval[];
|
|
67
63
|
constructor();
|
|
68
|
-
protected readonly onStart:
|
|
69
|
-
protected readonly onStop:
|
|
64
|
+
protected readonly onStart: alepha1246.HookDescriptor<"start">;
|
|
65
|
+
protected readonly onStop: alepha1246.HookDescriptor<"stop">;
|
|
70
66
|
setLocale(locale: string): void;
|
|
71
67
|
isDateTime(value: unknown): value is DateTime;
|
|
72
68
|
/**
|
|
@@ -198,7 +194,7 @@ declare class Logger implements LoggerInterface {
|
|
|
198
194
|
}
|
|
199
195
|
//#endregion
|
|
200
196
|
//#region ../alepha/src/logger/index.d.ts
|
|
201
|
-
declare const envSchema$9:
|
|
197
|
+
declare const envSchema$9: alepha1246.TObject<{
|
|
202
198
|
/**
|
|
203
199
|
* Default log level for the application.
|
|
204
200
|
*
|
|
@@ -215,14 +211,14 @@ declare const envSchema$9: alepha1223.TObject<{
|
|
|
215
211
|
* LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
|
|
216
212
|
* LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
|
|
217
213
|
*/
|
|
218
|
-
LOG_LEVEL:
|
|
214
|
+
LOG_LEVEL: alepha1246.TOptional<alepha1246.TString>;
|
|
219
215
|
/**
|
|
220
216
|
* Built-in log formats.
|
|
221
217
|
* - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
|
|
222
218
|
* - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
|
|
223
219
|
* - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
|
|
224
220
|
*/
|
|
225
|
-
LOG_FORMAT:
|
|
221
|
+
LOG_FORMAT: alepha1246.TOptional<alepha1246.TUnsafe<"json" | "pretty" | "raw">>;
|
|
226
222
|
}>;
|
|
227
223
|
declare module "alepha" {
|
|
228
224
|
interface Env extends Partial<Static<typeof envSchema$9>> {}
|
|
@@ -262,24 +258,24 @@ interface UserAccountToken extends UserAccount {
|
|
|
262
258
|
}
|
|
263
259
|
//#endregion
|
|
264
260
|
//#region ../alepha/src/security/schemas/permissionSchema.d.ts
|
|
265
|
-
declare const permissionSchema:
|
|
266
|
-
name:
|
|
267
|
-
group:
|
|
268
|
-
description:
|
|
269
|
-
method:
|
|
270
|
-
path:
|
|
261
|
+
declare const permissionSchema: alepha1246.TObject<{
|
|
262
|
+
name: alepha1246.TString;
|
|
263
|
+
group: alepha1246.TOptional<alepha1246.TString>;
|
|
264
|
+
description: alepha1246.TOptional<alepha1246.TString>;
|
|
265
|
+
method: alepha1246.TOptional<alepha1246.TString>;
|
|
266
|
+
path: alepha1246.TOptional<alepha1246.TString>;
|
|
271
267
|
}>;
|
|
272
268
|
type Permission = Static<typeof permissionSchema>;
|
|
273
269
|
//#endregion
|
|
274
270
|
//#region ../alepha/src/security/schemas/roleSchema.d.ts
|
|
275
|
-
declare const roleSchema:
|
|
276
|
-
name:
|
|
277
|
-
description:
|
|
278
|
-
default:
|
|
279
|
-
permissions:
|
|
280
|
-
name:
|
|
281
|
-
ownership:
|
|
282
|
-
exclude:
|
|
271
|
+
declare const roleSchema: alepha1246.TObject<{
|
|
272
|
+
name: alepha1246.TString;
|
|
273
|
+
description: alepha1246.TOptional<alepha1246.TString>;
|
|
274
|
+
default: alepha1246.TOptional<alepha1246.TBoolean>;
|
|
275
|
+
permissions: alepha1246.TArray<alepha1246.TObject<{
|
|
276
|
+
name: alepha1246.TString;
|
|
277
|
+
ownership: alepha1246.TOptional<alepha1246.TBoolean>;
|
|
278
|
+
exclude: alepha1246.TOptional<alepha1246.TArray<alepha1246.TString>>;
|
|
283
279
|
}>>;
|
|
284
280
|
}>;
|
|
285
281
|
type Role = Static<typeof roleSchema>;
|
|
@@ -351,8 +347,8 @@ interface JwtParseResult {
|
|
|
351
347
|
}
|
|
352
348
|
//#endregion
|
|
353
349
|
//#region ../alepha/src/security/providers/SecurityProvider.d.ts
|
|
354
|
-
declare const envSchema$8:
|
|
355
|
-
APP_SECRET:
|
|
350
|
+
declare const envSchema$8: alepha1246.TObject<{
|
|
351
|
+
APP_SECRET: alepha1246.TString;
|
|
356
352
|
}>;
|
|
357
353
|
declare module "alepha" {
|
|
358
354
|
interface Env extends Partial<Static<typeof envSchema$8>> {}
|
|
@@ -376,7 +372,7 @@ declare class SecurityProvider {
|
|
|
376
372
|
* The realms configured for the security provider.
|
|
377
373
|
*/
|
|
378
374
|
protected readonly realms: Realm[];
|
|
379
|
-
protected start:
|
|
375
|
+
protected start: alepha1246.HookDescriptor<"start">;
|
|
380
376
|
/**
|
|
381
377
|
* Adds a role to one or more realms.
|
|
382
378
|
*
|
|
@@ -858,8 +854,8 @@ declare class ServerTimingProvider {
|
|
|
858
854
|
prefix: string;
|
|
859
855
|
disabled: boolean;
|
|
860
856
|
};
|
|
861
|
-
readonly onRequest:
|
|
862
|
-
readonly onResponse:
|
|
857
|
+
readonly onRequest: alepha1246.HookDescriptor<"server:onRequest">;
|
|
858
|
+
readonly onResponse: alepha1246.HookDescriptor<"server:onResponse">;
|
|
863
859
|
protected get handlerName(): string;
|
|
864
860
|
beginTiming(name: string): void;
|
|
865
861
|
endTiming(name: string): void;
|
|
@@ -923,11 +919,11 @@ declare class ServerProvider {
|
|
|
923
919
|
/**
|
|
924
920
|
* When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
|
|
925
921
|
*/
|
|
926
|
-
protected readonly onNodeRequest:
|
|
922
|
+
protected readonly onNodeRequest: alepha1246.HookDescriptor<"node:request">;
|
|
927
923
|
/**
|
|
928
924
|
* When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
|
|
929
925
|
*/
|
|
930
|
-
protected readonly onWebRequest:
|
|
926
|
+
protected readonly onWebRequest: alepha1246.HookDescriptor<"web:request">;
|
|
931
927
|
/**
|
|
932
928
|
* Handle Node.js HTTP request event.
|
|
933
929
|
*
|
|
@@ -1265,15 +1261,15 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
|
|
|
1265
1261
|
interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
|
|
1266
1262
|
//#endregion
|
|
1267
1263
|
//#region ../alepha/src/server/schemas/errorSchema.d.ts
|
|
1268
|
-
declare const errorSchema:
|
|
1269
|
-
error:
|
|
1270
|
-
status:
|
|
1271
|
-
message:
|
|
1272
|
-
details:
|
|
1273
|
-
requestId:
|
|
1274
|
-
cause:
|
|
1275
|
-
name:
|
|
1276
|
-
message:
|
|
1264
|
+
declare const errorSchema: alepha1246.TObject<{
|
|
1265
|
+
error: alepha1246.TString;
|
|
1266
|
+
status: alepha1246.TInteger;
|
|
1267
|
+
message: alepha1246.TString;
|
|
1268
|
+
details: alepha1246.TOptional<alepha1246.TString>;
|
|
1269
|
+
requestId: alepha1246.TOptional<alepha1246.TString>;
|
|
1270
|
+
cause: alepha1246.TOptional<alepha1246.TObject<{
|
|
1271
|
+
name: alepha1246.TString;
|
|
1272
|
+
message: alepha1246.TString;
|
|
1277
1273
|
}>>;
|
|
1278
1274
|
}>;
|
|
1279
1275
|
type ErrorSchema = Static<typeof errorSchema>;
|
|
@@ -1305,18 +1301,18 @@ declare class RouteDescriptor<TConfig extends RequestConfigSchema> extends Descr
|
|
|
1305
1301
|
}
|
|
1306
1302
|
//#endregion
|
|
1307
1303
|
//#region ../alepha/src/server/providers/BunHttpServerProvider.d.ts
|
|
1308
|
-
declare const envSchema$7:
|
|
1309
|
-
SERVER_PORT:
|
|
1310
|
-
SERVER_HOST:
|
|
1304
|
+
declare const envSchema$7: alepha1246.TObject<{
|
|
1305
|
+
SERVER_PORT: alepha1246.TInteger;
|
|
1306
|
+
SERVER_HOST: alepha1246.TString;
|
|
1311
1307
|
}>;
|
|
1312
1308
|
declare module "alepha" {
|
|
1313
1309
|
interface Env extends Partial<Static<typeof envSchema$7>> {}
|
|
1314
1310
|
}
|
|
1315
1311
|
//#endregion
|
|
1316
1312
|
//#region ../alepha/src/server/providers/NodeHttpServerProvider.d.ts
|
|
1317
|
-
declare const envSchema$6:
|
|
1318
|
-
SERVER_PORT:
|
|
1319
|
-
SERVER_HOST:
|
|
1313
|
+
declare const envSchema$6: alepha1246.TObject<{
|
|
1314
|
+
SERVER_PORT: alepha1246.TInteger;
|
|
1315
|
+
SERVER_HOST: alepha1246.TString;
|
|
1320
1316
|
}>;
|
|
1321
1317
|
declare module "alepha" {
|
|
1322
1318
|
interface Env extends Partial<Static<typeof envSchema$6>> {}
|
|
@@ -1472,23 +1468,23 @@ declare module "alepha/server" {
|
|
|
1472
1468
|
*/
|
|
1473
1469
|
//#endregion
|
|
1474
1470
|
//#region ../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
1475
|
-
declare const apiLinkSchema:
|
|
1476
|
-
name:
|
|
1477
|
-
group:
|
|
1478
|
-
path:
|
|
1479
|
-
method:
|
|
1480
|
-
requestBodyType:
|
|
1481
|
-
service:
|
|
1471
|
+
declare const apiLinkSchema: alepha1246.TObject<{
|
|
1472
|
+
name: alepha1246.TString;
|
|
1473
|
+
group: alepha1246.TOptional<alepha1246.TString>;
|
|
1474
|
+
path: alepha1246.TString;
|
|
1475
|
+
method: alepha1246.TOptional<alepha1246.TString>;
|
|
1476
|
+
requestBodyType: alepha1246.TOptional<alepha1246.TString>;
|
|
1477
|
+
service: alepha1246.TOptional<alepha1246.TString>;
|
|
1482
1478
|
}>;
|
|
1483
|
-
declare const apiLinksResponseSchema:
|
|
1484
|
-
prefix:
|
|
1485
|
-
links:
|
|
1486
|
-
name:
|
|
1487
|
-
group:
|
|
1488
|
-
path:
|
|
1489
|
-
method:
|
|
1490
|
-
requestBodyType:
|
|
1491
|
-
service:
|
|
1479
|
+
declare const apiLinksResponseSchema: alepha1246.TObject<{
|
|
1480
|
+
prefix: alepha1246.TOptional<alepha1246.TString>;
|
|
1481
|
+
links: alepha1246.TArray<alepha1246.TObject<{
|
|
1482
|
+
name: alepha1246.TString;
|
|
1483
|
+
group: alepha1246.TOptional<alepha1246.TString>;
|
|
1484
|
+
path: alepha1246.TString;
|
|
1485
|
+
method: alepha1246.TOptional<alepha1246.TString>;
|
|
1486
|
+
requestBodyType: alepha1246.TOptional<alepha1246.TString>;
|
|
1487
|
+
service: alepha1246.TOptional<alepha1246.TString>;
|
|
1492
1488
|
}>>;
|
|
1493
1489
|
}>;
|
|
1494
1490
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
@@ -1684,7 +1680,7 @@ declare class ServerProxyProvider {
|
|
|
1684
1680
|
protected readonly log: Logger;
|
|
1685
1681
|
protected readonly routerProvider: ServerRouterProvider;
|
|
1686
1682
|
protected readonly alepha: Alepha;
|
|
1687
|
-
protected readonly configure:
|
|
1683
|
+
protected readonly configure: alepha1246.HookDescriptor<"configure">;
|
|
1688
1684
|
createProxy(options: ProxyDescriptorOptions): void;
|
|
1689
1685
|
createProxyHandler(target: string, options: Omit<ProxyDescriptorOptions, "path">): ServerHandler;
|
|
1690
1686
|
private getRawRequestBody;
|
|
@@ -1869,7 +1865,7 @@ interface RetryDescriptorOptions<T$1 extends (...args: any[]) => any> {
|
|
|
1869
1865
|
}
|
|
1870
1866
|
declare class RetryDescriptor<T$1 extends (...args: any[]) => any> extends Descriptor<RetryDescriptorOptions<T$1>> {
|
|
1871
1867
|
protected readonly retryProvider: RetryProvider;
|
|
1872
|
-
protected appAbortController
|
|
1868
|
+
protected appAbortController?: AbortController;
|
|
1873
1869
|
constructor(args: DescriptorArgs<RetryDescriptorOptions<T$1>>);
|
|
1874
1870
|
run(...args: Parameters<T$1>): Promise<ReturnType<T$1>>;
|
|
1875
1871
|
}
|
|
@@ -1888,8 +1884,8 @@ declare class RemoteDescriptorProvider {
|
|
|
1888
1884
|
protected readonly remotes: Array<ServerRemote>;
|
|
1889
1885
|
protected readonly log: Logger;
|
|
1890
1886
|
getRemotes(): ServerRemote[];
|
|
1891
|
-
readonly configure:
|
|
1892
|
-
readonly start:
|
|
1887
|
+
readonly configure: alepha1246.HookDescriptor<"configure">;
|
|
1888
|
+
readonly start: alepha1246.HookDescriptor<"start">;
|
|
1893
1889
|
registerRemote(value: RemoteDescriptor): Promise<void>;
|
|
1894
1890
|
protected readonly fetchLinks: RetryDescriptorFn<(opts: FetchLinksOptions) => Promise<ApiLinksResponse>>;
|
|
1895
1891
|
}
|
|
@@ -1957,22 +1953,22 @@ declare class ServerLinksProvider {
|
|
|
1957
1953
|
protected readonly remoteProvider: RemoteDescriptorProvider;
|
|
1958
1954
|
protected readonly serverTimingProvider: ServerTimingProvider;
|
|
1959
1955
|
get prefix(): string;
|
|
1960
|
-
readonly onRoute:
|
|
1956
|
+
readonly onRoute: alepha1246.HookDescriptor<"configure">;
|
|
1961
1957
|
/**
|
|
1962
1958
|
* First API - Get all API links for the user.
|
|
1963
1959
|
*
|
|
1964
1960
|
* This is based on the user's permissions.
|
|
1965
1961
|
*/
|
|
1966
1962
|
readonly links: RouteDescriptor<{
|
|
1967
|
-
response:
|
|
1968
|
-
prefix:
|
|
1969
|
-
links:
|
|
1970
|
-
name:
|
|
1971
|
-
group:
|
|
1972
|
-
path:
|
|
1973
|
-
method:
|
|
1974
|
-
requestBodyType:
|
|
1975
|
-
service:
|
|
1963
|
+
response: alepha1246.TObject<{
|
|
1964
|
+
prefix: alepha1246.TOptional<alepha1246.TString>;
|
|
1965
|
+
links: alepha1246.TArray<alepha1246.TObject<{
|
|
1966
|
+
name: alepha1246.TString;
|
|
1967
|
+
group: alepha1246.TOptional<alepha1246.TString>;
|
|
1968
|
+
path: alepha1246.TString;
|
|
1969
|
+
method: alepha1246.TOptional<alepha1246.TString>;
|
|
1970
|
+
requestBodyType: alepha1246.TOptional<alepha1246.TString>;
|
|
1971
|
+
service: alepha1246.TOptional<alepha1246.TString>;
|
|
1976
1972
|
}>>;
|
|
1977
1973
|
}>;
|
|
1978
1974
|
}>;
|
|
@@ -1983,10 +1979,10 @@ declare class ServerLinksProvider {
|
|
|
1983
1979
|
* I mean for 150+ links, you got 50ms of serialization time.
|
|
1984
1980
|
*/
|
|
1985
1981
|
readonly schema: RouteDescriptor<{
|
|
1986
|
-
params:
|
|
1987
|
-
name:
|
|
1982
|
+
params: alepha1246.TObject<{
|
|
1983
|
+
name: alepha1246.TString;
|
|
1988
1984
|
}>;
|
|
1989
|
-
response:
|
|
1985
|
+
response: alepha1246.TRecord<string, alepha1246.TAny>;
|
|
1990
1986
|
}>;
|
|
1991
1987
|
getSchemaByName(name: string, options?: GetApiLinksOptions): Promise<RequestConfigSchema>;
|
|
1992
1988
|
/**
|
|
@@ -2139,8 +2135,8 @@ declare class Redirection extends Error {
|
|
|
2139
2135
|
}
|
|
2140
2136
|
//#endregion
|
|
2141
2137
|
//#region ../react/src/core/providers/ReactPageProvider.d.ts
|
|
2142
|
-
declare const envSchema$5:
|
|
2143
|
-
REACT_STRICT_MODE:
|
|
2138
|
+
declare const envSchema$5: alepha1246.TObject<{
|
|
2139
|
+
REACT_STRICT_MODE: alepha1246.TBoolean;
|
|
2144
2140
|
}>;
|
|
2145
2141
|
declare module "alepha" {
|
|
2146
2142
|
interface Env extends Partial<Static<typeof envSchema$5>> {}
|
|
@@ -2197,9 +2193,6 @@ interface ReactRouterState {
|
|
|
2197
2193
|
*/
|
|
2198
2194
|
meta: Record<string, any>;
|
|
2199
2195
|
}
|
|
2200
|
-
interface TransitionOptions {
|
|
2201
|
-
previous?: PreviousLayerData[];
|
|
2202
|
-
}
|
|
2203
2196
|
//#endregion
|
|
2204
2197
|
//#region ../react/src/core/services/ReactPageService.d.ts
|
|
2205
2198
|
declare class ReactPageService {
|
|
@@ -2440,8 +2433,8 @@ type CssAnimation = {
|
|
|
2440
2433
|
};
|
|
2441
2434
|
//#endregion
|
|
2442
2435
|
//#region ../react/src/core/providers/ReactBrowserProvider.d.ts
|
|
2443
|
-
declare const envSchema$4:
|
|
2444
|
-
REACT_ROOT_ID:
|
|
2436
|
+
declare const envSchema$4: alepha1246.TObject<{
|
|
2437
|
+
REACT_ROOT_ID: alepha1246.TString;
|
|
2445
2438
|
}>;
|
|
2446
2439
|
declare module "alepha" {
|
|
2447
2440
|
interface Env extends Partial<Static<typeof envSchema$4>> {}
|
|
@@ -2449,8 +2442,8 @@ declare module "alepha" {
|
|
|
2449
2442
|
/**
|
|
2450
2443
|
* React browser renderer configuration atom
|
|
2451
2444
|
*/
|
|
2452
|
-
declare const reactBrowserOptions:
|
|
2453
|
-
scrollRestoration:
|
|
2445
|
+
declare const reactBrowserOptions: alepha1246.Atom<alepha1246.TObject<{
|
|
2446
|
+
scrollRestoration: alepha1246.TUnsafe<"top" | "manual">;
|
|
2454
2447
|
}>, "alepha.react.browser.options">;
|
|
2455
2448
|
type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
|
|
2456
2449
|
declare module "alepha" {
|
|
@@ -2458,64 +2451,12 @@ declare module "alepha" {
|
|
|
2458
2451
|
[reactBrowserOptions.key]: ReactBrowserRendererOptions;
|
|
2459
2452
|
}
|
|
2460
2453
|
}
|
|
2461
|
-
interface RouterGoOptions {
|
|
2462
|
-
replace?: boolean;
|
|
2463
|
-
match?: TransitionOptions;
|
|
2464
|
-
params?: Record<string, string>;
|
|
2465
|
-
query?: Record<string, string>;
|
|
2466
|
-
meta?: Record<string, any>;
|
|
2467
|
-
/**
|
|
2468
|
-
* Recreate the whole page, ignoring the current state.
|
|
2469
|
-
*/
|
|
2470
|
-
force?: boolean;
|
|
2471
|
-
}
|
|
2472
2454
|
type ReactHydrationState = {
|
|
2473
2455
|
layers?: Array<PreviousLayerData>;
|
|
2474
2456
|
} & {
|
|
2475
2457
|
[key: string]: any;
|
|
2476
2458
|
};
|
|
2477
2459
|
//#endregion
|
|
2478
|
-
//#region ../react/src/core/hooks/useAction.d.ts
|
|
2479
|
-
interface UseActionReturn<Args extends any[], Result> {
|
|
2480
|
-
/**
|
|
2481
|
-
* Execute the action with the provided arguments.
|
|
2482
|
-
*
|
|
2483
|
-
* @example
|
|
2484
|
-
* ```tsx
|
|
2485
|
-
* const action = useAction({ handler: async (data) => { ... } }, []);
|
|
2486
|
-
* action.run(data);
|
|
2487
|
-
* ```
|
|
2488
|
-
*/
|
|
2489
|
-
run: (...args: Args) => Promise<Result | undefined>;
|
|
2490
|
-
/**
|
|
2491
|
-
* Loading state - true when action is executing.
|
|
2492
|
-
*/
|
|
2493
|
-
loading: boolean;
|
|
2494
|
-
/**
|
|
2495
|
-
* Error state - contains error if action failed, undefined otherwise.
|
|
2496
|
-
*/
|
|
2497
|
-
error?: Error;
|
|
2498
|
-
/**
|
|
2499
|
-
* Cancel any pending debounced action or abort the current in-flight request.
|
|
2500
|
-
*
|
|
2501
|
-
* @example
|
|
2502
|
-
* ```tsx
|
|
2503
|
-
* const action = useAction({ ... }, []);
|
|
2504
|
-
*
|
|
2505
|
-
* <button onClick={action.cancel} disabled={!action.loading}>
|
|
2506
|
-
* Cancel
|
|
2507
|
-
* </button>
|
|
2508
|
-
* ```
|
|
2509
|
-
*/
|
|
2510
|
-
cancel: () => void;
|
|
2511
|
-
}
|
|
2512
|
-
//#endregion
|
|
2513
|
-
//#region ../react/src/core/hooks/useActive.d.ts
|
|
2514
|
-
interface UseActiveOptions {
|
|
2515
|
-
href: string;
|
|
2516
|
-
startWith?: boolean;
|
|
2517
|
-
}
|
|
2518
|
-
//#endregion
|
|
2519
2460
|
//#region ../alepha/src/file/providers/FileSystemProvider.d.ts
|
|
2520
2461
|
/**
|
|
2521
2462
|
* Options for creating a file from a URL
|
|
@@ -2913,10 +2854,10 @@ declare class FileDetector {
|
|
|
2913
2854
|
}
|
|
2914
2855
|
//#endregion
|
|
2915
2856
|
//#region ../react/src/core/providers/ReactServerProvider.d.ts
|
|
2916
|
-
declare const envSchema$3:
|
|
2917
|
-
REACT_SSR_ENABLED:
|
|
2918
|
-
REACT_ROOT_ID:
|
|
2919
|
-
REACT_SERVER_TEMPLATE:
|
|
2857
|
+
declare const envSchema$3: alepha1246.TObject<{
|
|
2858
|
+
REACT_SSR_ENABLED: alepha1246.TOptional<alepha1246.TBoolean>;
|
|
2859
|
+
REACT_ROOT_ID: alepha1246.TString;
|
|
2860
|
+
REACT_SERVER_TEMPLATE: alepha1246.TOptional<alepha1246.TString>;
|
|
2920
2861
|
}>;
|
|
2921
2862
|
declare module "alepha" {
|
|
2922
2863
|
interface Env extends Partial<Static<typeof envSchema$3>> {}
|
|
@@ -2927,11 +2868,11 @@ declare module "alepha" {
|
|
|
2927
2868
|
/**
|
|
2928
2869
|
* React server provider configuration atom
|
|
2929
2870
|
*/
|
|
2930
|
-
declare const reactServerOptions:
|
|
2931
|
-
publicDir:
|
|
2932
|
-
staticServer:
|
|
2933
|
-
disabled:
|
|
2934
|
-
path:
|
|
2871
|
+
declare const reactServerOptions: alepha1246.Atom<alepha1246.TObject<{
|
|
2872
|
+
publicDir: alepha1246.TString;
|
|
2873
|
+
staticServer: alepha1246.TObject<{
|
|
2874
|
+
disabled: alepha1246.TBoolean;
|
|
2875
|
+
path: alepha1246.TString;
|
|
2935
2876
|
}>;
|
|
2936
2877
|
}>, "alepha.react.server.options">;
|
|
2937
2878
|
type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
|
|
@@ -3045,25 +2986,25 @@ declare module "alepha" {
|
|
|
3045
2986
|
*/
|
|
3046
2987
|
//#endregion
|
|
3047
2988
|
//#region ../alepha/src/api-users/atoms/realmAuthSettingsAtom.d.ts
|
|
3048
|
-
declare const realmAuthSettingsAtom:
|
|
3049
|
-
registrationAllowed:
|
|
3050
|
-
emailEnabled:
|
|
3051
|
-
emailRequired:
|
|
3052
|
-
usernameEnabled:
|
|
3053
|
-
usernameRequired:
|
|
3054
|
-
phoneEnabled:
|
|
3055
|
-
phoneRequired:
|
|
3056
|
-
verifyEmailRequired:
|
|
3057
|
-
verifyPhoneRequired:
|
|
3058
|
-
firstNameLastNameEnabled:
|
|
3059
|
-
firstNameLastNameRequired:
|
|
3060
|
-
resetPasswordAllowed:
|
|
3061
|
-
passwordPolicy:
|
|
3062
|
-
minLength:
|
|
3063
|
-
requireUppercase:
|
|
3064
|
-
requireLowercase:
|
|
3065
|
-
requireNumbers:
|
|
3066
|
-
requireSpecialCharacters:
|
|
2989
|
+
declare const realmAuthSettingsAtom: alepha1246.Atom<alepha1246.TObject<{
|
|
2990
|
+
registrationAllowed: alepha1246.TBoolean;
|
|
2991
|
+
emailEnabled: alepha1246.TBoolean;
|
|
2992
|
+
emailRequired: alepha1246.TBoolean;
|
|
2993
|
+
usernameEnabled: alepha1246.TBoolean;
|
|
2994
|
+
usernameRequired: alepha1246.TBoolean;
|
|
2995
|
+
phoneEnabled: alepha1246.TBoolean;
|
|
2996
|
+
phoneRequired: alepha1246.TBoolean;
|
|
2997
|
+
verifyEmailRequired: alepha1246.TBoolean;
|
|
2998
|
+
verifyPhoneRequired: alepha1246.TBoolean;
|
|
2999
|
+
firstNameLastNameEnabled: alepha1246.TBoolean;
|
|
3000
|
+
firstNameLastNameRequired: alepha1246.TBoolean;
|
|
3001
|
+
resetPasswordAllowed: alepha1246.TBoolean;
|
|
3002
|
+
passwordPolicy: alepha1246.TObject<{
|
|
3003
|
+
minLength: alepha1246.TInteger;
|
|
3004
|
+
requireUppercase: alepha1246.TBoolean;
|
|
3005
|
+
requireLowercase: alepha1246.TBoolean;
|
|
3006
|
+
requireNumbers: alepha1246.TBoolean;
|
|
3007
|
+
requireSpecialCharacters: alepha1246.TBoolean;
|
|
3067
3008
|
}>;
|
|
3068
3009
|
}>, "alepha.api.users.realmAuthSettings">;
|
|
3069
3010
|
type RealmAuthSettings = Static<typeof realmAuthSettingsAtom.schema>;
|
|
@@ -3957,13 +3898,13 @@ declare class DrizzleKitProvider {
|
|
|
3957
3898
|
* Try to load the official Drizzle Kit API.
|
|
3958
3899
|
* If not available, fallback to the local kit import.
|
|
3959
3900
|
*/
|
|
3960
|
-
|
|
3901
|
+
importDrizzleKit(): typeof DrizzleKit;
|
|
3961
3902
|
}
|
|
3962
|
-
declare const devMigrationsSchema:
|
|
3963
|
-
id:
|
|
3964
|
-
name:
|
|
3965
|
-
snapshot:
|
|
3966
|
-
created_at:
|
|
3903
|
+
declare const devMigrationsSchema: alepha1246.TObject<{
|
|
3904
|
+
id: alepha1246.TNumber;
|
|
3905
|
+
name: alepha1246.TString;
|
|
3906
|
+
snapshot: alepha1246.TString;
|
|
3907
|
+
created_at: alepha1246.TString;
|
|
3967
3908
|
}>;
|
|
3968
3909
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
3969
3910
|
//#endregion
|
|
@@ -4160,7 +4101,7 @@ declare class QueryManager {
|
|
|
4160
4101
|
createPagination<T$1>(entities: T$1[], limit?: number, offset?: number, sort?: Array<{
|
|
4161
4102
|
column: string;
|
|
4162
4103
|
direction: "asc" | "desc";
|
|
4163
|
-
}>):
|
|
4104
|
+
}>): alepha1246.Page<T$1>;
|
|
4164
4105
|
}
|
|
4165
4106
|
interface PgJoin {
|
|
4166
4107
|
table: string;
|
|
@@ -4465,8 +4406,8 @@ interface StatementOptions {
|
|
|
4465
4406
|
}
|
|
4466
4407
|
//#endregion
|
|
4467
4408
|
//#region ../alepha/src/lock/descriptors/$lock.d.ts
|
|
4468
|
-
declare const envSchema$2:
|
|
4469
|
-
LOCK_PREFIX_KEY:
|
|
4409
|
+
declare const envSchema$2: alepha1246.TObject<{
|
|
4410
|
+
LOCK_PREFIX_KEY: alepha1246.TString;
|
|
4470
4411
|
}>;
|
|
4471
4412
|
declare module "alepha" {
|
|
4472
4413
|
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
@@ -4476,7 +4417,7 @@ declare module "alepha" {
|
|
|
4476
4417
|
declare module "alepha" {
|
|
4477
4418
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
4478
4419
|
}
|
|
4479
|
-
declare const envSchema$1:
|
|
4420
|
+
declare const envSchema$1: alepha1246.TObject<{
|
|
4480
4421
|
/**
|
|
4481
4422
|
* Main configuration for database connection.
|
|
4482
4423
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -4484,21 +4425,21 @@ declare const envSchema$1: alepha1223.TObject<{
|
|
|
4484
4425
|
* or
|
|
4485
4426
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
4486
4427
|
*/
|
|
4487
|
-
DATABASE_URL:
|
|
4428
|
+
DATABASE_URL: alepha1246.TOptional<alepha1246.TString>;
|
|
4488
4429
|
/**
|
|
4489
4430
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
4490
4431
|
*
|
|
4491
4432
|
* It will monkey patch drizzle tables.
|
|
4492
4433
|
*/
|
|
4493
|
-
POSTGRES_SCHEMA:
|
|
4434
|
+
POSTGRES_SCHEMA: alepha1246.TOptional<alepha1246.TString>;
|
|
4494
4435
|
}>;
|
|
4495
4436
|
//#endregion
|
|
4496
4437
|
//#region ../alepha/src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
4497
4438
|
/**
|
|
4498
4439
|
* Configuration options for the Node.js SQLite database provider.
|
|
4499
4440
|
*/
|
|
4500
|
-
declare const nodeSqliteOptions:
|
|
4501
|
-
path:
|
|
4441
|
+
declare const nodeSqliteOptions: alepha1246.Atom<alepha1246.TObject<{
|
|
4442
|
+
path: alepha1246.TOptional<alepha1246.TString>;
|
|
4502
4443
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
4503
4444
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
4504
4445
|
declare module "alepha" {
|
|
@@ -4582,16 +4523,16 @@ declare module "alepha" {
|
|
|
4582
4523
|
}
|
|
4583
4524
|
//#endregion
|
|
4584
4525
|
//#region ../alepha/src/api-users/entities/identities.d.ts
|
|
4585
|
-
declare const identities: EntityDescriptor<
|
|
4586
|
-
id: PgAttr<PgAttr<
|
|
4587
|
-
version: PgAttr<PgAttr<
|
|
4588
|
-
createdAt: PgAttr<PgAttr<
|
|
4589
|
-
updatedAt: PgAttr<PgAttr<
|
|
4590
|
-
userId: PgAttr<
|
|
4591
|
-
password:
|
|
4592
|
-
provider:
|
|
4593
|
-
providerUserId:
|
|
4594
|
-
providerData:
|
|
4526
|
+
declare const identities: EntityDescriptor<alepha1246.TObject<{
|
|
4527
|
+
id: PgAttr<PgAttr<alepha1246.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4528
|
+
version: PgAttr<PgAttr<alepha1246.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4529
|
+
createdAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4530
|
+
updatedAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4531
|
+
userId: PgAttr<alepha1246.TString, typeof PG_REF>;
|
|
4532
|
+
password: alepha1246.TOptional<alepha1246.TString>;
|
|
4533
|
+
provider: alepha1246.TString;
|
|
4534
|
+
providerUserId: alepha1246.TOptional<alepha1246.TString>;
|
|
4535
|
+
providerData: alepha1246.TOptional<alepha1246.TRecord<string, alepha1246.TAny>>;
|
|
4595
4536
|
}>>;
|
|
4596
4537
|
//#endregion
|
|
4597
4538
|
//#region ../alepha/src/bucket/providers/FileStorageProvider.d.ts
|
|
@@ -4818,8 +4759,8 @@ interface BucketFileOptions {
|
|
|
4818
4759
|
/**
|
|
4819
4760
|
* Local file storage configuration atom
|
|
4820
4761
|
*/
|
|
4821
|
-
declare const localFileStorageOptions:
|
|
4822
|
-
storagePath:
|
|
4762
|
+
declare const localFileStorageOptions: alepha1246.Atom<alepha1246.TObject<{
|
|
4763
|
+
storagePath: alepha1246.TString;
|
|
4823
4764
|
}>, "alepha.bucket.local.options">;
|
|
4824
4765
|
type LocalFileStorageProviderOptions = Static<typeof localFileStorageOptions.schema>;
|
|
4825
4766
|
declare module "alepha" {
|
|
@@ -4863,38 +4804,38 @@ declare module "alepha" {
|
|
|
4863
4804
|
*/
|
|
4864
4805
|
//#endregion
|
|
4865
4806
|
//#region ../alepha/src/api-users/entities/sessions.d.ts
|
|
4866
|
-
declare const sessions: EntityDescriptor<
|
|
4867
|
-
id: PgAttr<PgAttr<
|
|
4868
|
-
version: PgAttr<PgAttr<
|
|
4869
|
-
createdAt: PgAttr<PgAttr<
|
|
4870
|
-
updatedAt: PgAttr<PgAttr<
|
|
4871
|
-
refreshToken:
|
|
4872
|
-
userId: PgAttr<
|
|
4873
|
-
expiresAt:
|
|
4874
|
-
ip:
|
|
4875
|
-
userAgent:
|
|
4876
|
-
os:
|
|
4877
|
-
browser:
|
|
4878
|
-
device:
|
|
4807
|
+
declare const sessions: EntityDescriptor<alepha1246.TObject<{
|
|
4808
|
+
id: PgAttr<PgAttr<alepha1246.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4809
|
+
version: PgAttr<PgAttr<alepha1246.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4810
|
+
createdAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4811
|
+
updatedAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4812
|
+
refreshToken: alepha1246.TString;
|
|
4813
|
+
userId: PgAttr<alepha1246.TString, typeof PG_REF>;
|
|
4814
|
+
expiresAt: alepha1246.TString;
|
|
4815
|
+
ip: alepha1246.TOptional<alepha1246.TString>;
|
|
4816
|
+
userAgent: alepha1246.TOptional<alepha1246.TObject<{
|
|
4817
|
+
os: alepha1246.TString;
|
|
4818
|
+
browser: alepha1246.TString;
|
|
4819
|
+
device: alepha1246.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
4879
4820
|
}>>;
|
|
4880
4821
|
}>>;
|
|
4881
4822
|
//#endregion
|
|
4882
4823
|
//#region ../alepha/src/api-users/entities/users.d.ts
|
|
4883
|
-
declare const users: EntityDescriptor<
|
|
4884
|
-
id: PgAttr<PgAttr<
|
|
4885
|
-
version: PgAttr<PgAttr<
|
|
4886
|
-
createdAt: PgAttr<PgAttr<
|
|
4887
|
-
updatedAt: PgAttr<PgAttr<
|
|
4888
|
-
realm: PgAttr<
|
|
4889
|
-
username:
|
|
4890
|
-
email:
|
|
4891
|
-
phoneNumber:
|
|
4892
|
-
roles: PgAttr<
|
|
4893
|
-
firstName:
|
|
4894
|
-
lastName:
|
|
4895
|
-
picture:
|
|
4896
|
-
enabled: PgAttr<
|
|
4897
|
-
emailVerified: PgAttr<
|
|
4824
|
+
declare const users: EntityDescriptor<alepha1246.TObject<{
|
|
4825
|
+
id: PgAttr<PgAttr<alepha1246.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4826
|
+
version: PgAttr<PgAttr<alepha1246.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4827
|
+
createdAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4828
|
+
updatedAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4829
|
+
realm: PgAttr<alepha1246.TString, typeof PG_DEFAULT>;
|
|
4830
|
+
username: alepha1246.TOptional<alepha1246.TString>;
|
|
4831
|
+
email: alepha1246.TOptional<alepha1246.TString>;
|
|
4832
|
+
phoneNumber: alepha1246.TOptional<alepha1246.TString>;
|
|
4833
|
+
roles: PgAttr<alepha1246.TArray<alepha1246.TString>, typeof PG_DEFAULT>;
|
|
4834
|
+
firstName: alepha1246.TOptional<alepha1246.TString>;
|
|
4835
|
+
lastName: alepha1246.TOptional<alepha1246.TString>;
|
|
4836
|
+
picture: alepha1246.TOptional<alepha1246.TString>;
|
|
4837
|
+
enabled: PgAttr<alepha1246.TBoolean, typeof PG_DEFAULT>;
|
|
4838
|
+
emailVerified: PgAttr<alepha1246.TBoolean, typeof PG_DEFAULT>;
|
|
4898
4839
|
}>>;
|
|
4899
4840
|
//#endregion
|
|
4900
4841
|
//#region ../alepha/src/api-users/providers/UserRealmProvider.d.ts
|
|
@@ -4910,51 +4851,51 @@ interface UserRealm {
|
|
|
4910
4851
|
}
|
|
4911
4852
|
declare class UserRealmProvider {
|
|
4912
4853
|
protected readonly alepha: Alepha;
|
|
4913
|
-
protected readonly defaultIdentities: Repository<
|
|
4914
|
-
id: PgAttr<PgAttr<
|
|
4915
|
-
version: PgAttr<PgAttr<
|
|
4916
|
-
createdAt: PgAttr<PgAttr<
|
|
4917
|
-
updatedAt: PgAttr<PgAttr<
|
|
4918
|
-
userId: PgAttr<
|
|
4919
|
-
password:
|
|
4920
|
-
provider:
|
|
4921
|
-
providerUserId:
|
|
4922
|
-
providerData:
|
|
4854
|
+
protected readonly defaultIdentities: Repository<alepha1246.TObject<{
|
|
4855
|
+
id: PgAttr<PgAttr<alepha1246.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4856
|
+
version: PgAttr<PgAttr<alepha1246.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4857
|
+
createdAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4858
|
+
updatedAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4859
|
+
userId: PgAttr<alepha1246.TString, typeof PG_REF>;
|
|
4860
|
+
password: alepha1246.TOptional<alepha1246.TString>;
|
|
4861
|
+
provider: alepha1246.TString;
|
|
4862
|
+
providerUserId: alepha1246.TOptional<alepha1246.TString>;
|
|
4863
|
+
providerData: alepha1246.TOptional<alepha1246.TRecord<string, alepha1246.TAny>>;
|
|
4923
4864
|
}>>;
|
|
4924
|
-
protected readonly defaultSessions: Repository<
|
|
4925
|
-
id: PgAttr<PgAttr<
|
|
4926
|
-
version: PgAttr<PgAttr<
|
|
4927
|
-
createdAt: PgAttr<PgAttr<
|
|
4928
|
-
updatedAt: PgAttr<PgAttr<
|
|
4929
|
-
refreshToken:
|
|
4930
|
-
userId: PgAttr<
|
|
4931
|
-
expiresAt:
|
|
4932
|
-
ip:
|
|
4933
|
-
userAgent:
|
|
4934
|
-
os:
|
|
4935
|
-
browser:
|
|
4936
|
-
device:
|
|
4865
|
+
protected readonly defaultSessions: Repository<alepha1246.TObject<{
|
|
4866
|
+
id: PgAttr<PgAttr<alepha1246.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4867
|
+
version: PgAttr<PgAttr<alepha1246.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4868
|
+
createdAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4869
|
+
updatedAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4870
|
+
refreshToken: alepha1246.TString;
|
|
4871
|
+
userId: PgAttr<alepha1246.TString, typeof PG_REF>;
|
|
4872
|
+
expiresAt: alepha1246.TString;
|
|
4873
|
+
ip: alepha1246.TOptional<alepha1246.TString>;
|
|
4874
|
+
userAgent: alepha1246.TOptional<alepha1246.TObject<{
|
|
4875
|
+
os: alepha1246.TString;
|
|
4876
|
+
browser: alepha1246.TString;
|
|
4877
|
+
device: alepha1246.TUnsafe<"MOBILE" | "DESKTOP" | "TABLET">;
|
|
4937
4878
|
}>>;
|
|
4938
4879
|
}>>;
|
|
4939
|
-
protected readonly defaultUsers: Repository<
|
|
4940
|
-
id: PgAttr<PgAttr<
|
|
4941
|
-
version: PgAttr<PgAttr<
|
|
4942
|
-
createdAt: PgAttr<PgAttr<
|
|
4943
|
-
updatedAt: PgAttr<PgAttr<
|
|
4944
|
-
realm: PgAttr<
|
|
4945
|
-
username:
|
|
4946
|
-
email:
|
|
4947
|
-
phoneNumber:
|
|
4948
|
-
roles: PgAttr<
|
|
4949
|
-
firstName:
|
|
4950
|
-
lastName:
|
|
4951
|
-
picture:
|
|
4952
|
-
enabled: PgAttr<
|
|
4953
|
-
emailVerified: PgAttr<
|
|
4880
|
+
protected readonly defaultUsers: Repository<alepha1246.TObject<{
|
|
4881
|
+
id: PgAttr<PgAttr<alepha1246.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
4882
|
+
version: PgAttr<PgAttr<alepha1246.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
4883
|
+
createdAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
4884
|
+
updatedAt: PgAttr<PgAttr<alepha1246.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
4885
|
+
realm: PgAttr<alepha1246.TString, typeof PG_DEFAULT>;
|
|
4886
|
+
username: alepha1246.TOptional<alepha1246.TString>;
|
|
4887
|
+
email: alepha1246.TOptional<alepha1246.TString>;
|
|
4888
|
+
phoneNumber: alepha1246.TOptional<alepha1246.TString>;
|
|
4889
|
+
roles: PgAttr<alepha1246.TArray<alepha1246.TString>, typeof PG_DEFAULT>;
|
|
4890
|
+
firstName: alepha1246.TOptional<alepha1246.TString>;
|
|
4891
|
+
lastName: alepha1246.TOptional<alepha1246.TString>;
|
|
4892
|
+
picture: alepha1246.TOptional<alepha1246.TString>;
|
|
4893
|
+
enabled: PgAttr<alepha1246.TBoolean, typeof PG_DEFAULT>;
|
|
4894
|
+
emailVerified: PgAttr<alepha1246.TBoolean, typeof PG_DEFAULT>;
|
|
4954
4895
|
}>>;
|
|
4955
4896
|
protected realms: Map<string, UserRealm>;
|
|
4956
4897
|
avatars: BucketDescriptor;
|
|
4957
|
-
protected readonly onConfigure:
|
|
4898
|
+
protected readonly onConfigure: alepha1246.HookDescriptor<"configure">;
|
|
4958
4899
|
register(userRealmName: string, userRealmOptions?: UserRealmOptions): void;
|
|
4959
4900
|
/**
|
|
4960
4901
|
* Gets a registered realm by name, auto-creating default if needed.
|
|
@@ -4969,21 +4910,21 @@ declare class UserRealmProvider {
|
|
|
4969
4910
|
/**
|
|
4970
4911
|
* Verification settings configuration atom
|
|
4971
4912
|
*/
|
|
4972
|
-
declare const verificationOptions:
|
|
4973
|
-
code:
|
|
4974
|
-
maxAttempts:
|
|
4975
|
-
codeLength:
|
|
4976
|
-
codeExpiration:
|
|
4977
|
-
verificationCooldown:
|
|
4978
|
-
limitPerDay:
|
|
4913
|
+
declare const verificationOptions: alepha1246.Atom<alepha1246.TObject<{
|
|
4914
|
+
code: alepha1246.TObject<{
|
|
4915
|
+
maxAttempts: alepha1246.TInteger;
|
|
4916
|
+
codeLength: alepha1246.TInteger;
|
|
4917
|
+
codeExpiration: alepha1246.TInteger;
|
|
4918
|
+
verificationCooldown: alepha1246.TInteger;
|
|
4919
|
+
limitPerDay: alepha1246.TInteger;
|
|
4979
4920
|
}>;
|
|
4980
|
-
link:
|
|
4981
|
-
maxAttempts:
|
|
4982
|
-
codeExpiration:
|
|
4983
|
-
verificationCooldown:
|
|
4984
|
-
limitPerDay:
|
|
4921
|
+
link: alepha1246.TObject<{
|
|
4922
|
+
maxAttempts: alepha1246.TInteger;
|
|
4923
|
+
codeExpiration: alepha1246.TInteger;
|
|
4924
|
+
verificationCooldown: alepha1246.TInteger;
|
|
4925
|
+
limitPerDay: alepha1246.TInteger;
|
|
4985
4926
|
}>;
|
|
4986
|
-
purgeDays:
|
|
4927
|
+
purgeDays: alepha1246.TInteger;
|
|
4987
4928
|
}>, "alepha.api.verifications.options">;
|
|
4988
4929
|
type VerificationOptions = Static<typeof verificationOptions.schema>;
|
|
4989
4930
|
declare module "alepha" {
|
|
@@ -5041,38 +4982,38 @@ declare module "alepha" {
|
|
|
5041
4982
|
*/
|
|
5042
4983
|
//#endregion
|
|
5043
4984
|
//#region ../alepha/src/api-notifications/services/NotificationService.d.ts
|
|
5044
|
-
declare const notificationServiceEnvSchema:
|
|
5045
|
-
NOTIFICATION_QUEUE:
|
|
4985
|
+
declare const notificationServiceEnvSchema: alepha1246.TObject<{
|
|
4986
|
+
NOTIFICATION_QUEUE: alepha1246.TOptional<alepha1246.TBoolean>;
|
|
5046
4987
|
}>;
|
|
5047
4988
|
declare module "alepha" {
|
|
5048
4989
|
interface Env extends Partial<Static<typeof notificationServiceEnvSchema>> {}
|
|
5049
4990
|
}
|
|
5050
4991
|
//#endregion
|
|
5051
4992
|
//#region ../alepha/src/queue/providers/WorkerProvider.d.ts
|
|
5052
|
-
declare const envSchema:
|
|
4993
|
+
declare const envSchema: alepha1246.TObject<{
|
|
5053
4994
|
/**
|
|
5054
4995
|
* The timeout in seconds for blocking job acquisition.
|
|
5055
4996
|
* Workers will check for shutdown after each timeout period.
|
|
5056
4997
|
*/
|
|
5057
|
-
QUEUE_WORKER_BLOCKING_TIMEOUT:
|
|
4998
|
+
QUEUE_WORKER_BLOCKING_TIMEOUT: alepha1246.TInteger;
|
|
5058
4999
|
/**
|
|
5059
5000
|
* The number of workers to run concurrently. Defaults to 1.
|
|
5060
5001
|
* Useful only if you are doing a lot of I/O.
|
|
5061
5002
|
*/
|
|
5062
|
-
QUEUE_WORKER_CONCURRENCY:
|
|
5003
|
+
QUEUE_WORKER_CONCURRENCY: alepha1246.TInteger;
|
|
5063
5004
|
/**
|
|
5064
5005
|
* Interval in milliseconds for renewing job locks during processing.
|
|
5065
5006
|
* Should be less than the job's lock duration.
|
|
5066
5007
|
*/
|
|
5067
|
-
QUEUE_WORKER_LOCK_RENEWAL_INTERVAL:
|
|
5008
|
+
QUEUE_WORKER_LOCK_RENEWAL_INTERVAL: alepha1246.TInteger;
|
|
5068
5009
|
/**
|
|
5069
5010
|
* Interval in milliseconds for the scheduler to check delayed jobs and stalled jobs.
|
|
5070
5011
|
*/
|
|
5071
|
-
QUEUE_SCHEDULER_INTERVAL:
|
|
5012
|
+
QUEUE_SCHEDULER_INTERVAL: alepha1246.TInteger;
|
|
5072
5013
|
/**
|
|
5073
5014
|
* Threshold in milliseconds after lock expiration to consider a job stalled.
|
|
5074
5015
|
*/
|
|
5075
|
-
QUEUE_STALLED_THRESHOLD:
|
|
5016
|
+
QUEUE_STALLED_THRESHOLD: alepha1246.TInteger;
|
|
5076
5017
|
}>;
|
|
5077
5018
|
declare module "alepha" {
|
|
5078
5019
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -5098,9 +5039,9 @@ declare class ServerCookiesProvider {
|
|
|
5098
5039
|
protected readonly IV_LENGTH = 16;
|
|
5099
5040
|
protected readonly AUTH_TAG_LENGTH = 16;
|
|
5100
5041
|
protected readonly SIGNATURE_LENGTH = 32;
|
|
5101
|
-
readonly onRequest:
|
|
5102
|
-
readonly onAction:
|
|
5103
|
-
readonly onSend:
|
|
5042
|
+
readonly onRequest: alepha1246.HookDescriptor<"server:onRequest">;
|
|
5043
|
+
readonly onAction: alepha1246.HookDescriptor<"action:onRequest">;
|
|
5044
|
+
readonly onSend: alepha1246.HookDescriptor<"server:onSend">;
|
|
5104
5045
|
protected getCookiesFromContext(cookies?: Cookies): Cookies;
|
|
5105
5046
|
getCookie<T$1 extends TSchema>(name: string, options: CookieDescriptorOptions<T$1>, contextCookies?: Cookies): Static<T$1> | undefined;
|
|
5106
5047
|
setCookie<T$1 extends TSchema>(name: string, options: CookieDescriptorOptions<T$1>, data: Static<T$1>, contextCookies?: Cookies): void;
|
|
@@ -5182,23 +5123,23 @@ declare module "alepha/server" {
|
|
|
5182
5123
|
*/
|
|
5183
5124
|
//#endregion
|
|
5184
5125
|
//#region ../alepha/src/server-auth/schemas/authenticationProviderSchema.d.ts
|
|
5185
|
-
declare const authenticationProviderSchema:
|
|
5186
|
-
name:
|
|
5187
|
-
type:
|
|
5126
|
+
declare const authenticationProviderSchema: alepha1246.TObject<{
|
|
5127
|
+
name: alepha1246.TString;
|
|
5128
|
+
type: alepha1246.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
5188
5129
|
}>;
|
|
5189
5130
|
type AuthenticationProvider = Static<typeof authenticationProviderSchema>;
|
|
5190
5131
|
//#endregion
|
|
5191
5132
|
//#region ../alepha/src/server-auth/schemas/tokensSchema.d.ts
|
|
5192
|
-
declare const tokensSchema:
|
|
5193
|
-
provider:
|
|
5194
|
-
access_token:
|
|
5195
|
-
issued_at:
|
|
5196
|
-
expires_in:
|
|
5197
|
-
refresh_token:
|
|
5198
|
-
refresh_token_expires_in:
|
|
5199
|
-
refresh_expires_in:
|
|
5200
|
-
id_token:
|
|
5201
|
-
scope:
|
|
5133
|
+
declare const tokensSchema: alepha1246.TObject<{
|
|
5134
|
+
provider: alepha1246.TString;
|
|
5135
|
+
access_token: alepha1246.TString;
|
|
5136
|
+
issued_at: alepha1246.TNumber;
|
|
5137
|
+
expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5138
|
+
refresh_token: alepha1246.TOptional<alepha1246.TString>;
|
|
5139
|
+
refresh_token_expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5140
|
+
refresh_expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5141
|
+
id_token: alepha1246.TOptional<alepha1246.TString>;
|
|
5142
|
+
scope: alepha1246.TOptional<alepha1246.TString>;
|
|
5202
5143
|
}>;
|
|
5203
5144
|
type Tokens = Static<typeof tokensSchema>;
|
|
5204
5145
|
//#endregion
|
|
@@ -5209,34 +5150,34 @@ declare class ServerAuthProvider {
|
|
|
5209
5150
|
protected readonly serverCookiesProvider: ServerCookiesProvider;
|
|
5210
5151
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
5211
5152
|
protected readonly serverLinksProvider: ServerLinksProvider;
|
|
5212
|
-
protected readonly authorizationCode: AbstractCookieDescriptor<
|
|
5213
|
-
provider:
|
|
5214
|
-
codeVerifier:
|
|
5215
|
-
redirectUri:
|
|
5216
|
-
state:
|
|
5217
|
-
nonce:
|
|
5153
|
+
protected readonly authorizationCode: AbstractCookieDescriptor<alepha1246.TObject<{
|
|
5154
|
+
provider: alepha1246.TString;
|
|
5155
|
+
codeVerifier: alepha1246.TOptional<alepha1246.TString>;
|
|
5156
|
+
redirectUri: alepha1246.TOptional<alepha1246.TString>;
|
|
5157
|
+
state: alepha1246.TOptional<alepha1246.TString>;
|
|
5158
|
+
nonce: alepha1246.TOptional<alepha1246.TString>;
|
|
5218
5159
|
}>>;
|
|
5219
|
-
readonly tokens: AbstractCookieDescriptor<
|
|
5220
|
-
provider:
|
|
5221
|
-
access_token:
|
|
5222
|
-
issued_at:
|
|
5223
|
-
expires_in:
|
|
5224
|
-
refresh_token:
|
|
5225
|
-
refresh_token_expires_in:
|
|
5226
|
-
refresh_expires_in:
|
|
5227
|
-
id_token:
|
|
5228
|
-
scope:
|
|
5160
|
+
readonly tokens: AbstractCookieDescriptor<alepha1246.TObject<{
|
|
5161
|
+
provider: alepha1246.TString;
|
|
5162
|
+
access_token: alepha1246.TString;
|
|
5163
|
+
issued_at: alepha1246.TNumber;
|
|
5164
|
+
expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5165
|
+
refresh_token: alepha1246.TOptional<alepha1246.TString>;
|
|
5166
|
+
refresh_token_expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5167
|
+
refresh_expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5168
|
+
id_token: alepha1246.TOptional<alepha1246.TString>;
|
|
5169
|
+
scope: alepha1246.TOptional<alepha1246.TString>;
|
|
5229
5170
|
}>>;
|
|
5230
5171
|
get identities(): Array<AuthDescriptor>;
|
|
5231
5172
|
getAuthenticationProviders(filters?: {
|
|
5232
5173
|
realmName?: string;
|
|
5233
5174
|
}): AuthenticationProvider[];
|
|
5234
|
-
protected readonly configure:
|
|
5175
|
+
protected readonly configure: alepha1246.HookDescriptor<"configure">;
|
|
5235
5176
|
protected getAccessTokens(tokens: Tokens): string | undefined;
|
|
5236
5177
|
/**
|
|
5237
5178
|
* Fill request headers with access token from cookies or fallback to provider's fallback function.
|
|
5238
5179
|
*/
|
|
5239
|
-
protected readonly onRequest:
|
|
5180
|
+
protected readonly onRequest: alepha1246.HookDescriptor<"server:onRequest">;
|
|
5240
5181
|
/**
|
|
5241
5182
|
* Convert cookies to tokens.
|
|
5242
5183
|
* If the tokens are expired, try to refresh them using the refresh token.
|
|
@@ -5247,26 +5188,26 @@ declare class ServerAuthProvider {
|
|
|
5247
5188
|
* Get user information.
|
|
5248
5189
|
*/
|
|
5249
5190
|
readonly userinfo: RouteDescriptor<{
|
|
5250
|
-
response:
|
|
5251
|
-
user:
|
|
5252
|
-
id:
|
|
5253
|
-
name:
|
|
5254
|
-
email:
|
|
5255
|
-
username:
|
|
5256
|
-
picture:
|
|
5257
|
-
sessionId:
|
|
5258
|
-
organizations:
|
|
5259
|
-
roles:
|
|
5191
|
+
response: alepha1246.TObject<{
|
|
5192
|
+
user: alepha1246.TOptional<alepha1246.TObject<{
|
|
5193
|
+
id: alepha1246.TString;
|
|
5194
|
+
name: alepha1246.TOptional<alepha1246.TString>;
|
|
5195
|
+
email: alepha1246.TOptional<alepha1246.TString>;
|
|
5196
|
+
username: alepha1246.TOptional<alepha1246.TString>;
|
|
5197
|
+
picture: alepha1246.TOptional<alepha1246.TString>;
|
|
5198
|
+
sessionId: alepha1246.TOptional<alepha1246.TString>;
|
|
5199
|
+
organizations: alepha1246.TOptional<alepha1246.TArray<alepha1246.TString>>;
|
|
5200
|
+
roles: alepha1246.TOptional<alepha1246.TArray<alepha1246.TString>>;
|
|
5260
5201
|
}>>;
|
|
5261
|
-
api:
|
|
5262
|
-
prefix:
|
|
5263
|
-
links:
|
|
5264
|
-
name:
|
|
5265
|
-
group:
|
|
5266
|
-
path:
|
|
5267
|
-
method:
|
|
5268
|
-
requestBodyType:
|
|
5269
|
-
service:
|
|
5202
|
+
api: alepha1246.TObject<{
|
|
5203
|
+
prefix: alepha1246.TOptional<alepha1246.TString>;
|
|
5204
|
+
links: alepha1246.TArray<alepha1246.TObject<{
|
|
5205
|
+
name: alepha1246.TString;
|
|
5206
|
+
group: alepha1246.TOptional<alepha1246.TString>;
|
|
5207
|
+
path: alepha1246.TString;
|
|
5208
|
+
method: alepha1246.TOptional<alepha1246.TString>;
|
|
5209
|
+
requestBodyType: alepha1246.TOptional<alepha1246.TString>;
|
|
5210
|
+
service: alepha1246.TOptional<alepha1246.TString>;
|
|
5270
5211
|
}>>;
|
|
5271
5212
|
}>;
|
|
5272
5213
|
}>;
|
|
@@ -5275,65 +5216,65 @@ declare class ServerAuthProvider {
|
|
|
5275
5216
|
* Refresh a token for internal providers.
|
|
5276
5217
|
*/
|
|
5277
5218
|
readonly refresh: RouteDescriptor<{
|
|
5278
|
-
query:
|
|
5279
|
-
provider:
|
|
5219
|
+
query: alepha1246.TObject<{
|
|
5220
|
+
provider: alepha1246.TString;
|
|
5280
5221
|
}>;
|
|
5281
|
-
body:
|
|
5282
|
-
refresh_token:
|
|
5283
|
-
access_token:
|
|
5222
|
+
body: alepha1246.TObject<{
|
|
5223
|
+
refresh_token: alepha1246.TString;
|
|
5224
|
+
access_token: alepha1246.TOptional<alepha1246.TString>;
|
|
5284
5225
|
}>;
|
|
5285
|
-
response:
|
|
5286
|
-
provider:
|
|
5287
|
-
access_token:
|
|
5288
|
-
issued_at:
|
|
5289
|
-
expires_in:
|
|
5290
|
-
refresh_token:
|
|
5291
|
-
refresh_token_expires_in:
|
|
5292
|
-
refresh_expires_in:
|
|
5293
|
-
id_token:
|
|
5294
|
-
scope:
|
|
5226
|
+
response: alepha1246.TObject<{
|
|
5227
|
+
provider: alepha1246.TString;
|
|
5228
|
+
access_token: alepha1246.TString;
|
|
5229
|
+
issued_at: alepha1246.TNumber;
|
|
5230
|
+
expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5231
|
+
refresh_token: alepha1246.TOptional<alepha1246.TString>;
|
|
5232
|
+
refresh_token_expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5233
|
+
refresh_expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5234
|
+
id_token: alepha1246.TOptional<alepha1246.TString>;
|
|
5235
|
+
scope: alepha1246.TOptional<alepha1246.TString>;
|
|
5295
5236
|
}>;
|
|
5296
5237
|
}>;
|
|
5297
5238
|
/**
|
|
5298
5239
|
* Login for local password-based authentication.
|
|
5299
5240
|
*/
|
|
5300
5241
|
readonly token: RouteDescriptor<{
|
|
5301
|
-
query:
|
|
5302
|
-
provider:
|
|
5242
|
+
query: alepha1246.TObject<{
|
|
5243
|
+
provider: alepha1246.TString;
|
|
5303
5244
|
}>;
|
|
5304
|
-
body:
|
|
5305
|
-
username:
|
|
5306
|
-
password:
|
|
5245
|
+
body: alepha1246.TObject<{
|
|
5246
|
+
username: alepha1246.TString;
|
|
5247
|
+
password: alepha1246.TString;
|
|
5307
5248
|
}>;
|
|
5308
|
-
response:
|
|
5309
|
-
provider:
|
|
5310
|
-
access_token:
|
|
5311
|
-
issued_at:
|
|
5312
|
-
expires_in:
|
|
5313
|
-
refresh_token:
|
|
5314
|
-
refresh_token_expires_in:
|
|
5315
|
-
refresh_expires_in:
|
|
5316
|
-
id_token:
|
|
5317
|
-
scope:
|
|
5318
|
-
user:
|
|
5319
|
-
id:
|
|
5320
|
-
name:
|
|
5321
|
-
email:
|
|
5322
|
-
username:
|
|
5323
|
-
picture:
|
|
5324
|
-
sessionId:
|
|
5325
|
-
organizations:
|
|
5326
|
-
roles:
|
|
5249
|
+
response: alepha1246.TObject<{
|
|
5250
|
+
provider: alepha1246.TString;
|
|
5251
|
+
access_token: alepha1246.TString;
|
|
5252
|
+
issued_at: alepha1246.TNumber;
|
|
5253
|
+
expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5254
|
+
refresh_token: alepha1246.TOptional<alepha1246.TString>;
|
|
5255
|
+
refresh_token_expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5256
|
+
refresh_expires_in: alepha1246.TOptional<alepha1246.TNumber>;
|
|
5257
|
+
id_token: alepha1246.TOptional<alepha1246.TString>;
|
|
5258
|
+
scope: alepha1246.TOptional<alepha1246.TString>;
|
|
5259
|
+
user: alepha1246.TObject<{
|
|
5260
|
+
id: alepha1246.TString;
|
|
5261
|
+
name: alepha1246.TOptional<alepha1246.TString>;
|
|
5262
|
+
email: alepha1246.TOptional<alepha1246.TString>;
|
|
5263
|
+
username: alepha1246.TOptional<alepha1246.TString>;
|
|
5264
|
+
picture: alepha1246.TOptional<alepha1246.TString>;
|
|
5265
|
+
sessionId: alepha1246.TOptional<alepha1246.TString>;
|
|
5266
|
+
organizations: alepha1246.TOptional<alepha1246.TArray<alepha1246.TString>>;
|
|
5267
|
+
roles: alepha1246.TOptional<alepha1246.TArray<alepha1246.TString>>;
|
|
5327
5268
|
}>;
|
|
5328
|
-
api:
|
|
5329
|
-
prefix:
|
|
5330
|
-
links:
|
|
5331
|
-
name:
|
|
5332
|
-
group:
|
|
5333
|
-
path:
|
|
5334
|
-
method:
|
|
5335
|
-
requestBodyType:
|
|
5336
|
-
service:
|
|
5269
|
+
api: alepha1246.TObject<{
|
|
5270
|
+
prefix: alepha1246.TOptional<alepha1246.TString>;
|
|
5271
|
+
links: alepha1246.TArray<alepha1246.TObject<{
|
|
5272
|
+
name: alepha1246.TString;
|
|
5273
|
+
group: alepha1246.TOptional<alepha1246.TString>;
|
|
5274
|
+
path: alepha1246.TString;
|
|
5275
|
+
method: alepha1246.TOptional<alepha1246.TString>;
|
|
5276
|
+
requestBodyType: alepha1246.TOptional<alepha1246.TString>;
|
|
5277
|
+
service: alepha1246.TOptional<alepha1246.TString>;
|
|
5337
5278
|
}>>;
|
|
5338
5279
|
}>;
|
|
5339
5280
|
}>;
|
|
@@ -5342,9 +5283,9 @@ declare class ServerAuthProvider {
|
|
|
5342
5283
|
* Oauth2/OIDC login route.
|
|
5343
5284
|
*/
|
|
5344
5285
|
readonly login: RouteDescriptor<{
|
|
5345
|
-
query:
|
|
5346
|
-
provider:
|
|
5347
|
-
redirect_uri:
|
|
5286
|
+
query: alepha1246.TObject<{
|
|
5287
|
+
provider: alepha1246.TString;
|
|
5288
|
+
redirect_uri: alepha1246.TOptional<alepha1246.TString>;
|
|
5348
5289
|
}>;
|
|
5349
5290
|
}>;
|
|
5350
5291
|
/**
|
|
@@ -5356,8 +5297,8 @@ declare class ServerAuthProvider {
|
|
|
5356
5297
|
* Logout route for OAuth2/OIDC providers.
|
|
5357
5298
|
*/
|
|
5358
5299
|
readonly logout: RouteDescriptor<{
|
|
5359
|
-
query:
|
|
5360
|
-
post_logout_redirect_uri:
|
|
5300
|
+
query: alepha1246.TObject<{
|
|
5301
|
+
post_logout_redirect_uri: alepha1246.TOptional<alepha1246.TString>;
|
|
5361
5302
|
}>;
|
|
5362
5303
|
}>;
|
|
5363
5304
|
protected provider(opts: string | {
|
|
@@ -5616,47 +5557,47 @@ declare class UserRealmController {
|
|
|
5616
5557
|
* This endpoint is not exposed in the API documentation.
|
|
5617
5558
|
*/
|
|
5618
5559
|
readonly getRealmConfig: ActionDescriptorFn<{
|
|
5619
|
-
query:
|
|
5620
|
-
userRealmName:
|
|
5560
|
+
query: alepha1246.TObject<{
|
|
5561
|
+
userRealmName: alepha1246.TOptional<alepha1246.TString>;
|
|
5621
5562
|
}>;
|
|
5622
|
-
response:
|
|
5623
|
-
settings:
|
|
5624
|
-
registrationAllowed:
|
|
5625
|
-
emailEnabled:
|
|
5626
|
-
emailRequired:
|
|
5627
|
-
usernameEnabled:
|
|
5628
|
-
usernameRequired:
|
|
5629
|
-
phoneEnabled:
|
|
5630
|
-
phoneRequired:
|
|
5631
|
-
verifyEmailRequired:
|
|
5632
|
-
verifyPhoneRequired:
|
|
5633
|
-
firstNameLastNameEnabled:
|
|
5634
|
-
firstNameLastNameRequired:
|
|
5635
|
-
resetPasswordAllowed:
|
|
5636
|
-
passwordPolicy:
|
|
5637
|
-
minLength:
|
|
5638
|
-
requireUppercase:
|
|
5639
|
-
requireLowercase:
|
|
5640
|
-
requireNumbers:
|
|
5641
|
-
requireSpecialCharacters:
|
|
5563
|
+
response: alepha1246.TObject<{
|
|
5564
|
+
settings: alepha1246.TObject<{
|
|
5565
|
+
registrationAllowed: alepha1246.TBoolean;
|
|
5566
|
+
emailEnabled: alepha1246.TBoolean;
|
|
5567
|
+
emailRequired: alepha1246.TBoolean;
|
|
5568
|
+
usernameEnabled: alepha1246.TBoolean;
|
|
5569
|
+
usernameRequired: alepha1246.TBoolean;
|
|
5570
|
+
phoneEnabled: alepha1246.TBoolean;
|
|
5571
|
+
phoneRequired: alepha1246.TBoolean;
|
|
5572
|
+
verifyEmailRequired: alepha1246.TBoolean;
|
|
5573
|
+
verifyPhoneRequired: alepha1246.TBoolean;
|
|
5574
|
+
firstNameLastNameEnabled: alepha1246.TBoolean;
|
|
5575
|
+
firstNameLastNameRequired: alepha1246.TBoolean;
|
|
5576
|
+
resetPasswordAllowed: alepha1246.TBoolean;
|
|
5577
|
+
passwordPolicy: alepha1246.TObject<{
|
|
5578
|
+
minLength: alepha1246.TInteger;
|
|
5579
|
+
requireUppercase: alepha1246.TBoolean;
|
|
5580
|
+
requireLowercase: alepha1246.TBoolean;
|
|
5581
|
+
requireNumbers: alepha1246.TBoolean;
|
|
5582
|
+
requireSpecialCharacters: alepha1246.TBoolean;
|
|
5642
5583
|
}>;
|
|
5643
5584
|
}>;
|
|
5644
|
-
realmName:
|
|
5645
|
-
authenticationMethods:
|
|
5646
|
-
name:
|
|
5647
|
-
type:
|
|
5585
|
+
realmName: alepha1246.TString;
|
|
5586
|
+
authenticationMethods: alepha1246.TArray<alepha1246.TObject<{
|
|
5587
|
+
name: alepha1246.TString;
|
|
5588
|
+
type: alepha1246.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
5648
5589
|
}>>;
|
|
5649
5590
|
}>;
|
|
5650
5591
|
}>;
|
|
5651
5592
|
readonly checkUsernameAvailability: ActionDescriptorFn<{
|
|
5652
|
-
query:
|
|
5653
|
-
userRealmName:
|
|
5593
|
+
query: alepha1246.TObject<{
|
|
5594
|
+
userRealmName: alepha1246.TOptional<alepha1246.TString>;
|
|
5654
5595
|
}>;
|
|
5655
|
-
body:
|
|
5656
|
-
username:
|
|
5596
|
+
body: alepha1246.TObject<{
|
|
5597
|
+
username: alepha1246.TString;
|
|
5657
5598
|
}>;
|
|
5658
|
-
response:
|
|
5659
|
-
available:
|
|
5599
|
+
response: alepha1246.TObject<{
|
|
5600
|
+
available: alepha1246.TBoolean;
|
|
5660
5601
|
}>;
|
|
5661
5602
|
}>;
|
|
5662
5603
|
}
|
|
@@ -5692,32 +5633,32 @@ interface UserRealmOptions {
|
|
|
5692
5633
|
}
|
|
5693
5634
|
//#endregion
|
|
5694
5635
|
//#region ../alepha/src/api-users/schemas/userRealmConfigSchema.d.ts
|
|
5695
|
-
declare const userRealmConfigSchema:
|
|
5696
|
-
settings:
|
|
5697
|
-
registrationAllowed:
|
|
5698
|
-
emailEnabled:
|
|
5699
|
-
emailRequired:
|
|
5700
|
-
usernameEnabled:
|
|
5701
|
-
usernameRequired:
|
|
5702
|
-
phoneEnabled:
|
|
5703
|
-
phoneRequired:
|
|
5704
|
-
verifyEmailRequired:
|
|
5705
|
-
verifyPhoneRequired:
|
|
5706
|
-
firstNameLastNameEnabled:
|
|
5707
|
-
firstNameLastNameRequired:
|
|
5708
|
-
resetPasswordAllowed:
|
|
5709
|
-
passwordPolicy:
|
|
5710
|
-
minLength:
|
|
5711
|
-
requireUppercase:
|
|
5712
|
-
requireLowercase:
|
|
5713
|
-
requireNumbers:
|
|
5714
|
-
requireSpecialCharacters:
|
|
5636
|
+
declare const userRealmConfigSchema: alepha1246.TObject<{
|
|
5637
|
+
settings: alepha1246.TObject<{
|
|
5638
|
+
registrationAllowed: alepha1246.TBoolean;
|
|
5639
|
+
emailEnabled: alepha1246.TBoolean;
|
|
5640
|
+
emailRequired: alepha1246.TBoolean;
|
|
5641
|
+
usernameEnabled: alepha1246.TBoolean;
|
|
5642
|
+
usernameRequired: alepha1246.TBoolean;
|
|
5643
|
+
phoneEnabled: alepha1246.TBoolean;
|
|
5644
|
+
phoneRequired: alepha1246.TBoolean;
|
|
5645
|
+
verifyEmailRequired: alepha1246.TBoolean;
|
|
5646
|
+
verifyPhoneRequired: alepha1246.TBoolean;
|
|
5647
|
+
firstNameLastNameEnabled: alepha1246.TBoolean;
|
|
5648
|
+
firstNameLastNameRequired: alepha1246.TBoolean;
|
|
5649
|
+
resetPasswordAllowed: alepha1246.TBoolean;
|
|
5650
|
+
passwordPolicy: alepha1246.TObject<{
|
|
5651
|
+
minLength: alepha1246.TInteger;
|
|
5652
|
+
requireUppercase: alepha1246.TBoolean;
|
|
5653
|
+
requireLowercase: alepha1246.TBoolean;
|
|
5654
|
+
requireNumbers: alepha1246.TBoolean;
|
|
5655
|
+
requireSpecialCharacters: alepha1246.TBoolean;
|
|
5715
5656
|
}>;
|
|
5716
5657
|
}>;
|
|
5717
|
-
realmName:
|
|
5718
|
-
authenticationMethods:
|
|
5719
|
-
name:
|
|
5720
|
-
type:
|
|
5658
|
+
realmName: alepha1246.TString;
|
|
5659
|
+
authenticationMethods: alepha1246.TArray<alepha1246.TObject<{
|
|
5660
|
+
name: alepha1246.TString;
|
|
5661
|
+
type: alepha1246.TUnsafe<"OAUTH2" | "OIDC" | "CREDENTIALS">;
|
|
5721
5662
|
}>>;
|
|
5722
5663
|
}>;
|
|
5723
5664
|
type UserRealmConfig = Static<typeof userRealmConfigSchema>;
|
|
@@ -5758,8 +5699,8 @@ declare module "alepha/bucket" {
|
|
|
5758
5699
|
declare class AuthRouter {
|
|
5759
5700
|
userRealmClient: HttpVirtualClient<UserRealmController>;
|
|
5760
5701
|
login: PageDescriptor<{
|
|
5761
|
-
query:
|
|
5762
|
-
redirect:
|
|
5702
|
+
query: alepha1246.TObject<{
|
|
5703
|
+
redirect: alepha1246.TOptional<alepha1246.TString>;
|
|
5763
5704
|
}>;
|
|
5764
5705
|
}, {
|
|
5765
5706
|
realmConfig: {
|
|
@@ -5792,8 +5733,8 @@ declare class AuthRouter {
|
|
|
5792
5733
|
};
|
|
5793
5734
|
}, TPropsParentDefault>;
|
|
5794
5735
|
register: PageDescriptor<{
|
|
5795
|
-
query:
|
|
5796
|
-
redirect:
|
|
5736
|
+
query: alepha1246.TObject<{
|
|
5737
|
+
redirect: alepha1246.TOptional<alepha1246.TString>;
|
|
5797
5738
|
}>;
|
|
5798
5739
|
}, {
|
|
5799
5740
|
realmConfig: {
|
|
@@ -5826,8 +5767,8 @@ declare class AuthRouter {
|
|
|
5826
5767
|
};
|
|
5827
5768
|
}, TPropsParentDefault>;
|
|
5828
5769
|
resetPassword: PageDescriptor<{
|
|
5829
|
-
query:
|
|
5830
|
-
redirect:
|
|
5770
|
+
query: alepha1246.TObject<{
|
|
5771
|
+
redirect: alepha1246.TOptional<alepha1246.TString>;
|
|
5831
5772
|
}>;
|
|
5832
5773
|
}, {
|
|
5833
5774
|
realmConfig: {
|
|
@@ -5861,364 +5802,6 @@ declare class AuthRouter {
|
|
|
5861
5802
|
}, TPropsParentDefault>;
|
|
5862
5803
|
}
|
|
5863
5804
|
//#endregion
|
|
5864
|
-
//#region ../react/src/form/services/FormModel.d.ts
|
|
5865
|
-
/**
|
|
5866
|
-
* FormModel is a dynamic form handler that generates form inputs based on a provided TypeBox schema.
|
|
5867
|
-
* It manages form state, handles input changes, and processes form submissions with validation.
|
|
5868
|
-
*
|
|
5869
|
-
* It means to be injected and used within React components to provide a structured way to create and manage forms.
|
|
5870
|
-
*
|
|
5871
|
-
* @see {@link useForm}
|
|
5872
|
-
*/
|
|
5873
|
-
declare class FormModel<T$1 extends TObject> {
|
|
5874
|
-
readonly id: string;
|
|
5875
|
-
readonly options: FormCtrlOptions<T$1>;
|
|
5876
|
-
protected readonly log: Logger;
|
|
5877
|
-
protected readonly alepha: Alepha;
|
|
5878
|
-
protected readonly values: Record<string, any>;
|
|
5879
|
-
protected submitInProgress: boolean;
|
|
5880
|
-
input: SchemaToInput<T$1>;
|
|
5881
|
-
get submitting(): boolean;
|
|
5882
|
-
constructor(id: string, options: FormCtrlOptions<T$1>);
|
|
5883
|
-
get element(): HTMLFormElement;
|
|
5884
|
-
get currentValues(): Record<string, any>;
|
|
5885
|
-
get props(): {
|
|
5886
|
-
id: string;
|
|
5887
|
-
noValidate: boolean;
|
|
5888
|
-
onSubmit: (ev?: FormEventLike) => void;
|
|
5889
|
-
onReset: (event: FormEventLike) => Promise<void>;
|
|
5890
|
-
};
|
|
5891
|
-
readonly reset: (event: FormEventLike) => Promise<void>;
|
|
5892
|
-
readonly submit: () => Promise<void>;
|
|
5893
|
-
/**
|
|
5894
|
-
* Restructures flat keys like "address.city" into nested objects like { address: { city: ... } }
|
|
5895
|
-
* Values are already typed from onChange, so no conversion is needed.
|
|
5896
|
-
*/
|
|
5897
|
-
protected restructureValues(store: Record<string, any>): Record<string, any>;
|
|
5898
|
-
/**
|
|
5899
|
-
* Helper to restructure a flat key like "address.city" into nested object structure.
|
|
5900
|
-
* The value is already typed, so we just assign it to the nested path.
|
|
5901
|
-
*/
|
|
5902
|
-
protected restructureNestedValue(values: Record<string, any>, key: string, value: any): void;
|
|
5903
|
-
protected createProxyFromSchema<T$1 extends TObject>(options: FormCtrlOptions<T$1>, schema: TSchema, context: {
|
|
5904
|
-
parent: string;
|
|
5905
|
-
store: Record<string, any>;
|
|
5906
|
-
}): SchemaToInput<T$1>;
|
|
5907
|
-
protected createInputFromSchema<T$1 extends TObject>(name: keyof Static<T$1> & string, options: FormCtrlOptions<T$1>, schema: TObject, required: boolean, context: {
|
|
5908
|
-
parent: string;
|
|
5909
|
-
store: Record<string, any>;
|
|
5910
|
-
}): InputField;
|
|
5911
|
-
/**
|
|
5912
|
-
* Convert an input value to the correct type based on the schema.
|
|
5913
|
-
* Handles raw DOM values (strings, booleans from checkboxes, Files, etc.)
|
|
5914
|
-
*/
|
|
5915
|
-
protected getValueFromInput(input: any, schema: TSchema): any;
|
|
5916
|
-
protected valueToInputEntry(value: any): string | number | boolean;
|
|
5917
|
-
}
|
|
5918
|
-
type SchemaToInput<T$1 extends TObject> = { [K in keyof T$1["properties"]]: T$1["properties"][K] extends TObject ? SchemaToInput<T$1["properties"][K]> : InputField };
|
|
5919
|
-
interface FormEventLike {
|
|
5920
|
-
preventDefault?: () => void;
|
|
5921
|
-
stopPropagation?: () => void;
|
|
5922
|
-
}
|
|
5923
|
-
interface InputField {
|
|
5924
|
-
path: string;
|
|
5925
|
-
required: boolean;
|
|
5926
|
-
props: InputHTMLAttributesLike;
|
|
5927
|
-
schema: TSchema;
|
|
5928
|
-
set: (value: any) => void;
|
|
5929
|
-
form: FormModel<any>;
|
|
5930
|
-
}
|
|
5931
|
-
type InputHTMLAttributesLike = Pick<InputHTMLAttributes<unknown>, "id" | "name" | "type" | "value" | "defaultValue" | "required" | "maxLength" | "minLength" | "aria-label" | "autoComplete"> & {
|
|
5932
|
-
value?: any;
|
|
5933
|
-
defaultValue?: any;
|
|
5934
|
-
onChange?: (event: any) => void;
|
|
5935
|
-
};
|
|
5936
|
-
type FormCtrlOptions<T$1 extends TObject> = {
|
|
5937
|
-
/**
|
|
5938
|
-
* The schema defining the structure and validation rules for the form.
|
|
5939
|
-
* This should be a TypeBox schema object.
|
|
5940
|
-
*/
|
|
5941
|
-
schema: T$1;
|
|
5942
|
-
/**
|
|
5943
|
-
* Callback function to handle form submission.
|
|
5944
|
-
* This function will receive the parsed and validated form values.
|
|
5945
|
-
*/
|
|
5946
|
-
handler: (values: Static<T$1>, args: {
|
|
5947
|
-
form: HTMLFormElement;
|
|
5948
|
-
}) => unknown;
|
|
5949
|
-
/**
|
|
5950
|
-
* Optional initial values for the form fields.
|
|
5951
|
-
* This can be used to pre-populate the form with existing data.
|
|
5952
|
-
*/
|
|
5953
|
-
initialValues?: Partial<Static<T$1>>;
|
|
5954
|
-
/**
|
|
5955
|
-
* Optional function to create custom field attributes.
|
|
5956
|
-
* This can be used to add custom validation, styles, or other attributes.
|
|
5957
|
-
*/
|
|
5958
|
-
onCreateField?: (name: keyof Static<T$1> & string, schema: TSchema) => InputHTMLAttributes<unknown>;
|
|
5959
|
-
/**
|
|
5960
|
-
* If defined, this will generate a unique ID for each field, prefixed with this string.
|
|
5961
|
-
*
|
|
5962
|
-
* > "username" with id="form-123" will become "form-123-username".
|
|
5963
|
-
*
|
|
5964
|
-
* If omitted, IDs will not be generated.
|
|
5965
|
-
*/
|
|
5966
|
-
id?: string;
|
|
5967
|
-
onError?: (error: Error, args: {
|
|
5968
|
-
form: HTMLFormElement;
|
|
5969
|
-
}) => void;
|
|
5970
|
-
onChange?: (key: string, value: any, store: Record<string, any>) => void;
|
|
5971
|
-
onReset?: () => void;
|
|
5972
|
-
};
|
|
5973
|
-
//#endregion
|
|
5974
|
-
//#region ../react/src/form/index.d.ts
|
|
5975
|
-
declare module "alepha" {
|
|
5976
|
-
interface Hooks {
|
|
5977
|
-
"form:change": {
|
|
5978
|
-
id: string;
|
|
5979
|
-
path: string;
|
|
5980
|
-
value: any;
|
|
5981
|
-
};
|
|
5982
|
-
"form:reset": {
|
|
5983
|
-
id: string;
|
|
5984
|
-
values: Record<string, any>;
|
|
5985
|
-
};
|
|
5986
|
-
"form:submit:begin": {
|
|
5987
|
-
id: string;
|
|
5988
|
-
};
|
|
5989
|
-
"form:submit:success": {
|
|
5990
|
-
id: string;
|
|
5991
|
-
values: Record<string, any>;
|
|
5992
|
-
};
|
|
5993
|
-
"form:submit:error": {
|
|
5994
|
-
id: string;
|
|
5995
|
-
error: Error;
|
|
5996
|
-
};
|
|
5997
|
-
"form:submit:end": {
|
|
5998
|
-
id: string;
|
|
5999
|
-
};
|
|
6000
|
-
}
|
|
6001
|
-
}
|
|
6002
|
-
/**
|
|
6003
|
-
* React hooks for managing forms in Alepha applications.
|
|
6004
|
-
*
|
|
6005
|
-
* This module provides a set of hooks to simplify form handling, validation, and submission in React applications built with Alepha.
|
|
6006
|
-
*
|
|
6007
|
-
* It includes:
|
|
6008
|
-
* - `useForm`: A hook for managing form state, validation, and submission.
|
|
6009
|
-
*
|
|
6010
|
-
* @see {@link useForm}
|
|
6011
|
-
* @module alepha.react.form
|
|
6012
|
-
*/
|
|
6013
|
-
//#endregion
|
|
6014
|
-
//#region src/core/utils/parseInput.d.ts
|
|
6015
|
-
interface GenericControlProps {
|
|
6016
|
-
input: InputField;
|
|
6017
|
-
title?: string;
|
|
6018
|
-
description?: string;
|
|
6019
|
-
icon?: ReactElement | ((props: {
|
|
6020
|
-
size: number;
|
|
6021
|
-
}) => ReactNode);
|
|
6022
|
-
}
|
|
6023
|
-
//#endregion
|
|
6024
|
-
//#region src/core/components/form/ControlNumber.d.ts
|
|
6025
|
-
interface ControlNumberProps extends GenericControlProps {
|
|
6026
|
-
numberInputProps?: Partial<NumberInputProps>;
|
|
6027
|
-
sliderProps?: Partial<SliderProps>;
|
|
6028
|
-
}
|
|
6029
|
-
//#endregion
|
|
6030
|
-
//#region src/core/components/form/ControlSelect.d.ts
|
|
6031
|
-
type SelectValueLabel = string | {
|
|
6032
|
-
value: string;
|
|
6033
|
-
label: string;
|
|
6034
|
-
icon?: string;
|
|
6035
|
-
};
|
|
6036
|
-
interface ControlSelectProps extends GenericControlProps {
|
|
6037
|
-
select?: boolean | SelectProps;
|
|
6038
|
-
multi?: boolean | MultiSelectProps;
|
|
6039
|
-
tags?: boolean | TagsInputProps;
|
|
6040
|
-
autocomplete?: boolean | AutocompleteProps;
|
|
6041
|
-
segmented?: boolean | Partial<SegmentedControlProps>;
|
|
6042
|
-
loader?: () => Promise<SelectValueLabel[]>;
|
|
6043
|
-
}
|
|
6044
|
-
//#endregion
|
|
6045
|
-
//#region src/core/components/form/Control.d.ts
|
|
6046
|
-
interface ControlProps extends GenericControlProps {
|
|
6047
|
-
text?: TextInputProps;
|
|
6048
|
-
area?: boolean | TextareaProps;
|
|
6049
|
-
select?: boolean | Partial<ControlSelectProps>;
|
|
6050
|
-
password?: boolean | PasswordInputProps;
|
|
6051
|
-
switch?: boolean | SwitchProps;
|
|
6052
|
-
number?: boolean | Partial<ControlNumberProps>;
|
|
6053
|
-
file?: boolean | FileInputProps;
|
|
6054
|
-
color?: boolean | ColorInputProps;
|
|
6055
|
-
date?: boolean | DateInputProps;
|
|
6056
|
-
datetime?: boolean | DateTimePickerProps;
|
|
6057
|
-
time?: boolean | TimeInputProps;
|
|
6058
|
-
query?: any;
|
|
6059
|
-
custom?: ComponentType<CustomControlProps>;
|
|
6060
|
-
}
|
|
6061
|
-
type CustomControlProps = {
|
|
6062
|
-
defaultValue: any;
|
|
6063
|
-
onChange: (value: any) => void;
|
|
6064
|
-
};
|
|
6065
|
-
//#endregion
|
|
6066
|
-
//#region src/core/components/buttons/ActionButton.d.ts
|
|
6067
|
-
interface ActionMenuItem {
|
|
6068
|
-
/**
|
|
6069
|
-
* Menu item type
|
|
6070
|
-
*/
|
|
6071
|
-
type?: "item" | "divider" | "label";
|
|
6072
|
-
/**
|
|
6073
|
-
* Label text for the menu item
|
|
6074
|
-
*/
|
|
6075
|
-
label?: string | ReactNode;
|
|
6076
|
-
/**
|
|
6077
|
-
* Icon element to display before the label
|
|
6078
|
-
*/
|
|
6079
|
-
icon?: ReactNode;
|
|
6080
|
-
/**
|
|
6081
|
-
* Click handler for menu items
|
|
6082
|
-
*/
|
|
6083
|
-
onClick?: () => void;
|
|
6084
|
-
/**
|
|
6085
|
-
* Href for navigation menu items
|
|
6086
|
-
*/
|
|
6087
|
-
href?: string;
|
|
6088
|
-
/**
|
|
6089
|
-
* Color for the menu item (e.g., "red" for danger actions)
|
|
6090
|
-
*/
|
|
6091
|
-
color?: string;
|
|
6092
|
-
/**
|
|
6093
|
-
* Nested submenu items
|
|
6094
|
-
*/
|
|
6095
|
-
children?: ActionMenuItem[];
|
|
6096
|
-
/**
|
|
6097
|
-
* Whether the menu item is active
|
|
6098
|
-
*/
|
|
6099
|
-
active?: boolean;
|
|
6100
|
-
}
|
|
6101
|
-
interface ActionMenuConfig {
|
|
6102
|
-
/**
|
|
6103
|
-
* Array of menu items to display
|
|
6104
|
-
*/
|
|
6105
|
-
items: ActionMenuItem[];
|
|
6106
|
-
/**
|
|
6107
|
-
* Menu position relative to the button
|
|
6108
|
-
*/
|
|
6109
|
-
position?: "bottom" | "bottom-start" | "bottom-end" | "top" | "top-start" | "top-end" | "left" | "right";
|
|
6110
|
-
/**
|
|
6111
|
-
* Menu width
|
|
6112
|
-
*/
|
|
6113
|
-
width?: number | string;
|
|
6114
|
-
/**
|
|
6115
|
-
* Menu shadow
|
|
6116
|
-
*/
|
|
6117
|
-
shadow?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
6118
|
-
on?: "hover" | "click";
|
|
6119
|
-
targetProps?: MenuTargetProps;
|
|
6120
|
-
menuProps?: MenuProps;
|
|
6121
|
-
}
|
|
6122
|
-
interface ActionCommonProps extends ButtonProps {
|
|
6123
|
-
children?: ReactNode;
|
|
6124
|
-
textVisibleFrom?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
6125
|
-
/**
|
|
6126
|
-
* Tooltip to display on hover. Can be a string for simple tooltips
|
|
6127
|
-
* or a TooltipProps object for advanced configuration.
|
|
6128
|
-
*/
|
|
6129
|
-
tooltip?: string | TooltipProps;
|
|
6130
|
-
/**
|
|
6131
|
-
* Menu configuration. When provided, the action will display a dropdown menu.
|
|
6132
|
-
*/
|
|
6133
|
-
menu?: ActionMenuConfig;
|
|
6134
|
-
/**
|
|
6135
|
-
* If set, a confirmation dialog will be shown before performing the action.
|
|
6136
|
-
* If `true`, a default title and message will be used.
|
|
6137
|
-
* If a string, it will be used as the message with a default title.
|
|
6138
|
-
* If an object, it can contain `title` and `message` properties to customize the dialog.
|
|
6139
|
-
*/
|
|
6140
|
-
confirm?: boolean | string | {
|
|
6141
|
-
title?: string;
|
|
6142
|
-
message: string;
|
|
6143
|
-
};
|
|
6144
|
-
/**
|
|
6145
|
-
* Icon to display on the left side of the button.
|
|
6146
|
-
* If no children are provided, the button will be styled as an icon-only button.
|
|
6147
|
-
*/
|
|
6148
|
-
icon?: ReactNode | ComponentType;
|
|
6149
|
-
/**
|
|
6150
|
-
* Additional props to pass to the ThemeIcon wrapping the icon.
|
|
6151
|
-
*/
|
|
6152
|
-
themeIconProps?: ThemeIconProps;
|
|
6153
|
-
}
|
|
6154
|
-
type ActionProps = ActionCommonProps & (ActionNavigationButtonProps | ActionClickButtonProps | ActionSubmitButtonProps | ActionHookButtonProps | {});
|
|
6155
|
-
interface ActionSubmitButtonProps extends ButtonProps {
|
|
6156
|
-
form: FormModel<any>;
|
|
6157
|
-
type?: "submit" | "reset";
|
|
6158
|
-
}
|
|
6159
|
-
interface ActionHookButtonProps extends ButtonProps {
|
|
6160
|
-
action: UseActionReturn<any[], any>;
|
|
6161
|
-
}
|
|
6162
|
-
interface ActionClickButtonProps extends ButtonProps {
|
|
6163
|
-
onClick: (e: any) => any;
|
|
6164
|
-
}
|
|
6165
|
-
interface ActionNavigationButtonProps extends ButtonProps {
|
|
6166
|
-
href: string;
|
|
6167
|
-
active?: Partial<UseActiveOptions> | false;
|
|
6168
|
-
routerGoOptions?: RouterGoOptions;
|
|
6169
|
-
classNameActive?: string;
|
|
6170
|
-
variantActive?: ButtonProps["variant"];
|
|
6171
|
-
target?: string;
|
|
6172
|
-
anchorProps?: AnchorProps;
|
|
6173
|
-
}
|
|
6174
|
-
//#endregion
|
|
6175
|
-
//#region src/core/components/layout/AdminShell.d.ts
|
|
6176
|
-
declare module "alepha" {
|
|
6177
|
-
interface State {
|
|
6178
|
-
/**
|
|
6179
|
-
* Whether the sidebar is opened or closed.
|
|
6180
|
-
*/
|
|
6181
|
-
"alepha.ui.sidebar.opened"?: boolean;
|
|
6182
|
-
/**
|
|
6183
|
-
* Whether the sidebar is collapsed (narrow) or expanded (wide).
|
|
6184
|
-
*/
|
|
6185
|
-
"alepha.ui.sidebar.collapsed"?: boolean;
|
|
6186
|
-
}
|
|
6187
|
-
}
|
|
6188
|
-
//#endregion
|
|
6189
|
-
//#region src/core/index.d.ts
|
|
6190
|
-
declare module "typebox" {
|
|
6191
|
-
interface TSchemaOptions {
|
|
6192
|
-
$control?: Omit<ControlProps, "input">;
|
|
6193
|
-
}
|
|
6194
|
-
}
|
|
6195
|
-
declare module "@alepha/react" {
|
|
6196
|
-
interface PageDescriptorOptions {
|
|
6197
|
-
/**
|
|
6198
|
-
* Human-readable title for the page.
|
|
6199
|
-
* - for Sidebar navigation
|
|
6200
|
-
* - for Omnibar navigation
|
|
6201
|
-
* (soon)
|
|
6202
|
-
* - for Breadcrumbs
|
|
6203
|
-
* - for document title (with AlephaReactHead)
|
|
6204
|
-
*/
|
|
6205
|
-
label?: string;
|
|
6206
|
-
/**
|
|
6207
|
-
* Optional description of the page.
|
|
6208
|
-
*/
|
|
6209
|
-
description?: string;
|
|
6210
|
-
/**
|
|
6211
|
-
* Optional icon for the page.
|
|
6212
|
-
*/
|
|
6213
|
-
icon?: ReactNode;
|
|
6214
|
-
}
|
|
6215
|
-
}
|
|
6216
|
-
/**
|
|
6217
|
-
* Mantine
|
|
6218
|
-
*
|
|
6219
|
-
* @module alepha.ui
|
|
6220
|
-
*/
|
|
6221
|
-
//#endregion
|
|
6222
5805
|
//#region src/auth/components/buttons/UserButton.d.ts
|
|
6223
5806
|
interface UserButtonProps extends Omit<ActionProps, "menu" | "icon" | "onClick"> {
|
|
6224
5807
|
/**
|
|
@@ -6268,7 +5851,7 @@ declare const ResetPassword: (props: ResetPasswordProps) => react_jsx_runtime0.J
|
|
|
6268
5851
|
*
|
|
6269
5852
|
* @module alepha.ui.auth
|
|
6270
5853
|
*/
|
|
6271
|
-
declare const AlephaUIAuth:
|
|
5854
|
+
declare const AlephaUIAuth: alepha1246.Service<alepha1246.Module>;
|
|
6272
5855
|
//#endregion
|
|
6273
5856
|
export { AlephaUIAuth, AuthRouter, Login, Register, ResetPassword, UserButton, type UserButtonProps };
|
|
6274
5857
|
//# sourceMappingURL=index.d.ts.map
|