alepha 0.14.2 → 0.14.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/README.md +1 -1
- package/dist/api/audits/index.browser.js +5 -5
- package/dist/api/audits/index.browser.js.map +1 -1
- package/dist/api/audits/index.d.ts +706 -785
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +13 -13
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.browser.js +5 -5
- package/dist/api/files/index.browser.js.map +1 -1
- package/dist/api/files/index.d.ts +58 -137
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +71 -71
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.browser.js +5 -5
- package/dist/api/jobs/index.browser.js.map +1 -1
- package/dist/api/jobs/index.d.ts +29 -108
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +10 -10
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/notifications/index.browser.js +10 -10
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.d.ts +504 -171
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js +12 -12
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/parameters/index.browser.js +163 -10
- package/dist/api/parameters/index.browser.js.map +1 -1
- package/dist/api/parameters/index.d.ts +277 -351
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +196 -91
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/users/index.browser.js +19 -19
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +787 -852
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +827 -596
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.browser.js +6 -6
- package/dist/api/verifications/index.browser.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/api/verifications/index.js +6 -6
- package/dist/api/verifications/index.js.map +1 -1
- package/dist/bin/index.d.ts +1 -2
- package/dist/bin/index.js +0 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/cli/index.d.ts +252 -131
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +595 -395
- package/dist/cli/index.js.map +1 -1
- package/dist/command/index.d.ts +46 -11
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +99 -19
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +40 -22
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +45 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +40 -22
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +40 -22
- package/dist/core/index.native.js.map +1 -1
- package/dist/fake/index.js +195 -168
- package/dist/fake/index.js.map +1 -1
- package/dist/file/index.d.ts +8 -0
- package/dist/file/index.d.ts.map +1 -1
- package/dist/file/index.js +3 -0
- package/dist/file/index.js.map +1 -1
- package/dist/logger/index.d.ts +1 -1
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +12 -2
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/index.d.ts +59 -195
- package/dist/orm/index.d.ts.map +1 -1
- package/dist/orm/index.js +201 -430
- package/dist/orm/index.js.map +1 -1
- package/dist/security/index.d.ts +1 -1
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +1 -1
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +171 -155
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +0 -1
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cache/index.d.ts +12 -0
- package/dist/server/cache/index.d.ts.map +1 -1
- package/dist/server/cache/index.js +55 -2
- package/dist/server/cache/index.js.map +1 -1
- package/dist/server/compress/index.d.ts +6 -0
- package/dist/server/compress/index.d.ts.map +1 -1
- package/dist/server/compress/index.js +38 -1
- package/dist/server/compress/index.js.map +1 -1
- package/dist/server/core/index.browser.js +2 -2
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.d.ts +10 -10
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +7 -4
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/links/index.browser.js +22 -6
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +46 -44
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +24 -41
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/static/index.js +4 -0
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts +2 -1
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +9 -5
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/vite/index.d.ts +101 -106
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +574 -503
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.d.ts +7 -7
- package/package.json +7 -7
- package/src/api/audits/controllers/{AuditController.ts → AdminAuditController.ts} +5 -6
- package/src/api/audits/entities/audits.ts +5 -5
- package/src/api/audits/index.browser.ts +1 -1
- package/src/api/audits/index.ts +3 -3
- package/src/api/audits/primitives/$audit.spec.ts +276 -0
- package/src/api/audits/services/AuditService.spec.ts +495 -0
- package/src/api/files/__tests__/$bucket.spec.ts +91 -0
- package/src/api/files/controllers/AdminFileStatsController.spec.ts +166 -0
- package/src/api/files/controllers/{StorageStatsController.ts → AdminFileStatsController.ts} +2 -2
- package/src/api/files/controllers/FileController.spec.ts +558 -0
- package/src/api/files/controllers/FileController.ts +4 -5
- package/src/api/files/entities/files.ts +5 -5
- package/src/api/files/index.browser.ts +1 -1
- package/src/api/files/index.ts +4 -4
- package/src/api/files/jobs/FileJobs.spec.ts +52 -0
- package/src/api/files/services/FileService.spec.ts +109 -0
- package/src/api/jobs/__tests__/JobController.spec.ts +343 -0
- package/src/api/jobs/controllers/{JobController.ts → AdminJobController.ts} +2 -2
- package/src/api/jobs/entities/jobExecutions.ts +5 -5
- package/src/api/jobs/index.ts +3 -3
- package/src/api/jobs/primitives/$job.spec.ts +476 -0
- package/src/api/notifications/controllers/{NotificationController.ts → AdminNotificationController.ts} +4 -5
- package/src/api/notifications/entities/notifications.ts +5 -5
- package/src/api/notifications/index.browser.ts +1 -1
- package/src/api/notifications/index.ts +4 -4
- package/src/api/parameters/controllers/{ConfigController.ts → AdminConfigController.ts} +46 -107
- package/src/api/parameters/entities/parameters.ts +7 -17
- package/src/api/parameters/index.ts +3 -3
- package/src/api/parameters/primitives/$config.spec.ts +356 -0
- package/src/api/parameters/schemas/activateConfigBodySchema.ts +12 -0
- package/src/api/parameters/schemas/checkScheduledResponseSchema.ts +8 -0
- package/src/api/parameters/schemas/configCurrentResponseSchema.ts +13 -0
- package/src/api/parameters/schemas/configHistoryResponseSchema.ts +9 -0
- package/src/api/parameters/schemas/configNameParamSchema.ts +10 -0
- package/src/api/parameters/schemas/configNamesResponseSchema.ts +8 -0
- package/src/api/parameters/schemas/configTreeNodeSchema.ts +13 -0
- package/src/api/parameters/schemas/configVersionParamSchema.ts +9 -0
- package/src/api/parameters/schemas/configVersionResponseSchema.ts +9 -0
- package/src/api/parameters/schemas/configsByStatusResponseSchema.ts +9 -0
- package/src/api/parameters/schemas/createConfigVersionBodySchema.ts +24 -0
- package/src/api/parameters/schemas/index.ts +15 -0
- package/src/api/parameters/schemas/parameterResponseSchema.ts +26 -0
- package/src/api/parameters/schemas/parameterStatusSchema.ts +13 -0
- package/src/api/parameters/schemas/rollbackConfigBodySchema.ts +15 -0
- package/src/api/parameters/schemas/statusParamSchema.ts +9 -0
- package/src/api/users/__tests__/EmailVerification.spec.ts +369 -0
- package/src/api/users/__tests__/PasswordReset.spec.ts +550 -0
- package/src/api/users/controllers/AdminIdentityController.spec.ts +365 -0
- package/src/api/users/controllers/{IdentityController.ts → AdminIdentityController.ts} +3 -4
- package/src/api/users/controllers/AdminSessionController.spec.ts +274 -0
- package/src/api/users/controllers/{SessionController.ts → AdminSessionController.ts} +3 -4
- package/src/api/users/controllers/AdminUserController.spec.ts +372 -0
- package/src/api/users/controllers/AdminUserController.ts +116 -0
- package/src/api/users/controllers/UserController.ts +4 -107
- package/src/api/users/controllers/UserRealmController.ts +3 -0
- package/src/api/users/entities/identities.ts +6 -6
- package/src/api/users/entities/sessions.ts +6 -6
- package/src/api/users/entities/users.ts +9 -9
- package/src/api/users/index.ts +9 -6
- package/src/api/users/primitives/$userRealm.ts +13 -8
- package/src/api/users/services/CredentialService.spec.ts +509 -0
- package/src/api/users/services/CredentialService.ts +46 -0
- package/src/api/users/services/IdentityService.ts +15 -0
- package/src/api/users/services/RegistrationService.spec.ts +630 -0
- package/src/api/users/services/RegistrationService.ts +18 -0
- package/src/api/users/services/SessionService.spec.ts +301 -0
- package/src/api/users/services/SessionService.ts +110 -1
- package/src/api/users/services/UserService.ts +67 -2
- package/src/api/verifications/__tests__/CodeVerification.spec.ts +318 -0
- package/src/api/verifications/__tests__/LinkVerification.spec.ts +279 -0
- package/src/api/verifications/entities/verifications.ts +6 -6
- package/src/api/verifications/jobs/VerificationJobs.spec.ts +50 -0
- package/src/batch/__tests__/startup-buffering.spec.ts +458 -0
- package/src/batch/primitives/$batch.spec.ts +766 -0
- package/src/batch/providers/BatchProvider.spec.ts +786 -0
- package/src/bin/index.ts +0 -1
- package/src/bucket/__tests__/shared.ts +194 -0
- package/src/bucket/primitives/$bucket.spec.ts +104 -0
- package/src/bucket/providers/FileStorageProvider.spec.ts +13 -0
- package/src/bucket/providers/LocalFileStorageProvider.spec.ts +77 -0
- package/src/bucket/providers/MemoryFileStorageProvider.spec.ts +82 -0
- package/src/cache/core/__tests__/shared.ts +377 -0
- package/src/cache/core/primitives/$cache.spec.ts +111 -0
- package/src/cache/redis/__tests__/cache-redis.spec.ts +70 -0
- package/src/cli/apps/AlephaCli.ts +25 -6
- package/src/cli/atoms/buildOptions.ts +88 -0
- package/src/cli/commands/build.ts +32 -69
- package/src/cli/commands/db.ts +0 -4
- package/src/cli/commands/dev.ts +34 -10
- package/src/cli/commands/gen/changelog.spec.ts +315 -0
- package/src/cli/commands/{changelog.ts → gen/changelog.ts} +9 -9
- package/src/cli/commands/gen/env.ts +53 -0
- package/src/cli/commands/gen/openapi.ts +71 -0
- package/src/cli/commands/gen/resource.ts +15 -0
- package/src/cli/commands/gen.ts +24 -0
- package/src/cli/commands/init.ts +2 -1
- package/src/cli/commands/root.ts +12 -3
- package/src/cli/commands/test.ts +0 -1
- package/src/cli/commands/typecheck.ts +5 -0
- package/src/cli/commands/verify.ts +1 -1
- package/src/cli/defineConfig.ts +49 -7
- package/src/cli/index.ts +2 -2
- package/src/cli/services/AlephaCliUtils.ts +105 -55
- package/src/cli/services/GitMessageParser.ts +1 -1
- package/src/command/helpers/Asker.spec.ts +127 -0
- package/src/command/helpers/Runner.spec.ts +126 -0
- package/src/command/helpers/Runner.ts +1 -1
- package/src/command/primitives/$command.spec.ts +1588 -0
- package/src/command/primitives/$command.ts +0 -6
- package/src/command/providers/CliProvider.ts +75 -27
- package/src/core/Alepha.ts +87 -0
- package/src/core/__tests__/Alepha-emit.spec.ts +22 -0
- package/src/core/__tests__/Alepha-graph.spec.ts +93 -0
- package/src/core/__tests__/Alepha-has.spec.ts +41 -0
- package/src/core/__tests__/Alepha-inject.spec.ts +93 -0
- package/src/core/__tests__/Alepha-register.spec.ts +81 -0
- package/src/core/__tests__/Alepha-start.spec.ts +176 -0
- package/src/core/__tests__/Alepha-with.spec.ts +14 -0
- package/src/core/__tests__/TypeBox-usecases.spec.ts +35 -0
- package/src/core/__tests__/TypeBoxLocale.spec.ts +15 -0
- package/src/core/__tests__/descriptor.spec.ts +34 -0
- package/src/core/__tests__/fixtures/A.ts +5 -0
- package/src/core/__tests__/pagination.spec.ts +77 -0
- package/src/core/helpers/jsonSchemaToTypeBox.ts +2 -2
- package/src/core/primitives/$atom.spec.ts +43 -0
- package/src/core/primitives/$hook.spec.ts +130 -0
- package/src/core/primitives/$inject.spec.ts +175 -0
- package/src/core/primitives/$module.spec.ts +115 -0
- package/src/core/providers/CodecManager.spec.ts +740 -0
- package/src/core/providers/EventManager.spec.ts +762 -0
- package/src/core/providers/EventManager.ts +4 -0
- package/src/core/providers/StateManager.spec.ts +365 -0
- package/src/core/providers/TypeProvider.spec.ts +1607 -0
- package/src/core/providers/TypeProvider.ts +20 -26
- package/src/datetime/primitives/$interval.spec.ts +103 -0
- package/src/datetime/providers/DateTimeProvider.spec.ts +86 -0
- package/src/email/primitives/$email.spec.ts +175 -0
- package/src/email/providers/LocalEmailProvider.spec.ts +341 -0
- package/src/fake/__tests__/keyName.example.ts +40 -0
- package/src/fake/__tests__/keyName.spec.ts +152 -0
- package/src/fake/__tests__/module.example.ts +32 -0
- package/src/fake/providers/FakeProvider.spec.ts +438 -0
- package/src/file/providers/FileSystemProvider.ts +8 -0
- package/src/file/providers/NodeFileSystemProvider.spec.ts +418 -0
- package/src/file/providers/NodeFileSystemProvider.ts +5 -0
- package/src/file/services/FileDetector.spec.ts +591 -0
- package/src/lock/core/__tests__/shared.ts +190 -0
- package/src/lock/core/providers/MemoryLockProvider.spec.ts +25 -0
- package/src/lock/redis/providers/RedisLockProvider.spec.ts +25 -0
- package/src/logger/__tests__/SimpleFormatterProvider.spec.ts +109 -0
- package/src/logger/index.ts +15 -3
- package/src/logger/primitives/$logger.spec.ts +108 -0
- package/src/logger/services/Logger.spec.ts +295 -0
- package/src/mcp/__tests__/errors.spec.ts +175 -0
- package/src/mcp/__tests__/integration.spec.ts +450 -0
- package/src/mcp/helpers/jsonrpc.spec.ts +380 -0
- package/src/mcp/primitives/$prompt.spec.ts +468 -0
- package/src/mcp/primitives/$resource.spec.ts +390 -0
- package/src/mcp/primitives/$tool.spec.ts +406 -0
- package/src/mcp/providers/McpServerProvider.spec.ts +797 -0
- package/src/mcp/transports/StdioMcpTransport.ts +1 -1
- package/src/orm/__tests__/$repository-crud.spec.ts +276 -0
- package/src/orm/__tests__/$repository-hooks.spec.ts +325 -0
- package/src/orm/__tests__/$repository-orderBy.spec.ts +128 -0
- package/src/orm/__tests__/$repository-pagination-sort.spec.ts +149 -0
- package/src/orm/__tests__/$repository-save.spec.ts +37 -0
- package/src/orm/__tests__/ModelBuilder-integration.spec.ts +490 -0
- package/src/orm/__tests__/ModelBuilder-types.spec.ts +186 -0
- package/src/orm/__tests__/PostgresProvider.spec.ts +46 -0
- package/src/orm/__tests__/delete-returning.spec.ts +256 -0
- package/src/orm/__tests__/deletedAt.spec.ts +80 -0
- package/src/orm/__tests__/enums.spec.ts +315 -0
- package/src/orm/__tests__/execute.spec.ts +72 -0
- package/src/orm/__tests__/fixtures/bigEntitySchema.ts +65 -0
- package/src/orm/__tests__/fixtures/userEntitySchema.ts +27 -0
- package/src/orm/__tests__/joins.spec.ts +1114 -0
- package/src/orm/__tests__/page.spec.ts +287 -0
- package/src/orm/__tests__/primaryKey.spec.ts +87 -0
- package/src/orm/__tests__/query-date-encoding.spec.ts +402 -0
- package/src/orm/__tests__/ref-auto-onDelete.spec.ts +156 -0
- package/src/orm/__tests__/references.spec.ts +102 -0
- package/src/orm/__tests__/security.spec.ts +710 -0
- package/src/orm/__tests__/sqlite.spec.ts +111 -0
- package/src/orm/__tests__/string-operators.spec.ts +429 -0
- package/src/orm/__tests__/timestamps.spec.ts +388 -0
- package/src/orm/__tests__/validation.spec.ts +183 -0
- package/src/orm/__tests__/version.spec.ts +64 -0
- package/src/orm/helpers/parseQueryString.spec.ts +196 -0
- package/src/orm/index.ts +2 -8
- package/src/orm/primitives/$repository.spec.ts +137 -0
- package/src/orm/primitives/$sequence.spec.ts +29 -0
- package/src/orm/primitives/$transaction.spec.ts +82 -0
- package/src/orm/providers/drivers/BunPostgresProvider.ts +3 -3
- package/src/orm/providers/drivers/BunSqliteProvider.ts +1 -1
- package/src/orm/providers/drivers/CloudflareD1Provider.ts +1 -1
- package/src/orm/providers/drivers/DatabaseProvider.ts +1 -1
- package/src/orm/providers/drivers/NodePostgresProvider.ts +3 -3
- package/src/orm/providers/drivers/NodeSqliteProvider.ts +1 -1
- package/src/orm/providers/drivers/PglitePostgresProvider.ts +2 -2
- package/src/orm/services/ModelBuilder.spec.ts +575 -0
- package/src/orm/services/Repository.spec.ts +137 -0
- package/src/queue/core/__tests__/shared.ts +143 -0
- package/src/queue/core/providers/MemoryQueueProvider.spec.ts +23 -0
- package/src/queue/core/providers/WorkerProvider.spec.ts +394 -0
- package/src/queue/redis/providers/RedisQueueProvider.spec.ts +23 -0
- package/src/redis/__tests__/redis.spec.ts +58 -0
- package/src/retry/primitives/$retry.spec.ts +234 -0
- package/src/retry/providers/RetryProvider.spec.ts +438 -0
- package/src/router/__tests__/match.spec.ts +252 -0
- package/src/router/providers/RouterProvider.spec.ts +197 -0
- package/src/scheduler/__tests__/$scheduler-cron.spec.ts +25 -0
- package/src/scheduler/__tests__/$scheduler-interval.spec.ts +25 -0
- package/src/scheduler/__tests__/shared.ts +77 -0
- package/src/security/__tests__/bug-1-wildcard-after-start.spec.ts +229 -0
- package/src/security/__tests__/bug-2-password-validation.spec.ts +245 -0
- package/src/security/__tests__/bug-3-regex-vulnerability.spec.ts +407 -0
- package/src/security/__tests__/bug-4-oauth2-validation.spec.ts +439 -0
- package/src/security/__tests__/multi-layer-permissions.spec.ts +522 -0
- package/src/security/primitives/$permission.spec.ts +30 -0
- package/src/security/primitives/$permission.ts +2 -2
- package/src/security/primitives/$realm.spec.ts +101 -0
- package/src/security/primitives/$role.spec.ts +52 -0
- package/src/security/primitives/$serviceAccount.spec.ts +61 -0
- package/src/security/providers/SecurityProvider.spec.ts +350 -0
- package/src/server/auth/providers/ServerAuthProvider.ts +0 -2
- package/src/server/cache/providers/ServerCacheProvider.spec.ts +1125 -0
- package/src/server/cache/providers/ServerCacheProvider.ts +94 -9
- package/src/server/compress/providers/ServerCompressProvider.spec.ts +31 -0
- package/src/server/compress/providers/ServerCompressProvider.ts +63 -2
- package/src/server/cookies/providers/ServerCookiesProvider.spec.ts +253 -0
- package/src/server/core/__tests__/ServerRouterProvider-getRoutes.spec.ts +334 -0
- package/src/server/core/__tests__/ServerRouterProvider-requestId.spec.ts +129 -0
- package/src/server/core/helpers/ServerReply.ts +2 -2
- package/src/server/core/primitives/$action.spec.ts +191 -0
- package/src/server/core/primitives/$route.spec.ts +65 -0
- package/src/server/core/providers/ServerBodyParserProvider.spec.ts +93 -0
- package/src/server/core/providers/ServerLoggerProvider.spec.ts +100 -0
- package/src/server/core/providers/ServerProvider.ts +14 -2
- package/src/server/core/services/HttpClient.spec.ts +123 -0
- package/src/server/core/services/UserAgentParser.spec.ts +111 -0
- package/src/server/cors/providers/ServerCorsProvider.spec.ts +481 -0
- package/src/server/health/providers/ServerHealthProvider.spec.ts +22 -0
- package/src/server/helmet/providers/ServerHelmetProvider.spec.ts +105 -0
- package/src/server/links/__tests__/$action.spec.ts +238 -0
- package/src/server/links/__tests__/fixtures/CrudApp.ts +122 -0
- package/src/server/links/__tests__/requestId.spec.ts +120 -0
- package/src/server/links/primitives/$remote.spec.ts +228 -0
- package/src/server/links/providers/LinkProvider.spec.ts +54 -0
- package/src/server/links/providers/LinkProvider.ts +49 -3
- package/src/server/links/providers/ServerLinksProvider.ts +1 -53
- package/src/server/links/schemas/apiLinksResponseSchema.ts +7 -0
- package/src/server/metrics/providers/ServerMetricsProvider.spec.ts +25 -0
- package/src/server/multipart/providers/ServerMultipartProvider.spec.ts +528 -0
- package/src/server/proxy/primitives/$proxy.spec.ts +87 -0
- package/src/server/rate-limit/__tests__/ActionRateLimit.spec.ts +211 -0
- package/src/server/rate-limit/providers/ServerRateLimitProvider.spec.ts +344 -0
- package/src/server/security/__tests__/BasicAuth.spec.ts +684 -0
- package/src/server/security/__tests__/ServerSecurityProvider-realm.spec.ts +388 -0
- package/src/server/security/providers/ServerSecurityProvider.spec.ts +123 -0
- package/src/server/static/primitives/$serve.spec.ts +193 -0
- package/src/server/static/providers/ServerStaticProvider.ts +10 -0
- package/src/server/swagger/__tests__/ui.spec.ts +52 -0
- package/src/server/swagger/primitives/$swagger.spec.ts +193 -0
- package/src/server/swagger/providers/ServerSwaggerProvider.ts +19 -12
- package/src/sms/primitives/$sms.spec.ts +165 -0
- package/src/sms/providers/LocalSmsProvider.spec.ts +224 -0
- package/src/sms/providers/MemorySmsProvider.spec.ts +193 -0
- package/src/thread/primitives/$thread.spec.ts +186 -0
- package/src/topic/core/__tests__/shared.ts +144 -0
- package/src/topic/core/providers/MemoryTopicProvider.spec.ts +23 -0
- package/src/topic/redis/providers/RedisTopicProvider.spec.ts +23 -0
- package/src/vite/helpers/importViteReact.ts +13 -0
- package/src/vite/index.ts +1 -21
- package/src/vite/plugins/viteAlephaDev.ts +32 -5
- package/src/vite/plugins/viteAlephaSsrPreload.ts +222 -0
- package/src/vite/tasks/buildClient.ts +11 -0
- package/src/vite/tasks/buildServer.ts +47 -3
- package/src/vite/tasks/devServer.ts +69 -0
- package/src/vite/tasks/index.ts +2 -1
- package/src/vite/tasks/runAlepha.ts +7 -1
- package/src/websocket/__tests__/$websocket-new.spec.ts +195 -0
- package/src/websocket/primitives/$channel.spec.ts +30 -0
- package/src/cli/assets/viteConfigTs.ts +0 -14
- package/src/cli/commands/run.ts +0 -24
- package/src/vite/plugins/viteAlepha.ts +0 -37
- package/src/vite/plugins/viteAlephaBuild.ts +0 -281
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha588 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";
|
|
@@ -6,31 +6,25 @@ import * as alepha_logger0 from "alepha/logger";
|
|
|
6
6
|
import * as alepha_orm14 from "alepha/orm";
|
|
7
7
|
import * as alepha_topic0 from "alepha/topic";
|
|
8
8
|
import * as alepha_scheduler0 from "alepha/scheduler";
|
|
9
|
-
import "bun";
|
|
10
|
-
import "bun:sqlite";
|
|
11
|
-
import "drizzle-orm/bun-sql";
|
|
12
|
-
import "drizzle-orm/bun-sqlite";
|
|
13
9
|
import "drizzle-orm/d1";
|
|
14
10
|
import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
|
|
15
11
|
import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
|
|
16
12
|
import "alepha/retry";
|
|
17
|
-
import "alepha/lock";
|
|
18
13
|
import * as typebox0 from "typebox";
|
|
19
14
|
import "drizzle-orm/sqlite-core";
|
|
15
|
+
import "alepha/lock";
|
|
20
16
|
import "drizzle-orm/postgres-js";
|
|
21
17
|
import "postgres";
|
|
22
18
|
import { UserAccount } from "alepha/security";
|
|
23
19
|
|
|
24
|
-
//#region ../../src/api/parameters/
|
|
20
|
+
//#region ../../src/api/parameters/schemas/parameterStatusSchema.d.ts
|
|
25
21
|
/**
|
|
26
|
-
* Parameter status
|
|
27
|
-
*
|
|
28
|
-
* - EXPIRED: Past version, no longer active
|
|
29
|
-
* - CURRENT: Currently active version
|
|
30
|
-
* - NEXT: Scheduled to become active (closest future date)
|
|
31
|
-
* - FUTURE: Scheduled for activation after NEXT
|
|
22
|
+
* Parameter status enum schema.
|
|
32
23
|
*/
|
|
33
|
-
|
|
24
|
+
declare const parameterStatusSchema: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
25
|
+
type ParameterStatus = Static<typeof parameterStatusSchema>;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region ../../src/api/parameters/entities/parameters.d.ts
|
|
34
28
|
/**
|
|
35
29
|
* Configuration parameter entity for versioned configuration management.
|
|
36
30
|
*
|
|
@@ -40,67 +34,67 @@ type ParameterStatus = "expired" | "current" | "next" | "future";
|
|
|
40
34
|
* - Activation scheduling
|
|
41
35
|
* - Audit trail (creator info)
|
|
42
36
|
*/
|
|
43
|
-
declare const parameters: alepha_orm14.EntityPrimitive<
|
|
44
|
-
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
45
|
-
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
46
|
-
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
37
|
+
declare const parameters: alepha_orm14.EntityPrimitive<alepha588.TObject<{
|
|
38
|
+
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
|
|
39
|
+
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
40
|
+
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
47
41
|
/**
|
|
48
42
|
* Configuration name using dot notation for tree hierarchy.
|
|
49
43
|
* Examples: "app.features", "app.pricing.tiers", "system.limits"
|
|
50
44
|
*/
|
|
51
|
-
name:
|
|
45
|
+
name: alepha588.TString;
|
|
52
46
|
/**
|
|
53
47
|
* The configuration content as JSON.
|
|
54
48
|
*/
|
|
55
|
-
content:
|
|
49
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
56
50
|
/**
|
|
57
51
|
* Schema version hash for detecting schema changes.
|
|
58
52
|
* Used for auto-migration when schema evolves.
|
|
59
53
|
*/
|
|
60
|
-
schemaHash:
|
|
54
|
+
schemaHash: alepha588.TString;
|
|
61
55
|
/**
|
|
62
56
|
* Current status of this parameter version.
|
|
63
57
|
*/
|
|
64
|
-
status: alepha_orm14.PgAttr<
|
|
58
|
+
status: alepha_orm14.PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
|
|
65
59
|
/**
|
|
66
60
|
* When this version should become active.
|
|
67
61
|
* Default is immediate (now).
|
|
68
62
|
*/
|
|
69
|
-
activationDate:
|
|
63
|
+
activationDate: alepha588.TString;
|
|
70
64
|
/**
|
|
71
65
|
* When this version was deactivated (became expired).
|
|
72
66
|
* Null if still active or scheduled.
|
|
73
67
|
*/
|
|
74
|
-
expiredAt:
|
|
68
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
75
69
|
/**
|
|
76
70
|
* Version number for this configuration.
|
|
77
71
|
* Auto-incremented per config name.
|
|
78
72
|
*/
|
|
79
|
-
version:
|
|
73
|
+
version: alepha588.TInteger;
|
|
80
74
|
/**
|
|
81
75
|
* Optional description of changes in this version.
|
|
82
76
|
*/
|
|
83
|
-
changeDescription:
|
|
77
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
84
78
|
/**
|
|
85
79
|
* Optional tags for filtering/categorization.
|
|
86
80
|
*/
|
|
87
|
-
tags:
|
|
81
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
88
82
|
/**
|
|
89
83
|
* Creator user ID (if available).
|
|
90
84
|
*/
|
|
91
|
-
creatorId:
|
|
85
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
92
86
|
/**
|
|
93
87
|
* Creator display name for audit trail.
|
|
94
88
|
*/
|
|
95
|
-
creatorName:
|
|
89
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
96
90
|
/**
|
|
97
91
|
* Previous content before this change (for rollback reference).
|
|
98
92
|
*/
|
|
99
|
-
previousContent:
|
|
93
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
100
94
|
/**
|
|
101
95
|
* Migration log if schema changed.
|
|
102
96
|
*/
|
|
103
|
-
migrationLog:
|
|
97
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
104
98
|
}>>;
|
|
105
99
|
type Parameter = Static<typeof parameters.schema>;
|
|
106
100
|
type ParameterInsert = Omit<Parameter, "id" | "createdAt" | "updatedAt">;
|
|
@@ -321,86 +315,11 @@ interface PgRefOptions {
|
|
|
321
315
|
*/
|
|
322
316
|
type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
|
|
323
317
|
//#endregion
|
|
324
|
-
//#region ../../src/orm/providers/drivers/BunPostgresProvider.d.ts
|
|
325
|
-
declare module "alepha" {
|
|
326
|
-
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
327
|
-
}
|
|
328
|
-
declare const envSchema$1: alepha317.TObject<{
|
|
329
|
-
/**
|
|
330
|
-
* Main configuration for database connection.
|
|
331
|
-
* Accept a string in the format of a Postgres connection URL.
|
|
332
|
-
* Example: postgres://user:password@localhost:5432/database
|
|
333
|
-
* or
|
|
334
|
-
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
335
|
-
*/
|
|
336
|
-
DATABASE_URL: alepha317.TOptional<alepha317.TString>;
|
|
337
|
-
/**
|
|
338
|
-
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
339
|
-
*/
|
|
340
|
-
POSTGRES_SCHEMA: alepha317.TOptional<alepha317.TString>;
|
|
341
|
-
}>;
|
|
342
|
-
/**
|
|
343
|
-
* Bun PostgreSQL provider using Drizzle ORM with Bun's native SQL client.
|
|
344
|
-
*
|
|
345
|
-
* This provider uses Bun's built-in SQL class for PostgreSQL connections,
|
|
346
|
-
* which provides excellent performance on the Bun runtime.
|
|
347
|
-
*
|
|
348
|
-
* @example
|
|
349
|
-
* ```ts
|
|
350
|
-
* // Set DATABASE_URL environment variable
|
|
351
|
-
* // DATABASE_URL=postgres://user:password@localhost:5432/database
|
|
352
|
-
*
|
|
353
|
-
* // Or configure programmatically
|
|
354
|
-
* alepha.with({
|
|
355
|
-
* provide: DatabaseProvider,
|
|
356
|
-
* use: BunPostgresProvider,
|
|
357
|
-
* });
|
|
358
|
-
* ```
|
|
359
|
-
*/
|
|
360
|
-
//#endregion
|
|
361
|
-
//#region ../../src/orm/providers/drivers/BunSqliteProvider.d.ts
|
|
362
|
-
/**
|
|
363
|
-
* Configuration options for the Bun SQLite database provider.
|
|
364
|
-
*/
|
|
365
|
-
declare const bunSqliteOptions: alepha317.Atom<alepha317.TObject<{
|
|
366
|
-
path: alepha317.TOptional<alepha317.TString>;
|
|
367
|
-
}>, "alepha.postgres.bun-sqlite.options">;
|
|
368
|
-
type BunSqliteProviderOptions = Static<typeof bunSqliteOptions.schema>;
|
|
369
|
-
declare module "alepha" {
|
|
370
|
-
interface State {
|
|
371
|
-
[bunSqliteOptions.key]: BunSqliteProviderOptions;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
/**
|
|
375
|
-
* Bun SQLite provider using Drizzle ORM with Bun's native SQLite client.
|
|
376
|
-
*
|
|
377
|
-
* This provider uses Bun's built-in `bun:sqlite` for SQLite connections,
|
|
378
|
-
* which provides excellent performance on the Bun runtime.
|
|
379
|
-
*
|
|
380
|
-
* @example
|
|
381
|
-
* ```ts
|
|
382
|
-
* // Set DATABASE_URL environment variable
|
|
383
|
-
* // DATABASE_URL=sqlite://./my-database.db
|
|
384
|
-
*
|
|
385
|
-
* // Or configure programmatically
|
|
386
|
-
* alepha.with({
|
|
387
|
-
* provide: DatabaseProvider,
|
|
388
|
-
* use: BunSqliteProvider,
|
|
389
|
-
* });
|
|
390
|
-
*
|
|
391
|
-
* // Or use options atom
|
|
392
|
-
* alepha.store.mut(bunSqliteOptions, (old) => ({
|
|
393
|
-
* ...old,
|
|
394
|
-
* path: ":memory:",
|
|
395
|
-
* }));
|
|
396
|
-
* ```
|
|
397
|
-
*/
|
|
398
|
-
//#endregion
|
|
399
318
|
//#region ../../src/orm/providers/drivers/NodePostgresProvider.d.ts
|
|
400
319
|
declare module "alepha" {
|
|
401
320
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
402
321
|
}
|
|
403
|
-
declare const envSchema:
|
|
322
|
+
declare const envSchema: alepha588.TObject<{
|
|
404
323
|
/**
|
|
405
324
|
* Main configuration for database connection.
|
|
406
325
|
* Accept a string in the format of a Postgres connection URL.
|
|
@@ -408,21 +327,21 @@ declare const envSchema: alepha317.TObject<{
|
|
|
408
327
|
* or
|
|
409
328
|
* Example: postgres://user:password@localhost:5432/database?sslmode=require
|
|
410
329
|
*/
|
|
411
|
-
DATABASE_URL:
|
|
330
|
+
DATABASE_URL: alepha588.TOptional<alepha588.TString>;
|
|
412
331
|
/**
|
|
413
332
|
* In addition to the DATABASE_URL, you can specify the postgres schema name.
|
|
414
333
|
*
|
|
415
334
|
* It will monkey patch drizzle tables.
|
|
416
335
|
*/
|
|
417
|
-
POSTGRES_SCHEMA:
|
|
336
|
+
POSTGRES_SCHEMA: alepha588.TOptional<alepha588.TString>;
|
|
418
337
|
}>;
|
|
419
338
|
//#endregion
|
|
420
339
|
//#region ../../src/orm/providers/drivers/NodeSqliteProvider.d.ts
|
|
421
340
|
/**
|
|
422
341
|
* Configuration options for the Node.js SQLite database provider.
|
|
423
342
|
*/
|
|
424
|
-
declare const nodeSqliteOptions:
|
|
425
|
-
path:
|
|
343
|
+
declare const nodeSqliteOptions: alepha588.Atom<alepha588.TObject<{
|
|
344
|
+
path: alepha588.TOptional<alepha588.TString>;
|
|
426
345
|
}>, "alepha.postgres.node-sqlite.options">;
|
|
427
346
|
type NodeSqliteProviderOptions = Static<typeof nodeSqliteOptions.schema>;
|
|
428
347
|
declare module "alepha" {
|
|
@@ -627,46 +546,46 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
|
|
|
627
546
|
creatorId?: string | undefined;
|
|
628
547
|
creatorName?: string | undefined;
|
|
629
548
|
previousContent?: typebox0.StaticRecord<[], "Decode", {}, {
|
|
630
|
-
id: PgAttr<PgAttr<
|
|
631
|
-
createdAt: PgAttr<PgAttr<
|
|
632
|
-
updatedAt: PgAttr<PgAttr<
|
|
633
|
-
name:
|
|
634
|
-
content:
|
|
635
|
-
schemaHash:
|
|
636
|
-
status: PgAttr<
|
|
637
|
-
activationDate:
|
|
638
|
-
expiredAt:
|
|
639
|
-
version:
|
|
640
|
-
changeDescription:
|
|
641
|
-
tags:
|
|
642
|
-
creatorId:
|
|
643
|
-
creatorName:
|
|
644
|
-
previousContent:
|
|
645
|
-
migrationLog:
|
|
646
|
-
}, string,
|
|
549
|
+
id: PgAttr<PgAttr<alepha588.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
550
|
+
createdAt: PgAttr<PgAttr<alepha588.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
551
|
+
updatedAt: PgAttr<PgAttr<alepha588.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
552
|
+
name: alepha588.TString;
|
|
553
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
554
|
+
schemaHash: alepha588.TString;
|
|
555
|
+
status: PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
|
|
556
|
+
activationDate: alepha588.TString;
|
|
557
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
558
|
+
version: alepha588.TInteger;
|
|
559
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
560
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
561
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
562
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
563
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
564
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
565
|
+
}, string, alepha588.TAny> | undefined;
|
|
647
566
|
migrationLog?: string | undefined;
|
|
648
567
|
id: string;
|
|
649
568
|
createdAt: string;
|
|
650
569
|
updatedAt: string;
|
|
651
570
|
name: string;
|
|
652
571
|
content: typebox0.StaticRecord<[], "Decode", {}, {
|
|
653
|
-
id: PgAttr<PgAttr<
|
|
654
|
-
createdAt: PgAttr<PgAttr<
|
|
655
|
-
updatedAt: PgAttr<PgAttr<
|
|
656
|
-
name:
|
|
657
|
-
content:
|
|
658
|
-
schemaHash:
|
|
659
|
-
status: PgAttr<
|
|
660
|
-
activationDate:
|
|
661
|
-
expiredAt:
|
|
662
|
-
version:
|
|
663
|
-
changeDescription:
|
|
664
|
-
tags:
|
|
665
|
-
creatorId:
|
|
666
|
-
creatorName:
|
|
667
|
-
previousContent:
|
|
668
|
-
migrationLog:
|
|
669
|
-
}, string,
|
|
572
|
+
id: PgAttr<PgAttr<alepha588.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
573
|
+
createdAt: PgAttr<PgAttr<alepha588.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
574
|
+
updatedAt: PgAttr<PgAttr<alepha588.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
575
|
+
name: alepha588.TString;
|
|
576
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
577
|
+
schemaHash: alepha588.TString;
|
|
578
|
+
status: PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof PG_DEFAULT>;
|
|
579
|
+
activationDate: alepha588.TString;
|
|
580
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
581
|
+
version: alepha588.TInteger;
|
|
582
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
583
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
584
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
585
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
586
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
587
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
588
|
+
}, string, alepha588.TAny>;
|
|
670
589
|
schemaHash: string;
|
|
671
590
|
status: "expired" | "current" | "next" | "future";
|
|
672
591
|
activationDate: string;
|
|
@@ -679,7 +598,7 @@ declare class ConfigPrimitive<T extends TObject> extends Primitive<ConfigPrimiti
|
|
|
679
598
|
/**
|
|
680
599
|
* Hook to load initial value from database on start.
|
|
681
600
|
*/
|
|
682
|
-
protected readonly onStart:
|
|
601
|
+
protected readonly onStart: alepha588.HookPrimitive<"start">;
|
|
683
602
|
/**
|
|
684
603
|
* Called after primitive creation to initialize.
|
|
685
604
|
*/
|
|
@@ -742,22 +661,22 @@ declare class ConfigStore {
|
|
|
742
661
|
protected readonly log: alepha_logger0.Logger;
|
|
743
662
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
744
663
|
protected readonly repo: alepha_orm14.Repository<TObject<{
|
|
745
|
-
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
746
|
-
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
747
|
-
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<
|
|
748
|
-
name:
|
|
749
|
-
content:
|
|
750
|
-
schemaHash:
|
|
751
|
-
status: alepha_orm14.PgAttr<
|
|
752
|
-
activationDate:
|
|
753
|
-
expiredAt:
|
|
754
|
-
version:
|
|
755
|
-
changeDescription:
|
|
756
|
-
tags:
|
|
757
|
-
creatorId:
|
|
758
|
-
creatorName:
|
|
759
|
-
previousContent:
|
|
760
|
-
migrationLog:
|
|
664
|
+
id: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_PRIMARY_KEY>, typeof alepha_orm14.PG_DEFAULT>;
|
|
665
|
+
createdAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_CREATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
666
|
+
updatedAt: alepha_orm14.PgAttr<alepha_orm14.PgAttr<alepha588.TString, typeof alepha_orm14.PG_UPDATED_AT>, typeof alepha_orm14.PG_DEFAULT>;
|
|
667
|
+
name: alepha588.TString;
|
|
668
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
669
|
+
schemaHash: alepha588.TString;
|
|
670
|
+
status: alepha_orm14.PgAttr<alepha588.TUnsafe<"expired" | "current" | "next" | "future">, typeof alepha_orm14.PG_DEFAULT>;
|
|
671
|
+
activationDate: alepha588.TString;
|
|
672
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
673
|
+
version: alepha588.TInteger;
|
|
674
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
675
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
676
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
677
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
678
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
679
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
761
680
|
}>>;
|
|
762
681
|
/** Unique identifier for this instance (to avoid self-updates) */
|
|
763
682
|
protected readonly instanceId: `${string}-${string}-${string}-${string}-${string}`;
|
|
@@ -766,11 +685,11 @@ declare class ConfigStore {
|
|
|
766
685
|
/** Topic for cross-instance synchronization */
|
|
767
686
|
readonly syncTopic: alepha_topic0.TopicPrimitive<{
|
|
768
687
|
payload: TObject<{
|
|
769
|
-
name:
|
|
770
|
-
version:
|
|
771
|
-
content:
|
|
772
|
-
status:
|
|
773
|
-
instanceId:
|
|
688
|
+
name: alepha588.TString;
|
|
689
|
+
version: alepha588.TInteger;
|
|
690
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
691
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
692
|
+
instanceId: alepha588.TString;
|
|
774
693
|
}>;
|
|
775
694
|
}>;
|
|
776
695
|
/**
|
|
@@ -874,7 +793,7 @@ interface ConfigTreeNode {
|
|
|
874
793
|
children: ConfigTreeNode[];
|
|
875
794
|
}
|
|
876
795
|
//#endregion
|
|
877
|
-
//#region ../../src/api/parameters/controllers/
|
|
796
|
+
//#region ../../src/api/parameters/controllers/AdminConfigController.d.ts
|
|
878
797
|
/**
|
|
879
798
|
* REST API controller for versioned configuration management.
|
|
880
799
|
*
|
|
@@ -886,48 +805,55 @@ interface ConfigTreeNode {
|
|
|
886
805
|
* - Rolling back to previous versions
|
|
887
806
|
* - Activating scheduled versions immediately
|
|
888
807
|
*/
|
|
889
|
-
declare class
|
|
808
|
+
declare class AdminConfigController {
|
|
809
|
+
protected readonly url = "/configs";
|
|
810
|
+
protected readonly group = "admin:configs";
|
|
890
811
|
protected readonly store: ConfigStore;
|
|
891
812
|
/**
|
|
892
813
|
* Get tree structure of all configuration names.
|
|
893
814
|
* Useful for admin UI navigation.
|
|
894
815
|
*/
|
|
895
816
|
getConfigTree: alepha_server0.ActionPrimitiveFn<{
|
|
896
|
-
response:
|
|
817
|
+
response: alepha588.TArray<alepha588.TObject<{
|
|
818
|
+
name: alepha588.TString;
|
|
819
|
+
path: alepha588.TString;
|
|
820
|
+
isLeaf: alepha588.TBoolean;
|
|
821
|
+
children: alepha588.TArray<alepha588.TAny>;
|
|
822
|
+
}>>;
|
|
897
823
|
}>;
|
|
898
824
|
/**
|
|
899
825
|
* List all unique configuration names.
|
|
900
826
|
*/
|
|
901
827
|
listConfigNames: alepha_server0.ActionPrimitiveFn<{
|
|
902
|
-
response:
|
|
903
|
-
names:
|
|
828
|
+
response: alepha588.TObject<{
|
|
829
|
+
names: alepha588.TArray<alepha588.TString>;
|
|
904
830
|
}>;
|
|
905
831
|
}>;
|
|
906
832
|
/**
|
|
907
833
|
* Get configurations by status.
|
|
908
834
|
*/
|
|
909
835
|
getByStatus: alepha_server0.ActionPrimitiveFn<{
|
|
910
|
-
params:
|
|
911
|
-
status:
|
|
836
|
+
params: alepha588.TObject<{
|
|
837
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
912
838
|
}>;
|
|
913
|
-
response:
|
|
914
|
-
configs:
|
|
915
|
-
id:
|
|
916
|
-
createdAt:
|
|
917
|
-
updatedAt:
|
|
918
|
-
name:
|
|
919
|
-
content:
|
|
920
|
-
schemaHash:
|
|
921
|
-
status:
|
|
922
|
-
activationDate:
|
|
923
|
-
expiredAt:
|
|
924
|
-
version:
|
|
925
|
-
changeDescription:
|
|
926
|
-
tags:
|
|
927
|
-
creatorId:
|
|
928
|
-
creatorName:
|
|
929
|
-
previousContent:
|
|
930
|
-
migrationLog:
|
|
839
|
+
response: alepha588.TObject<{
|
|
840
|
+
configs: alepha588.TArray<alepha588.TObject<{
|
|
841
|
+
id: alepha588.TString;
|
|
842
|
+
createdAt: alepha588.TString;
|
|
843
|
+
updatedAt: alepha588.TString;
|
|
844
|
+
name: alepha588.TString;
|
|
845
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
846
|
+
schemaHash: alepha588.TString;
|
|
847
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
848
|
+
activationDate: alepha588.TString;
|
|
849
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
850
|
+
version: alepha588.TInteger;
|
|
851
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
852
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
853
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
854
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
855
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
856
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
931
857
|
}>>;
|
|
932
858
|
}>;
|
|
933
859
|
}>;
|
|
@@ -935,27 +861,27 @@ declare class ConfigController {
|
|
|
935
861
|
* Get version history for a specific configuration.
|
|
936
862
|
*/
|
|
937
863
|
getHistory: alepha_server0.ActionPrimitiveFn<{
|
|
938
|
-
params:
|
|
939
|
-
name:
|
|
864
|
+
params: alepha588.TObject<{
|
|
865
|
+
name: alepha588.TString;
|
|
940
866
|
}>;
|
|
941
|
-
response:
|
|
942
|
-
versions:
|
|
943
|
-
id:
|
|
944
|
-
createdAt:
|
|
945
|
-
updatedAt:
|
|
946
|
-
name:
|
|
947
|
-
content:
|
|
948
|
-
schemaHash:
|
|
949
|
-
status:
|
|
950
|
-
activationDate:
|
|
951
|
-
expiredAt:
|
|
952
|
-
version:
|
|
953
|
-
changeDescription:
|
|
954
|
-
tags:
|
|
955
|
-
creatorId:
|
|
956
|
-
creatorName:
|
|
957
|
-
previousContent:
|
|
958
|
-
migrationLog:
|
|
867
|
+
response: alepha588.TObject<{
|
|
868
|
+
versions: alepha588.TArray<alepha588.TObject<{
|
|
869
|
+
id: alepha588.TString;
|
|
870
|
+
createdAt: alepha588.TString;
|
|
871
|
+
updatedAt: alepha588.TString;
|
|
872
|
+
name: alepha588.TString;
|
|
873
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
874
|
+
schemaHash: alepha588.TString;
|
|
875
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
876
|
+
activationDate: alepha588.TString;
|
|
877
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
878
|
+
version: alepha588.TInteger;
|
|
879
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
880
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
881
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
882
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
883
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
884
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
959
885
|
}>>;
|
|
960
886
|
}>;
|
|
961
887
|
}>;
|
|
@@ -965,77 +891,77 @@ declare class ConfigController {
|
|
|
965
891
|
* even if no versions exist in the database yet.
|
|
966
892
|
*/
|
|
967
893
|
getCurrent: alepha_server0.ActionPrimitiveFn<{
|
|
968
|
-
params:
|
|
969
|
-
name:
|
|
894
|
+
params: alepha588.TObject<{
|
|
895
|
+
name: alepha588.TString;
|
|
970
896
|
}>;
|
|
971
|
-
response:
|
|
972
|
-
current:
|
|
973
|
-
id:
|
|
974
|
-
createdAt:
|
|
975
|
-
updatedAt:
|
|
976
|
-
name:
|
|
977
|
-
content:
|
|
978
|
-
schemaHash:
|
|
979
|
-
status:
|
|
980
|
-
activationDate:
|
|
981
|
-
expiredAt:
|
|
982
|
-
version:
|
|
983
|
-
changeDescription:
|
|
984
|
-
tags:
|
|
985
|
-
creatorId:
|
|
986
|
-
creatorName:
|
|
987
|
-
previousContent:
|
|
988
|
-
migrationLog:
|
|
897
|
+
response: alepha588.TObject<{
|
|
898
|
+
current: alepha588.TOptional<alepha588.TObject<{
|
|
899
|
+
id: alepha588.TString;
|
|
900
|
+
createdAt: alepha588.TString;
|
|
901
|
+
updatedAt: alepha588.TString;
|
|
902
|
+
name: alepha588.TString;
|
|
903
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
904
|
+
schemaHash: alepha588.TString;
|
|
905
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
906
|
+
activationDate: alepha588.TString;
|
|
907
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
908
|
+
version: alepha588.TInteger;
|
|
909
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
910
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
911
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
912
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
913
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
914
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
989
915
|
}>>;
|
|
990
|
-
next:
|
|
991
|
-
id:
|
|
992
|
-
createdAt:
|
|
993
|
-
updatedAt:
|
|
994
|
-
name:
|
|
995
|
-
content:
|
|
996
|
-
schemaHash:
|
|
997
|
-
status:
|
|
998
|
-
activationDate:
|
|
999
|
-
expiredAt:
|
|
1000
|
-
version:
|
|
1001
|
-
changeDescription:
|
|
1002
|
-
tags:
|
|
1003
|
-
creatorId:
|
|
1004
|
-
creatorName:
|
|
1005
|
-
previousContent:
|
|
1006
|
-
migrationLog:
|
|
916
|
+
next: alepha588.TOptional<alepha588.TObject<{
|
|
917
|
+
id: alepha588.TString;
|
|
918
|
+
createdAt: alepha588.TString;
|
|
919
|
+
updatedAt: alepha588.TString;
|
|
920
|
+
name: alepha588.TString;
|
|
921
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
922
|
+
schemaHash: alepha588.TString;
|
|
923
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
924
|
+
activationDate: alepha588.TString;
|
|
925
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
926
|
+
version: alepha588.TInteger;
|
|
927
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
928
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
929
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
930
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
931
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
932
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
1007
933
|
}>>;
|
|
1008
|
-
defaultValue:
|
|
1009
|
-
currentValue:
|
|
1010
|
-
schema:
|
|
934
|
+
defaultValue: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
935
|
+
currentValue: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
936
|
+
schema: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
1011
937
|
}>;
|
|
1012
938
|
}>;
|
|
1013
939
|
/**
|
|
1014
940
|
* Get a specific version of a configuration.
|
|
1015
941
|
*/
|
|
1016
942
|
getVersion: alepha_server0.ActionPrimitiveFn<{
|
|
1017
|
-
params:
|
|
1018
|
-
name:
|
|
1019
|
-
version:
|
|
943
|
+
params: alepha588.TObject<{
|
|
944
|
+
name: alepha588.TString;
|
|
945
|
+
version: alepha588.TInteger;
|
|
1020
946
|
}>;
|
|
1021
|
-
response:
|
|
1022
|
-
config:
|
|
1023
|
-
id:
|
|
1024
|
-
createdAt:
|
|
1025
|
-
updatedAt:
|
|
1026
|
-
name:
|
|
1027
|
-
content:
|
|
1028
|
-
schemaHash:
|
|
1029
|
-
status:
|
|
1030
|
-
activationDate:
|
|
1031
|
-
expiredAt:
|
|
1032
|
-
version:
|
|
1033
|
-
changeDescription:
|
|
1034
|
-
tags:
|
|
1035
|
-
creatorId:
|
|
1036
|
-
creatorName:
|
|
1037
|
-
previousContent:
|
|
1038
|
-
migrationLog:
|
|
947
|
+
response: alepha588.TObject<{
|
|
948
|
+
config: alepha588.TOptional<alepha588.TObject<{
|
|
949
|
+
id: alepha588.TString;
|
|
950
|
+
createdAt: alepha588.TString;
|
|
951
|
+
updatedAt: alepha588.TString;
|
|
952
|
+
name: alepha588.TString;
|
|
953
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
954
|
+
schemaHash: alepha588.TString;
|
|
955
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
956
|
+
activationDate: alepha588.TString;
|
|
957
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
958
|
+
version: alepha588.TInteger;
|
|
959
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
960
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
961
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
962
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
963
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
964
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
1039
965
|
}>>;
|
|
1040
966
|
}>;
|
|
1041
967
|
}>;
|
|
@@ -1043,98 +969,98 @@ declare class ConfigController {
|
|
|
1043
969
|
* Create a new configuration version.
|
|
1044
970
|
*/
|
|
1045
971
|
createVersion: alepha_server0.ActionPrimitiveFn<{
|
|
1046
|
-
params:
|
|
1047
|
-
name:
|
|
972
|
+
params: alepha588.TObject<{
|
|
973
|
+
name: alepha588.TString;
|
|
1048
974
|
}>;
|
|
1049
|
-
body:
|
|
1050
|
-
content:
|
|
1051
|
-
schemaHash:
|
|
1052
|
-
activationDate:
|
|
1053
|
-
changeDescription:
|
|
1054
|
-
tags:
|
|
1055
|
-
creatorId:
|
|
1056
|
-
creatorName:
|
|
975
|
+
body: alepha588.TObject<{
|
|
976
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
977
|
+
schemaHash: alepha588.TString;
|
|
978
|
+
activationDate: alepha588.TOptional<alepha588.TString>;
|
|
979
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
980
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
981
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
982
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
1057
983
|
}>;
|
|
1058
|
-
response:
|
|
1059
|
-
id:
|
|
1060
|
-
createdAt:
|
|
1061
|
-
updatedAt:
|
|
1062
|
-
name:
|
|
1063
|
-
content:
|
|
1064
|
-
schemaHash:
|
|
1065
|
-
status:
|
|
1066
|
-
activationDate:
|
|
1067
|
-
expiredAt:
|
|
1068
|
-
version:
|
|
1069
|
-
changeDescription:
|
|
1070
|
-
tags:
|
|
1071
|
-
creatorId:
|
|
1072
|
-
creatorName:
|
|
1073
|
-
previousContent:
|
|
1074
|
-
migrationLog:
|
|
984
|
+
response: alepha588.TObject<{
|
|
985
|
+
id: alepha588.TString;
|
|
986
|
+
createdAt: alepha588.TString;
|
|
987
|
+
updatedAt: alepha588.TString;
|
|
988
|
+
name: alepha588.TString;
|
|
989
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
990
|
+
schemaHash: alepha588.TString;
|
|
991
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
992
|
+
activationDate: alepha588.TString;
|
|
993
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
994
|
+
version: alepha588.TInteger;
|
|
995
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
996
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
997
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
998
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
999
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
1000
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
1075
1001
|
}>;
|
|
1076
1002
|
}>;
|
|
1077
1003
|
/**
|
|
1078
1004
|
* Rollback to a previous version.
|
|
1079
1005
|
*/
|
|
1080
1006
|
rollback: alepha_server0.ActionPrimitiveFn<{
|
|
1081
|
-
params:
|
|
1082
|
-
name:
|
|
1007
|
+
params: alepha588.TObject<{
|
|
1008
|
+
name: alepha588.TString;
|
|
1083
1009
|
}>;
|
|
1084
|
-
body:
|
|
1085
|
-
targetVersion:
|
|
1086
|
-
changeDescription:
|
|
1087
|
-
creatorId:
|
|
1088
|
-
creatorName:
|
|
1010
|
+
body: alepha588.TObject<{
|
|
1011
|
+
targetVersion: alepha588.TInteger;
|
|
1012
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
1013
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
1014
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
1089
1015
|
}>;
|
|
1090
|
-
response:
|
|
1091
|
-
id:
|
|
1092
|
-
createdAt:
|
|
1093
|
-
updatedAt:
|
|
1094
|
-
name:
|
|
1095
|
-
content:
|
|
1096
|
-
schemaHash:
|
|
1097
|
-
status:
|
|
1098
|
-
activationDate:
|
|
1099
|
-
expiredAt:
|
|
1100
|
-
version:
|
|
1101
|
-
changeDescription:
|
|
1102
|
-
tags:
|
|
1103
|
-
creatorId:
|
|
1104
|
-
creatorName:
|
|
1105
|
-
previousContent:
|
|
1106
|
-
migrationLog:
|
|
1016
|
+
response: alepha588.TObject<{
|
|
1017
|
+
id: alepha588.TString;
|
|
1018
|
+
createdAt: alepha588.TString;
|
|
1019
|
+
updatedAt: alepha588.TString;
|
|
1020
|
+
name: alepha588.TString;
|
|
1021
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
1022
|
+
schemaHash: alepha588.TString;
|
|
1023
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
1024
|
+
activationDate: alepha588.TString;
|
|
1025
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
1026
|
+
version: alepha588.TInteger;
|
|
1027
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
1028
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
1029
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
1030
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
1031
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
1032
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
1107
1033
|
}>;
|
|
1108
1034
|
}>;
|
|
1109
1035
|
/**
|
|
1110
1036
|
* Activate a scheduled version immediately.
|
|
1111
1037
|
*/
|
|
1112
1038
|
activateNow: alepha_server0.ActionPrimitiveFn<{
|
|
1113
|
-
params:
|
|
1114
|
-
name:
|
|
1039
|
+
params: alepha588.TObject<{
|
|
1040
|
+
name: alepha588.TString;
|
|
1115
1041
|
}>;
|
|
1116
|
-
body:
|
|
1117
|
-
version:
|
|
1118
|
-
creatorId:
|
|
1119
|
-
creatorName:
|
|
1042
|
+
body: alepha588.TObject<{
|
|
1043
|
+
version: alepha588.TInteger;
|
|
1044
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
1045
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
1120
1046
|
}>;
|
|
1121
|
-
response:
|
|
1122
|
-
id:
|
|
1123
|
-
createdAt:
|
|
1124
|
-
updatedAt:
|
|
1125
|
-
name:
|
|
1126
|
-
content:
|
|
1127
|
-
schemaHash:
|
|
1128
|
-
status:
|
|
1129
|
-
activationDate:
|
|
1130
|
-
expiredAt:
|
|
1131
|
-
version:
|
|
1132
|
-
changeDescription:
|
|
1133
|
-
tags:
|
|
1134
|
-
creatorId:
|
|
1135
|
-
creatorName:
|
|
1136
|
-
previousContent:
|
|
1137
|
-
migrationLog:
|
|
1047
|
+
response: alepha588.TObject<{
|
|
1048
|
+
id: alepha588.TString;
|
|
1049
|
+
createdAt: alepha588.TString;
|
|
1050
|
+
updatedAt: alepha588.TString;
|
|
1051
|
+
name: alepha588.TString;
|
|
1052
|
+
content: alepha588.TRecord<string, alepha588.TAny>;
|
|
1053
|
+
schemaHash: alepha588.TString;
|
|
1054
|
+
status: alepha588.TUnsafe<"expired" | "current" | "next" | "future">;
|
|
1055
|
+
activationDate: alepha588.TString;
|
|
1056
|
+
expiredAt: alepha588.TOptional<alepha588.TString>;
|
|
1057
|
+
version: alepha588.TInteger;
|
|
1058
|
+
changeDescription: alepha588.TOptional<alepha588.TString>;
|
|
1059
|
+
tags: alepha588.TOptional<alepha588.TArray<alepha588.TString>>;
|
|
1060
|
+
creatorId: alepha588.TOptional<alepha588.TString>;
|
|
1061
|
+
creatorName: alepha588.TOptional<alepha588.TString>;
|
|
1062
|
+
previousContent: alepha588.TOptional<alepha588.TRecord<string, alepha588.TAny>>;
|
|
1063
|
+
migrationLog: alepha588.TOptional<alepha588.TString>;
|
|
1138
1064
|
}>;
|
|
1139
1065
|
}>;
|
|
1140
1066
|
/**
|
|
@@ -1142,8 +1068,8 @@ declare class ConfigController {
|
|
|
1142
1068
|
* Normally called by a scheduler, but exposed for manual triggering.
|
|
1143
1069
|
*/
|
|
1144
1070
|
checkScheduled: alepha_server0.ActionPrimitiveFn<{
|
|
1145
|
-
response:
|
|
1146
|
-
message:
|
|
1071
|
+
response: alepha588.TObject<{
|
|
1072
|
+
message: alepha588.TString;
|
|
1147
1073
|
}>;
|
|
1148
1074
|
}>;
|
|
1149
1075
|
}
|
|
@@ -1202,7 +1128,7 @@ declare class ConfigActivationScheduler {
|
|
|
1202
1128
|
*
|
|
1203
1129
|
* @module alepha.api.parameters
|
|
1204
1130
|
*/
|
|
1205
|
-
declare const AlephaApiParameters:
|
|
1131
|
+
declare const AlephaApiParameters: alepha588.Service<alepha588.Module>;
|
|
1206
1132
|
//#endregion
|
|
1207
|
-
export { $config, AlephaApiParameters, ConfigActivationScheduler,
|
|
1133
|
+
export { $config, AdminConfigController, AlephaApiParameters, ConfigActivationScheduler, ConfigPrimitive, ConfigPrimitiveOptions, ConfigStore, ConfigSyncPayload, ConfigTreeNode, Parameter, ParameterInsert, type ParameterStatus, SaveConfigOptions, SetConfigOptions, parameters };
|
|
1208
1134
|
//# sourceMappingURL=index.d.ts.map
|