alepha 0.22.0 → 0.24.0
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/assets/swagger-ui/swagger-ui-bundle.js +1 -1
- package/assets/swagger-ui/swagger-ui-standalone-preset.js +1 -1
- package/dist/api/audits/index.browser.js +49 -52
- package/dist/api/audits/index.browser.js.map +1 -1
- package/dist/api/audits/index.d.ts +629 -565
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +206 -98
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.browser.js +44 -44
- package/dist/api/files/index.browser.js.map +1 -1
- package/dist/api/files/index.d.ts +292 -293
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +61 -64
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.browser.js +61 -59
- package/dist/api/jobs/index.browser.js.map +1 -1
- package/dist/api/jobs/index.d.ts +546 -347
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +165 -86
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +242 -230
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/keys/index.js +63 -66
- package/dist/api/keys/index.js.map +1 -1
- package/dist/api/notifications/index.browser.js +40 -38
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.d.ts +339 -209
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js +108 -60
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/oauth/index.d.ts +190 -78
- package/dist/api/oauth/index.d.ts.map +1 -1
- package/dist/api/oauth/index.js +290 -68
- package/dist/api/oauth/index.js.map +1 -1
- package/dist/api/organizations/index.browser.js +14 -14
- package/dist/api/organizations/index.browser.js.map +1 -1
- package/dist/api/organizations/index.d.ts +158 -134
- package/dist/api/organizations/index.d.ts.map +1 -1
- package/dist/api/organizations/index.js +18 -18
- package/dist/api/organizations/index.js.map +1 -1
- package/dist/api/parameters/index.browser.js +74 -53
- package/dist/api/parameters/index.browser.js.map +1 -1
- package/dist/api/parameters/index.d.ts +607 -513
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +205 -127
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/payments/index.d.ts +652 -449
- package/dist/api/payments/index.d.ts.map +1 -1
- package/dist/api/payments/index.js +159 -93
- package/dist/api/payments/index.js.map +1 -1
- package/dist/api/subscriptions/index.d.ts +1032 -762
- package/dist/api/subscriptions/index.d.ts.map +1 -1
- package/dist/api/subscriptions/index.js +166 -185
- package/dist/api/subscriptions/index.js.map +1 -1
- package/dist/api/users/index.browser.js +48 -71
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +1297 -1109
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +454 -369
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.browser.js +17 -17
- package/dist/api/verifications/index.browser.js.map +1 -1
- package/dist/api/verifications/index.d.ts +169 -157
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/api/verifications/index.js +47 -95
- package/dist/api/verifications/index.js.map +1 -1
- package/dist/background/index.d.ts +0 -1
- package/dist/background/index.d.ts.map +1 -1
- package/dist/background/index.js.map +1 -1
- package/dist/background/index.workerd.js.map +1 -1
- package/dist/batch/index.d.ts +0 -1
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/batch/index.js.map +1 -1
- package/dist/bin/index.js +1 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/bucket/index.d.ts +27 -32
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +56 -26
- package/dist/bucket/index.js.map +1 -1
- package/dist/bucket/index.workerd.js +52 -24
- package/dist/bucket/index.workerd.js.map +1 -1
- package/dist/cache/core/index.d.ts +4 -6
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js +4 -10
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js +4 -10
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cache/database/index.d.ts +22 -23
- package/dist/cache/database/index.d.ts.map +1 -1
- package/dist/cache/database/index.js +11 -20
- package/dist/cache/database/index.js.map +1 -1
- package/dist/cache/redis/index.d.ts +3 -4
- 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/captcha/index.d.ts.map +1 -1
- package/dist/captcha/index.js +4 -4
- package/dist/captcha/index.js.map +1 -1
- package/dist/cli/config/index.d.ts +0 -1
- package/dist/cli/config/index.d.ts.map +1 -1
- package/dist/cli/core/index.d.ts +244 -475
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +308 -383
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +3 -9
- package/dist/cli/devtools/index.d.ts.map +1 -1
- package/dist/cli/devtools/index.js +3 -3
- package/dist/cli/devtools/index.js.map +1 -1
- package/dist/cli/i18n/index.d.ts +20 -39
- package/dist/cli/i18n/index.d.ts.map +1 -1
- package/dist/cli/i18n/index.js +51 -17
- package/dist/cli/i18n/index.js.map +1 -1
- package/dist/cli/platform/index.d.ts +89 -82
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +27 -33
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/platform-lib/index.d.ts +383 -410
- package/dist/cli/platform-lib/index.d.ts.map +1 -1
- package/dist/cli/platform-lib/index.js +300 -258
- package/dist/cli/platform-lib/index.js.map +1 -1
- package/dist/cli/vendor/index.d.ts +17 -41
- package/dist/cli/vendor/index.d.ts.map +1 -1
- package/dist/cli/vendor/index.js +10 -13
- package/dist/cli/vendor/index.js.map +1 -1
- package/dist/command/index.d.ts +82 -194
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +160 -563
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +845 -859
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +787 -527
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +845 -859
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +845 -859
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +845 -859
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.browser.js +1 -1
- package/dist/crypto/index.browser.js.map +1 -1
- package/dist/crypto/index.d.ts +3 -4
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/crypto/index.js +6 -3
- package/dist/crypto/index.js.map +1 -1
- package/dist/datetime/index.d.ts +12 -2
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/datetime/index.js +6 -1
- package/dist/datetime/index.js.map +1 -1
- package/dist/email/brevo/index.d.ts +0 -1
- package/dist/email/brevo/index.d.ts.map +1 -1
- package/dist/email/brevo/index.js +4 -4
- package/dist/email/brevo/index.js.map +1 -1
- package/dist/email/cloudflare/index.d.ts +0 -1
- package/dist/email/cloudflare/index.d.ts.map +1 -1
- package/dist/email/cloudflare/index.js +2 -2
- package/dist/email/cloudflare/index.js.map +1 -1
- package/dist/email/core/index.d.ts +15 -7
- package/dist/email/core/index.d.ts.map +1 -1
- package/dist/email/core/index.js +14 -5
- package/dist/email/core/index.js.map +1 -1
- package/dist/email/core/index.workerd.js +5 -1
- package/dist/email/core/index.workerd.js.map +1 -1
- package/dist/email/smtp/index.d.ts +8 -9
- package/dist/email/smtp/index.d.ts.map +1 -1
- package/dist/email/smtp/index.js +702 -479
- package/dist/email/smtp/index.js.map +1 -1
- package/dist/fake/index.d.ts +1580 -1238
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js +11728 -32131
- package/dist/fake/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +13 -9
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js +5 -5
- package/dist/lock/core/index.js.map +1 -1
- package/dist/lock/redis/index.d.ts +0 -1
- package/dist/lock/redis/index.d.ts.map +1 -1
- package/dist/lock/redis/index.js.map +1 -1
- package/dist/logger/index.d.ts +81 -69
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +123 -56
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +36 -90
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +65 -70
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js +54 -40
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +140 -106
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +145 -150
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +144 -109
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.bun.js +64 -54
- package/dist/orm/postgres/index.bun.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +36 -76
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/orm/postgres/index.js +67 -57
- package/dist/orm/postgres/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +62 -75
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/core/index.js +48 -71
- package/dist/queue/core/index.js.map +1 -1
- package/dist/queue/core/index.workerd.js +48 -71
- package/dist/queue/core/index.workerd.js.map +1 -1
- package/dist/queue/redis/index.d.ts +3 -4
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/queue/redis/index.js +2 -2
- package/dist/queue/redis/index.js.map +1 -1
- package/dist/react/auth/index.browser.js.map +1 -1
- package/dist/react/auth/index.d.ts +7 -4
- package/dist/react/auth/index.d.ts.map +1 -1
- package/dist/react/auth/index.js.map +1 -1
- package/dist/react/core/index.d.ts +87 -5
- package/dist/react/core/index.d.ts.map +1 -1
- package/dist/react/core/index.js +170 -23
- package/dist/react/core/index.js.map +1 -1
- package/dist/react/form/index.d.ts +4 -6
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/form/index.js +107 -71
- package/dist/react/form/index.js.map +1 -1
- package/dist/react/head/index.browser.js.map +1 -1
- package/dist/react/head/index.d.ts +0 -1
- package/dist/react/head/index.d.ts.map +1 -1
- package/dist/react/head/index.js.map +1 -1
- package/dist/react/i18n/index.d.ts +47 -5
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/i18n/index.js +116 -12
- package/dist/react/i18n/index.js.map +1 -1
- package/dist/react/intro/index.d.ts +1 -4
- package/dist/react/intro/index.d.ts.map +1 -1
- package/dist/react/intro/index.js.map +1 -1
- package/dist/react/router/index.browser.js +188 -29
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +480 -372
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +261 -47
- package/dist/react/router/index.js.map +1 -1
- package/dist/react/sitemap/index.browser.js +35 -0
- package/dist/react/sitemap/index.browser.js.map +1 -0
- package/dist/react/sitemap/index.d.ts +91 -0
- package/dist/react/sitemap/index.d.ts.map +1 -0
- package/dist/react/sitemap/index.js +131 -0
- package/dist/react/sitemap/index.js.map +1 -0
- package/dist/react/testing/index.d.ts +4 -5
- package/dist/react/testing/index.d.ts.map +1 -1
- package/dist/react/testing/index.js +41 -15
- package/dist/react/testing/index.js.map +1 -1
- package/dist/react/testing/{chunk-BpyX8vjI.js → rolldown-runtime-Bl3dcgcQ.js} +1 -1
- package/dist/react/ui/index.d.ts +35 -34
- package/dist/react/ui/index.d.ts.map +1 -1
- package/dist/react/ui/index.js +12 -17
- package/dist/react/ui/index.js.map +1 -1
- package/dist/redis/index.bun.js +5 -5
- package/dist/redis/index.bun.js.map +1 -1
- package/dist/redis/index.d.ts +6 -7
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/redis/index.js +6 -6
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.d.ts +0 -1
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/retry/index.js.map +1 -1
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +4 -12
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +9 -4
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/index.workerd.js +9 -4
- package/dist/scheduler/index.workerd.js.map +1 -1
- package/dist/security/index.browser.js +30 -28
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +113 -44
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +452 -37
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.browser.js +19 -19
- package/dist/server/auth/index.browser.js.map +1 -1
- package/dist/server/auth/index.d.ts +215 -187
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +1145 -86
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cookies/index.browser.js +103 -5
- package/dist/server/cookies/index.browser.js.map +1 -1
- package/dist/server/cookies/index.d.ts +86 -4
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/cookies/index.js +121 -8
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.browser.js +22 -27
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.d.ts +134 -85
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +130 -118
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +9 -10
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/cors/index.js +14 -26
- package/dist/server/cors/index.js.map +1 -1
- package/dist/server/etag/index.d.ts +2 -3
- package/dist/server/etag/index.d.ts.map +1 -1
- package/dist/server/etag/index.js.map +1 -1
- package/dist/server/health/index.d.ts +18 -19
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/health/index.js +6 -6
- package/dist/server/health/index.js.map +1 -1
- package/dist/server/links/index.browser.js +15 -18
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +66 -67
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +29 -32
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +0 -1
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/metrics/index.js +10 -3
- package/dist/server/metrics/index.js.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/proxy/index.js.map +1 -1
- package/dist/server/rate-limit/index.d.ts +8 -9
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.js +6 -12
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/static/index.d.ts +0 -1
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts +4 -4
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +37 -25
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +0 -1
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.browser.js.map +1 -1
- package/dist/system/index.d.ts +0 -1
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +2 -1
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.workerd.js.map +1 -1
- package/dist/topic/core/index.d.ts +19 -20
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/core/index.js +8 -8
- package/dist/topic/core/index.js.map +1 -1
- package/dist/topic/redis/index.d.ts +3 -4
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/dist/topic/redis/index.js +2 -2
- package/dist/topic/redis/index.js.map +1 -1
- package/package.json +36 -36
- package/src/api/audits/__tests__/AuditJobs.spec.ts +83 -0
- package/src/api/audits/__tests__/AuditService.spec.ts +139 -1
- package/src/api/audits/controllers/AdminAuditController.ts +41 -41
- package/src/api/audits/entities/audits.ts +22 -22
- package/src/api/audits/index.ts +6 -1
- package/src/api/audits/jobs/AuditJobs.ts +29 -0
- package/src/api/audits/parameters/AuditParameters.ts +51 -0
- package/src/api/audits/primitives/$audit.ts +24 -0
- package/src/api/audits/schemas/auditQuerySchema.ts +13 -13
- package/src/api/audits/schemas/createAuditSchema.ts +18 -18
- package/src/api/audits/services/AuditService.ts +79 -7
- package/src/api/files/__tests__/FileController.spec.ts +5 -5
- package/src/api/files/__tests__/FileJobs.spec.ts +6 -0
- package/src/api/files/controllers/FileController.ts +25 -25
- package/src/api/files/entities/files.ts +15 -15
- package/src/api/files/schemas/fileCreatorSummarySchema.ts +7 -7
- package/src/api/files/schemas/fileQuerySchema.ts +9 -9
- package/src/api/files/schemas/fileResourceSchema.ts +7 -9
- package/src/api/files/schemas/storageStatsSchema.ts +13 -13
- package/src/api/jobs/__tests__/$job-hardening.spec.ts +289 -0
- package/src/api/jobs/__tests__/$job.spec.ts +18 -18
- package/src/api/jobs/controllers/AdminJobController.ts +8 -8
- package/src/api/jobs/entities/jobExecutionEntity.ts +29 -19
- package/src/api/jobs/providers/JobProvider.ts +128 -12
- package/src/api/jobs/providers/JobQueueProvider.ts +2 -2
- package/src/api/jobs/schemas/jobConfigAtom.ts +22 -22
- package/src/api/jobs/schemas/jobExecutionQuerySchema.ts +6 -6
- package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +11 -15
- package/src/api/jobs/schemas/jobRegistrationSchema.ts +20 -19
- package/src/api/jobs/schemas/triggerJobSchema.ts +3 -3
- package/src/api/jobs/services/JobService.ts +6 -6
- package/src/api/keys/__tests__/ApiKeyService.spec.ts +2 -2
- package/src/api/keys/controllers/AdminApiKeyController.ts +10 -10
- package/src/api/keys/entities/apiKeyEntity.ts +15 -15
- package/src/api/keys/schemas/adminApiKeyQuerySchema.ts +4 -4
- package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +15 -15
- package/src/api/keys/schemas/createApiKeyBodySchema.ts +5 -5
- package/src/api/keys/schemas/createApiKeyResponseSchema.ts +9 -9
- package/src/api/keys/schemas/listApiKeyResponseSchema.ts +13 -13
- package/src/api/keys/schemas/revokeApiKeyParamsSchema.ts +3 -3
- package/src/api/keys/schemas/revokeApiKeyResponseSchema.ts +3 -3
- package/src/api/notifications/__tests__/AlephaApiNotifications.spec.ts +2 -2
- package/src/api/notifications/controllers/AdminNotificationController.ts +38 -14
- package/src/api/notifications/jobs/NotificationJobs.ts +7 -6
- package/src/api/notifications/primitives/$notification.ts +43 -4
- package/src/api/notifications/schemas/notificationContactPreferencesSchema.ts +4 -4
- package/src/api/notifications/schemas/notificationContactSchema.ts +7 -7
- package/src/api/notifications/schemas/notificationDetailResourceSchema.ts +9 -11
- package/src/api/notifications/schemas/notificationPayloadSchema.ts +11 -9
- package/src/api/notifications/schemas/notificationQuerySchema.ts +6 -6
- package/src/api/notifications/schemas/notificationResourceSchema.ts +14 -14
- package/src/api/notifications/services/NotificationSenderService.ts +38 -2
- package/src/api/oauth/__tests__/OAuthClientService.spec.ts +42 -0
- package/src/api/oauth/__tests__/OAuthController.spec.ts +128 -0
- package/src/api/oauth/controllers/OAuthController.ts +132 -12
- package/src/api/oauth/entities/oauthClientEntity.ts +29 -12
- package/src/api/oauth/helpers/oauthMetadata.ts +1 -0
- package/src/api/oauth/helpers/oidcMetadata.ts +19 -0
- package/src/api/oauth/index.ts +1 -0
- package/src/api/oauth/schemas/authorizeDecisionBodySchema.ts +12 -11
- package/src/api/oauth/schemas/authorizeQuerySchema.ts +12 -10
- package/src/api/oauth/schemas/registerClientBodySchema.ts +10 -11
- package/src/api/oauth/schemas/tokenRequestBodySchema.ts +9 -8
- package/src/api/oauth/services/OAuthClientService.ts +228 -15
- package/src/api/organizations/controllers/AdminOrganizationController.ts +8 -8
- package/src/api/organizations/entities/organizations.ts +6 -6
- package/src/api/organizations/schemas/createOrganizationSchema.ts +5 -5
- package/src/api/organizations/schemas/organizationQuerySchema.ts +4 -4
- package/src/api/organizations/schemas/updateOrganizationSchema.ts +1 -2
- package/src/api/parameters/__tests__/$parameter.spec.ts +229 -50
- package/src/api/parameters/controllers/AdminParameterController.ts +9 -12
- package/src/api/parameters/entities/parameters.ts +29 -16
- package/src/api/parameters/primitives/$parameter.ts +3 -3
- package/src/api/parameters/schemas/activateParameterBodySchema.ts +4 -4
- package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +15 -15
- package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +7 -7
- package/src/api/parameters/schemas/parameterCurrentResponseSchema.ts +7 -7
- package/src/api/parameters/schemas/parameterHistoryResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/parameterNameParamSchema.ts +2 -3
- package/src/api/parameters/schemas/parameterNamesResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/parameterResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/parameterStatusSchema.ts +2 -2
- package/src/api/parameters/schemas/parameterTreeNodeSchema.ts +6 -6
- package/src/api/parameters/schemas/parameterVersionParamSchema.ts +5 -6
- package/src/api/parameters/schemas/parameterVersionResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +6 -9
- package/src/api/parameters/services/ParameterProvider.ts +152 -65
- package/src/api/payments/controllers/AdminPaymentController.ts +7 -7
- package/src/api/payments/controllers/MockCheckoutController.ts +79 -28
- package/src/api/payments/controllers/PaymentController.ts +4 -4
- package/src/api/payments/entities/paymentIntents.ts +11 -11
- package/src/api/payments/entities/paymentMethods.ts +11 -11
- package/src/api/payments/entities/refunds.ts +9 -9
- package/src/api/payments/providers/PaymentProvider.ts +18 -0
- package/src/api/payments/schemas/intentSchemas.ts +25 -25
- package/src/api/payments/schemas/paymentMethodSchemas.ts +3 -3
- package/src/api/payments/services/PaymentService.ts +60 -3
- package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +14 -0
- package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +11 -11
- package/src/api/subscriptions/controllers/SubscriptionController.ts +5 -4
- package/src/api/subscriptions/entities/subscriptionEvents.ts +15 -15
- package/src/api/subscriptions/entities/subscriptions.ts +22 -22
- package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +22 -22
- package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +4 -4
- package/src/api/subscriptions/schemas/changePlanSchema.ts +5 -5
- package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +14 -7
- package/src/api/subscriptions/schemas/entitlementsSchema.ts +10 -10
- package/src/api/subscriptions/schemas/mrrSchema.ts +9 -9
- package/src/api/subscriptions/schemas/planDefinitionSchema.ts +21 -21
- package/src/api/subscriptions/schemas/planResourceSchema.ts +19 -19
- package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +8 -8
- package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +7 -7
- package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +17 -17
- package/src/api/subscriptions/services/SubscriptionConfig.ts +2 -2
- package/src/api/users/__tests__/ApiKeys-integration.spec.ts +11 -11
- package/src/api/users/atoms/realmAuthSettingsAtom.ts +111 -119
- package/src/api/users/controllers/AdminIdentityController.ts +29 -19
- package/src/api/users/controllers/AdminSessionController.ts +37 -27
- package/src/api/users/controllers/AdminUserController.ts +75 -53
- package/src/api/users/controllers/MySessionController.ts +125 -0
- package/src/api/users/controllers/RealmController.ts +9 -9
- package/src/api/users/controllers/UserController.ts +55 -55
- package/src/api/users/entities/identities.ts +8 -8
- package/src/api/users/entities/sessions.ts +17 -17
- package/src/api/users/entities/users.ts +17 -17
- package/src/api/users/index.ts +3 -0
- package/src/api/users/notifications/UserNotifications.ts +76 -24
- package/src/api/users/primitives/$realm.ts +12 -0
- package/src/api/users/schemas/completePasswordResetRequestSchema.ts +8 -12
- package/src/api/users/schemas/completeRegistrationRequestSchema.ts +17 -20
- package/src/api/users/schemas/createUserSchema.ts +2 -2
- package/src/api/users/schemas/identityQuerySchema.ts +4 -4
- package/src/api/users/schemas/identityResourceSchema.ts +3 -2
- package/src/api/users/schemas/loginSchema.ts +4 -4
- package/src/api/users/schemas/passwordResetIntentResponseSchema.ts +6 -8
- package/src/api/users/schemas/realmConfigSchema.ts +10 -10
- package/src/api/users/schemas/registerQuerySchema.ts +6 -6
- package/src/api/users/schemas/registerRequestSchema.ts +21 -43
- package/src/api/users/schemas/registerResponseSchema.ts +2 -2
- package/src/api/users/schemas/registerSchema.ts +13 -31
- package/src/api/users/schemas/registrationIntentResponseSchema.ts +19 -23
- package/src/api/users/schemas/resetPasswordSchema.ts +10 -17
- package/src/api/users/schemas/sessionQuerySchema.ts +3 -3
- package/src/api/users/schemas/sessionResourceSchema.ts +25 -25
- package/src/api/users/schemas/updateUserSchema.ts +3 -4
- package/src/api/users/schemas/userQuerySchema.ts +7 -7
- package/src/api/users/services/RegistrationService.ts +25 -11
- package/src/api/users/services/UserService.ts +12 -6
- package/src/api/verifications/__tests__/CodeVerification.spec.ts +63 -101
- package/src/api/verifications/__tests__/LinkVerification.spec.ts +23 -92
- package/src/api/verifications/controllers/VerificationController.ts +13 -27
- package/src/api/verifications/entities/verifications.ts +13 -14
- package/src/api/verifications/schemas/requestVerificationCodeResponseSchema.ts +17 -14
- package/src/api/verifications/schemas/validateVerificationCodeResponseSchema.ts +9 -10
- package/src/api/verifications/schemas/verificationSettingsSchema.ts +65 -66
- package/src/api/verifications/schemas/verificationTypeEnumSchema.ts +2 -2
- package/src/api/verifications/services/VerificationService.ts +12 -0
- package/src/background/__tests__/BackgroundTaskProvider.spec.ts +36 -0
- package/src/batch/__tests__/$batch.spec.ts +22 -22
- package/src/batch/__tests__/startup-buffering.spec.ts +9 -9
- package/src/bin/index.ts +1 -1
- package/src/bucket/__tests__/TenantScopedBucket.spec.ts +60 -0
- package/src/bucket/providers/LocalFileStorageProvider.ts +14 -6
- package/src/bucket/providers/MemoryFileStorageProvider.ts +18 -7
- package/src/bucket/providers/R2FileStorageProvider.ts +14 -6
- package/src/bucket/providers/S3FileStorageProvider.ts +31 -15
- package/src/cache/core/primitives/$cache.ts +7 -10
- package/src/cache/database/entities/cacheEntries.ts +16 -27
- package/src/cache/database/providers/DatabaseCacheProvider.ts +15 -13
- package/src/cache/redis/providers/RedisCacheProvider.ts +6 -6
- package/src/captcha/providers/TurnstileCaptchaProvider.ts +4 -4
- package/src/cli/core/__tests__/BuildCloudflareTask.spec.ts +178 -0
- package/src/cli/core/__tests__/BuildDockerTask.spec.ts +0 -2
- package/src/cli/core/__tests__/DbCommand.spec.ts +108 -0
- package/src/cli/core/atoms/appEntryOptions.ts +5 -5
- package/src/cli/core/atoms/buildOptions.ts +76 -88
- package/src/cli/core/atoms/changelogOptions.ts +3 -3
- package/src/cli/core/atoms/devOptions.ts +3 -3
- package/src/cli/core/commands/build.ts +36 -49
- package/src/cli/core/commands/db.ts +171 -83
- package/src/cli/core/commands/dev.ts +8 -8
- package/src/cli/core/commands/gen/changelog.ts +12 -14
- package/src/cli/core/commands/gen/env.ts +6 -6
- package/src/cli/core/commands/gen/openapi.ts +6 -6
- package/src/cli/core/commands/init.ts +28 -33
- package/src/cli/core/commands/pack.ts +10 -10
- package/src/cli/core/commands/root.ts +7 -8
- package/src/cli/core/commands/test.ts +17 -20
- package/src/cli/core/index.ts +0 -3
- package/src/cli/core/tasks/BuildCloudflareTask.ts +138 -245
- package/src/cli/core/tasks/BuildPrerenderTask.ts +44 -7
- package/src/cli/core/templates/apiHelloResponseSchemaTs.ts +4 -4
- package/src/cli/devtools/atoms/devtoolsOptions.ts +6 -6
- package/src/cli/i18n/__tests__/I18nCheckService.spec.ts +48 -0
- package/src/cli/i18n/atoms/i18nOptions.ts +8 -8
- package/src/cli/i18n/services/I18nCheckService.ts +65 -11
- package/src/cli/platform/commands/SecretsCommand.ts +24 -25
- package/src/cli/platform/commands/platform.ts +40 -46
- package/src/cli/platform/index.ts +1 -1
- package/src/cli/platform-lib/__tests__/CloudflareAdapter.spec.ts +0 -4
- package/src/cli/platform-lib/__tests__/PlatformInspector.spec.ts +10 -3
- package/src/cli/platform-lib/__tests__/VercelAdapter.spec.ts +0 -2
- package/src/cli/platform-lib/adapters/CloudflareAdapter.ts +141 -50
- package/src/cli/platform-lib/adapters/VercelAdapter.ts +6 -11
- package/src/cli/platform-lib/atoms/platformOptions.ts +46 -25
- package/src/cli/platform-lib/schemas/cloudflare.ts +87 -87
- package/src/cli/platform-lib/schemas/platform.ts +51 -51
- package/src/cli/platform-lib/schemas/vercel.ts +28 -28
- package/src/cli/platform-lib/services/CloudflareApi.ts +5 -5
- package/src/cli/platform-lib/services/VercelApi.ts +4 -4
- package/src/cli/platform-lib/services/VercelCli.ts +6 -15
- package/src/cli/platform-lib/services/WranglerApi.ts +6 -15
- package/src/cli/vendor/atoms/vendorOptions.ts +9 -9
- package/src/cli/vendor/commands/VendorCommand.ts +11 -12
- package/src/command/__tests__/$command.spec.ts +82 -83
- package/src/command/__tests__/Asker.spec.ts +6 -13
- package/src/command/__tests__/CliProvider.spec.ts +136 -149
- package/src/command/__tests__/Runner.spec.ts +86 -110
- package/src/command/helpers/Asker.ts +23 -58
- package/src/command/helpers/Runner.ts +34 -110
- package/src/command/index.ts +4 -9
- package/src/command/primitives/$command.ts +10 -10
- package/src/command/providers/CliProvider.ts +183 -161
- package/src/core/Alepha.ts +62 -13
- package/src/core/__tests__/$atom.spec.ts +52 -3
- package/src/core/__tests__/$computed.spec.ts +129 -0
- package/src/core/__tests__/$env.spec.ts +13 -13
- package/src/core/__tests__/$inject.spec.ts +4 -4
- package/src/core/__tests__/$module.spec.ts +1 -1
- package/src/core/__tests__/Alepha-graph.spec.ts +1 -1
- package/src/core/__tests__/Alepha-parseEnv.spec.ts +32 -32
- package/src/core/__tests__/Alepha-start.spec.ts +3 -3
- package/src/core/__tests__/CodecManager.spec.ts +113 -94
- package/src/core/__tests__/KeylessJsonSchemaCodec.spec.ts +138 -138
- package/src/core/__tests__/SchemaValidator.spec.ts +43 -44
- package/src/core/__tests__/StateManager.persist.browser.spec.ts +87 -0
- package/src/core/__tests__/StateManager.spec.ts +423 -0
- package/src/core/__tests__/TypeBox-usecases.spec.ts +8 -8
- package/src/core/__tests__/TypeProvider.spec.ts +314 -309
- package/src/core/__tests__/dump.spec.ts +6 -6
- package/src/core/__tests__/pagination.spec.ts +4 -4
- package/src/core/__tests__/scoped-after-start.spec.ts +43 -0
- package/src/core/errors/TypeBoxError.ts +10 -4
- package/src/core/helpers/FileLike.ts +5 -5
- package/src/core/helpers/coerceStrings.ts +70 -0
- package/src/core/helpers/jsonSchemaToZod.ts +112 -0
- package/src/core/index.shared.ts +4 -1
- package/src/core/primitives/$atom.ts +95 -27
- package/src/core/primitives/$computed.ts +148 -0
- package/src/core/primitives/$env.ts +5 -5
- package/src/core/primitives/$state.ts +1 -1
- package/src/core/providers/AlsProvider.ts +26 -0
- package/src/core/providers/CodecManager.ts +1 -2
- package/src/core/providers/JsonSchemaCodec.ts +1 -2
- package/src/core/providers/KeylessJsonSchemaCodec.ts +82 -57
- package/src/core/providers/SchemaValidator.ts +48 -158
- package/src/core/providers/StateManager.ts +383 -9
- package/src/core/providers/TypeProvider.ts +80 -734
- package/src/core/providers/ZodProvider.ts +380 -0
- package/src/core/providers/zodAugment.ts +69 -0
- package/src/core/schemas/pageQuerySchema.ts +19 -21
- package/src/core/schemas/pageSchema.ts +47 -57
- package/src/crypto/__tests__/SecretProvider.spec.ts +31 -0
- package/src/crypto/providers/SecretProvider.ts +16 -10
- package/src/datetime/primitives/$throttle.ts +6 -1
- package/src/email/brevo/providers/BrevoEmailProvider.ts +4 -4
- package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +6 -6
- package/src/email/core/index.ts +7 -2
- package/src/email/core/primitives/$email.ts +5 -1
- package/src/email/core/providers/LocalEmailProvider.ts +5 -5
- package/src/email/smtp/providers/NodemailerEmailProvider.ts +41 -52
- package/src/fake/__tests__/FakeProvider.spec.ts +110 -110
- package/src/fake/__tests__/keyName.example.ts +21 -21
- package/src/fake/__tests__/keyName.spec.ts +41 -41
- package/src/fake/__tests__/module.example.ts +8 -8
- package/src/fake/providers/FakeProvider.ts +122 -121
- package/src/lock/core/__tests__/lock-mutual-exclusion.spec.ts +44 -0
- package/src/lock/core/index.ts +1 -0
- package/src/lock/core/primitives/$lock.ts +13 -6
- package/src/logger/__tests__/CliFormatterProvider.spec.ts +76 -0
- package/src/logger/__tests__/Logger.spec.ts +49 -0
- package/src/logger/index.ts +25 -18
- package/src/logger/providers/CliFormatterProvider.ts +75 -0
- package/src/logger/schemas/logEntrySchema.ts +10 -10
- package/src/logger/services/Logger.ts +18 -0
- package/src/mcp/__tests__/$prompt.spec.ts +21 -23
- package/src/mcp/__tests__/$tool.spec.ts +22 -22
- package/src/mcp/__tests__/McpServerProvider.spec.ts +82 -11
- package/src/mcp/__tests__/StreamableHttpMcpTransport.spec.ts +2 -2
- package/src/mcp/__tests__/integration.spec.ts +33 -33
- package/src/mcp/primitives/$prompt.ts +11 -9
- package/src/mcp/primitives/$tool.ts +27 -86
- package/src/mcp/providers/McpServerProvider.ts +55 -0
- package/src/mcp/transports/StreamableHttpMcpTransport.ts +7 -7
- package/src/orm/__tests__/$repository-tests.ts +133 -27
- package/src/orm/__tests__/$repository.spec.ts +23 -0
- package/src/orm/__tests__/$transactional-tests.ts +4 -4
- package/src/orm/__tests__/ModelBuilder-tests.ts +28 -28
- package/src/orm/__tests__/ModelBuilder.spec.ts +124 -106
- package/src/orm/__tests__/QueryManager.spec.ts +5 -5
- package/src/orm/__tests__/delete-returning-tests.ts +11 -11
- package/src/orm/__tests__/deletedAt-tests.ts +3 -3
- package/src/orm/__tests__/enums.spec.ts +29 -25
- package/src/orm/__tests__/execute-tests.ts +8 -8
- package/src/orm/__tests__/fixtures/bigEntitySchema.ts +48 -48
- package/src/orm/__tests__/fixtures/userEntitySchema.ts +6 -6
- package/src/orm/__tests__/joins-tests.ts +30 -30
- package/src/orm/__tests__/organization-tests.ts +105 -3
- package/src/orm/__tests__/organization.spec.ts +46 -0
- package/src/orm/__tests__/orm-errors.spec.ts +10 -10
- package/src/orm/__tests__/orm-next-tests.ts +29 -29
- package/src/orm/__tests__/orm-showcase-tests.ts +9 -9
- package/src/orm/__tests__/primaryKey.spec.ts +4 -4
- package/src/orm/__tests__/query-date-encoding-tests.ts +17 -17
- package/src/orm/__tests__/ref-auto-onDelete.spec.ts +14 -14
- package/src/orm/__tests__/references.spec.ts +7 -7
- package/src/orm/__tests__/security.spec.ts +17 -17
- package/src/orm/__tests__/string-operators-tests.ts +5 -5
- package/src/orm/__tests__/timestamps-tests.ts +14 -14
- package/src/orm/__tests__/validation-tests.ts +5 -5
- package/src/orm/core/__tests__/BunSqliteProvider.bun.spec.ts +8 -8
- package/src/orm/core/constants/PG_SYMBOLS.ts +13 -1
- package/src/orm/core/entities/alephaSequences.ts +8 -8
- package/src/orm/core/helpers/pgAttr.ts +4 -4
- package/src/orm/core/primitives/$entity.ts +10 -6
- package/src/orm/core/providers/DatabaseTypeProvider.ts +46 -53
- package/src/orm/core/providers/drivers/BunSqliteProvider.ts +8 -8
- package/src/orm/core/providers/drivers/CloudflareD1Provider.ts +3 -5
- package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +8 -8
- package/src/orm/core/schemas/databaseEnvSchema.ts +4 -4
- package/src/orm/core/schemas/insertSchema.ts +14 -18
- package/src/orm/core/schemas/legacyIdSchema.ts +2 -2
- package/src/orm/core/schemas/updateSchema.ts +10 -16
- package/src/orm/core/services/PgRelationManager.ts +2 -2
- package/src/orm/core/services/QueryManager.ts +13 -2
- package/src/orm/core/services/Repository.ts +88 -33
- package/src/orm/core/services/SqliteModelBuilder.ts +38 -45
- package/src/orm/postgres/__tests__/BunPostgresProvider.bun.spec.ts +4 -4
- package/src/orm/postgres/providers/CloudflareHyperdriveProvider.ts +4 -6
- package/src/orm/postgres/schemas/postgresEnvSchema.ts +6 -6
- package/src/orm/postgres/services/PostgresModelBuilder.ts +127 -114
- package/src/queue/core/__tests__/$consumer.spec.ts +4 -4
- package/src/queue/core/__tests__/WorkerProvider.spec.ts +4 -4
- package/src/queue/core/__tests__/shared.ts +6 -6
- package/src/queue/core/primitives/$consumer.ts +5 -5
- package/src/queue/core/primitives/$queue.ts +44 -61
- package/src/queue/core/providers/CloudflareQueueProvider.ts +6 -0
- package/src/queue/core/providers/WorkerProvider.ts +17 -14
- package/src/queue/redis/providers/RedisQueueProvider.ts +3 -3
- package/src/react/core/__tests__/ErrorBoundary.browser.spec.tsx +92 -0
- package/src/react/core/__tests__/Router.spec.tsx +4 -4
- package/src/react/core/__tests__/useComputed.browser.spec.tsx +192 -0
- package/src/react/core/__tests__/useQuery.browser.spec.tsx +48 -0
- package/src/react/core/__tests__/useSelector.browser.spec.tsx +105 -0
- package/src/react/core/__tests__/useStore.browser.spec.tsx +113 -0
- package/src/react/core/components/ErrorBoundary.tsx +42 -0
- package/src/react/core/hooks/useAction.ts +56 -19
- package/src/react/core/hooks/useComputed.ts +91 -0
- package/src/react/core/hooks/useSelector.ts +67 -0
- package/src/react/core/hooks/useStore.ts +36 -17
- package/src/react/core/index.ts +3 -0
- package/src/react/core/utils/shallowEqual.ts +36 -0
- package/src/react/form/__tests__/FormModel-submit-loading.spec.ts +71 -0
- package/src/react/form/__tests__/form-submitting-reactive.browser.spec.tsx +96 -0
- package/src/react/form/__tests__/useForm.browser.spec.tsx +54 -54
- package/src/react/form/errors/FormValidationError.ts +0 -2
- package/src/react/form/hooks/useForm.ts +19 -4
- package/src/react/form/hooks/useFormQuerySync.ts +0 -0
- package/src/react/form/services/FormModel.ts +124 -86
- package/src/react/form/services/parseField.ts +66 -27
- package/src/react/i18n/__tests__/I18nProvider.spec.ts +89 -0
- package/src/react/i18n/__tests__/Localize.spec.tsx +1 -1
- package/src/react/i18n/__tests__/locale-routing.spec.ts +107 -0
- package/src/react/i18n/providers/I18nProvider.ts +173 -14
- package/src/react/router/__tests__/$page.browser.spec.tsx +19 -19
- package/src/react/router/__tests__/$page.spec.tsx +21 -21
- package/src/react/router/__tests__/ReactBrowserProvider.browser.spec.ts +87 -1
- package/src/react/router/__tests__/RouterLocaleProvider.spec.ts +127 -0
- package/src/react/router/atoms/ssrManifestAtom.ts +16 -16
- package/src/react/router/components/NestedView.tsx +11 -3
- package/src/react/router/hooks/useQueryParams.ts +1 -1
- package/src/react/router/index.browser.ts +4 -0
- package/src/react/router/index.shared.ts +1 -0
- package/src/react/router/index.ts +9 -0
- package/src/react/router/primitives/$page.ts +2 -2
- package/src/react/router/providers/ReactBrowserProvider.ts +64 -13
- package/src/react/router/providers/ReactBrowserRouterProvider.ts +15 -1
- package/src/react/router/providers/ReactPageProvider.ts +38 -13
- package/src/react/router/providers/ReactServerProvider.ts +105 -16
- package/src/react/router/providers/RootComponentsProvider.ts +13 -0
- package/src/react/router/providers/RouterLocaleProvider.ts +125 -0
- package/src/react/router/providers/__tests__/RootComponentsProvider.spec.ts +15 -0
- package/src/react/router/providers/__tests__/rootComponents.ssr.browser.spec.tsx +67 -0
- package/src/react/sitemap/__tests__/$sitemap.spec.ts +131 -0
- package/src/react/sitemap/index.browser.ts +21 -0
- package/src/react/sitemap/index.ts +25 -0
- package/src/react/sitemap/primitives/$sitemap.browser.ts +26 -0
- package/src/react/sitemap/primitives/$sitemap.ts +196 -0
- package/src/react/ui/atoms/uiAtom.ts +6 -6
- package/src/react/ui/atoms/uiThemeListAtom.ts +7 -7
- package/src/react/ui/hooks/useColorMode.ts +11 -4
- package/src/react/ui/services/SchemaControl.ts +4 -4
- package/src/redis/providers/BunRedisProvider.ts +19 -11
- package/src/redis/providers/NodeRedisProvider.ts +3 -3
- package/src/scheduler/primitives/$scheduler.ts +21 -8
- package/src/security/__tests__/assertRealmScope.spec.ts +29 -0
- package/src/security/atoms/currentTenantAtom.ts +6 -6
- package/src/security/atoms/currentUserAtom.ts +2 -2
- package/src/security/primitives/$issuer.ts +24 -2
- package/src/security/providers/JwtProvider.ts +100 -0
- package/src/security/providers/SecurityProvider.ts +43 -2
- package/src/security/schemas/permissionSchema.ts +19 -19
- package/src/security/schemas/roleSchema.ts +22 -28
- package/src/security/schemas/userAccountInfoSchema.ts +47 -37
- package/src/server/auth/__tests__/appleClientSecret.spec.ts +34 -0
- package/src/server/auth/__tests__/federationRedirectReplay.spec.ts +44 -0
- package/src/server/auth/helpers/appleClientSecret.ts +24 -0
- package/src/server/auth/helpers/jtiReplayGuard.ts +41 -0
- package/src/server/auth/helpers/safeRedirectPath.ts +19 -0
- package/src/server/auth/index.ts +1 -0
- package/src/server/auth/primitives/$auth.ts +6 -6
- package/src/server/auth/primitives/$authApple.ts +10 -10
- package/src/server/auth/primitives/$authFacebook.ts +10 -10
- package/src/server/auth/primitives/$authFranceConnect.ts +10 -10
- package/src/server/auth/primitives/$authGithub.ts +10 -10
- package/src/server/auth/primitives/$authGoogle.ts +10 -10
- package/src/server/auth/primitives/$authMicrosoft.ts +14 -14
- package/src/server/auth/providers/ServerAuthProvider.ts +67 -52
- package/src/server/auth/schemas/authenticationProviderSchema.ts +9 -12
- package/src/server/auth/schemas/tokenResponseSchema.ts +2 -2
- package/src/server/auth/schemas/tokensSchema.ts +16 -16
- package/src/server/auth/schemas/userinfoResponseSchema.ts +3 -3
- package/src/server/cookies/__tests__/AtomCookieBinding.spec.ts +80 -0
- package/src/server/cookies/__tests__/AtomCookiePersistence.browser.spec.ts +169 -0
- package/src/server/cookies/__tests__/AtomCookiePersistence.spec.ts +294 -0
- package/src/server/cookies/__tests__/ServerCookiesProvider.spec.ts +82 -12
- package/src/server/cookies/index.browser.ts +4 -1
- package/src/server/cookies/index.ts +8 -1
- package/src/server/cookies/primitives/$cookie.browser.ts +1 -1
- package/src/server/cookies/primitives/$cookie.ts +16 -0
- package/src/server/cookies/providers/AtomCookiePersistence.browser.ts +133 -0
- package/src/server/cookies/providers/AtomCookiePersistence.ts +148 -0
- package/src/server/cookies/providers/ServerCookiesProvider.ts +32 -4
- package/src/server/cookies/services/CookieParser.ts +6 -1
- package/src/server/core/__tests__/$action.spec.ts +13 -13
- package/src/server/core/__tests__/$middleware.spec.ts +10 -10
- package/src/server/core/__tests__/$route.spec.ts +9 -9
- package/src/server/core/__tests__/$sse.spec.ts +26 -26
- package/src/server/core/__tests__/BunHttpServerProvider.bun.spec.ts +6 -6
- package/src/server/core/__tests__/HttpClient.spec.ts +2 -2
- package/src/server/core/__tests__/NodeHttpServerProvider.spec.ts +15 -3
- package/src/server/core/__tests__/ServerBodyParserProvider.spec.ts +14 -14
- package/src/server/core/__tests__/ServerMultipartProvider.spec.ts +33 -33
- package/src/server/core/__tests__/ServerRouterProvider-errorHandler.spec.ts +5 -1
- package/src/server/core/__tests__/ServerRouterProvider-getRoutes.spec.ts +25 -25
- package/src/server/core/__tests__/ServerRouterProvider-serializationError.spec.ts +9 -5
- package/src/server/core/__tests__/ServerRouterProvider-validationError.spec.ts +56 -24
- package/src/server/core/errors/ValidationError.ts +6 -3
- package/src/server/core/helpers/isMultipart.ts +2 -1
- package/src/server/core/index.ts +5 -2
- package/src/server/core/interfaces/ServerRequest.ts +14 -14
- package/src/server/core/primitives/$action.ts +26 -36
- package/src/server/core/primitives/$route.ts +27 -0
- package/src/server/core/primitives/$sse.ts +3 -3
- package/src/server/core/providers/BunHttpServerProvider.ts +8 -9
- package/src/server/core/providers/NodeHttpServerProvider.ts +8 -9
- package/src/server/core/providers/ServerBodyParserProvider.ts +20 -12
- package/src/server/core/providers/ServerCompressProvider.ts +9 -10
- package/src/server/core/providers/ServerHelmetProvider.ts +26 -27
- package/src/server/core/providers/ServerMultipartProvider.ts +19 -19
- package/src/server/core/providers/ServerRouterProvider.ts +44 -15
- package/src/server/core/schemas/errorSchema.ts +20 -25
- package/src/server/core/schemas/okSchema.ts +9 -14
- package/src/server/core/services/HttpClient.ts +13 -1
- package/src/server/core/services/ServerRequestParser.ts +6 -6
- package/src/server/cors/providers/ServerCorsProvider.ts +26 -28
- package/src/server/health/schemas/healthSchema.ts +6 -6
- package/src/server/links/__tests__/$remote.spec.ts +3 -3
- package/src/server/links/__tests__/BatchEndpoint.spec.ts +9 -9
- package/src/server/links/__tests__/LinkProvider.spec.ts +9 -9
- package/src/server/links/__tests__/ServerLinksProvider.spec.ts +23 -23
- package/src/server/links/__tests__/fixtures/CrudApp.ts +21 -21
- package/src/server/links/atoms/apiLinksAtom.ts +2 -2
- package/src/server/links/atoms/linkOptionsAtom.ts +6 -6
- package/src/server/links/primitives/$remote.ts +3 -3
- package/src/server/links/providers/LinkProvider.ts +3 -3
- package/src/server/links/providers/ServerLinksProvider.ts +20 -20
- package/src/server/links/schemas/apiLinksResponseSchema.ts +23 -23
- package/src/server/proxy/__tests__/$proxy.spec.ts +9 -9
- package/src/server/proxy/providers/ServerProxyProvider.ts +5 -0
- package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +18 -20
- package/src/server/swagger/__tests__/$swagger.spec.ts +91 -94
- package/src/server/swagger/__tests__/ui.spec.ts +3 -3
- package/src/server/swagger/providers/ServerSwaggerProvider.ts +66 -43
- package/src/system/__tests__/NodeShellProvider.spec.ts +46 -0
- package/src/system/providers/NodeShellProvider.ts +4 -1
- package/src/topic/core/__tests__/$subscriber.spec.ts +4 -4
- package/src/topic/core/__tests__/shared.ts +8 -8
- package/src/topic/core/primitives/$subscriber.ts +5 -5
- package/src/topic/core/primitives/$topic.ts +14 -14
- package/src/topic/redis/providers/RedisTopicProvider.ts +3 -3
- package/dist/container/core/index.d.ts +0 -236
- package/dist/container/core/index.d.ts.map +0 -1
- package/dist/container/core/index.js +0 -231
- package/dist/container/core/index.js.map +0 -1
- package/dist/container/core/index.workerd.js +0 -192
- package/dist/container/core/index.workerd.js.map +0 -1
- package/src/cli/core/tasks/BuildSitemapTask.ts +0 -130
- package/src/command/helpers/PrettyAsker.ts +0 -256
- package/src/command/helpers/PrettyPrint.ts +0 -332
- package/src/container/core/__tests__/$container.spec.ts +0 -83
- package/src/container/core/index.ts +0 -50
- package/src/container/core/index.workerd.ts +0 -53
- package/src/container/core/interfaces/ContainerOptions.ts +0 -69
- package/src/container/core/primitives/$container.ts +0 -100
- package/src/container/core/providers/CloudflareContainerProvider.ts +0 -70
- package/src/container/core/providers/ContainerProvider.ts +0 -92
- package/src/container/core/providers/MockContainerProvider.ts +0 -62
- package/src/container/core/providers/NodeContainerProvider.ts +0 -53
- package/src/core/__tests__/jsonSchemaToTypeBox.spec.ts +0 -771
- package/src/core/helpers/jsonSchemaToTypeBox.ts +0 -359
- /package/dist/orm/core/{chunk-B4FMCO8f.js → rolldown-runtime-B4FMCO8f.js} +0 -0
|
@@ -6,6 +6,11 @@ import { DateTimeProvider } from "alepha/datetime";
|
|
|
6
6
|
import { LockProvider } from "alepha/lock";
|
|
7
7
|
import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
|
|
8
8
|
import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
|
|
9
|
+
import "drizzle-orm/pg-core/foreign-keys";
|
|
10
|
+
import "drizzle-orm/pg-core/session";
|
|
11
|
+
import "drizzle-kit/api";
|
|
12
|
+
import "drizzle-orm/d1";
|
|
13
|
+
import "drizzle-orm/sqlite-core";
|
|
9
14
|
//#region ../../src/api/parameters/audits/ParameterAudits.d.ts
|
|
10
15
|
/**
|
|
11
16
|
* Runtime parameter (config) audit events.
|
|
@@ -28,15 +33,13 @@ declare class ParameterAudits {
|
|
|
28
33
|
* Before: { name: string; age: number(default=0); fullName: generated }
|
|
29
34
|
* After: { name: string; age?: number; }
|
|
30
35
|
*/
|
|
31
|
-
type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["
|
|
36
|
+
type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["shape"] as T["shape"][K] extends {
|
|
32
37
|
[PG_GENERATED]: any;
|
|
33
|
-
} ? never : K]: T["
|
|
38
|
+
} ? never : K]: T["shape"][K] extends {
|
|
34
39
|
[PG_DEFAULT]: any;
|
|
35
40
|
} | {
|
|
36
41
|
[PG_ORGANIZATION]: any;
|
|
37
|
-
}
|
|
38
|
-
"~optional": true;
|
|
39
|
-
} ? TOptional<T["properties"][K]> : T["properties"][K] }>;
|
|
42
|
+
} ? TOptional<Extract<T["shape"][K], TSchema>> : T["shape"][K]; }>;
|
|
40
43
|
//#endregion
|
|
41
44
|
//#region ../../src/orm/core/schemas/updateSchema.d.ts
|
|
42
45
|
/**
|
|
@@ -48,9 +51,9 @@ type TObjectInsert<T extends TObject> = TObject<{ [K in keyof T["properties"] as
|
|
|
48
51
|
* Before: { name?: string; age: number; fullName: generated }
|
|
49
52
|
* After: { name?: string | null; age: number; }
|
|
50
53
|
*/
|
|
51
|
-
type TObjectUpdate<T extends TObject> = TObject<{ [K in keyof T["
|
|
54
|
+
type TObjectUpdate<T extends TObject> = TObject<{ [K in keyof T["shape"] as T["shape"][K] extends {
|
|
52
55
|
[PG_GENERATED]: any;
|
|
53
|
-
} ? never : K]: T["
|
|
56
|
+
} ? never : K]: T["shape"][K] extends TOptional<infer U extends TSchema> ? TOptional<TUnion<[U, TNull]>> : T["shape"][K]; }>;
|
|
54
57
|
//#endregion
|
|
55
58
|
//#region ../../src/orm/core/primitives/$entity.d.ts
|
|
56
59
|
interface EntityPrimitiveOptions<T extends TObject, Keys = keyof Static<T>> {
|
|
@@ -210,18 +213,20 @@ declare class EntityPrimitive<T extends TObject = TObject> {
|
|
|
210
213
|
get cols(): EntityColumns<T>;
|
|
211
214
|
get name(): string;
|
|
212
215
|
get schema(): T;
|
|
216
|
+
protected _insertSchema?: TObjectInsert<T>;
|
|
213
217
|
get insertSchema(): TObjectInsert<T>;
|
|
218
|
+
protected _updateSchema?: TObjectUpdate<T>;
|
|
214
219
|
get updateSchema(): TObjectUpdate<T>;
|
|
215
220
|
}
|
|
216
221
|
/**
|
|
217
222
|
* Convert a schema to columns.
|
|
218
223
|
*/
|
|
219
|
-
type FromSchema<T extends TObject> = { [key in keyof T["properties"]]: PgColumnBuilderBase };
|
|
224
|
+
type FromSchema<T extends TObject> = { [key in keyof T["properties"]]: PgColumnBuilderBase; };
|
|
220
225
|
type EntityColumn<T extends TObject> = {
|
|
221
226
|
name: string;
|
|
222
227
|
entity: EntityPrimitive<T>;
|
|
223
228
|
};
|
|
224
|
-
type EntityColumns<T extends TObject> = { [key in keyof T["properties"]]: EntityColumn<T
|
|
229
|
+
type EntityColumns<T extends TObject> = { [key in keyof T["properties"]]: EntityColumn<T>; };
|
|
225
230
|
//#endregion
|
|
226
231
|
//#region ../../src/orm/core/constants/PG_SYMBOLS.d.ts
|
|
227
232
|
declare const PG_DEFAULT: unique symbol;
|
|
@@ -250,13 +255,24 @@ type PgSymbols = {
|
|
|
250
255
|
[PG_REF]: PgRefOptions;
|
|
251
256
|
[PG_ENUM]: PgEnumOptions;
|
|
252
257
|
[PG_GENERATED]: PgGeneratedOptions;
|
|
253
|
-
[PG_ORGANIZATION]:
|
|
258
|
+
[PG_ORGANIZATION]: PgOrganizationOptions;
|
|
254
259
|
/**
|
|
255
260
|
* @deprecated Use `PG_IDENTITY` instead.
|
|
256
261
|
*/
|
|
257
262
|
[PG_SERIAL]: {};
|
|
258
263
|
};
|
|
259
264
|
type PgSymbolKeys = keyof PgSymbols;
|
|
265
|
+
interface PgOrganizationOptions {
|
|
266
|
+
/**
|
|
267
|
+
* Fail-closed tenant scoping. When `true`, the repository (a) refuses any
|
|
268
|
+
* read/write with no resolved tenant instead of falling through to an
|
|
269
|
+
* unfiltered "see/write everything" query, and (b) drops the
|
|
270
|
+
* `OR organizationId IS NULL` "global row" escape — a scoped tenant never
|
|
271
|
+
* sees NULL/global rows. Use for security-sensitive tables. Defaults to
|
|
272
|
+
* `false` (the historic fail-open semantics).
|
|
273
|
+
*/
|
|
274
|
+
strict?: boolean;
|
|
275
|
+
}
|
|
260
276
|
type PgIdentityOptions = {
|
|
261
277
|
mode: "always" | "byDefault";
|
|
262
278
|
} & PgSequenceOptions & {
|
|
@@ -293,7 +309,7 @@ interface PgRefOptions {
|
|
|
293
309
|
/**
|
|
294
310
|
* Type representation.
|
|
295
311
|
*/
|
|
296
|
-
type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K] };
|
|
312
|
+
type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]: PgSymbols[K]; };
|
|
297
313
|
//#endregion
|
|
298
314
|
//#region ../../src/orm/core/schemas/databaseEnvSchema.d.ts
|
|
299
315
|
/**
|
|
@@ -309,20 +325,13 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
|
|
|
309
325
|
* - `d1://BINDING_NAME` — Cloudflare D1
|
|
310
326
|
* - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
|
|
311
327
|
*/
|
|
312
|
-
declare const databaseEnvSchema: import("
|
|
313
|
-
DATABASE_URL: import("
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
*
|
|
317
|
-
* Defaults to `true` in development and test, `false` in production.
|
|
318
|
-
* Set to `false` in development to skip automatic schema sync
|
|
319
|
-
* (e.g. when managing migrations manually).
|
|
320
|
-
*/
|
|
321
|
-
DATABASE_SYNC: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
322
|
-
}>;
|
|
328
|
+
declare const databaseEnvSchema: import("zod").ZodObject<{
|
|
329
|
+
DATABASE_URL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
330
|
+
DATABASE_SYNC: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
331
|
+
}, import("zod/v4/core").$strip>;
|
|
323
332
|
declare module "alepha" {
|
|
324
333
|
interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
|
|
325
|
-
}
|
|
334
|
+
}
|
|
326
335
|
//#endregion
|
|
327
336
|
//#region ../../src/api/parameters/entities/parameters.d.ts
|
|
328
337
|
/**
|
|
@@ -334,59 +343,23 @@ declare module "alepha" {
|
|
|
334
343
|
* - Activation scheduling
|
|
335
344
|
* - Audit trail (creator info)
|
|
336
345
|
*/
|
|
337
|
-
declare const parameters: import("alepha/orm").EntityPrimitive<import("
|
|
338
|
-
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("
|
|
339
|
-
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("
|
|
340
|
-
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
schemaHash: import("typebox").TString;
|
|
355
|
-
/**
|
|
356
|
-
* When this version should become active.
|
|
357
|
-
* Default is immediate (now).
|
|
358
|
-
*/
|
|
359
|
-
activationDate: import("typebox").TString;
|
|
360
|
-
/**
|
|
361
|
-
* Version number for this configuration.
|
|
362
|
-
* Auto-incremented per config name.
|
|
363
|
-
*/
|
|
364
|
-
version: import("typebox").TInteger;
|
|
365
|
-
/**
|
|
366
|
-
* Optional description of changes in this version.
|
|
367
|
-
*/
|
|
368
|
-
changeDescription: import("typebox").TOptional<import("typebox").TString>;
|
|
369
|
-
/**
|
|
370
|
-
* Optional tags for filtering/categorization.
|
|
371
|
-
*/
|
|
372
|
-
tags: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
|
|
373
|
-
/**
|
|
374
|
-
* Creator user ID (if available).
|
|
375
|
-
*/
|
|
376
|
-
creatorId: import("typebox").TOptional<import("typebox").TString>;
|
|
377
|
-
/**
|
|
378
|
-
* Creator display name for audit trail.
|
|
379
|
-
*/
|
|
380
|
-
creatorName: import("typebox").TOptional<import("typebox").TString>;
|
|
381
|
-
/**
|
|
382
|
-
* Previous content before this change (for rollback reference).
|
|
383
|
-
*/
|
|
384
|
-
previousContent: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
385
|
-
/**
|
|
386
|
-
* Migration log if schema changed.
|
|
387
|
-
*/
|
|
388
|
-
migrationLog: import("typebox").TOptional<import("typebox").TString>;
|
|
389
|
-
}>>;
|
|
346
|
+
declare const parameters: import("alepha/orm").EntityPrimitive<import("zod").ZodObject<{
|
|
347
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
348
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
349
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
350
|
+
organizationId: import("alepha/orm").PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof import("alepha/orm").PG_ORGANIZATION>;
|
|
351
|
+
name: import("zod").ZodString;
|
|
352
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
353
|
+
schemaHash: import("zod").ZodString;
|
|
354
|
+
activationDate: import("zod").ZodString;
|
|
355
|
+
version: import("zod").ZodInt;
|
|
356
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
357
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
358
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
359
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
360
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
361
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
362
|
+
}, import("zod/v4/core").$strip>>;
|
|
390
363
|
type Parameter = Static<typeof parameters.schema>;
|
|
391
364
|
//#endregion
|
|
392
365
|
//#region ../../src/api/parameters/primitives/$parameter.d.ts
|
|
@@ -407,9 +380,9 @@ type Parameter = Static<typeof parameters.schema>;
|
|
|
407
380
|
* class AppConfig {
|
|
408
381
|
* features = $parameter({
|
|
409
382
|
* name: "app.features.flags",
|
|
410
|
-
* schema:
|
|
411
|
-
* enableBeta:
|
|
412
|
-
* maxUploadSize:
|
|
383
|
+
* schema: z.object({
|
|
384
|
+
* enableBeta: z.boolean(),
|
|
385
|
+
* maxUploadSize: z.number()
|
|
413
386
|
* }),
|
|
414
387
|
* default: { enableBeta: false, maxUploadSize: 10485760 }
|
|
415
388
|
* });
|
|
@@ -504,39 +477,41 @@ declare class ParameterPrimitive<T extends TObject> extends Primitive<ParameterP
|
|
|
504
477
|
limit?: number;
|
|
505
478
|
offset?: number;
|
|
506
479
|
}): Promise<{
|
|
507
|
-
changeDescription?: string | undefined;
|
|
508
|
-
tags?: string[] | undefined;
|
|
509
|
-
creatorId?: string | undefined;
|
|
510
|
-
creatorName?: string | undefined;
|
|
511
|
-
previousContent?: Record<string, any> | undefined;
|
|
512
|
-
migrationLog?: string | undefined;
|
|
513
480
|
id: string;
|
|
514
481
|
createdAt: string;
|
|
515
482
|
updatedAt: string;
|
|
483
|
+
organizationId: string | undefined;
|
|
516
484
|
name: string;
|
|
517
485
|
content: Record<string, any>;
|
|
518
486
|
schemaHash: string;
|
|
519
487
|
activationDate: string;
|
|
520
488
|
version: number;
|
|
521
|
-
}[]>;
|
|
522
|
-
/**
|
|
523
|
-
* Get a specific version of this parameter.
|
|
524
|
-
*/
|
|
525
|
-
getVersion(version: number): Promise<{
|
|
526
489
|
changeDescription?: string | undefined;
|
|
527
490
|
tags?: string[] | undefined;
|
|
528
491
|
creatorId?: string | undefined;
|
|
529
492
|
creatorName?: string | undefined;
|
|
530
493
|
previousContent?: Record<string, any> | undefined;
|
|
531
494
|
migrationLog?: string | undefined;
|
|
495
|
+
}[]>;
|
|
496
|
+
/**
|
|
497
|
+
* Get a specific version of this parameter.
|
|
498
|
+
*/
|
|
499
|
+
getVersion(version: number): Promise<{
|
|
532
500
|
id: string;
|
|
533
501
|
createdAt: string;
|
|
534
502
|
updatedAt: string;
|
|
503
|
+
organizationId: string | undefined;
|
|
535
504
|
name: string;
|
|
536
505
|
content: Record<string, any>;
|
|
537
506
|
schemaHash: string;
|
|
538
507
|
activationDate: string;
|
|
539
508
|
version: number;
|
|
509
|
+
changeDescription?: string | undefined;
|
|
510
|
+
tags?: string[] | undefined;
|
|
511
|
+
creatorId?: string | undefined;
|
|
512
|
+
creatorName?: string | undefined;
|
|
513
|
+
previousContent?: Record<string, any> | undefined;
|
|
514
|
+
migrationLog?: string | undefined;
|
|
540
515
|
} | null>;
|
|
541
516
|
/**
|
|
542
517
|
* Delete all versions of this parameter.
|
|
@@ -579,19 +554,24 @@ interface SetParameterOptions {
|
|
|
579
554
|
/**
|
|
580
555
|
* Parameter status enum schema.
|
|
581
556
|
*/
|
|
582
|
-
declare const parameterStatusSchema: import("
|
|
557
|
+
declare const parameterStatusSchema: import("zod").ZodEnum<{
|
|
558
|
+
current: "current";
|
|
559
|
+
expired: "expired";
|
|
560
|
+
future: "future";
|
|
561
|
+
next: "next";
|
|
562
|
+
}>;
|
|
583
563
|
type ParameterStatus = Static<typeof parameterStatusSchema>;
|
|
584
564
|
//#endregion
|
|
585
565
|
//#region ../../src/api/parameters/schemas/parameterTreeNodeSchema.d.ts
|
|
586
566
|
/**
|
|
587
567
|
* Tree node schema for parameter tree navigation.
|
|
588
568
|
*/
|
|
589
|
-
declare const parameterTreeNodeSchema: import("
|
|
590
|
-
name: import("
|
|
591
|
-
path: import("
|
|
592
|
-
isLeaf: import("
|
|
593
|
-
children: import("
|
|
594
|
-
}>;
|
|
569
|
+
declare const parameterTreeNodeSchema: import("zod").ZodObject<{
|
|
570
|
+
name: import("zod").ZodString;
|
|
571
|
+
path: import("zod").ZodString;
|
|
572
|
+
isLeaf: import("zod").ZodBoolean;
|
|
573
|
+
children: import("zod").ZodArray<import("zod").ZodAny>;
|
|
574
|
+
}, import("zod/v4/core").$strip>;
|
|
595
575
|
type ParameterTreeNode = Static<typeof parameterTreeNodeSchema>;
|
|
596
576
|
//#endregion
|
|
597
577
|
//#region ../../src/api/parameters/services/ParameterProvider.d.ts
|
|
@@ -627,29 +607,49 @@ declare class ParameterProvider {
|
|
|
627
607
|
protected readonly lockProvider: LockProvider;
|
|
628
608
|
protected readonly schemaValidator: SchemaValidator;
|
|
629
609
|
protected readonly repositoryProvider: RepositoryProvider;
|
|
630
|
-
protected readonly repo: import("alepha/orm").Repository<
|
|
631
|
-
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("
|
|
632
|
-
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("
|
|
633
|
-
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
610
|
+
protected readonly repo: import("alepha/orm").Repository<import("zod").ZodObject<{
|
|
611
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
612
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
613
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("zod").ZodString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
614
|
+
organizationId: import("alepha/orm").PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof import("alepha/orm").PG_ORGANIZATION>;
|
|
615
|
+
name: import("zod").ZodString;
|
|
616
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
617
|
+
schemaHash: import("zod").ZodString;
|
|
618
|
+
activationDate: import("zod").ZodString;
|
|
619
|
+
version: import("zod").ZodInt;
|
|
620
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
621
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
622
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
623
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
624
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
625
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
626
|
+
}, import("zod/v4/core").$strip>>;
|
|
646
627
|
/**
|
|
647
628
|
* Unique identifier for this instance (to avoid self-updates).
|
|
648
629
|
*/
|
|
649
630
|
protected get instanceId(): string;
|
|
650
631
|
protected _instanceId: string | undefined;
|
|
651
632
|
/**
|
|
652
|
-
*
|
|
633
|
+
* Resolve the active tenant for cache keying — MIRRORS the Repository's
|
|
634
|
+
* `resolveOrganizationValue` (tenant atom → user org) so the in-memory
|
|
635
|
+
* value caches partition exactly the way the DB rows do. Returns a sentinel
|
|
636
|
+
* for the org-less (single-tenant / no-request) case.
|
|
637
|
+
*
|
|
638
|
+
* Why this matters: the DB table is now org-scoped, but these process-global
|
|
639
|
+
* Maps are keyed by parameter NAME — without folding the org into the key, a
|
|
640
|
+
* pooled multi-tenant worker would hand org A's cached `club.settings` to a
|
|
641
|
+
* request for org B. (Cross-instance topic sync + the `ready` preload run
|
|
642
|
+
* with no request atom → the sentinel key; they refresh only org-less rows,
|
|
643
|
+
* leaving per-org caches to lazy-load + the immediate local update on `set`.
|
|
644
|
+
* That is bounded staleness, never a cross-tenant read.)
|
|
645
|
+
*/
|
|
646
|
+
protected orgKey(): string;
|
|
647
|
+
/** Per-org cache key for the value caches (`${org}:${name}`). */
|
|
648
|
+
protected cacheKey(name: string): string;
|
|
649
|
+
/**
|
|
650
|
+
* In-memory cache of registered parameter primitives. Keyed by NAME only —
|
|
651
|
+
* the `$parameter` definition (schema + default) is identical for every
|
|
652
|
+
* tenant; only the stored VALUE is per-org (see the value caches below).
|
|
653
653
|
*/
|
|
654
654
|
protected readonly primitives: Map<string, ParameterPrimitive<any>>;
|
|
655
655
|
/**
|
|
@@ -667,6 +667,24 @@ declare class ParameterProvider {
|
|
|
667
667
|
* Set of parameter names that have completed initial load.
|
|
668
668
|
*/
|
|
669
669
|
protected readonly loaded: Set<string>;
|
|
670
|
+
/**
|
|
671
|
+
* Epoch millis of the last successful load (or local set) per cache key.
|
|
672
|
+
* Drives the serverless revalidation TTL (see `revalidateAfterMs`).
|
|
673
|
+
*/
|
|
674
|
+
protected readonly loadedAt: Map<string, number>;
|
|
675
|
+
/**
|
|
676
|
+
* How long a cached value may serve before `get()` re-reads the DB.
|
|
677
|
+
*
|
|
678
|
+
* The in-memory caches are PER ISOLATE. On serverless runtimes
|
|
679
|
+
* (Cloudflare Workers) many isolates serve the same app and the
|
|
680
|
+
* cross-instance `syncTopic` rides the queue provider — in-memory by
|
|
681
|
+
* default, so a `set()` handled by one isolate never reaches the others:
|
|
682
|
+
* without a TTL they serve the stale value until they are recycled.
|
|
683
|
+
*
|
|
684
|
+
* Defaults: 30 s on serverless, 0 (= never revalidate, the historical
|
|
685
|
+
* behaviour) elsewhere. Override with the `PARAMETERS_CACHE_TTL_MS` env.
|
|
686
|
+
*/
|
|
687
|
+
protected get revalidateAfterMs(): number;
|
|
670
688
|
/**
|
|
671
689
|
* Shared promises for deduplicating concurrent load() calls.
|
|
672
690
|
*/
|
|
@@ -697,10 +715,10 @@ declare class ParameterProvider {
|
|
|
697
715
|
* Payload is minimal — receivers call load() to fetch fresh data.
|
|
698
716
|
*/
|
|
699
717
|
readonly syncTopic: import("alepha/topic").TopicPrimitive<{
|
|
700
|
-
payload:
|
|
701
|
-
name: import("
|
|
702
|
-
instanceId: import("
|
|
703
|
-
}>;
|
|
718
|
+
payload: import("zod").ZodObject<{
|
|
719
|
+
name: import("zod").ZodString;
|
|
720
|
+
instanceId: import("zod").ZodString;
|
|
721
|
+
}, import("zod/v4/core").$strip>;
|
|
704
722
|
}>;
|
|
705
723
|
/**
|
|
706
724
|
* Register a parameter primitive with the provider.
|
|
@@ -717,6 +735,8 @@ declare class ParameterProvider {
|
|
|
717
735
|
* Set a new parameter value.
|
|
718
736
|
*/
|
|
719
737
|
set(name: string, value: unknown, options?: SaveParameterOptions): Promise<void>;
|
|
738
|
+
/** Whether the cached value outlived the revalidation TTL. */
|
|
739
|
+
protected isStale(ck: string): boolean;
|
|
720
740
|
/**
|
|
721
741
|
* Subscribe to parameter changes.
|
|
722
742
|
* Returns an unsubscribe function.
|
|
@@ -779,7 +799,7 @@ declare class ParameterProvider {
|
|
|
779
799
|
*/
|
|
780
800
|
protected resolveCreatorJoin(): {
|
|
781
801
|
creator: {
|
|
782
|
-
join: import("alepha/orm").EntityPrimitive<TObject
|
|
802
|
+
join: import("alepha/orm").EntityPrimitive<TObject>;
|
|
783
803
|
on: ["creatorId", {
|
|
784
804
|
name: string;
|
|
785
805
|
}];
|
|
@@ -801,6 +821,8 @@ declare class ParameterProvider {
|
|
|
801
821
|
* Delete all versions of many parameters by name in one repository call.
|
|
802
822
|
*/
|
|
803
823
|
deleteMany(names: string[]): Promise<string[]>;
|
|
824
|
+
/** Drop every per-org value cache entry for `name` in the active org. */
|
|
825
|
+
protected evictCaches(name: string): void;
|
|
804
826
|
/**
|
|
805
827
|
* Get a specific version of a parameter.
|
|
806
828
|
*/
|
|
@@ -831,7 +853,7 @@ declare class ParameterProvider {
|
|
|
831
853
|
next: ParameterWithStatus | null;
|
|
832
854
|
defaultValue: unknown | null;
|
|
833
855
|
currentValue: unknown | null;
|
|
834
|
-
schema:
|
|
856
|
+
schema: Record<string, unknown> | null;
|
|
835
857
|
}>;
|
|
836
858
|
/**
|
|
837
859
|
* Get all unique parameter names (for tree view).
|
|
@@ -938,59 +960,65 @@ declare class AdminParameterController {
|
|
|
938
960
|
* Useful for admin UI navigation.
|
|
939
961
|
*/
|
|
940
962
|
getParameterTree: import("alepha/server").ActionPrimitiveFn<{
|
|
941
|
-
response: import("
|
|
942
|
-
name: import("
|
|
943
|
-
path: import("
|
|
944
|
-
isLeaf: import("
|
|
945
|
-
children: import("
|
|
946
|
-
}>>;
|
|
963
|
+
response: import("zod").ZodArray<import("zod").ZodObject<{
|
|
964
|
+
name: import("zod").ZodString;
|
|
965
|
+
path: import("zod").ZodString;
|
|
966
|
+
isLeaf: import("zod").ZodBoolean;
|
|
967
|
+
children: import("zod").ZodArray<import("zod").ZodAny>;
|
|
968
|
+
}, import("zod/v4/core").$strip>>;
|
|
947
969
|
}>;
|
|
948
970
|
/**
|
|
949
971
|
* List all unique parameter names.
|
|
950
972
|
*/
|
|
951
973
|
listParameterNames: import("alepha/server").ActionPrimitiveFn<{
|
|
952
|
-
response: import("
|
|
953
|
-
names: import("
|
|
954
|
-
}>;
|
|
974
|
+
response: import("zod").ZodObject<{
|
|
975
|
+
names: import("zod").ZodArray<import("zod").ZodString>;
|
|
976
|
+
}, import("zod/v4/core").$strip>;
|
|
955
977
|
}>;
|
|
956
978
|
/**
|
|
957
979
|
* Get version history for a specific parameter.
|
|
958
980
|
* Returns all versions with calculated status.
|
|
959
981
|
*/
|
|
960
982
|
getHistory: import("alepha/server").ActionPrimitiveFn<{
|
|
961
|
-
params: import("
|
|
962
|
-
name: import("
|
|
963
|
-
}>;
|
|
964
|
-
query: import("
|
|
965
|
-
limit: import("
|
|
966
|
-
offset: import("
|
|
967
|
-
}>;
|
|
968
|
-
response: import("
|
|
969
|
-
versions: import("
|
|
970
|
-
id: PgAttr<PgAttr<import("
|
|
971
|
-
createdAt: PgAttr<PgAttr<import("
|
|
972
|
-
updatedAt: PgAttr<PgAttr<import("
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
983
|
+
params: import("zod").ZodObject<{
|
|
984
|
+
name: import("zod").ZodString;
|
|
985
|
+
}, import("zod/v4/core").$strip>;
|
|
986
|
+
query: import("zod").ZodObject<{
|
|
987
|
+
limit: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
988
|
+
offset: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
989
|
+
}, import("zod/v4/core").$strip>;
|
|
990
|
+
response: import("zod").ZodObject<{
|
|
991
|
+
versions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
992
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
993
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
994
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
995
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
996
|
+
name: import("zod").ZodString;
|
|
997
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
998
|
+
schemaHash: import("zod").ZodString;
|
|
999
|
+
activationDate: import("zod").ZodString;
|
|
1000
|
+
version: import("zod").ZodInt;
|
|
1001
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1002
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1003
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1004
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1005
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1006
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1007
|
+
status: import("zod").ZodEnum<{
|
|
1008
|
+
current: "current";
|
|
1009
|
+
expired: "expired";
|
|
1010
|
+
future: "future";
|
|
1011
|
+
next: "next";
|
|
1012
|
+
}>;
|
|
1013
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1014
|
+
id: import("zod").ZodString;
|
|
1015
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1016
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1017
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1018
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1019
|
+
}, import("zod/v4/core").$strip>>;
|
|
1020
|
+
}, import("zod/v4/core").$strip>>;
|
|
1021
|
+
}, import("zod/v4/core").$strip>;
|
|
994
1022
|
}>;
|
|
995
1023
|
/**
|
|
996
1024
|
* Get current and next values for a parameter.
|
|
@@ -998,232 +1026,268 @@ declare class AdminParameterController {
|
|
|
998
1026
|
* even if no versions exist in the database yet.
|
|
999
1027
|
*/
|
|
1000
1028
|
getCurrent: import("alepha/server").ActionPrimitiveFn<{
|
|
1001
|
-
params: import("
|
|
1002
|
-
name: import("
|
|
1003
|
-
}>;
|
|
1004
|
-
response: import("
|
|
1005
|
-
current: import("
|
|
1006
|
-
id: PgAttr<PgAttr<import("
|
|
1007
|
-
createdAt: PgAttr<PgAttr<import("
|
|
1008
|
-
updatedAt: PgAttr<PgAttr<import("
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1029
|
+
params: import("zod").ZodObject<{
|
|
1030
|
+
name: import("zod").ZodString;
|
|
1031
|
+
}, import("zod/v4/core").$strip>;
|
|
1032
|
+
response: import("zod").ZodObject<{
|
|
1033
|
+
current: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1034
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1035
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1036
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1037
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
1038
|
+
name: import("zod").ZodString;
|
|
1039
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1040
|
+
schemaHash: import("zod").ZodString;
|
|
1041
|
+
activationDate: import("zod").ZodString;
|
|
1042
|
+
version: import("zod").ZodInt;
|
|
1043
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1044
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1045
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1046
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1047
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1048
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1049
|
+
status: import("zod").ZodEnum<{
|
|
1050
|
+
current: "current";
|
|
1051
|
+
expired: "expired";
|
|
1052
|
+
future: "future";
|
|
1053
|
+
next: "next";
|
|
1054
|
+
}>;
|
|
1055
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1056
|
+
id: import("zod").ZodString;
|
|
1057
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1058
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1059
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1060
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1061
|
+
}, import("zod/v4/core").$strip>>;
|
|
1062
|
+
}, import("zod/v4/core").$strip>>;
|
|
1063
|
+
next: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1064
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1065
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1066
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1067
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
1068
|
+
name: import("zod").ZodString;
|
|
1069
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1070
|
+
schemaHash: import("zod").ZodString;
|
|
1071
|
+
activationDate: import("zod").ZodString;
|
|
1072
|
+
version: import("zod").ZodInt;
|
|
1073
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1074
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1075
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1076
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1077
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1078
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1079
|
+
status: import("zod").ZodEnum<{
|
|
1080
|
+
current: "current";
|
|
1081
|
+
expired: "expired";
|
|
1082
|
+
future: "future";
|
|
1083
|
+
next: "next";
|
|
1084
|
+
}>;
|
|
1085
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1086
|
+
id: import("zod").ZodString;
|
|
1087
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1088
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1089
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1090
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1091
|
+
}, import("zod/v4/core").$strip>>;
|
|
1092
|
+
}, import("zod/v4/core").$strip>>;
|
|
1093
|
+
defaultValue: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1094
|
+
currentValue: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1095
|
+
schema: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1096
|
+
}, import("zod/v4/core").$strip>;
|
|
1057
1097
|
}>;
|
|
1058
1098
|
/**
|
|
1059
1099
|
* Get a specific version of a parameter.
|
|
1060
1100
|
*/
|
|
1061
1101
|
getVersion: import("alepha/server").ActionPrimitiveFn<{
|
|
1062
|
-
params: import("
|
|
1063
|
-
name: import("
|
|
1064
|
-
version: import("
|
|
1065
|
-
}>;
|
|
1066
|
-
response: import("
|
|
1067
|
-
parameter: import("
|
|
1068
|
-
id: PgAttr<PgAttr<import("
|
|
1069
|
-
createdAt: PgAttr<PgAttr<import("
|
|
1070
|
-
updatedAt: PgAttr<PgAttr<import("
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1102
|
+
params: import("zod").ZodObject<{
|
|
1103
|
+
name: import("zod").ZodString;
|
|
1104
|
+
version: import("zod").ZodInt;
|
|
1105
|
+
}, import("zod/v4/core").$strip>;
|
|
1106
|
+
response: import("zod").ZodObject<{
|
|
1107
|
+
parameter: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1108
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1109
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1110
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1111
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
1112
|
+
name: import("zod").ZodString;
|
|
1113
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1114
|
+
schemaHash: import("zod").ZodString;
|
|
1115
|
+
activationDate: import("zod").ZodString;
|
|
1116
|
+
version: import("zod").ZodInt;
|
|
1117
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1118
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1119
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1120
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1121
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1122
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1123
|
+
status: import("zod").ZodEnum<{
|
|
1124
|
+
current: "current";
|
|
1125
|
+
expired: "expired";
|
|
1126
|
+
future: "future";
|
|
1127
|
+
next: "next";
|
|
1128
|
+
}>;
|
|
1129
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1130
|
+
id: import("zod").ZodString;
|
|
1131
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1132
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1133
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1134
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1135
|
+
}, import("zod/v4/core").$strip>>;
|
|
1136
|
+
}, import("zod/v4/core").$strip>>;
|
|
1137
|
+
}, import("zod/v4/core").$strip>;
|
|
1092
1138
|
}>;
|
|
1093
1139
|
/**
|
|
1094
1140
|
* Create a new parameter version.
|
|
1095
1141
|
*/
|
|
1096
1142
|
createVersion: import("alepha/server").ActionPrimitiveFn<{
|
|
1097
|
-
params: import("
|
|
1098
|
-
name: import("
|
|
1099
|
-
}>;
|
|
1100
|
-
body: import("
|
|
1101
|
-
content: import("
|
|
1102
|
-
schemaHash: import("
|
|
1103
|
-
changeDescription: import("
|
|
1104
|
-
tags: import("
|
|
1105
|
-
activationDate: import("
|
|
1106
|
-
}>;
|
|
1107
|
-
response: import("
|
|
1108
|
-
id: PgAttr<PgAttr<import("
|
|
1109
|
-
createdAt: PgAttr<PgAttr<import("
|
|
1110
|
-
updatedAt: PgAttr<PgAttr<import("
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1143
|
+
params: import("zod").ZodObject<{
|
|
1144
|
+
name: import("zod").ZodString;
|
|
1145
|
+
}, import("zod/v4/core").$strip>;
|
|
1146
|
+
body: import("zod").ZodObject<{
|
|
1147
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1148
|
+
schemaHash: import("zod").ZodString;
|
|
1149
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1150
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1151
|
+
activationDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1152
|
+
}, import("zod/v4/core").$strip>;
|
|
1153
|
+
response: import("zod").ZodObject<{
|
|
1154
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1155
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1156
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1157
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
1158
|
+
name: import("zod").ZodString;
|
|
1159
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1160
|
+
schemaHash: import("zod").ZodString;
|
|
1161
|
+
activationDate: import("zod").ZodString;
|
|
1162
|
+
version: import("zod").ZodInt;
|
|
1163
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1164
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1165
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1166
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1167
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1168
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1169
|
+
status: import("zod").ZodEnum<{
|
|
1170
|
+
current: "current";
|
|
1171
|
+
expired: "expired";
|
|
1172
|
+
future: "future";
|
|
1173
|
+
next: "next";
|
|
1174
|
+
}>;
|
|
1175
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1176
|
+
id: import("zod").ZodString;
|
|
1177
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1178
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1179
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1180
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1181
|
+
}, import("zod/v4/core").$strip>>;
|
|
1182
|
+
}, import("zod/v4/core").$strip>;
|
|
1131
1183
|
}>;
|
|
1132
1184
|
/**
|
|
1133
1185
|
* Rollback to a previous version.
|
|
1134
1186
|
*/
|
|
1135
1187
|
rollback: import("alepha/server").ActionPrimitiveFn<{
|
|
1136
|
-
params: import("
|
|
1137
|
-
name: import("
|
|
1138
|
-
}>;
|
|
1139
|
-
body: import("
|
|
1140
|
-
changeDescription: import("
|
|
1141
|
-
targetVersion: import("
|
|
1142
|
-
}>;
|
|
1143
|
-
response: import("
|
|
1144
|
-
id: PgAttr<PgAttr<import("
|
|
1145
|
-
createdAt: PgAttr<PgAttr<import("
|
|
1146
|
-
updatedAt: PgAttr<PgAttr<import("
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1188
|
+
params: import("zod").ZodObject<{
|
|
1189
|
+
name: import("zod").ZodString;
|
|
1190
|
+
}, import("zod/v4/core").$strip>;
|
|
1191
|
+
body: import("zod").ZodObject<{
|
|
1192
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1193
|
+
targetVersion: import("zod").ZodInt;
|
|
1194
|
+
}, import("zod/v4/core").$strip>;
|
|
1195
|
+
response: import("zod").ZodObject<{
|
|
1196
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1197
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1198
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1199
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
1200
|
+
name: import("zod").ZodString;
|
|
1201
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1202
|
+
schemaHash: import("zod").ZodString;
|
|
1203
|
+
activationDate: import("zod").ZodString;
|
|
1204
|
+
version: import("zod").ZodInt;
|
|
1205
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1206
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1207
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1208
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1209
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1210
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1211
|
+
status: import("zod").ZodEnum<{
|
|
1212
|
+
current: "current";
|
|
1213
|
+
expired: "expired";
|
|
1214
|
+
future: "future";
|
|
1215
|
+
next: "next";
|
|
1216
|
+
}>;
|
|
1217
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1218
|
+
id: import("zod").ZodString;
|
|
1219
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1220
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1221
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1222
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1223
|
+
}, import("zod/v4/core").$strip>>;
|
|
1224
|
+
}, import("zod/v4/core").$strip>;
|
|
1167
1225
|
}>;
|
|
1168
1226
|
/**
|
|
1169
1227
|
* Activate a scheduled version immediately.
|
|
1170
1228
|
* Creates a new version with the same content but immediate activation.
|
|
1171
1229
|
*/
|
|
1172
1230
|
activateNow: import("alepha/server").ActionPrimitiveFn<{
|
|
1173
|
-
params: import("
|
|
1174
|
-
name: import("
|
|
1175
|
-
}>;
|
|
1176
|
-
body: import("
|
|
1177
|
-
version: import("
|
|
1178
|
-
}>;
|
|
1179
|
-
response: import("
|
|
1180
|
-
id: PgAttr<PgAttr<import("
|
|
1181
|
-
createdAt: PgAttr<PgAttr<import("
|
|
1182
|
-
updatedAt: PgAttr<PgAttr<import("
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1231
|
+
params: import("zod").ZodObject<{
|
|
1232
|
+
name: import("zod").ZodString;
|
|
1233
|
+
}, import("zod/v4/core").$strip>;
|
|
1234
|
+
body: import("zod").ZodObject<{
|
|
1235
|
+
version: import("zod").ZodInt;
|
|
1236
|
+
}, import("zod/v4/core").$strip>;
|
|
1237
|
+
response: import("zod").ZodObject<{
|
|
1238
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1239
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1240
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1241
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
1242
|
+
name: import("zod").ZodString;
|
|
1243
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1244
|
+
schemaHash: import("zod").ZodString;
|
|
1245
|
+
activationDate: import("zod").ZodString;
|
|
1246
|
+
version: import("zod").ZodInt;
|
|
1247
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1248
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1249
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1250
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1251
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1252
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1253
|
+
status: import("zod").ZodEnum<{
|
|
1254
|
+
current: "current";
|
|
1255
|
+
expired: "expired";
|
|
1256
|
+
future: "future";
|
|
1257
|
+
next: "next";
|
|
1258
|
+
}>;
|
|
1259
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1260
|
+
id: import("zod").ZodString;
|
|
1261
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1262
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1263
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1264
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1265
|
+
}, import("zod/v4/core").$strip>>;
|
|
1266
|
+
}, import("zod/v4/core").$strip>;
|
|
1203
1267
|
}>;
|
|
1204
1268
|
/**
|
|
1205
1269
|
* Delete all versions of a parameter.
|
|
1206
1270
|
*/
|
|
1207
1271
|
deleteParameter: import("alepha/server").ActionPrimitiveFn<{
|
|
1208
|
-
params: import("
|
|
1209
|
-
name: import("
|
|
1210
|
-
}>;
|
|
1211
|
-
response: import("
|
|
1212
|
-
ok: import("
|
|
1213
|
-
id: import("
|
|
1214
|
-
count: import("
|
|
1215
|
-
}>;
|
|
1272
|
+
params: import("zod").ZodObject<{
|
|
1273
|
+
name: import("zod").ZodString;
|
|
1274
|
+
}, import("zod/v4/core").$strip>;
|
|
1275
|
+
response: import("zod").ZodObject<{
|
|
1276
|
+
ok: import("zod").ZodBoolean;
|
|
1277
|
+
id: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>>;
|
|
1278
|
+
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1279
|
+
}, import("zod/v4/core").$strip>;
|
|
1216
1280
|
}>;
|
|
1217
1281
|
/**
|
|
1218
1282
|
* Delete many parameters (all versions of each) in one request.
|
|
1219
1283
|
*/
|
|
1220
1284
|
deleteParameters: import("alepha/server").ActionPrimitiveFn<{
|
|
1221
|
-
body: import("
|
|
1222
|
-
names: import("
|
|
1223
|
-
}>;
|
|
1224
|
-
response: import("
|
|
1225
|
-
deleted: import("
|
|
1226
|
-
}>;
|
|
1285
|
+
body: import("zod").ZodObject<{
|
|
1286
|
+
names: import("zod").ZodArray<import("zod").ZodString>;
|
|
1287
|
+
}, import("zod/v4/core").$strip>;
|
|
1288
|
+
response: import("zod").ZodObject<{
|
|
1289
|
+
deleted: import("zod").ZodArray<import("zod").ZodString>;
|
|
1290
|
+
}, import("zod/v4/core").$strip>;
|
|
1227
1291
|
}>;
|
|
1228
1292
|
/**
|
|
1229
1293
|
* Derive a human-readable creator name from the authenticated session token.
|
|
@@ -1259,26 +1323,26 @@ declare class AdminParameterController {
|
|
|
1259
1323
|
* Creator fields are omitted; the controller captures the authenticated user
|
|
1260
1324
|
* server-side.
|
|
1261
1325
|
*/
|
|
1262
|
-
declare const activateParameterBodySchema: import("
|
|
1263
|
-
version: import("
|
|
1264
|
-
}>;
|
|
1326
|
+
declare const activateParameterBodySchema: import("zod").ZodObject<{
|
|
1327
|
+
version: import("zod").ZodInt;
|
|
1328
|
+
}, import("zod/v4/core").$strip>;
|
|
1265
1329
|
type ActivateParameterBody = Static<typeof activateParameterBodySchema>;
|
|
1266
1330
|
//#endregion
|
|
1267
1331
|
//#region ../../src/api/parameters/schemas/createParameterVersionBodySchema.d.ts
|
|
1268
1332
|
/**
|
|
1269
1333
|
* Create parameter version body schema.
|
|
1270
|
-
* Uses
|
|
1334
|
+
* Uses z.pick to derive from entity, with required fields made non-optional.
|
|
1271
1335
|
*
|
|
1272
1336
|
* Creator fields are intentionally omitted: the controller captures the
|
|
1273
1337
|
* authenticated user server-side, so they cannot be spoofed by the client.
|
|
1274
1338
|
*/
|
|
1275
|
-
declare const createParameterVersionBodySchema: import("
|
|
1276
|
-
content: import("
|
|
1277
|
-
schemaHash: import("
|
|
1278
|
-
changeDescription: import("
|
|
1279
|
-
tags: import("
|
|
1280
|
-
activationDate: import("
|
|
1281
|
-
}>;
|
|
1339
|
+
declare const createParameterVersionBodySchema: import("zod").ZodObject<{
|
|
1340
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1341
|
+
schemaHash: import("zod").ZodString;
|
|
1342
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1343
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1344
|
+
activationDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1345
|
+
}, import("zod/v4/core").$strip>;
|
|
1282
1346
|
type CreateParameterVersionBody = Static<typeof createParameterVersionBodySchema>;
|
|
1283
1347
|
//#endregion
|
|
1284
1348
|
//#region ../../src/api/parameters/schemas/parameterCurrentResponseSchema.d.ts
|
|
@@ -1286,109 +1350,127 @@ type CreateParameterVersionBody = Static<typeof createParameterVersionBodySchema
|
|
|
1286
1350
|
* Current parameter response schema.
|
|
1287
1351
|
* Includes current version, next scheduled version, and defaults.
|
|
1288
1352
|
*/
|
|
1289
|
-
declare const parameterCurrentResponseSchema: import("
|
|
1290
|
-
current: import("
|
|
1291
|
-
id: PgAttr<PgAttr<import("
|
|
1292
|
-
createdAt: PgAttr<PgAttr<import("
|
|
1293
|
-
updatedAt: PgAttr<PgAttr<import("
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
}>;
|
|
1353
|
+
declare const parameterCurrentResponseSchema: import("zod").ZodObject<{
|
|
1354
|
+
current: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1355
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1356
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1357
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1358
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
1359
|
+
name: import("zod").ZodString;
|
|
1360
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1361
|
+
schemaHash: import("zod").ZodString;
|
|
1362
|
+
activationDate: import("zod").ZodString;
|
|
1363
|
+
version: import("zod").ZodInt;
|
|
1364
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1365
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1366
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1367
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1368
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1369
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1370
|
+
status: import("zod").ZodEnum<{
|
|
1371
|
+
current: "current";
|
|
1372
|
+
expired: "expired";
|
|
1373
|
+
future: "future";
|
|
1374
|
+
next: "next";
|
|
1375
|
+
}>;
|
|
1376
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1377
|
+
id: import("zod").ZodString;
|
|
1378
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1379
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1380
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1381
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1382
|
+
}, import("zod/v4/core").$strip>>;
|
|
1383
|
+
}, import("zod/v4/core").$strip>>;
|
|
1384
|
+
next: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1385
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1386
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1387
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1388
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
1389
|
+
name: import("zod").ZodString;
|
|
1390
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1391
|
+
schemaHash: import("zod").ZodString;
|
|
1392
|
+
activationDate: import("zod").ZodString;
|
|
1393
|
+
version: import("zod").ZodInt;
|
|
1394
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1395
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1396
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1397
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1398
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1399
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1400
|
+
status: import("zod").ZodEnum<{
|
|
1401
|
+
current: "current";
|
|
1402
|
+
expired: "expired";
|
|
1403
|
+
future: "future";
|
|
1404
|
+
next: "next";
|
|
1405
|
+
}>;
|
|
1406
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1407
|
+
id: import("zod").ZodString;
|
|
1408
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1409
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1410
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1411
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1412
|
+
}, import("zod/v4/core").$strip>>;
|
|
1413
|
+
}, import("zod/v4/core").$strip>>;
|
|
1414
|
+
defaultValue: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1415
|
+
currentValue: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1416
|
+
schema: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1417
|
+
}, import("zod/v4/core").$strip>;
|
|
1342
1418
|
type ParameterCurrentResponse = Static<typeof parameterCurrentResponseSchema>;
|
|
1343
1419
|
//#endregion
|
|
1344
1420
|
//#region ../../src/api/parameters/schemas/parameterHistoryResponseSchema.d.ts
|
|
1345
1421
|
/**
|
|
1346
1422
|
* Parameter history response schema.
|
|
1347
1423
|
*/
|
|
1348
|
-
declare const parameterHistoryResponseSchema: import("
|
|
1349
|
-
versions: import("
|
|
1350
|
-
id: PgAttr<PgAttr<import("
|
|
1351
|
-
createdAt: PgAttr<PgAttr<import("
|
|
1352
|
-
updatedAt: PgAttr<PgAttr<import("
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1424
|
+
declare const parameterHistoryResponseSchema: import("zod").ZodObject<{
|
|
1425
|
+
versions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1426
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1427
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1428
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1429
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
1430
|
+
name: import("zod").ZodString;
|
|
1431
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1432
|
+
schemaHash: import("zod").ZodString;
|
|
1433
|
+
activationDate: import("zod").ZodString;
|
|
1434
|
+
version: import("zod").ZodInt;
|
|
1435
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1436
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1437
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1438
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1439
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1440
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1441
|
+
status: import("zod").ZodEnum<{
|
|
1442
|
+
current: "current";
|
|
1443
|
+
expired: "expired";
|
|
1444
|
+
future: "future";
|
|
1445
|
+
next: "next";
|
|
1446
|
+
}>;
|
|
1447
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1448
|
+
id: import("zod").ZodString;
|
|
1449
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1450
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1451
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1452
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1453
|
+
}, import("zod/v4/core").$strip>>;
|
|
1454
|
+
}, import("zod/v4/core").$strip>>;
|
|
1455
|
+
}, import("zod/v4/core").$strip>;
|
|
1374
1456
|
type ParameterHistoryResponse = Static<typeof parameterHistoryResponseSchema>;
|
|
1375
1457
|
//#endregion
|
|
1376
1458
|
//#region ../../src/api/parameters/schemas/parameterNameParamSchema.d.ts
|
|
1377
1459
|
/**
|
|
1378
1460
|
* Parameter name param schema.
|
|
1379
|
-
* Uses
|
|
1461
|
+
* Uses z.pick from entity for consistency.
|
|
1380
1462
|
*/
|
|
1381
|
-
declare const parameterNameParamSchema: import("
|
|
1382
|
-
name: import("
|
|
1383
|
-
}>;
|
|
1463
|
+
declare const parameterNameParamSchema: import("zod").ZodObject<{
|
|
1464
|
+
name: import("zod").ZodString;
|
|
1465
|
+
}, import("zod/v4/core").$strip>;
|
|
1384
1466
|
//#endregion
|
|
1385
1467
|
//#region ../../src/api/parameters/schemas/parameterNamesResponseSchema.d.ts
|
|
1386
1468
|
/**
|
|
1387
1469
|
* Parameter names list response schema.
|
|
1388
1470
|
*/
|
|
1389
|
-
declare const parameterNamesResponseSchema: import("
|
|
1390
|
-
names: import("
|
|
1391
|
-
}>;
|
|
1471
|
+
declare const parameterNamesResponseSchema: import("zod").ZodObject<{
|
|
1472
|
+
names: import("zod").ZodArray<import("zod").ZodString>;
|
|
1473
|
+
}, import("zod/v4/core").$strip>;
|
|
1392
1474
|
type ParameterNamesResponse = Static<typeof parameterNamesResponseSchema>;
|
|
1393
1475
|
//#endregion
|
|
1394
1476
|
//#region ../../src/api/parameters/schemas/parameterResponseSchema.d.ts
|
|
@@ -1400,72 +1482,84 @@ type ParameterNamesResponse = Static<typeof parameterNamesResponseSchema>;
|
|
|
1400
1482
|
* `creator` is embedded on read via a best-effort left join on `creatorId`
|
|
1401
1483
|
* (see `parameterCreatorSummarySchema`); it is not a stored column.
|
|
1402
1484
|
*/
|
|
1403
|
-
declare const parameterResponseSchema: import("
|
|
1404
|
-
id: PgAttr<PgAttr<import("
|
|
1405
|
-
createdAt: PgAttr<PgAttr<import("
|
|
1406
|
-
updatedAt: PgAttr<PgAttr<import("
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1485
|
+
declare const parameterResponseSchema: import("zod").ZodObject<{
|
|
1486
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1487
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1488
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1489
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
1490
|
+
name: import("zod").ZodString;
|
|
1491
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1492
|
+
schemaHash: import("zod").ZodString;
|
|
1493
|
+
activationDate: import("zod").ZodString;
|
|
1494
|
+
version: import("zod").ZodInt;
|
|
1495
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1496
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1497
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1498
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1499
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1500
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1501
|
+
status: import("zod").ZodEnum<{
|
|
1502
|
+
current: "current";
|
|
1503
|
+
expired: "expired";
|
|
1504
|
+
future: "future";
|
|
1505
|
+
next: "next";
|
|
1506
|
+
}>;
|
|
1507
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1508
|
+
id: import("zod").ZodString;
|
|
1509
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1510
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1511
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1512
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1513
|
+
}, import("zod/v4/core").$strip>>;
|
|
1514
|
+
}, import("zod/v4/core").$strip>;
|
|
1427
1515
|
type ParameterResponse = Static<typeof parameterResponseSchema>;
|
|
1428
1516
|
//#endregion
|
|
1429
1517
|
//#region ../../src/api/parameters/schemas/parameterVersionParamSchema.d.ts
|
|
1430
1518
|
/**
|
|
1431
1519
|
* Parameter name and version param schema.
|
|
1432
|
-
* Uses
|
|
1520
|
+
* Uses z.pick from entity for consistency.
|
|
1433
1521
|
*/
|
|
1434
|
-
declare const parameterVersionParamSchema: import("
|
|
1435
|
-
name: import("
|
|
1436
|
-
version: import("
|
|
1437
|
-
}>;
|
|
1522
|
+
declare const parameterVersionParamSchema: import("zod").ZodObject<{
|
|
1523
|
+
name: import("zod").ZodString;
|
|
1524
|
+
version: import("zod").ZodInt;
|
|
1525
|
+
}, import("zod/v4/core").$strip>;
|
|
1438
1526
|
//#endregion
|
|
1439
1527
|
//#region ../../src/api/parameters/schemas/parameterVersionResponseSchema.d.ts
|
|
1440
1528
|
/**
|
|
1441
1529
|
* Parameter version response schema.
|
|
1442
1530
|
*/
|
|
1443
|
-
declare const parameterVersionResponseSchema: import("
|
|
1444
|
-
parameter: import("
|
|
1445
|
-
id: PgAttr<PgAttr<import("
|
|
1446
|
-
createdAt: PgAttr<PgAttr<import("
|
|
1447
|
-
updatedAt: PgAttr<PgAttr<import("
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1531
|
+
declare const parameterVersionResponseSchema: import("zod").ZodObject<{
|
|
1532
|
+
parameter: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1533
|
+
id: PgAttr<PgAttr<import("zod").ZodString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1534
|
+
createdAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1535
|
+
updatedAt: PgAttr<PgAttr<import("zod").ZodString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1536
|
+
organizationId: PgAttr<import("zod").ZodOptional<import("zod").ZodString> | import("zod").ZodString, typeof PG_ORGANIZATION>;
|
|
1537
|
+
name: import("zod").ZodString;
|
|
1538
|
+
content: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
1539
|
+
schemaHash: import("zod").ZodString;
|
|
1540
|
+
activationDate: import("zod").ZodString;
|
|
1541
|
+
version: import("zod").ZodInt;
|
|
1542
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1543
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1544
|
+
creatorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1545
|
+
creatorName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1546
|
+
previousContent: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1547
|
+
migrationLog: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1548
|
+
status: import("zod").ZodEnum<{
|
|
1549
|
+
current: "current";
|
|
1550
|
+
expired: "expired";
|
|
1551
|
+
future: "future";
|
|
1552
|
+
next: "next";
|
|
1553
|
+
}>;
|
|
1554
|
+
creator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1555
|
+
id: import("zod").ZodString;
|
|
1556
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1557
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1558
|
+
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1559
|
+
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1560
|
+
}, import("zod/v4/core").$strip>>;
|
|
1561
|
+
}, import("zod/v4/core").$strip>>;
|
|
1562
|
+
}, import("zod/v4/core").$strip>;
|
|
1469
1563
|
type ParameterVersionResponse = Static<typeof parameterVersionResponseSchema>;
|
|
1470
1564
|
//#endregion
|
|
1471
1565
|
//#region ../../src/api/parameters/schemas/rollbackParameterBodySchema.d.ts
|
|
@@ -1475,10 +1569,10 @@ type ParameterVersionResponse = Static<typeof parameterVersionResponseSchema>;
|
|
|
1475
1569
|
* Creator fields are omitted; the controller captures the authenticated user
|
|
1476
1570
|
* server-side.
|
|
1477
1571
|
*/
|
|
1478
|
-
declare const rollbackParameterBodySchema: import("
|
|
1479
|
-
changeDescription: import("
|
|
1480
|
-
targetVersion: import("
|
|
1481
|
-
}>;
|
|
1572
|
+
declare const rollbackParameterBodySchema: import("zod").ZodObject<{
|
|
1573
|
+
changeDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1574
|
+
targetVersion: import("zod").ZodInt;
|
|
1575
|
+
}, import("zod/v4/core").$strip>;
|
|
1482
1576
|
type RollbackParameterBody = Static<typeof rollbackParameterBodySchema>;
|
|
1483
1577
|
//#endregion
|
|
1484
1578
|
//#region ../../src/api/parameters/index.d.ts
|