alepha 0.15.3 → 0.15.4
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/audits/index.d.ts +332 -332
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +8 -0
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.js +1 -0
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.d.ts +151 -151
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +3 -0
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +195 -195
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/notifications/index.browser.js +1 -0
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.js +1 -0
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/parameters/index.d.ts +260 -260
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +10 -0
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/users/index.d.ts +10 -10
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +11 -0
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts +128 -128
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/batch/index.d.ts +4 -4
- package/dist/cli/index.d.ts +5 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +19 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/email/index.d.ts +13 -13
- package/dist/email/index.d.ts.map +1 -1
- package/dist/email/index.js +10554 -2
- package/dist/email/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +6 -1
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js +9 -1
- package/dist/lock/core/index.js.map +1 -1
- package/dist/react/auth/index.browser.js +2 -1
- package/dist/react/auth/index.browser.js.map +1 -1
- package/dist/react/auth/index.js +2 -1
- package/dist/react/auth/index.js.map +1 -1
- package/dist/react/core/index.d.ts +3 -3
- package/dist/react/router/index.d.ts +10 -0
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +16 -6
- package/dist/react/router/index.js.map +1 -1
- package/dist/redis/index.d.ts +19 -19
- package/dist/scheduler/index.d.ts +13 -1
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +42 -4
- package/dist/scheduler/index.js.map +1 -1
- package/dist/server/compress/index.d.ts.map +1 -1
- package/dist/server/compress/index.js +1 -0
- package/dist/server/compress/index.js.map +1 -1
- package/dist/server/core/index.d.ts +9 -9
- package/dist/server/links/index.js +1 -1
- package/dist/server/links/index.js.map +1 -1
- package/dist/vite/index.d.ts +2 -1
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +28 -2
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.d.ts +34 -34
- package/dist/websocket/index.d.ts.map +1 -1
- package/package.json +6 -3
- package/src/api/audits/controllers/AdminAuditController.ts +8 -0
- package/src/api/files/controllers/AdminFileStatsController.ts +1 -0
- package/src/api/jobs/controllers/AdminJobController.ts +3 -0
- package/src/api/notifications/controllers/AdminNotificationController.ts +1 -0
- package/src/api/parameters/controllers/AdminConfigController.ts +10 -0
- package/src/api/users/controllers/AdminIdentityController.ts +3 -0
- package/src/api/users/controllers/AdminSessionController.ts +3 -0
- package/src/api/users/controllers/AdminUserController.ts +5 -0
- package/src/cli/commands/build.ts +1 -0
- package/src/cli/providers/ViteDevServerProvider.ts +31 -0
- package/src/email/index.workerd.ts +36 -0
- package/src/email/providers/WorkermailerEmailProvider.ts +221 -0
- package/src/lock/core/primitives/$lock.ts +13 -1
- package/src/react/auth/services/ReactAuth.ts +3 -1
- package/src/react/router/atoms/ssrManifestAtom.ts +7 -0
- package/src/react/router/providers/ReactServerProvider.ts +14 -4
- package/src/react/router/providers/SSRManifestProvider.ts +7 -0
- package/src/scheduler/index.workerd.ts +43 -0
- package/src/scheduler/providers/CronProvider.ts +53 -6
- package/src/scheduler/providers/WorkerdCronProvider.ts +102 -0
- package/src/server/compress/providers/ServerCompressProvider.ts +6 -0
- package/src/server/links/providers/ServerLinksProvider.spec.ts +332 -0
- package/src/server/links/providers/ServerLinksProvider.ts +1 -1
- package/src/vite/tasks/generateCloudflare.ts +38 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha485 from "alepha";
|
|
2
2
|
import { KIND, Primitive, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
3
|
import * as alepha_server0 from "alepha/server";
|
|
4
4
|
import { DateTimeProvider } from "alepha/datetime";
|
|
@@ -18,7 +18,7 @@ import { UserAccount } from "alepha/security";
|
|
|
18
18
|
/**
|
|
19
19
|
* Parameter status enum schema.
|
|
20
20
|
*/
|
|
21
|
-
declare const parameterStatusSchema:
|
|
21
|
+
declare const parameterStatusSchema: alepha485.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
22
22
|
type ParameterStatus = Static<typeof parameterStatusSchema>;
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region ../../src/api/parameters/entities/parameters.d.ts
|
|
@@ -31,67 +31,67 @@ type ParameterStatus = Static<typeof parameterStatusSchema>;
|
|
|
31
31
|
* - Activation scheduling
|
|
32
32
|
* - Audit trail (creator info)
|
|
33
33
|
*/
|
|
34
|
-
declare const parameters: alepha_orm14.EntityPrimitive<
|
|
35
|
-
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
36
|
-
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
37
|
-
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
34
|
+
declare const parameters: alepha_orm14.EntityPrimitive<alepha485.TObject<{
|
|
35
|
+
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha485.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
|
|
36
|
+
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha485.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
37
|
+
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha485.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
38
38
|
/**
|
|
39
39
|
* Configuration name using dot notation for tree hierarchy.
|
|
40
40
|
* Examples: "app.features", "app.pricing.tiers", "system.limits"
|
|
41
41
|
*/
|
|
42
|
-
name:
|
|
42
|
+
name: alepha485.TString;
|
|
43
43
|
/**
|
|
44
44
|
* The configuration content as JSON.
|
|
45
45
|
*/
|
|
46
|
-
content:
|
|
46
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
47
47
|
/**
|
|
48
48
|
* Schema version hash for detecting schema changes.
|
|
49
49
|
* Used for auto-migration when schema evolves.
|
|
50
50
|
*/
|
|
51
|
-
schemaHash:
|
|
51
|
+
schemaHash: alepha485.TString;
|
|
52
52
|
/**
|
|
53
53
|
* Current status of this parameter version.
|
|
54
54
|
*/
|
|
55
|
-
status: alepha_orm14.PgAttr<
|
|
55
|
+
status: alepha_orm14.PgAttr<alepha485.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
|
|
56
56
|
/**
|
|
57
57
|
* When this version should become active.
|
|
58
58
|
* Default is immediate (now).
|
|
59
59
|
*/
|
|
60
|
-
activationDate:
|
|
60
|
+
activationDate: alepha485.TString;
|
|
61
61
|
/**
|
|
62
62
|
* When this version was deactivated (became expired).
|
|
63
63
|
* Null if still active or scheduled.
|
|
64
64
|
*/
|
|
65
|
-
expiredAt:
|
|
65
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
66
66
|
/**
|
|
67
67
|
* Version number for this configuration.
|
|
68
68
|
* Auto-incremented per config name.
|
|
69
69
|
*/
|
|
70
|
-
version:
|
|
70
|
+
version: alepha485.TInteger;
|
|
71
71
|
/**
|
|
72
72
|
* Optional description of changes in this version.
|
|
73
73
|
*/
|
|
74
|
-
changeDescription:
|
|
74
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
75
75
|
/**
|
|
76
76
|
* Optional tags for filtering/categorization.
|
|
77
77
|
*/
|
|
78
|
-
tags:
|
|
78
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
79
79
|
/**
|
|
80
80
|
* Creator user ID (if available).
|
|
81
81
|
*/
|
|
82
|
-
creatorId:
|
|
82
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
83
83
|
/**
|
|
84
84
|
* Creator display name for audit trail.
|
|
85
85
|
*/
|
|
86
|
-
creatorName:
|
|
86
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
87
87
|
/**
|
|
88
88
|
* Previous content before this change (for rollback reference).
|
|
89
89
|
*/
|
|
90
|
-
previousContent:
|
|
90
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
91
91
|
/**
|
|
92
92
|
* Migration log if schema changed.
|
|
93
93
|
*/
|
|
94
|
-
migrationLog:
|
|
94
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
95
95
|
}>>;
|
|
96
96
|
type Parameter = Static<typeof parameters.schema>;
|
|
97
97
|
type ParameterInsert = Omit<Parameter, "id" | "createdAt" | "updatedAt">;
|
|
@@ -442,46 +442,46 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
|
|
|
442
442
|
creatorId?: string | undefined;
|
|
443
443
|
creatorName?: string | undefined;
|
|
444
444
|
previousContent?: typebox0.StaticRecord<[], "Decode", {}, {
|
|
445
|
-
id: PgAttr<PgAttr<
|
|
446
|
-
createdAt: PgAttr<PgAttr<
|
|
447
|
-
updatedAt: PgAttr<PgAttr<
|
|
448
|
-
name:
|
|
449
|
-
content:
|
|
450
|
-
schemaHash:
|
|
451
|
-
status: PgAttr<
|
|
452
|
-
activationDate:
|
|
453
|
-
expiredAt:
|
|
454
|
-
version:
|
|
455
|
-
changeDescription:
|
|
456
|
-
tags:
|
|
457
|
-
creatorId:
|
|
458
|
-
creatorName:
|
|
459
|
-
previousContent:
|
|
460
|
-
migrationLog:
|
|
461
|
-
}, string,
|
|
445
|
+
id: PgAttr<PgAttr<alepha485.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
446
|
+
createdAt: PgAttr<PgAttr<alepha485.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
447
|
+
updatedAt: PgAttr<PgAttr<alepha485.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
448
|
+
name: alepha485.TString;
|
|
449
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
450
|
+
schemaHash: alepha485.TString;
|
|
451
|
+
status: PgAttr<alepha485.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
|
|
452
|
+
activationDate: alepha485.TString;
|
|
453
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
454
|
+
version: alepha485.TInteger;
|
|
455
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
456
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
457
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
458
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
459
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
460
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
461
|
+
}, string, alepha485.TAny> | undefined;
|
|
462
462
|
migrationLog?: string | undefined;
|
|
463
463
|
id: string;
|
|
464
464
|
createdAt: string;
|
|
465
465
|
updatedAt: string;
|
|
466
466
|
name: string;
|
|
467
467
|
content: typebox0.StaticRecord<[], "Decode", {}, {
|
|
468
|
-
id: PgAttr<PgAttr<
|
|
469
|
-
createdAt: PgAttr<PgAttr<
|
|
470
|
-
updatedAt: PgAttr<PgAttr<
|
|
471
|
-
name:
|
|
472
|
-
content:
|
|
473
|
-
schemaHash:
|
|
474
|
-
status: PgAttr<
|
|
475
|
-
activationDate:
|
|
476
|
-
expiredAt:
|
|
477
|
-
version:
|
|
478
|
-
changeDescription:
|
|
479
|
-
tags:
|
|
480
|
-
creatorId:
|
|
481
|
-
creatorName:
|
|
482
|
-
previousContent:
|
|
483
|
-
migrationLog:
|
|
484
|
-
}, string,
|
|
468
|
+
id: PgAttr<PgAttr<alepha485.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
469
|
+
createdAt: PgAttr<PgAttr<alepha485.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
470
|
+
updatedAt: PgAttr<PgAttr<alepha485.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
471
|
+
name: alepha485.TString;
|
|
472
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
473
|
+
schemaHash: alepha485.TString;
|
|
474
|
+
status: PgAttr<alepha485.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
|
|
475
|
+
activationDate: alepha485.TString;
|
|
476
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
477
|
+
version: alepha485.TInteger;
|
|
478
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
479
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
480
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
481
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
482
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
483
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
484
|
+
}, string, alepha485.TAny>;
|
|
485
485
|
schemaHash: string;
|
|
486
486
|
status: "expired" | "current" | "next" | "future";
|
|
487
487
|
activationDate: string;
|
|
@@ -494,7 +494,7 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
|
|
|
494
494
|
/**
|
|
495
495
|
* Hook to load initial value from database on start.
|
|
496
496
|
*/
|
|
497
|
-
protected readonly onStart:
|
|
497
|
+
protected readonly onStart: alepha485.HookPrimitive<"start">;
|
|
498
498
|
/**
|
|
499
499
|
* Called after primitive creation to initialize.
|
|
500
500
|
*/
|
|
@@ -557,22 +557,22 @@ declare class ConfigStore {
|
|
|
557
557
|
protected readonly log: alepha_logger0.Logger;
|
|
558
558
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
559
559
|
protected readonly repo: alepha_orm14.Repository<TObject<{
|
|
560
|
-
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
561
|
-
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
562
|
-
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
563
|
-
name:
|
|
564
|
-
content:
|
|
565
|
-
schemaHash:
|
|
566
|
-
status: alepha_orm14.PgAttr<
|
|
567
|
-
activationDate:
|
|
568
|
-
expiredAt:
|
|
569
|
-
version:
|
|
570
|
-
changeDescription:
|
|
571
|
-
tags:
|
|
572
|
-
creatorId:
|
|
573
|
-
creatorName:
|
|
574
|
-
previousContent:
|
|
575
|
-
migrationLog:
|
|
560
|
+
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha485.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
|
|
561
|
+
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha485.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
562
|
+
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha485.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
563
|
+
name: alepha485.TString;
|
|
564
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
565
|
+
schemaHash: alepha485.TString;
|
|
566
|
+
status: alepha_orm14.PgAttr<alepha485.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
|
|
567
|
+
activationDate: alepha485.TString;
|
|
568
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
569
|
+
version: alepha485.TInteger;
|
|
570
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
571
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
572
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
573
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
574
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
575
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
576
576
|
}>>;
|
|
577
577
|
/**
|
|
578
578
|
* Unique identifier for this instance (to avoid self-updates).
|
|
@@ -587,11 +587,11 @@ declare class ConfigStore {
|
|
|
587
587
|
*/
|
|
588
588
|
readonly syncTopic: alepha_topic0.TopicPrimitive<{
|
|
589
589
|
payload: TObject<{
|
|
590
|
-
name:
|
|
591
|
-
version:
|
|
592
|
-
content:
|
|
593
|
-
status:
|
|
594
|
-
instanceId:
|
|
590
|
+
name: alepha485.TString;
|
|
591
|
+
version: alepha485.TInteger;
|
|
592
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
593
|
+
status: alepha485.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
594
|
+
instanceId: alepha485.TString;
|
|
595
595
|
}>;
|
|
596
596
|
}>;
|
|
597
597
|
/**
|
|
@@ -716,46 +716,46 @@ declare class AdminConfigController {
|
|
|
716
716
|
* Useful for admin UI navigation.
|
|
717
717
|
*/
|
|
718
718
|
getConfigTree: alepha_server0.ActionPrimitiveFn<{
|
|
719
|
-
response:
|
|
720
|
-
name:
|
|
721
|
-
path:
|
|
722
|
-
isLeaf:
|
|
723
|
-
children:
|
|
719
|
+
response: alepha485.TArray<alepha485.TObject<{
|
|
720
|
+
name: alepha485.TString;
|
|
721
|
+
path: alepha485.TString;
|
|
722
|
+
isLeaf: alepha485.TBoolean;
|
|
723
|
+
children: alepha485.TArray<alepha485.TAny>;
|
|
724
724
|
}>>;
|
|
725
725
|
}>;
|
|
726
726
|
/**
|
|
727
727
|
* List all unique configuration names.
|
|
728
728
|
*/
|
|
729
729
|
listConfigNames: alepha_server0.ActionPrimitiveFn<{
|
|
730
|
-
response:
|
|
731
|
-
names:
|
|
730
|
+
response: alepha485.TObject<{
|
|
731
|
+
names: alepha485.TArray<alepha485.TString>;
|
|
732
732
|
}>;
|
|
733
733
|
}>;
|
|
734
734
|
/**
|
|
735
735
|
* Get configurations by status.
|
|
736
736
|
*/
|
|
737
737
|
getByStatus: alepha_server0.ActionPrimitiveFn<{
|
|
738
|
-
params:
|
|
739
|
-
status:
|
|
738
|
+
params: alepha485.TObject<{
|
|
739
|
+
status: alepha485.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
740
740
|
}>;
|
|
741
|
-
response:
|
|
742
|
-
configs:
|
|
743
|
-
id:
|
|
744
|
-
createdAt:
|
|
745
|
-
updatedAt:
|
|
746
|
-
name:
|
|
747
|
-
content:
|
|
748
|
-
schemaHash:
|
|
749
|
-
status:
|
|
750
|
-
activationDate:
|
|
751
|
-
expiredAt:
|
|
752
|
-
version:
|
|
753
|
-
changeDescription:
|
|
754
|
-
tags:
|
|
755
|
-
creatorId:
|
|
756
|
-
creatorName:
|
|
757
|
-
previousContent:
|
|
758
|
-
migrationLog:
|
|
741
|
+
response: alepha485.TObject<{
|
|
742
|
+
configs: alepha485.TArray<alepha485.TObject<{
|
|
743
|
+
id: alepha485.TString;
|
|
744
|
+
createdAt: alepha485.TString;
|
|
745
|
+
updatedAt: alepha485.TString;
|
|
746
|
+
name: alepha485.TString;
|
|
747
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
748
|
+
schemaHash: alepha485.TString;
|
|
749
|
+
status: alepha485.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
750
|
+
activationDate: alepha485.TString;
|
|
751
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
752
|
+
version: alepha485.TInteger;
|
|
753
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
754
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
755
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
756
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
757
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
758
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
759
759
|
}>>;
|
|
760
760
|
}>;
|
|
761
761
|
}>;
|
|
@@ -763,27 +763,27 @@ declare class AdminConfigController {
|
|
|
763
763
|
* Get version history for a specific configuration.
|
|
764
764
|
*/
|
|
765
765
|
getHistory: alepha_server0.ActionPrimitiveFn<{
|
|
766
|
-
params:
|
|
767
|
-
name:
|
|
766
|
+
params: alepha485.TObject<{
|
|
767
|
+
name: alepha485.TString;
|
|
768
768
|
}>;
|
|
769
|
-
response:
|
|
770
|
-
versions:
|
|
771
|
-
id:
|
|
772
|
-
createdAt:
|
|
773
|
-
updatedAt:
|
|
774
|
-
name:
|
|
775
|
-
content:
|
|
776
|
-
schemaHash:
|
|
777
|
-
status:
|
|
778
|
-
activationDate:
|
|
779
|
-
expiredAt:
|
|
780
|
-
version:
|
|
781
|
-
changeDescription:
|
|
782
|
-
tags:
|
|
783
|
-
creatorId:
|
|
784
|
-
creatorName:
|
|
785
|
-
previousContent:
|
|
786
|
-
migrationLog:
|
|
769
|
+
response: alepha485.TObject<{
|
|
770
|
+
versions: alepha485.TArray<alepha485.TObject<{
|
|
771
|
+
id: alepha485.TString;
|
|
772
|
+
createdAt: alepha485.TString;
|
|
773
|
+
updatedAt: alepha485.TString;
|
|
774
|
+
name: alepha485.TString;
|
|
775
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
776
|
+
schemaHash: alepha485.TString;
|
|
777
|
+
status: alepha485.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
778
|
+
activationDate: alepha485.TString;
|
|
779
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
780
|
+
version: alepha485.TInteger;
|
|
781
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
782
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
783
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
784
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
785
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
786
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
787
787
|
}>>;
|
|
788
788
|
}>;
|
|
789
789
|
}>;
|
|
@@ -793,77 +793,77 @@ declare class AdminConfigController {
|
|
|
793
793
|
* even if no versions exist in the database yet.
|
|
794
794
|
*/
|
|
795
795
|
getCurrent: alepha_server0.ActionPrimitiveFn<{
|
|
796
|
-
params:
|
|
797
|
-
name:
|
|
796
|
+
params: alepha485.TObject<{
|
|
797
|
+
name: alepha485.TString;
|
|
798
798
|
}>;
|
|
799
|
-
response:
|
|
800
|
-
current:
|
|
801
|
-
id:
|
|
802
|
-
createdAt:
|
|
803
|
-
updatedAt:
|
|
804
|
-
name:
|
|
805
|
-
content:
|
|
806
|
-
schemaHash:
|
|
807
|
-
status:
|
|
808
|
-
activationDate:
|
|
809
|
-
expiredAt:
|
|
810
|
-
version:
|
|
811
|
-
changeDescription:
|
|
812
|
-
tags:
|
|
813
|
-
creatorId:
|
|
814
|
-
creatorName:
|
|
815
|
-
previousContent:
|
|
816
|
-
migrationLog:
|
|
799
|
+
response: alepha485.TObject<{
|
|
800
|
+
current: alepha485.TOptional<alepha485.TObject<{
|
|
801
|
+
id: alepha485.TString;
|
|
802
|
+
createdAt: alepha485.TString;
|
|
803
|
+
updatedAt: alepha485.TString;
|
|
804
|
+
name: alepha485.TString;
|
|
805
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
806
|
+
schemaHash: alepha485.TString;
|
|
807
|
+
status: alepha485.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
808
|
+
activationDate: alepha485.TString;
|
|
809
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
810
|
+
version: alepha485.TInteger;
|
|
811
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
812
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
813
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
814
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
815
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
816
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
817
817
|
}>>;
|
|
818
|
-
next:
|
|
819
|
-
id:
|
|
820
|
-
createdAt:
|
|
821
|
-
updatedAt:
|
|
822
|
-
name:
|
|
823
|
-
content:
|
|
824
|
-
schemaHash:
|
|
825
|
-
status:
|
|
826
|
-
activationDate:
|
|
827
|
-
expiredAt:
|
|
828
|
-
version:
|
|
829
|
-
changeDescription:
|
|
830
|
-
tags:
|
|
831
|
-
creatorId:
|
|
832
|
-
creatorName:
|
|
833
|
-
previousContent:
|
|
834
|
-
migrationLog:
|
|
818
|
+
next: alepha485.TOptional<alepha485.TObject<{
|
|
819
|
+
id: alepha485.TString;
|
|
820
|
+
createdAt: alepha485.TString;
|
|
821
|
+
updatedAt: alepha485.TString;
|
|
822
|
+
name: alepha485.TString;
|
|
823
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
824
|
+
schemaHash: alepha485.TString;
|
|
825
|
+
status: alepha485.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
826
|
+
activationDate: alepha485.TString;
|
|
827
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
828
|
+
version: alepha485.TInteger;
|
|
829
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
830
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
831
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
832
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
833
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
834
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
835
835
|
}>>;
|
|
836
|
-
defaultValue:
|
|
837
|
-
currentValue:
|
|
838
|
-
schema:
|
|
836
|
+
defaultValue: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
837
|
+
currentValue: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
838
|
+
schema: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
839
839
|
}>;
|
|
840
840
|
}>;
|
|
841
841
|
/**
|
|
842
842
|
* Get a specific version of a configuration.
|
|
843
843
|
*/
|
|
844
844
|
getVersion: alepha_server0.ActionPrimitiveFn<{
|
|
845
|
-
params:
|
|
846
|
-
name:
|
|
847
|
-
version:
|
|
845
|
+
params: alepha485.TObject<{
|
|
846
|
+
name: alepha485.TString;
|
|
847
|
+
version: alepha485.TInteger;
|
|
848
848
|
}>;
|
|
849
|
-
response:
|
|
850
|
-
config:
|
|
851
|
-
id:
|
|
852
|
-
createdAt:
|
|
853
|
-
updatedAt:
|
|
854
|
-
name:
|
|
855
|
-
content:
|
|
856
|
-
schemaHash:
|
|
857
|
-
status:
|
|
858
|
-
activationDate:
|
|
859
|
-
expiredAt:
|
|
860
|
-
version:
|
|
861
|
-
changeDescription:
|
|
862
|
-
tags:
|
|
863
|
-
creatorId:
|
|
864
|
-
creatorName:
|
|
865
|
-
previousContent:
|
|
866
|
-
migrationLog:
|
|
849
|
+
response: alepha485.TObject<{
|
|
850
|
+
config: alepha485.TOptional<alepha485.TObject<{
|
|
851
|
+
id: alepha485.TString;
|
|
852
|
+
createdAt: alepha485.TString;
|
|
853
|
+
updatedAt: alepha485.TString;
|
|
854
|
+
name: alepha485.TString;
|
|
855
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
856
|
+
schemaHash: alepha485.TString;
|
|
857
|
+
status: alepha485.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
858
|
+
activationDate: alepha485.TString;
|
|
859
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
860
|
+
version: alepha485.TInteger;
|
|
861
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
862
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
863
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
864
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
865
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
866
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
867
867
|
}>>;
|
|
868
868
|
}>;
|
|
869
869
|
}>;
|
|
@@ -871,98 +871,98 @@ declare class AdminConfigController {
|
|
|
871
871
|
* Create a new configuration version.
|
|
872
872
|
*/
|
|
873
873
|
createVersion: alepha_server0.ActionPrimitiveFn<{
|
|
874
|
-
params:
|
|
875
|
-
name:
|
|
874
|
+
params: alepha485.TObject<{
|
|
875
|
+
name: alepha485.TString;
|
|
876
876
|
}>;
|
|
877
|
-
body:
|
|
878
|
-
content:
|
|
879
|
-
schemaHash:
|
|
880
|
-
activationDate:
|
|
881
|
-
changeDescription:
|
|
882
|
-
tags:
|
|
883
|
-
creatorId:
|
|
884
|
-
creatorName:
|
|
877
|
+
body: alepha485.TObject<{
|
|
878
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
879
|
+
schemaHash: alepha485.TString;
|
|
880
|
+
activationDate: alepha485.TOptional<alepha485.TString>;
|
|
881
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
882
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
883
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
884
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
885
885
|
}>;
|
|
886
|
-
response:
|
|
887
|
-
id:
|
|
888
|
-
createdAt:
|
|
889
|
-
updatedAt:
|
|
890
|
-
name:
|
|
891
|
-
content:
|
|
892
|
-
schemaHash:
|
|
893
|
-
status:
|
|
894
|
-
activationDate:
|
|
895
|
-
expiredAt:
|
|
896
|
-
version:
|
|
897
|
-
changeDescription:
|
|
898
|
-
tags:
|
|
899
|
-
creatorId:
|
|
900
|
-
creatorName:
|
|
901
|
-
previousContent:
|
|
902
|
-
migrationLog:
|
|
886
|
+
response: alepha485.TObject<{
|
|
887
|
+
id: alepha485.TString;
|
|
888
|
+
createdAt: alepha485.TString;
|
|
889
|
+
updatedAt: alepha485.TString;
|
|
890
|
+
name: alepha485.TString;
|
|
891
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
892
|
+
schemaHash: alepha485.TString;
|
|
893
|
+
status: alepha485.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
894
|
+
activationDate: alepha485.TString;
|
|
895
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
896
|
+
version: alepha485.TInteger;
|
|
897
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
898
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
899
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
900
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
901
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
902
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
903
903
|
}>;
|
|
904
904
|
}>;
|
|
905
905
|
/**
|
|
906
906
|
* Rollback to a previous version.
|
|
907
907
|
*/
|
|
908
908
|
rollback: alepha_server0.ActionPrimitiveFn<{
|
|
909
|
-
params:
|
|
910
|
-
name:
|
|
909
|
+
params: alepha485.TObject<{
|
|
910
|
+
name: alepha485.TString;
|
|
911
911
|
}>;
|
|
912
|
-
body:
|
|
913
|
-
targetVersion:
|
|
914
|
-
changeDescription:
|
|
915
|
-
creatorId:
|
|
916
|
-
creatorName:
|
|
912
|
+
body: alepha485.TObject<{
|
|
913
|
+
targetVersion: alepha485.TInteger;
|
|
914
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
915
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
916
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
917
917
|
}>;
|
|
918
|
-
response:
|
|
919
|
-
id:
|
|
920
|
-
createdAt:
|
|
921
|
-
updatedAt:
|
|
922
|
-
name:
|
|
923
|
-
content:
|
|
924
|
-
schemaHash:
|
|
925
|
-
status:
|
|
926
|
-
activationDate:
|
|
927
|
-
expiredAt:
|
|
928
|
-
version:
|
|
929
|
-
changeDescription:
|
|
930
|
-
tags:
|
|
931
|
-
creatorId:
|
|
932
|
-
creatorName:
|
|
933
|
-
previousContent:
|
|
934
|
-
migrationLog:
|
|
918
|
+
response: alepha485.TObject<{
|
|
919
|
+
id: alepha485.TString;
|
|
920
|
+
createdAt: alepha485.TString;
|
|
921
|
+
updatedAt: alepha485.TString;
|
|
922
|
+
name: alepha485.TString;
|
|
923
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
924
|
+
schemaHash: alepha485.TString;
|
|
925
|
+
status: alepha485.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
926
|
+
activationDate: alepha485.TString;
|
|
927
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
928
|
+
version: alepha485.TInteger;
|
|
929
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
930
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
931
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
932
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
933
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
934
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
935
935
|
}>;
|
|
936
936
|
}>;
|
|
937
937
|
/**
|
|
938
938
|
* Activate a scheduled version immediately.
|
|
939
939
|
*/
|
|
940
940
|
activateNow: alepha_server0.ActionPrimitiveFn<{
|
|
941
|
-
params:
|
|
942
|
-
name:
|
|
941
|
+
params: alepha485.TObject<{
|
|
942
|
+
name: alepha485.TString;
|
|
943
943
|
}>;
|
|
944
|
-
body:
|
|
945
|
-
version:
|
|
946
|
-
creatorId:
|
|
947
|
-
creatorName:
|
|
944
|
+
body: alepha485.TObject<{
|
|
945
|
+
version: alepha485.TInteger;
|
|
946
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
947
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
948
948
|
}>;
|
|
949
|
-
response:
|
|
950
|
-
id:
|
|
951
|
-
createdAt:
|
|
952
|
-
updatedAt:
|
|
953
|
-
name:
|
|
954
|
-
content:
|
|
955
|
-
schemaHash:
|
|
956
|
-
status:
|
|
957
|
-
activationDate:
|
|
958
|
-
expiredAt:
|
|
959
|
-
version:
|
|
960
|
-
changeDescription:
|
|
961
|
-
tags:
|
|
962
|
-
creatorId:
|
|
963
|
-
creatorName:
|
|
964
|
-
previousContent:
|
|
965
|
-
migrationLog:
|
|
949
|
+
response: alepha485.TObject<{
|
|
950
|
+
id: alepha485.TString;
|
|
951
|
+
createdAt: alepha485.TString;
|
|
952
|
+
updatedAt: alepha485.TString;
|
|
953
|
+
name: alepha485.TString;
|
|
954
|
+
content: alepha485.TRecord<string, alepha485.TAny>;
|
|
955
|
+
schemaHash: alepha485.TString;
|
|
956
|
+
status: alepha485.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
957
|
+
activationDate: alepha485.TString;
|
|
958
|
+
expiredAt: alepha485.TOptional<alepha485.TString>;
|
|
959
|
+
version: alepha485.TInteger;
|
|
960
|
+
changeDescription: alepha485.TOptional<alepha485.TString>;
|
|
961
|
+
tags: alepha485.TOptional<alepha485.TArray<alepha485.TString>>;
|
|
962
|
+
creatorId: alepha485.TOptional<alepha485.TString>;
|
|
963
|
+
creatorName: alepha485.TOptional<alepha485.TString>;
|
|
964
|
+
previousContent: alepha485.TOptional<alepha485.TRecord<string, alepha485.TAny>>;
|
|
965
|
+
migrationLog: alepha485.TOptional<alepha485.TString>;
|
|
966
966
|
}>;
|
|
967
967
|
}>;
|
|
968
968
|
/**
|
|
@@ -970,8 +970,8 @@ declare class AdminConfigController {
|
|
|
970
970
|
* Normally called by a scheduler, but exposed for manual triggering.
|
|
971
971
|
*/
|
|
972
972
|
checkScheduled: alepha_server0.ActionPrimitiveFn<{
|
|
973
|
-
response:
|
|
974
|
-
message:
|
|
973
|
+
response: alepha485.TObject<{
|
|
974
|
+
message: alepha485.TString;
|
|
975
975
|
}>;
|
|
976
976
|
}>;
|
|
977
977
|
}
|
|
@@ -1009,7 +1009,7 @@ declare class ConfigActivationScheduler {
|
|
|
1009
1009
|
*
|
|
1010
1010
|
* @module alepha.api.parameters
|
|
1011
1011
|
*/
|
|
1012
|
-
declare const AlephaApiParameters:
|
|
1012
|
+
declare const AlephaApiParameters: alepha485.Service<alepha485.Module>;
|
|
1013
1013
|
//#endregion
|
|
1014
1014
|
export { $config, AdminConfigController, AlephaApiParameters, ConfigActivationScheduler, ConfigPrimitive, ConfigPrimitiveOptions, ConfigStore, ConfigSyncPayload, ConfigTreeNode, Parameter, ParameterInsert, type ParameterStatus, SaveConfigOptions, SetConfigOptions, parameters };
|
|
1015
1015
|
//# sourceMappingURL=index.d.ts.map
|