alepha 0.20.6 → 0.20.7

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.
Files changed (243) hide show
  1. package/AGENTS.md +0 -1
  2. package/CLAUDE.md +0 -1
  3. package/assets/agents-template.md +0 -1
  4. package/dist/api/audits/index.browser.js +1 -0
  5. package/dist/api/audits/index.browser.js.map +1 -1
  6. package/dist/api/audits/index.d.ts +370 -355
  7. package/dist/api/audits/index.d.ts.map +1 -1
  8. package/dist/api/audits/index.js +1 -0
  9. package/dist/api/audits/index.js.map +1 -1
  10. package/dist/api/files/index.browser.js +1 -0
  11. package/dist/api/files/index.browser.js.map +1 -1
  12. package/dist/api/files/index.d.ts +179 -170
  13. package/dist/api/files/index.d.ts.map +1 -1
  14. package/dist/api/files/index.js +1 -0
  15. package/dist/api/files/index.js.map +1 -1
  16. package/dist/api/jobs/index.browser.js +7 -0
  17. package/dist/api/jobs/index.browser.js.map +1 -1
  18. package/dist/api/jobs/index.d.ts +271 -262
  19. package/dist/api/jobs/index.d.ts.map +1 -1
  20. package/dist/api/jobs/index.js +21 -3
  21. package/dist/api/jobs/index.js.map +1 -1
  22. package/dist/api/keys/index.d.ts +198 -192
  23. package/dist/api/keys/index.d.ts.map +1 -1
  24. package/dist/api/keys/index.js +1 -0
  25. package/dist/api/keys/index.js.map +1 -1
  26. package/dist/api/notifications/index.d.ts +246 -245
  27. package/dist/api/notifications/index.d.ts.map +1 -1
  28. package/dist/api/organizations/index.d.ts +100 -97
  29. package/dist/api/organizations/index.d.ts.map +1 -1
  30. package/dist/api/parameters/index.d.ts +323 -320
  31. package/dist/api/parameters/index.d.ts.map +1 -1
  32. package/dist/api/payments/index.d.ts +431 -376
  33. package/dist/api/payments/index.d.ts.map +1 -1
  34. package/dist/api/payments/index.js +202 -87
  35. package/dist/api/payments/index.js.map +1 -1
  36. package/dist/api/subscriptions/index.d.ts +1695 -0
  37. package/dist/api/subscriptions/index.d.ts.map +1 -0
  38. package/dist/api/subscriptions/index.js +1919 -0
  39. package/dist/api/subscriptions/index.js.map +1 -0
  40. package/dist/api/users/index.d.ts +863 -847
  41. package/dist/api/users/index.d.ts.map +1 -1
  42. package/dist/api/verifications/index.d.ts +126 -125
  43. package/dist/api/verifications/index.d.ts.map +1 -1
  44. package/dist/bucket/index.d.ts +3 -2
  45. package/dist/bucket/index.d.ts.map +1 -1
  46. package/dist/cache/core/index.d.ts +114 -4
  47. package/dist/cache/core/index.d.ts.map +1 -1
  48. package/dist/cache/core/index.js +181 -15
  49. package/dist/cache/core/index.js.map +1 -1
  50. package/dist/cache/core/index.workerd.js +181 -15
  51. package/dist/cache/core/index.workerd.js.map +1 -1
  52. package/dist/cache/database/index.d.ts +20 -19
  53. package/dist/cache/database/index.d.ts.map +1 -1
  54. package/dist/cache/redis/index.d.ts +3 -2
  55. package/dist/cache/redis/index.d.ts.map +1 -1
  56. package/dist/cli/core/index.d.ts +113 -129
  57. package/dist/cli/core/index.d.ts.map +1 -1
  58. package/dist/cli/core/index.js +75 -7
  59. package/dist/cli/core/index.js.map +1 -1
  60. package/dist/cli/devtools/index.d.ts +3 -2
  61. package/dist/cli/devtools/index.d.ts.map +1 -1
  62. package/dist/cli/platform/index.d.ts +346 -290
  63. package/dist/cli/platform/index.d.ts.map +1 -1
  64. package/dist/cli/platform/index.js +105 -6
  65. package/dist/cli/platform/index.js.map +1 -1
  66. package/dist/cli/vendor/index.d.ts +12 -11
  67. package/dist/cli/vendor/index.d.ts.map +1 -1
  68. package/dist/command/index.d.ts +5 -4
  69. package/dist/command/index.d.ts.map +1 -1
  70. package/dist/core/index.browser.js +1 -1
  71. package/dist/core/index.browser.js.map +1 -1
  72. package/dist/core/index.d.ts +119 -118
  73. package/dist/core/index.d.ts.map +1 -1
  74. package/dist/core/index.js +1 -1
  75. package/dist/core/index.js.map +1 -1
  76. package/dist/core/index.native.js +1 -1
  77. package/dist/core/index.native.js.map +1 -1
  78. package/dist/core/index.workerd.js +1 -1
  79. package/dist/core/index.workerd.js.map +1 -1
  80. package/dist/crypto/index.d.ts +3 -2
  81. package/dist/crypto/index.d.ts.map +1 -1
  82. package/dist/email/core/index.d.ts +3 -2
  83. package/dist/email/core/index.d.ts.map +1 -1
  84. package/dist/email/smtp/index.d.ts +7 -6
  85. package/dist/email/smtp/index.d.ts.map +1 -1
  86. package/dist/lock/core/index.d.ts +5 -4
  87. package/dist/lock/core/index.d.ts.map +1 -1
  88. package/dist/logger/index.d.ts +10 -9
  89. package/dist/logger/index.d.ts.map +1 -1
  90. package/dist/mcp/index.d.ts +9 -8
  91. package/dist/mcp/index.d.ts.map +1 -1
  92. package/dist/mcp/index.js +1 -1
  93. package/dist/mcp/index.js.map +1 -1
  94. package/dist/orm/core/index.browser.js +9 -3
  95. package/dist/orm/core/index.browser.js.map +1 -1
  96. package/dist/orm/core/index.bun.js +31 -10
  97. package/dist/orm/core/index.bun.js.map +1 -1
  98. package/dist/orm/core/index.d.ts +33 -14
  99. package/dist/orm/core/index.d.ts.map +1 -1
  100. package/dist/orm/core/index.js +31 -10
  101. package/dist/orm/core/index.js.map +1 -1
  102. package/dist/orm/postgres/index.d.ts +6 -5
  103. package/dist/orm/postgres/index.d.ts.map +1 -1
  104. package/dist/queue/core/index.d.ts +5 -4
  105. package/dist/queue/core/index.d.ts.map +1 -1
  106. package/dist/queue/redis/index.d.ts +3 -2
  107. package/dist/queue/redis/index.d.ts.map +1 -1
  108. package/dist/react/form/index.d.ts +5 -0
  109. package/dist/react/form/index.d.ts.map +1 -1
  110. package/dist/react/form/index.js +6 -4
  111. package/dist/react/form/index.js.map +1 -1
  112. package/dist/react/i18n/index.d.ts +2 -1
  113. package/dist/react/i18n/index.d.ts.map +1 -1
  114. package/dist/react/router/index.d.ts +206 -205
  115. package/dist/react/router/index.d.ts.map +1 -1
  116. package/dist/react/ui/index.d.ts +11 -11
  117. package/dist/react/ui/index.d.ts.map +1 -1
  118. package/dist/scheduler/index.d.ts +3 -2
  119. package/dist/scheduler/index.d.ts.map +1 -1
  120. package/dist/security/index.browser.js +29 -1
  121. package/dist/security/index.browser.js.map +1 -1
  122. package/dist/security/index.d.ts +82 -35
  123. package/dist/security/index.d.ts.map +1 -1
  124. package/dist/security/index.js +56 -3
  125. package/dist/security/index.js.map +1 -1
  126. package/dist/server/auth/index.d.ts +163 -158
  127. package/dist/server/auth/index.d.ts.map +1 -1
  128. package/dist/server/auth/index.js +16 -4
  129. package/dist/server/auth/index.js.map +1 -1
  130. package/dist/server/core/index.d.ts +35 -34
  131. package/dist/server/core/index.d.ts.map +1 -1
  132. package/dist/server/cors/index.d.ts +7 -6
  133. package/dist/server/cors/index.d.ts.map +1 -1
  134. package/dist/server/health/index.d.ts +16 -15
  135. package/dist/server/health/index.d.ts.map +1 -1
  136. package/dist/server/links/index.d.ts +51 -50
  137. package/dist/server/links/index.d.ts.map +1 -1
  138. package/dist/server/rate-limit/index.d.ts +6 -5
  139. package/dist/server/rate-limit/index.d.ts.map +1 -1
  140. package/dist/server/swagger/index.d.ts +2 -1
  141. package/dist/server/swagger/index.d.ts.map +1 -1
  142. package/dist/topic/redis/index.d.ts +3 -2
  143. package/dist/topic/redis/index.d.ts.map +1 -1
  144. package/package.json +16 -32
  145. package/src/api/audits/entities/audits.ts +1 -0
  146. package/src/api/files/entities/files.ts +1 -0
  147. package/src/api/jobs/__tests__/$job.spec.ts +92 -40
  148. package/src/api/jobs/entities/jobExecutionEntity.ts +1 -0
  149. package/src/api/jobs/providers/JobProvider.ts +20 -5
  150. package/src/api/jobs/schemas/jobConfigAtom.ts +5 -0
  151. package/src/api/keys/entities/apiKeyEntity.ts +1 -0
  152. package/src/api/payments/controllers/MockCheckoutController.ts +146 -0
  153. package/src/api/payments/index.ts +3 -0
  154. package/src/api/payments/providers/MemoryPaymentProvider.ts +9 -4
  155. package/src/api/payments/providers/PaymentProvider.ts +25 -9
  156. package/src/api/payments/services/PaymentService.ts +3 -0
  157. package/src/api/subscriptions/__tests__/BillingService.spec.ts +218 -0
  158. package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +278 -0
  159. package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +212 -0
  160. package/src/api/subscriptions/controllers/SubscriptionController.ts +189 -0
  161. package/src/api/subscriptions/entities/subscriptionEvents.ts +54 -0
  162. package/src/api/subscriptions/entities/subscriptions.ts +68 -0
  163. package/src/api/subscriptions/index.ts +133 -0
  164. package/src/api/subscriptions/jobs/SubscriptionJobs.ts +382 -0
  165. package/src/api/subscriptions/middleware/$requireLimit.ts +50 -0
  166. package/src/api/subscriptions/middleware/$requirePlan.ts +49 -0
  167. package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +110 -0
  168. package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +8 -0
  169. package/src/api/subscriptions/schemas/changePlanSchema.ts +9 -0
  170. package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +11 -0
  171. package/src/api/subscriptions/schemas/entitlementsSchema.ts +21 -0
  172. package/src/api/subscriptions/schemas/mrrSchema.ts +13 -0
  173. package/src/api/subscriptions/schemas/planDefinitionSchema.ts +71 -0
  174. package/src/api/subscriptions/schemas/planResourceSchema.ts +25 -0
  175. package/src/api/subscriptions/schemas/subscriptionEventResourceSchema.ts +8 -0
  176. package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +19 -0
  177. package/src/api/subscriptions/schemas/subscriptionResourceSchema.ts +6 -0
  178. package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +32 -0
  179. package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +23 -0
  180. package/src/api/subscriptions/services/BillingService.ts +437 -0
  181. package/src/api/subscriptions/services/SubscriptionConfig.ts +56 -0
  182. package/src/api/subscriptions/services/SubscriptionService.ts +867 -0
  183. package/src/api/subscriptions/services/UsageService.ts +118 -0
  184. package/src/cache/core/__tests__/$cache.memory.spec.ts +450 -0
  185. package/src/cache/core/__tests__/$cache.swr.spec.ts +394 -0
  186. package/src/cache/core/index.ts +16 -0
  187. package/src/cache/core/primitives/$cache.ts +347 -21
  188. package/src/cli/core/tasks/BuildCloudflareTask.ts +16 -0
  189. package/src/cli/core/templates/agentMd.ts +39 -4
  190. package/src/cli/core/templates/biomeJson.ts +25 -1
  191. package/src/cli/core/templates/saasAdminLayoutTsx.ts +2 -2
  192. package/src/cli/platform/__tests__/CloudflareAdapter.spec.ts +117 -0
  193. package/src/cli/platform/adapters/CloudflareAdapter.ts +104 -7
  194. package/src/cli/platform/atoms/platformOptions.ts +13 -0
  195. package/src/cli/platform/schemas/platform.ts +1 -0
  196. package/src/cli/platform/services/CloudflareApi.ts +61 -0
  197. package/src/cli/platform/services/PlatformOrchestrator.ts +9 -4
  198. package/src/core/__tests__/$module.spec.ts +2 -2
  199. package/src/core/primitives/$module.ts +4 -4
  200. package/src/mcp/providers/McpServerProvider.ts +1 -1
  201. package/src/orm/core/providers/DatabaseTypeProvider.ts +9 -3
  202. package/src/orm/core/providers/drivers/DatabaseProvider.ts +1 -1
  203. package/src/orm/core/schemas/insertSchema.ts +10 -2
  204. package/src/orm/core/services/Repository.ts +27 -7
  205. package/src/react/form/hooks/useFormState.ts +8 -1
  206. package/src/react/form/index.ts +10 -1
  207. package/src/react/form/services/FormModel.ts +9 -3
  208. package/src/security/atoms/currentTenantAtom.ts +34 -0
  209. package/src/security/index.browser.ts +1 -0
  210. package/src/security/index.ts +12 -1
  211. package/src/security/primitives/$issuer.ts +17 -1
  212. package/src/security/providers/SecurityProvider.ts +37 -0
  213. package/src/server/auth/__tests__/validateRedirectUri.spec.ts +78 -0
  214. package/src/server/auth/providers/ServerAuthProvider.ts +21 -5
  215. package/tsconfig.base.json +2 -1
  216. package/dist/react/websocket/index.d.ts +0 -117
  217. package/dist/react/websocket/index.d.ts.map +0 -1
  218. package/dist/react/websocket/index.js +0 -108
  219. package/dist/react/websocket/index.js.map +0 -1
  220. package/dist/websocket/index.browser.js +0 -848
  221. package/dist/websocket/index.browser.js.map +0 -1
  222. package/dist/websocket/index.d.ts +0 -876
  223. package/dist/websocket/index.d.ts.map +0 -1
  224. package/dist/websocket/index.js +0 -1185
  225. package/dist/websocket/index.js.map +0 -1
  226. package/src/react/websocket/hooks/useRoom.tsx +0 -251
  227. package/src/react/websocket/index.ts +0 -7
  228. package/src/websocket/__tests__/$channel.spec.ts +0 -30
  229. package/src/websocket/__tests__/$websocket-new.spec.ts +0 -195
  230. package/src/websocket/__tests__/RoomManager.spec.ts +0 -146
  231. package/src/websocket/__tests__/websocket-integration.spec.ts +0 -951
  232. package/src/websocket/errors/WebSocketError.ts +0 -34
  233. package/src/websocket/index.browser.ts +0 -25
  234. package/src/websocket/index.shared.ts +0 -8
  235. package/src/websocket/index.ts +0 -85
  236. package/src/websocket/interfaces/WebSocketInterfaces.ts +0 -252
  237. package/src/websocket/primitives/$channel.ts +0 -131
  238. package/src/websocket/primitives/$websocket.ts +0 -107
  239. package/src/websocket/providers/NodeWebSocketServerProvider.ts +0 -617
  240. package/src/websocket/providers/WebSocketServerProvider.ts +0 -56
  241. package/src/websocket/services/RoomManager.ts +0 -160
  242. package/src/websocket/services/WebSocketClient.ts +0 -642
  243. package/src/websocket/services/WebSocketTopicService.ts +0 -108
