alepha 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/swagger-ui/swagger-ui-bundle.js +1 -1
- package/assets/swagger-ui/swagger-ui-standalone-preset.js +1 -1
- package/dist/api/audits/index.browser.js +49 -52
- package/dist/api/audits/index.browser.js.map +1 -1
- package/dist/api/audits/index.d.ts +629 -565
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +206 -98
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.browser.js +44 -44
- package/dist/api/files/index.browser.js.map +1 -1
- package/dist/api/files/index.d.ts +292 -293
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +61 -64
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.browser.js +61 -59
- package/dist/api/jobs/index.browser.js.map +1 -1
- package/dist/api/jobs/index.d.ts +546 -347
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +165 -86
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +247 -235
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/keys/index.js +63 -66
- package/dist/api/keys/index.js.map +1 -1
- package/dist/api/notifications/index.browser.js +40 -38
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.d.ts +339 -209
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js +108 -60
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/oauth/index.d.ts +190 -78
- package/dist/api/oauth/index.d.ts.map +1 -1
- package/dist/api/oauth/index.js +290 -68
- package/dist/api/oauth/index.js.map +1 -1
- package/dist/api/organizations/index.browser.js +14 -14
- package/dist/api/organizations/index.browser.js.map +1 -1
- package/dist/api/organizations/index.d.ts +158 -134
- package/dist/api/organizations/index.d.ts.map +1 -1
- package/dist/api/organizations/index.js +18 -18
- package/dist/api/organizations/index.js.map +1 -1
- package/dist/api/parameters/index.browser.js +74 -53
- package/dist/api/parameters/index.browser.js.map +1 -1
- package/dist/api/parameters/index.d.ts +607 -513
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +205 -127
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/payments/index.d.ts +652 -449
- package/dist/api/payments/index.d.ts.map +1 -1
- package/dist/api/payments/index.js +159 -93
- package/dist/api/payments/index.js.map +1 -1
- package/dist/api/subscriptions/index.d.ts +1032 -762
- package/dist/api/subscriptions/index.d.ts.map +1 -1
- package/dist/api/subscriptions/index.js +166 -185
- package/dist/api/subscriptions/index.js.map +1 -1
- package/dist/api/users/index.browser.js +48 -71
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +1297 -1143
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +456 -392
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.browser.js +17 -17
- package/dist/api/verifications/index.browser.js.map +1 -1
- package/dist/api/verifications/index.d.ts +167 -155
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/api/verifications/index.js +47 -95
- package/dist/api/verifications/index.js.map +1 -1
- package/dist/background/index.d.ts +0 -1
- package/dist/background/index.d.ts.map +1 -1
- package/dist/background/index.js.map +1 -1
- package/dist/background/index.workerd.js.map +1 -1
- package/dist/batch/index.d.ts +0 -1
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/batch/index.js.map +1 -1
- package/dist/bin/index.js +1 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/bucket/index.d.ts +27 -32
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +56 -26
- package/dist/bucket/index.js.map +1 -1
- package/dist/bucket/index.workerd.js +52 -24
- package/dist/bucket/index.workerd.js.map +1 -1
- package/dist/cache/core/index.d.ts +4 -6
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js +4 -10
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js +4 -10
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cache/database/index.d.ts +22 -23
- package/dist/cache/database/index.d.ts.map +1 -1
- package/dist/cache/database/index.js +11 -20
- package/dist/cache/database/index.js.map +1 -1
- package/dist/cache/redis/index.d.ts +3 -4
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cache/redis/index.js +2 -2
- package/dist/cache/redis/index.js.map +1 -1
- package/dist/captcha/index.d.ts.map +1 -1
- package/dist/captcha/index.js +4 -4
- package/dist/captcha/index.js.map +1 -1
- package/dist/cli/config/index.d.ts +0 -1
- package/dist/cli/config/index.d.ts.map +1 -1
- package/dist/cli/core/index.d.ts +205 -442
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +259 -284
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +3 -9
- package/dist/cli/devtools/index.d.ts.map +1 -1
- package/dist/cli/devtools/index.js +3 -3
- package/dist/cli/devtools/index.js.map +1 -1
- package/dist/cli/i18n/index.d.ts +8 -34
- package/dist/cli/i18n/index.d.ts.map +1 -1
- package/dist/cli/i18n/index.js +6 -6
- package/dist/cli/i18n/index.js.map +1 -1
- package/dist/cli/platform/index.d.ts +89 -82
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +27 -33
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/platform-lib/index.d.ts +351 -404
- package/dist/cli/platform-lib/index.d.ts.map +1 -1
- package/dist/cli/platform-lib/index.js +218 -239
- package/dist/cli/platform-lib/index.js.map +1 -1
- package/dist/cli/vendor/index.d.ts +17 -41
- package/dist/cli/vendor/index.d.ts.map +1 -1
- package/dist/cli/vendor/index.js +10 -13
- package/dist/cli/vendor/index.js.map +1 -1
- package/dist/command/index.d.ts +83 -195
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +160 -563
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +845 -859
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +787 -527
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +845 -859
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +845 -859
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +845 -859
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.browser.js +1 -1
- package/dist/crypto/index.browser.js.map +1 -1
- package/dist/crypto/index.d.ts +3 -4
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/crypto/index.js +6 -3
- package/dist/crypto/index.js.map +1 -1
- package/dist/datetime/index.d.ts +12 -2
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/datetime/index.js +6 -1
- package/dist/datetime/index.js.map +1 -1
- package/dist/email/brevo/index.d.ts +0 -1
- package/dist/email/brevo/index.d.ts.map +1 -1
- package/dist/email/brevo/index.js +4 -4
- package/dist/email/brevo/index.js.map +1 -1
- package/dist/email/cloudflare/index.d.ts +0 -1
- package/dist/email/cloudflare/index.d.ts.map +1 -1
- package/dist/email/cloudflare/index.js +2 -2
- package/dist/email/cloudflare/index.js.map +1 -1
- package/dist/email/core/index.d.ts +15 -7
- package/dist/email/core/index.d.ts.map +1 -1
- package/dist/email/core/index.js +14 -5
- package/dist/email/core/index.js.map +1 -1
- package/dist/email/core/index.workerd.js +5 -1
- package/dist/email/core/index.workerd.js.map +1 -1
- package/dist/email/smtp/index.d.ts +8 -9
- package/dist/email/smtp/index.d.ts.map +1 -1
- package/dist/email/smtp/index.js +702 -479
- package/dist/email/smtp/index.js.map +1 -1
- package/dist/fake/index.d.ts +1580 -1238
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js +11728 -32131
- package/dist/fake/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +13 -9
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js +5 -5
- package/dist/lock/core/index.js.map +1 -1
- package/dist/lock/redis/index.d.ts +0 -1
- package/dist/lock/redis/index.d.ts.map +1 -1
- package/dist/lock/redis/index.js.map +1 -1
- package/dist/logger/index.d.ts +81 -69
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +123 -56
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +27 -90
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +42 -70
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js +54 -40
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +140 -106
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +145 -150
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +144 -109
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.bun.js +64 -54
- package/dist/orm/postgres/index.bun.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +36 -76
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/orm/postgres/index.js +67 -57
- package/dist/orm/postgres/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +62 -75
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/core/index.js +48 -71
- package/dist/queue/core/index.js.map +1 -1
- package/dist/queue/core/index.workerd.js +48 -71
- package/dist/queue/core/index.workerd.js.map +1 -1
- package/dist/queue/redis/index.d.ts +3 -4
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/queue/redis/index.js +2 -2
- package/dist/queue/redis/index.js.map +1 -1
- package/dist/react/auth/index.browser.js.map +1 -1
- package/dist/react/auth/index.d.ts +7 -4
- package/dist/react/auth/index.d.ts.map +1 -1
- package/dist/react/auth/index.js.map +1 -1
- package/dist/react/core/index.d.ts +87 -5
- package/dist/react/core/index.d.ts.map +1 -1
- package/dist/react/core/index.js +170 -23
- package/dist/react/core/index.js.map +1 -1
- package/dist/react/form/index.d.ts +4 -5
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/form/index.js +91 -56
- package/dist/react/form/index.js.map +1 -1
- package/dist/react/head/index.browser.js.map +1 -1
- package/dist/react/head/index.d.ts +0 -1
- package/dist/react/head/index.d.ts.map +1 -1
- package/dist/react/head/index.js.map +1 -1
- package/dist/react/i18n/index.d.ts +4 -5
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/i18n/index.js +2 -2
- package/dist/react/i18n/index.js.map +1 -1
- package/dist/react/intro/index.d.ts +1 -4
- package/dist/react/intro/index.d.ts.map +1 -1
- package/dist/react/intro/index.js.map +1 -1
- package/dist/react/router/index.browser.js +60 -24
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +378 -377
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +77 -41
- package/dist/react/router/index.js.map +1 -1
- package/dist/react/sitemap/index.d.ts +0 -1
- package/dist/react/sitemap/index.d.ts.map +1 -1
- package/dist/react/sitemap/index.js.map +1 -1
- package/dist/react/testing/index.d.ts +4 -5
- package/dist/react/testing/index.d.ts.map +1 -1
- package/dist/react/testing/index.js +41 -15
- package/dist/react/testing/index.js.map +1 -1
- package/dist/react/testing/{chunk-BpyX8vjI.js → rolldown-runtime-Bl3dcgcQ.js} +1 -1
- package/dist/react/ui/index.d.ts +35 -34
- package/dist/react/ui/index.d.ts.map +1 -1
- package/dist/react/ui/index.js +12 -17
- package/dist/react/ui/index.js.map +1 -1
- package/dist/redis/index.bun.js +5 -5
- package/dist/redis/index.bun.js.map +1 -1
- package/dist/redis/index.d.ts +6 -7
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/redis/index.js +6 -6
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.d.ts +0 -1
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/retry/index.js.map +1 -1
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +4 -12
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +9 -4
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/index.workerd.js +9 -4
- package/dist/scheduler/index.workerd.js.map +1 -1
- package/dist/security/index.browser.js +30 -28
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +113 -44
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +452 -37
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.browser.js +19 -19
- package/dist/server/auth/index.browser.js.map +1 -1
- package/dist/server/auth/index.d.ts +198 -274
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +83 -621
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cookies/index.browser.js +103 -5
- package/dist/server/cookies/index.browser.js.map +1 -1
- package/dist/server/cookies/index.d.ts +72 -5
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/cookies/index.js +103 -9
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.browser.js +22 -27
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.d.ts +116 -85
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +105 -118
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +9 -10
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/cors/index.js +14 -26
- package/dist/server/cors/index.js.map +1 -1
- package/dist/server/etag/index.d.ts +2 -3
- package/dist/server/etag/index.d.ts.map +1 -1
- package/dist/server/etag/index.js.map +1 -1
- package/dist/server/health/index.d.ts +18 -19
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/health/index.js +6 -6
- package/dist/server/health/index.js.map +1 -1
- package/dist/server/links/index.browser.js +15 -18
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +66 -67
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +29 -32
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +0 -1
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/metrics/index.js +10 -3
- package/dist/server/metrics/index.js.map +1 -1
- package/dist/server/proxy/index.d.ts +0 -1
- package/dist/server/proxy/index.d.ts.map +1 -1
- package/dist/server/proxy/index.js.map +1 -1
- package/dist/server/rate-limit/index.d.ts +8 -9
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.js +6 -12
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/static/index.d.ts +0 -1
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts +4 -4
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +37 -25
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +0 -1
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.browser.js.map +1 -1
- package/dist/system/index.d.ts +0 -1
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +2 -1
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.workerd.js.map +1 -1
- package/dist/topic/core/index.d.ts +19 -20
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/core/index.js +8 -8
- package/dist/topic/core/index.js.map +1 -1
- package/dist/topic/redis/index.d.ts +3 -4
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/dist/topic/redis/index.js +2 -2
- package/dist/topic/redis/index.js.map +1 -1
- package/package.json +22 -35
- package/src/api/audits/__tests__/AuditJobs.spec.ts +83 -0
- package/src/api/audits/__tests__/AuditService.spec.ts +139 -1
- package/src/api/audits/controllers/AdminAuditController.ts +41 -41
- package/src/api/audits/entities/audits.ts +22 -22
- package/src/api/audits/index.ts +6 -1
- package/src/api/audits/jobs/AuditJobs.ts +29 -0
- package/src/api/audits/parameters/AuditParameters.ts +51 -0
- package/src/api/audits/primitives/$audit.ts +24 -0
- package/src/api/audits/schemas/auditQuerySchema.ts +13 -13
- package/src/api/audits/schemas/createAuditSchema.ts +18 -18
- package/src/api/audits/services/AuditService.ts +79 -7
- package/src/api/files/__tests__/FileController.spec.ts +5 -5
- package/src/api/files/__tests__/FileJobs.spec.ts +6 -0
- package/src/api/files/controllers/FileController.ts +25 -25
- package/src/api/files/entities/files.ts +15 -15
- package/src/api/files/schemas/fileCreatorSummarySchema.ts +7 -7
- package/src/api/files/schemas/fileQuerySchema.ts +9 -9
- package/src/api/files/schemas/fileResourceSchema.ts +7 -9
- package/src/api/files/schemas/storageStatsSchema.ts +13 -13
- package/src/api/jobs/__tests__/$job-hardening.spec.ts +289 -0
- package/src/api/jobs/__tests__/$job.spec.ts +18 -18
- package/src/api/jobs/controllers/AdminJobController.ts +8 -8
- package/src/api/jobs/entities/jobExecutionEntity.ts +29 -19
- package/src/api/jobs/providers/JobProvider.ts +128 -12
- package/src/api/jobs/providers/JobQueueProvider.ts +2 -2
- package/src/api/jobs/schemas/jobConfigAtom.ts +22 -22
- package/src/api/jobs/schemas/jobExecutionQuerySchema.ts +6 -6
- package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +11 -15
- package/src/api/jobs/schemas/jobRegistrationSchema.ts +20 -19
- package/src/api/jobs/schemas/triggerJobSchema.ts +3 -3
- package/src/api/jobs/services/JobService.ts +6 -6
- package/src/api/keys/__tests__/ApiKeyService.spec.ts +2 -2
- package/src/api/keys/controllers/AdminApiKeyController.ts +10 -10
- package/src/api/keys/entities/apiKeyEntity.ts +15 -15
- package/src/api/keys/schemas/adminApiKeyQuerySchema.ts +4 -4
- package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +15 -15
- package/src/api/keys/schemas/createApiKeyBodySchema.ts +5 -5
- package/src/api/keys/schemas/createApiKeyResponseSchema.ts +9 -9
- package/src/api/keys/schemas/listApiKeyResponseSchema.ts +13 -13
- package/src/api/keys/schemas/revokeApiKeyParamsSchema.ts +3 -3
- package/src/api/keys/schemas/revokeApiKeyResponseSchema.ts +3 -3
- package/src/api/notifications/__tests__/AlephaApiNotifications.spec.ts +2 -2
- package/src/api/notifications/controllers/AdminNotificationController.ts +38 -14
- package/src/api/notifications/jobs/NotificationJobs.ts +7 -6
- package/src/api/notifications/primitives/$notification.ts +43 -4
- package/src/api/notifications/schemas/notificationContactPreferencesSchema.ts +4 -4
- package/src/api/notifications/schemas/notificationContactSchema.ts +7 -7
- package/src/api/notifications/schemas/notificationDetailResourceSchema.ts +9 -11
- package/src/api/notifications/schemas/notificationPayloadSchema.ts +11 -9
- package/src/api/notifications/schemas/notificationQuerySchema.ts +6 -6
- package/src/api/notifications/schemas/notificationResourceSchema.ts +14 -14
- package/src/api/notifications/services/NotificationSenderService.ts +38 -2
- package/src/api/oauth/__tests__/OAuthClientService.spec.ts +42 -0
- package/src/api/oauth/__tests__/OAuthController.spec.ts +128 -0
- package/src/api/oauth/controllers/OAuthController.ts +132 -12
- package/src/api/oauth/entities/oauthClientEntity.ts +29 -12
- package/src/api/oauth/helpers/oauthMetadata.ts +1 -0
- package/src/api/oauth/helpers/oidcMetadata.ts +19 -0
- package/src/api/oauth/index.ts +1 -0
- package/src/api/oauth/schemas/authorizeDecisionBodySchema.ts +12 -11
- package/src/api/oauth/schemas/authorizeQuerySchema.ts +12 -10
- package/src/api/oauth/schemas/registerClientBodySchema.ts +10 -11
- package/src/api/oauth/schemas/tokenRequestBodySchema.ts +9 -8
- package/src/api/oauth/services/OAuthClientService.ts +228 -15
- package/src/api/organizations/controllers/AdminOrganizationController.ts +8 -8
- package/src/api/organizations/entities/organizations.ts +6 -6
- package/src/api/organizations/schemas/createOrganizationSchema.ts +5 -5
- package/src/api/organizations/schemas/organizationQuerySchema.ts +4 -4
- package/src/api/organizations/schemas/updateOrganizationSchema.ts +1 -2
- package/src/api/parameters/__tests__/$parameter.spec.ts +229 -50
- package/src/api/parameters/controllers/AdminParameterController.ts +9 -12
- package/src/api/parameters/entities/parameters.ts +29 -16
- package/src/api/parameters/primitives/$parameter.ts +3 -3
- package/src/api/parameters/schemas/activateParameterBodySchema.ts +4 -4
- package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +15 -15
- package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +7 -7
- package/src/api/parameters/schemas/parameterCurrentResponseSchema.ts +7 -7
- package/src/api/parameters/schemas/parameterHistoryResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/parameterNameParamSchema.ts +2 -3
- package/src/api/parameters/schemas/parameterNamesResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/parameterResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/parameterStatusSchema.ts +2 -2
- package/src/api/parameters/schemas/parameterTreeNodeSchema.ts +6 -6
- package/src/api/parameters/schemas/parameterVersionParamSchema.ts +5 -6
- package/src/api/parameters/schemas/parameterVersionResponseSchema.ts +3 -3
- package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +6 -9
- package/src/api/parameters/services/ParameterProvider.ts +152 -65
- package/src/api/payments/controllers/AdminPaymentController.ts +7 -7
- package/src/api/payments/controllers/MockCheckoutController.ts +79 -28
- package/src/api/payments/controllers/PaymentController.ts +4 -4
- package/src/api/payments/entities/paymentIntents.ts +11 -11
- package/src/api/payments/entities/paymentMethods.ts +11 -11
- package/src/api/payments/entities/refunds.ts +9 -9
- package/src/api/payments/providers/PaymentProvider.ts +18 -0
- package/src/api/payments/schemas/intentSchemas.ts +25 -25
- package/src/api/payments/schemas/paymentMethodSchemas.ts +3 -3
- package/src/api/payments/services/PaymentService.ts +60 -3
- package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +14 -0
- package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +11 -11
- package/src/api/subscriptions/controllers/SubscriptionController.ts +5 -4
- package/src/api/subscriptions/entities/subscriptionEvents.ts +15 -15
- package/src/api/subscriptions/entities/subscriptions.ts +22 -22
- package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +22 -22
- package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +4 -4
- package/src/api/subscriptions/schemas/changePlanSchema.ts +5 -5
- package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +14 -7
- package/src/api/subscriptions/schemas/entitlementsSchema.ts +10 -10
- package/src/api/subscriptions/schemas/mrrSchema.ts +9 -9
- package/src/api/subscriptions/schemas/planDefinitionSchema.ts +21 -21
- package/src/api/subscriptions/schemas/planResourceSchema.ts +19 -19
- package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +8 -8
- package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +7 -7
- package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +17 -17
- package/src/api/subscriptions/services/SubscriptionConfig.ts +2 -2
- package/src/api/users/__tests__/ApiKeys-integration.spec.ts +11 -11
- package/src/api/users/atoms/realmAuthSettingsAtom.ts +111 -119
- package/src/api/users/controllers/AdminIdentityController.ts +29 -19
- package/src/api/users/controllers/AdminSessionController.ts +37 -27
- package/src/api/users/controllers/AdminUserController.ts +75 -53
- package/src/api/users/controllers/MySessionController.ts +125 -0
- package/src/api/users/controllers/RealmController.ts +9 -10
- package/src/api/users/controllers/UserController.ts +55 -55
- package/src/api/users/entities/identities.ts +8 -8
- package/src/api/users/entities/sessions.ts +17 -17
- package/src/api/users/entities/users.ts +17 -17
- package/src/api/users/index.ts +3 -0
- package/src/api/users/notifications/UserNotifications.ts +76 -24
- package/src/api/users/primitives/$realm.ts +12 -26
- package/src/api/users/providers/RealmProvider.ts +0 -15
- package/src/api/users/schemas/completePasswordResetRequestSchema.ts +8 -12
- package/src/api/users/schemas/completeRegistrationRequestSchema.ts +17 -20
- package/src/api/users/schemas/createUserSchema.ts +2 -2
- package/src/api/users/schemas/identityQuerySchema.ts +4 -4
- package/src/api/users/schemas/identityResourceSchema.ts +3 -2
- package/src/api/users/schemas/loginSchema.ts +4 -4
- package/src/api/users/schemas/passwordResetIntentResponseSchema.ts +6 -8
- package/src/api/users/schemas/realmConfigSchema.ts +10 -24
- package/src/api/users/schemas/registerQuerySchema.ts +6 -6
- package/src/api/users/schemas/registerRequestSchema.ts +21 -43
- package/src/api/users/schemas/registerResponseSchema.ts +2 -2
- package/src/api/users/schemas/registerSchema.ts +13 -31
- package/src/api/users/schemas/registrationIntentResponseSchema.ts +19 -23
- package/src/api/users/schemas/resetPasswordSchema.ts +10 -17
- package/src/api/users/schemas/sessionQuerySchema.ts +3 -3
- package/src/api/users/schemas/sessionResourceSchema.ts +25 -25
- package/src/api/users/schemas/updateUserSchema.ts +3 -4
- package/src/api/users/schemas/userQuerySchema.ts +7 -7
- package/src/api/users/services/RegistrationService.ts +25 -11
- package/src/api/users/services/UserService.ts +12 -6
- package/src/api/verifications/__tests__/CodeVerification.spec.ts +63 -101
- package/src/api/verifications/__tests__/LinkVerification.spec.ts +23 -92
- package/src/api/verifications/controllers/VerificationController.ts +13 -27
- package/src/api/verifications/entities/verifications.ts +13 -14
- package/src/api/verifications/schemas/requestVerificationCodeResponseSchema.ts +17 -14
- package/src/api/verifications/schemas/validateVerificationCodeResponseSchema.ts +9 -10
- package/src/api/verifications/schemas/verificationSettingsSchema.ts +65 -66
- package/src/api/verifications/schemas/verificationTypeEnumSchema.ts +2 -2
- package/src/api/verifications/services/VerificationService.ts +12 -0
- package/src/background/__tests__/BackgroundTaskProvider.spec.ts +36 -0
- package/src/batch/__tests__/$batch.spec.ts +22 -22
- package/src/batch/__tests__/startup-buffering.spec.ts +9 -9
- package/src/bin/index.ts +1 -1
- package/src/bucket/__tests__/TenantScopedBucket.spec.ts +60 -0
- package/src/bucket/providers/LocalFileStorageProvider.ts +14 -6
- package/src/bucket/providers/MemoryFileStorageProvider.ts +18 -7
- package/src/bucket/providers/R2FileStorageProvider.ts +14 -6
- package/src/bucket/providers/S3FileStorageProvider.ts +31 -15
- package/src/cache/core/primitives/$cache.ts +7 -10
- package/src/cache/database/entities/cacheEntries.ts +16 -27
- package/src/cache/database/providers/DatabaseCacheProvider.ts +15 -13
- package/src/cache/redis/providers/RedisCacheProvider.ts +6 -6
- package/src/captcha/providers/TurnstileCaptchaProvider.ts +4 -4
- package/src/cli/core/__tests__/BuildCloudflareTask.spec.ts +178 -0
- package/src/cli/core/__tests__/BuildDockerTask.spec.ts +0 -2
- package/src/cli/core/__tests__/DbCommand.spec.ts +108 -0
- package/src/cli/core/atoms/appEntryOptions.ts +5 -5
- package/src/cli/core/atoms/buildOptions.ts +76 -76
- package/src/cli/core/atoms/changelogOptions.ts +3 -3
- package/src/cli/core/atoms/devOptions.ts +3 -3
- package/src/cli/core/commands/build.ts +36 -39
- package/src/cli/core/commands/db.ts +171 -83
- package/src/cli/core/commands/dev.ts +8 -8
- package/src/cli/core/commands/gen/changelog.ts +12 -14
- package/src/cli/core/commands/gen/env.ts +6 -6
- package/src/cli/core/commands/gen/openapi.ts +6 -6
- package/src/cli/core/commands/init.ts +28 -33
- package/src/cli/core/commands/pack.ts +10 -10
- package/src/cli/core/commands/root.ts +7 -8
- package/src/cli/core/commands/test.ts +17 -20
- package/src/cli/core/tasks/BuildCloudflareTask.ts +103 -230
- package/src/cli/core/templates/apiHelloResponseSchemaTs.ts +4 -4
- package/src/cli/devtools/atoms/devtoolsOptions.ts +6 -6
- package/src/cli/i18n/atoms/i18nOptions.ts +8 -8
- package/src/cli/platform/commands/SecretsCommand.ts +24 -25
- package/src/cli/platform/commands/platform.ts +40 -46
- package/src/cli/platform/index.ts +1 -1
- package/src/cli/platform-lib/__tests__/CloudflareAdapter.spec.ts +0 -4
- package/src/cli/platform-lib/__tests__/PlatformInspector.spec.ts +10 -3
- package/src/cli/platform-lib/__tests__/VercelAdapter.spec.ts +0 -2
- package/src/cli/platform-lib/adapters/CloudflareAdapter.ts +13 -14
- package/src/cli/platform-lib/adapters/VercelAdapter.ts +6 -11
- package/src/cli/platform-lib/atoms/platformOptions.ts +46 -25
- package/src/cli/platform-lib/schemas/cloudflare.ts +87 -87
- package/src/cli/platform-lib/schemas/platform.ts +51 -51
- package/src/cli/platform-lib/schemas/vercel.ts +28 -28
- package/src/cli/platform-lib/services/CloudflareApi.ts +5 -5
- package/src/cli/platform-lib/services/VercelApi.ts +4 -4
- package/src/cli/platform-lib/services/VercelCli.ts +6 -15
- package/src/cli/platform-lib/services/WranglerApi.ts +6 -15
- package/src/cli/vendor/atoms/vendorOptions.ts +9 -9
- package/src/cli/vendor/commands/VendorCommand.ts +11 -12
- package/src/command/__tests__/$command.spec.ts +82 -83
- package/src/command/__tests__/Asker.spec.ts +6 -13
- package/src/command/__tests__/CliProvider.spec.ts +136 -149
- package/src/command/__tests__/Runner.spec.ts +86 -110
- package/src/command/helpers/Asker.ts +23 -58
- package/src/command/helpers/Runner.ts +34 -110
- package/src/command/index.ts +4 -9
- package/src/command/primitives/$command.ts +10 -10
- package/src/command/providers/CliProvider.ts +183 -161
- package/src/core/Alepha.ts +62 -13
- package/src/core/__tests__/$atom.spec.ts +52 -3
- package/src/core/__tests__/$computed.spec.ts +129 -0
- package/src/core/__tests__/$env.spec.ts +13 -13
- package/src/core/__tests__/$inject.spec.ts +4 -4
- package/src/core/__tests__/$module.spec.ts +1 -1
- package/src/core/__tests__/Alepha-graph.spec.ts +1 -1
- package/src/core/__tests__/Alepha-parseEnv.spec.ts +32 -32
- package/src/core/__tests__/Alepha-start.spec.ts +3 -3
- package/src/core/__tests__/CodecManager.spec.ts +113 -94
- package/src/core/__tests__/KeylessJsonSchemaCodec.spec.ts +138 -138
- package/src/core/__tests__/SchemaValidator.spec.ts +43 -44
- package/src/core/__tests__/StateManager.persist.browser.spec.ts +87 -0
- package/src/core/__tests__/StateManager.spec.ts +423 -0
- package/src/core/__tests__/TypeBox-usecases.spec.ts +8 -8
- package/src/core/__tests__/TypeProvider.spec.ts +314 -309
- package/src/core/__tests__/dump.spec.ts +6 -6
- package/src/core/__tests__/pagination.spec.ts +4 -4
- package/src/core/__tests__/scoped-after-start.spec.ts +43 -0
- package/src/core/errors/TypeBoxError.ts +10 -4
- package/src/core/helpers/FileLike.ts +5 -5
- package/src/core/helpers/coerceStrings.ts +70 -0
- package/src/core/helpers/jsonSchemaToZod.ts +112 -0
- package/src/core/index.shared.ts +4 -1
- package/src/core/primitives/$atom.ts +95 -27
- package/src/core/primitives/$computed.ts +148 -0
- package/src/core/primitives/$env.ts +5 -5
- package/src/core/primitives/$state.ts +1 -1
- package/src/core/providers/AlsProvider.ts +26 -0
- package/src/core/providers/CodecManager.ts +1 -2
- package/src/core/providers/JsonSchemaCodec.ts +1 -2
- package/src/core/providers/KeylessJsonSchemaCodec.ts +82 -57
- package/src/core/providers/SchemaValidator.ts +48 -158
- package/src/core/providers/StateManager.ts +383 -9
- package/src/core/providers/TypeProvider.ts +80 -734
- package/src/core/providers/ZodProvider.ts +380 -0
- package/src/core/providers/zodAugment.ts +69 -0
- package/src/core/schemas/pageQuerySchema.ts +19 -21
- package/src/core/schemas/pageSchema.ts +47 -57
- package/src/crypto/__tests__/SecretProvider.spec.ts +31 -0
- package/src/crypto/providers/SecretProvider.ts +16 -10
- package/src/datetime/primitives/$throttle.ts +6 -1
- package/src/email/brevo/providers/BrevoEmailProvider.ts +4 -4
- package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +6 -6
- package/src/email/core/index.ts +7 -2
- package/src/email/core/primitives/$email.ts +5 -1
- package/src/email/core/providers/LocalEmailProvider.ts +5 -5
- package/src/email/smtp/providers/NodemailerEmailProvider.ts +41 -52
- package/src/fake/__tests__/FakeProvider.spec.ts +110 -110
- package/src/fake/__tests__/keyName.example.ts +21 -21
- package/src/fake/__tests__/keyName.spec.ts +41 -41
- package/src/fake/__tests__/module.example.ts +8 -8
- package/src/fake/providers/FakeProvider.ts +122 -121
- package/src/lock/core/__tests__/lock-mutual-exclusion.spec.ts +44 -0
- package/src/lock/core/index.ts +1 -0
- package/src/lock/core/primitives/$lock.ts +13 -6
- package/src/logger/__tests__/CliFormatterProvider.spec.ts +76 -0
- package/src/logger/__tests__/Logger.spec.ts +49 -0
- package/src/logger/index.ts +25 -18
- package/src/logger/providers/CliFormatterProvider.ts +75 -0
- package/src/logger/schemas/logEntrySchema.ts +10 -10
- package/src/logger/services/Logger.ts +18 -0
- package/src/mcp/__tests__/$prompt.spec.ts +21 -23
- package/src/mcp/__tests__/$tool.spec.ts +22 -22
- package/src/mcp/__tests__/McpServerProvider.spec.ts +11 -11
- package/src/mcp/__tests__/StreamableHttpMcpTransport.spec.ts +2 -2
- package/src/mcp/__tests__/integration.spec.ts +33 -33
- package/src/mcp/primitives/$prompt.ts +11 -9
- package/src/mcp/primitives/$tool.ts +27 -86
- package/src/mcp/transports/StreamableHttpMcpTransport.ts +7 -7
- package/src/orm/__tests__/$repository-tests.ts +133 -27
- package/src/orm/__tests__/$repository.spec.ts +23 -0
- package/src/orm/__tests__/$transactional-tests.ts +4 -4
- package/src/orm/__tests__/ModelBuilder-tests.ts +28 -28
- package/src/orm/__tests__/ModelBuilder.spec.ts +124 -106
- package/src/orm/__tests__/QueryManager.spec.ts +5 -5
- package/src/orm/__tests__/delete-returning-tests.ts +11 -11
- package/src/orm/__tests__/deletedAt-tests.ts +3 -3
- package/src/orm/__tests__/enums.spec.ts +29 -25
- package/src/orm/__tests__/execute-tests.ts +8 -8
- package/src/orm/__tests__/fixtures/bigEntitySchema.ts +48 -48
- package/src/orm/__tests__/fixtures/userEntitySchema.ts +6 -6
- package/src/orm/__tests__/joins-tests.ts +30 -30
- package/src/orm/__tests__/organization-tests.ts +105 -3
- package/src/orm/__tests__/organization.spec.ts +46 -0
- package/src/orm/__tests__/orm-errors.spec.ts +10 -10
- package/src/orm/__tests__/orm-next-tests.ts +29 -29
- package/src/orm/__tests__/orm-showcase-tests.ts +9 -9
- package/src/orm/__tests__/primaryKey.spec.ts +4 -4
- package/src/orm/__tests__/query-date-encoding-tests.ts +17 -17
- package/src/orm/__tests__/ref-auto-onDelete.spec.ts +14 -14
- package/src/orm/__tests__/references.spec.ts +7 -7
- package/src/orm/__tests__/security.spec.ts +17 -17
- package/src/orm/__tests__/string-operators-tests.ts +5 -5
- package/src/orm/__tests__/timestamps-tests.ts +14 -14
- package/src/orm/__tests__/validation-tests.ts +5 -5
- package/src/orm/core/__tests__/BunSqliteProvider.bun.spec.ts +8 -8
- package/src/orm/core/constants/PG_SYMBOLS.ts +13 -1
- package/src/orm/core/entities/alephaSequences.ts +8 -8
- package/src/orm/core/helpers/pgAttr.ts +4 -4
- package/src/orm/core/primitives/$entity.ts +10 -6
- package/src/orm/core/providers/DatabaseTypeProvider.ts +46 -53
- package/src/orm/core/providers/drivers/BunSqliteProvider.ts +8 -8
- package/src/orm/core/providers/drivers/CloudflareD1Provider.ts +3 -5
- package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +8 -8
- package/src/orm/core/schemas/databaseEnvSchema.ts +4 -4
- package/src/orm/core/schemas/insertSchema.ts +14 -18
- package/src/orm/core/schemas/legacyIdSchema.ts +2 -2
- package/src/orm/core/schemas/updateSchema.ts +10 -16
- package/src/orm/core/services/PgRelationManager.ts +2 -2
- package/src/orm/core/services/QueryManager.ts +13 -2
- package/src/orm/core/services/Repository.ts +88 -33
- package/src/orm/core/services/SqliteModelBuilder.ts +38 -45
- package/src/orm/postgres/__tests__/BunPostgresProvider.bun.spec.ts +4 -4
- package/src/orm/postgres/providers/CloudflareHyperdriveProvider.ts +4 -6
- package/src/orm/postgres/schemas/postgresEnvSchema.ts +6 -6
- package/src/orm/postgres/services/PostgresModelBuilder.ts +127 -114
- package/src/queue/core/__tests__/$consumer.spec.ts +4 -4
- package/src/queue/core/__tests__/WorkerProvider.spec.ts +4 -4
- package/src/queue/core/__tests__/shared.ts +6 -6
- package/src/queue/core/primitives/$consumer.ts +5 -5
- package/src/queue/core/primitives/$queue.ts +44 -61
- package/src/queue/core/providers/CloudflareQueueProvider.ts +6 -0
- package/src/queue/core/providers/WorkerProvider.ts +17 -14
- package/src/queue/redis/providers/RedisQueueProvider.ts +3 -3
- package/src/react/core/__tests__/ErrorBoundary.browser.spec.tsx +92 -0
- package/src/react/core/__tests__/Router.spec.tsx +4 -4
- package/src/react/core/__tests__/useComputed.browser.spec.tsx +192 -0
- package/src/react/core/__tests__/useQuery.browser.spec.tsx +48 -0
- package/src/react/core/__tests__/useSelector.browser.spec.tsx +105 -0
- package/src/react/core/__tests__/useStore.browser.spec.tsx +113 -0
- package/src/react/core/components/ErrorBoundary.tsx +42 -0
- package/src/react/core/hooks/useAction.ts +56 -19
- package/src/react/core/hooks/useComputed.ts +91 -0
- package/src/react/core/hooks/useSelector.ts +67 -0
- package/src/react/core/hooks/useStore.ts +36 -17
- package/src/react/core/index.ts +3 -0
- package/src/react/core/utils/shallowEqual.ts +36 -0
- package/src/react/form/__tests__/FormModel-submit-loading.spec.ts +2 -2
- package/src/react/form/__tests__/form-submitting-reactive.browser.spec.tsx +5 -5
- package/src/react/form/__tests__/useForm.browser.spec.tsx +54 -54
- package/src/react/form/errors/FormValidationError.ts +0 -2
- package/src/react/form/hooks/useForm.ts +19 -4
- package/src/react/form/hooks/useFormQuerySync.ts +0 -0
- package/src/react/form/services/FormModel.ts +67 -47
- package/src/react/form/services/parseField.ts +66 -27
- package/src/react/i18n/__tests__/Localize.spec.tsx +1 -1
- package/src/react/i18n/providers/I18nProvider.ts +2 -2
- package/src/react/router/__tests__/$page.browser.spec.tsx +19 -19
- package/src/react/router/__tests__/$page.spec.tsx +21 -21
- package/src/react/router/__tests__/ReactBrowserProvider.browser.spec.ts +87 -1
- package/src/react/router/atoms/ssrManifestAtom.ts +16 -16
- package/src/react/router/components/NestedView.tsx +11 -3
- package/src/react/router/hooks/useQueryParams.ts +1 -1
- package/src/react/router/primitives/$page.ts +2 -2
- package/src/react/router/providers/ReactBrowserProvider.ts +64 -13
- package/src/react/router/providers/ReactPageProvider.ts +26 -12
- package/src/react/router/providers/ReactServerProvider.ts +13 -15
- package/src/react/sitemap/__tests__/$sitemap.spec.ts +2 -2
- package/src/react/ui/atoms/uiAtom.ts +6 -6
- package/src/react/ui/atoms/uiThemeListAtom.ts +7 -7
- package/src/react/ui/hooks/useColorMode.ts +11 -4
- package/src/react/ui/services/SchemaControl.ts +4 -4
- package/src/redis/providers/BunRedisProvider.ts +19 -11
- package/src/redis/providers/NodeRedisProvider.ts +3 -3
- package/src/scheduler/primitives/$scheduler.ts +21 -8
- package/src/security/__tests__/assertRealmScope.spec.ts +29 -0
- package/src/security/atoms/currentTenantAtom.ts +6 -6
- package/src/security/atoms/currentUserAtom.ts +2 -2
- package/src/security/primitives/$issuer.ts +24 -2
- package/src/security/providers/JwtProvider.ts +100 -0
- package/src/security/providers/SecurityProvider.ts +43 -2
- package/src/security/schemas/permissionSchema.ts +19 -19
- package/src/security/schemas/roleSchema.ts +22 -28
- package/src/security/schemas/userAccountInfoSchema.ts +47 -37
- package/src/server/auth/index.ts +0 -3
- package/src/server/auth/primitives/$auth.ts +6 -6
- package/src/server/auth/primitives/$authApple.ts +10 -10
- package/src/server/auth/primitives/$authFacebook.ts +10 -10
- package/src/server/auth/primitives/$authFranceConnect.ts +10 -10
- package/src/server/auth/primitives/$authGithub.ts +10 -10
- package/src/server/auth/primitives/$authGoogle.ts +10 -10
- package/src/server/auth/primitives/$authMicrosoft.ts +14 -14
- package/src/server/auth/providers/ServerAuthProvider.ts +49 -48
- package/src/server/auth/schemas/authenticationProviderSchema.ts +9 -12
- package/src/server/auth/schemas/tokenResponseSchema.ts +2 -2
- package/src/server/auth/schemas/tokensSchema.ts +16 -16
- package/src/server/auth/schemas/userinfoResponseSchema.ts +3 -3
- package/src/server/cookies/__tests__/AtomCookieBinding.spec.ts +80 -0
- package/src/server/cookies/__tests__/AtomCookiePersistence.browser.spec.ts +169 -0
- package/src/server/cookies/__tests__/AtomCookiePersistence.spec.ts +294 -0
- package/src/server/cookies/__tests__/ServerCookiesProvider.spec.ts +14 -14
- package/src/server/cookies/index.browser.ts +4 -1
- package/src/server/cookies/index.ts +8 -1
- package/src/server/cookies/primitives/$cookie.browser.ts +1 -1
- package/src/server/cookies/primitives/$cookie.ts +16 -0
- package/src/server/cookies/providers/AtomCookiePersistence.browser.ts +133 -0
- package/src/server/cookies/providers/AtomCookiePersistence.ts +148 -0
- package/src/server/cookies/providers/ServerCookiesProvider.ts +13 -5
- package/src/server/cookies/services/CookieParser.ts +6 -1
- package/src/server/core/__tests__/$action.spec.ts +13 -13
- package/src/server/core/__tests__/$middleware.spec.ts +10 -10
- package/src/server/core/__tests__/$route.spec.ts +9 -9
- package/src/server/core/__tests__/$sse.spec.ts +26 -26
- package/src/server/core/__tests__/BunHttpServerProvider.bun.spec.ts +6 -6
- package/src/server/core/__tests__/HttpClient.spec.ts +2 -2
- package/src/server/core/__tests__/NodeHttpServerProvider.spec.ts +15 -3
- package/src/server/core/__tests__/ServerBodyParserProvider.spec.ts +14 -14
- package/src/server/core/__tests__/ServerMultipartProvider.spec.ts +33 -33
- package/src/server/core/__tests__/ServerRouterProvider-errorHandler.spec.ts +5 -1
- package/src/server/core/__tests__/ServerRouterProvider-getRoutes.spec.ts +25 -25
- package/src/server/core/__tests__/ServerRouterProvider-serializationError.spec.ts +9 -5
- package/src/server/core/__tests__/ServerRouterProvider-validationError.spec.ts +56 -24
- package/src/server/core/errors/ValidationError.ts +6 -3
- package/src/server/core/helpers/isMultipart.ts +2 -1
- package/src/server/core/index.ts +5 -2
- package/src/server/core/interfaces/ServerRequest.ts +6 -14
- package/src/server/core/primitives/$action.ts +26 -36
- package/src/server/core/primitives/$sse.ts +3 -3
- package/src/server/core/providers/BunHttpServerProvider.ts +8 -9
- package/src/server/core/providers/NodeHttpServerProvider.ts +8 -9
- package/src/server/core/providers/ServerBodyParserProvider.ts +20 -12
- package/src/server/core/providers/ServerCompressProvider.ts +9 -10
- package/src/server/core/providers/ServerHelmetProvider.ts +26 -27
- package/src/server/core/providers/ServerMultipartProvider.ts +19 -19
- package/src/server/core/providers/ServerRouterProvider.ts +44 -15
- package/src/server/core/schemas/errorSchema.ts +20 -25
- package/src/server/core/schemas/okSchema.ts +9 -14
- package/src/server/core/services/HttpClient.ts +13 -1
- package/src/server/core/services/ServerRequestParser.ts +6 -6
- package/src/server/cors/providers/ServerCorsProvider.ts +26 -28
- package/src/server/health/schemas/healthSchema.ts +6 -6
- package/src/server/links/__tests__/$remote.spec.ts +3 -3
- package/src/server/links/__tests__/BatchEndpoint.spec.ts +9 -9
- package/src/server/links/__tests__/LinkProvider.spec.ts +9 -9
- package/src/server/links/__tests__/ServerLinksProvider.spec.ts +23 -23
- package/src/server/links/__tests__/fixtures/CrudApp.ts +21 -21
- package/src/server/links/atoms/apiLinksAtom.ts +2 -2
- package/src/server/links/atoms/linkOptionsAtom.ts +6 -6
- package/src/server/links/primitives/$remote.ts +3 -3
- package/src/server/links/providers/LinkProvider.ts +3 -3
- package/src/server/links/providers/ServerLinksProvider.ts +20 -20
- package/src/server/links/schemas/apiLinksResponseSchema.ts +23 -23
- package/src/server/proxy/__tests__/$proxy.spec.ts +9 -9
- package/src/server/proxy/providers/ServerProxyProvider.ts +5 -0
- package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +18 -20
- package/src/server/swagger/__tests__/$swagger.spec.ts +91 -94
- package/src/server/swagger/__tests__/ui.spec.ts +3 -3
- package/src/server/swagger/providers/ServerSwaggerProvider.ts +66 -43
- package/src/system/__tests__/NodeShellProvider.spec.ts +46 -0
- package/src/system/providers/NodeShellProvider.ts +4 -1
- package/src/topic/core/__tests__/$subscriber.spec.ts +4 -4
- package/src/topic/core/__tests__/shared.ts +8 -8
- package/src/topic/core/primitives/$subscriber.ts +5 -5
- package/src/topic/core/primitives/$topic.ts +14 -14
- package/src/topic/redis/providers/RedisTopicProvider.ts +3 -3
- package/dist/container/core/index.d.ts +0 -236
- package/dist/container/core/index.d.ts.map +0 -1
- package/dist/container/core/index.js +0 -231
- package/dist/container/core/index.js.map +0 -1
- package/dist/container/core/index.workerd.js +0 -192
- package/dist/container/core/index.workerd.js.map +0 -1
- package/src/command/helpers/PrettyAsker.ts +0 -256
- package/src/command/helpers/PrettyPrint.ts +0 -332
- package/src/container/core/__tests__/$container.spec.ts +0 -83
- package/src/container/core/index.ts +0 -50
- package/src/container/core/index.workerd.ts +0 -53
- package/src/container/core/interfaces/ContainerOptions.ts +0 -69
- package/src/container/core/primitives/$container.ts +0 -100
- package/src/container/core/providers/CloudflareContainerProvider.ts +0 -70
- package/src/container/core/providers/ContainerProvider.ts +0 -92
- package/src/container/core/providers/MockContainerProvider.ts +0 -62
- package/src/container/core/providers/NodeContainerProvider.ts +0 -53
- package/src/core/__tests__/jsonSchemaToTypeBox.spec.ts +0 -771
- package/src/core/helpers/jsonSchemaToTypeBox.ts +0 -359
- package/src/server/auth/__tests__/authFederationClient.spec.ts +0 -40
- package/src/server/auth/__tests__/federationAssertion.spec.ts +0 -146
- package/src/server/auth/helpers/federationAssertion.ts +0 -74
- package/src/server/auth/primitives/$authFederationBroker.ts +0 -273
- package/src/server/auth/primitives/$authFederationClient.ts +0 -89
- /package/dist/orm/core/{chunk-B4FMCO8f.js → rolldown-runtime-B4FMCO8f.js} +0 -0
|
@@ -4,7 +4,6 @@ import { Asker, EnvUtils, Runner, RunnerMethod } from "alepha/command";
|
|
|
4
4
|
import { ConsoleColorProvider } from "alepha/logger";
|
|
5
5
|
import { FileSystemProvider, ShellProvider } from "alepha/system";
|
|
6
6
|
import { DateTimeProvider } from "alepha/datetime";
|
|
7
|
-
|
|
8
7
|
//#region ../../src/cli/platform-lib/providers/PlatformCacheProvider.d.ts
|
|
9
8
|
interface PlatformCache {
|
|
10
9
|
[adapter: string]: {
|
|
@@ -31,161 +30,161 @@ declare class PlatformCacheProvider {
|
|
|
31
30
|
}
|
|
32
31
|
//#endregion
|
|
33
32
|
//#region ../../src/cli/platform-lib/schemas/cloudflare.d.ts
|
|
34
|
-
declare const cloudflareAccountSchema: import("
|
|
35
|
-
id: import("
|
|
36
|
-
name: import("
|
|
37
|
-
}>;
|
|
33
|
+
declare const cloudflareAccountSchema: import("zod").ZodObject<{
|
|
34
|
+
id: import("zod").ZodString;
|
|
35
|
+
name: import("zod").ZodString;
|
|
36
|
+
}, import("zod/v4/core").$strip>;
|
|
38
37
|
type CloudflareAccount = Static<typeof cloudflareAccountSchema>;
|
|
39
|
-
declare const cloudflareD1Schema: import("
|
|
40
|
-
uuid: import("
|
|
41
|
-
name: import("
|
|
42
|
-
}>;
|
|
38
|
+
declare const cloudflareD1Schema: import("zod").ZodObject<{
|
|
39
|
+
uuid: import("zod").ZodString;
|
|
40
|
+
name: import("zod").ZodString;
|
|
41
|
+
}, import("zod/v4/core").$strip>;
|
|
43
42
|
type CloudflareD1 = Static<typeof cloudflareD1Schema>;
|
|
44
|
-
declare const cloudflareKVSchema: import("
|
|
45
|
-
id: import("
|
|
46
|
-
title: import("
|
|
47
|
-
}>;
|
|
43
|
+
declare const cloudflareKVSchema: import("zod").ZodObject<{
|
|
44
|
+
id: import("zod").ZodString;
|
|
45
|
+
title: import("zod").ZodString;
|
|
46
|
+
}, import("zod/v4/core").$strip>;
|
|
48
47
|
type CloudflareKV = Static<typeof cloudflareKVSchema>;
|
|
49
|
-
declare const cloudflareR2Schema: import("
|
|
50
|
-
name: import("
|
|
51
|
-
creation_date: import("
|
|
52
|
-
}>;
|
|
48
|
+
declare const cloudflareR2Schema: import("zod").ZodObject<{
|
|
49
|
+
name: import("zod").ZodString;
|
|
50
|
+
creation_date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
}, import("zod/v4/core").$strip>;
|
|
53
52
|
type CloudflareR2 = Static<typeof cloudflareR2Schema>;
|
|
54
|
-
declare const cloudflareR2ListSchema: import("
|
|
55
|
-
buckets: import("
|
|
56
|
-
name: import("
|
|
57
|
-
creation_date: import("
|
|
58
|
-
}>>;
|
|
59
|
-
}>;
|
|
60
|
-
declare const cloudflareQueueSchema: import("
|
|
61
|
-
queue_id: import("
|
|
62
|
-
queue_name: import("
|
|
63
|
-
}>;
|
|
53
|
+
declare const cloudflareR2ListSchema: import("zod").ZodObject<{
|
|
54
|
+
buckets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
55
|
+
name: import("zod").ZodString;
|
|
56
|
+
creation_date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
57
|
+
}, import("zod/v4/core").$strip>>;
|
|
58
|
+
}, import("zod/v4/core").$strip>;
|
|
59
|
+
declare const cloudflareQueueSchema: import("zod").ZodObject<{
|
|
60
|
+
queue_id: import("zod").ZodString;
|
|
61
|
+
queue_name: import("zod").ZodString;
|
|
62
|
+
}, import("zod/v4/core").$strip>;
|
|
64
63
|
type CloudflareQueue = Static<typeof cloudflareQueueSchema>;
|
|
65
|
-
declare const cloudflareQueueConsumerSchema: import("
|
|
66
|
-
consumer_id: import("
|
|
67
|
-
service: import("
|
|
68
|
-
environment: import("
|
|
69
|
-
}>;
|
|
64
|
+
declare const cloudflareQueueConsumerSchema: import("zod").ZodObject<{
|
|
65
|
+
consumer_id: import("zod").ZodString;
|
|
66
|
+
service: import("zod").ZodString;
|
|
67
|
+
environment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
68
|
+
}, import("zod/v4/core").$strip>;
|
|
70
69
|
type CloudflareQueueConsumer = Static<typeof cloudflareQueueConsumerSchema>;
|
|
71
|
-
declare const cloudflareHyperdriveOriginSchema: import("
|
|
72
|
-
host: import("
|
|
73
|
-
}>;
|
|
74
|
-
declare const cloudflareHyperdriveSchema: import("
|
|
75
|
-
id: import("
|
|
76
|
-
name: import("
|
|
77
|
-
origin: import("
|
|
78
|
-
host: import("
|
|
79
|
-
}>;
|
|
80
|
-
}>;
|
|
70
|
+
declare const cloudflareHyperdriveOriginSchema: import("zod").ZodObject<{
|
|
71
|
+
host: import("zod").ZodString;
|
|
72
|
+
}, import("zod/v4/core").$strip>;
|
|
73
|
+
declare const cloudflareHyperdriveSchema: import("zod").ZodObject<{
|
|
74
|
+
id: import("zod").ZodString;
|
|
75
|
+
name: import("zod").ZodString;
|
|
76
|
+
origin: import("zod").ZodObject<{
|
|
77
|
+
host: import("zod").ZodString;
|
|
78
|
+
}, import("zod/v4/core").$strip>;
|
|
79
|
+
}, import("zod/v4/core").$strip>;
|
|
81
80
|
type CloudflareHyperdrive = Static<typeof cloudflareHyperdriveSchema>;
|
|
82
|
-
declare const cloudflareWorkerSchema: import("
|
|
83
|
-
id: import("
|
|
84
|
-
created_on: import("
|
|
85
|
-
modified_on: import("
|
|
86
|
-
}>;
|
|
81
|
+
declare const cloudflareWorkerSchema: import("zod").ZodObject<{
|
|
82
|
+
id: import("zod").ZodString;
|
|
83
|
+
created_on: import("zod").ZodString;
|
|
84
|
+
modified_on: import("zod").ZodString;
|
|
85
|
+
}, import("zod/v4/core").$strip>;
|
|
87
86
|
type CloudflareWorker = Static<typeof cloudflareWorkerSchema>;
|
|
88
|
-
declare const cloudflareDeploymentVersionSchema: import("
|
|
89
|
-
version_id: import("
|
|
90
|
-
percentage: import("
|
|
91
|
-
}>;
|
|
92
|
-
declare const cloudflareDeploymentSchema: import("
|
|
93
|
-
id: import("
|
|
94
|
-
versions: import("
|
|
95
|
-
version_id: import("
|
|
96
|
-
percentage: import("
|
|
97
|
-
}>>;
|
|
98
|
-
created_on: import("
|
|
99
|
-
}>;
|
|
87
|
+
declare const cloudflareDeploymentVersionSchema: import("zod").ZodObject<{
|
|
88
|
+
version_id: import("zod").ZodString;
|
|
89
|
+
percentage: import("zod").ZodNumber;
|
|
90
|
+
}, import("zod/v4/core").$strip>;
|
|
91
|
+
declare const cloudflareDeploymentSchema: import("zod").ZodObject<{
|
|
92
|
+
id: import("zod").ZodString;
|
|
93
|
+
versions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
94
|
+
version_id: import("zod").ZodString;
|
|
95
|
+
percentage: import("zod").ZodNumber;
|
|
96
|
+
}, import("zod/v4/core").$strip>>;
|
|
97
|
+
created_on: import("zod").ZodString;
|
|
98
|
+
}, import("zod/v4/core").$strip>;
|
|
100
99
|
type CloudflareDeployment = Static<typeof cloudflareDeploymentSchema>;
|
|
101
|
-
declare const cloudflareDeploymentListSchema: import("
|
|
102
|
-
deployments: import("
|
|
103
|
-
id: import("
|
|
104
|
-
versions: import("
|
|
105
|
-
version_id: import("
|
|
106
|
-
percentage: import("
|
|
107
|
-
}>>;
|
|
108
|
-
created_on: import("
|
|
109
|
-
}>>;
|
|
110
|
-
}>;
|
|
111
|
-
declare const cloudflareVersionSchema: import("
|
|
112
|
-
id: import("
|
|
113
|
-
metadata: import("
|
|
114
|
-
created_on: import("
|
|
115
|
-
}>;
|
|
116
|
-
annotations: import("
|
|
117
|
-
}>;
|
|
100
|
+
declare const cloudflareDeploymentListSchema: import("zod").ZodObject<{
|
|
101
|
+
deployments: import("zod").ZodArray<import("zod").ZodObject<{
|
|
102
|
+
id: import("zod").ZodString;
|
|
103
|
+
versions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
104
|
+
version_id: import("zod").ZodString;
|
|
105
|
+
percentage: import("zod").ZodNumber;
|
|
106
|
+
}, import("zod/v4/core").$strip>>;
|
|
107
|
+
created_on: import("zod").ZodString;
|
|
108
|
+
}, import("zod/v4/core").$strip>>;
|
|
109
|
+
}, import("zod/v4/core").$strip>;
|
|
110
|
+
declare const cloudflareVersionSchema: import("zod").ZodObject<{
|
|
111
|
+
id: import("zod").ZodString;
|
|
112
|
+
metadata: import("zod").ZodObject<{
|
|
113
|
+
created_on: import("zod").ZodString;
|
|
114
|
+
}, import("zod/v4/core").$strip>;
|
|
115
|
+
annotations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
116
|
+
}, import("zod/v4/core").$strip>;
|
|
118
117
|
type CloudflareVersion = Static<typeof cloudflareVersionSchema>;
|
|
119
|
-
declare const cloudflareVersionListSchema: import("
|
|
120
|
-
items: import("
|
|
121
|
-
id: import("
|
|
122
|
-
metadata: import("
|
|
123
|
-
created_on: import("
|
|
124
|
-
}>;
|
|
125
|
-
annotations: import("
|
|
126
|
-
}>>;
|
|
127
|
-
}>;
|
|
128
|
-
declare const cloudflareSecretSchema: import("
|
|
129
|
-
name: import("
|
|
130
|
-
type: import("
|
|
131
|
-
}>;
|
|
118
|
+
declare const cloudflareVersionListSchema: import("zod").ZodObject<{
|
|
119
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
120
|
+
id: import("zod").ZodString;
|
|
121
|
+
metadata: import("zod").ZodObject<{
|
|
122
|
+
created_on: import("zod").ZodString;
|
|
123
|
+
}, import("zod/v4/core").$strip>;
|
|
124
|
+
annotations: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
125
|
+
}, import("zod/v4/core").$strip>>;
|
|
126
|
+
}, import("zod/v4/core").$strip>;
|
|
127
|
+
declare const cloudflareSecretSchema: import("zod").ZodObject<{
|
|
128
|
+
name: import("zod").ZodString;
|
|
129
|
+
type: import("zod").ZodString;
|
|
130
|
+
}, import("zod/v4/core").$strip>;
|
|
132
131
|
type CloudflareSecret = Static<typeof cloudflareSecretSchema>;
|
|
133
|
-
declare const createD1BodySchema: import("
|
|
134
|
-
name: import("
|
|
135
|
-
primary_location_hint: import("
|
|
136
|
-
jurisdiction: import("
|
|
137
|
-
}>;
|
|
138
|
-
declare const createKVBodySchema: import("
|
|
139
|
-
title: import("
|
|
140
|
-
}>;
|
|
141
|
-
declare const createR2BodySchema: import("
|
|
142
|
-
name: import("
|
|
143
|
-
}>;
|
|
144
|
-
declare const cloudflareR2TokenSchema: import("
|
|
145
|
-
id: import("
|
|
146
|
-
accessKeyId: import("
|
|
147
|
-
secretAccessKey: import("
|
|
148
|
-
}>;
|
|
132
|
+
declare const createD1BodySchema: import("zod").ZodObject<{
|
|
133
|
+
name: import("zod").ZodString;
|
|
134
|
+
primary_location_hint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
135
|
+
jurisdiction: import("zod").ZodOptional<import("zod").ZodString>;
|
|
136
|
+
}, import("zod/v4/core").$strip>;
|
|
137
|
+
declare const createKVBodySchema: import("zod").ZodObject<{
|
|
138
|
+
title: import("zod").ZodString;
|
|
139
|
+
}, import("zod/v4/core").$strip>;
|
|
140
|
+
declare const createR2BodySchema: import("zod").ZodObject<{
|
|
141
|
+
name: import("zod").ZodString;
|
|
142
|
+
}, import("zod/v4/core").$strip>;
|
|
143
|
+
declare const cloudflareR2TokenSchema: import("zod").ZodObject<{
|
|
144
|
+
id: import("zod").ZodString;
|
|
145
|
+
accessKeyId: import("zod").ZodString;
|
|
146
|
+
secretAccessKey: import("zod").ZodString;
|
|
147
|
+
}, import("zod/v4/core").$strip>;
|
|
149
148
|
type CloudflareR2Token = Static<typeof cloudflareR2TokenSchema>;
|
|
150
|
-
declare const createR2TokenBodySchema: import("
|
|
151
|
-
name: import("
|
|
152
|
-
policies: import("
|
|
153
|
-
effect: import("
|
|
154
|
-
permissions: import("
|
|
155
|
-
buckets: import("
|
|
156
|
-
}>>;
|
|
157
|
-
}>;
|
|
158
|
-
declare const createQueueBodySchema: import("
|
|
159
|
-
queue_name: import("
|
|
160
|
-
}>;
|
|
161
|
-
declare const createHyperdriveOriginSchema: import("
|
|
162
|
-
scheme: import("
|
|
163
|
-
host: import("
|
|
164
|
-
port: import("
|
|
165
|
-
database: import("
|
|
166
|
-
user: import("
|
|
167
|
-
password: import("
|
|
168
|
-
}>;
|
|
169
|
-
declare const createHyperdriveBodySchema: import("
|
|
170
|
-
name: import("
|
|
171
|
-
origin: import("
|
|
172
|
-
scheme: import("
|
|
173
|
-
host: import("
|
|
174
|
-
port: import("
|
|
175
|
-
database: import("
|
|
176
|
-
user: import("
|
|
177
|
-
password: import("
|
|
178
|
-
}>;
|
|
179
|
-
}>;
|
|
180
|
-
declare const putSecretBodySchema: import("
|
|
181
|
-
name: import("
|
|
182
|
-
text: import("
|
|
183
|
-
type: import("
|
|
184
|
-
}>;
|
|
185
|
-
declare const cloudflareApiErrorSchema: import("
|
|
186
|
-
code: import("
|
|
187
|
-
message: import("
|
|
188
|
-
}>;
|
|
149
|
+
declare const createR2TokenBodySchema: import("zod").ZodObject<{
|
|
150
|
+
name: import("zod").ZodString;
|
|
151
|
+
policies: import("zod").ZodArray<import("zod").ZodObject<{
|
|
152
|
+
effect: import("zod").ZodString;
|
|
153
|
+
permissions: import("zod").ZodArray<import("zod").ZodString>;
|
|
154
|
+
buckets: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
155
|
+
}, import("zod/v4/core").$strip>>;
|
|
156
|
+
}, import("zod/v4/core").$strip>;
|
|
157
|
+
declare const createQueueBodySchema: import("zod").ZodObject<{
|
|
158
|
+
queue_name: import("zod").ZodString;
|
|
159
|
+
}, import("zod/v4/core").$strip>;
|
|
160
|
+
declare const createHyperdriveOriginSchema: import("zod").ZodObject<{
|
|
161
|
+
scheme: import("zod").ZodString;
|
|
162
|
+
host: import("zod").ZodString;
|
|
163
|
+
port: import("zod").ZodNumber;
|
|
164
|
+
database: import("zod").ZodString;
|
|
165
|
+
user: import("zod").ZodString;
|
|
166
|
+
password: import("zod").ZodString;
|
|
167
|
+
}, import("zod/v4/core").$strip>;
|
|
168
|
+
declare const createHyperdriveBodySchema: import("zod").ZodObject<{
|
|
169
|
+
name: import("zod").ZodString;
|
|
170
|
+
origin: import("zod").ZodObject<{
|
|
171
|
+
scheme: import("zod").ZodString;
|
|
172
|
+
host: import("zod").ZodString;
|
|
173
|
+
port: import("zod").ZodNumber;
|
|
174
|
+
database: import("zod").ZodString;
|
|
175
|
+
user: import("zod").ZodString;
|
|
176
|
+
password: import("zod").ZodString;
|
|
177
|
+
}, import("zod/v4/core").$strip>;
|
|
178
|
+
}, import("zod/v4/core").$strip>;
|
|
179
|
+
declare const putSecretBodySchema: import("zod").ZodObject<{
|
|
180
|
+
name: import("zod").ZodString;
|
|
181
|
+
text: import("zod").ZodString;
|
|
182
|
+
type: import("zod").ZodString;
|
|
183
|
+
}, import("zod/v4/core").$strip>;
|
|
184
|
+
declare const cloudflareApiErrorSchema: import("zod").ZodObject<{
|
|
185
|
+
code: import("zod").ZodNumber;
|
|
186
|
+
message: import("zod").ZodString;
|
|
187
|
+
}, import("zod/v4/core").$strip>;
|
|
189
188
|
type CloudflareApiError = Static<typeof cloudflareApiErrorSchema>;
|
|
190
189
|
//#endregion
|
|
191
190
|
//#region ../../src/cli/platform-lib/services/WranglerApi.d.ts
|
|
@@ -201,12 +200,11 @@ declare class WranglerApi {
|
|
|
201
200
|
protected readonly shell: ShellProvider;
|
|
202
201
|
protected readonly utils: AlephaCliUtils;
|
|
203
202
|
protected readonly pm: PackageManagerUtils;
|
|
204
|
-
protected readonly runner: Runner;
|
|
205
203
|
protected runShell(command: string, options?: Parameters<ShellProvider["run"]>[1]): Promise<string>;
|
|
206
204
|
/**
|
|
207
205
|
* Ensure wrangler is installed in the project.
|
|
208
206
|
*/
|
|
209
|
-
ensureInstalled(root: string
|
|
207
|
+
ensureInstalled(root: string): Promise<void>;
|
|
210
208
|
/**
|
|
211
209
|
* Check if the user is authenticated. Returns the whoami output.
|
|
212
210
|
*/
|
|
@@ -378,107 +376,39 @@ declare class CloudflareApi {
|
|
|
378
376
|
* Filled from the `platform` section of `alepha.config.ts`.
|
|
379
377
|
* Read by `PlatformCommand` to resolve environments and adapters.
|
|
380
378
|
*/
|
|
381
|
-
declare const platformOptions: import("alepha").Atom<import("
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
*
|
|
389
|
-
* @default "production"
|
|
390
|
-
*/
|
|
391
|
-
default: import("typebox").TOptional<import("typebox").TString>;
|
|
392
|
-
/**
|
|
393
|
-
* Multi-tenancy mode — controls whether `--tenant <slug>` is
|
|
394
|
-
* accepted/required and how it shapes resource names + the domain.
|
|
395
|
-
*
|
|
396
|
-
* - `none` (default): single instance. `--tenant` is rejected.
|
|
397
|
-
* - `required`: every deploy needs `--tenant`; resources are named
|
|
398
|
-
* `<tenant>-<project>-<env>` and the host becomes
|
|
399
|
-
* `<tenant>.<domain>`. Omitting it errors.
|
|
400
|
-
* - `optional`: a base instance (no `--tenant`) plus per-tenant
|
|
401
|
-
* instances coexist.
|
|
402
|
-
*
|
|
403
|
-
* @default "none"
|
|
404
|
-
*/
|
|
405
|
-
tenancy: import("typebox").TOptional<import("typebox").TUnsafe<"required" | "none" | "optional">>;
|
|
406
|
-
/**
|
|
407
|
-
* Secret store configuration for syncing .env secrets
|
|
408
|
-
* to external providers (e.g. GitHub Actions environments).
|
|
409
|
-
*/
|
|
410
|
-
secrets: import("typebox").TOptional<import("typebox").TObject<{
|
|
411
|
-
/**
|
|
412
|
-
* Explicit override of the worker secret-key allowlist.
|
|
413
|
-
*
|
|
414
|
-
* By default the deploy `secrets` step uses the build manifest's
|
|
415
|
-
* `env` list (every key the app declares via `$env`, captured at
|
|
416
|
-
* build time) as the allowlist, resolving each value from
|
|
417
|
-
* `.env.<env>[.local]` first, then `process.env`. This lets CI
|
|
418
|
-
* deliver secrets via the job environment (no `.env` file on the
|
|
419
|
-
* runner) while only ever pushing declared keys — ambient runner
|
|
420
|
-
* vars (PATH, GITHUB_*, …) can never leak.
|
|
421
|
-
*
|
|
422
|
-
* Set `keys` to override that auto-detected list (e.g. to narrow it,
|
|
423
|
-
* or to add a key read via `process.env` rather than `$env`). When
|
|
424
|
-
* neither this nor a manifest is present, the `.env.<env>` file is
|
|
425
|
-
* itself the allowlist (legacy fallback).
|
|
426
|
-
*/
|
|
427
|
-
keys: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
|
|
428
|
-
/**
|
|
429
|
-
* Secret store backend.
|
|
430
|
-
*/
|
|
431
|
-
store: import("typebox").TOptional<import("typebox").TUnsafe<"github">>;
|
|
432
|
-
/**
|
|
433
|
-
* Pattern for resolving environment names in the store.
|
|
434
|
-
* Placeholders: {project}, {env}.
|
|
435
|
-
*
|
|
436
|
-
* @default "{project}-{env}"
|
|
437
|
-
*/
|
|
438
|
-
environmentPattern: import("typebox").TOptional<import("typebox").TString>;
|
|
379
|
+
declare const platformOptions: import("alepha").Atom<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
380
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
381
|
+
default: import("zod").ZodOptional<import("zod").ZodString>;
|
|
382
|
+
tenancy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
383
|
+
none: "none";
|
|
384
|
+
optional: "optional";
|
|
385
|
+
required: "required";
|
|
439
386
|
}>>;
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
* Cloudflare data jurisdiction for R2 buckets and D1 databases.
|
|
466
|
-
* - "eu": data stays within the EU
|
|
467
|
-
* - "fedramp": FedRAMP-authorized regions
|
|
468
|
-
*
|
|
469
|
-
* Omit for the default (global) jurisdiction.
|
|
470
|
-
*/
|
|
471
|
-
jurisdiction: import("typebox").TOptional<import("typebox").TUnsafe<"eu" | "fedramp">>;
|
|
472
|
-
/**
|
|
473
|
-
* Cloudflare account ID to deploy into.
|
|
474
|
-
*
|
|
475
|
-
* Falls back to `CLOUDFLARE_ACCOUNT_ID` env var, then to the
|
|
476
|
-
* token's account when the token is scoped to exactly one.
|
|
477
|
-
* Required when the token has access to multiple accounts.
|
|
478
|
-
*/
|
|
479
|
-
accountId: import("typebox").TOptional<import("typebox").TString>;
|
|
480
|
-
}>>;
|
|
481
|
-
}>>, "alepha.cli.platform.options">;
|
|
387
|
+
secrets: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
388
|
+
keys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
389
|
+
store: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
390
|
+
github: "github";
|
|
391
|
+
}>>;
|
|
392
|
+
environmentPattern: import("zod").ZodOptional<import("zod").ZodString>;
|
|
393
|
+
}, import("zod/v4/core").$strip>>;
|
|
394
|
+
environments: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
395
|
+
adapter: import("zod").ZodEnum<{
|
|
396
|
+
cloudflare: "cloudflare";
|
|
397
|
+
vercel: "vercel";
|
|
398
|
+
}>;
|
|
399
|
+
domain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
400
|
+
zone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
401
|
+
services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
402
|
+
binding: import("zod").ZodString;
|
|
403
|
+
service: import("zod").ZodString;
|
|
404
|
+
}, import("zod/v4/core").$strip>>>;
|
|
405
|
+
jurisdiction: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
406
|
+
eu: "eu";
|
|
407
|
+
fedramp: "fedramp";
|
|
408
|
+
}>>;
|
|
409
|
+
accountId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
410
|
+
}, import("zod/v4/core").$strip>>;
|
|
411
|
+
}, import("zod/v4/core").$strip>>, "alepha.cli.platform.options">;
|
|
482
412
|
/**
|
|
483
413
|
* Type for platform options.
|
|
484
414
|
*/
|
|
@@ -493,6 +423,10 @@ interface EnvironmentConfig {
|
|
|
493
423
|
vars?: Record<string, string>;
|
|
494
424
|
jurisdiction?: "eu" | "fedramp";
|
|
495
425
|
accountId?: string;
|
|
426
|
+
services?: Array<{
|
|
427
|
+
binding: string;
|
|
428
|
+
service: string;
|
|
429
|
+
}>;
|
|
496
430
|
}
|
|
497
431
|
//#endregion
|
|
498
432
|
//#region ../../src/cli/platform-lib/services/NamingService.d.ts
|
|
@@ -728,20 +662,24 @@ declare class CloudflareAdapter extends PlatformAdapter {
|
|
|
728
662
|
protected readonly options: Readonly<{
|
|
729
663
|
name?: string | undefined;
|
|
730
664
|
default?: string | undefined;
|
|
731
|
-
tenancy?: "
|
|
665
|
+
tenancy?: "none" | "optional" | "required" | undefined;
|
|
732
666
|
secrets?: {
|
|
733
667
|
keys?: string[] | undefined;
|
|
734
668
|
store?: "github" | undefined;
|
|
735
669
|
environmentPattern?: string | undefined;
|
|
736
670
|
} | undefined;
|
|
737
671
|
environments: Record<string, {
|
|
672
|
+
adapter: "cloudflare" | "vercel";
|
|
738
673
|
domain?: string | undefined;
|
|
739
674
|
zone?: string | undefined;
|
|
675
|
+
services?: {
|
|
676
|
+
binding: string;
|
|
677
|
+
service: string;
|
|
678
|
+
}[] | undefined;
|
|
740
679
|
jurisdiction?: "eu" | "fedramp" | undefined;
|
|
741
680
|
accountId?: string | undefined;
|
|
742
|
-
adapter: "cloudflare" | "vercel";
|
|
743
681
|
}>;
|
|
744
|
-
}>;
|
|
682
|
+
} | undefined>;
|
|
745
683
|
protected provisionedD1Id?: string;
|
|
746
684
|
protected provisionedHyperdriveId?: string;
|
|
747
685
|
protected provisionedKVIds: Map<string, string>;
|
|
@@ -865,41 +803,41 @@ declare class CloudflareAdapter extends PlatformAdapter {
|
|
|
865
803
|
}
|
|
866
804
|
//#endregion
|
|
867
805
|
//#region ../../src/cli/platform-lib/schemas/vercel.d.ts
|
|
868
|
-
declare const vercelProjectSchema: import("
|
|
869
|
-
id: import("
|
|
870
|
-
name: import("
|
|
871
|
-
accountId: import("
|
|
872
|
-
}>;
|
|
806
|
+
declare const vercelProjectSchema: import("zod").ZodObject<{
|
|
807
|
+
id: import("zod").ZodString;
|
|
808
|
+
name: import("zod").ZodString;
|
|
809
|
+
accountId: import("zod").ZodString;
|
|
810
|
+
}, import("zod/v4/core").$strip>;
|
|
873
811
|
type VercelProject = Static<typeof vercelProjectSchema>;
|
|
874
|
-
declare const createProjectBodySchema: import("
|
|
875
|
-
name: import("
|
|
876
|
-
framework: import("
|
|
877
|
-
}>;
|
|
878
|
-
declare const vercelDeploymentSchema: import("
|
|
879
|
-
uid: import("
|
|
880
|
-
name: import("
|
|
881
|
-
url: import("
|
|
882
|
-
state: import("
|
|
883
|
-
readyState: import("
|
|
884
|
-
created: import("
|
|
885
|
-
target: import("
|
|
886
|
-
alias: import("
|
|
887
|
-
}>;
|
|
812
|
+
declare const createProjectBodySchema: import("zod").ZodObject<{
|
|
813
|
+
name: import("zod").ZodString;
|
|
814
|
+
framework: import("zod").ZodOptional<import("zod").ZodNull>;
|
|
815
|
+
}, import("zod/v4/core").$strip>;
|
|
816
|
+
declare const vercelDeploymentSchema: import("zod").ZodObject<{
|
|
817
|
+
uid: import("zod").ZodString;
|
|
818
|
+
name: import("zod").ZodString;
|
|
819
|
+
url: import("zod").ZodString;
|
|
820
|
+
state: import("zod").ZodOptional<import("zod").ZodString>;
|
|
821
|
+
readyState: import("zod").ZodOptional<import("zod").ZodString>;
|
|
822
|
+
created: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
823
|
+
target: import("zod").ZodOptional<import("zod").ZodString>;
|
|
824
|
+
alias: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
825
|
+
}, import("zod/v4/core").$strip>;
|
|
888
826
|
type VercelDeployment = Static<typeof vercelDeploymentSchema>;
|
|
889
|
-
declare const vercelEnvVarSchema: import("
|
|
890
|
-
id: import("
|
|
891
|
-
key: import("
|
|
892
|
-
value: import("
|
|
893
|
-
type: import("
|
|
894
|
-
target: import("
|
|
895
|
-
}>;
|
|
827
|
+
declare const vercelEnvVarSchema: import("zod").ZodObject<{
|
|
828
|
+
id: import("zod").ZodString;
|
|
829
|
+
key: import("zod").ZodString;
|
|
830
|
+
value: import("zod").ZodOptional<import("zod").ZodString>;
|
|
831
|
+
type: import("zod").ZodString;
|
|
832
|
+
target: import("zod").ZodArray<import("zod").ZodString>;
|
|
833
|
+
}, import("zod/v4/core").$strip>;
|
|
896
834
|
type VercelEnvVar = Static<typeof vercelEnvVarSchema>;
|
|
897
|
-
declare const createEnvVarBodySchema: import("
|
|
898
|
-
key: import("
|
|
899
|
-
value: import("
|
|
900
|
-
type: import("
|
|
901
|
-
target: import("
|
|
902
|
-
}>;
|
|
835
|
+
declare const createEnvVarBodySchema: import("zod").ZodObject<{
|
|
836
|
+
key: import("zod").ZodString;
|
|
837
|
+
value: import("zod").ZodString;
|
|
838
|
+
type: import("zod").ZodString;
|
|
839
|
+
target: import("zod").ZodArray<import("zod").ZodString>;
|
|
840
|
+
}, import("zod/v4/core").$strip>;
|
|
903
841
|
//#endregion
|
|
904
842
|
//#region ../../src/cli/platform-lib/services/VercelCli.d.ts
|
|
905
843
|
/**
|
|
@@ -914,12 +852,11 @@ declare class VercelCli {
|
|
|
914
852
|
protected readonly fs: FileSystemProvider;
|
|
915
853
|
protected readonly utils: AlephaCliUtils;
|
|
916
854
|
protected readonly pm: PackageManagerUtils;
|
|
917
|
-
protected readonly runner: Runner;
|
|
918
855
|
protected runShell(command: string, options?: Parameters<ShellProvider["run"]>[1]): Promise<string>;
|
|
919
856
|
/**
|
|
920
857
|
* Ensure vercel CLI is installed in the project.
|
|
921
858
|
*/
|
|
922
|
-
ensureInstalled(root: string
|
|
859
|
+
ensureInstalled(root: string): Promise<void>;
|
|
923
860
|
/**
|
|
924
861
|
* Get the Vercel auth token.
|
|
925
862
|
*
|
|
@@ -1013,7 +950,6 @@ declare class VercelAdapter extends PlatformAdapter {
|
|
|
1013
950
|
protected readonly envUtils: EnvUtils;
|
|
1014
951
|
protected readonly api: VercelApi;
|
|
1015
952
|
protected readonly vercelCli: VercelCli;
|
|
1016
|
-
protected readonly runner: Runner;
|
|
1017
953
|
/**
|
|
1018
954
|
* Vars that should not be pushed as env vars.
|
|
1019
955
|
* These are either handled by the build or are internal.
|
|
@@ -1151,121 +1087,124 @@ declare class MemorySecretStore implements SecretStoreProvider {
|
|
|
1151
1087
|
}
|
|
1152
1088
|
//#endregion
|
|
1153
1089
|
//#region ../../src/cli/platform-lib/schemas/platform.d.ts
|
|
1154
|
-
declare const platformStatusWorkerSchema: import("
|
|
1155
|
-
name: import("
|
|
1156
|
-
exists: import("
|
|
1157
|
-
id: import("
|
|
1158
|
-
detail: import("
|
|
1159
|
-
version: import("
|
|
1160
|
-
tag: import("
|
|
1161
|
-
createdAt: import("
|
|
1162
|
-
}>;
|
|
1163
|
-
declare const platformStatusResourceSchema: import("
|
|
1164
|
-
name: import("
|
|
1165
|
-
exists: import("
|
|
1166
|
-
id: import("
|
|
1167
|
-
detail: import("
|
|
1168
|
-
}>;
|
|
1169
|
-
declare const platformStatusSecretSchema: import("
|
|
1170
|
-
name: import("
|
|
1171
|
-
deployed: import("
|
|
1172
|
-
}>;
|
|
1173
|
-
declare const platformStatusSchema: import("
|
|
1174
|
-
project: import("
|
|
1175
|
-
env: import("
|
|
1176
|
-
adapter: import("
|
|
1177
|
-
workers: import("
|
|
1178
|
-
name: import("
|
|
1179
|
-
exists: import("
|
|
1180
|
-
id: import("
|
|
1181
|
-
detail: import("
|
|
1182
|
-
version: import("
|
|
1183
|
-
tag: import("
|
|
1184
|
-
createdAt: import("
|
|
1185
|
-
}>>;
|
|
1186
|
-
databases: import("
|
|
1187
|
-
name: import("
|
|
1188
|
-
exists: import("
|
|
1189
|
-
id: import("
|
|
1190
|
-
detail: import("
|
|
1191
|
-
}>>;
|
|
1192
|
-
buckets: import("
|
|
1193
|
-
name: import("
|
|
1194
|
-
exists: import("
|
|
1195
|
-
id: import("
|
|
1196
|
-
detail: import("
|
|
1197
|
-
}>>;
|
|
1198
|
-
kvNamespaces: import("
|
|
1199
|
-
name: import("
|
|
1200
|
-
exists: import("
|
|
1201
|
-
id: import("
|
|
1202
|
-
detail: import("
|
|
1203
|
-
}>>;
|
|
1204
|
-
queues: import("
|
|
1205
|
-
name: import("
|
|
1206
|
-
exists: import("
|
|
1207
|
-
id: import("
|
|
1208
|
-
detail: import("
|
|
1209
|
-
}>>;
|
|
1210
|
-
secrets: import("
|
|
1211
|
-
name: import("
|
|
1212
|
-
deployed: import("
|
|
1213
|
-
}>>;
|
|
1214
|
-
}>;
|
|
1090
|
+
declare const platformStatusWorkerSchema: import("zod").ZodObject<{
|
|
1091
|
+
name: import("zod").ZodString;
|
|
1092
|
+
exists: import("zod").ZodBoolean;
|
|
1093
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1094
|
+
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1095
|
+
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1096
|
+
tag: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1097
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1098
|
+
}, import("zod/v4/core").$strip>;
|
|
1099
|
+
declare const platformStatusResourceSchema: import("zod").ZodObject<{
|
|
1100
|
+
name: import("zod").ZodString;
|
|
1101
|
+
exists: import("zod").ZodBoolean;
|
|
1102
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1103
|
+
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1104
|
+
}, import("zod/v4/core").$strip>;
|
|
1105
|
+
declare const platformStatusSecretSchema: import("zod").ZodObject<{
|
|
1106
|
+
name: import("zod").ZodString;
|
|
1107
|
+
deployed: import("zod").ZodBoolean;
|
|
1108
|
+
}, import("zod/v4/core").$strip>;
|
|
1109
|
+
declare const platformStatusSchema: import("zod").ZodObject<{
|
|
1110
|
+
project: import("zod").ZodString;
|
|
1111
|
+
env: import("zod").ZodString;
|
|
1112
|
+
adapter: import("zod").ZodString;
|
|
1113
|
+
workers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1114
|
+
name: import("zod").ZodString;
|
|
1115
|
+
exists: import("zod").ZodBoolean;
|
|
1116
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1117
|
+
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1118
|
+
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1119
|
+
tag: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1120
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1121
|
+
}, import("zod/v4/core").$strip>>;
|
|
1122
|
+
databases: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1123
|
+
name: import("zod").ZodString;
|
|
1124
|
+
exists: import("zod").ZodBoolean;
|
|
1125
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1126
|
+
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1127
|
+
}, import("zod/v4/core").$strip>>;
|
|
1128
|
+
buckets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1129
|
+
name: import("zod").ZodString;
|
|
1130
|
+
exists: import("zod").ZodBoolean;
|
|
1131
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1132
|
+
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1133
|
+
}, import("zod/v4/core").$strip>>;
|
|
1134
|
+
kvNamespaces: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1135
|
+
name: import("zod").ZodString;
|
|
1136
|
+
exists: import("zod").ZodBoolean;
|
|
1137
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1138
|
+
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1139
|
+
}, import("zod/v4/core").$strip>>;
|
|
1140
|
+
queues: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1141
|
+
name: import("zod").ZodString;
|
|
1142
|
+
exists: import("zod").ZodBoolean;
|
|
1143
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1144
|
+
detail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1145
|
+
}, import("zod/v4/core").$strip>>;
|
|
1146
|
+
secrets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1147
|
+
name: import("zod").ZodString;
|
|
1148
|
+
deployed: import("zod").ZodBoolean;
|
|
1149
|
+
}, import("zod/v4/core").$strip>>;
|
|
1150
|
+
}, import("zod/v4/core").$strip>;
|
|
1215
1151
|
type PlatformStatusOutput = Static<typeof platformStatusSchema>;
|
|
1216
|
-
declare const platformPlanAppResourcesSchema: import("
|
|
1217
|
-
hasDatabase: import("
|
|
1218
|
-
hasBucket: import("
|
|
1219
|
-
hasKV: import("
|
|
1220
|
-
hasQueue: import("
|
|
1221
|
-
hasCron: import("
|
|
1222
|
-
}>;
|
|
1223
|
-
declare const platformPlanAppSchema: import("
|
|
1224
|
-
name: import("
|
|
1225
|
-
path: import("
|
|
1226
|
-
resources: import("
|
|
1227
|
-
hasDatabase: import("
|
|
1228
|
-
hasBucket: import("
|
|
1229
|
-
hasKV: import("
|
|
1230
|
-
hasQueue: import("
|
|
1231
|
-
hasCron: import("
|
|
1152
|
+
declare const platformPlanAppResourcesSchema: import("zod").ZodObject<{
|
|
1153
|
+
hasDatabase: import("zod").ZodBoolean;
|
|
1154
|
+
hasBucket: import("zod").ZodBoolean;
|
|
1155
|
+
hasKV: import("zod").ZodBoolean;
|
|
1156
|
+
hasQueue: import("zod").ZodBoolean;
|
|
1157
|
+
hasCron: import("zod").ZodBoolean;
|
|
1158
|
+
}, import("zod/v4/core").$strip>;
|
|
1159
|
+
declare const platformPlanAppSchema: import("zod").ZodObject<{
|
|
1160
|
+
name: import("zod").ZodString;
|
|
1161
|
+
path: import("zod").ZodString;
|
|
1162
|
+
resources: import("zod").ZodObject<{
|
|
1163
|
+
hasDatabase: import("zod").ZodBoolean;
|
|
1164
|
+
hasBucket: import("zod").ZodBoolean;
|
|
1165
|
+
hasKV: import("zod").ZodBoolean;
|
|
1166
|
+
hasQueue: import("zod").ZodBoolean;
|
|
1167
|
+
hasCron: import("zod").ZodBoolean;
|
|
1168
|
+
}, import("zod/v4/core").$strip>;
|
|
1169
|
+
}, import("zod/v4/core").$strip>;
|
|
1170
|
+
declare const platformPlanEnvironmentSchema: import("zod").ZodObject<{
|
|
1171
|
+
adapter: import("zod").ZodString;
|
|
1172
|
+
domain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1173
|
+
zone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1174
|
+
}, import("zod/v4/core").$strip>;
|
|
1175
|
+
declare const platformPlanResourceSchema: import("zod").ZodObject<{
|
|
1176
|
+
label: import("zod").ZodString;
|
|
1177
|
+
value: import("zod").ZodString;
|
|
1178
|
+
}, import("zod/v4/core").$strip>;
|
|
1179
|
+
declare const platformPlanSchema: import("zod").ZodObject<{
|
|
1180
|
+
project: import("zod").ZodString;
|
|
1181
|
+
env: import("zod").ZodString;
|
|
1182
|
+
mode: import("zod").ZodEnum<{
|
|
1183
|
+
monorepo: "monorepo";
|
|
1184
|
+
standalone: "standalone";
|
|
1232
1185
|
}>;
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
}>;
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
hasCron: import("typebox").TBoolean;
|
|
1256
|
-
}>;
|
|
1257
|
-
}>>;
|
|
1258
|
-
environments: import("typebox").TRecord<"^.*$", import("typebox").TObject<{
|
|
1259
|
-
adapter: import("typebox").TString;
|
|
1260
|
-
domain: import("typebox").TOptional<import("typebox").TString>;
|
|
1261
|
-
zone: import("typebox").TOptional<import("typebox").TString>;
|
|
1262
|
-
}>>;
|
|
1263
|
-
resources: import("typebox").TArray<import("typebox").TObject<{
|
|
1264
|
-
label: import("typebox").TString;
|
|
1265
|
-
value: import("typebox").TString;
|
|
1266
|
-
}>>;
|
|
1267
|
-
secretCount: import("typebox").TNumber;
|
|
1268
|
-
}>;
|
|
1186
|
+
apps: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1187
|
+
name: import("zod").ZodString;
|
|
1188
|
+
path: import("zod").ZodString;
|
|
1189
|
+
resources: import("zod").ZodObject<{
|
|
1190
|
+
hasDatabase: import("zod").ZodBoolean;
|
|
1191
|
+
hasBucket: import("zod").ZodBoolean;
|
|
1192
|
+
hasKV: import("zod").ZodBoolean;
|
|
1193
|
+
hasQueue: import("zod").ZodBoolean;
|
|
1194
|
+
hasCron: import("zod").ZodBoolean;
|
|
1195
|
+
}, import("zod/v4/core").$strip>;
|
|
1196
|
+
}, import("zod/v4/core").$strip>>;
|
|
1197
|
+
environments: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
1198
|
+
adapter: import("zod").ZodString;
|
|
1199
|
+
domain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1200
|
+
zone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1201
|
+
}, import("zod/v4/core").$strip>>;
|
|
1202
|
+
resources: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1203
|
+
label: import("zod").ZodString;
|
|
1204
|
+
value: import("zod").ZodString;
|
|
1205
|
+
}, import("zod/v4/core").$strip>>;
|
|
1206
|
+
secretCount: import("zod").ZodNumber;
|
|
1207
|
+
}, import("zod/v4/core").$strip>;
|
|
1269
1208
|
type PlatformPlanOutput = Static<typeof platformPlanSchema>;
|
|
1270
1209
|
//#endregion
|
|
1271
1210
|
//#region ../../src/cli/platform-lib/services/PlatformInspector.d.ts
|
|
@@ -1295,20 +1234,24 @@ declare class PlatformInspector {
|
|
|
1295
1234
|
protected readonly options: Readonly<{
|
|
1296
1235
|
name?: string | undefined;
|
|
1297
1236
|
default?: string | undefined;
|
|
1298
|
-
tenancy?: "
|
|
1237
|
+
tenancy?: "none" | "optional" | "required" | undefined;
|
|
1299
1238
|
secrets?: {
|
|
1300
1239
|
keys?: string[] | undefined;
|
|
1301
1240
|
store?: "github" | undefined;
|
|
1302
1241
|
environmentPattern?: string | undefined;
|
|
1303
1242
|
} | undefined;
|
|
1304
1243
|
environments: Record<string, {
|
|
1244
|
+
adapter: "cloudflare" | "vercel";
|
|
1305
1245
|
domain?: string | undefined;
|
|
1306
1246
|
zone?: string | undefined;
|
|
1247
|
+
services?: {
|
|
1248
|
+
binding: string;
|
|
1249
|
+
service: string;
|
|
1250
|
+
}[] | undefined;
|
|
1307
1251
|
jurisdiction?: "eu" | "fedramp" | undefined;
|
|
1308
1252
|
accountId?: string | undefined;
|
|
1309
|
-
adapter: "cloudflare" | "vercel";
|
|
1310
1253
|
}>;
|
|
1311
|
-
}>;
|
|
1254
|
+
} | undefined>;
|
|
1312
1255
|
protected readonly naming: NamingService;
|
|
1313
1256
|
/**
|
|
1314
1257
|
* Resolve and validate the full platform configuration.
|
|
@@ -1371,7 +1314,8 @@ declare class PlatformOrchestrator {
|
|
|
1371
1314
|
* `dist/` and just need the wrangler config refreshed for
|
|
1372
1315
|
* per-tenant overrides on every deploy.
|
|
1373
1316
|
*/
|
|
1374
|
-
prebuilt?: boolean;
|
|
1317
|
+
prebuilt?: boolean;
|
|
1318
|
+
/** Tenant slug (apps with tenancy optional|required). */
|
|
1375
1319
|
tenant?: string;
|
|
1376
1320
|
}): Promise<{
|
|
1377
1321
|
urls: string[];
|
|
@@ -1392,13 +1336,15 @@ declare class PlatformOrchestrator {
|
|
|
1392
1336
|
entry: AppEntry;
|
|
1393
1337
|
resources: DetectedResources;
|
|
1394
1338
|
run: RunnerMethod;
|
|
1395
|
-
confirm: (prompt: string) => Promise<string>;
|
|
1339
|
+
confirm: (prompt: string) => Promise<string>;
|
|
1340
|
+
/** Tenant slug (apps with tenancy optional|required). */
|
|
1396
1341
|
tenant?: string;
|
|
1397
1342
|
}): Promise<boolean>;
|
|
1398
1343
|
plan(options: {
|
|
1399
1344
|
root: string;
|
|
1400
1345
|
env: string;
|
|
1401
|
-
resources: DetectedResources;
|
|
1346
|
+
resources: DetectedResources;
|
|
1347
|
+
/** Tenant slug (apps with tenancy optional|required). */
|
|
1402
1348
|
tenant?: string;
|
|
1403
1349
|
}): Promise<{
|
|
1404
1350
|
config: ResolvedPlatformConfig;
|
|
@@ -1410,7 +1356,8 @@ declare class PlatformOrchestrator {
|
|
|
1410
1356
|
env: string;
|
|
1411
1357
|
entry: AppEntry;
|
|
1412
1358
|
resources: DetectedResources;
|
|
1413
|
-
run: RunnerMethod;
|
|
1359
|
+
run: RunnerMethod;
|
|
1360
|
+
/** Tenant slug (apps with tenancy optional|required). */
|
|
1414
1361
|
tenant?: string;
|
|
1415
1362
|
}): Promise<{
|
|
1416
1363
|
config: ResolvedPlatformConfig;
|