alepha 0.14.4 → 0.15.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/README.md +44 -102
- package/dist/api/audits/index.d.ts +331 -443
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +2 -2
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.d.ts +0 -113
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +2 -3
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.d.ts +151 -262
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/notifications/index.browser.js +4 -4
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.d.ts +164 -276
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js +4 -4
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/parameters/index.d.ts +265 -377
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/users/index.browser.js +1 -2
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +195 -301
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +203 -184
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/batch/index.js +1 -2
- package/dist/batch/index.js.map +1 -1
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cache/redis/index.js +2 -2
- package/dist/cache/redis/index.js.map +1 -1
- package/dist/cli/index.d.ts +5900 -165
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +1481 -639
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +8 -4
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +29 -25
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +563 -54
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +175 -8
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +564 -54
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +563 -54
- package/dist/core/index.native.js.map +1 -1
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/datetime/index.js +4 -4
- package/dist/datetime/index.js.map +1 -1
- package/dist/email/index.d.ts +89 -42
- package/dist/email/index.d.ts.map +1 -1
- package/dist/email/index.js +129 -33
- package/dist/email/index.js.map +1 -1
- package/dist/fake/index.d.ts +7969 -2
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js +22 -22
- package/dist/fake/index.js.map +1 -1
- package/dist/file/index.d.ts +134 -1
- package/dist/file/index.d.ts.map +1 -1
- package/dist/file/index.js +253 -1
- package/dist/file/index.js.map +1 -1
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/redis/index.d.ts.map +1 -1
- package/dist/logger/index.d.ts +1 -2
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +1 -5
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +19 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +28 -4
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/chunk-DH6iiROE.js +38 -0
- package/dist/orm/index.browser.js +9 -9
- package/dist/orm/index.browser.js.map +1 -1
- package/dist/orm/index.bun.js +2821 -0
- package/dist/orm/index.bun.js.map +1 -0
- package/dist/orm/index.d.ts +318 -169
- package/dist/orm/index.d.ts.map +1 -1
- package/dist/orm/index.js +2086 -1776
- package/dist/orm/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +4 -4
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/redis/index.bun.js +285 -0
- package/dist/redis/index.bun.js.map +1 -0
- package/dist/redis/index.d.ts +13 -31
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/redis/index.js +18 -38
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/router/index.d.ts.map +1 -1
- package/dist/scheduler/index.d.ts +83 -1
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +393 -1
- package/dist/scheduler/index.js.map +1 -1
- package/dist/security/index.browser.js +5 -1
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +598 -112
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +1808 -97
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +1200 -175
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +1268 -37
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cache/index.d.ts +6 -3
- package/dist/server/cache/index.d.ts.map +1 -1
- package/dist/server/cache/index.js +1 -1
- package/dist/server/cache/index.js.map +1 -1
- package/dist/server/compress/index.d.ts.map +1 -1
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/cookies/index.js +3 -3
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.d.ts +115 -13
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +321 -139
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +0 -1
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/health/index.d.ts +0 -1
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/helmet/index.d.ts.map +1 -1
- package/dist/server/links/index.browser.js +9 -1
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +1 -2
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +14 -7
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +514 -1
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/metrics/index.js +4462 -4
- package/dist/server/metrics/index.js.map +1 -1
- package/dist/server/multipart/index.d.ts.map +1 -1
- package/dist/server/proxy/index.d.ts +0 -1
- package/dist/server/proxy/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/swagger/index.d.ts +1 -2
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +1 -2
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +3 -1
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js +10 -10
- package/dist/sms/index.js.map +1 -1
- package/dist/thread/index.d.ts +0 -1
- package/dist/thread/index.d.ts.map +1 -1
- package/dist/thread/index.js +2 -2
- package/dist/thread/index.js.map +1 -1
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/dist/vite/index.d.ts +6315 -149
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +140 -469
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.browser.js +9 -9
- package/dist/websocket/index.browser.js.map +1 -1
- package/dist/websocket/index.d.ts +28 -28
- package/dist/websocket/index.d.ts.map +1 -1
- package/dist/websocket/index.js +9 -9
- package/dist/websocket/index.js.map +1 -1
- package/package.json +13 -18
- package/src/api/files/controllers/AdminFileStatsController.ts +0 -1
- package/src/api/users/atoms/realmAuthSettingsAtom.ts +5 -0
- package/src/api/users/controllers/{UserRealmController.ts → RealmController.ts} +11 -11
- package/src/api/users/entities/users.ts +1 -1
- package/src/api/users/index.ts +8 -8
- package/src/api/users/primitives/{$userRealm.ts → $realm.ts} +17 -19
- package/src/api/users/providers/{UserRealmProvider.ts → RealmProvider.ts} +26 -30
- package/src/api/users/schemas/{userRealmConfigSchema.ts → realmConfigSchema.ts} +2 -2
- package/src/api/users/services/CredentialService.ts +7 -7
- package/src/api/users/services/IdentityService.ts +4 -4
- package/src/api/users/services/RegistrationService.spec.ts +25 -27
- package/src/api/users/services/RegistrationService.ts +38 -27
- package/src/api/users/services/SessionCrudService.ts +3 -3
- package/src/api/users/services/SessionService.spec.ts +3 -3
- package/src/api/users/services/SessionService.ts +27 -18
- package/src/api/users/services/UserService.ts +7 -7
- package/src/batch/providers/BatchProvider.ts +1 -2
- package/src/cli/apps/AlephaCli.ts +2 -2
- package/src/cli/apps/AlephaPackageBuilderCli.ts +47 -20
- package/src/cli/assets/apiHelloControllerTs.ts +19 -0
- package/src/cli/assets/apiIndexTs.ts +16 -0
- package/src/cli/assets/biomeJson.ts +2 -1
- package/src/cli/assets/claudeMd.ts +308 -0
- package/src/cli/assets/dummySpecTs.ts +2 -1
- package/src/cli/assets/editorconfig.ts +2 -1
- package/src/cli/assets/mainBrowserTs.ts +4 -3
- package/src/cli/assets/mainCss.ts +24 -0
- package/src/cli/assets/mainServerTs.ts +24 -0
- package/src/cli/assets/tsconfigJson.ts +2 -1
- package/src/cli/assets/webAppRouterTs.ts +16 -0
- package/src/cli/assets/webHelloComponentTsx.ts +20 -0
- package/src/cli/assets/webIndexTs.ts +16 -0
- package/src/cli/atoms/appEntryOptions.ts +13 -0
- package/src/cli/atoms/buildOptions.ts +1 -1
- package/src/cli/atoms/changelogOptions.ts +1 -1
- package/src/cli/commands/build.ts +97 -61
- package/src/cli/commands/db.ts +21 -18
- package/src/cli/commands/deploy.ts +17 -5
- package/src/cli/commands/dev.ts +26 -47
- package/src/cli/commands/gen/env.ts +1 -1
- package/src/cli/commands/init.ts +79 -25
- package/src/cli/commands/lint.ts +9 -3
- package/src/cli/commands/test.ts +8 -2
- package/src/cli/commands/typecheck.ts +5 -1
- package/src/cli/commands/verify.ts +4 -2
- package/src/cli/defineConfig.ts +9 -0
- package/src/cli/index.ts +2 -1
- package/src/cli/providers/AppEntryProvider.ts +131 -0
- package/src/cli/providers/ViteBuildProvider.ts +82 -0
- package/src/cli/providers/ViteDevServerProvider.ts +350 -0
- package/src/cli/providers/ViteTemplateProvider.ts +27 -0
- package/src/cli/services/AlephaCliUtils.ts +72 -602
- package/src/cli/services/PackageManagerUtils.ts +308 -0
- package/src/cli/services/ProjectScaffolder.ts +329 -0
- package/src/command/helpers/Runner.ts +15 -3
- package/src/core/Alepha.ts +2 -8
- package/src/core/__tests__/Alepha-graph.spec.ts +4 -0
- package/src/core/index.shared.ts +1 -0
- package/src/core/index.ts +2 -0
- package/src/core/primitives/$hook.ts +6 -2
- package/src/core/primitives/$module.spec.ts +4 -0
- package/src/core/primitives/$module.ts +12 -0
- package/src/core/providers/AlsProvider.ts +1 -1
- package/src/core/providers/CodecManager.spec.ts +12 -6
- package/src/core/providers/CodecManager.ts +26 -6
- package/src/core/providers/EventManager.ts +169 -13
- package/src/core/providers/KeylessJsonSchemaCodec.spec.ts +878 -0
- package/src/core/providers/KeylessJsonSchemaCodec.ts +789 -0
- package/src/core/providers/SchemaValidator.spec.ts +236 -0
- package/src/core/providers/StateManager.spec.ts +27 -16
- package/src/email/providers/LocalEmailProvider.spec.ts +111 -87
- package/src/email/providers/LocalEmailProvider.ts +52 -15
- package/src/email/providers/NodemailerEmailProvider.ts +167 -56
- package/src/file/errors/FileError.ts +7 -0
- package/src/file/index.ts +9 -1
- package/src/file/providers/MemoryFileSystemProvider.ts +393 -0
- package/src/logger/providers/PrettyFormatterProvider.ts +0 -9
- package/src/mcp/errors/McpError.ts +30 -0
- package/src/mcp/index.ts +3 -0
- package/src/mcp/transports/SseMcpTransport.ts +16 -6
- package/src/orm/index.browser.ts +1 -19
- package/src/orm/index.bun.ts +77 -0
- package/src/orm/index.shared-server.ts +22 -0
- package/src/orm/index.shared.ts +15 -0
- package/src/orm/index.ts +19 -39
- package/src/orm/providers/DrizzleKitProvider.ts +3 -5
- package/src/orm/providers/drivers/BunPostgresProvider.ts +3 -5
- package/src/orm/providers/drivers/BunSqliteProvider.ts +1 -1
- package/src/orm/providers/drivers/CloudflareD1Provider.ts +4 -0
- package/src/orm/providers/drivers/DatabaseProvider.ts +4 -0
- package/src/orm/providers/drivers/PglitePostgresProvider.ts +4 -0
- package/src/orm/services/Repository.ts +19 -0
- package/src/redis/index.bun.ts +35 -0
- package/src/redis/providers/BunRedisProvider.ts +12 -43
- package/src/redis/providers/BunRedisSubscriberProvider.ts +2 -3
- package/src/redis/providers/NodeRedisProvider.ts +16 -34
- package/src/{server/security → security}/__tests__/BasicAuth.spec.ts +11 -11
- package/src/{server/security → security}/__tests__/ServerSecurityProvider-realm.spec.ts +21 -16
- package/src/{server/security/providers → security/__tests__}/ServerSecurityProvider.spec.ts +5 -5
- package/src/security/index.browser.ts +5 -0
- package/src/security/index.ts +90 -7
- package/src/security/primitives/{$realm.spec.ts → $issuer.spec.ts} +11 -11
- package/src/security/primitives/{$realm.ts → $issuer.ts} +20 -17
- package/src/security/primitives/$role.ts +5 -5
- package/src/security/primitives/$serviceAccount.spec.ts +5 -5
- package/src/security/primitives/$serviceAccount.ts +3 -3
- package/src/{server/security → security}/providers/ServerSecurityProvider.ts +5 -7
- package/src/server/auth/primitives/$auth.ts +10 -10
- package/src/server/auth/primitives/$authCredentials.ts +3 -3
- package/src/server/auth/primitives/$authGithub.ts +3 -3
- package/src/server/auth/primitives/$authGoogle.ts +3 -3
- package/src/server/auth/providers/ServerAuthProvider.ts +13 -13
- package/src/server/cache/providers/ServerCacheProvider.ts +1 -1
- package/src/server/cookies/providers/ServerCookiesProvider.ts +3 -3
- package/src/server/core/index.ts +1 -1
- package/src/server/core/providers/BunHttpServerProvider.ts +1 -1
- package/src/server/core/providers/NodeHttpServerProvider.spec.ts +125 -0
- package/src/server/core/providers/NodeHttpServerProvider.ts +92 -24
- package/src/server/core/providers/ServerBodyParserProvider.ts +19 -23
- package/src/server/core/providers/ServerLoggerProvider.ts +23 -19
- package/src/server/core/providers/ServerProvider.ts +144 -24
- package/src/server/core/providers/ServerRouterProvider.ts +259 -115
- package/src/server/core/providers/ServerTimingProvider.ts +2 -2
- package/src/server/links/atoms/apiLinksAtom.ts +7 -0
- package/src/server/links/index.browser.ts +2 -0
- package/src/server/links/index.ts +3 -1
- package/src/server/links/providers/LinkProvider.ts +1 -1
- package/src/server/swagger/index.ts +1 -1
- package/src/sms/providers/LocalSmsProvider.spec.ts +153 -111
- package/src/sms/providers/LocalSmsProvider.ts +8 -7
- package/src/vite/index.ts +3 -2
- package/src/vite/tasks/buildClient.ts +0 -1
- package/src/vite/tasks/buildServer.ts +80 -22
- package/src/vite/tasks/copyAssets.ts +5 -4
- package/src/vite/tasks/generateCloudflare.ts +7 -0
- package/src/vite/tasks/generateSitemap.ts +64 -23
- package/src/vite/tasks/index.ts +0 -2
- package/src/vite/tasks/prerenderPages.ts +49 -24
- package/dist/server/security/index.browser.js +0 -13
- package/dist/server/security/index.browser.js.map +0 -1
- package/dist/server/security/index.d.ts +0 -173
- package/dist/server/security/index.d.ts.map +0 -1
- package/dist/server/security/index.js +0 -311
- package/dist/server/security/index.js.map +0 -1
- package/src/cli/assets/appRouterTs.ts +0 -9
- package/src/cli/assets/indexHtml.ts +0 -15
- package/src/cli/assets/mainTs.ts +0 -13
- package/src/cli/commands/format.ts +0 -17
- package/src/server/security/index.browser.ts +0 -10
- package/src/server/security/index.ts +0 -94
- package/src/vite/helpers/boot.ts +0 -106
- package/src/vite/plugins/viteAlephaDev.ts +0 -177
- package/src/vite/tasks/devServer.ts +0 -69
- package/src/vite/tasks/runAlepha.ts +0 -270
- /package/src/{server/security → security}/primitives/$basicAuth.ts +0 -0
- /package/src/{server/security → security}/providers/ServerBasicAuthProvider.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha624 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";
|
|
5
5
|
import * as alepha_logger0 from "alepha/logger";
|
|
6
|
-
import * as
|
|
6
|
+
import * as alepha_orm0 from "alepha/orm";
|
|
7
7
|
import * as alepha_topic0 from "alepha/topic";
|
|
8
8
|
import * as alepha_scheduler0 from "alepha/scheduler";
|
|
9
9
|
import "drizzle-orm/d1";
|
|
@@ -12,16 +12,13 @@ import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, Update
|
|
|
12
12
|
import "alepha/retry";
|
|
13
13
|
import * as typebox0 from "typebox";
|
|
14
14
|
import "drizzle-orm/sqlite-core";
|
|
15
|
-
import "alepha/lock";
|
|
16
|
-
import "drizzle-orm/postgres-js";
|
|
17
|
-
import "postgres";
|
|
18
15
|
import { UserAccount } from "alepha/security";
|
|
19
16
|
|
|
20
17
|
//#region ../../src/api/parameters/schemas/parameterStatusSchema.d.ts
|
|
21
18
|
/**
|
|
22
19
|
* Parameter status enum schema.
|
|
23
20
|
*/
|
|
24
|
-
declare const parameterStatusSchema:
|
|
21
|
+
declare const parameterStatusSchema: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
25
22
|
type ParameterStatus = Static<typeof parameterStatusSchema>;
|
|
26
23
|
//#endregion
|
|
27
24
|
//#region ../../src/api/parameters/entities/parameters.d.ts
|
|
@@ -34,67 +31,67 @@ type ParameterStatus = Static<typeof parameterStatusSchema>;
|
|
|
34
31
|
* - Activation scheduling
|
|
35
32
|
* - Audit trail (creator info)
|
|
36
33
|
*/
|
|
37
|
-
declare const parameters:
|
|
38
|
-
id:
|
|
39
|
-
createdAt:
|
|
40
|
-
updatedAt:
|
|
34
|
+
declare const parameters: alepha_orm0.EntityPrimitive<alepha624.TObject<{
|
|
35
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
36
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
37
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
41
38
|
/**
|
|
42
39
|
* Configuration name using dot notation for tree hierarchy.
|
|
43
40
|
* Examples: "app.features", "app.pricing.tiers", "system.limits"
|
|
44
41
|
*/
|
|
45
|
-
name:
|
|
42
|
+
name: alepha624.TString;
|
|
46
43
|
/**
|
|
47
44
|
* The configuration content as JSON.
|
|
48
45
|
*/
|
|
49
|
-
content:
|
|
46
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
50
47
|
/**
|
|
51
48
|
* Schema version hash for detecting schema changes.
|
|
52
49
|
* Used for auto-migration when schema evolves.
|
|
53
50
|
*/
|
|
54
|
-
schemaHash:
|
|
51
|
+
schemaHash: alepha624.TString;
|
|
55
52
|
/**
|
|
56
53
|
* Current status of this parameter version.
|
|
57
54
|
*/
|
|
58
|
-
status:
|
|
55
|
+
status: alepha_orm0.PgAttr<alepha624.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm0.PG_DEFAULT>;
|
|
59
56
|
/**
|
|
60
57
|
* When this version should become active.
|
|
61
58
|
* Default is immediate (now).
|
|
62
59
|
*/
|
|
63
|
-
activationDate:
|
|
60
|
+
activationDate: alepha624.TString;
|
|
64
61
|
/**
|
|
65
62
|
* When this version was deactivated (became expired).
|
|
66
63
|
* Null if still active or scheduled.
|
|
67
64
|
*/
|
|
68
|
-
expiredAt:
|
|
65
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
69
66
|
/**
|
|
70
67
|
* Version number for this configuration.
|
|
71
68
|
* Auto-incremented per config name.
|
|
72
69
|
*/
|
|
73
|
-
version:
|
|
70
|
+
version: alepha624.TInteger;
|
|
74
71
|
/**
|
|
75
72
|
* Optional description of changes in this version.
|
|
76
73
|
*/
|
|
77
|
-
changeDescription:
|
|
74
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
78
75
|
/**
|
|
79
76
|
* Optional tags for filtering/categorization.
|
|
80
77
|
*/
|
|
81
|
-
tags:
|
|
78
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
82
79
|
/**
|
|
83
80
|
* Creator user ID (if available).
|
|
84
81
|
*/
|
|
85
|
-
creatorId:
|
|
82
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
86
83
|
/**
|
|
87
84
|
* Creator display name for audit trail.
|
|
88
85
|
*/
|
|
89
|
-
creatorName:
|
|
86
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
90
87
|
/**
|
|
91
88
|
* Previous content before this change (for rollback reference).
|
|
92
89
|
*/
|
|
93
|
-
previousContent:
|
|
90
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
94
91
|
/**
|
|
95
92
|
* Migration log if schema changed.
|
|
96
93
|
*/
|
|
97
|
-
migrationLog:
|
|
94
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
98
95
|
}>>;
|
|
99
96
|
type Parameter = Static<typeof parameters.schema>;
|
|
100
97
|
type ParameterInsert = Omit<Parameter, "id" | "createdAt" | "updatedAt">;
|
|
@@ -315,115 +312,6 @@ interface PgRefOptions {
|
|
|
315
312
|
*/
|
|
316
313
|
type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
|
|
317
314
|
//#endregion
|
|
318
|
-
//#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
|
|
319
|
-
declare module "alepha" {
|
|
320
|
-
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
321
|
-
}
|
|
322
|
-
declare const envSchema: alepha588.TObject<{
|
|
323
|
-
/**
|
|
324
|
-
* Main configuration for database connection.
|
|
325
|
-
* Accept a string in the format of a Postgres connection URL.
|
|
326
|
-
* Example: postgres://user:password@localhost:5432/database
|
|
327
|
-
* or
|
|
328
|
-
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
329
|
-
*/
|
|
330
|
-
DATABASE_URL: alepha588.TOptional<alepha588.TString>;
|
|
331
|
-
/**
|
|
332
|
-
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
333
|
-
*
|
|
334
|
-
* It will monkey patch drizzle tables.
|
|
335
|
-
*/
|
|
336
|
-
POSTGRES_SCHEMA: alepha588.TOptional<alepha588.TString>;
|
|
337
|
-
}>;
|
|
338
|
-
//#endregion
|
|
339
|
-
//#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
340
|
-
/**
|
|
341
|
-
* Configuration options for the Node.js SQLite database provider.
|
|
342
|
-
*/
|
|
343
|
-
declare const nodeSqliteOptions: alepha588.Atom<alepha588.TObject<{
|
|
344
|
-
path: alepha588.TOptional<alepha588.TString>;
|
|
345
|
-
}>, "alepha.postgres.node-sqlite.options">;
|
|
346
|
-
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
347
|
-
declare module "alepha" {
|
|
348
|
-
interface State {
|
|
349
|
-
[nodeSqliteOptions.key]: NodeSqliteProviderOptions;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* Add a fake support for SQLite in Node.js based on Postgres interfaces.
|
|
354
|
-
*
|
|
355
|
-
* This is NOT a real SQLite provider, it's a workaround to use SQLite with Drizzle ORM.
|
|
356
|
-
* This is NOT recommended for production use.
|
|
357
|
-
*/
|
|
358
|
-
//#endregion
|
|
359
|
-
//#region ../../src/orm/index.d.ts
|
|
360
|
-
declare module "alepha" {
|
|
361
|
-
interface Hooks {
|
|
362
|
-
/**
|
|
363
|
-
* Fires before creating an entity in the repository.
|
|
364
|
-
*/
|
|
365
|
-
"repository:create:before": {
|
|
366
|
-
tableName: string;
|
|
367
|
-
data: any;
|
|
368
|
-
};
|
|
369
|
-
/**
|
|
370
|
-
* Fires after creating an entity in the repository.
|
|
371
|
-
*/
|
|
372
|
-
"repository:create:after": {
|
|
373
|
-
tableName: string;
|
|
374
|
-
data: any;
|
|
375
|
-
entity: any;
|
|
376
|
-
};
|
|
377
|
-
/**
|
|
378
|
-
* Fires before updating entities in the repository.
|
|
379
|
-
*/
|
|
380
|
-
"repository:update:before": {
|
|
381
|
-
tableName: string;
|
|
382
|
-
where: any;
|
|
383
|
-
data: any;
|
|
384
|
-
};
|
|
385
|
-
/**
|
|
386
|
-
* Fires after updating entities in the repository.
|
|
387
|
-
*/
|
|
388
|
-
"repository:update:after": {
|
|
389
|
-
tableName: string;
|
|
390
|
-
where: any;
|
|
391
|
-
data: any;
|
|
392
|
-
entities: any[];
|
|
393
|
-
};
|
|
394
|
-
/**
|
|
395
|
-
* Fires before deleting entities from the repository.
|
|
396
|
-
*/
|
|
397
|
-
"repository:delete:before": {
|
|
398
|
-
tableName: string;
|
|
399
|
-
where: any;
|
|
400
|
-
};
|
|
401
|
-
/**
|
|
402
|
-
* Fires after deleting entities from the repository.
|
|
403
|
-
*/
|
|
404
|
-
"repository:delete:after": {
|
|
405
|
-
tableName: string;
|
|
406
|
-
where: any;
|
|
407
|
-
ids: Array<string | number>;
|
|
408
|
-
};
|
|
409
|
-
/**
|
|
410
|
-
* Fires before reading entities from the repository.
|
|
411
|
-
*/
|
|
412
|
-
"repository:read:before": {
|
|
413
|
-
tableName: string;
|
|
414
|
-
query: any;
|
|
415
|
-
};
|
|
416
|
-
/**
|
|
417
|
-
* Fires after reading entities from the repository.
|
|
418
|
-
*/
|
|
419
|
-
"repository:read:after": {
|
|
420
|
-
tableName: string;
|
|
421
|
-
query: any;
|
|
422
|
-
entities: any[];
|
|
423
|
-
};
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
//#endregion
|
|
427
315
|
//#region ../../src/api/parameters/primitives/$config.d.ts
|
|
428
316
|
/**
|
|
429
317
|
* Creates a versioned configuration primitive for managing application settings.
|
|
@@ -514,7 +402,7 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
|
|
|
514
402
|
/**
|
|
515
403
|
* Get a specific field from the current configuration.
|
|
516
404
|
*/
|
|
517
|
-
get<Key
|
|
405
|
+
get<Key extends keyof Static<T>>(key: Key): Static<T>[Key];
|
|
518
406
|
/**
|
|
519
407
|
* Set a new configuration value.
|
|
520
408
|
*
|
|
@@ -546,48 +434,48 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
|
|
|
546
434
|
creatorId?: string | undefined;
|
|
547
435
|
creatorName?: string | undefined;
|
|
548
436
|
previousContent?: typebox0.StaticRecord<[], "Decode", {}, {
|
|
549
|
-
id: PgAttr<PgAttr<
|
|
550
|
-
createdAt: PgAttr<PgAttr<
|
|
551
|
-
updatedAt: PgAttr<PgAttr<
|
|
552
|
-
name:
|
|
553
|
-
content:
|
|
554
|
-
schemaHash:
|
|
555
|
-
status: PgAttr<
|
|
556
|
-
activationDate:
|
|
557
|
-
expiredAt:
|
|
558
|
-
version:
|
|
559
|
-
changeDescription:
|
|
560
|
-
tags:
|
|
561
|
-
creatorId:
|
|
562
|
-
creatorName:
|
|
563
|
-
previousContent:
|
|
564
|
-
migrationLog:
|
|
565
|
-
}, string,
|
|
437
|
+
id: PgAttr<PgAttr<alepha624.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
438
|
+
createdAt: PgAttr<PgAttr<alepha624.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
439
|
+
updatedAt: PgAttr<PgAttr<alepha624.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
440
|
+
name: alepha624.TString;
|
|
441
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
442
|
+
schemaHash: alepha624.TString;
|
|
443
|
+
status: PgAttr<alepha624.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
|
|
444
|
+
activationDate: alepha624.TString;
|
|
445
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
446
|
+
version: alepha624.TInteger;
|
|
447
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
448
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
449
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
450
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
451
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
452
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
453
|
+
}, string, alepha624.TAny> | undefined;
|
|
566
454
|
migrationLog?: string | undefined;
|
|
455
|
+
name: string;
|
|
456
|
+
status: "expired" | "current" | "next" | "future";
|
|
567
457
|
id: string;
|
|
568
458
|
createdAt: string;
|
|
569
459
|
updatedAt: string;
|
|
570
|
-
name: string;
|
|
571
460
|
content: typebox0.StaticRecord<[], "Decode", {}, {
|
|
572
|
-
id: PgAttr<PgAttr<
|
|
573
|
-
createdAt: PgAttr<PgAttr<
|
|
574
|
-
updatedAt: PgAttr<PgAttr<
|
|
575
|
-
name:
|
|
576
|
-
content:
|
|
577
|
-
schemaHash:
|
|
578
|
-
status: PgAttr<
|
|
579
|
-
activationDate:
|
|
580
|
-
expiredAt:
|
|
581
|
-
version:
|
|
582
|
-
changeDescription:
|
|
583
|
-
tags:
|
|
584
|
-
creatorId:
|
|
585
|
-
creatorName:
|
|
586
|
-
previousContent:
|
|
587
|
-
migrationLog:
|
|
588
|
-
}, string,
|
|
461
|
+
id: PgAttr<PgAttr<alepha624.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
462
|
+
createdAt: PgAttr<PgAttr<alepha624.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
463
|
+
updatedAt: PgAttr<PgAttr<alepha624.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
464
|
+
name: alepha624.TString;
|
|
465
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
466
|
+
schemaHash: alepha624.TString;
|
|
467
|
+
status: PgAttr<alepha624.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
|
|
468
|
+
activationDate: alepha624.TString;
|
|
469
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
470
|
+
version: alepha624.TInteger;
|
|
471
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
472
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
473
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
474
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
475
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
476
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
477
|
+
}, string, alepha624.TAny>;
|
|
589
478
|
schemaHash: string;
|
|
590
|
-
status: "expired" | "current" | "next" | "future";
|
|
591
479
|
activationDate: string;
|
|
592
480
|
version: number;
|
|
593
481
|
}[]>;
|
|
@@ -598,7 +486,7 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
|
|
|
598
486
|
/**
|
|
599
487
|
* Hook to load initial value from database on start.
|
|
600
488
|
*/
|
|
601
|
-
protected readonly onStart:
|
|
489
|
+
protected readonly onStart: alepha624.HookPrimitive<"start">;
|
|
602
490
|
/**
|
|
603
491
|
* Called after primitive creation to initialize.
|
|
604
492
|
*/
|
|
@@ -660,23 +548,23 @@ interface ConfigSyncPayload {
|
|
|
660
548
|
declare class ConfigStore {
|
|
661
549
|
protected readonly log: alepha_logger0.Logger;
|
|
662
550
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
663
|
-
protected readonly repo:
|
|
664
|
-
id:
|
|
665
|
-
createdAt:
|
|
666
|
-
updatedAt:
|
|
667
|
-
name:
|
|
668
|
-
content:
|
|
669
|
-
schemaHash:
|
|
670
|
-
status:
|
|
671
|
-
activationDate:
|
|
672
|
-
expiredAt:
|
|
673
|
-
version:
|
|
674
|
-
changeDescription:
|
|
675
|
-
tags:
|
|
676
|
-
creatorId:
|
|
677
|
-
creatorName:
|
|
678
|
-
previousContent:
|
|
679
|
-
migrationLog:
|
|
551
|
+
protected readonly repo: alepha_orm0.Repository<TObject<{
|
|
552
|
+
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
553
|
+
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
554
|
+
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha624.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
555
|
+
name: alepha624.TString;
|
|
556
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
557
|
+
schemaHash: alepha624.TString;
|
|
558
|
+
status: alepha_orm0.PgAttr<alepha624.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm0.PG_DEFAULT>;
|
|
559
|
+
activationDate: alepha624.TString;
|
|
560
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
561
|
+
version: alepha624.TInteger;
|
|
562
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
563
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
564
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
565
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
566
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
567
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
680
568
|
}>>;
|
|
681
569
|
/** Unique identifier for this instance (to avoid self-updates) */
|
|
682
570
|
protected readonly instanceId: `${string}-${string}-${string}-${string}-${string}`;
|
|
@@ -685,11 +573,11 @@ declare class ConfigStore {
|
|
|
685
573
|
/** Topic for cross-instance synchronization */
|
|
686
574
|
readonly syncTopic: alepha_topic0.TopicPrimitive<{
|
|
687
575
|
payload: TObject<{
|
|
688
|
-
name:
|
|
689
|
-
version:
|
|
690
|
-
content:
|
|
691
|
-
status:
|
|
692
|
-
instanceId:
|
|
576
|
+
name: alepha624.TString;
|
|
577
|
+
version: alepha624.TInteger;
|
|
578
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
579
|
+
status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
580
|
+
instanceId: alepha624.TString;
|
|
693
581
|
}>;
|
|
694
582
|
}>;
|
|
695
583
|
/**
|
|
@@ -814,46 +702,46 @@ declare class AdminConfigController {
|
|
|
814
702
|
* Useful for admin UI navigation.
|
|
815
703
|
*/
|
|
816
704
|
getConfigTree: alepha_server0.ActionPrimitiveFn<{
|
|
817
|
-
response:
|
|
818
|
-
name:
|
|
819
|
-
path:
|
|
820
|
-
isLeaf:
|
|
821
|
-
children:
|
|
705
|
+
response: alepha624.TArray<alepha624.TObject<{
|
|
706
|
+
name: alepha624.TString;
|
|
707
|
+
path: alepha624.TString;
|
|
708
|
+
isLeaf: alepha624.TBoolean;
|
|
709
|
+
children: alepha624.TArray<alepha624.TAny>;
|
|
822
710
|
}>>;
|
|
823
711
|
}>;
|
|
824
712
|
/**
|
|
825
713
|
* List all unique configuration names.
|
|
826
714
|
*/
|
|
827
715
|
listConfigNames: alepha_server0.ActionPrimitiveFn<{
|
|
828
|
-
response:
|
|
829
|
-
names:
|
|
716
|
+
response: alepha624.TObject<{
|
|
717
|
+
names: alepha624.TArray<alepha624.TString>;
|
|
830
718
|
}>;
|
|
831
719
|
}>;
|
|
832
720
|
/**
|
|
833
721
|
* Get configurations by status.
|
|
834
722
|
*/
|
|
835
723
|
getByStatus: alepha_server0.ActionPrimitiveFn<{
|
|
836
|
-
params:
|
|
837
|
-
status:
|
|
724
|
+
params: alepha624.TObject<{
|
|
725
|
+
status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
838
726
|
}>;
|
|
839
|
-
response:
|
|
840
|
-
configs:
|
|
841
|
-
id:
|
|
842
|
-
createdAt:
|
|
843
|
-
updatedAt:
|
|
844
|
-
name:
|
|
845
|
-
content:
|
|
846
|
-
schemaHash:
|
|
847
|
-
status:
|
|
848
|
-
activationDate:
|
|
849
|
-
expiredAt:
|
|
850
|
-
version:
|
|
851
|
-
changeDescription:
|
|
852
|
-
tags:
|
|
853
|
-
creatorId:
|
|
854
|
-
creatorName:
|
|
855
|
-
previousContent:
|
|
856
|
-
migrationLog:
|
|
727
|
+
response: alepha624.TObject<{
|
|
728
|
+
configs: alepha624.TArray<alepha624.TObject<{
|
|
729
|
+
id: alepha624.TString;
|
|
730
|
+
createdAt: alepha624.TString;
|
|
731
|
+
updatedAt: alepha624.TString;
|
|
732
|
+
name: alepha624.TString;
|
|
733
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
734
|
+
schemaHash: alepha624.TString;
|
|
735
|
+
status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
736
|
+
activationDate: alepha624.TString;
|
|
737
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
738
|
+
version: alepha624.TInteger;
|
|
739
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
740
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
741
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
742
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
743
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
744
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
857
745
|
}>>;
|
|
858
746
|
}>;
|
|
859
747
|
}>;
|
|
@@ -861,27 +749,27 @@ declare class AdminConfigController {
|
|
|
861
749
|
* Get version history for a specific configuration.
|
|
862
750
|
*/
|
|
863
751
|
getHistory: alepha_server0.ActionPrimitiveFn<{
|
|
864
|
-
params:
|
|
865
|
-
name:
|
|
752
|
+
params: alepha624.TObject<{
|
|
753
|
+
name: alepha624.TString;
|
|
866
754
|
}>;
|
|
867
|
-
response:
|
|
868
|
-
versions:
|
|
869
|
-
id:
|
|
870
|
-
createdAt:
|
|
871
|
-
updatedAt:
|
|
872
|
-
name:
|
|
873
|
-
content:
|
|
874
|
-
schemaHash:
|
|
875
|
-
status:
|
|
876
|
-
activationDate:
|
|
877
|
-
expiredAt:
|
|
878
|
-
version:
|
|
879
|
-
changeDescription:
|
|
880
|
-
tags:
|
|
881
|
-
creatorId:
|
|
882
|
-
creatorName:
|
|
883
|
-
previousContent:
|
|
884
|
-
migrationLog:
|
|
755
|
+
response: alepha624.TObject<{
|
|
756
|
+
versions: alepha624.TArray<alepha624.TObject<{
|
|
757
|
+
id: alepha624.TString;
|
|
758
|
+
createdAt: alepha624.TString;
|
|
759
|
+
updatedAt: alepha624.TString;
|
|
760
|
+
name: alepha624.TString;
|
|
761
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
762
|
+
schemaHash: alepha624.TString;
|
|
763
|
+
status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
764
|
+
activationDate: alepha624.TString;
|
|
765
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
766
|
+
version: alepha624.TInteger;
|
|
767
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
768
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
769
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
770
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
771
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
772
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
885
773
|
}>>;
|
|
886
774
|
}>;
|
|
887
775
|
}>;
|
|
@@ -891,77 +779,77 @@ declare class AdminConfigController {
|
|
|
891
779
|
* even if no versions exist in the database yet.
|
|
892
780
|
*/
|
|
893
781
|
getCurrent: alepha_server0.ActionPrimitiveFn<{
|
|
894
|
-
params:
|
|
895
|
-
name:
|
|
782
|
+
params: alepha624.TObject<{
|
|
783
|
+
name: alepha624.TString;
|
|
896
784
|
}>;
|
|
897
|
-
response:
|
|
898
|
-
current:
|
|
899
|
-
id:
|
|
900
|
-
createdAt:
|
|
901
|
-
updatedAt:
|
|
902
|
-
name:
|
|
903
|
-
content:
|
|
904
|
-
schemaHash:
|
|
905
|
-
status:
|
|
906
|
-
activationDate:
|
|
907
|
-
expiredAt:
|
|
908
|
-
version:
|
|
909
|
-
changeDescription:
|
|
910
|
-
tags:
|
|
911
|
-
creatorId:
|
|
912
|
-
creatorName:
|
|
913
|
-
previousContent:
|
|
914
|
-
migrationLog:
|
|
785
|
+
response: alepha624.TObject<{
|
|
786
|
+
current: alepha624.TOptional<alepha624.TObject<{
|
|
787
|
+
id: alepha624.TString;
|
|
788
|
+
createdAt: alepha624.TString;
|
|
789
|
+
updatedAt: alepha624.TString;
|
|
790
|
+
name: alepha624.TString;
|
|
791
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
792
|
+
schemaHash: alepha624.TString;
|
|
793
|
+
status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
794
|
+
activationDate: alepha624.TString;
|
|
795
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
796
|
+
version: alepha624.TInteger;
|
|
797
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
798
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
799
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
800
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
801
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
802
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
915
803
|
}>>;
|
|
916
|
-
next:
|
|
917
|
-
id:
|
|
918
|
-
createdAt:
|
|
919
|
-
updatedAt:
|
|
920
|
-
name:
|
|
921
|
-
content:
|
|
922
|
-
schemaHash:
|
|
923
|
-
status:
|
|
924
|
-
activationDate:
|
|
925
|
-
expiredAt:
|
|
926
|
-
version:
|
|
927
|
-
changeDescription:
|
|
928
|
-
tags:
|
|
929
|
-
creatorId:
|
|
930
|
-
creatorName:
|
|
931
|
-
previousContent:
|
|
932
|
-
migrationLog:
|
|
804
|
+
next: alepha624.TOptional<alepha624.TObject<{
|
|
805
|
+
id: alepha624.TString;
|
|
806
|
+
createdAt: alepha624.TString;
|
|
807
|
+
updatedAt: alepha624.TString;
|
|
808
|
+
name: alepha624.TString;
|
|
809
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
810
|
+
schemaHash: alepha624.TString;
|
|
811
|
+
status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
812
|
+
activationDate: alepha624.TString;
|
|
813
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
814
|
+
version: alepha624.TInteger;
|
|
815
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
816
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
817
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
818
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
819
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
820
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
933
821
|
}>>;
|
|
934
|
-
defaultValue:
|
|
935
|
-
currentValue:
|
|
936
|
-
schema:
|
|
822
|
+
defaultValue: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
823
|
+
currentValue: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
824
|
+
schema: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
937
825
|
}>;
|
|
938
826
|
}>;
|
|
939
827
|
/**
|
|
940
828
|
* Get a specific version of a configuration.
|
|
941
829
|
*/
|
|
942
830
|
getVersion: alepha_server0.ActionPrimitiveFn<{
|
|
943
|
-
params:
|
|
944
|
-
name:
|
|
945
|
-
version:
|
|
831
|
+
params: alepha624.TObject<{
|
|
832
|
+
name: alepha624.TString;
|
|
833
|
+
version: alepha624.TInteger;
|
|
946
834
|
}>;
|
|
947
|
-
response:
|
|
948
|
-
config:
|
|
949
|
-
id:
|
|
950
|
-
createdAt:
|
|
951
|
-
updatedAt:
|
|
952
|
-
name:
|
|
953
|
-
content:
|
|
954
|
-
schemaHash:
|
|
955
|
-
status:
|
|
956
|
-
activationDate:
|
|
957
|
-
expiredAt:
|
|
958
|
-
version:
|
|
959
|
-
changeDescription:
|
|
960
|
-
tags:
|
|
961
|
-
creatorId:
|
|
962
|
-
creatorName:
|
|
963
|
-
previousContent:
|
|
964
|
-
migrationLog:
|
|
835
|
+
response: alepha624.TObject<{
|
|
836
|
+
config: alepha624.TOptional<alepha624.TObject<{
|
|
837
|
+
id: alepha624.TString;
|
|
838
|
+
createdAt: alepha624.TString;
|
|
839
|
+
updatedAt: alepha624.TString;
|
|
840
|
+
name: alepha624.TString;
|
|
841
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
842
|
+
schemaHash: alepha624.TString;
|
|
843
|
+
status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
844
|
+
activationDate: alepha624.TString;
|
|
845
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
846
|
+
version: alepha624.TInteger;
|
|
847
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
848
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
849
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
850
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
851
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
852
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
965
853
|
}>>;
|
|
966
854
|
}>;
|
|
967
855
|
}>;
|
|
@@ -969,98 +857,98 @@ declare class AdminConfigController {
|
|
|
969
857
|
* Create a new configuration version.
|
|
970
858
|
*/
|
|
971
859
|
createVersion: alepha_server0.ActionPrimitiveFn<{
|
|
972
|
-
params:
|
|
973
|
-
name:
|
|
860
|
+
params: alepha624.TObject<{
|
|
861
|
+
name: alepha624.TString;
|
|
974
862
|
}>;
|
|
975
|
-
body:
|
|
976
|
-
content:
|
|
977
|
-
schemaHash:
|
|
978
|
-
activationDate:
|
|
979
|
-
changeDescription:
|
|
980
|
-
tags:
|
|
981
|
-
creatorId:
|
|
982
|
-
creatorName:
|
|
863
|
+
body: alepha624.TObject<{
|
|
864
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
865
|
+
schemaHash: alepha624.TString;
|
|
866
|
+
activationDate: alepha624.TOptional<alepha624.TString>;
|
|
867
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
868
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
869
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
870
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
983
871
|
}>;
|
|
984
|
-
response:
|
|
985
|
-
id:
|
|
986
|
-
createdAt:
|
|
987
|
-
updatedAt:
|
|
988
|
-
name:
|
|
989
|
-
content:
|
|
990
|
-
schemaHash:
|
|
991
|
-
status:
|
|
992
|
-
activationDate:
|
|
993
|
-
expiredAt:
|
|
994
|
-
version:
|
|
995
|
-
changeDescription:
|
|
996
|
-
tags:
|
|
997
|
-
creatorId:
|
|
998
|
-
creatorName:
|
|
999
|
-
previousContent:
|
|
1000
|
-
migrationLog:
|
|
872
|
+
response: alepha624.TObject<{
|
|
873
|
+
id: alepha624.TString;
|
|
874
|
+
createdAt: alepha624.TString;
|
|
875
|
+
updatedAt: alepha624.TString;
|
|
876
|
+
name: alepha624.TString;
|
|
877
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
878
|
+
schemaHash: alepha624.TString;
|
|
879
|
+
status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
880
|
+
activationDate: alepha624.TString;
|
|
881
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
882
|
+
version: alepha624.TInteger;
|
|
883
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
884
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
885
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
886
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
887
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
888
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
1001
889
|
}>;
|
|
1002
890
|
}>;
|
|
1003
891
|
/**
|
|
1004
892
|
* Rollback to a previous version.
|
|
1005
893
|
*/
|
|
1006
894
|
rollback: alepha_server0.ActionPrimitiveFn<{
|
|
1007
|
-
params:
|
|
1008
|
-
name:
|
|
895
|
+
params: alepha624.TObject<{
|
|
896
|
+
name: alepha624.TString;
|
|
1009
897
|
}>;
|
|
1010
|
-
body:
|
|
1011
|
-
targetVersion:
|
|
1012
|
-
changeDescription:
|
|
1013
|
-
creatorId:
|
|
1014
|
-
creatorName:
|
|
898
|
+
body: alepha624.TObject<{
|
|
899
|
+
targetVersion: alepha624.TInteger;
|
|
900
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
901
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
902
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
1015
903
|
}>;
|
|
1016
|
-
response:
|
|
1017
|
-
id:
|
|
1018
|
-
createdAt:
|
|
1019
|
-
updatedAt:
|
|
1020
|
-
name:
|
|
1021
|
-
content:
|
|
1022
|
-
schemaHash:
|
|
1023
|
-
status:
|
|
1024
|
-
activationDate:
|
|
1025
|
-
expiredAt:
|
|
1026
|
-
version:
|
|
1027
|
-
changeDescription:
|
|
1028
|
-
tags:
|
|
1029
|
-
creatorId:
|
|
1030
|
-
creatorName:
|
|
1031
|
-
previousContent:
|
|
1032
|
-
migrationLog:
|
|
904
|
+
response: alepha624.TObject<{
|
|
905
|
+
id: alepha624.TString;
|
|
906
|
+
createdAt: alepha624.TString;
|
|
907
|
+
updatedAt: alepha624.TString;
|
|
908
|
+
name: alepha624.TString;
|
|
909
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
910
|
+
schemaHash: alepha624.TString;
|
|
911
|
+
status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
912
|
+
activationDate: alepha624.TString;
|
|
913
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
914
|
+
version: alepha624.TInteger;
|
|
915
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
916
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
917
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
918
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
919
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
920
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
1033
921
|
}>;
|
|
1034
922
|
}>;
|
|
1035
923
|
/**
|
|
1036
924
|
* Activate a scheduled version immediately.
|
|
1037
925
|
*/
|
|
1038
926
|
activateNow: alepha_server0.ActionPrimitiveFn<{
|
|
1039
|
-
params:
|
|
1040
|
-
name:
|
|
927
|
+
params: alepha624.TObject<{
|
|
928
|
+
name: alepha624.TString;
|
|
1041
929
|
}>;
|
|
1042
|
-
body:
|
|
1043
|
-
version:
|
|
1044
|
-
creatorId:
|
|
1045
|
-
creatorName:
|
|
930
|
+
body: alepha624.TObject<{
|
|
931
|
+
version: alepha624.TInteger;
|
|
932
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
933
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
1046
934
|
}>;
|
|
1047
|
-
response:
|
|
1048
|
-
id:
|
|
1049
|
-
createdAt:
|
|
1050
|
-
updatedAt:
|
|
1051
|
-
name:
|
|
1052
|
-
content:
|
|
1053
|
-
schemaHash:
|
|
1054
|
-
status:
|
|
1055
|
-
activationDate:
|
|
1056
|
-
expiredAt:
|
|
1057
|
-
version:
|
|
1058
|
-
changeDescription:
|
|
1059
|
-
tags:
|
|
1060
|
-
creatorId:
|
|
1061
|
-
creatorName:
|
|
1062
|
-
previousContent:
|
|
1063
|
-
migrationLog:
|
|
935
|
+
response: alepha624.TObject<{
|
|
936
|
+
id: alepha624.TString;
|
|
937
|
+
createdAt: alepha624.TString;
|
|
938
|
+
updatedAt: alepha624.TString;
|
|
939
|
+
name: alepha624.TString;
|
|
940
|
+
content: alepha624.TRecord<string, alepha624.TAny>;
|
|
941
|
+
schemaHash: alepha624.TString;
|
|
942
|
+
status: alepha624.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
943
|
+
activationDate: alepha624.TString;
|
|
944
|
+
expiredAt: alepha624.TOptional<alepha624.TString>;
|
|
945
|
+
version: alepha624.TInteger;
|
|
946
|
+
changeDescription: alepha624.TOptional<alepha624.TString>;
|
|
947
|
+
tags: alepha624.TOptional<alepha624.TArray<alepha624.TString>>;
|
|
948
|
+
creatorId: alepha624.TOptional<alepha624.TString>;
|
|
949
|
+
creatorName: alepha624.TOptional<alepha624.TString>;
|
|
950
|
+
previousContent: alepha624.TOptional<alepha624.TRecord<string, alepha624.TAny>>;
|
|
951
|
+
migrationLog: alepha624.TOptional<alepha624.TString>;
|
|
1064
952
|
}>;
|
|
1065
953
|
}>;
|
|
1066
954
|
/**
|
|
@@ -1068,8 +956,8 @@ declare class AdminConfigController {
|
|
|
1068
956
|
* Normally called by a scheduler, but exposed for manual triggering.
|
|
1069
957
|
*/
|
|
1070
958
|
checkScheduled: alepha_server0.ActionPrimitiveFn<{
|
|
1071
|
-
response:
|
|
1072
|
-
message:
|
|
959
|
+
response: alepha624.TObject<{
|
|
960
|
+
message: alepha624.TString;
|
|
1073
961
|
}>;
|
|
1074
962
|
}>;
|
|
1075
963
|
}
|
|
@@ -1128,7 +1016,7 @@ declare class ConfigActivationScheduler {
|
|
|
1128
1016
|
*
|
|
1129
1017
|
* @module alepha.api.parameters
|
|
1130
1018
|
*/
|
|
1131
|
-
declare const AlephaApiParameters:
|
|
1019
|
+
declare const AlephaApiParameters: alepha624.Service<alepha624.Module>;
|
|
1132
1020
|
//#endregion
|
|
1133
1021
|
export { $config, AdminConfigController, AlephaApiParameters, ConfigActivationScheduler, ConfigPrimitive, ConfigPrimitiveOptions, ConfigStore, ConfigSyncPayload, ConfigTreeNode, Parameter, ParameterInsert, type ParameterStatus, SaveConfigOptions, SetConfigOptions, parameters };
|
|
1134
1022
|
//# sourceMappingURL=index.d.ts.map
|