alepha 0.12.1 → 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/api-notifications/index.d.ts +111 -111
- package/dist/api-users/index.d.ts +1240 -1240
- package/dist/api-verifications/index.d.ts +94 -94
- package/dist/cli/{dist-Sz2EXvQX.cjs → dist-Dl9Vl7Ur.js} +17 -13
- package/dist/cli/{dist-BBPjuQ56.js.map → dist-Dl9Vl7Ur.js.map} +1 -1
- package/dist/cli/index.d.ts +3 -11
- package/dist/cli/index.js +106 -74
- package/dist/cli/index.js.map +1 -1
- package/dist/email/index.js +71 -73
- package/dist/email/index.js.map +1 -1
- package/dist/orm/index.d.ts +1 -1
- package/dist/orm/index.js.map +1 -1
- package/dist/queue/index.d.ts +4 -4
- package/dist/redis/index.d.ts +10 -10
- package/dist/retry/index.d.ts +1 -1
- package/dist/retry/index.js +2 -2
- package/dist/retry/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +6 -6
- package/dist/server/index.js +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server-auth/index.d.ts +193 -193
- package/dist/server-health/index.d.ts +17 -17
- package/dist/server-links/index.d.ts +34 -34
- package/dist/server-metrics/index.js +170 -174
- package/dist/server-metrics/index.js.map +1 -1
- package/dist/server-security/index.d.ts +9 -9
- package/dist/vite/index.js +4 -5
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.d.ts +7 -7
- package/package.json +52 -103
- package/src/cli/apps/AlephaPackageBuilderCli.ts +7 -2
- package/src/cli/assets/appRouterTs.ts +9 -0
- package/src/cli/assets/indexHtml.ts +2 -1
- package/src/cli/assets/mainBrowserTs.ts +10 -0
- package/src/cli/commands/CoreCommands.ts +6 -5
- package/src/cli/commands/DrizzleCommands.ts +65 -57
- package/src/cli/commands/VerifyCommands.ts +1 -1
- package/src/cli/services/ProjectUtils.ts +44 -38
- package/src/orm/providers/DrizzleKitProvider.ts +1 -1
- package/src/retry/descriptors/$retry.ts +5 -3
- package/src/server/providers/NodeHttpServerProvider.ts +1 -1
- package/src/vite/helpers/boot.ts +3 -3
- package/dist/api-files/index.cjs +0 -1293
- package/dist/api-files/index.cjs.map +0 -1
- package/dist/api-files/index.d.cts +0 -829
- package/dist/api-jobs/index.cjs +0 -274
- package/dist/api-jobs/index.cjs.map +0 -1
- package/dist/api-jobs/index.d.cts +0 -654
- package/dist/api-notifications/index.cjs +0 -380
- package/dist/api-notifications/index.cjs.map +0 -1
- package/dist/api-notifications/index.d.cts +0 -289
- package/dist/api-parameters/index.cjs +0 -66
- package/dist/api-parameters/index.cjs.map +0 -1
- package/dist/api-parameters/index.d.cts +0 -84
- package/dist/api-users/index.cjs +0 -6009
- package/dist/api-users/index.cjs.map +0 -1
- package/dist/api-users/index.d.cts +0 -4740
- package/dist/api-verifications/index.cjs +0 -407
- package/dist/api-verifications/index.cjs.map +0 -1
- package/dist/api-verifications/index.d.cts +0 -207
- package/dist/batch/index.cjs +0 -408
- package/dist/batch/index.cjs.map +0 -1
- package/dist/batch/index.d.cts +0 -330
- package/dist/bin/index.cjs +0 -17
- package/dist/bin/index.cjs.map +0 -1
- package/dist/bin/index.d.cts +0 -1
- package/dist/bucket/index.cjs +0 -303
- package/dist/bucket/index.cjs.map +0 -1
- package/dist/bucket/index.d.cts +0 -355
- package/dist/cache/index.cjs +0 -241
- package/dist/cache/index.cjs.map +0 -1
- package/dist/cache/index.d.cts +0 -202
- package/dist/cache-redis/index.cjs +0 -84
- package/dist/cache-redis/index.cjs.map +0 -1
- package/dist/cache-redis/index.d.cts +0 -40
- package/dist/cli/chunk-DSlc6foC.cjs +0 -43
- package/dist/cli/dist-BBPjuQ56.js +0 -2778
- package/dist/cli/dist-Sz2EXvQX.cjs.map +0 -1
- package/dist/cli/index.cjs +0 -1241
- package/dist/cli/index.cjs.map +0 -1
- package/dist/cli/index.d.cts +0 -422
- package/dist/command/index.cjs +0 -693
- package/dist/command/index.cjs.map +0 -1
- package/dist/command/index.d.cts +0 -340
- package/dist/core/index.cjs +0 -2264
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.d.cts +0 -1927
- package/dist/datetime/index.cjs +0 -318
- package/dist/datetime/index.cjs.map +0 -1
- package/dist/datetime/index.d.cts +0 -145
- package/dist/email/index.cjs +0 -10874
- package/dist/email/index.cjs.map +0 -1
- package/dist/email/index.d.cts +0 -186
- package/dist/fake/index.cjs +0 -34641
- package/dist/fake/index.cjs.map +0 -1
- package/dist/fake/index.d.cts +0 -74
- package/dist/file/index.cjs +0 -1212
- package/dist/file/index.cjs.map +0 -1
- package/dist/file/index.d.cts +0 -698
- package/dist/lock/index.cjs +0 -226
- package/dist/lock/index.cjs.map +0 -1
- package/dist/lock/index.d.cts +0 -361
- package/dist/lock-redis/index.cjs +0 -113
- package/dist/lock-redis/index.cjs.map +0 -1
- package/dist/lock-redis/index.d.cts +0 -24
- package/dist/logger/index.cjs +0 -521
- package/dist/logger/index.cjs.map +0 -1
- package/dist/logger/index.d.cts +0 -281
- package/dist/orm/index.cjs +0 -2986
- package/dist/orm/index.cjs.map +0 -1
- package/dist/orm/index.d.cts +0 -2213
- package/dist/queue/index.cjs +0 -1044
- package/dist/queue/index.cjs.map +0 -1
- package/dist/queue/index.d.cts +0 -1265
- package/dist/queue-redis/index.cjs +0 -873
- package/dist/queue-redis/index.cjs.map +0 -1
- package/dist/queue-redis/index.d.cts +0 -82
- package/dist/redis/index.cjs +0 -153
- package/dist/redis/index.cjs.map +0 -1
- package/dist/redis/index.d.cts +0 -82
- package/dist/retry/index.cjs +0 -146
- package/dist/retry/index.cjs.map +0 -1
- package/dist/retry/index.d.cts +0 -172
- package/dist/router/index.cjs +0 -111
- package/dist/router/index.cjs.map +0 -1
- package/dist/router/index.d.cts +0 -46
- package/dist/scheduler/index.cjs +0 -576
- package/dist/scheduler/index.cjs.map +0 -1
- package/dist/scheduler/index.d.cts +0 -145
- package/dist/security/index.cjs +0 -2402
- package/dist/security/index.cjs.map +0 -1
- package/dist/security/index.d.cts +0 -598
- package/dist/server/index.cjs +0 -1680
- package/dist/server/index.cjs.map +0 -1
- package/dist/server/index.d.cts +0 -810
- package/dist/server-auth/index.cjs +0 -3146
- package/dist/server-auth/index.cjs.map +0 -1
- package/dist/server-auth/index.d.cts +0 -1164
- package/dist/server-cache/index.cjs +0 -252
- package/dist/server-cache/index.cjs.map +0 -1
- package/dist/server-cache/index.d.cts +0 -164
- package/dist/server-compress/index.cjs +0 -141
- package/dist/server-compress/index.cjs.map +0 -1
- package/dist/server-compress/index.d.cts +0 -38
- package/dist/server-cookies/index.cjs +0 -234
- package/dist/server-cookies/index.cjs.map +0 -1
- package/dist/server-cookies/index.d.cts +0 -144
- package/dist/server-cors/index.cjs +0 -201
- package/dist/server-cors/index.cjs.map +0 -1
- package/dist/server-cors/index.d.cts +0 -140
- package/dist/server-health/index.cjs +0 -62
- package/dist/server-health/index.cjs.map +0 -1
- package/dist/server-health/index.d.cts +0 -58
- package/dist/server-helmet/index.cjs +0 -131
- package/dist/server-helmet/index.cjs.map +0 -1
- package/dist/server-helmet/index.d.cts +0 -97
- package/dist/server-links/index.cjs +0 -992
- package/dist/server-links/index.cjs.map +0 -1
- package/dist/server-links/index.d.cts +0 -513
- package/dist/server-metrics/index.cjs +0 -4535
- package/dist/server-metrics/index.cjs.map +0 -1
- package/dist/server-metrics/index.d.cts +0 -35
- package/dist/server-multipart/index.cjs +0 -237
- package/dist/server-multipart/index.cjs.map +0 -1
- package/dist/server-multipart/index.d.cts +0 -50
- package/dist/server-proxy/index.cjs +0 -186
- package/dist/server-proxy/index.cjs.map +0 -1
- package/dist/server-proxy/index.d.cts +0 -234
- package/dist/server-rate-limit/index.cjs +0 -241
- package/dist/server-rate-limit/index.cjs.map +0 -1
- package/dist/server-rate-limit/index.d.cts +0 -183
- package/dist/server-security/index.cjs +0 -316
- package/dist/server-security/index.cjs.map +0 -1
- package/dist/server-security/index.d.cts +0 -173
- package/dist/server-static/index.cjs +0 -170
- package/dist/server-static/index.cjs.map +0 -1
- package/dist/server-static/index.d.cts +0 -121
- package/dist/server-swagger/index.cjs +0 -1021
- package/dist/server-swagger/index.cjs.map +0 -1
- package/dist/server-swagger/index.d.cts +0 -382
- package/dist/sms/index.cjs +0 -221
- package/dist/sms/index.cjs.map +0 -1
- package/dist/sms/index.d.cts +0 -130
- package/dist/thread/index.cjs +0 -350
- package/dist/thread/index.cjs.map +0 -1
- package/dist/thread/index.d.cts +0 -260
- package/dist/topic/index.cjs +0 -282
- package/dist/topic/index.cjs.map +0 -1
- package/dist/topic/index.d.cts +0 -523
- package/dist/topic-redis/index.cjs +0 -71
- package/dist/topic-redis/index.cjs.map +0 -1
- package/dist/topic-redis/index.d.cts +0 -42
- package/dist/vite/index.cjs +0 -1077
- package/dist/vite/index.cjs.map +0 -1
- package/dist/vite/index.d.cts +0 -542
- package/dist/websocket/index.cjs +0 -1117
- package/dist/websocket/index.cjs.map +0 -1
- package/dist/websocket/index.d.cts +0 -861
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha62 from "alepha";
|
|
2
2
|
import { Static } from "alepha";
|
|
3
3
|
import * as alepha_server0 from "alepha/server";
|
|
4
4
|
import { DateTimeProvider } from "alepha/datetime";
|
|
@@ -6,35 +6,35 @@ import * as alepha_logger0 from "alepha/logger";
|
|
|
6
6
|
import * as alepha_orm56 from "alepha/orm";
|
|
7
7
|
|
|
8
8
|
//#region src/api-verifications/entities/verifications.d.ts
|
|
9
|
-
declare const verifications: alepha_orm56.EntityDescriptor<
|
|
10
|
-
id: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
11
|
-
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
12
|
-
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
13
|
-
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
14
|
-
type:
|
|
15
|
-
target:
|
|
16
|
-
code:
|
|
17
|
-
verifiedAt:
|
|
18
|
-
attempts: alepha_orm56.PgAttr<
|
|
9
|
+
declare const verifications: alepha_orm56.EntityDescriptor<alepha62.TObject<{
|
|
10
|
+
id: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_PRIMARY_KEY>, typeof alepha_orm56.PG_DEFAULT>;
|
|
11
|
+
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_CREATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
12
|
+
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_UPDATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
13
|
+
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TInteger, typeof alepha_orm56.PG_VERSION>, typeof alepha_orm56.PG_DEFAULT>;
|
|
14
|
+
type: alepha62.TUnsafe<"link" | "code">;
|
|
15
|
+
target: alepha62.TString;
|
|
16
|
+
code: alepha62.TString;
|
|
17
|
+
verifiedAt: alepha62.TOptional<alepha62.TString>;
|
|
18
|
+
attempts: alepha_orm56.PgAttr<alepha62.TInteger, typeof alepha_orm56.PG_DEFAULT>;
|
|
19
19
|
}>>;
|
|
20
20
|
type VerificationEntity = Static<typeof verifications.schema>;
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/api-verifications/schemas/verificationSettingsSchema.d.ts
|
|
23
|
-
declare const verificationSettingsSchema:
|
|
24
|
-
code:
|
|
25
|
-
maxAttempts:
|
|
26
|
-
codeLength:
|
|
27
|
-
codeExpiration:
|
|
28
|
-
verificationCooldown:
|
|
29
|
-
limitPerDay:
|
|
23
|
+
declare const verificationSettingsSchema: alepha62.TObject<{
|
|
24
|
+
code: alepha62.TObject<{
|
|
25
|
+
maxAttempts: alepha62.TInteger;
|
|
26
|
+
codeLength: alepha62.TInteger;
|
|
27
|
+
codeExpiration: alepha62.TInteger;
|
|
28
|
+
verificationCooldown: alepha62.TInteger;
|
|
29
|
+
limitPerDay: alepha62.TInteger;
|
|
30
30
|
}>;
|
|
31
|
-
link:
|
|
32
|
-
maxAttempts:
|
|
33
|
-
codeExpiration:
|
|
34
|
-
verificationCooldown:
|
|
35
|
-
limitPerDay:
|
|
31
|
+
link: alepha62.TObject<{
|
|
32
|
+
maxAttempts: alepha62.TInteger;
|
|
33
|
+
codeExpiration: alepha62.TInteger;
|
|
34
|
+
verificationCooldown: alepha62.TInteger;
|
|
35
|
+
limitPerDay: alepha62.TInteger;
|
|
36
36
|
}>;
|
|
37
|
-
purgeDays:
|
|
37
|
+
purgeDays: alepha62.TInteger;
|
|
38
38
|
}>;
|
|
39
39
|
type VerificationSettings = Static<typeof verificationSettingsSchema>;
|
|
40
40
|
//#endregion
|
|
@@ -42,21 +42,21 @@ type VerificationSettings = Static<typeof verificationSettingsSchema>;
|
|
|
42
42
|
/**
|
|
43
43
|
* Verification settings configuration atom
|
|
44
44
|
*/
|
|
45
|
-
declare const verificationOptions:
|
|
46
|
-
code:
|
|
47
|
-
maxAttempts:
|
|
48
|
-
codeLength:
|
|
49
|
-
codeExpiration:
|
|
50
|
-
verificationCooldown:
|
|
51
|
-
limitPerDay:
|
|
45
|
+
declare const verificationOptions: alepha62.Atom<alepha62.TObject<{
|
|
46
|
+
code: alepha62.TObject<{
|
|
47
|
+
maxAttempts: alepha62.TInteger;
|
|
48
|
+
codeLength: alepha62.TInteger;
|
|
49
|
+
codeExpiration: alepha62.TInteger;
|
|
50
|
+
verificationCooldown: alepha62.TInteger;
|
|
51
|
+
limitPerDay: alepha62.TInteger;
|
|
52
52
|
}>;
|
|
53
|
-
link:
|
|
54
|
-
maxAttempts:
|
|
55
|
-
codeExpiration:
|
|
56
|
-
verificationCooldown:
|
|
57
|
-
limitPerDay:
|
|
53
|
+
link: alepha62.TObject<{
|
|
54
|
+
maxAttempts: alepha62.TInteger;
|
|
55
|
+
codeExpiration: alepha62.TInteger;
|
|
56
|
+
verificationCooldown: alepha62.TInteger;
|
|
57
|
+
limitPerDay: alepha62.TInteger;
|
|
58
58
|
}>;
|
|
59
|
-
purgeDays:
|
|
59
|
+
purgeDays: alepha62.TInteger;
|
|
60
60
|
}>, "alepha.api.verifications.options">;
|
|
61
61
|
type VerificationOptions = Static<typeof verificationOptions.schema>;
|
|
62
62
|
declare module "alepha" {
|
|
@@ -85,23 +85,23 @@ declare class VerificationParameters {
|
|
|
85
85
|
}
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region src/api-verifications/schemas/requestVerificationCodeResponseSchema.d.ts
|
|
88
|
-
declare const requestVerificationCodeResponseSchema:
|
|
89
|
-
token:
|
|
90
|
-
codeExpiration:
|
|
91
|
-
verificationCooldown:
|
|
92
|
-
maxVerificationAttempts:
|
|
88
|
+
declare const requestVerificationCodeResponseSchema: alepha62.TObject<{
|
|
89
|
+
token: alepha62.TString;
|
|
90
|
+
codeExpiration: alepha62.TInteger;
|
|
91
|
+
verificationCooldown: alepha62.TInteger;
|
|
92
|
+
maxVerificationAttempts: alepha62.TInteger;
|
|
93
93
|
}>;
|
|
94
94
|
type RequestVerificationResponse = Static<typeof requestVerificationCodeResponseSchema>;
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region src/api-verifications/schemas/validateVerificationCodeResponseSchema.d.ts
|
|
97
|
-
declare const validateVerificationCodeResponseSchema:
|
|
98
|
-
ok:
|
|
99
|
-
alreadyVerified:
|
|
97
|
+
declare const validateVerificationCodeResponseSchema: alepha62.TObject<{
|
|
98
|
+
ok: alepha62.TBoolean;
|
|
99
|
+
alreadyVerified: alepha62.TOptional<alepha62.TBoolean>;
|
|
100
100
|
}>;
|
|
101
101
|
type ValidateVerificationCodeResponse = Static<typeof validateVerificationCodeResponseSchema>;
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/api-verifications/schemas/verificationTypeEnumSchema.d.ts
|
|
104
|
-
declare const verificationTypeEnumSchema:
|
|
104
|
+
declare const verificationTypeEnumSchema: alepha62.TUnsafe<"link" | "code">;
|
|
105
105
|
type VerificationTypeEnum = Static<typeof verificationTypeEnumSchema>;
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/api-verifications/services/VerificationService.d.ts
|
|
@@ -109,38 +109,38 @@ declare class VerificationService {
|
|
|
109
109
|
protected readonly log: alepha_logger0.Logger;
|
|
110
110
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
111
111
|
protected readonly verificationParameters: VerificationParameters;
|
|
112
|
-
protected readonly verificationRepository: alepha_orm56.Repository<
|
|
113
|
-
id: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
114
|
-
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
115
|
-
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
116
|
-
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
117
|
-
type:
|
|
118
|
-
target:
|
|
119
|
-
code:
|
|
120
|
-
verifiedAt:
|
|
121
|
-
attempts: alepha_orm56.PgAttr<
|
|
112
|
+
protected readonly verificationRepository: alepha_orm56.Repository<alepha62.TObject<{
|
|
113
|
+
id: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_PRIMARY_KEY>, typeof alepha_orm56.PG_DEFAULT>;
|
|
114
|
+
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_CREATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
115
|
+
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_UPDATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
116
|
+
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TInteger, typeof alepha_orm56.PG_VERSION>, typeof alepha_orm56.PG_DEFAULT>;
|
|
117
|
+
type: alepha62.TUnsafe<"link" | "code">;
|
|
118
|
+
target: alepha62.TString;
|
|
119
|
+
code: alepha62.TString;
|
|
120
|
+
verifiedAt: alepha62.TOptional<alepha62.TString>;
|
|
121
|
+
attempts: alepha_orm56.PgAttr<alepha62.TInteger, typeof alepha_orm56.PG_DEFAULT>;
|
|
122
122
|
}>>;
|
|
123
123
|
findByEntry(entry: VerificationEntry): Promise<VerificationEntity>;
|
|
124
|
-
findRecentsByEntry(entry: VerificationEntry): Promise<alepha_orm56.PgStatic<
|
|
125
|
-
id: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
126
|
-
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
127
|
-
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
128
|
-
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
129
|
-
type:
|
|
130
|
-
target:
|
|
131
|
-
code:
|
|
132
|
-
verifiedAt:
|
|
133
|
-
attempts: alepha_orm56.PgAttr<
|
|
134
|
-
}>, alepha_orm56.PgRelationMap<
|
|
135
|
-
id: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
136
|
-
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
137
|
-
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
138
|
-
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<
|
|
139
|
-
type:
|
|
140
|
-
target:
|
|
141
|
-
code:
|
|
142
|
-
verifiedAt:
|
|
143
|
-
attempts: alepha_orm56.PgAttr<
|
|
124
|
+
findRecentsByEntry(entry: VerificationEntry): Promise<alepha_orm56.PgStatic<alepha62.TObject<{
|
|
125
|
+
id: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_PRIMARY_KEY>, typeof alepha_orm56.PG_DEFAULT>;
|
|
126
|
+
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_CREATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
127
|
+
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_UPDATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
128
|
+
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TInteger, typeof alepha_orm56.PG_VERSION>, typeof alepha_orm56.PG_DEFAULT>;
|
|
129
|
+
type: alepha62.TUnsafe<"link" | "code">;
|
|
130
|
+
target: alepha62.TString;
|
|
131
|
+
code: alepha62.TString;
|
|
132
|
+
verifiedAt: alepha62.TOptional<alepha62.TString>;
|
|
133
|
+
attempts: alepha_orm56.PgAttr<alepha62.TInteger, typeof alepha_orm56.PG_DEFAULT>;
|
|
134
|
+
}>, alepha_orm56.PgRelationMap<alepha62.TObject<{
|
|
135
|
+
id: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_PRIMARY_KEY>, typeof alepha_orm56.PG_DEFAULT>;
|
|
136
|
+
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_CREATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
137
|
+
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TString, typeof alepha_orm56.PG_UPDATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
138
|
+
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha62.TInteger, typeof alepha_orm56.PG_VERSION>, typeof alepha_orm56.PG_DEFAULT>;
|
|
139
|
+
type: alepha62.TUnsafe<"link" | "code">;
|
|
140
|
+
target: alepha62.TString;
|
|
141
|
+
code: alepha62.TString;
|
|
142
|
+
verifiedAt: alepha62.TOptional<alepha62.TString>;
|
|
143
|
+
attempts: alepha_orm56.PgAttr<alepha62.TInteger, typeof alepha_orm56.PG_DEFAULT>;
|
|
144
144
|
}>>>[]>;
|
|
145
145
|
/**
|
|
146
146
|
* Creates a verification entry and returns the token.
|
|
@@ -163,30 +163,30 @@ declare class VerificationController {
|
|
|
163
163
|
readonly url = "/verifications";
|
|
164
164
|
readonly group = "verifications";
|
|
165
165
|
readonly requestVerificationCode: alepha_server0.ActionDescriptorFn<{
|
|
166
|
-
params:
|
|
167
|
-
type:
|
|
166
|
+
params: alepha62.TObject<{
|
|
167
|
+
type: alepha62.TUnsafe<"link" | "code">;
|
|
168
168
|
}>;
|
|
169
|
-
body:
|
|
170
|
-
target:
|
|
169
|
+
body: alepha62.TObject<{
|
|
170
|
+
target: alepha62.TString;
|
|
171
171
|
}>;
|
|
172
|
-
response:
|
|
173
|
-
token:
|
|
174
|
-
codeExpiration:
|
|
175
|
-
verificationCooldown:
|
|
176
|
-
maxVerificationAttempts:
|
|
172
|
+
response: alepha62.TObject<{
|
|
173
|
+
token: alepha62.TString;
|
|
174
|
+
codeExpiration: alepha62.TInteger;
|
|
175
|
+
verificationCooldown: alepha62.TInteger;
|
|
176
|
+
maxVerificationAttempts: alepha62.TInteger;
|
|
177
177
|
}>;
|
|
178
178
|
}>;
|
|
179
179
|
readonly validateVerificationCode: alepha_server0.ActionDescriptorFn<{
|
|
180
|
-
params:
|
|
181
|
-
type:
|
|
180
|
+
params: alepha62.TObject<{
|
|
181
|
+
type: alepha62.TUnsafe<"link" | "code">;
|
|
182
182
|
}>;
|
|
183
|
-
body:
|
|
184
|
-
target:
|
|
185
|
-
token:
|
|
183
|
+
body: alepha62.TObject<{
|
|
184
|
+
target: alepha62.TString;
|
|
185
|
+
token: alepha62.TString;
|
|
186
186
|
}>;
|
|
187
|
-
response:
|
|
188
|
-
ok:
|
|
189
|
-
alreadyVerified:
|
|
187
|
+
response: alepha62.TObject<{
|
|
188
|
+
ok: alepha62.TBoolean;
|
|
189
|
+
alreadyVerified: alepha62.TOptional<alepha62.TBoolean>;
|
|
190
190
|
}>;
|
|
191
191
|
}>;
|
|
192
192
|
}
|
|
@@ -201,7 +201,7 @@ declare class VerificationController {
|
|
|
201
201
|
*
|
|
202
202
|
* @module alepha.api.verifications
|
|
203
203
|
*/
|
|
204
|
-
declare const AlephaApiVerification:
|
|
204
|
+
declare const AlephaApiVerification: alepha62.Service<alepha62.Module>;
|
|
205
205
|
//#endregion
|
|
206
206
|
export { AlephaApiVerification, RequestVerificationResponse, ValidateVerificationCodeResponse, VerificationController, VerificationEntry, VerificationService, VerificationTypeEnum, requestVerificationCodeResponseSchema, validateVerificationCodeResponseSchema, verificationTypeEnumSchema };
|
|
207
207
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
require("vite/module-runner");
|
|
1
|
+
import "vite/module-runner";
|
|
3
2
|
|
|
3
|
+
//#region rolldown:runtime
|
|
4
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
4
7
|
//#region ../../node_modules/tinyrainbow/dist/index.js
|
|
5
8
|
var d = {
|
|
6
9
|
reset: [0, 0],
|
|
@@ -2639,31 +2642,31 @@ function manageArtifactAttachment(attachment) {
|
|
|
2639
2642
|
|
|
2640
2643
|
//#endregion
|
|
2641
2644
|
//#region ../../node_modules/expect-type/dist/branding.js
|
|
2642
|
-
var require_branding = /* @__PURE__ */
|
|
2645
|
+
var require_branding = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2643
2646
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2644
|
-
})
|
|
2647
|
+
}));
|
|
2645
2648
|
|
|
2646
2649
|
//#endregion
|
|
2647
2650
|
//#region ../../node_modules/expect-type/dist/messages.js
|
|
2648
|
-
var require_messages = /* @__PURE__ */
|
|
2651
|
+
var require_messages = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2649
2652
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2650
|
-
})
|
|
2653
|
+
}));
|
|
2651
2654
|
|
|
2652
2655
|
//#endregion
|
|
2653
2656
|
//#region ../../node_modules/expect-type/dist/overloads.js
|
|
2654
|
-
var require_overloads = /* @__PURE__ */
|
|
2657
|
+
var require_overloads = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2655
2658
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2656
|
-
})
|
|
2659
|
+
}));
|
|
2657
2660
|
|
|
2658
2661
|
//#endregion
|
|
2659
2662
|
//#region ../../node_modules/expect-type/dist/utils.js
|
|
2660
|
-
var require_utils = /* @__PURE__ */
|
|
2663
|
+
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2661
2664
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2662
|
-
})
|
|
2665
|
+
}));
|
|
2663
2666
|
|
|
2664
2667
|
//#endregion
|
|
2665
2668
|
//#region ../../node_modules/expect-type/dist/index.js
|
|
2666
|
-
var require_dist = /* @__PURE__ */
|
|
2669
|
+
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2667
2670
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
2668
2671
|
if (k2 === void 0) k2 = k;
|
|
2669
2672
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -2760,11 +2763,12 @@ var require_dist = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_module
|
|
|
2760
2763
|
return obj;
|
|
2761
2764
|
};
|
|
2762
2765
|
exports.expectTypeOf = expectTypeOf$1;
|
|
2763
|
-
})
|
|
2766
|
+
}));
|
|
2764
2767
|
|
|
2765
2768
|
//#endregion
|
|
2766
2769
|
//#region ../../node_modules/vitest/dist/index.js
|
|
2767
2770
|
var import_dist = require_dist();
|
|
2768
2771
|
|
|
2769
2772
|
//#endregion
|
|
2770
|
-
|
|
2773
|
+
export { };
|
|
2774
|
+
//# sourceMappingURL=dist-Dl9Vl7Ur.js.map
|