alepha 0.13.4 → 0.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-files/index.browser.js +5 -5
- package/dist/api-files/index.d.ts +191 -191
- package/dist/api-files/index.js +9 -9
- package/dist/api-jobs/index.browser.js +5 -5
- package/dist/api-jobs/index.d.ts +173 -173
- package/dist/api-jobs/index.js +9 -9
- package/dist/api-notifications/index.browser.js +11 -11
- package/dist/api-notifications/index.d.ts +11 -11
- package/dist/api-notifications/index.js +11 -11
- package/dist/api-parameters/index.browser.js +2 -2
- package/dist/api-parameters/index.d.ts +3 -3
- package/dist/api-parameters/index.js +3 -3
- package/dist/api-users/index.browser.js +6 -6
- package/dist/api-users/index.d.ts +832 -832
- package/dist/api-users/index.js +36 -36
- package/dist/api-verifications/index.browser.js +5 -5
- package/dist/api-verifications/index.d.ts +21 -21
- package/dist/api-verifications/index.js +10 -10
- package/dist/batch/index.d.ts +3 -3
- package/dist/batch/index.js +3 -3
- package/dist/bin/index.js +1 -1
- package/dist/bucket/index.d.ts +6 -6
- package/dist/bucket/index.js +7 -7
- package/dist/cache/index.d.ts +4 -4
- package/dist/cache/index.js +5 -5
- package/dist/cache-redis/index.d.ts +2 -2
- package/dist/cache-redis/index.js +2 -2
- package/dist/cli/{dist-lGnqsKpu.js → dist-BlfFtOk2.js} +16 -16
- package/dist/cli/{dist-lGnqsKpu.js.map → dist-BlfFtOk2.js.map} +1 -1
- package/dist/cli/index.d.ts +31 -75
- package/dist/cli/index.js +94 -171
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +8 -8
- package/dist/command/index.js +11 -10
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +35 -35
- package/dist/core/index.d.ts +39 -39
- package/dist/core/index.js +35 -35
- package/dist/core/index.native.js +35 -35
- package/dist/datetime/index.d.ts +3 -3
- package/dist/datetime/index.js +3 -3
- package/dist/email/index.d.ts +11 -11
- package/dist/email/index.js +42 -42
- package/dist/fake/index.d.ts +2 -2
- package/dist/fake/index.js +5 -5
- package/dist/file/index.d.ts +4 -4
- package/dist/file/index.js +4 -4
- package/dist/lock/index.d.ts +5 -5
- package/dist/lock/index.js +5 -5
- package/dist/lock-redis/index.d.ts +2 -2
- package/dist/lock-redis/index.js +2 -2
- package/dist/logger/index.d.ts +11 -11
- package/dist/logger/index.js +12 -12
- package/dist/orm/index.browser.js +12 -12
- package/dist/orm/index.d.ts +52 -52
- package/dist/orm/index.js +32 -32
- package/dist/queue/index.d.ts +7 -7
- package/dist/queue/index.js +6 -6
- package/dist/queue-redis/index.d.ts +2 -2
- package/dist/queue-redis/index.js +2 -2
- package/dist/redis/index.d.ts +3 -3
- package/dist/redis/index.js +3 -3
- package/dist/retry/index.d.ts +5 -5
- package/dist/retry/index.js +5 -5
- package/dist/router/index.d.ts +1 -1
- package/dist/router/index.js +1 -1
- package/dist/scheduler/index.d.ts +10 -10
- package/dist/scheduler/index.js +7 -7
- package/dist/security/index.browser.js +7 -7
- package/dist/security/index.d.ts +43 -43
- package/dist/security/index.js +46 -46
- package/dist/server/index.browser.js +14 -14
- package/dist/server/index.d.ts +26 -26
- package/dist/server/index.js +26 -26
- package/dist/server-auth/index.browser.js +6 -6
- package/dist/server-auth/index.d.ts +163 -163
- package/dist/server-auth/index.js +13 -13
- package/dist/server-cache/index.d.ts +2 -2
- package/dist/server-cache/index.js +2 -2
- package/dist/server-compress/index.d.ts +2 -2
- package/dist/server-compress/index.js +2 -2
- package/dist/server-cookies/index.browser.js +3 -3
- package/dist/server-cookies/index.d.ts +4 -4
- package/dist/server-cookies/index.js +4 -4
- package/dist/server-cors/index.d.ts +3 -3
- package/dist/server-cors/index.js +3 -3
- package/dist/server-health/index.d.ts +3 -3
- package/dist/server-health/index.js +3 -3
- package/dist/server-helmet/index.d.ts +2 -2
- package/dist/server-helmet/index.js +2 -2
- package/dist/server-links/index.browser.js +5 -5
- package/dist/server-links/index.d.ts +40 -40
- package/dist/server-links/index.js +7 -7
- package/dist/server-metrics/index.d.ts +2 -2
- package/dist/server-metrics/index.js +86 -86
- package/dist/server-multipart/index.d.ts +2 -2
- package/dist/server-multipart/index.js +2 -2
- package/dist/server-proxy/index.d.ts +3 -3
- package/dist/server-proxy/index.js +3 -3
- package/dist/server-rate-limit/index.d.ts +3 -3
- package/dist/server-rate-limit/index.js +3 -3
- package/dist/server-security/index.browser.js +1 -1
- package/dist/server-security/index.d.ts +13 -13
- package/dist/server-security/index.js +4 -4
- package/dist/server-static/index.d.ts +3 -3
- package/dist/server-static/index.js +3 -3
- package/dist/server-swagger/index.d.ts +3 -3
- package/dist/server-swagger/index.js +3 -3
- package/dist/sms/index.d.ts +6 -6
- package/dist/sms/index.js +6 -6
- package/dist/thread/index.d.ts +3 -3
- package/dist/thread/index.js +3 -3
- package/dist/topic/index.d.ts +6 -6
- package/dist/topic/index.js +6 -6
- package/dist/topic-redis/index.d.ts +2 -2
- package/dist/topic-redis/index.js +2 -2
- package/dist/vite/index.d.ts +17 -17
- package/dist/vite/index.js +20 -20
- package/dist/websocket/index.browser.js +9 -9
- package/dist/websocket/index.d.ts +10 -10
- package/dist/websocket/index.js +10 -10
- package/package.json +5 -4
- package/src/cli/apps/AlephaCli.ts +1 -2
- package/src/cli/commands/BiomeCommands.ts +4 -6
- package/src/cli/commands/CoreCommands.ts +2 -2
- package/src/cli/commands/DrizzleCommands.ts +76 -78
- package/src/cli/commands/VerifyCommands.ts +3 -5
- package/src/cli/commands/ViteCommands.ts +6 -8
- package/src/cli/index.ts +1 -1
- package/src/cli/services/{ProjectUtils.ts → AlephaCliUtils.ts} +101 -16
- package/src/command/providers/CliProvider.ts +12 -4
- package/src/cli/services/ProcessRunner.ts +0 -89
package/dist/scheduler/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { $lock, AlephaLock } from "alepha/lock";
|
|
|
3
3
|
import { DateTimeProvider } from "alepha/datetime";
|
|
4
4
|
import { $logger } from "alepha/logger";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../../../../node_modules/cron-schedule/dist/utils.js
|
|
7
7
|
function extractDateElements(date) {
|
|
8
8
|
return {
|
|
9
9
|
second: date.getSeconds(),
|
|
@@ -24,7 +24,7 @@ function getDaysBetweenWeekdays(weekday1, weekday2) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region
|
|
27
|
+
//#region ../../../../node_modules/cron-schedule/dist/cron.js
|
|
28
28
|
var Cron = class {
|
|
29
29
|
constructor({ seconds, minutes, hours, days, months, weekdays }) {
|
|
30
30
|
if (!seconds || seconds.size === 0) throw new Error("There must be at least one allowed second.");
|
|
@@ -274,7 +274,7 @@ var Cron = class {
|
|
|
274
274
|
};
|
|
275
275
|
|
|
276
276
|
//#endregion
|
|
277
|
-
//#region
|
|
277
|
+
//#region ../../../../node_modules/cron-schedule/dist/cron-parser.js
|
|
278
278
|
const secondConstraint = {
|
|
279
279
|
min: 0,
|
|
280
280
|
max: 59
|
|
@@ -396,7 +396,7 @@ function parseCronExpression(cronExpression) {
|
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
//#endregion
|
|
399
|
-
//#region src/scheduler/providers/CronProvider.ts
|
|
399
|
+
//#region ../../src/scheduler/providers/CronProvider.ts
|
|
400
400
|
var CronProvider = class {
|
|
401
401
|
dt = $inject(DateTimeProvider);
|
|
402
402
|
alepha = $inject(Alepha);
|
|
@@ -479,7 +479,7 @@ var CronProvider = class {
|
|
|
479
479
|
};
|
|
480
480
|
|
|
481
481
|
//#endregion
|
|
482
|
-
//#region src/scheduler/primitives/$scheduler.ts
|
|
482
|
+
//#region ../../src/scheduler/primitives/$scheduler.ts
|
|
483
483
|
/**
|
|
484
484
|
* Scheduler primitive.
|
|
485
485
|
*/
|
|
@@ -543,7 +543,7 @@ var SchedulerPrimitive = class extends Primitive {
|
|
|
543
543
|
$scheduler[KIND] = SchedulerPrimitive;
|
|
544
544
|
|
|
545
545
|
//#endregion
|
|
546
|
-
//#region src/scheduler/constants/CRON.ts
|
|
546
|
+
//#region ../../src/scheduler/constants/CRON.ts
|
|
547
547
|
const CRON = {
|
|
548
548
|
EVERY_MINUTE: "* * * * *",
|
|
549
549
|
EVERY_5_MINUTES: "*/5 * * * *",
|
|
@@ -554,7 +554,7 @@ const CRON = {
|
|
|
554
554
|
};
|
|
555
555
|
|
|
556
556
|
//#endregion
|
|
557
|
-
//#region src/scheduler/index.ts
|
|
557
|
+
//#region ../../src/scheduler/index.ts
|
|
558
558
|
/**
|
|
559
559
|
* Generic interface for scheduling tasks.
|
|
560
560
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $module, t } from "alepha";
|
|
2
2
|
import { UnauthorizedError } from "alepha/server";
|
|
3
3
|
|
|
4
|
-
//#region src/security/errors/InvalidCredentialsError.ts
|
|
4
|
+
//#region ../../src/security/errors/InvalidCredentialsError.ts
|
|
5
5
|
/**
|
|
6
6
|
* Error thrown when the provided credentials are invalid.
|
|
7
7
|
*
|
|
@@ -16,7 +16,7 @@ var InvalidCredentialsError = class extends UnauthorizedError {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region src/security/errors/InvalidPermissionError.ts
|
|
19
|
+
//#region ../../src/security/errors/InvalidPermissionError.ts
|
|
20
20
|
var InvalidPermissionError = class extends Error {
|
|
21
21
|
constructor(name) {
|
|
22
22
|
super(`Permission '${name}' is invalid`);
|
|
@@ -24,14 +24,14 @@ var InvalidPermissionError = class extends Error {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region src/security/errors/SecurityError.ts
|
|
27
|
+
//#region ../../src/security/errors/SecurityError.ts
|
|
28
28
|
var SecurityError = class extends Error {
|
|
29
29
|
name = "SecurityError";
|
|
30
30
|
status = 403;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region src/security/schemas/permissionSchema.ts
|
|
34
|
+
//#region ../../src/security/schemas/permissionSchema.ts
|
|
35
35
|
const permissionSchema = t.object({
|
|
36
36
|
name: t.text({ description: "Name of the permission." }),
|
|
37
37
|
group: t.optional(t.text({ description: "Group of the permission." })),
|
|
@@ -41,7 +41,7 @@ const permissionSchema = t.object({
|
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region src/security/schemas/roleSchema.ts
|
|
44
|
+
//#region ../../src/security/schemas/roleSchema.ts
|
|
45
45
|
const roleSchema = t.object({
|
|
46
46
|
name: t.text({ description: "Name of the role." }),
|
|
47
47
|
description: t.optional(t.text({ description: "Describe the role." })),
|
|
@@ -54,7 +54,7 @@ const roleSchema = t.object({
|
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
//#endregion
|
|
57
|
-
//#region src/security/schemas/userAccountInfoSchema.ts
|
|
57
|
+
//#region ../../src/security/schemas/userAccountInfoSchema.ts
|
|
58
58
|
const userAccountInfoSchema = t.object({
|
|
59
59
|
id: t.text({ description: "Unique identifier for the user." }),
|
|
60
60
|
name: t.optional(t.text({ description: "Full name of the user." })),
|
|
@@ -70,7 +70,7 @@ const userAccountInfoSchema = t.object({
|
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
//#endregion
|
|
73
|
-
//#region src/security/index.browser.ts
|
|
73
|
+
//#region ../../src/security/index.browser.ts
|
|
74
74
|
const AlephaSecurity = $module({ name: "alepha.security" });
|
|
75
75
|
|
|
76
76
|
//#endregion
|
package/dist/security/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha1 from "alepha";
|
|
2
2
|
import { Alepha, KIND, Primitive, Static } from "alepha";
|
|
3
3
|
import * as alepha_logger0 from "alepha/logger";
|
|
4
4
|
import { DateTimeProvider, Duration, DurationLike } from "alepha/datetime";
|
|
@@ -6,20 +6,20 @@ import { UnauthorizedError } from "alepha/server";
|
|
|
6
6
|
import { CryptoKey, FlattenedJWSInput, JSONWebKeySet, JWSHeaderParameters, JWTHeaderParameters, JWTPayload, JWTVerifyResult, KeyObject } from "jose";
|
|
7
7
|
import { JWTVerifyOptions } from "jose/jwt/verify";
|
|
8
8
|
|
|
9
|
-
//#region src/security/schemas/userAccountInfoSchema.d.ts
|
|
10
|
-
declare const userAccountInfoSchema:
|
|
11
|
-
id:
|
|
12
|
-
name:
|
|
13
|
-
email:
|
|
14
|
-
username:
|
|
15
|
-
picture:
|
|
16
|
-
sessionId:
|
|
17
|
-
organizations:
|
|
18
|
-
roles:
|
|
9
|
+
//#region ../../src/security/schemas/userAccountInfoSchema.d.ts
|
|
10
|
+
declare const userAccountInfoSchema: alepha1.TObject<{
|
|
11
|
+
id: alepha1.TString;
|
|
12
|
+
name: alepha1.TOptional<alepha1.TString>;
|
|
13
|
+
email: alepha1.TOptional<alepha1.TString>;
|
|
14
|
+
username: alepha1.TOptional<alepha1.TString>;
|
|
15
|
+
picture: alepha1.TOptional<alepha1.TString>;
|
|
16
|
+
sessionId: alepha1.TOptional<alepha1.TString>;
|
|
17
|
+
organizations: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
18
|
+
roles: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
19
19
|
}>;
|
|
20
20
|
type UserAccount = Static<typeof userAccountInfoSchema>;
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region src/security/errors/InvalidCredentialsError.d.ts
|
|
22
|
+
//#region ../../src/security/errors/InvalidCredentialsError.d.ts
|
|
23
23
|
/**
|
|
24
24
|
* Error thrown when the provided credentials are invalid.
|
|
25
25
|
*
|
|
@@ -31,18 +31,18 @@ declare class InvalidCredentialsError extends UnauthorizedError {
|
|
|
31
31
|
constructor();
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region src/security/errors/InvalidPermissionError.d.ts
|
|
34
|
+
//#region ../../src/security/errors/InvalidPermissionError.d.ts
|
|
35
35
|
declare class InvalidPermissionError extends Error {
|
|
36
36
|
constructor(name: string);
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region src/security/errors/SecurityError.d.ts
|
|
39
|
+
//#region ../../src/security/errors/SecurityError.d.ts
|
|
40
40
|
declare class SecurityError extends Error {
|
|
41
41
|
name: string;
|
|
42
42
|
readonly status = 403;
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region src/security/interfaces/UserAccountToken.d.ts
|
|
45
|
+
//#region ../../src/security/interfaces/UserAccountToken.d.ts
|
|
46
46
|
/**
|
|
47
47
|
* Add contextual metadata to a user account info.
|
|
48
48
|
* E.g. UserAccountToken is a UserAccountInfo during a request.
|
|
@@ -63,30 +63,30 @@ interface UserAccountToken extends UserAccount {
|
|
|
63
63
|
ownership?: string | boolean;
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
|
-
//#region src/security/schemas/permissionSchema.d.ts
|
|
67
|
-
declare const permissionSchema:
|
|
68
|
-
name:
|
|
69
|
-
group:
|
|
70
|
-
description:
|
|
71
|
-
method:
|
|
72
|
-
path:
|
|
66
|
+
//#region ../../src/security/schemas/permissionSchema.d.ts
|
|
67
|
+
declare const permissionSchema: alepha1.TObject<{
|
|
68
|
+
name: alepha1.TString;
|
|
69
|
+
group: alepha1.TOptional<alepha1.TString>;
|
|
70
|
+
description: alepha1.TOptional<alepha1.TString>;
|
|
71
|
+
method: alepha1.TOptional<alepha1.TString>;
|
|
72
|
+
path: alepha1.TOptional<alepha1.TString>;
|
|
73
73
|
}>;
|
|
74
74
|
type Permission = Static<typeof permissionSchema>;
|
|
75
75
|
//#endregion
|
|
76
|
-
//#region src/security/schemas/roleSchema.d.ts
|
|
77
|
-
declare const roleSchema:
|
|
78
|
-
name:
|
|
79
|
-
description:
|
|
80
|
-
default:
|
|
81
|
-
permissions:
|
|
82
|
-
name:
|
|
83
|
-
ownership:
|
|
84
|
-
exclude:
|
|
76
|
+
//#region ../../src/security/schemas/roleSchema.d.ts
|
|
77
|
+
declare const roleSchema: alepha1.TObject<{
|
|
78
|
+
name: alepha1.TString;
|
|
79
|
+
description: alepha1.TOptional<alepha1.TString>;
|
|
80
|
+
default: alepha1.TOptional<alepha1.TBoolean>;
|
|
81
|
+
permissions: alepha1.TArray<alepha1.TObject<{
|
|
82
|
+
name: alepha1.TString;
|
|
83
|
+
ownership: alepha1.TOptional<alepha1.TBoolean>;
|
|
84
|
+
exclude: alepha1.TOptional<alepha1.TArray<alepha1.TString>>;
|
|
85
85
|
}>>;
|
|
86
86
|
}>;
|
|
87
87
|
type Role = Static<typeof roleSchema>;
|
|
88
88
|
//#endregion
|
|
89
|
-
//#region src/security/providers/JwtProvider.d.ts
|
|
89
|
+
//#region ../../src/security/providers/JwtProvider.d.ts
|
|
90
90
|
/**
|
|
91
91
|
* Provides utilities for working with JSON Web Tokens (JWT).
|
|
92
92
|
*/
|
|
@@ -152,10 +152,10 @@ interface JwtParseResult {
|
|
|
152
152
|
result: JWTVerifyResult<ExtendedJWTPayload>;
|
|
153
153
|
}
|
|
154
154
|
//#endregion
|
|
155
|
-
//#region src/security/providers/SecurityProvider.d.ts
|
|
155
|
+
//#region ../../src/security/providers/SecurityProvider.d.ts
|
|
156
156
|
declare const DEFAULT_APP_SECRET = "05759934015388327323179852515731";
|
|
157
|
-
declare const envSchema:
|
|
158
|
-
APP_SECRET:
|
|
157
|
+
declare const envSchema: alepha1.TObject<{
|
|
158
|
+
APP_SECRET: alepha1.TString;
|
|
159
159
|
}>;
|
|
160
160
|
declare module "alepha" {
|
|
161
161
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -179,7 +179,7 @@ declare class SecurityProvider {
|
|
|
179
179
|
* The realms configured for the security provider.
|
|
180
180
|
*/
|
|
181
181
|
protected readonly realms: Realm[];
|
|
182
|
-
protected start:
|
|
182
|
+
protected start: alepha1.HookPrimitive<"start">;
|
|
183
183
|
/**
|
|
184
184
|
* Adds a role to one or more realms.
|
|
185
185
|
*
|
|
@@ -314,7 +314,7 @@ interface SecurityCheckResult {
|
|
|
314
314
|
ownership: string | boolean | undefined;
|
|
315
315
|
}
|
|
316
316
|
//#endregion
|
|
317
|
-
//#region src/security/primitives/$permission.d.ts
|
|
317
|
+
//#region ../../src/security/primitives/$permission.d.ts
|
|
318
318
|
/**
|
|
319
319
|
* Create a new permission.
|
|
320
320
|
*/
|
|
@@ -348,7 +348,7 @@ declare class PermissionPrimitive extends Primitive<PermissionPrimitiveOptions>
|
|
|
348
348
|
can(user: UserAccount): boolean;
|
|
349
349
|
}
|
|
350
350
|
//#endregion
|
|
351
|
-
//#region src/security/primitives/$realm.d.ts
|
|
351
|
+
//#region ../../src/security/primitives/$realm.d.ts
|
|
352
352
|
/**
|
|
353
353
|
* Create a new realm.
|
|
354
354
|
*/
|
|
@@ -469,7 +469,7 @@ interface AccessTokenResponse {
|
|
|
469
469
|
scope?: string;
|
|
470
470
|
}
|
|
471
471
|
//#endregion
|
|
472
|
-
//#region src/security/primitives/$role.d.ts
|
|
472
|
+
//#region ../../src/security/primitives/$role.d.ts
|
|
473
473
|
/**
|
|
474
474
|
* Create a new role.
|
|
475
475
|
*/
|
|
@@ -505,7 +505,7 @@ declare class RolePrimitive extends Primitive<RolePrimitiveOptions> {
|
|
|
505
505
|
check(permission: string | PermissionPrimitive): SecurityCheckResult;
|
|
506
506
|
}
|
|
507
507
|
//#endregion
|
|
508
|
-
//#region src/security/primitives/$serviceAccount.d.ts
|
|
508
|
+
//#region ../../src/security/primitives/$serviceAccount.d.ts
|
|
509
509
|
/**
|
|
510
510
|
* Allow to get an access token for a service account.
|
|
511
511
|
*
|
|
@@ -564,14 +564,14 @@ interface ServiceAccountStore {
|
|
|
564
564
|
response?: AccessTokenResponse;
|
|
565
565
|
}
|
|
566
566
|
//#endregion
|
|
567
|
-
//#region src/security/providers/CryptoProvider.d.ts
|
|
567
|
+
//#region ../../src/security/providers/CryptoProvider.d.ts
|
|
568
568
|
declare class CryptoProvider {
|
|
569
569
|
hashPassword(password: string): Promise<string>;
|
|
570
570
|
verifyPassword(password: string, stored: string): Promise<boolean>;
|
|
571
571
|
randomUUID(): string;
|
|
572
572
|
}
|
|
573
573
|
//#endregion
|
|
574
|
-
//#region src/security/index.d.ts
|
|
574
|
+
//#region ../../src/security/index.d.ts
|
|
575
575
|
declare module "alepha" {
|
|
576
576
|
interface Hooks {
|
|
577
577
|
"security:user:created": {
|
|
@@ -592,7 +592,7 @@ declare module "alepha" {
|
|
|
592
592
|
* @see {@link $permission}
|
|
593
593
|
* @module alepha.security
|
|
594
594
|
*/
|
|
595
|
-
declare const AlephaSecurity:
|
|
595
|
+
declare const AlephaSecurity: alepha1.Service<alepha1.Module>;
|
|
596
596
|
//#endregion
|
|
597
597
|
export { $permission, $realm, $role, $serviceAccount, AccessTokenResponse, AlephaSecurity, CreateTokenOptions, CryptoProvider, DEFAULT_APP_SECRET, ExtendedJWTPayload, InvalidCredentialsError, InvalidPermissionError, JwtParseResult, JwtProvider, JwtSignOptions, KeyLoader, KeyLoaderHolder, Oauth2ServiceAccountPrimitiveOptions, Permission, PermissionPrimitive, PermissionPrimitiveOptions, Realm, RealmExternal, RealmInternal, RealmPrimitive, RealmPrimitiveOptions, RealmSettings, Role, RolePrimitive, RolePrimitiveOptions, SecurityCheckResult, SecurityError, SecurityProvider, ServiceAccountPrimitive, ServiceAccountPrimitiveOptions, ServiceAccountStore, UserAccount, UserAccountToken, permissionSchema, roleSchema, userAccountInfoSchema };
|
|
598
598
|
//# sourceMappingURL=index.d.ts.map
|