@@ -7,6 +7,7 @@ import * as _$alepha_logger0 from "alepha/logger";
7
7
  import { ConsoleColorProvider } from "alepha/logger";
8
8
  import { FileSystemProvider, ShellProvider } from "alepha/system";
9
9
  import { DateTimeProvider } from "alepha/datetime";
10
+ import * as _$typebox from "typebox";
10
11
 
11
12
  //#region ../../src/cli/platform/atoms/platformOptions.d.ts
12
13
  /**
@@ -15,50 +16,62 @@ import { DateTimeProvider } from "alepha/datetime";
15
16
  * Filled from the `platform` section of `alepha.config.ts`.
16
17
  * Read by `PlatformCommand` to resolve environments and adapters.
17
18
  */
18
- declare const platformOptions: _$alepha.Atom<_$alepha.TOptional<_$alepha.TObject<{
19
+ declare const platformOptions: _$alepha.Atom<_$typebox.TOptional<_$typebox.TObject<{
19
20
  /**
20
21
  * Project name override. Defaults to root package.json "name".
21
22
  */
22
- name: _$alepha.TOptional<_$alepha.TString>;
23
+ name: _$typebox.TOptional<_$typebox.TString>;
23
24
  /**
24
25
  * Monorepo app paths relative to root. Omit for standalone apps.
25
26
  */
26
- apps: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
27
+ apps: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
27
28
  /**
28
29
  * Default environment when --env is omitted.
29
30
  *
30
31
  * @default "production"
31
32
  */
32
- default: _$alepha.TOptional<_$alepha.TString>;
33
+ default: _$typebox.TOptional<_$typebox.TString>;
33
34
  /**
34
35
  * Secret store configuration for syncing .env secrets
35
36
  * to external providers (e.g. GitHub Actions environments).
36
37
  */
37
- secrets: _$alepha.TOptional<_$alepha.TObject<{
38
+ secrets: _$typebox.TOptional<_$typebox.TObject<{
38
39
  /**
39
40
  * Secret store backend.
40
41
  */
41
- store: _$alepha.TUnsafe<"github">;
42
+ store: _$typebox.TUnsafe<"github">;
42
43
  /**
43
44
  * Pattern for resolving environment names in the store.
44
45
  * Placeholders: {project}, {env}.
45
46
  *
46
47
  * @default "{project}-{env}"
47
48
  */
48
- environmentPattern: _$alepha.TOptional<_$alepha.TString>;
49
+ environmentPattern: _$typebox.TOptional<_$typebox.TString>;
49
50
  }>>;
50
51
  /**
51
52
  * Named environments with their adapter and configuration.
52
53
  */
53
- environments: _$alepha.TRecord<"^.*$", _$alepha.TObject<{
54
- adapter: _$alepha.TUnsafe<"cloudflare" | "vercel">;
54
+ environments: _$typebox.TRecord<"^.*$", _$typebox.TObject<{
55
+ adapter: _$typebox.TUnsafe<"cloudflare" | "vercel">;
55
56
  /**
56
57
  * Custom domain for the deployed worker (e.g. "api.example.com").
57
58
  *
58
59
  * On Cloudflare this is attached as a custom-domain route.
59
60
  * Omit to use the adapter's default `*.workers.dev` / preview URL.
61
+ *
62
+ * Wildcards are supported for multi-tenant SaaS apps:
63
+ * `"*.club.alepha.dev"` routes every subdomain to the worker.
64
+ * Wildcard patterns require `zone` to be set, and the wildcard DNS
65
+ * record must already exist (proxied) in the Cloudflare zone.
66
+ */
67
+ domain: _$typebox.TOptional<_$typebox.TString>;
68
+ /**
69
+ * Cloudflare zone name (e.g. "alepha.dev") that owns `domain`.
70
+ *
71
+ * Required when `domain` contains a wildcard (`*`). Ignored for
72
+ * plain custom domains, which Cloudflare resolves automatically.
60
73
  */
61
- domain: _$alepha.TOptional<_$alepha.TString>;
74
+ zone: _$typebox.TOptional<_$typebox.TString>;
62
75
  /**
63
76
  * Cloudflare data jurisdiction for R2 buckets and D1 databases.
64
77
  * - "eu": data stays within the EU
@@ -66,7 +79,7 @@ declare const platformOptions: _$alepha.Atom<_$alepha.TOptional<_$alepha.TObject
66
79
  *
67
80
  * Omit for the default (global) jurisdiction.
68
81
  */
69
- jurisdiction: _$alepha.TOptional<_$alepha.TUnsafe<"eu" | "fedramp">>;
82
+ jurisdiction: _$typebox.TOptional<_$typebox.TUnsafe<"eu" | "fedramp">>;
70
83
  /**
71
84
  * Cloudflare account ID to deploy into.
72
85
  *
@@ -74,7 +87,7 @@ declare const platformOptions: _$alepha.Atom<_$alepha.TOptional<_$alepha.TObject
74
87
  * token's account when the token is scoped to exactly one.
75
88
  * Required when the token has access to multiple accounts.
76
89
  */
77
- accountId: _$alepha.TOptional<_$alepha.TString>;
90
+ accountId: _$typebox.TOptional<_$typebox.TString>;
78
91
  }>>;
79
92
  }>>, "alepha.cli.platform.options">;
80
93
  /**
@@ -87,6 +100,7 @@ type PlatformOptions = Static<typeof platformOptions.schema>;
87
100
  interface EnvironmentConfig {
88
101
  adapter: "cloudflare" | "vercel";
89
102
  domain?: string;
103
+ zone?: string;
90
104
  vars?: Record<string, string>;
91
105
  jurisdiction?: "eu" | "fedramp";
92
106
  accountId?: string;
@@ -118,146 +132,146 @@ declare class PlatformCacheProvider {
118
132
  }
119
133
  //#endregion
120
134
  //#region ../../src/cli/platform/schemas/cloudflare.d.ts
121
- declare const cloudflareAccountSchema: _$alepha.TObject<{
122
- id: _$alepha.TString;
123
- name: _$alepha.TString;
135
+ declare const cloudflareAccountSchema: _$typebox.TObject<{
136
+ id: _$typebox.TString;
137
+ name: _$typebox.TString;
124
138
  }>;
125
139
  type CloudflareAccount = Static<typeof cloudflareAccountSchema>;
126
- declare const cloudflareD1Schema: _$alepha.TObject<{
127
- uuid: _$alepha.TString;
128
- name: _$alepha.TString;
140
+ declare const cloudflareD1Schema: _$typebox.TObject<{
141
+ uuid: _$typebox.TString;
142
+ name: _$typebox.TString;
129
143
  }>;
130
144
  type CloudflareD1 = Static<typeof cloudflareD1Schema>;
131
- declare const cloudflareKVSchema: _$alepha.TObject<{
132
- id: _$alepha.TString;
133
- title: _$alepha.TString;
145
+ declare const cloudflareKVSchema: _$typebox.TObject<{
146
+ id: _$typebox.TString;
147
+ title: _$typebox.TString;
134
148
  }>;
135
149
  type CloudflareKV = Static<typeof cloudflareKVSchema>;
136
- declare const cloudflareR2Schema: _$alepha.TObject<{
137
- name: _$alepha.TString;
138
- creation_date: _$alepha.TOptional<_$alepha.TString>;
150
+ declare const cloudflareR2Schema: _$typebox.TObject<{
151
+ name: _$typebox.TString;
152
+ creation_date: _$typebox.TOptional<_$typebox.TString>;
139
153
  }>;
140
154
  type CloudflareR2 = Static<typeof cloudflareR2Schema>;
141
- declare const cloudflareR2ListSchema: _$alepha.TObject<{
142
- buckets: _$alepha.TArray<_$alepha.TObject<{
143
- name: _$alepha.TString;
144
- creation_date: _$alepha.TOptional<_$alepha.TString>;
155
+ declare const cloudflareR2ListSchema: _$typebox.TObject<{
156
+ buckets: _$typebox.TArray<_$typebox.TObject<{
157
+ name: _$typebox.TString;
158
+ creation_date: _$typebox.TOptional<_$typebox.TString>;
145
159
  }>>;
146
160
  }>;
147
- declare const cloudflareQueueSchema: _$alepha.TObject<{
148
- queue_id: _$alepha.TString;
149
- queue_name: _$alepha.TString;
161
+ declare const cloudflareQueueSchema: _$typebox.TObject<{
162
+ queue_id: _$typebox.TString;
163
+ queue_name: _$typebox.TString;
150
164
  }>;
151
165
  type CloudflareQueue = Static<typeof cloudflareQueueSchema>;
152
- declare const cloudflareQueueConsumerSchema: _$alepha.TObject<{
153
- consumer_id: _$alepha.TString;
154
- service: _$alepha.TString;
155
- environment: _$alepha.TOptional<_$alepha.TString>;
166
+ declare const cloudflareQueueConsumerSchema: _$typebox.TObject<{
167
+ consumer_id: _$typebox.TString;
168
+ service: _$typebox.TString;
169
+ environment: _$typebox.TOptional<_$typebox.TString>;
156
170
  }>;
157
171
  type CloudflareQueueConsumer = Static<typeof cloudflareQueueConsumerSchema>;
158
- declare const cloudflareHyperdriveOriginSchema: _$alepha.TObject<{
159
- host: _$alepha.TString;
172
+ declare const cloudflareHyperdriveOriginSchema: _$typebox.TObject<{
173
+ host: _$typebox.TString;
160
174
  }>;
161
- declare const cloudflareHyperdriveSchema: _$alepha.TObject<{
162
- id: _$alepha.TString;
163
- name: _$alepha.TString;
164
- origin: _$alepha.TObject<{
165
- host: _$alepha.TString;
175
+ declare const cloudflareHyperdriveSchema: _$typebox.TObject<{
176
+ id: _$typebox.TString;
177
+ name: _$typebox.TString;
178
+ origin: _$typebox.TObject<{
179
+ host: _$typebox.TString;
166
180
  }>;
167
181
  }>;
168
182
  type CloudflareHyperdrive = Static<typeof cloudflareHyperdriveSchema>;
169
- declare const cloudflareWorkerSchema: _$alepha.TObject<{
170
- id: _$alepha.TString;
171
- created_on: _$alepha.TString;
172
- modified_on: _$alepha.TString;
183
+ declare const cloudflareWorkerSchema: _$typebox.TObject<{
184
+ id: _$typebox.TString;
185
+ created_on: _$typebox.TString;
186
+ modified_on: _$typebox.TString;
173
187
  }>;
174
188
  type CloudflareWorker = Static<typeof cloudflareWorkerSchema>;
175
- declare const cloudflareDeploymentVersionSchema: _$alepha.TObject<{
176
- version_id: _$alepha.TString;
177
- percentage: _$alepha.TNumber;
189
+ declare const cloudflareDeploymentVersionSchema: _$typebox.TObject<{
190
+ version_id: _$typebox.TString;
191
+ percentage: _$typebox.TNumber;
178
192
  }>;
179
- declare const cloudflareDeploymentSchema: _$alepha.TObject<{
180
- id: _$alepha.TString;
181
- versions: _$alepha.TArray<_$alepha.TObject<{
182
- version_id: _$alepha.TString;
183
- percentage: _$alepha.TNumber;
193
+ declare const cloudflareDeploymentSchema: _$typebox.TObject<{
194
+ id: _$typebox.TString;
195
+ versions: _$typebox.TArray<_$typebox.TObject<{
196
+ version_id: _$typebox.TString;
197
+ percentage: _$typebox.TNumber;
184
198
  }>>;
185
- created_on: _$alepha.TString;
199
+ created_on: _$typebox.TString;
186
200
  }>;
187
201
  type CloudflareDeployment = Static<typeof cloudflareDeploymentSchema>;
188
- declare const cloudflareDeploymentListSchema: _$alepha.TObject<{
189
- deployments: _$alepha.TArray<_$alepha.TObject<{
190
- id: _$alepha.TString;
191
- versions: _$alepha.TArray<_$alepha.TObject<{
192
- version_id: _$alepha.TString;
193
- percentage: _$alepha.TNumber;
202
+ declare const cloudflareDeploymentListSchema: _$typebox.TObject<{
203
+ deployments: _$typebox.TArray<_$typebox.TObject<{
204
+ id: _$typebox.TString;
205
+ versions: _$typebox.TArray<_$typebox.TObject<{
206
+ version_id: _$typebox.TString;
207
+ percentage: _$typebox.TNumber;
194
208
  }>>;
195
- created_on: _$alepha.TString;
209
+ created_on: _$typebox.TString;
196
210
  }>>;
197
211
  }>;
198
- declare const cloudflareVersionSchema: _$alepha.TObject<{
199
- id: _$alepha.TString;
200
- metadata: _$alepha.TObject<{
201
- created_on: _$alepha.TString;
212
+ declare const cloudflareVersionSchema: _$typebox.TObject<{
213
+ id: _$typebox.TString;
214
+ metadata: _$typebox.TObject<{
215
+ created_on: _$typebox.TString;
202
216
  }>;
203
- annotations: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TString>>;
217
+ annotations: _$typebox.TOptional<_$typebox.TRecord<"^.*$", _$typebox.TString>>;
204
218
  }>;
205
219
  type CloudflareVersion = Static<typeof cloudflareVersionSchema>;
206
- declare const cloudflareVersionListSchema: _$alepha.TObject<{
207
- items: _$alepha.TArray<_$alepha.TObject<{
208
- id: _$alepha.TString;
209
- metadata: _$alepha.TObject<{
210
- created_on: _$alepha.TString;
220
+ declare const cloudflareVersionListSchema: _$typebox.TObject<{
221
+ items: _$typebox.TArray<_$typebox.TObject<{
222
+ id: _$typebox.TString;
223
+ metadata: _$typebox.TObject<{
224
+ created_on: _$typebox.TString;
211
225
  }>;
212
- annotations: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TString>>;
226
+ annotations: _$typebox.TOptional<_$typebox.TRecord<"^.*$", _$typebox.TString>>;
213
227
  }>>;
214
228
  }>;
215
- declare const cloudflareSecretSchema: _$alepha.TObject<{
216
- name: _$alepha.TString;
217
- type: _$alepha.TString;
229
+ declare const cloudflareSecretSchema: _$typebox.TObject<{
230
+ name: _$typebox.TString;
231
+ type: _$typebox.TString;
218
232
  }>;
219
233
  type CloudflareSecret = Static<typeof cloudflareSecretSchema>;
220
- declare const createD1BodySchema: _$alepha.TObject<{
221
- name: _$alepha.TString;
222
- primary_location_hint: _$alepha.TOptional<_$alepha.TString>;
223
- jurisdiction: _$alepha.TOptional<_$alepha.TString>;
234
+ declare const createD1BodySchema: _$typebox.TObject<{
235
+ name: _$typebox.TString;
236
+ primary_location_hint: _$typebox.TOptional<_$typebox.TString>;
237
+ jurisdiction: _$typebox.TOptional<_$typebox.TString>;
224
238
  }>;
225
- declare const createKVBodySchema: _$alepha.TObject<{
226
- title: _$alepha.TString;
239
+ declare const createKVBodySchema: _$typebox.TObject<{
240
+ title: _$typebox.TString;
227
241
  }>;
228
- declare const createR2BodySchema: _$alepha.TObject<{
229
- name: _$alepha.TString;
242
+ declare const createR2BodySchema: _$typebox.TObject<{
243
+ name: _$typebox.TString;
230
244
  }>;
231
- declare const createQueueBodySchema: _$alepha.TObject<{
232
- queue_name: _$alepha.TString;
245
+ declare const createQueueBodySchema: _$typebox.TObject<{
246
+ queue_name: _$typebox.TString;
233
247
  }>;
234
- declare const createHyperdriveOriginSchema: _$alepha.TObject<{
235
- scheme: _$alepha.TString;
236
- host: _$alepha.TString;
237
- port: _$alepha.TNumber;
238
- database: _$alepha.TString;
239
- user: _$alepha.TString;
240
- password: _$alepha.TString;
248
+ declare const createHyperdriveOriginSchema: _$typebox.TObject<{
249
+ scheme: _$typebox.TString;
250
+ host: _$typebox.TString;
251
+ port: _$typebox.TNumber;
252
+ database: _$typebox.TString;
253
+ user: _$typebox.TString;
254
+ password: _$typebox.TString;
241
255
  }>;
242
- declare const createHyperdriveBodySchema: _$alepha.TObject<{
243
- name: _$alepha.TString;
244
- origin: _$alepha.TObject<{
245
- scheme: _$alepha.TString;
246
- host: _$alepha.TString;
247
- port: _$alepha.TNumber;
248
- database: _$alepha.TString;
249
- user: _$alepha.TString;
250
- password: _$alepha.TString;
256
+ declare const createHyperdriveBodySchema: _$typebox.TObject<{
257
+ name: _$typebox.TString;
258
+ origin: _$typebox.TObject<{
259
+ scheme: _$typebox.TString;
260
+ host: _$typebox.TString;
261
+ port: _$typebox.TNumber;
262
+ database: _$typebox.TString;
263
+ user: _$typebox.TString;
264
+ password: _$typebox.TString;
251
265
  }>;
252
266
  }>;
253
- declare const putSecretBodySchema: _$alepha.TObject<{
254
- name: _$alepha.TString;
255
- text: _$alepha.TString;
256
- type: _$alepha.TString;
267
+ declare const putSecretBodySchema: _$typebox.TObject<{
268
+ name: _$typebox.TString;
269
+ text: _$typebox.TString;
270
+ type: _$typebox.TString;
257
271
  }>;
258
- declare const cloudflareApiErrorSchema: _$alepha.TObject<{
259
- code: _$alepha.TNumber;
260
- message: _$alepha.TString;
272
+ declare const cloudflareApiErrorSchema: _$typebox.TObject<{
273
+ code: _$typebox.TNumber;
274
+ message: _$typebox.TString;
261
275
  }>;
262
276
  type CloudflareApiError = Static<typeof cloudflareApiErrorSchema>;
263
277
  //#endregion
@@ -368,6 +382,38 @@ declare class CloudflareApi {
368
382
  listVersions(scriptName: string): Promise<CloudflareVersion[]>;
369
383
  listSecrets(scriptName: string): Promise<CloudflareSecret[]>;
370
384
  putSecret(scriptName: string, name: string, value: string): Promise<void>;
385
+ /**
386
+ * Fetch the current worker bindings via the script-settings endpoint.
387
+ * Used to merge new secrets into the existing binding set in one PATCH
388
+ * (avoids the per-secret `putSecret` calls, each of which creates a
389
+ * Cloudflare deployment — pushing 7 secrets meant 7 deployment rows).
390
+ *
391
+ * Secret bindings come back with `name` + `type` but no `text` (they're
392
+ * write-only on Cloudflare's side); to preserve them across a PATCH we
393
+ * forward each one as `{ type, name }` and Cloudflare keeps the stored
394
+ * value.
395
+ */
396
+ getWorkerSettings(scriptName: string): Promise<{
397
+ bindings: Array<{
398
+ type: string;
399
+ name: string;
400
+ text?: string;
401
+ }>;
402
+ }>;
403
+ /**
404
+ * Replace the worker's binding set in one call (= one Cloudflare
405
+ * deployment, regardless of how many secrets are being updated).
406
+ *
407
+ * The endpoint expects multipart FormData with a `settings` field whose
408
+ * value is a JSON-encoded `{ bindings: [...] }` — the `fetch` helper
409
+ * above is JSON-only, so this one bypasses it and calls `globalThis.fetch`
410
+ * directly. Mirrors what `wrangler secret bulk` does internally.
411
+ */
412
+ patchWorkerBindings(scriptName: string, bindings: Array<{
413
+ type: string;
414
+ name: string;
415
+ text?: string;
416
+ }>): Promise<void>;
371
417
  protected fetch<T = unknown>(path: string, options?: {
372
418
  method?: string;
373
419
  body?: unknown;
@@ -603,6 +649,11 @@ declare class CloudflareAdapter extends PlatformAdapter {
603
649
  */
604
650
  static readonly EXCLUDED_SECRET_KEYS: Set<string>;
605
651
  secrets(ctx: PlatformContext, run: RunnerMethod): Promise<void>;
652
+ /**
653
+ * Plain-text binding used to fingerprint the deployed secret set so the
654
+ * next `up` can skip the PATCH when nothing has changed.
655
+ */
656
+ static readonly SECRETS_HASH_BINDING = "ALEPHA_SECRETS_HASH";
606
657
  provision(ctx: PlatformContext, run: RunnerMethod): Promise<void>;
607
658
  migrate(ctx: PlatformContext, run: RunnerMethod): Promise<void>;
608
659
  protected migrateD1(ctx: PlatformContext, run: RunnerMethod): Promise<void>;
@@ -625,40 +676,40 @@ declare class CloudflareAdapter extends PlatformAdapter {
625
676
  }
626
677
  //#endregion
627
678
  //#region ../../src/cli/platform/schemas/vercel.d.ts
628
- declare const vercelProjectSchema: _$alepha.TObject<{
629
- id: _$alepha.TString;
630
- name: _$alepha.TString;
631
- accountId: _$alepha.TString;
679
+ declare const vercelProjectSchema: _$typebox.TObject<{
680
+ id: _$typebox.TString;
681
+ name: _$typebox.TString;
682
+ accountId: _$typebox.TString;
632
683
  }>;
633
684
  type VercelProject = Static<typeof vercelProjectSchema>;
634
- declare const createProjectBodySchema: _$alepha.TObject<{
635
- name: _$alepha.TString;
636
- framework: _$alepha.TOptional<_$alepha.TNull>;
685
+ declare const createProjectBodySchema: _$typebox.TObject<{
686
+ name: _$typebox.TString;
687
+ framework: _$typebox.TOptional<_$typebox.TNull>;
637
688
  }>;
638
- declare const vercelDeploymentSchema: _$alepha.TObject<{
639
- uid: _$alepha.TString;
640
- name: _$alepha.TString;
641
- url: _$alepha.TString;
642
- state: _$alepha.TOptional<_$alepha.TString>;
643
- readyState: _$alepha.TOptional<_$alepha.TString>;
644
- created: _$alepha.TOptional<_$alepha.TNumber>;
645
- target: _$alepha.TOptional<_$alepha.TString>;
646
- alias: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
689
+ declare const vercelDeploymentSchema: _$typebox.TObject<{
690
+ uid: _$typebox.TString;
691
+ name: _$typebox.TString;
692
+ url: _$typebox.TString;
693
+ state: _$typebox.TOptional<_$typebox.TString>;
694
+ readyState: _$typebox.TOptional<_$typebox.TString>;
695
+ created: _$typebox.TOptional<_$typebox.TNumber>;
696
+ target: _$typebox.TOptional<_$typebox.TString>;
697
+ alias: _$typebox.TOptional<_$typebox.TArray<_$typebox.TString>>;
647
698
  }>;
648
699
  type VercelDeployment = Static<typeof vercelDeploymentSchema>;
649
- declare const vercelEnvVarSchema: _$alepha.TObject<{
650
- id: _$alepha.TString;
651
- key: _$alepha.TString;
652
- value: _$alepha.TOptional<_$alepha.TString>;
653
- type: _$alepha.TString;
654
- target: _$alepha.TArray<_$alepha.TString>;
700
+ declare const vercelEnvVarSchema: _$typebox.TObject<{
701
+ id: _$typebox.TString;
702
+ key: _$typebox.TString;
703
+ value: _$typebox.TOptional<_$typebox.TString>;
704
+ type: _$typebox.TString;
705
+ target: _$typebox.TArray<_$typebox.TString>;
655
706
  }>;
656
707
  type VercelEnvVar = Static<typeof vercelEnvVarSchema>;
657
- declare const createEnvVarBodySchema: _$alepha.TObject<{
658
- key: _$alepha.TString;
659
- value: _$alepha.TString;
660
- type: _$alepha.TString;
661
- target: _$alepha.TArray<_$alepha.TString>;
708
+ declare const createEnvVarBodySchema: _$typebox.TObject<{
709
+ key: _$typebox.TString;
710
+ value: _$typebox.TString;
711
+ type: _$typebox.TString;
712
+ target: _$typebox.TArray<_$typebox.TString>;
662
713
  }>;
663
714
  //#endregion
664
715
  //#region ../../src/cli/platform/services/VercelCli.d.ts
@@ -819,6 +870,7 @@ declare class PlatformInspector {
819
870
  } | undefined;
820
871
  environments: Record<string, {
821
872
  domain?: string | undefined;
873
+ zone?: string | undefined;
822
874
  jurisdiction?: "eu" | "fedramp" | undefined;
823
875
  accountId?: string | undefined;
824
876
  adapter: "cloudflare" | "vercel";
@@ -1014,6 +1066,7 @@ declare class SecretsCommand {
1014
1066
  } | undefined;
1015
1067
  environments: Record<string, {
1016
1068
  domain?: string | undefined;
1069
+ zone?: string | undefined;
1017
1070
  jurisdiction?: "eu" | "fedramp" | undefined;
1018
1071
  accountId?: string | undefined;
1019
1072
  adapter: "cloudflare" | "vercel";
@@ -1025,21 +1078,21 @@ declare class SecretsCommand {
1025
1078
  protected readonly githubStore: GitHubSecretStore;
1026
1079
  protected readonly filter: SecretFilterService;
1027
1080
  protected readonly color: ConsoleColorProvider;
1028
- protected readonly envFlags: _$alepha.TObject<{
1029
- env: _$alepha.TOptional<_$alepha.TString>;
1081
+ protected readonly envFlags: _$typebox.TObject<{
1082
+ env: _$typebox.TOptional<_$typebox.TString>;
1030
1083
  }>;
1031
- protected readonly list: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
1032
- env: _$alepha.TOptional<_$alepha.TString>;
1033
- format: _$alepha.TOptional<_$alepha.TString>;
1034
- }>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1035
- protected readonly diff: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
1036
- env: _$alepha.TOptional<_$alepha.TString>;
1037
- }>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1038
- protected readonly apply: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
1039
- env: _$alepha.TOptional<_$alepha.TString>;
1040
- "dry-run": _$alepha.TOptional<_$alepha.TBoolean>;
1041
- }>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1042
- readonly secrets: _$alepha_command0.CommandPrimitive<_$alepha.TObject<_$alepha.TProperties>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1084
+ protected readonly list: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
1085
+ env: _$typebox.TOptional<_$typebox.TString>;
1086
+ format: _$typebox.TOptional<_$typebox.TString>;
1087
+ }>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1088
+ protected readonly diff: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
1089
+ env: _$typebox.TOptional<_$typebox.TString>;
1090
+ }>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1091
+ protected readonly apply: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
1092
+ env: _$typebox.TOptional<_$typebox.TString>;
1093
+ "dry-run": _$typebox.TOptional<_$typebox.TBoolean>;
1094
+ }>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1095
+ readonly secrets: _$alepha_command0.CommandPrimitive<_$typebox.TObject<_$typebox.TProperties>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1043
1096
  resolveStore(): SecretStoreProvider;
1044
1097
  protected resolveEnvironmentName(project: string, env: string): string;
1045
1098
  }
@@ -1057,6 +1110,7 @@ declare class PlatformCommand {
1057
1110
  } | undefined;
1058
1111
  environments: Record<string, {
1059
1112
  domain?: string | undefined;
1113
+ zone?: string | undefined;
1060
1114
  jurisdiction?: "eu" | "fedramp" | undefined;
1061
1115
  accountId?: string | undefined;
1062
1116
  adapter: "cloudflare" | "vercel";
@@ -1073,55 +1127,55 @@ declare class PlatformCommand {
1073
1127
  /**
1074
1128
  * Common flags for env/app targeting.
1075
1129
  */
1076
- protected readonly envFlags: _$alepha.TObject<{
1077
- env: _$alepha.TOptional<_$alepha.TString>;
1078
- app: _$alepha.TOptional<_$alepha.TString>;
1079
- verbose: _$alepha.TOptional<_$alepha.TBoolean>;
1080
- json: _$alepha.TOptional<_$alepha.TBoolean>;
1130
+ protected readonly envFlags: _$typebox.TObject<{
1131
+ env: _$typebox.TOptional<_$typebox.TString>;
1132
+ app: _$typebox.TOptional<_$typebox.TString>;
1133
+ verbose: _$typebox.TOptional<_$typebox.TBoolean>;
1134
+ json: _$typebox.TOptional<_$typebox.TBoolean>;
1081
1135
  }>;
1082
- protected readonly plan: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
1083
- env: _$alepha.TOptional<_$alepha.TString>;
1084
- app: _$alepha.TOptional<_$alepha.TString>;
1085
- verbose: _$alepha.TOptional<_$alepha.TBoolean>;
1086
- json: _$alepha.TOptional<_$alepha.TBoolean>;
1087
- }>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1088
- protected readonly up: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
1089
- env: _$alepha.TOptional<_$alepha.TString>;
1090
- app: _$alepha.TOptional<_$alepha.TString>;
1091
- verbose: _$alepha.TOptional<_$alepha.TBoolean>;
1092
- json: _$alepha.TOptional<_$alepha.TBoolean>;
1093
- }>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1094
- protected readonly down: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
1095
- env: _$alepha.TOptional<_$alepha.TString>;
1096
- app: _$alepha.TOptional<_$alepha.TString>;
1097
- verbose: _$alepha.TOptional<_$alepha.TBoolean>;
1098
- json: _$alepha.TOptional<_$alepha.TBoolean>;
1099
- }>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1100
- protected readonly status: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
1101
- env: _$alepha.TOptional<_$alepha.TString>;
1102
- app: _$alepha.TOptional<_$alepha.TString>;
1103
- verbose: _$alepha.TOptional<_$alepha.TBoolean>;
1104
- json: _$alepha.TOptional<_$alepha.TBoolean>;
1105
- }>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1106
- protected readonly build: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
1107
- env: _$alepha.TOptional<_$alepha.TString>;
1108
- app: _$alepha.TOptional<_$alepha.TString>;
1109
- verbose: _$alepha.TOptional<_$alepha.TBoolean>;
1110
- json: _$alepha.TOptional<_$alepha.TBoolean>;
1111
- }>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1112
- protected readonly deploy: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
1113
- env: _$alepha.TOptional<_$alepha.TString>;
1114
- app: _$alepha.TOptional<_$alepha.TString>;
1115
- verbose: _$alepha.TOptional<_$alepha.TBoolean>;
1116
- json: _$alepha.TOptional<_$alepha.TBoolean>;
1117
- }>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1118
- protected readonly migrate: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
1119
- env: _$alepha.TOptional<_$alepha.TString>;
1120
- app: _$alepha.TOptional<_$alepha.TString>;
1121
- verbose: _$alepha.TOptional<_$alepha.TBoolean>;
1122
- json: _$alepha.TOptional<_$alepha.TBoolean>;
1123
- }>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1124
- readonly platform: _$alepha_command0.CommandPrimitive<_$alepha.TObject<_$alepha.TProperties>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
1136
+ protected readonly plan: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
1137
+ env: _$typebox.TOptional<_$typebox.TString>;
1138
+ app: _$typebox.TOptional<_$typebox.TString>;
1139
+ verbose: _$typebox.TOptional<_$typebox.TBoolean>;
1140
+ json: _$typebox.TOptional<_$typebox.TBoolean>;
1141
+ }>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1142
+ protected readonly up: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
1143
+ env: _$typebox.TOptional<_$typebox.TString>;
1144
+ app: _$typebox.TOptional<_$typebox.TString>;
1145
+ verbose: _$typebox.TOptional<_$typebox.TBoolean>;
1146
+ json: _$typebox.TOptional<_$typebox.TBoolean>;
1147
+ }>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1148
+ protected readonly down: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
1149
+ env: _$typebox.TOptional<_$typebox.TString>;
1150
+ app: _$typebox.TOptional<_$typebox.TString>;
1151
+ verbose: _$typebox.TOptional<_$typebox.TBoolean>;
1152
+ json: _$typebox.TOptional<_$typebox.TBoolean>;
1153
+ }>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1154
+ protected readonly status: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
1155
+ env: _$typebox.TOptional<_$typebox.TString>;
1156
+ app: _$typebox.TOptional<_$typebox.TString>;
1157
+ verbose: _$typebox.TOptional<_$typebox.TBoolean>;
1158
+ json: _$typebox.TOptional<_$typebox.TBoolean>;
1159
+ }>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1160
+ protected readonly build: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
1161
+ env: _$typebox.TOptional<_$typebox.TString>;
1162
+ app: _$typebox.TOptional<_$typebox.TString>;
1163
+ verbose: _$typebox.TOptional<_$typebox.TBoolean>;
1164
+ json: _$typebox.TOptional<_$typebox.TBoolean>;
1165
+ }>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1166
+ protected readonly deploy: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
1167
+ env: _$typebox.TOptional<_$typebox.TString>;
1168
+ app: _$typebox.TOptional<_$typebox.TString>;
1169
+ verbose: _$typebox.TOptional<_$typebox.TBoolean>;
1170
+ json: _$typebox.TOptional<_$typebox.TBoolean>;
1171
+ }>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1172
+ protected readonly migrate: _$alepha_command0.CommandPrimitive<_$typebox.TObject<{
1173
+ env: _$typebox.TOptional<_$typebox.TString>;
1174
+ app: _$typebox.TOptional<_$typebox.TString>;
1175
+ verbose: _$typebox.TOptional<_$typebox.TBoolean>;
1176
+ json: _$typebox.TOptional<_$typebox.TBoolean>;
1177
+ }>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1178
+ readonly platform: _$alepha_command0.CommandPrimitive<_$typebox.TObject<_$typebox.TProperties>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
1125
1179
  /**
1126
1180
  * Resolve app definitions.
1127
1181
  *
@@ -1235,118 +1289,120 @@ declare class MemorySecretStore implements SecretStoreProvider {
1235
1289
  }
1236
1290
  //#endregion
1237
1291
  //#region ../../src/cli/platform/schemas/platform.d.ts
1238
- declare const platformStatusWorkerSchema: _$alepha.TObject<{
1239
- name: _$alepha.TString;
1240
- exists: _$alepha.TBoolean;
1241
- id: _$alepha.TOptional<_$alepha.TString>;
1242
- detail: _$alepha.TOptional<_$alepha.TString>;
1243
- version: _$alepha.TOptional<_$alepha.TString>;
1244
- tag: _$alepha.TOptional<_$alepha.TString>;
1245
- createdAt: _$alepha.TOptional<_$alepha.TString>;
1292
+ declare const platformStatusWorkerSchema: _$typebox.TObject<{
1293
+ name: _$typebox.TString;
1294
+ exists: _$typebox.TBoolean;
1295
+ id: _$typebox.TOptional<_$typebox.TString>;
1296
+ detail: _$typebox.TOptional<_$typebox.TString>;
1297
+ version: _$typebox.TOptional<_$typebox.TString>;
1298
+ tag: _$typebox.TOptional<_$typebox.TString>;
1299
+ createdAt: _$typebox.TOptional<_$typebox.TString>;
1246
1300
  }>;
1247
- declare const platformStatusResourceSchema: _$alepha.TObject<{
1248
- name: _$alepha.TString;
1249
- exists: _$alepha.TBoolean;
1250
- id: _$alepha.TOptional<_$alepha.TString>;
1251
- detail: _$alepha.TOptional<_$alepha.TString>;
1301
+ declare const platformStatusResourceSchema: _$typebox.TObject<{
1302
+ name: _$typebox.TString;
1303
+ exists: _$typebox.TBoolean;
1304
+ id: _$typebox.TOptional<_$typebox.TString>;
1305
+ detail: _$typebox.TOptional<_$typebox.TString>;
1252
1306
  }>;
1253
- declare const platformStatusSecretSchema: _$alepha.TObject<{
1254
- name: _$alepha.TString;
1255
- deployed: _$alepha.TBoolean;
1307
+ declare const platformStatusSecretSchema: _$typebox.TObject<{
1308
+ name: _$typebox.TString;
1309
+ deployed: _$typebox.TBoolean;
1256
1310
  }>;
1257
- declare const platformStatusSchema: _$alepha.TObject<{
1258
- project: _$alepha.TString;
1259
- env: _$alepha.TString;
1260
- adapter: _$alepha.TString;
1261
- workers: _$alepha.TArray<_$alepha.TObject<{
1262
- name: _$alepha.TString;
1263
- exists: _$alepha.TBoolean;
1264
- id: _$alepha.TOptional<_$alepha.TString>;
1265
- detail: _$alepha.TOptional<_$alepha.TString>;
1266
- version: _$alepha.TOptional<_$alepha.TString>;
1267
- tag: _$alepha.TOptional<_$alepha.TString>;
1268
- createdAt: _$alepha.TOptional<_$alepha.TString>;
1311
+ declare const platformStatusSchema: _$typebox.TObject<{
1312
+ project: _$typebox.TString;
1313
+ env: _$typebox.TString;
1314
+ adapter: _$typebox.TString;
1315
+ workers: _$typebox.TArray<_$typebox.TObject<{
1316
+ name: _$typebox.TString;
1317
+ exists: _$typebox.TBoolean;
1318
+ id: _$typebox.TOptional<_$typebox.TString>;
1319
+ detail: _$typebox.TOptional<_$typebox.TString>;
1320
+ version: _$typebox.TOptional<_$typebox.TString>;
1321
+ tag: _$typebox.TOptional<_$typebox.TString>;
1322
+ createdAt: _$typebox.TOptional<_$typebox.TString>;
1269
1323
  }>>;
1270
- databases: _$alepha.TArray<_$alepha.TObject<{
1271
- name: _$alepha.TString;
1272
- exists: _$alepha.TBoolean;
1273
- id: _$alepha.TOptional<_$alepha.TString>;
1274
- detail: _$alepha.TOptional<_$alepha.TString>;
1324
+ databases: _$typebox.TArray<_$typebox.TObject<{
1325
+ name: _$typebox.TString;
1326
+ exists: _$typebox.TBoolean;
1327
+ id: _$typebox.TOptional<_$typebox.TString>;
1328
+ detail: _$typebox.TOptional<_$typebox.TString>;
1275
1329
  }>>;
1276
- buckets: _$alepha.TArray<_$alepha.TObject<{
1277
- name: _$alepha.TString;
1278
- exists: _$alepha.TBoolean;
1279
- id: _$alepha.TOptional<_$alepha.TString>;
1280
- detail: _$alepha.TOptional<_$alepha.TString>;
1330
+ buckets: _$typebox.TArray<_$typebox.TObject<{
1331
+ name: _$typebox.TString;
1332
+ exists: _$typebox.TBoolean;
1333
+ id: _$typebox.TOptional<_$typebox.TString>;
1334
+ detail: _$typebox.TOptional<_$typebox.TString>;
1281
1335
  }>>;
1282
- kvNamespaces: _$alepha.TArray<_$alepha.TObject<{
1283
- name: _$alepha.TString;
1284
- exists: _$alepha.TBoolean;
1285
- id: _$alepha.TOptional<_$alepha.TString>;
1286
- detail: _$alepha.TOptional<_$alepha.TString>;
1336
+ kvNamespaces: _$typebox.TArray<_$typebox.TObject<{
1337
+ name: _$typebox.TString;
1338
+ exists: _$typebox.TBoolean;
1339
+ id: _$typebox.TOptional<_$typebox.TString>;
1340
+ detail: _$typebox.TOptional<_$typebox.TString>;
1287
1341
  }>>;
1288
- queues: _$alepha.TArray<_$alepha.TObject<{
1289
- name: _$alepha.TString;
1290
- exists: _$alepha.TBoolean;
1291
- id: _$alepha.TOptional<_$alepha.TString>;
1292
- detail: _$alepha.TOptional<_$alepha.TString>;
1342
+ queues: _$typebox.TArray<_$typebox.TObject<{
1343
+ name: _$typebox.TString;
1344
+ exists: _$typebox.TBoolean;
1345
+ id: _$typebox.TOptional<_$typebox.TString>;
1346
+ detail: _$typebox.TOptional<_$typebox.TString>;
1293
1347
  }>>;
1294
- secrets: _$alepha.TArray<_$alepha.TObject<{
1295
- name: _$alepha.TString;
1296
- deployed: _$alepha.TBoolean;
1348
+ secrets: _$typebox.TArray<_$typebox.TObject<{
1349
+ name: _$typebox.TString;
1350
+ deployed: _$typebox.TBoolean;
1297
1351
  }>>;
1298
1352
  }>;
1299
1353
  type PlatformStatusOutput = Static<typeof platformStatusSchema>;
1300
- declare const platformPlanAppResourcesSchema: _$alepha.TObject<{
1301
- hasDatabase: _$alepha.TBoolean;
1302
- hasBucket: _$alepha.TBoolean;
1303
- hasKV: _$alepha.TBoolean;
1304
- hasQueue: _$alepha.TBoolean;
1305
- hasCron: _$alepha.TBoolean;
1354
+ declare const platformPlanAppResourcesSchema: _$typebox.TObject<{
1355
+ hasDatabase: _$typebox.TBoolean;
1356
+ hasBucket: _$typebox.TBoolean;
1357
+ hasKV: _$typebox.TBoolean;
1358
+ hasQueue: _$typebox.TBoolean;
1359
+ hasCron: _$typebox.TBoolean;
1306
1360
  }>;
1307
- declare const platformPlanAppSchema: _$alepha.TObject<{
1308
- name: _$alepha.TString;
1309
- path: _$alepha.TString;
1310
- resources: _$alepha.TObject<{
1311
- hasDatabase: _$alepha.TBoolean;
1312
- hasBucket: _$alepha.TBoolean;
1313
- hasKV: _$alepha.TBoolean;
1314
- hasQueue: _$alepha.TBoolean;
1315
- hasCron: _$alepha.TBoolean;
1361
+ declare const platformPlanAppSchema: _$typebox.TObject<{
1362
+ name: _$typebox.TString;
1363
+ path: _$typebox.TString;
1364
+ resources: _$typebox.TObject<{
1365
+ hasDatabase: _$typebox.TBoolean;
1366
+ hasBucket: _$typebox.TBoolean;
1367
+ hasKV: _$typebox.TBoolean;
1368
+ hasQueue: _$typebox.TBoolean;
1369
+ hasCron: _$typebox.TBoolean;
1316
1370
  }>;
1317
1371
  }>;
1318
- declare const platformPlanEnvironmentSchema: _$alepha.TObject<{
1319
- adapter: _$alepha.TString;
1320
- domain: _$alepha.TOptional<_$alepha.TString>;
1372
+ declare const platformPlanEnvironmentSchema: _$typebox.TObject<{
1373
+ adapter: _$typebox.TString;
1374
+ domain: _$typebox.TOptional<_$typebox.TString>;
1375
+ zone: _$typebox.TOptional<_$typebox.TString>;
1321
1376
  }>;
1322
- declare const platformPlanResourceSchema: _$alepha.TObject<{
1323
- label: _$alepha.TString;
1324
- value: _$alepha.TString;
1377
+ declare const platformPlanResourceSchema: _$typebox.TObject<{
1378
+ label: _$typebox.TString;
1379
+ value: _$typebox.TString;
1325
1380
  }>;
1326
- declare const platformPlanSchema: _$alepha.TObject<{
1327
- project: _$alepha.TString;
1328
- env: _$alepha.TString;
1329
- mode: _$alepha.TUnsafe<"monorepo" | "standalone">;
1330
- apps: _$alepha.TArray<_$alepha.TObject<{
1331
- name: _$alepha.TString;
1332
- path: _$alepha.TString;
1333
- resources: _$alepha.TObject<{
1334
- hasDatabase: _$alepha.TBoolean;
1335
- hasBucket: _$alepha.TBoolean;
1336
- hasKV: _$alepha.TBoolean;
1337
- hasQueue: _$alepha.TBoolean;
1338
- hasCron: _$alepha.TBoolean;
1381
+ declare const platformPlanSchema: _$typebox.TObject<{
1382
+ project: _$typebox.TString;
1383
+ env: _$typebox.TString;
1384
+ mode: _$typebox.TUnsafe<"monorepo" | "standalone">;
1385
+ apps: _$typebox.TArray<_$typebox.TObject<{
1386
+ name: _$typebox.TString;
1387
+ path: _$typebox.TString;
1388
+ resources: _$typebox.TObject<{
1389
+ hasDatabase: _$typebox.TBoolean;
1390
+ hasBucket: _$typebox.TBoolean;
1391
+ hasKV: _$typebox.TBoolean;
1392
+ hasQueue: _$typebox.TBoolean;
1393
+ hasCron: _$typebox.TBoolean;
1339
1394
  }>;
1340
1395
  }>>;
1341
- environments: _$alepha.TRecord<"^.*$", _$alepha.TObject<{
1342
- adapter: _$alepha.TString;
1343
- domain: _$alepha.TOptional<_$alepha.TString>;
1396
+ environments: _$typebox.TRecord<"^.*$", _$typebox.TObject<{
1397
+ adapter: _$typebox.TString;
1398
+ domain: _$typebox.TOptional<_$typebox.TString>;
1399
+ zone: _$typebox.TOptional<_$typebox.TString>;
1344
1400
  }>>;
1345
- resources: _$alepha.TArray<_$alepha.TObject<{
1346
- label: _$alepha.TString;
1347
- value: _$alepha.TString;
1401
+ resources: _$typebox.TArray<_$typebox.TObject<{
1402
+ label: _$typebox.TString;
1403
+ value: _$typebox.TString;
1348
1404
  }>>;
1349
- secretCount: _$alepha.TNumber;
1405
+ secretCount: _$typebox.TNumber;
1350
1406
  }>;
1351
1407
  type PlatformPlanOutput = Static<typeof platformPlanSchema>;
1352
1408
  //#endregion