alepha 0.23.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 +247 -235
- 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 -1143
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +456 -392
- 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 +167 -155
- 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 +205 -442
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +259 -284
- 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 +8 -34
- package/dist/cli/i18n/index.d.ts.map +1 -1
- package/dist/cli/i18n/index.js +6 -6
- 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 +351 -404
- package/dist/cli/platform-lib/index.d.ts.map +1 -1
- package/dist/cli/platform-lib/index.js +218 -239
- 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 +83 -195
- 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 +27 -90
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +42 -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 -5
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/form/index.js +91 -56
- 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 +4 -5
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/i18n/index.js +2 -2
- 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 +60 -24
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +378 -377
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +77 -41
- package/dist/react/router/index.js.map +1 -1
- package/dist/react/sitemap/index.d.ts +0 -1
- package/dist/react/sitemap/index.d.ts.map +1 -1
- package/dist/react/sitemap/index.js.map +1 -1
- 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 +198 -274
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +83 -621
- 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 +72 -5
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/cookies/index.js +103 -9
- 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 +116 -85
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +105 -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 +22 -35
- 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 -10
- 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 -26
- package/src/api/users/providers/RealmProvider.ts +0 -15
- 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 -24
- 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 -76
- 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 -39
- 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/tasks/BuildCloudflareTask.ts +103 -230
- package/src/cli/core/templates/apiHelloResponseSchemaTs.ts +4 -4
- package/src/cli/devtools/atoms/devtoolsOptions.ts +6 -6
- package/src/cli/i18n/atoms/i18nOptions.ts +8 -8
- 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 +13 -14
- 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 +11 -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/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 +2 -2
- package/src/react/form/__tests__/form-submitting-reactive.browser.spec.tsx +5 -5
- 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 +67 -47
- package/src/react/form/services/parseField.ts +66 -27
- package/src/react/i18n/__tests__/Localize.spec.tsx +1 -1
- package/src/react/i18n/providers/I18nProvider.ts +2 -2
- 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/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/primitives/$page.ts +2 -2
- package/src/react/router/providers/ReactBrowserProvider.ts +64 -13
- package/src/react/router/providers/ReactPageProvider.ts +26 -12
- package/src/react/router/providers/ReactServerProvider.ts +13 -15
- package/src/react/sitemap/__tests__/$sitemap.spec.ts +2 -2
- 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/index.ts +0 -3
- 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 +49 -48
- 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 +14 -14
- 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 +13 -5
- 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 +6 -14
- package/src/server/core/primitives/$action.ts +26 -36
- 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/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/src/server/auth/__tests__/authFederationClient.spec.ts +0 -40
- package/src/server/auth/__tests__/federationAssertion.spec.ts +0 -146
- package/src/server/auth/helpers/federationAssertion.ts +0 -74
- package/src/server/auth/primitives/$authFederationBroker.ts +0 -273
- package/src/server/auth/primitives/$authFederationClient.ts +0 -89
- /package/dist/orm/core/{chunk-B4FMCO8f.js → rolldown-runtime-B4FMCO8f.js} +0 -0
package/dist/cli/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Alepha, Static } from "alepha";
|
|
2
|
-
import { CliProvider, EnvUtils,
|
|
2
|
+
import { CliProvider, EnvUtils, RunnerMethod } from "alepha/command";
|
|
3
3
|
import { ConsoleColorProvider } from "alepha/logger";
|
|
4
4
|
import { FileSystemProvider, ShellProvider } from "alepha/system";
|
|
5
5
|
import { BrotliOptions, ZlibOptions, brotliCompress, gzip } from "node:zlib";
|
|
@@ -7,7 +7,6 @@ import { spawn } from "node:child_process";
|
|
|
7
7
|
import * as vite from "vite";
|
|
8
8
|
import { Logger, Plugin, ViteDevServer } from "vite";
|
|
9
9
|
import { DatabaseProvider } from "alepha/orm";
|
|
10
|
-
|
|
11
10
|
//#region ../../src/cli/core/alephaPackageJson.d.ts
|
|
12
11
|
declare const alephaPackageJson: {
|
|
13
12
|
name: string;
|
|
@@ -26,7 +25,6 @@ declare const alephaPackageJson: {
|
|
|
26
25
|
files: string[];
|
|
27
26
|
dependencies: {
|
|
28
27
|
"@biomejs/biome": string;
|
|
29
|
-
"@cloudflare/containers": string;
|
|
30
28
|
"@redis/client": string;
|
|
31
29
|
"@vitejs/plugin-react": string;
|
|
32
30
|
dayjs: string;
|
|
@@ -35,11 +33,11 @@ declare const alephaPackageJson: {
|
|
|
35
33
|
postgres: string;
|
|
36
34
|
s3mini: string;
|
|
37
35
|
tsx: string;
|
|
38
|
-
typebox: string;
|
|
39
36
|
typescript: string;
|
|
40
37
|
vite: string;
|
|
41
38
|
"vite-bundle-analyzer": string;
|
|
42
39
|
vitest: string;
|
|
40
|
+
zod: string;
|
|
43
41
|
};
|
|
44
42
|
devDependencies: {
|
|
45
43
|
"@cloudflare/workers-types": string;
|
|
@@ -254,12 +252,6 @@ declare const alephaPackageJson: {
|
|
|
254
252
|
import: string;
|
|
255
253
|
default: string;
|
|
256
254
|
};
|
|
257
|
-
"./container": {
|
|
258
|
-
types: string;
|
|
259
|
-
workerd: string;
|
|
260
|
-
import: string;
|
|
261
|
-
default: string;
|
|
262
|
-
};
|
|
263
255
|
".": {
|
|
264
256
|
types: string;
|
|
265
257
|
"react-native": string;
|
|
@@ -696,12 +688,6 @@ declare const alephaPackageJson: {
|
|
|
696
688
|
import: string;
|
|
697
689
|
default: string;
|
|
698
690
|
};
|
|
699
|
-
"./container": {
|
|
700
|
-
types: string;
|
|
701
|
-
workerd: string;
|
|
702
|
-
import: string;
|
|
703
|
-
default: string;
|
|
704
|
-
};
|
|
705
691
|
".": {
|
|
706
692
|
types: string;
|
|
707
693
|
"react-native": string;
|
|
@@ -979,11 +965,11 @@ declare const alephaPackageJson: {
|
|
|
979
965
|
declare const version: string;
|
|
980
966
|
//#endregion
|
|
981
967
|
//#region ../../src/cli/core/atoms/appEntryOptions.d.ts
|
|
982
|
-
declare const appEntryOptions: import("alepha").Atom<import("
|
|
983
|
-
server: import("
|
|
984
|
-
browser: import("
|
|
985
|
-
style: import("
|
|
986
|
-
}>, "alepha.cli.appEntry.options">;
|
|
968
|
+
declare const appEntryOptions: import("alepha").Atom<import("zod").ZodObject<{
|
|
969
|
+
server: import("zod").ZodOptional<import("zod").ZodString>;
|
|
970
|
+
browser: import("zod").ZodOptional<import("zod").ZodString>;
|
|
971
|
+
style: import("zod").ZodOptional<import("zod").ZodString>;
|
|
972
|
+
}, import("zod/v4/core").$strip>, "alepha.cli.appEntry.options">;
|
|
987
973
|
type AppEntryOptions = Static<typeof appEntryOptions.schema>;
|
|
988
974
|
//#endregion
|
|
989
975
|
//#region ../../src/cli/core/atoms/buildOptions.d.ts
|
|
@@ -1009,247 +995,72 @@ type BuildRuntime = "node" | "bun" | "workerd";
|
|
|
1009
995
|
* Defines the available build configuration options with their defaults.
|
|
1010
996
|
* Options can be overridden via alepha.config.ts or CLI flags.
|
|
1011
997
|
*/
|
|
1012
|
-
declare const buildOptions: import("alepha").Atom<import("
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
*
|
|
1023
|
-
* - `docker` - Generate Dockerfile for containerized deployment
|
|
1024
|
-
* - `vercel` - Generate Vercel deployment configuration (forces node runtime)
|
|
1025
|
-
* - `cloudflare` - Generate Cloudflare Workers configuration (forces workerd runtime)
|
|
1026
|
-
*/
|
|
1027
|
-
target: import("typebox").TOptional<import("typebox").TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static">>;
|
|
1028
|
-
/**
|
|
1029
|
-
* JavaScript runtime for the build output.
|
|
1030
|
-
*
|
|
1031
|
-
* - `node` - Node.js runtime (default)
|
|
1032
|
-
* - `bun` - Bun runtime (uses bun export conditions)
|
|
1033
|
-
* - `workerd` - Cloudflare Workers runtime (auto-set with cloudflare target)
|
|
1034
|
-
*
|
|
1035
|
-
* Note: Some targets force a specific runtime:
|
|
1036
|
-
* - `cloudflare` always uses `workerd`
|
|
1037
|
-
* - `vercel` always uses `node`
|
|
1038
|
-
*/
|
|
1039
|
-
runtime: import("typebox").TOptional<import("typebox").TUnsafe<"node" | "bun" | "workerd">>;
|
|
1040
|
-
/**
|
|
1041
|
-
* Output directory configuration.
|
|
1042
|
-
*/
|
|
1043
|
-
output: import("typebox").TOptional<import("typebox").TObject<{
|
|
1044
|
-
/**
|
|
1045
|
-
* Root dist directory.
|
|
1046
|
-
*
|
|
1047
|
-
* @default "dist"
|
|
1048
|
-
*/
|
|
1049
|
-
dist: import("typebox").TOptional<import("typebox").TString>;
|
|
1050
|
-
/**
|
|
1051
|
-
* Public/client subdirectory.
|
|
1052
|
-
*
|
|
1053
|
-
* @default "public"
|
|
1054
|
-
*/
|
|
1055
|
-
public: import("typebox").TOptional<import("typebox").TString>;
|
|
998
|
+
declare const buildOptions: import("alepha").Atom<import("zod").ZodObject<{
|
|
999
|
+
stats: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodEnum<{
|
|
1000
|
+
json: "json";
|
|
1001
|
+
}>]>>;
|
|
1002
|
+
target: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1003
|
+
bare: "bare";
|
|
1004
|
+
cloudflare: "cloudflare";
|
|
1005
|
+
docker: "docker";
|
|
1006
|
+
static: "static";
|
|
1007
|
+
vercel: "vercel";
|
|
1056
1008
|
}>>;
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
* This object is only for additional configuration.
|
|
1062
|
-
*/
|
|
1063
|
-
vercel: import("typebox").TOptional<import("typebox").TObject<{
|
|
1064
|
-
projectName: import("typebox").TOptional<import("typebox").TString>;
|
|
1065
|
-
orgId: import("typebox").TOptional<import("typebox").TString>;
|
|
1066
|
-
projectId: import("typebox").TOptional<import("typebox").TString>;
|
|
1067
|
-
config: import("typebox").TOptional<import("typebox").TObject<{
|
|
1068
|
-
crons: import("typebox").TOptional<import("typebox").TArray<import("typebox").TObject<{
|
|
1069
|
-
path: import("typebox").TString;
|
|
1070
|
-
schedule: import("typebox").TString;
|
|
1071
|
-
}>>>;
|
|
1072
|
-
}>>;
|
|
1009
|
+
runtime: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1010
|
+
bun: "bun";
|
|
1011
|
+
node: "node";
|
|
1012
|
+
workerd: "workerd";
|
|
1073
1013
|
}>>;
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
*/
|
|
1121
|
-
image: import("typebox").TOptional<import("typebox").TObject<{
|
|
1122
|
-
/**
|
|
1123
|
-
* Default image tag (name without version).
|
|
1124
|
-
*
|
|
1125
|
-
* Used when --image is provided without a full override:
|
|
1126
|
-
* - `--image` → `tag:latest`
|
|
1127
|
-
* - `--image=1.3.4` → `tag:1.3.4`
|
|
1128
|
-
* - `--image=other/img:v1` → `other/img:v1` (full override)
|
|
1129
|
-
*
|
|
1130
|
-
* @example "myproject/myapp"
|
|
1131
|
-
* @example "ghcr.io/myorg/myapp"
|
|
1132
|
-
*/
|
|
1133
|
-
tag: import("typebox").TString;
|
|
1134
|
-
/**
|
|
1135
|
-
* Additional arguments to pass to `docker build`.
|
|
1136
|
-
*
|
|
1137
|
-
* @example '--platform linux/amd64 --no-cache'
|
|
1138
|
-
*/
|
|
1139
|
-
args: import("typebox").TOptional<import("typebox").TString>;
|
|
1140
|
-
/**
|
|
1141
|
-
* Auto-add OCI standard labels (revision, created, version).
|
|
1142
|
-
*
|
|
1143
|
-
* Adds:
|
|
1144
|
-
* - org.opencontainers.image.revision (git commit SHA)
|
|
1145
|
-
* - org.opencontainers.image.created (build timestamp)
|
|
1146
|
-
* - org.opencontainers.image.version (from image tag)
|
|
1147
|
-
*/
|
|
1148
|
-
oci: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
1014
|
+
output: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1015
|
+
dist: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString>>;
|
|
1016
|
+
public: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString>>;
|
|
1017
|
+
}, import("zod/v4/core").$strip>>;
|
|
1018
|
+
vercel: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1019
|
+
projectName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1020
|
+
orgId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1021
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1022
|
+
config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1023
|
+
crons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1024
|
+
path: import("zod").ZodString;
|
|
1025
|
+
schedule: import("zod").ZodString;
|
|
1026
|
+
}, import("zod/v4/core").$strip>>>;
|
|
1027
|
+
}, import("zod/v4/core").$strip>>;
|
|
1028
|
+
}, import("zod/v4/core").$strip>>;
|
|
1029
|
+
cloudflare: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1030
|
+
config: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
1031
|
+
}, import("zod/v4/core").$strip>>;
|
|
1032
|
+
docker: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1033
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1034
|
+
command: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1035
|
+
install: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1036
|
+
image: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1037
|
+
tag: import("zod").ZodString;
|
|
1038
|
+
args: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1039
|
+
oci: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1040
|
+
}, import("zod/v4/core").$strip>>;
|
|
1041
|
+
compile: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
|
|
1042
|
+
target: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1043
|
+
base: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1044
|
+
minify: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1045
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
1046
|
+
}, import("zod/v4/core").$strip>>;
|
|
1047
|
+
static: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1048
|
+
domain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1049
|
+
}, import("zod/v4/core").$strip>>;
|
|
1050
|
+
pwa: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1051
|
+
name: import("zod").ZodString;
|
|
1052
|
+
shortName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1053
|
+
themeColor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1054
|
+
backgroundColor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1055
|
+
display: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1056
|
+
browser: "browser";
|
|
1057
|
+
fullscreen: "fullscreen";
|
|
1058
|
+
"minimal-ui": "minimal-ui";
|
|
1059
|
+
standalone: "standalone";
|
|
1149
1060
|
}>>;
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
* (distroless by default). Requires `runtime: "bun"`.
|
|
1154
|
-
*
|
|
1155
|
-
* When enabled:
|
|
1156
|
-
* - the binary is produced at `<dist>/app` and the original `dist/server/`,
|
|
1157
|
-
* `dist/index.js` and `dist/package.json` are removed
|
|
1158
|
-
* - the generated Dockerfile uses a distroless base image and does not
|
|
1159
|
-
* run `bun install` (everything is embedded in the binary)
|
|
1160
|
-
* - any non-empty `dependencies` in the externals manifest causes the
|
|
1161
|
-
* task to fail loudly (compile requires fully-bundled output)
|
|
1162
|
-
*
|
|
1163
|
-
* Pass `true` to enable with defaults, or an object to override.
|
|
1164
|
-
*/
|
|
1165
|
-
compile: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TObject<{
|
|
1166
|
-
/**
|
|
1167
|
-
* Bun target triple, e.g. `bun-linux-x64-musl`,
|
|
1168
|
-
* `bun-linux-arm64-musl`, or `bun-linux-x64-modern-musl`
|
|
1169
|
-
* (AVX2 required).
|
|
1170
|
-
*
|
|
1171
|
-
* @default derived from host arch — always linux-musl.
|
|
1172
|
-
*/
|
|
1173
|
-
target: import("typebox").TOptional<import("typebox").TString>;
|
|
1174
|
-
/**
|
|
1175
|
-
* Base image for the generated Dockerfile.
|
|
1176
|
-
*
|
|
1177
|
-
* @default "gcr.io/distroless/static-debian12"
|
|
1178
|
-
*/
|
|
1179
|
-
base: import("typebox").TOptional<import("typebox").TString>;
|
|
1180
|
-
/**
|
|
1181
|
-
* Minify the compiled output.
|
|
1182
|
-
*
|
|
1183
|
-
* @default true
|
|
1184
|
-
*/
|
|
1185
|
-
minify: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
1186
|
-
}>]>>;
|
|
1187
|
-
}>>;
|
|
1188
|
-
/**
|
|
1189
|
-
* Static site deployment configuration.
|
|
1190
|
-
*
|
|
1191
|
-
* Note: Set `target: "static"` to enable static site generation.
|
|
1192
|
-
*/
|
|
1193
|
-
static: import("typebox").TOptional<import("typebox").TObject<{
|
|
1194
|
-
/**
|
|
1195
|
-
* Surge domain for deployment.
|
|
1196
|
-
*
|
|
1197
|
-
* If set, a CNAME file is written to dist/public/.
|
|
1198
|
-
* If not set, a domain is auto-generated from package.json name.
|
|
1199
|
-
*
|
|
1200
|
-
* @example "my-app.surge.sh"
|
|
1201
|
-
* @example "my-custom-domain.com"
|
|
1202
|
-
*/
|
|
1203
|
-
domain: import("typebox").TOptional<import("typebox").TString>;
|
|
1204
|
-
}>>;
|
|
1205
|
-
/**
|
|
1206
|
-
* PWA (Progressive Web App) configuration.
|
|
1207
|
-
*
|
|
1208
|
-
* Generates a web app manifest and enables installability.
|
|
1209
|
-
* Requires a client-side bundle (React).
|
|
1210
|
-
*/
|
|
1211
|
-
pwa: import("typebox").TOptional<import("typebox").TObject<{
|
|
1212
|
-
/**
|
|
1213
|
-
* Full application name displayed on the splash screen
|
|
1214
|
-
* and in the OS app switcher.
|
|
1215
|
-
*/
|
|
1216
|
-
name: import("typebox").TString;
|
|
1217
|
-
/**
|
|
1218
|
-
* Short name displayed on the home screen icon.
|
|
1219
|
-
* Falls back to `name` if omitted.
|
|
1220
|
-
*/
|
|
1221
|
-
shortName: import("typebox").TOptional<import("typebox").TString>;
|
|
1222
|
-
/**
|
|
1223
|
-
* Theme color used for the browser toolbar and OS chrome.
|
|
1224
|
-
*
|
|
1225
|
-
* @default "#ffffff"
|
|
1226
|
-
*/
|
|
1227
|
-
themeColor: import("typebox").TOptional<import("typebox").TString>;
|
|
1228
|
-
/**
|
|
1229
|
-
* Background color for the splash screen.
|
|
1230
|
-
*
|
|
1231
|
-
* @default "#ffffff"
|
|
1232
|
-
*/
|
|
1233
|
-
backgroundColor: import("typebox").TOptional<import("typebox").TString>;
|
|
1234
|
-
/**
|
|
1235
|
-
* Display mode for the installed PWA.
|
|
1236
|
-
*
|
|
1237
|
-
* - `standalone` - Looks like a native app (default)
|
|
1238
|
-
* - `fullscreen` - Uses entire screen (games, immersive)
|
|
1239
|
-
* - `minimal-ui` - Like standalone with minimal browser UI
|
|
1240
|
-
* - `browser` - Standard browser tab
|
|
1241
|
-
*
|
|
1242
|
-
* @default "standalone"
|
|
1243
|
-
*/
|
|
1244
|
-
display: import("typebox").TOptional<import("typebox").TUnsafe<"standalone" | "fullscreen" | "minimal-ui" | "browser">>;
|
|
1245
|
-
/**
|
|
1246
|
-
* Enable offline support via service worker.
|
|
1247
|
-
*
|
|
1248
|
-
* TODO: Not yet implemented.
|
|
1249
|
-
*/
|
|
1250
|
-
offline: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
1251
|
-
}>>;
|
|
1252
|
-
}>, "alepha.cli.build.options">;
|
|
1061
|
+
offline: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1062
|
+
}, import("zod/v4/core").$strip>>;
|
|
1063
|
+
}, import("zod/v4/core").$strip>, "alepha.cli.build.options">;
|
|
1253
1064
|
/**
|
|
1254
1065
|
* Type for build options.
|
|
1255
1066
|
*/
|
|
@@ -1273,13 +1084,9 @@ declare const DEFAULT_IGNORE: string[];
|
|
|
1273
1084
|
* });
|
|
1274
1085
|
* ```
|
|
1275
1086
|
*/
|
|
1276
|
-
declare const changelogOptions: import("alepha").Atom<import("
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
* Commits like `feat(chore): ...` will be excluded from changelog.
|
|
1280
|
-
*/
|
|
1281
|
-
ignore: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
|
|
1282
|
-
}>, "alepha.cli.changelog.options">;
|
|
1087
|
+
declare const changelogOptions: import("alepha").Atom<import("zod").ZodObject<{
|
|
1088
|
+
ignore: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1089
|
+
}, import("zod/v4/core").$strip>, "alepha.cli.changelog.options">;
|
|
1283
1090
|
type ChangelogOptions = Static<typeof changelogOptions.schema>;
|
|
1284
1091
|
//#endregion
|
|
1285
1092
|
//#region ../../src/cli/core/atoms/devOptions.d.ts
|
|
@@ -1289,12 +1096,9 @@ type ChangelogOptions = Static<typeof changelogOptions.schema>;
|
|
|
1289
1096
|
* Defines the available dev configuration options with their defaults.
|
|
1290
1097
|
* Options can be overridden via alepha.config.ts or CLI flags.
|
|
1291
1098
|
*/
|
|
1292
|
-
declare const devOptions: import("alepha").Atom<import("
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
*/
|
|
1296
|
-
noViteReactPlugin: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
1297
|
-
}>, "alepha.cli.dev.options">;
|
|
1099
|
+
declare const devOptions: import("alepha").Atom<import("zod").ZodObject<{
|
|
1100
|
+
noViteReactPlugin: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
1101
|
+
}, import("zod/v4/core").$strip>, "alepha.cli.dev.options">;
|
|
1298
1102
|
/**
|
|
1299
1103
|
* Type for dev options.
|
|
1300
1104
|
*/
|
|
@@ -1309,8 +1113,8 @@ type DevOptions = Static<typeof devOptions.schema>;
|
|
|
1309
1113
|
declare class AppEntryProvider {
|
|
1310
1114
|
protected readonly fs: FileSystemProvider;
|
|
1311
1115
|
protected readonly options: Readonly<{
|
|
1312
|
-
browser?: string | undefined;
|
|
1313
1116
|
server?: string | undefined;
|
|
1117
|
+
browser?: string | undefined;
|
|
1314
1118
|
style?: string | undefined;
|
|
1315
1119
|
}>;
|
|
1316
1120
|
protected readonly serverEntries: readonly ["main.server.ts", "main.server.tsx", "main.ts", "main.tsx"];
|
|
@@ -1749,12 +1553,7 @@ declare class ProjectScaffolder {
|
|
|
1749
1553
|
/**
|
|
1750
1554
|
* Full project init — scaffolds files, installs deps, sets up PM and git.
|
|
1751
1555
|
*/
|
|
1752
|
-
init({
|
|
1753
|
-
run,
|
|
1754
|
-
root,
|
|
1755
|
-
flags,
|
|
1756
|
-
args
|
|
1757
|
-
}: {
|
|
1556
|
+
init({ run, root, flags, args }: {
|
|
1758
1557
|
run: RunnerMethod;
|
|
1759
1558
|
root: string;
|
|
1760
1559
|
flags: {
|
|
@@ -1841,21 +1640,6 @@ interface BuildManifest {
|
|
|
1841
1640
|
email?: {
|
|
1842
1641
|
binding: string;
|
|
1843
1642
|
};
|
|
1844
|
-
/**
|
|
1845
|
-
* `$container()` descriptors — image, port, lifecycle settings.
|
|
1846
|
-
* Used both to populate Cloudflare Containers bindings in
|
|
1847
|
-
* wrangler.jsonc and (in future) to know which images Rocket should
|
|
1848
|
-
* pull on the deploy side.
|
|
1849
|
-
*/
|
|
1850
|
-
containers: Array<{
|
|
1851
|
-
name: string;
|
|
1852
|
-
className: string;
|
|
1853
|
-
image: string;
|
|
1854
|
-
port: number;
|
|
1855
|
-
sleepAfter: string;
|
|
1856
|
-
instanceType: string;
|
|
1857
|
-
maxInstances: number;
|
|
1858
|
-
}>;
|
|
1859
1643
|
/**
|
|
1860
1644
|
* Every env var the app declares via `$env`, captured from
|
|
1861
1645
|
* `alepha.dump().env` at build time. The deploy `secrets` step uses this
|
|
@@ -1886,7 +1670,9 @@ declare class BuildCloudflareTask extends BuildTask {
|
|
|
1886
1670
|
* the deploy path can skip the Vite-based introspection step and the
|
|
1887
1671
|
* workspace's runtime npm install.
|
|
1888
1672
|
*/
|
|
1889
|
-
protected writeManifest(ctx: BuildTaskContext, root: string, distDir: string, name: string
|
|
1673
|
+
protected writeManifest(ctx: BuildTaskContext, root: string, distDir: string, name: string): Promise<void>;
|
|
1674
|
+
/** Worker-to-worker service bindings, from CLOUDFLARE_SERVICES (JSON). */
|
|
1675
|
+
protected enhanceServices(wrangler: WranglerConfig): void;
|
|
1890
1676
|
protected enhanceDomain(wrangler: WranglerConfig): void;
|
|
1891
1677
|
protected enhanceCron(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
|
|
1892
1678
|
protected discoverCrons(ctx: BuildTaskContext): string[];
|
|
@@ -1898,57 +1684,7 @@ declare class BuildCloudflareTask extends BuildTask {
|
|
|
1898
1684
|
protected enhanceKV(wrangler: WranglerConfig): void;
|
|
1899
1685
|
protected enhanceQueue(wrangler: WranglerConfig): void;
|
|
1900
1686
|
protected enhanceEmail(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
|
|
1901
|
-
|
|
1902
|
-
* Discover `$container` primitives and emit the matching Cloudflare
|
|
1903
|
-
* Containers bindings, Durable Object bindings, and migrations into
|
|
1904
|
-
* `wrangler.jsonc`. The DO class declarations are added later, when
|
|
1905
|
-
* the worker entry point is written.
|
|
1906
|
-
*
|
|
1907
|
-
* Returns the list of container descriptors so
|
|
1908
|
-
* `writeWorkerEntryPoint` can emit `export class <NAME> extends
|
|
1909
|
-
* Container` declarations referencing them.
|
|
1910
|
-
*/
|
|
1911
|
-
protected discoverContainers(ctx: BuildTaskContext): ContainerDescriptor[];
|
|
1912
|
-
/**
|
|
1913
|
-
* Expand a short image ref (e.g. `alepha-rocket:0.1.0`) into the
|
|
1914
|
-
* fully-qualified `registry.cloudflare.com/<account>/<image>:<tag>`
|
|
1915
|
-
* URL that wrangler validates at deploy time.
|
|
1916
|
-
*
|
|
1917
|
-
* Cloudflare Containers only pulls from `registry.cloudflare.com`;
|
|
1918
|
-
* wrangler accepts either a Dockerfile path or a fully-qualified
|
|
1919
|
-
* registry URL in the `image` field — not a bare DockerHub-style
|
|
1920
|
-
* name. We let `$container({ image })` callers write the short
|
|
1921
|
-
* form (it matches what `wrangler containers push <local>` accepts
|
|
1922
|
-
* + matches the local docker tag) and rewrite to the CF registry
|
|
1923
|
-
* URL here.
|
|
1924
|
-
*
|
|
1925
|
-
* Pass-through cases:
|
|
1926
|
-
* - already a full URL: starts with `registry.cloudflare.com/`
|
|
1927
|
-
* or contains a scheme/`://`
|
|
1928
|
-
* - looks like a Dockerfile path: starts with `./` or `/`
|
|
1929
|
-
*/
|
|
1930
|
-
protected resolveContainerImage(image: string): string;
|
|
1931
|
-
protected enhanceContainers(ctx: BuildTaskContext, wrangler: WranglerConfig): ContainerDescriptor[];
|
|
1932
|
-
protected writeWorkerEntryPoint(root: string, distDir: string, containers?: ContainerDescriptor[]): Promise<void>;
|
|
1933
|
-
}
|
|
1934
|
-
interface ContainerDescriptor {
|
|
1935
|
-
name: string;
|
|
1936
|
-
className: string;
|
|
1937
|
-
image: string;
|
|
1938
|
-
port: number;
|
|
1939
|
-
sleepAfter: string;
|
|
1940
|
-
/**
|
|
1941
|
-
* Cloudflare Containers instance class.
|
|
1942
|
-
*
|
|
1943
|
-
* `dev` is the wrangler-pre-GA name; the platform accepts it but
|
|
1944
|
-
* emits a deprecation warning telling you to use `lite`. We
|
|
1945
|
-
* silently translate at write time (see `discoverContainers`
|
|
1946
|
-
* default + `enhanceContainers` write) so older
|
|
1947
|
-
* `$container({ instanceType: "dev" })` declarations keep working.
|
|
1948
|
-
*/
|
|
1949
|
-
instanceType: "dev" | "lite" | "basic" | "standard";
|
|
1950
|
-
maxInstances: number;
|
|
1951
|
-
envVars?: Record<string, string>;
|
|
1687
|
+
protected writeWorkerEntryPoint(root: string, distDir: string): Promise<void>;
|
|
1952
1688
|
}
|
|
1953
1689
|
//#endregion
|
|
1954
1690
|
//#region ../../src/cli/core/tasks/BuildTask.d.ts
|
|
@@ -2376,22 +2112,12 @@ declare class BuildCommand {
|
|
|
2376
2112
|
protected readonly boot: AppEntryProvider;
|
|
2377
2113
|
protected readonly viteBuildProvider: ViteBuildProvider;
|
|
2378
2114
|
protected readonly options: Readonly<{
|
|
2379
|
-
stats?:
|
|
2380
|
-
target?: "bare" | "
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
image?: {
|
|
2386
|
-
args?: string | undefined;
|
|
2387
|
-
oci?: boolean | undefined;
|
|
2388
|
-
tag: string;
|
|
2389
|
-
} | undefined;
|
|
2390
|
-
compile?: boolean | {
|
|
2391
|
-
target?: string | undefined;
|
|
2392
|
-
base?: string | undefined;
|
|
2393
|
-
minify?: boolean | undefined;
|
|
2394
|
-
} | undefined;
|
|
2115
|
+
stats?: "json" | boolean | undefined;
|
|
2116
|
+
target?: "bare" | "cloudflare" | "docker" | "static" | "vercel" | undefined;
|
|
2117
|
+
runtime?: "bun" | "node" | "workerd" | undefined;
|
|
2118
|
+
output?: {
|
|
2119
|
+
dist?: string | undefined;
|
|
2120
|
+
public?: string | undefined;
|
|
2395
2121
|
} | undefined;
|
|
2396
2122
|
vercel?: {
|
|
2397
2123
|
projectName?: string | undefined;
|
|
@@ -2407,21 +2133,31 @@ declare class BuildCommand {
|
|
|
2407
2133
|
cloudflare?: {
|
|
2408
2134
|
config?: Record<string, any> | undefined;
|
|
2409
2135
|
} | undefined;
|
|
2136
|
+
docker?: {
|
|
2137
|
+
from?: string | undefined;
|
|
2138
|
+
command?: string | undefined;
|
|
2139
|
+
install?: string[] | undefined;
|
|
2140
|
+
image?: {
|
|
2141
|
+
tag: string;
|
|
2142
|
+
args?: string | undefined;
|
|
2143
|
+
oci?: boolean | undefined;
|
|
2144
|
+
} | undefined;
|
|
2145
|
+
compile?: boolean | {
|
|
2146
|
+
target?: string | undefined;
|
|
2147
|
+
base?: string | undefined;
|
|
2148
|
+
minify?: boolean | undefined;
|
|
2149
|
+
} | undefined;
|
|
2150
|
+
} | undefined;
|
|
2410
2151
|
static?: {
|
|
2411
2152
|
domain?: string | undefined;
|
|
2412
2153
|
} | undefined;
|
|
2413
|
-
runtime?: "node" | "bun" | "workerd" | undefined;
|
|
2414
|
-
output?: {
|
|
2415
|
-
dist?: string | undefined;
|
|
2416
|
-
public?: string | undefined;
|
|
2417
|
-
} | undefined;
|
|
2418
2154
|
pwa?: {
|
|
2155
|
+
name: string;
|
|
2419
2156
|
shortName?: string | undefined;
|
|
2420
2157
|
themeColor?: string | undefined;
|
|
2421
2158
|
backgroundColor?: string | undefined;
|
|
2422
|
-
display?: "
|
|
2159
|
+
display?: "browser" | "fullscreen" | "minimal-ui" | "standalone" | undefined;
|
|
2423
2160
|
offline?: boolean | undefined;
|
|
2424
|
-
name: string;
|
|
2425
2161
|
} | undefined;
|
|
2426
2162
|
}>;
|
|
2427
2163
|
/**
|
|
@@ -2429,7 +2165,7 @@ declare class BuildCommand {
|
|
|
2429
2165
|
* Each task self-guards (checks target, hasClient, etc.).
|
|
2430
2166
|
* Order matters — compress must be last.
|
|
2431
2167
|
*/
|
|
2432
|
-
protected readonly pipeline: (
|
|
2168
|
+
protected readonly pipeline: (BuildAssetsTask | BuildClientTask | BuildCloudflareTask | BuildCompressTask | BuildDockerTask | BuildPrerenderTask | BuildPwaTask | BuildServerTask | BuildStaticTask | BuildVercelTask)[];
|
|
2433
2169
|
/**
|
|
2434
2170
|
* Value aliases accepted for `--target`.
|
|
2435
2171
|
*
|
|
@@ -2455,14 +2191,27 @@ declare class BuildCommand {
|
|
|
2455
2191
|
* @throws {AlephaError} If an incompatible runtime is specified for a target
|
|
2456
2192
|
*/
|
|
2457
2193
|
protected resolveRuntime(target: BuildTarget | undefined, runtime: BuildRuntime | undefined): BuildRuntime;
|
|
2458
|
-
readonly build: import("alepha/command").CommandPrimitive<import("
|
|
2459
|
-
stats: import("
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2194
|
+
readonly build: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2195
|
+
stats: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodEnum<{
|
|
2196
|
+
json: "json";
|
|
2197
|
+
}>]>>;
|
|
2198
|
+
target: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
2199
|
+
bare: "bare";
|
|
2200
|
+
cf: "cf";
|
|
2201
|
+
cloudflare: "cloudflare";
|
|
2202
|
+
docker: "docker";
|
|
2203
|
+
static: "static";
|
|
2204
|
+
vercel: "vercel";
|
|
2205
|
+
}>>;
|
|
2206
|
+
runtime: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
2207
|
+
bun: "bun";
|
|
2208
|
+
node: "node";
|
|
2209
|
+
workerd: "workerd";
|
|
2210
|
+
}>>;
|
|
2211
|
+
image: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodString]>>;
|
|
2212
|
+
compile: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2213
|
+
prebuilt: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2214
|
+
}, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
|
|
2466
2215
|
/**
|
|
2467
2216
|
* Read `dist/manifest.json` produced by a previous `alepha build`.
|
|
2468
2217
|
* Returns null when absent or unparseable — caller falls back to the
|
|
@@ -2476,7 +2225,7 @@ declare class CleanCommand {
|
|
|
2476
2225
|
/**
|
|
2477
2226
|
* Clean the project, removing the "dist" directory
|
|
2478
2227
|
*/
|
|
2479
|
-
readonly clean: import("alepha/command").CommandPrimitive<import("
|
|
2228
|
+
readonly clean: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
|
|
2480
2229
|
}
|
|
2481
2230
|
//#endregion
|
|
2482
2231
|
//#region ../../src/cli/core/commands/db.d.ts
|
|
@@ -2487,48 +2236,47 @@ declare class DbCommand {
|
|
|
2487
2236
|
protected readonly pm: PackageManagerUtils;
|
|
2488
2237
|
protected readonly entryProvider: AppEntryProvider;
|
|
2489
2238
|
protected readonly viteUtil: ViteUtils;
|
|
2490
|
-
protected readonly runner: Runner;
|
|
2491
2239
|
/**
|
|
2492
2240
|
* Check if database migrations are up to date.
|
|
2493
2241
|
*/
|
|
2494
|
-
protected readonly check: import("alepha/command").CommandPrimitive<import("
|
|
2495
|
-
provider: import("
|
|
2496
|
-
}>, import("
|
|
2242
|
+
protected readonly check: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2243
|
+
provider: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2244
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
|
|
2497
2245
|
/**
|
|
2498
2246
|
* Generate database migration files
|
|
2499
2247
|
*/
|
|
2500
|
-
protected readonly create: import("alepha/command").CommandPrimitive<import("
|
|
2501
|
-
provider: import("
|
|
2502
|
-
custom: import("
|
|
2503
|
-
name: import("
|
|
2504
|
-
}>, import("
|
|
2248
|
+
protected readonly create: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2249
|
+
provider: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2250
|
+
custom: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2251
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2252
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
|
|
2505
2253
|
/**
|
|
2506
2254
|
* Push database schema changes directly to the database
|
|
2507
2255
|
*/
|
|
2508
|
-
protected readonly push: import("alepha/command").CommandPrimitive<import("
|
|
2509
|
-
provider: import("
|
|
2510
|
-
dryRun: import("
|
|
2511
|
-
}>, import("
|
|
2256
|
+
protected readonly push: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2257
|
+
provider: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2258
|
+
dryRun: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2259
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
|
|
2512
2260
|
/**
|
|
2513
2261
|
* Apply pending database migrations
|
|
2514
2262
|
*/
|
|
2515
|
-
protected readonly apply: import("alepha/command").CommandPrimitive<import("
|
|
2516
|
-
provider: import("
|
|
2517
|
-
}>, import("
|
|
2263
|
+
protected readonly apply: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2264
|
+
provider: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2265
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
|
|
2518
2266
|
/**
|
|
2519
2267
|
* Launch Drizzle Studio database browser
|
|
2520
2268
|
*/
|
|
2521
|
-
protected readonly studio: import("alepha/command").CommandPrimitive<import("
|
|
2522
|
-
provider: import("
|
|
2523
|
-
}>, import("
|
|
2269
|
+
protected readonly studio: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2270
|
+
provider: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2271
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
|
|
2524
2272
|
/**
|
|
2525
2273
|
* Parent command for migration operations.
|
|
2526
2274
|
*/
|
|
2527
|
-
protected readonly migrations: import("alepha/command").CommandPrimitive<import("
|
|
2275
|
+
protected readonly migrations: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
|
|
2528
2276
|
/**
|
|
2529
2277
|
* Parent command for database operations.
|
|
2530
2278
|
*/
|
|
2531
|
-
readonly db: import("alepha/command").CommandPrimitive<import("
|
|
2279
|
+
readonly db: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
|
|
2532
2280
|
/**
|
|
2533
2281
|
* Run a drizzle-kit command for all database providers in an Alepha instance.
|
|
2534
2282
|
*/
|
|
@@ -2547,6 +2295,26 @@ declare class DbCommand {
|
|
|
2547
2295
|
* models. This breaks when deploying to a non-public schema via search_path.
|
|
2548
2296
|
*/
|
|
2549
2297
|
protected stripPublicSchemaFromMigrations(migrationsDir: string): Promise<void>;
|
|
2298
|
+
/**
|
|
2299
|
+
* Refuse a freshly generated migration that drops a table.
|
|
2300
|
+
*
|
|
2301
|
+
* Drizzle rebuilds a SQLite table by dropping and recreating it. On
|
|
2302
|
+
* Cloudflare D1 that is a data-loss bomb: D1 ignores `PRAGMA
|
|
2303
|
+
* foreign_keys=OFF`, so dropping a table that other tables reference with
|
|
2304
|
+
* `ON DELETE CASCADE` silently wipes every child row — with no error, on
|
|
2305
|
+
* deploy, in production.
|
|
2306
|
+
*
|
|
2307
|
+
* The generated file is left on disk on purpose: the point is to force a
|
|
2308
|
+
* human to read it. If the drop really is intended, keep the file and move
|
|
2309
|
+
* on (a re-run detects no schema diff, so nothing is regenerated and this
|
|
2310
|
+
* guard stays quiet).
|
|
2311
|
+
*/
|
|
2312
|
+
protected assertNoDestructiveMigrations(migrationsDir: string, files: string[]): Promise<void>;
|
|
2313
|
+
/**
|
|
2314
|
+
* Extract `DROP TABLE` statements from a SQL migration, skipping any that sit
|
|
2315
|
+
* inside a `--` line comment.
|
|
2316
|
+
*/
|
|
2317
|
+
protected findDropTableStatements(sql: string): string[];
|
|
2550
2318
|
/**
|
|
2551
2319
|
* Prepare Drizzle configuration files for a database provider.
|
|
2552
2320
|
*/
|
|
@@ -2785,9 +2553,9 @@ declare class DevCommand {
|
|
|
2785
2553
|
* When run from a workspace root (with apps/ directory), spawns all apps in parallel.
|
|
2786
2554
|
* When run from an app directory, starts a single Vite dev server.
|
|
2787
2555
|
*/
|
|
2788
|
-
readonly dev: import("alepha/command").CommandPrimitive<import("
|
|
2789
|
-
only: import("
|
|
2790
|
-
}
|
|
2556
|
+
readonly dev: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2557
|
+
only: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2558
|
+
}, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
|
|
2791
2559
|
/**
|
|
2792
2560
|
* Discover apps in the workspace root.
|
|
2793
2561
|
*
|
|
@@ -2910,20 +2678,10 @@ declare class ChangelogCommand {
|
|
|
2910
2678
|
* Get the latest version tag.
|
|
2911
2679
|
*/
|
|
2912
2680
|
protected getLatestTag(git: (cmd: string) => Promise<string>): Promise<string | null>;
|
|
2913
|
-
readonly command: import("alepha/command").CommandPrimitive<import("
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
* Example: --from=1.0.0
|
|
2918
|
-
*/
|
|
2919
|
-
from: import("typebox").TOptional<import("typebox").TString>;
|
|
2920
|
-
/**
|
|
2921
|
-
* Show changes up to this ref (tag, commit, branch).
|
|
2922
|
-
* Defaults to HEAD.
|
|
2923
|
-
* Example: --to=main
|
|
2924
|
-
*/
|
|
2925
|
-
to: import("typebox").TOptional<import("typebox").TString>;
|
|
2926
|
-
}>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2681
|
+
readonly command: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2682
|
+
from: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2683
|
+
to: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2684
|
+
}, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
|
|
2927
2685
|
}
|
|
2928
2686
|
//#endregion
|
|
2929
2687
|
//#region ../../src/cli/core/commands/gen/openapi.d.ts
|
|
@@ -2931,9 +2689,9 @@ declare class OpenApiCommand {
|
|
|
2931
2689
|
protected readonly log: import("alepha/logger").Logger;
|
|
2932
2690
|
protected readonly utils: AlephaCliUtils;
|
|
2933
2691
|
protected readonly fs: FileSystemProvider;
|
|
2934
|
-
readonly command: import("alepha/command").CommandPrimitive<import("
|
|
2935
|
-
out: import("
|
|
2936
|
-
}
|
|
2692
|
+
readonly command: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2693
|
+
out: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2694
|
+
}, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
|
|
2937
2695
|
}
|
|
2938
2696
|
//#endregion
|
|
2939
2697
|
//#region ../../src/cli/core/commands/init.d.ts
|
|
@@ -2943,20 +2701,25 @@ declare class InitCommand {
|
|
|
2943
2701
|
* Ensure the project has the necessary Alepha configuration files.
|
|
2944
2702
|
* Add the correct dependencies to package.json and install them.
|
|
2945
2703
|
*/
|
|
2946
|
-
readonly init: import("alepha/command").CommandPrimitive<import("
|
|
2947
|
-
pm: import("
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2704
|
+
readonly init: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2705
|
+
pm: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
2706
|
+
bun: "bun";
|
|
2707
|
+
npm: "npm";
|
|
2708
|
+
pnpm: "pnpm";
|
|
2709
|
+
yarn: "yarn";
|
|
2710
|
+
}>>;
|
|
2711
|
+
api: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2712
|
+
react: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2713
|
+
tailwind: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2714
|
+
force: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2715
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("alepha").TObject>;
|
|
2953
2716
|
}
|
|
2954
2717
|
//#endregion
|
|
2955
2718
|
//#region ../../src/cli/core/commands/lint.d.ts
|
|
2956
2719
|
declare class LintCommand {
|
|
2957
2720
|
protected readonly utils: AlephaCliUtils;
|
|
2958
2721
|
protected readonly scaffolder: ProjectScaffolder;
|
|
2959
|
-
readonly lint: import("alepha/command").CommandPrimitive<import("
|
|
2722
|
+
readonly lint: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
|
|
2960
2723
|
}
|
|
2961
2724
|
//#endregion
|
|
2962
2725
|
//#region ../../src/cli/core/commands/pack.d.ts
|
|
@@ -2984,10 +2747,10 @@ declare class PackCommand {
|
|
|
2984
2747
|
protected readonly log: import("alepha/logger").Logger;
|
|
2985
2748
|
protected readonly fs: FileSystemProvider;
|
|
2986
2749
|
protected readonly shell: ShellProvider;
|
|
2987
|
-
readonly pack: import("alepha/command").CommandPrimitive<import("
|
|
2988
|
-
tag: import("
|
|
2989
|
-
output: import("
|
|
2990
|
-
}
|
|
2750
|
+
readonly pack: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2751
|
+
tag: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2752
|
+
output: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2753
|
+
}, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
|
|
2991
2754
|
}
|
|
2992
2755
|
//#endregion
|
|
2993
2756
|
//#region ../../src/cli/core/commands/root.d.ts
|
|
@@ -2999,20 +2762,20 @@ declare class RootCommand {
|
|
|
2999
2762
|
/**
|
|
3000
2763
|
* Called when no command is provided
|
|
3001
2764
|
*/
|
|
3002
|
-
readonly root: import("alepha/command").CommandPrimitive<import("
|
|
3003
|
-
version: import("
|
|
3004
|
-
}
|
|
2765
|
+
readonly root: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2766
|
+
version: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2767
|
+
}, import("zod/v4/core").$strip>, import("alepha").ZType, import("alepha").TObject>;
|
|
3005
2768
|
}
|
|
3006
2769
|
//#endregion
|
|
3007
2770
|
//#region ../../src/cli/core/commands/test.d.ts
|
|
3008
2771
|
declare class TestCommand {
|
|
3009
2772
|
protected readonly utils: AlephaCliUtils;
|
|
3010
2773
|
protected readonly scaffolder: ProjectScaffolder;
|
|
3011
|
-
readonly test: import("alepha/command").CommandPrimitive<import("
|
|
3012
|
-
config: import("
|
|
3013
|
-
}>, import("
|
|
3014
|
-
VITEST_ARGS: import("
|
|
3015
|
-
}>>;
|
|
2774
|
+
readonly test: import("alepha/command").CommandPrimitive<import("zod").ZodObject<{
|
|
2775
|
+
config: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2776
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodObject<{
|
|
2777
|
+
VITEST_ARGS: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodString>>;
|
|
2778
|
+
}, import("zod/v4/core").$strip>>;
|
|
3016
2779
|
}
|
|
3017
2780
|
//#endregion
|
|
3018
2781
|
//#region ../../src/cli/core/commands/typecheck.d.ts
|
|
@@ -3022,7 +2785,7 @@ declare class TypecheckCommand {
|
|
|
3022
2785
|
/**
|
|
3023
2786
|
* Run TypeScript type checking across the codebase with no emit.
|
|
3024
2787
|
*/
|
|
3025
|
-
readonly typecheck: import("alepha/command").CommandPrimitive<import("
|
|
2788
|
+
readonly typecheck: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
|
|
3026
2789
|
}
|
|
3027
2790
|
//#endregion
|
|
3028
2791
|
//#region ../../src/cli/core/commands/verify.d.ts
|
|
@@ -3042,7 +2805,7 @@ declare class VerifyCommand {
|
|
|
3042
2805
|
* - Build the project
|
|
3043
2806
|
* - Clean the project again
|
|
3044
2807
|
*/
|
|
3045
|
-
readonly verify: import("alepha/command").CommandPrimitive<import("
|
|
2808
|
+
readonly verify: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
|
|
3046
2809
|
}
|
|
3047
2810
|
//#endregion
|
|
3048
2811
|
//#region ../../src/cli/core/providers/AlephaCliExtensionProvider.d.ts
|