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
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;
|
|
@@ -61,7 +59,6 @@ declare const alephaPackageJson: {
|
|
|
61
59
|
"prom-client": string;
|
|
62
60
|
react: string;
|
|
63
61
|
"react-dom": string;
|
|
64
|
-
shadcn: string;
|
|
65
62
|
"swagger-ui-dist": string;
|
|
66
63
|
tailwindcss: string;
|
|
67
64
|
tsdown: string;
|
|
@@ -255,12 +252,6 @@ declare const alephaPackageJson: {
|
|
|
255
252
|
import: string;
|
|
256
253
|
default: string;
|
|
257
254
|
};
|
|
258
|
-
"./container": {
|
|
259
|
-
types: string;
|
|
260
|
-
workerd: string;
|
|
261
|
-
import: string;
|
|
262
|
-
default: string;
|
|
263
|
-
};
|
|
264
255
|
".": {
|
|
265
256
|
types: string;
|
|
266
257
|
"react-native": string;
|
|
@@ -393,6 +384,13 @@ declare const alephaPackageJson: {
|
|
|
393
384
|
import: string;
|
|
394
385
|
default: string;
|
|
395
386
|
};
|
|
387
|
+
"./react/sitemap": {
|
|
388
|
+
types: string;
|
|
389
|
+
"react-native": string;
|
|
390
|
+
browser: string;
|
|
391
|
+
import: string;
|
|
392
|
+
default: string;
|
|
393
|
+
};
|
|
396
394
|
"./react/testing": {
|
|
397
395
|
types: string;
|
|
398
396
|
import: string;
|
|
@@ -690,12 +688,6 @@ declare const alephaPackageJson: {
|
|
|
690
688
|
import: string;
|
|
691
689
|
default: string;
|
|
692
690
|
};
|
|
693
|
-
"./container": {
|
|
694
|
-
types: string;
|
|
695
|
-
workerd: string;
|
|
696
|
-
import: string;
|
|
697
|
-
default: string;
|
|
698
|
-
};
|
|
699
691
|
".": {
|
|
700
692
|
types: string;
|
|
701
693
|
"react-native": string;
|
|
@@ -828,6 +820,13 @@ declare const alephaPackageJson: {
|
|
|
828
820
|
import: string;
|
|
829
821
|
default: string;
|
|
830
822
|
};
|
|
823
|
+
"./react/sitemap": {
|
|
824
|
+
types: string;
|
|
825
|
+
"react-native": string;
|
|
826
|
+
browser: string;
|
|
827
|
+
import: string;
|
|
828
|
+
default: string;
|
|
829
|
+
};
|
|
831
830
|
"./react/testing": {
|
|
832
831
|
types: string;
|
|
833
832
|
import: string;
|
|
@@ -966,11 +965,11 @@ declare const alephaPackageJson: {
|
|
|
966
965
|
declare const version: string;
|
|
967
966
|
//#endregion
|
|
968
967
|
//#region ../../src/cli/core/atoms/appEntryOptions.d.ts
|
|
969
|
-
declare const appEntryOptions: import("alepha").Atom<import("
|
|
970
|
-
server: import("
|
|
971
|
-
browser: import("
|
|
972
|
-
style: import("
|
|
973
|
-
}>, "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">;
|
|
974
973
|
type AppEntryOptions = Static<typeof appEntryOptions.schema>;
|
|
975
974
|
//#endregion
|
|
976
975
|
//#region ../../src/cli/core/atoms/buildOptions.d.ts
|
|
@@ -996,256 +995,72 @@ type BuildRuntime = "node" | "bun" | "workerd";
|
|
|
996
995
|
* Defines the available build configuration options with their defaults.
|
|
997
996
|
* Options can be overridden via alepha.config.ts or CLI flags.
|
|
998
997
|
*/
|
|
999
|
-
declare const buildOptions: import("alepha").Atom<import("
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
*
|
|
1010
|
-
* - `docker` - Generate Dockerfile for containerized deployment
|
|
1011
|
-
* - `vercel` - Generate Vercel deployment configuration (forces node runtime)
|
|
1012
|
-
* - `cloudflare` - Generate Cloudflare Workers configuration (forces workerd runtime)
|
|
1013
|
-
*/
|
|
1014
|
-
target: import("typebox").TOptional<import("typebox").TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static">>;
|
|
1015
|
-
/**
|
|
1016
|
-
* JavaScript runtime for the build output.
|
|
1017
|
-
*
|
|
1018
|
-
* - `node` - Node.js runtime (default)
|
|
1019
|
-
* - `bun` - Bun runtime (uses bun export conditions)
|
|
1020
|
-
* - `workerd` - Cloudflare Workers runtime (auto-set with cloudflare target)
|
|
1021
|
-
*
|
|
1022
|
-
* Note: Some targets force a specific runtime:
|
|
1023
|
-
* - `cloudflare` always uses `workerd`
|
|
1024
|
-
* - `vercel` always uses `node`
|
|
1025
|
-
*/
|
|
1026
|
-
runtime: import("typebox").TOptional<import("typebox").TUnsafe<"node" | "bun" | "workerd">>;
|
|
1027
|
-
/**
|
|
1028
|
-
* Output directory configuration.
|
|
1029
|
-
*/
|
|
1030
|
-
output: import("typebox").TOptional<import("typebox").TObject<{
|
|
1031
|
-
/**
|
|
1032
|
-
* Root dist directory.
|
|
1033
|
-
*
|
|
1034
|
-
* @default "dist"
|
|
1035
|
-
*/
|
|
1036
|
-
dist: import("typebox").TOptional<import("typebox").TString>;
|
|
1037
|
-
/**
|
|
1038
|
-
* Public/client subdirectory.
|
|
1039
|
-
*
|
|
1040
|
-
* @default "public"
|
|
1041
|
-
*/
|
|
1042
|
-
public: import("typebox").TOptional<import("typebox").TString>;
|
|
1043
|
-
}>>;
|
|
1044
|
-
/**
|
|
1045
|
-
* Vercel-specific deployment configuration.
|
|
1046
|
-
*
|
|
1047
|
-
* Note: Set `target: "vercel"` to enable Vercel deployment.
|
|
1048
|
-
* This object is only for additional configuration.
|
|
1049
|
-
*/
|
|
1050
|
-
vercel: import("typebox").TOptional<import("typebox").TObject<{
|
|
1051
|
-
projectName: import("typebox").TOptional<import("typebox").TString>;
|
|
1052
|
-
orgId: import("typebox").TOptional<import("typebox").TString>;
|
|
1053
|
-
projectId: import("typebox").TOptional<import("typebox").TString>;
|
|
1054
|
-
config: import("typebox").TOptional<import("typebox").TObject<{
|
|
1055
|
-
crons: import("typebox").TOptional<import("typebox").TArray<import("typebox").TObject<{
|
|
1056
|
-
path: import("typebox").TString;
|
|
1057
|
-
schedule: import("typebox").TString;
|
|
1058
|
-
}>>>;
|
|
1059
|
-
}>>;
|
|
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";
|
|
1060
1008
|
}>>;
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
* This object is only for additional configuration.
|
|
1066
|
-
*/
|
|
1067
|
-
cloudflare: import("typebox").TOptional<import("typebox").TObject<{
|
|
1068
|
-
config: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
1009
|
+
runtime: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1010
|
+
bun: "bun";
|
|
1011
|
+
node: "node";
|
|
1012
|
+
workerd: "workerd";
|
|
1069
1013
|
}>>;
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
command: import("
|
|
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
|
-
* @example "myproject/myapp"
|
|
1118
|
-
* @example "ghcr.io/myorg/myapp"
|
|
1119
|
-
*/
|
|
1120
|
-
tag: import("typebox").TString;
|
|
1121
|
-
/**
|
|
1122
|
-
* Additional arguments to pass to `docker build`.
|
|
1123
|
-
*
|
|
1124
|
-
* @example '--platform linux/amd64 --no-cache'
|
|
1125
|
-
*/
|
|
1126
|
-
args: import("typebox").TOptional<import("typebox").TString>;
|
|
1127
|
-
/**
|
|
1128
|
-
* Auto-add OCI standard labels (revision, created, version).
|
|
1129
|
-
*
|
|
1130
|
-
* Adds:
|
|
1131
|
-
* - org.opencontainers.image.revision (git commit SHA)
|
|
1132
|
-
* - org.opencontainers.image.created (build timestamp)
|
|
1133
|
-
* - org.opencontainers.image.version (from image tag)
|
|
1134
|
-
*/
|
|
1135
|
-
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";
|
|
1136
1060
|
}>>;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
* (distroless by default). Requires `runtime: "bun"`.
|
|
1141
|
-
*
|
|
1142
|
-
* When enabled:
|
|
1143
|
-
* - the binary is produced at `<dist>/app` and the original `dist/server/`,
|
|
1144
|
-
* `dist/index.js` and `dist/package.json` are removed
|
|
1145
|
-
* - the generated Dockerfile uses a distroless base image and does not
|
|
1146
|
-
* run `bun install` (everything is embedded in the binary)
|
|
1147
|
-
* - any non-empty `dependencies` in the externals manifest causes the
|
|
1148
|
-
* task to fail loudly (compile requires fully-bundled output)
|
|
1149
|
-
*
|
|
1150
|
-
* Pass `true` to enable with defaults, or an object to override.
|
|
1151
|
-
*/
|
|
1152
|
-
compile: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TObject<{
|
|
1153
|
-
/**
|
|
1154
|
-
* Bun target triple, e.g. `bun-linux-x64-musl`,
|
|
1155
|
-
* `bun-linux-arm64-musl`, or `bun-linux-x64-modern-musl`
|
|
1156
|
-
* (AVX2 required).
|
|
1157
|
-
*
|
|
1158
|
-
* @default derived from host arch — always linux-musl.
|
|
1159
|
-
*/
|
|
1160
|
-
target: import("typebox").TOptional<import("typebox").TString>;
|
|
1161
|
-
/**
|
|
1162
|
-
* Base image for the generated Dockerfile.
|
|
1163
|
-
*
|
|
1164
|
-
* @default "gcr.io/distroless/static-debian12"
|
|
1165
|
-
*/
|
|
1166
|
-
base: import("typebox").TOptional<import("typebox").TString>;
|
|
1167
|
-
/**
|
|
1168
|
-
* Minify the compiled output.
|
|
1169
|
-
*
|
|
1170
|
-
* @default true
|
|
1171
|
-
*/
|
|
1172
|
-
minify: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
1173
|
-
}>]>>;
|
|
1174
|
-
}>>;
|
|
1175
|
-
/**
|
|
1176
|
-
* Static site deployment configuration.
|
|
1177
|
-
*
|
|
1178
|
-
* Note: Set `target: "static"` to enable static site generation.
|
|
1179
|
-
*/
|
|
1180
|
-
static: import("typebox").TOptional<import("typebox").TObject<{
|
|
1181
|
-
/**
|
|
1182
|
-
* Surge domain for deployment.
|
|
1183
|
-
*
|
|
1184
|
-
* If set, a CNAME file is written to dist/public/.
|
|
1185
|
-
* If not set, a domain is auto-generated from package.json name.
|
|
1186
|
-
*
|
|
1187
|
-
* @example "my-app.surge.sh"
|
|
1188
|
-
* @example "my-custom-domain.com"
|
|
1189
|
-
*/
|
|
1190
|
-
domain: import("typebox").TOptional<import("typebox").TString>;
|
|
1191
|
-
}>>;
|
|
1192
|
-
/**
|
|
1193
|
-
* PWA (Progressive Web App) configuration.
|
|
1194
|
-
*
|
|
1195
|
-
* Generates a web app manifest and enables installability.
|
|
1196
|
-
* Requires a client-side bundle (React).
|
|
1197
|
-
*/
|
|
1198
|
-
pwa: import("typebox").TOptional<import("typebox").TObject<{
|
|
1199
|
-
/**
|
|
1200
|
-
* Full application name displayed on the splash screen
|
|
1201
|
-
* and in the OS app switcher.
|
|
1202
|
-
*/
|
|
1203
|
-
name: import("typebox").TString;
|
|
1204
|
-
/**
|
|
1205
|
-
* Short name displayed on the home screen icon.
|
|
1206
|
-
* Falls back to `name` if omitted.
|
|
1207
|
-
*/
|
|
1208
|
-
shortName: import("typebox").TOptional<import("typebox").TString>;
|
|
1209
|
-
/**
|
|
1210
|
-
* Theme color used for the browser toolbar and OS chrome.
|
|
1211
|
-
*
|
|
1212
|
-
* @default "#ffffff"
|
|
1213
|
-
*/
|
|
1214
|
-
themeColor: import("typebox").TOptional<import("typebox").TString>;
|
|
1215
|
-
/**
|
|
1216
|
-
* Background color for the splash screen.
|
|
1217
|
-
*
|
|
1218
|
-
* @default "#ffffff"
|
|
1219
|
-
*/
|
|
1220
|
-
backgroundColor: import("typebox").TOptional<import("typebox").TString>;
|
|
1221
|
-
/**
|
|
1222
|
-
* Display mode for the installed PWA.
|
|
1223
|
-
*
|
|
1224
|
-
* - `standalone` - Looks like a native app (default)
|
|
1225
|
-
* - `fullscreen` - Uses entire screen (games, immersive)
|
|
1226
|
-
* - `minimal-ui` - Like standalone with minimal browser UI
|
|
1227
|
-
* - `browser` - Standard browser tab
|
|
1228
|
-
*
|
|
1229
|
-
* @default "standalone"
|
|
1230
|
-
*/
|
|
1231
|
-
display: import("typebox").TOptional<import("typebox").TUnsafe<"browser" | "standalone" | "fullscreen" | "minimal-ui">>;
|
|
1232
|
-
/**
|
|
1233
|
-
* Enable offline support via service worker.
|
|
1234
|
-
*
|
|
1235
|
-
* TODO: Not yet implemented.
|
|
1236
|
-
*/
|
|
1237
|
-
offline: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
1238
|
-
}>>;
|
|
1239
|
-
/**
|
|
1240
|
-
* Sitemap generation configuration.
|
|
1241
|
-
*/
|
|
1242
|
-
sitemap: import("typebox").TOptional<import("typebox").TObject<{
|
|
1243
|
-
/**
|
|
1244
|
-
* Base URL for sitemap entries.
|
|
1245
|
-
*/
|
|
1246
|
-
hostname: import("typebox").TString;
|
|
1247
|
-
}>>;
|
|
1248
|
-
}>, "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">;
|
|
1249
1064
|
/**
|
|
1250
1065
|
* Type for build options.
|
|
1251
1066
|
*/
|
|
@@ -1269,13 +1084,9 @@ declare const DEFAULT_IGNORE: string[];
|
|
|
1269
1084
|
* });
|
|
1270
1085
|
* ```
|
|
1271
1086
|
*/
|
|
1272
|
-
declare const changelogOptions: import("alepha").Atom<import("
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
* Commits like `feat(chore): ...` will be excluded from changelog.
|
|
1276
|
-
*/
|
|
1277
|
-
ignore: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
|
|
1278
|
-
}>, "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">;
|
|
1279
1090
|
type ChangelogOptions = Static<typeof changelogOptions.schema>;
|
|
1280
1091
|
//#endregion
|
|
1281
1092
|
//#region ../../src/cli/core/atoms/devOptions.d.ts
|
|
@@ -1285,12 +1096,9 @@ type ChangelogOptions = Static<typeof changelogOptions.schema>;
|
|
|
1285
1096
|
* Defines the available dev configuration options with their defaults.
|
|
1286
1097
|
* Options can be overridden via alepha.config.ts or CLI flags.
|
|
1287
1098
|
*/
|
|
1288
|
-
declare const devOptions: import("alepha").Atom<import("
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
*/
|
|
1292
|
-
noViteReactPlugin: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
1293
|
-
}>, "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">;
|
|
1294
1102
|
/**
|
|
1295
1103
|
* Type for dev options.
|
|
1296
1104
|
*/
|
|
@@ -1745,12 +1553,7 @@ declare class ProjectScaffolder {
|
|
|
1745
1553
|
/**
|
|
1746
1554
|
* Full project init — scaffolds files, installs deps, sets up PM and git.
|
|
1747
1555
|
*/
|
|
1748
|
-
init({
|
|
1749
|
-
run,
|
|
1750
|
-
root,
|
|
1751
|
-
flags,
|
|
1752
|
-
args
|
|
1753
|
-
}: {
|
|
1556
|
+
init({ run, root, flags, args }: {
|
|
1754
1557
|
run: RunnerMethod;
|
|
1755
1558
|
root: string;
|
|
1756
1559
|
flags: {
|
|
@@ -1828,20 +1631,15 @@ interface BuildManifest {
|
|
|
1828
1631
|
*/
|
|
1829
1632
|
crons: string[];
|
|
1830
1633
|
/**
|
|
1831
|
-
*
|
|
1832
|
-
*
|
|
1833
|
-
*
|
|
1834
|
-
*
|
|
1634
|
+
* Cloudflare email binding, captured when the app registers
|
|
1635
|
+
* `CloudflareEmailProvider` at artifact-build time. The prebuilt/manifest
|
|
1636
|
+
* deploy path (Alepha Rocket `--prebuilt`) has no Vite introspection, so it
|
|
1637
|
+
* reads this to re-emit the `send_email` wrangler binding. Absent when the
|
|
1638
|
+
* app doesn't use Cloudflare email.
|
|
1835
1639
|
*/
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
image: string;
|
|
1840
|
-
port: number;
|
|
1841
|
-
sleepAfter: string;
|
|
1842
|
-
instanceType: string;
|
|
1843
|
-
maxInstances: number;
|
|
1844
|
-
}>;
|
|
1640
|
+
email?: {
|
|
1641
|
+
binding: string;
|
|
1642
|
+
};
|
|
1845
1643
|
/**
|
|
1846
1644
|
* Every env var the app declares via `$env`, captured from
|
|
1847
1645
|
* `alepha.dump().env` at build time. The deploy `secrets` step uses this
|
|
@@ -1872,7 +1670,9 @@ declare class BuildCloudflareTask extends BuildTask {
|
|
|
1872
1670
|
* the deploy path can skip the Vite-based introspection step and the
|
|
1873
1671
|
* workspace's runtime npm install.
|
|
1874
1672
|
*/
|
|
1875
|
-
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;
|
|
1876
1676
|
protected enhanceDomain(wrangler: WranglerConfig): void;
|
|
1877
1677
|
protected enhanceCron(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
|
|
1878
1678
|
protected discoverCrons(ctx: BuildTaskContext): string[];
|
|
@@ -1884,57 +1684,7 @@ declare class BuildCloudflareTask extends BuildTask {
|
|
|
1884
1684
|
protected enhanceKV(wrangler: WranglerConfig): void;
|
|
1885
1685
|
protected enhanceQueue(wrangler: WranglerConfig): void;
|
|
1886
1686
|
protected enhanceEmail(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
|
|
1887
|
-
|
|
1888
|
-
* Discover `$container` primitives and emit the matching Cloudflare
|
|
1889
|
-
* Containers bindings, Durable Object bindings, and migrations into
|
|
1890
|
-
* `wrangler.jsonc`. The DO class declarations are added later, when
|
|
1891
|
-
* the worker entry point is written.
|
|
1892
|
-
*
|
|
1893
|
-
* Returns the list of container descriptors so
|
|
1894
|
-
* `writeWorkerEntryPoint` can emit `export class <NAME> extends
|
|
1895
|
-
* Container` declarations referencing them.
|
|
1896
|
-
*/
|
|
1897
|
-
protected discoverContainers(ctx: BuildTaskContext): ContainerDescriptor[];
|
|
1898
|
-
/**
|
|
1899
|
-
* Expand a short image ref (e.g. `alepha-rocket:0.1.0`) into the
|
|
1900
|
-
* fully-qualified `registry.cloudflare.com/<account>/<image>:<tag>`
|
|
1901
|
-
* URL that wrangler validates at deploy time.
|
|
1902
|
-
*
|
|
1903
|
-
* Cloudflare Containers only pulls from `registry.cloudflare.com`;
|
|
1904
|
-
* wrangler accepts either a Dockerfile path or a fully-qualified
|
|
1905
|
-
* registry URL in the `image` field — not a bare DockerHub-style
|
|
1906
|
-
* name. We let `$container({ image })` callers write the short
|
|
1907
|
-
* form (it matches what `wrangler containers push <local>` accepts
|
|
1908
|
-
* + matches the local docker tag) and rewrite to the CF registry
|
|
1909
|
-
* URL here.
|
|
1910
|
-
*
|
|
1911
|
-
* Pass-through cases:
|
|
1912
|
-
* - already a full URL: starts with `registry.cloudflare.com/`
|
|
1913
|
-
* or contains a scheme/`://`
|
|
1914
|
-
* - looks like a Dockerfile path: starts with `./` or `/`
|
|
1915
|
-
*/
|
|
1916
|
-
protected resolveContainerImage(image: string): string;
|
|
1917
|
-
protected enhanceContainers(ctx: BuildTaskContext, wrangler: WranglerConfig): ContainerDescriptor[];
|
|
1918
|
-
protected writeWorkerEntryPoint(root: string, distDir: string, containers?: ContainerDescriptor[]): Promise<void>;
|
|
1919
|
-
}
|
|
1920
|
-
interface ContainerDescriptor {
|
|
1921
|
-
name: string;
|
|
1922
|
-
className: string;
|
|
1923
|
-
image: string;
|
|
1924
|
-
port: number;
|
|
1925
|
-
sleepAfter: string;
|
|
1926
|
-
/**
|
|
1927
|
-
* Cloudflare Containers instance class.
|
|
1928
|
-
*
|
|
1929
|
-
* `dev` is the wrangler-pre-GA name; the platform accepts it but
|
|
1930
|
-
* emits a deprecation warning telling you to use `lite`. We
|
|
1931
|
-
* silently translate at write time (see `discoverContainers`
|
|
1932
|
-
* default + `enhanceContainers` write) so older
|
|
1933
|
-
* `$container({ instanceType: "dev" })` declarations keep working.
|
|
1934
|
-
*/
|
|
1935
|
-
instanceType: "dev" | "lite" | "basic" | "standard";
|
|
1936
|
-
maxInstances: number;
|
|
1937
|
-
envVars?: Record<string, string>;
|
|
1687
|
+
protected writeWorkerEntryPoint(root: string, distDir: string): Promise<void>;
|
|
1938
1688
|
}
|
|
1939
1689
|
//#endregion
|
|
1940
1690
|
//#region ../../src/cli/core/tasks/BuildTask.d.ts
|
|
@@ -2186,17 +1936,30 @@ declare class BuildDockerTask extends BuildTask {
|
|
|
2186
1936
|
//#endregion
|
|
2187
1937
|
//#region ../../src/cli/core/tasks/BuildPrerenderTask.d.ts
|
|
2188
1938
|
/**
|
|
2189
|
-
* Pre-render static pages defined in the Alepha application.
|
|
1939
|
+
* Pre-render static pages and routes defined in the Alepha application.
|
|
1940
|
+
*
|
|
1941
|
+
* Two passes, both writing into `dist/public`:
|
|
1942
|
+
* - **pages** — every `$page` with `static: true` is rendered to an HTML file
|
|
1943
|
+
* (supports parameterized routes via `static.entries`).
|
|
1944
|
+
* - **routes** — every `static` route primitive (a `$route({ static: true })`
|
|
1945
|
+
* or a `$sitemap`) is invoked in-process and its body written verbatim to
|
|
1946
|
+
* `{path}` (e.g. `sitemap.xml`, `robots.txt`).
|
|
2190
1947
|
*
|
|
2191
|
-
*
|
|
2192
|
-
*
|
|
2193
|
-
*
|
|
1948
|
+
* Both passes read the primitive registry and call a method on the already
|
|
1949
|
+
* created primitive instances — no provider is re-injected, so this works in
|
|
1950
|
+
* the build's configured-but-not-started container.
|
|
2194
1951
|
*/
|
|
2195
1952
|
declare class BuildPrerenderTask extends BuildTask {
|
|
2196
1953
|
protected readonly fs: FileSystemProvider;
|
|
2197
1954
|
run(ctx: BuildTaskContext): Promise<void>;
|
|
2198
1955
|
protected getStaticPages(ctx: BuildTaskContext): any[];
|
|
1956
|
+
/**
|
|
1957
|
+
* Static route primitives to snapshot: `$route({ static: true })` and every
|
|
1958
|
+
* `$sitemap`. Both expose an async `prerender(): { path, body }`.
|
|
1959
|
+
*/
|
|
1960
|
+
protected getStaticRoutePrimitives(ctx: BuildTaskContext): any[];
|
|
2199
1961
|
protected prerenderFromAlepha(pages: any[], dist: string): Promise<number>;
|
|
1962
|
+
protected prerenderRoutes(primitives: any[], dist: string): Promise<void>;
|
|
2200
1963
|
protected renderFile(page: any, options: any, dist: string): Promise<void>;
|
|
2201
1964
|
}
|
|
2202
1965
|
//#endregion
|
|
@@ -2257,23 +2020,6 @@ declare class BuildServerTask extends BuildTask {
|
|
|
2257
2020
|
protected extractEntryFromBundle(root: string, entry: string, result: vite.Rollup.RollupOutput | vite.Rollup.RollupOutput[] | vite.Rollup.RollupWatcher): string;
|
|
2258
2021
|
}
|
|
2259
2022
|
//#endregion
|
|
2260
|
-
//#region ../../src/cli/core/tasks/BuildSitemapTask.d.ts
|
|
2261
|
-
/**
|
|
2262
|
-
* Generate sitemap.xml from Alepha page primitives.
|
|
2263
|
-
*
|
|
2264
|
-
* Queries all page primitives and generates a sitemap.xml
|
|
2265
|
-
* containing URLs for all accessible pages.
|
|
2266
|
-
*/
|
|
2267
|
-
declare class BuildSitemapTask extends BuildTask {
|
|
2268
|
-
protected readonly fs: FileSystemProvider;
|
|
2269
|
-
run(ctx: BuildTaskContext): Promise<void>;
|
|
2270
|
-
protected getSitemapPages(ctx: BuildTaskContext): any[];
|
|
2271
|
-
protected generateSitemapFromPages(pages: any[], baseUrl: string): string;
|
|
2272
|
-
protected buildPathFromParams(pathPattern: string, params: Record<string, any>): string;
|
|
2273
|
-
protected buildSitemapXml(urls: string[]): string;
|
|
2274
|
-
protected escapeXml(str: string): string;
|
|
2275
|
-
}
|
|
2276
|
-
//#endregion
|
|
2277
2023
|
//#region ../../src/cli/core/tasks/BuildStaticTask.d.ts
|
|
2278
2024
|
/**
|
|
2279
2025
|
* Generate a static site output.
|
|
@@ -2366,22 +2112,12 @@ declare class BuildCommand {
|
|
|
2366
2112
|
protected readonly boot: AppEntryProvider;
|
|
2367
2113
|
protected readonly viteBuildProvider: ViteBuildProvider;
|
|
2368
2114
|
protected readonly options: Readonly<{
|
|
2369
|
-
stats?:
|
|
2370
|
-
target?: "bare" | "
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
image?: {
|
|
2376
|
-
args?: string | undefined;
|
|
2377
|
-
oci?: boolean | undefined;
|
|
2378
|
-
tag: string;
|
|
2379
|
-
} | undefined;
|
|
2380
|
-
compile?: boolean | {
|
|
2381
|
-
target?: string | undefined;
|
|
2382
|
-
base?: string | undefined;
|
|
2383
|
-
minify?: boolean | undefined;
|
|
2384
|
-
} | 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;
|
|
2385
2121
|
} | undefined;
|
|
2386
2122
|
vercel?: {
|
|
2387
2123
|
projectName?: string | undefined;
|
|
@@ -2397,24 +2133,31 @@ declare class BuildCommand {
|
|
|
2397
2133
|
cloudflare?: {
|
|
2398
2134
|
config?: Record<string, any> | undefined;
|
|
2399
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;
|
|
2400
2151
|
static?: {
|
|
2401
2152
|
domain?: string | undefined;
|
|
2402
2153
|
} | undefined;
|
|
2403
|
-
runtime?: "node" | "bun" | "workerd" | undefined;
|
|
2404
|
-
output?: {
|
|
2405
|
-
dist?: string | undefined;
|
|
2406
|
-
public?: string | undefined;
|
|
2407
|
-
} | undefined;
|
|
2408
2154
|
pwa?: {
|
|
2155
|
+
name: string;
|
|
2409
2156
|
shortName?: string | undefined;
|
|
2410
2157
|
themeColor?: string | undefined;
|
|
2411
2158
|
backgroundColor?: string | undefined;
|
|
2412
|
-
display?: "browser" | "
|
|
2159
|
+
display?: "browser" | "fullscreen" | "minimal-ui" | "standalone" | undefined;
|
|
2413
2160
|
offline?: boolean | undefined;
|
|
2414
|
-
name: string;
|
|
2415
|
-
} | undefined;
|
|
2416
|
-
sitemap?: {
|
|
2417
|
-
hostname: string;
|
|
2418
2161
|
} | undefined;
|
|
2419
2162
|
}>;
|
|
2420
2163
|
/**
|
|
@@ -2422,7 +2165,7 @@ declare class BuildCommand {
|
|
|
2422
2165
|
* Each task self-guards (checks target, hasClient, etc.).
|
|
2423
2166
|
* Order matters — compress must be last.
|
|
2424
2167
|
*/
|
|
2425
|
-
protected readonly pipeline: (
|
|
2168
|
+
protected readonly pipeline: (BuildAssetsTask | BuildClientTask | BuildCloudflareTask | BuildCompressTask | BuildDockerTask | BuildPrerenderTask | BuildPwaTask | BuildServerTask | BuildStaticTask | BuildVercelTask)[];
|
|
2426
2169
|
/**
|
|
2427
2170
|
* Value aliases accepted for `--target`.
|
|
2428
2171
|
*
|
|
@@ -2448,15 +2191,27 @@ declare class BuildCommand {
|
|
|
2448
2191
|
* @throws {AlephaError} If an incompatible runtime is specified for a target
|
|
2449
2192
|
*/
|
|
2450
2193
|
protected resolveRuntime(target: BuildTarget | undefined, runtime: BuildRuntime | undefined): BuildRuntime;
|
|
2451
|
-
readonly build: import("alepha/command").CommandPrimitive<import("
|
|
2452
|
-
stats: import("
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
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>;
|
|
2460
2215
|
/**
|
|
2461
2216
|
* Read `dist/manifest.json` produced by a previous `alepha build`.
|
|
2462
2217
|
* Returns null when absent or unparseable — caller falls back to the
|
|
@@ -2470,7 +2225,7 @@ declare class CleanCommand {
|
|
|
2470
2225
|
/**
|
|
2471
2226
|
* Clean the project, removing the "dist" directory
|
|
2472
2227
|
*/
|
|
2473
|
-
readonly clean: import("alepha/command").CommandPrimitive<import("
|
|
2228
|
+
readonly clean: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
|
|
2474
2229
|
}
|
|
2475
2230
|
//#endregion
|
|
2476
2231
|
//#region ../../src/cli/core/commands/db.d.ts
|
|
@@ -2481,48 +2236,47 @@ declare class DbCommand {
|
|
|
2481
2236
|
protected readonly pm: PackageManagerUtils;
|
|
2482
2237
|
protected readonly entryProvider: AppEntryProvider;
|
|
2483
2238
|
protected readonly viteUtil: ViteUtils;
|
|
2484
|
-
protected readonly runner: Runner;
|
|
2485
2239
|
/**
|
|
2486
2240
|
* Check if database migrations are up to date.
|
|
2487
2241
|
*/
|
|
2488
|
-
protected readonly check: import("alepha/command").CommandPrimitive<import("
|
|
2489
|
-
provider: import("
|
|
2490
|
-
}>, 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>;
|
|
2491
2245
|
/**
|
|
2492
2246
|
* Generate database migration files
|
|
2493
2247
|
*/
|
|
2494
|
-
protected readonly create: import("alepha/command").CommandPrimitive<import("
|
|
2495
|
-
provider: import("
|
|
2496
|
-
custom: import("
|
|
2497
|
-
name: import("
|
|
2498
|
-
}>, 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>;
|
|
2499
2253
|
/**
|
|
2500
2254
|
* Push database schema changes directly to the database
|
|
2501
2255
|
*/
|
|
2502
|
-
protected readonly push: import("alepha/command").CommandPrimitive<import("
|
|
2503
|
-
provider: import("
|
|
2504
|
-
dryRun: import("
|
|
2505
|
-
}>, 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>;
|
|
2506
2260
|
/**
|
|
2507
2261
|
* Apply pending database migrations
|
|
2508
2262
|
*/
|
|
2509
|
-
protected readonly apply: import("alepha/command").CommandPrimitive<import("
|
|
2510
|
-
provider: import("
|
|
2511
|
-
}>, 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>;
|
|
2512
2266
|
/**
|
|
2513
2267
|
* Launch Drizzle Studio database browser
|
|
2514
2268
|
*/
|
|
2515
|
-
protected readonly studio: import("alepha/command").CommandPrimitive<import("
|
|
2516
|
-
provider: import("
|
|
2517
|
-
}>, 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>;
|
|
2518
2272
|
/**
|
|
2519
2273
|
* Parent command for migration operations.
|
|
2520
2274
|
*/
|
|
2521
|
-
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>;
|
|
2522
2276
|
/**
|
|
2523
2277
|
* Parent command for database operations.
|
|
2524
2278
|
*/
|
|
2525
|
-
readonly db: import("alepha/command").CommandPrimitive<import("
|
|
2279
|
+
readonly db: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
|
|
2526
2280
|
/**
|
|
2527
2281
|
* Run a drizzle-kit command for all database providers in an Alepha instance.
|
|
2528
2282
|
*/
|
|
@@ -2541,6 +2295,26 @@ declare class DbCommand {
|
|
|
2541
2295
|
* models. This breaks when deploying to a non-public schema via search_path.
|
|
2542
2296
|
*/
|
|
2543
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[];
|
|
2544
2318
|
/**
|
|
2545
2319
|
* Prepare Drizzle configuration files for a database provider.
|
|
2546
2320
|
*/
|
|
@@ -2779,9 +2553,9 @@ declare class DevCommand {
|
|
|
2779
2553
|
* When run from a workspace root (with apps/ directory), spawns all apps in parallel.
|
|
2780
2554
|
* When run from an app directory, starts a single Vite dev server.
|
|
2781
2555
|
*/
|
|
2782
|
-
readonly dev: import("alepha/command").CommandPrimitive<import("
|
|
2783
|
-
only: import("
|
|
2784
|
-
}
|
|
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>;
|
|
2785
2559
|
/**
|
|
2786
2560
|
* Discover apps in the workspace root.
|
|
2787
2561
|
*
|
|
@@ -2904,20 +2678,10 @@ declare class ChangelogCommand {
|
|
|
2904
2678
|
* Get the latest version tag.
|
|
2905
2679
|
*/
|
|
2906
2680
|
protected getLatestTag(git: (cmd: string) => Promise<string>): Promise<string | null>;
|
|
2907
|
-
readonly command: import("alepha/command").CommandPrimitive<import("
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
* Example: --from=1.0.0
|
|
2912
|
-
*/
|
|
2913
|
-
from: import("typebox").TOptional<import("typebox").TString>;
|
|
2914
|
-
/**
|
|
2915
|
-
* Show changes up to this ref (tag, commit, branch).
|
|
2916
|
-
* Defaults to HEAD.
|
|
2917
|
-
* Example: --to=main
|
|
2918
|
-
*/
|
|
2919
|
-
to: import("typebox").TOptional<import("typebox").TString>;
|
|
2920
|
-
}>, 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>;
|
|
2921
2685
|
}
|
|
2922
2686
|
//#endregion
|
|
2923
2687
|
//#region ../../src/cli/core/commands/gen/openapi.d.ts
|
|
@@ -2925,9 +2689,9 @@ declare class OpenApiCommand {
|
|
|
2925
2689
|
protected readonly log: import("alepha/logger").Logger;
|
|
2926
2690
|
protected readonly utils: AlephaCliUtils;
|
|
2927
2691
|
protected readonly fs: FileSystemProvider;
|
|
2928
|
-
readonly command: import("alepha/command").CommandPrimitive<import("
|
|
2929
|
-
out: import("
|
|
2930
|
-
}
|
|
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>;
|
|
2931
2695
|
}
|
|
2932
2696
|
//#endregion
|
|
2933
2697
|
//#region ../../src/cli/core/commands/init.d.ts
|
|
@@ -2937,20 +2701,25 @@ declare class InitCommand {
|
|
|
2937
2701
|
* Ensure the project has the necessary Alepha configuration files.
|
|
2938
2702
|
* Add the correct dependencies to package.json and install them.
|
|
2939
2703
|
*/
|
|
2940
|
-
readonly init: import("alepha/command").CommandPrimitive<import("
|
|
2941
|
-
pm: import("
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
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>;
|
|
2947
2716
|
}
|
|
2948
2717
|
//#endregion
|
|
2949
2718
|
//#region ../../src/cli/core/commands/lint.d.ts
|
|
2950
2719
|
declare class LintCommand {
|
|
2951
2720
|
protected readonly utils: AlephaCliUtils;
|
|
2952
2721
|
protected readonly scaffolder: ProjectScaffolder;
|
|
2953
|
-
readonly lint: import("alepha/command").CommandPrimitive<import("
|
|
2722
|
+
readonly lint: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
|
|
2954
2723
|
}
|
|
2955
2724
|
//#endregion
|
|
2956
2725
|
//#region ../../src/cli/core/commands/pack.d.ts
|
|
@@ -2978,10 +2747,10 @@ declare class PackCommand {
|
|
|
2978
2747
|
protected readonly log: import("alepha/logger").Logger;
|
|
2979
2748
|
protected readonly fs: FileSystemProvider;
|
|
2980
2749
|
protected readonly shell: ShellProvider;
|
|
2981
|
-
readonly pack: import("alepha/command").CommandPrimitive<import("
|
|
2982
|
-
tag: import("
|
|
2983
|
-
output: import("
|
|
2984
|
-
}
|
|
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>;
|
|
2985
2754
|
}
|
|
2986
2755
|
//#endregion
|
|
2987
2756
|
//#region ../../src/cli/core/commands/root.d.ts
|
|
@@ -2993,20 +2762,20 @@ declare class RootCommand {
|
|
|
2993
2762
|
/**
|
|
2994
2763
|
* Called when no command is provided
|
|
2995
2764
|
*/
|
|
2996
|
-
readonly root: import("alepha/command").CommandPrimitive<import("
|
|
2997
|
-
version: import("
|
|
2998
|
-
}
|
|
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>;
|
|
2999
2768
|
}
|
|
3000
2769
|
//#endregion
|
|
3001
2770
|
//#region ../../src/cli/core/commands/test.d.ts
|
|
3002
2771
|
declare class TestCommand {
|
|
3003
2772
|
protected readonly utils: AlephaCliUtils;
|
|
3004
2773
|
protected readonly scaffolder: ProjectScaffolder;
|
|
3005
|
-
readonly test: import("alepha/command").CommandPrimitive<import("
|
|
3006
|
-
config: import("
|
|
3007
|
-
}>, import("
|
|
3008
|
-
VITEST_ARGS: import("
|
|
3009
|
-
}>>;
|
|
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>>;
|
|
3010
2779
|
}
|
|
3011
2780
|
//#endregion
|
|
3012
2781
|
//#region ../../src/cli/core/commands/typecheck.d.ts
|
|
@@ -3016,7 +2785,7 @@ declare class TypecheckCommand {
|
|
|
3016
2785
|
/**
|
|
3017
2786
|
* Run TypeScript type checking across the codebase with no emit.
|
|
3018
2787
|
*/
|
|
3019
|
-
readonly typecheck: import("alepha/command").CommandPrimitive<import("
|
|
2788
|
+
readonly typecheck: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
|
|
3020
2789
|
}
|
|
3021
2790
|
//#endregion
|
|
3022
2791
|
//#region ../../src/cli/core/commands/verify.d.ts
|
|
@@ -3036,7 +2805,7 @@ declare class VerifyCommand {
|
|
|
3036
2805
|
* - Build the project
|
|
3037
2806
|
* - Clean the project again
|
|
3038
2807
|
*/
|
|
3039
|
-
readonly verify: import("alepha/command").CommandPrimitive<import("
|
|
2808
|
+
readonly verify: import("alepha/command").CommandPrimitive<import("alepha").TObject, import("alepha").ZType, import("alepha").TObject>;
|
|
3040
2809
|
}
|
|
3041
2810
|
//#endregion
|
|
3042
2811
|
//#region ../../src/cli/core/providers/AlephaCliExtensionProvider.d.ts
|
|
@@ -3057,5 +2826,5 @@ declare const AlephaCliServices: import("alepha").Service<import("alepha").Modul
|
|
|
3057
2826
|
*/
|
|
3058
2827
|
declare const AlephaCli: import("alepha").Service<import("alepha").Module>;
|
|
3059
2828
|
//#endregion
|
|
3060
|
-
export { AlephaCli, AlephaCliExtensionProvider, AlephaCliServices, AlephaCliUtils, AppEntry, AppEntryOptions, AppEntryProvider, BufferedLogger, BuildAssetsTask, BuildClientTask, BuildCloudflareTask, BuildCommand, BuildCompressTask, BuildDockerTask, BuildManifest, BuildOptions, BuildPrerenderTask, BuildRuntime, BuildServerTask,
|
|
2829
|
+
export { AlephaCli, AlephaCliExtensionProvider, AlephaCliServices, AlephaCliUtils, AppEntry, AppEntryOptions, AppEntryProvider, BufferedLogger, BuildAssetsTask, BuildClientTask, BuildCloudflareTask, BuildCommand, BuildCompressTask, BuildDockerTask, BuildManifest, BuildOptions, BuildPrerenderTask, BuildRuntime, BuildServerTask, BuildStaticTask, BuildTarget, BuildTask, BuildTaskContext, BuildVercelTask, ChangelogCommand, ChangelogOptions, CleanCommand, Commit, CompressOptions, DEFAULT_IGNORE, DbCommand, DependencyModes, DevCommand, DevOptions, DevServerOptions, GitMessageParser, GitProvider, InitCommand, LintCommand, OnAlephaLoadedHook, OpenApiCommand, PackCommand, PackageManagerUtils, PreloadManifest, ProjectScaffolder, RootCommand, TestCommand, TypecheckCommand, VerifyCommand, ViteBuildProvider, ViteDevServerProvider, ViteUtils, WorkspaceContext, alephaPackageJson, appEntryOptions, buildOptions, changelogOptions, devOptions, version };
|
|
3061
2830
|
//# sourceMappingURL=index.d.ts.map
|