@spacefast/common 0.0.24 → 0.2.1

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 (320) hide show
  1. package/brand-assets/LICENSE-Haskoy.txt +93 -0
  2. package/brand-assets/haskoy-latin-variable.woff2 +0 -0
  3. package/brand-assets/spacefast-favicon.svg +4 -4
  4. package/brand-assets/spacefast-sf-full-bleed.svg +3 -3
  5. package/brand-assets/spacefast-wordmark.svg +2 -4
  6. package/dist/agents/connect-targets.d.ts +6 -146
  7. package/dist/agents/connect-targets.js +63 -295
  8. package/dist/agents/private-key-oauth.d.ts +31 -2
  9. package/dist/agents/private-key-oauth.js +166 -92
  10. package/dist/agents/registry/core.d.ts +292 -0
  11. package/dist/agents/registry/core.js +1388 -0
  12. package/dist/agents/registry/deeplink-probes.d.ts +23 -0
  13. package/dist/agents/registry/deeplink-probes.js +18 -0
  14. package/dist/agents/registry/node.d.ts +56 -0
  15. package/dist/agents/registry/node.js +339 -0
  16. package/dist/brand-assets-build.js +3 -6
  17. package/dist/brand-assets.d.ts +5 -15
  18. package/dist/brand-assets.js +12 -14
  19. package/dist/brand.d.ts +17 -0
  20. package/dist/brand.js +24 -4
  21. package/dist/config/domains.d.ts +79 -12
  22. package/dist/config/domains.js +128 -29
  23. package/dist/config/index.js +1 -2
  24. package/dist/contracts/abuse.js +9 -24
  25. package/dist/contracts/access-profiles.d.ts +86 -0
  26. package/dist/contracts/access-profiles.js +89 -0
  27. package/dist/contracts/access.d.ts +24 -30
  28. package/dist/contracts/access.js +33 -64
  29. package/dist/contracts/activity.d.ts +18 -1
  30. package/dist/contracts/activity.js +72 -26
  31. package/dist/contracts/analytics.js +8 -10
  32. package/dist/contracts/api-keys.d.ts +77 -52
  33. package/dist/contracts/api-keys.js +44 -24
  34. package/dist/contracts/application-journal.d.ts +216 -0
  35. package/dist/contracts/application-journal.js +167 -0
  36. package/dist/contracts/auth.d.ts +90 -17
  37. package/dist/contracts/auth.js +86 -17
  38. package/dist/contracts/beta.d.ts +9 -4
  39. package/dist/contracts/beta.js +20 -16
  40. package/dist/contracts/billing.d.ts +2 -1
  41. package/dist/contracts/billing.js +37 -11
  42. package/dist/contracts/bootstrap.d.ts +791 -0
  43. package/dist/contracts/bootstrap.js +51 -0
  44. package/dist/contracts/builds.d.ts +209 -18
  45. package/dist/contracts/builds.js +93 -27
  46. package/dist/contracts/channels.d.ts +43 -0
  47. package/dist/contracts/channels.js +25 -9
  48. package/dist/contracts/cli.d.ts +7 -0
  49. package/dist/contracts/cli.js +6 -0
  50. package/dist/contracts/collab-public.d.ts +1 -1
  51. package/dist/contracts/collab-public.js +5 -8
  52. package/dist/contracts/comments.d.ts +44 -34
  53. package/dist/contracts/comments.js +107 -77
  54. package/dist/contracts/commerce.d.ts +165 -0
  55. package/dist/contracts/commerce.js +146 -0
  56. package/dist/contracts/common.d.ts +3 -3
  57. package/dist/contracts/common.js +20 -31
  58. package/dist/contracts/content-contract-verification.d.ts +521 -0
  59. package/dist/contracts/content-contract-verification.js +320 -0
  60. package/dist/contracts/content-platform-fixture.d.ts +1278 -0
  61. package/dist/contracts/content-platform-fixture.js +44 -0
  62. package/dist/contracts/content-program.d.ts +994 -0
  63. package/dist/contracts/content-program.js +658 -0
  64. package/dist/contracts/content-sync.d.ts +290 -0
  65. package/dist/contracts/content-sync.js +167 -0
  66. package/dist/contracts/content.d.ts +432 -0
  67. package/dist/contracts/content.js +303 -0
  68. package/dist/contracts/continuation.d.ts +17 -1
  69. package/dist/contracts/continuation.js +23 -23
  70. package/dist/contracts/countries.js +3 -4
  71. package/dist/contracts/crons.d.ts +52 -0
  72. package/dist/contracts/crons.js +60 -0
  73. package/dist/contracts/dashboard-prefs.d.ts +56 -0
  74. package/dist/contracts/dashboard-prefs.js +51 -0
  75. package/dist/contracts/device-auth.d.ts +234 -37
  76. package/dist/contracts/device-auth.js +267 -53
  77. package/dist/contracts/docs.d.ts +1 -5
  78. package/dist/contracts/docs.js +7 -15
  79. package/dist/contracts/domains.d.ts +501 -93
  80. package/dist/contracts/domains.js +193 -55
  81. package/dist/contracts/email-preferences.d.ts +3 -3
  82. package/dist/contracts/email-preferences.js +6 -7
  83. package/dist/contracts/enums.d.ts +27 -26
  84. package/dist/contracts/enums.js +68 -61
  85. package/dist/contracts/error-code-meta.d.ts +283 -7
  86. package/dist/contracts/error-code-meta.js +97 -5
  87. package/dist/contracts/error-codes.d.ts +5 -5
  88. package/dist/contracts/error-codes.js +82 -17
  89. package/dist/contracts/events.d.ts +100 -20
  90. package/dist/contracts/events.js +107 -20
  91. package/dist/contracts/execution.d.ts +48 -64
  92. package/dist/contracts/execution.js +52 -62
  93. package/dist/contracts/feature-lifecycle.d.ts +73 -27
  94. package/dist/contracts/feature-lifecycle.js +86 -26
  95. package/dist/contracts/features.d.ts +68 -19
  96. package/dist/contracts/features.js +42 -41
  97. package/dist/contracts/fixtures/content-platform-v1.json +1108 -0
  98. package/dist/contracts/frame-session.d.ts +192 -0
  99. package/dist/contracts/frame-session.js +164 -0
  100. package/dist/contracts/functions.d.ts +338 -164
  101. package/dist/contracts/functions.js +367 -198
  102. package/dist/contracts/git.d.ts +27 -33
  103. package/dist/contracts/git.js +10 -11
  104. package/dist/contracts/grant-copy.d.ts +43 -0
  105. package/dist/contracts/grant-copy.js +44 -0
  106. package/dist/contracts/grants.d.ts +62 -54
  107. package/dist/contracts/grants.js +124 -23
  108. package/dist/contracts/ids.d.ts +4 -1
  109. package/dist/contracts/ids.js +6 -3
  110. package/dist/contracts/internal.d.ts +8 -18
  111. package/dist/contracts/internal.js +13 -14
  112. package/dist/contracts/mcp.d.ts +28 -0
  113. package/dist/contracts/mcp.js +28 -0
  114. package/dist/contracts/me.d.ts +6 -1
  115. package/dist/contracts/me.js +12 -6
  116. package/dist/contracts/notifications.d.ts +27 -29
  117. package/dist/contracts/notifications.js +9 -4
  118. package/dist/contracts/oauth-resources.d.ts +112 -10
  119. package/dist/contracts/oauth-resources.js +116 -11
  120. package/dist/contracts/oauth-scope-actions.d.ts +90 -0
  121. package/dist/contracts/oauth-scope-actions.js +126 -0
  122. package/dist/contracts/operations.d.ts +27 -4
  123. package/dist/contracts/operations.js +12 -6
  124. package/dist/contracts/pages.d.ts +31 -7
  125. package/dist/contracts/pages.js +22 -5
  126. package/dist/contracts/partner-notifications.d.ts +3 -0
  127. package/dist/contracts/partner-notifications.js +65 -0
  128. package/dist/contracts/{platform.d.ts → partner.d.ts} +29 -42
  129. package/dist/contracts/{platform.js → partner.js} +27 -40
  130. package/dist/contracts/plan-policy.js +1 -1
  131. package/dist/contracts/principal-assertion.d.ts +43 -0
  132. package/dist/contracts/principal-assertion.js +67 -0
  133. package/dist/contracts/principals.d.ts +73 -0
  134. package/dist/contracts/principals.js +59 -0
  135. package/dist/contracts/privacy.d.ts +11 -0
  136. package/dist/contracts/privacy.js +17 -0
  137. package/dist/contracts/problem-document.js +3 -4
  138. package/dist/contracts/publish-archive.d.ts +269 -161
  139. package/dist/contracts/publish-archive.js +11 -1
  140. package/dist/contracts/push-new.d.ts +8 -8
  141. package/dist/contracts/quotas.js +5 -5
  142. package/dist/contracts/realtime.d.ts +52 -0
  143. package/dist/contracts/realtime.js +54 -0
  144. package/dist/contracts/repository-connections.d.ts +44 -31
  145. package/dist/contracts/repository-connections.js +17 -5
  146. package/dist/contracts/resources.d.ts +105 -14
  147. package/dist/contracts/resources.js +150 -26
  148. package/dist/contracts/route-inventory.d.ts +358 -0
  149. package/dist/contracts/route-inventory.js +141 -0
  150. package/dist/contracts/runtime-api.d.ts +206 -82
  151. package/dist/contracts/runtime-api.js +131 -70
  152. package/dist/contracts/runtime-app.d.ts +13 -23
  153. package/dist/contracts/runtime-app.js +39 -24
  154. package/dist/contracts/runtime-components.d.ts +143 -0
  155. package/dist/contracts/runtime-components.js +199 -0
  156. package/dist/contracts/runtime-db.d.ts +49 -23
  157. package/dist/contracts/runtime-db.js +87 -22
  158. package/dist/contracts/runtime-purge.d.ts +8 -0
  159. package/dist/contracts/runtime-purge.js +5 -0
  160. package/dist/contracts/runtime-services.d.ts +43 -75
  161. package/dist/contracts/runtime-services.js +29 -49
  162. package/dist/contracts/runtime-storage.d.ts +15 -14
  163. package/dist/contracts/runtime-storage.js +30 -14
  164. package/dist/contracts/sf-config-v1.d.ts +48 -14
  165. package/dist/contracts/slugs.js +13 -4
  166. package/dist/contracts/space-config.d.ts +283 -19
  167. package/dist/contracts/space-config.js +430 -80
  168. package/dist/contracts/spaces.d.ts +376 -290
  169. package/dist/contracts/spaces.js +200 -135
  170. package/dist/contracts/superadmin-activity.d.ts +3 -43
  171. package/dist/contracts/superadmin-activity.js +6 -30
  172. package/dist/contracts/superadmin-emails.d.ts +1 -0
  173. package/dist/contracts/superadmin-emails.js +17 -1
  174. package/dist/contracts/superadmin-runtime.d.ts +199 -0
  175. package/dist/contracts/superadmin-runtime.js +141 -0
  176. package/dist/contracts/superadmin-search.d.ts +22 -2
  177. package/dist/contracts/superadmin-search.js +14 -6
  178. package/dist/contracts/superadmin-spaces.d.ts +438 -189
  179. package/dist/contracts/superadmin-spaces.js +131 -25
  180. package/dist/contracts/superadmin-teams.d.ts +5 -2
  181. package/dist/contracts/superadmin-teams.js +1 -2
  182. package/dist/contracts/superadmin-tenants.d.ts +627 -12
  183. package/dist/contracts/superadmin-tenants.js +32 -13
  184. package/dist/contracts/superadmin.d.ts +232 -37
  185. package/dist/contracts/superadmin.js +106 -22
  186. package/dist/contracts/tags.d.ts +85 -58
  187. package/dist/contracts/tags.js +47 -37
  188. package/dist/contracts/teams.d.ts +86 -26
  189. package/dist/contracts/teams.js +90 -31
  190. package/dist/contracts/tenants.d.ts +135 -0
  191. package/dist/contracts/tenants.js +120 -0
  192. package/dist/contracts/test-triggers.d.ts +70 -0
  193. package/dist/contracts/test-triggers.js +116 -0
  194. package/dist/contracts/theme-json.js +3 -8
  195. package/dist/contracts/transfers.d.ts +1 -0
  196. package/dist/contracts/transfers.js +3 -2
  197. package/dist/contracts/usage.d.ts +209 -0
  198. package/dist/contracts/usage.js +124 -12
  199. package/dist/contracts/variables.d.ts +2 -2
  200. package/dist/contracts/variables.js +9 -13
  201. package/dist/contracts/webhooks.d.ts +13 -5
  202. package/dist/contracts/webhooks.js +3 -1
  203. package/dist/contracts/zero.d.ts +72 -81
  204. package/dist/contracts/zero.js +80 -78
  205. package/dist/dashboard-paths/index.d.ts +24 -21
  206. package/dist/dashboard-paths/index.js +35 -47
  207. package/dist/dashboard-paths/route-reservations.generated.d.ts +2 -0
  208. package/dist/dashboard-paths/route-reservations.generated.js +36 -0
  209. package/dist/docs/agent-arrival.d.ts +92 -0
  210. package/dist/docs/agent-arrival.js +227 -0
  211. package/dist/docs/agent-output-policy.d.ts +6 -0
  212. package/dist/docs/agent-output-policy.js +22 -0
  213. package/dist/docs/agent-prose.d.ts +12 -18
  214. package/dist/docs/agent-prose.js +73 -51
  215. package/dist/docs/agent-setup.d.ts +72 -41
  216. package/dist/docs/agent-setup.js +339 -436
  217. package/dist/docs/catalog.d.ts +153 -95
  218. package/dist/docs/catalog.js +163 -48
  219. package/dist/docs/error-docs.d.ts +2098 -1
  220. package/dist/docs/error-docs.js +421 -144
  221. package/dist/docs/index-build.d.ts +0 -1
  222. package/dist/docs/index-build.js +2 -3
  223. package/dist/docs/page-context-prompt.d.ts +77 -0
  224. package/dist/docs/page-context-prompt.js +131 -0
  225. package/dist/docs/reference-urls.d.ts +46 -0
  226. package/dist/docs/reference-urls.js +79 -0
  227. package/dist/docs/search.d.ts +6 -8
  228. package/dist/docs/search.js +10 -13
  229. package/dist/docs/skill-distribution.d.ts +4 -1
  230. package/dist/docs/skill-distribution.js +10 -5
  231. package/dist/docs/skills.d.ts +120 -120
  232. package/dist/docs/skills.js +121 -73
  233. package/dist/docs/start-prompts.d.ts +45 -0
  234. package/dist/docs/start-prompts.js +62 -0
  235. package/dist/domain-exploration.js +9 -13
  236. package/dist/og-template.d.ts +56 -0
  237. package/dist/og-template.js +56 -0
  238. package/dist/slug-policy/index.js +5 -11
  239. package/dist/test-helpers/fetch-stub.js +1 -0
  240. package/dist/utils/browser-credential.d.ts +13 -6
  241. package/dist/utils/browser-credential.js +14 -7
  242. package/dist/utils/build-settings.d.ts +21 -1
  243. package/dist/utils/build-settings.js +133 -15
  244. package/dist/utils/canonical-json.d.ts +3 -5
  245. package/dist/utils/canonical-json.js +4 -5
  246. package/dist/utils/cast-transport.d.ts +5 -17
  247. package/dist/utils/cast-transport.js +6 -19
  248. package/dist/utils/claim-token.js +1 -2
  249. package/dist/utils/comment-avatars.js +4 -6
  250. package/dist/utils/concurrency.js +3 -3
  251. package/dist/utils/content-type.d.ts +7 -6
  252. package/dist/utils/content-type.js +73 -51
  253. package/dist/utils/credential-policy.d.ts +50 -6
  254. package/dist/utils/credential-policy.js +126 -59
  255. package/dist/utils/dns-instructions.js +9 -9
  256. package/dist/utils/egress-policy.fixtures.json +1 -1
  257. package/dist/utils/error-code.js +1 -0
  258. package/dist/utils/generate-space-name.d.ts +3 -8
  259. package/dist/utils/generate-space-name.js +3 -8
  260. package/dist/utils/grant-decision.fixtures.json +2 -2
  261. package/dist/utils/grants.d.ts +0 -1
  262. package/dist/utils/grants.js +7 -8
  263. package/dist/utils/gravatar.d.ts +2 -4
  264. package/dist/utils/gravatar.js +6 -12
  265. package/dist/utils/id-hints.js +14 -23
  266. package/dist/utils/idempotency.d.ts +3 -3
  267. package/dist/utils/idempotency.js +6 -7
  268. package/dist/utils/local-space-state.d.ts +23 -26
  269. package/dist/utils/local-space-state.js +46 -46
  270. package/dist/utils/oauth-signed-query.d.ts +3 -5
  271. package/dist/utils/oauth-signed-query.js +6 -9
  272. package/dist/utils/one-shot-replay.d.ts +7 -6
  273. package/dist/utils/one-shot-replay.js +3 -5
  274. package/dist/utils/page-colors.d.ts +15 -19
  275. package/dist/utils/page-colors.js +23 -45
  276. package/dist/utils/page-fonts.d.ts +1 -1
  277. package/dist/utils/page-fonts.js +8 -20
  278. package/dist/utils/page-preview.d.ts +0 -1
  279. package/dist/utils/page-preview.js +0 -1
  280. package/dist/utils/pages.d.ts +33 -3
  281. package/dist/utils/pages.js +83 -30
  282. package/dist/utils/privacy-regions.d.ts +19 -0
  283. package/dist/utils/privacy-regions.js +91 -0
  284. package/dist/utils/publish-form-data.d.ts +4 -5
  285. package/dist/utils/publish-form-data.js +2 -3
  286. package/dist/utils/publish-policy.d.ts +11 -17
  287. package/dist/utils/publish-policy.fixtures.json +11 -5
  288. package/dist/utils/publish-policy.js +65 -110
  289. package/dist/utils/query-client.d.ts +2 -0
  290. package/dist/utils/query-client.js +10 -1
  291. package/dist/utils/runtime-paths.d.ts +4 -4
  292. package/dist/utils/runtime-paths.js +6 -8
  293. package/dist/utils/runtime-upload.d.ts +9 -0
  294. package/dist/utils/runtime-upload.js +12 -0
  295. package/dist/utils/secure-local-file.d.ts +3 -3
  296. package/dist/utils/secure-local-file.js +23 -40
  297. package/dist/utils/space-config.d.ts +12 -15
  298. package/dist/utils/space-config.js +13 -16
  299. package/dist/utils/static-runtime-policy.d.ts +10 -7
  300. package/dist/utils/static-runtime-policy.fixtures.json +38 -41
  301. package/dist/utils/static-runtime-policy.generated.d.ts +16 -0
  302. package/dist/utils/static-runtime-policy.generated.js +70 -0
  303. package/dist/utils/static-runtime-policy.js +31 -132
  304. package/dist/utils/storage-policy.js +1 -2
  305. package/dist/utils/upload-session.d.ts +4 -1
  306. package/dist/utils/upload-session.js +41 -19
  307. package/dist/utils/version-path.js +11 -19
  308. package/dist/utils/wpcom-auth-redirects.d.ts +5 -14
  309. package/dist/utils/wpcom-auth-redirects.js +1 -4
  310. package/dist/vocabulary.d.ts +13 -13
  311. package/dist/vocabulary.js +52 -27
  312. package/package.json +15 -18
  313. package/dist/agents/client-registry.d.ts +0 -22
  314. package/dist/agents/client-registry.js +0 -41
  315. package/dist/docs/agent-handoff-document.d.ts +0 -15
  316. package/dist/docs/agent-handoff-document.js +0 -180
  317. package/dist/docs/agent-solutions.d.ts +0 -110
  318. package/dist/docs/agent-solutions.js +0 -183
  319. package/dist/utils/query-keys.d.ts +0 -84
  320. package/dist/utils/query-keys.js +0 -108
@@ -1,22 +1,9 @@
1
1
  import { z } from "zod";
2
+ export declare const VERSION_BUILD_LOG_MAX_LENGTH: number;
2
3
  export declare const SpaceCapacitySchema: z.ZodObject<{
3
4
  storageBytes: z.ZodOptional<z.ZodNumber>;
4
5
  }, z.core.$strip>;
5
6
  export type SpaceCapacity = z.infer<typeof SpaceCapacitySchema>;
6
- export declare const SpacePressureSchema: z.ZodObject<{
7
- ewmaLimitedPct: z.ZodOptional<z.ZodNumber>;
8
- ewma429: z.ZodOptional<z.ZodNumber>;
9
- ewma429PerMin: z.ZodOptional<z.ZodNumber>;
10
- ewmaWorkersMax: z.ZodOptional<z.ZodNumber>;
11
- ewmaCpuPct: z.ZodOptional<z.ZodNumber>;
12
- lastSampleAt: z.ZodOptional<z.ZodString>;
13
- consecutivePressured: z.ZodOptional<z.ZodNumber>;
14
- consecutiveClean: z.ZodOptional<z.ZodNumber>;
15
- placementHoldRevision: z.ZodOptional<z.ZodNumber>;
16
- pressureHoldUntil: z.ZodOptional<z.ZodString>;
17
- lastBulkLaneActivityAt: z.ZodOptional<z.ZodString>;
18
- }, z.core.$loose>;
19
- export type SpacePressure = z.infer<typeof SpacePressureSchema>;
20
7
  export declare const spaceClaimReceiptSchema: z.ZodObject<{
21
8
  key: z.ZodString;
22
9
  url: z.ZodString;
@@ -26,28 +13,42 @@ export declare const spaceClaimReceiptSchema: z.ZodObject<{
26
13
  export declare const SpaceCreateResponseSchema: z.ZodObject<{
27
14
  space: z.ZodObject<{
28
15
  id: z.ZodString;
29
- tenantId: z.ZodString;
30
- providerRef: z.ZodNullable<z.ZodString>;
31
- providerClientId: z.ZodNullable<z.ZodString>;
16
+ tenantId: z.ZodOptional<z.ZodString>;
17
+ mode: z.ZodOptional<z.ZodEnum<{
18
+ live: "live";
19
+ test: "test";
20
+ }>>;
21
+ providerRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ providerClientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
23
  teamId: z.ZodNullable<z.ZodString>;
33
24
  teamSlug: z.ZodNullable<z.ZodString>;
34
- principal: z.ZodNullable<z.ZodObject<{
25
+ principal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35
26
  tenantId: z.ZodString;
36
27
  principalType: z.ZodEnum<{
37
28
  team: "team";
38
29
  external: "external";
39
30
  }>;
40
31
  principalId: z.ZodString;
32
+ }, z.core.$strip>>>;
33
+ infrastructure: z.ZodOptional<z.ZodObject<{
34
+ region: z.ZodNullable<z.ZodString>;
35
+ runtimeInstanceId: z.ZodNullable<z.ZodString>;
36
+ providerMainHostname: z.ZodNullable<z.ZodString>;
37
+ provisioningState: z.ZodEnum<{
38
+ provisioning: "provisioning";
39
+ degraded: "degraded";
40
+ converged: "converged";
41
+ }>;
41
42
  }, z.core.$strip>>;
42
43
  anonymous: z.ZodBoolean;
43
44
  slug: z.ZodString;
44
45
  title: z.ZodString;
45
46
  status: z.ZodEnum<{
46
47
  active: "active";
48
+ failed: "failed";
47
49
  provisioning: "provisioning";
48
50
  updating: "updating";
49
51
  deleting: "deleting";
50
- failed: "failed";
51
52
  }>;
52
53
  disabled: z.ZodNullable<z.ZodObject<{
53
54
  at: z.ZodNullable<z.ZodString>;
@@ -174,6 +175,16 @@ export declare const SpaceCreateResponseSchema: z.ZodObject<{
174
175
  }, z.core.$strip>>;
175
176
  settingsDigest: z.ZodString;
176
177
  noindex: z.ZodBoolean;
178
+ pinnedAt: z.ZodNullable<z.ZodString>;
179
+ git: z.ZodNullable<z.ZodObject<{
180
+ managedBy: z.ZodEnum<{
181
+ spacefast: "spacefast";
182
+ github: "github";
183
+ }>;
184
+ remoteUrl: z.ZodNullable<z.ZodString>;
185
+ repository: z.ZodNullable<z.ZodString>;
186
+ defaultBranch: z.ZodNullable<z.ZodString>;
187
+ }, z.core.$strip>>;
177
188
  operation: z.ZodNullable<z.ZodObject<{
178
189
  id: z.ZodString;
179
190
  kind: z.ZodString;
@@ -204,7 +215,7 @@ export declare const SpaceCreateResponseSchema: z.ZodObject<{
204
215
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
216
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
206
217
  registrar: "registrar";
207
- wpcloud: "wpcloud";
218
+ infra: "infra";
208
219
  dns: "dns";
209
220
  runtime: "runtime";
210
221
  }>>>;
@@ -241,7 +252,7 @@ export declare const spaceDiagnosticSchema: z.ZodObject<{
241
252
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
253
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
243
254
  registrar: "registrar";
244
- wpcloud: "wpcloud";
255
+ infra: "infra";
245
256
  dns: "dns";
246
257
  runtime: "runtime";
247
258
  }>>>;
@@ -265,7 +276,7 @@ export declare const spaceDiagnosticListResponseSchema: z.ZodObject<{
265
276
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
277
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
267
278
  registrar: "registrar";
268
- wpcloud: "wpcloud";
279
+ infra: "infra";
269
280
  dns: "dns";
270
281
  runtime: "runtime";
271
282
  }>>>;
@@ -276,10 +287,6 @@ export declare const spaceDiagnosticListResponseSchema: z.ZodObject<{
276
287
  versionId: z.ZodString;
277
288
  createdAt: z.ZodString;
278
289
  }, z.core.$strip>>;
279
- pagination: z.ZodObject<{
280
- nextCursor: z.ZodNullable<z.ZodString>;
281
- hasMore: z.ZodBoolean;
282
- }, z.core.$strip>;
283
290
  }, z.core.$strip>;
284
291
  export declare const principalRefInputSchema: z.ZodObject<{
285
292
  type: z.ZodEnum<{
@@ -473,6 +480,7 @@ export declare const spacePatchSchema: z.ZodObject<{
473
480
  burstable: z.ZodOptional<z.ZodBoolean>;
474
481
  }, z.core.$strict>>;
475
482
  noindex: z.ZodOptional<z.ZodBoolean>;
483
+ pinned: z.ZodOptional<z.ZodBoolean>;
476
484
  }, z.core.$strict>;
477
485
  export declare const anonymousClaimSchema: z.ZodObject<{
478
486
  key: z.ZodOptional<z.ZodString>;
@@ -501,9 +509,10 @@ export declare const anonymousClaimSharingSummarySchema: z.ZodObject<{
501
509
  grants: z.ZodArray<z.ZodObject<{
502
510
  scope: z.ZodString;
503
511
  role: z.ZodEnum<{
512
+ editor: "editor";
504
513
  viewer: "viewer";
505
514
  commenter: "commenter";
506
- editor: "editor";
515
+ manager: "manager";
507
516
  }>;
508
517
  }, z.core.$strip>>;
509
518
  }, z.core.$strip>>;
@@ -562,9 +571,10 @@ export declare const anonymousClaimResponseSchema: z.ZodObject<{
562
571
  grants: z.ZodArray<z.ZodObject<{
563
572
  scope: z.ZodString;
564
573
  role: z.ZodEnum<{
574
+ editor: "editor";
565
575
  viewer: "viewer";
566
576
  commenter: "commenter";
567
- editor: "editor";
577
+ manager: "manager";
568
578
  }>;
569
579
  }, z.core.$strip>>;
570
580
  }, z.core.$strip>>;
@@ -667,9 +677,9 @@ export declare const spaceVersionCreateSchema: z.ZodObject<{
667
677
  agent: "agent";
668
678
  api: "api";
669
679
  dashboard: "dashboard";
670
- direct_upload: "direct_upload";
671
680
  cli: "cli";
672
681
  git: "git";
682
+ direct_upload: "direct_upload";
673
683
  import: "import";
674
684
  variable_update: "variable_update";
675
685
  config_update: "config_update";
@@ -698,27 +708,16 @@ export declare const spaceVersionCreateSchema: z.ZodObject<{
698
708
  }>>;
699
709
  sourceMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
700
710
  buildLog: z.ZodOptional<z.ZodString>;
701
- conventionFiles: z.ZodOptional<z.ZodObject<{
702
- redirects: z.ZodOptional<z.ZodString>;
703
- headers: z.ZodOptional<z.ZodString>;
704
- routes: z.ZodOptional<z.ZodString>;
705
- }, z.core.$strip>>;
706
711
  finalize: z.ZodOptional<z.ZodObject<{
707
712
  channel: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"live">>>;
708
713
  }, z.core.$strip>>;
709
- files: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
710
- path: z.ZodString;
711
- size: z.ZodNumber;
712
- contentType: z.ZodOptional<z.ZodString>;
713
- sourceUrl: z.ZodOptional<z.ZodString>;
714
- sha256: z.ZodString;
715
- }, z.core.$strip>, z.ZodObject<{
714
+ files: z.ZodArray<z.ZodObject<{
716
715
  path: z.ZodString;
717
716
  size: z.ZodNumber;
718
717
  sha256: z.ZodOptional<z.ZodString>;
719
718
  contentType: z.ZodOptional<z.ZodString>;
720
- sourceUrl: z.ZodString;
721
- }, z.core.$strip>]>>;
719
+ sourceUrl: z.ZodOptional<z.ZodString>;
720
+ }, z.core.$strip>>;
722
721
  }, z.core.$strip>;
723
722
  export declare const spaceVersionListSchema: z.ZodObject<{
724
723
  data: z.ZodArray<z.ZodObject<{
@@ -732,9 +731,9 @@ export declare const spaceVersionListSchema: z.ZodObject<{
732
731
  agent: "agent";
733
732
  api: "api";
734
733
  dashboard: "dashboard";
735
- direct_upload: "direct_upload";
736
734
  cli: "cli";
737
735
  git: "git";
736
+ direct_upload: "direct_upload";
738
737
  import: "import";
739
738
  variable_update: "variable_update";
740
739
  config_update: "config_update";
@@ -757,6 +756,22 @@ export declare const spaceVersionListSchema: z.ZodObject<{
757
756
  pullRequestNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
758
757
  }, z.core.$catchall<z.ZodUnknown>>>;
759
758
  }, z.core.$strip>>;
759
+ publisher: z.ZodNullable<z.ZodObject<{
760
+ type: z.ZodEnum<{
761
+ system: "system";
762
+ user: "user";
763
+ api_key: "api_key";
764
+ partner_token: "partner_token";
765
+ oauth_client: "oauth_client";
766
+ anonymous_claim: "anonymous_claim";
767
+ }>;
768
+ displayName: z.ZodString;
769
+ avatarUrl: z.ZodNullable<z.ZodString>;
770
+ authorizedBy: z.ZodNullable<z.ZodObject<{
771
+ displayName: z.ZodString;
772
+ avatarUrl: z.ZodNullable<z.ZodString>;
773
+ }, z.core.$strip>>;
774
+ }, z.core.$strip>>;
760
775
  status: z.ZodEnum<{
761
776
  failed: "failed";
762
777
  canceled: "canceled";
@@ -783,15 +798,15 @@ export declare const spaceVersionListSchema: z.ZodObject<{
783
798
  filesRemovedCount: z.ZodNumber;
784
799
  pendingUploads: z.ZodArray<z.ZodObject<{
785
800
  path: z.ZodString;
786
- size: z.ZodNumber;
787
- sha256: z.ZodOptional<z.ZodString>;
788
801
  sourceUrl: z.ZodOptional<z.ZodString>;
802
+ sha256: z.ZodOptional<z.ZodString>;
803
+ size: z.ZodNumber;
789
804
  }, z.core.$strip>>;
790
805
  skippedPaths: z.ZodArray<z.ZodString>;
791
806
  immutableUrl: z.ZodNullable<z.ZodString>;
792
807
  immutableUrlStatus: z.ZodNullable<z.ZodEnum<{
793
808
  ready: "ready";
794
- converging: "converging";
809
+ pending: "pending";
795
810
  }>>;
796
811
  isCurrentProduction: z.ZodBoolean;
797
812
  siteTitle: z.ZodString;
@@ -906,7 +921,7 @@ export declare const spaceVersionListSchema: z.ZodObject<{
906
921
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
907
922
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
908
923
  registrar: "registrar";
909
- wpcloud: "wpcloud";
924
+ infra: "infra";
910
925
  dns: "dns";
911
926
  runtime: "runtime";
912
927
  }>>>;
@@ -933,7 +948,7 @@ export declare const spaceVersionListSchema: z.ZodObject<{
933
948
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
934
949
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
935
950
  registrar: "registrar";
936
- wpcloud: "wpcloud";
951
+ infra: "infra";
937
952
  dns: "dns";
938
953
  runtime: "runtime";
939
954
  }>>>;
@@ -956,28 +971,42 @@ export declare const spaceVersionListSchema: z.ZodObject<{
956
971
  export declare const spaceListSchema: z.ZodObject<{
957
972
  data: z.ZodArray<z.ZodObject<{
958
973
  id: z.ZodString;
959
- tenantId: z.ZodString;
960
- providerRef: z.ZodNullable<z.ZodString>;
961
- providerClientId: z.ZodNullable<z.ZodString>;
974
+ tenantId: z.ZodOptional<z.ZodString>;
975
+ mode: z.ZodOptional<z.ZodEnum<{
976
+ live: "live";
977
+ test: "test";
978
+ }>>;
979
+ providerRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
980
+ providerClientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
962
981
  teamId: z.ZodNullable<z.ZodString>;
963
982
  teamSlug: z.ZodNullable<z.ZodString>;
964
- principal: z.ZodNullable<z.ZodObject<{
983
+ principal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
965
984
  tenantId: z.ZodString;
966
985
  principalType: z.ZodEnum<{
967
986
  team: "team";
968
987
  external: "external";
969
988
  }>;
970
989
  principalId: z.ZodString;
990
+ }, z.core.$strip>>>;
991
+ infrastructure: z.ZodOptional<z.ZodObject<{
992
+ region: z.ZodNullable<z.ZodString>;
993
+ runtimeInstanceId: z.ZodNullable<z.ZodString>;
994
+ providerMainHostname: z.ZodNullable<z.ZodString>;
995
+ provisioningState: z.ZodEnum<{
996
+ provisioning: "provisioning";
997
+ degraded: "degraded";
998
+ converged: "converged";
999
+ }>;
971
1000
  }, z.core.$strip>>;
972
1001
  anonymous: z.ZodBoolean;
973
1002
  slug: z.ZodString;
974
1003
  title: z.ZodString;
975
1004
  status: z.ZodEnum<{
976
1005
  active: "active";
1006
+ failed: "failed";
977
1007
  provisioning: "provisioning";
978
1008
  updating: "updating";
979
1009
  deleting: "deleting";
980
- failed: "failed";
981
1010
  }>;
982
1011
  disabled: z.ZodNullable<z.ZodObject<{
983
1012
  at: z.ZodNullable<z.ZodString>;
@@ -1104,6 +1133,16 @@ export declare const spaceListSchema: z.ZodObject<{
1104
1133
  }, z.core.$strip>>;
1105
1134
  settingsDigest: z.ZodString;
1106
1135
  noindex: z.ZodBoolean;
1136
+ pinnedAt: z.ZodNullable<z.ZodString>;
1137
+ git: z.ZodNullable<z.ZodObject<{
1138
+ managedBy: z.ZodEnum<{
1139
+ spacefast: "spacefast";
1140
+ github: "github";
1141
+ }>;
1142
+ remoteUrl: z.ZodNullable<z.ZodString>;
1143
+ repository: z.ZodNullable<z.ZodString>;
1144
+ defaultBranch: z.ZodNullable<z.ZodString>;
1145
+ }, z.core.$strip>>;
1107
1146
  operation: z.ZodNullable<z.ZodObject<{
1108
1147
  id: z.ZodString;
1109
1148
  kind: z.ZodString;
@@ -1134,7 +1173,7 @@ export declare const spaceListSchema: z.ZodObject<{
1134
1173
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1135
1174
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1136
1175
  registrar: "registrar";
1137
- wpcloud: "wpcloud";
1176
+ infra: "infra";
1138
1177
  dns: "dns";
1139
1178
  runtime: "runtime";
1140
1179
  }>>>;
@@ -1169,7 +1208,6 @@ export declare const versionLogEntrySchema: z.ZodObject<{
1169
1208
  message: z.ZodString;
1170
1209
  }, z.core.$strip>;
1171
1210
  export type VersionLogEntry = z.infer<typeof versionLogEntrySchema>;
1172
- export declare const VERSION_BUILD_LOG_MAX_LENGTH: number;
1173
1211
  export declare const versionLogListResponseSchema: z.ZodObject<{
1174
1212
  data: z.ZodArray<z.ZodObject<{
1175
1213
  timestamp: z.ZodString;
@@ -1177,10 +1215,6 @@ export declare const versionLogListResponseSchema: z.ZodObject<{
1177
1215
  code: z.ZodString;
1178
1216
  message: z.ZodString;
1179
1217
  }, z.core.$strip>>;
1180
- pagination: z.ZodObject<{
1181
- nextCursor: z.ZodNullable<z.ZodString>;
1182
- hasMore: z.ZodBoolean;
1183
- }, z.core.$strip>;
1184
1218
  }, z.core.$strip>;
1185
1219
  export declare const spaceVersionGeneratedPreviewSchema: z.ZodObject<{
1186
1220
  kind: z.ZodLiteral<"image">;
@@ -1639,9 +1673,9 @@ export declare const spaceVersionFileViewSchema: z.ZodEnum<{
1639
1673
  }>;
1640
1674
  export declare const VERSION_FILE_LINKS_MAX_PATHS = 200;
1641
1675
  /**
1642
- * Repeated `path` query parameters `?path=index.html&path=about.html`. One
1643
- * path arrives as a bare string, so it is lifted into the batch shape before
1644
- * the per-path rules run.
1676
+ * Repeated `path` query parameters, for example
1677
+ * `?path=index.html&path=about.html`. One path arrives as a bare string, so it
1678
+ * is lifted into the batch shape before the per-path rules run.
1645
1679
  */
1646
1680
  export declare const spaceVersionFileLinksQuerySchema: z.ZodObject<{
1647
1681
  path: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodArray<z.ZodString>>;
@@ -1655,7 +1689,7 @@ export declare const spaceVersionFileLinkSchema: z.ZodObject<{
1655
1689
  expiresAt: z.ZodString;
1656
1690
  }, z.core.$strip>;
1657
1691
  /**
1658
- * Minting is blind to path validity the control plane authorizes the version,
1692
+ * Minting is blind to path validity. The control plane authorizes the version,
1659
1693
  * not the path. A path that is not in the selected catalog view answers
1660
1694
  * `version_file_not_found` when the link is followed.
1661
1695
  */
@@ -1671,35 +1705,35 @@ export declare const spaceVersionFileLinksResponseSchema: z.ZodObject<{
1671
1705
  }, z.core.$strip>>;
1672
1706
  }, z.core.$strip>;
1673
1707
  export declare const spaceVersionConventionArtifactKindSchema: z.ZodEnum<{
1674
- redirects: "redirects";
1675
1708
  headers: "headers";
1709
+ redirects: "redirects";
1676
1710
  }>;
1677
1711
  export declare const spaceVersionConventionArtifactPathSchema: z.ZodEnum<{
1678
1712
  _redirects: "_redirects";
1679
1713
  _headers: "_headers";
1680
1714
  }>;
1681
1715
  export declare const spaceVersionConventionArtifactSourceSchema: z.ZodEnum<{
1682
- uploaded: "uploaded";
1683
1716
  override: "override";
1717
+ uploaded: "uploaded";
1718
+ missing: "missing";
1684
1719
  inherited: "inherited";
1685
1720
  generated: "generated";
1686
- missing: "missing";
1687
1721
  }>;
1688
1722
  export declare const spaceVersionConventionArtifactMetadataSchema: z.ZodObject<{
1689
1723
  kind: z.ZodEnum<{
1690
- redirects: "redirects";
1691
1724
  headers: "headers";
1725
+ redirects: "redirects";
1692
1726
  }>;
1693
1727
  path: z.ZodEnum<{
1694
1728
  _redirects: "_redirects";
1695
1729
  _headers: "_headers";
1696
1730
  }>;
1697
1731
  source: z.ZodEnum<{
1698
- uploaded: "uploaded";
1699
1732
  override: "override";
1733
+ uploaded: "uploaded";
1734
+ missing: "missing";
1700
1735
  inherited: "inherited";
1701
1736
  generated: "generated";
1702
- missing: "missing";
1703
1737
  }>;
1704
1738
  present: z.ZodBoolean;
1705
1739
  size: z.ZodNullable<z.ZodNumber>;
@@ -1713,19 +1747,19 @@ export declare const spaceVersionConventionArtifactsResponseSchema: z.ZodObject<
1713
1747
  versionId: z.ZodString;
1714
1748
  artifacts: z.ZodArray<z.ZodObject<{
1715
1749
  kind: z.ZodEnum<{
1716
- redirects: "redirects";
1717
1750
  headers: "headers";
1751
+ redirects: "redirects";
1718
1752
  }>;
1719
1753
  path: z.ZodEnum<{
1720
1754
  _redirects: "_redirects";
1721
1755
  _headers: "_headers";
1722
1756
  }>;
1723
1757
  source: z.ZodEnum<{
1724
- uploaded: "uploaded";
1725
1758
  override: "override";
1759
+ uploaded: "uploaded";
1760
+ missing: "missing";
1726
1761
  inherited: "inherited";
1727
1762
  generated: "generated";
1728
- missing: "missing";
1729
1763
  }>;
1730
1764
  present: z.ZodBoolean;
1731
1765
  size: z.ZodNullable<z.ZodNumber>;
@@ -1738,8 +1772,8 @@ export declare const spaceVersionConventionArtifactsResponseSchema: z.ZodObject<
1738
1772
  }, z.core.$strip>;
1739
1773
  export declare const spaceVersionConventionArtifactQuerySchema: z.ZodObject<{
1740
1774
  kind: z.ZodOptional<z.ZodEnum<{
1741
- redirects: "redirects";
1742
1775
  headers: "headers";
1776
+ redirects: "redirects";
1743
1777
  }>>;
1744
1778
  path: z.ZodOptional<z.ZodEnum<{
1745
1779
  _redirects: "_redirects";
@@ -1748,19 +1782,19 @@ export declare const spaceVersionConventionArtifactQuerySchema: z.ZodObject<{
1748
1782
  }, z.core.$strip>;
1749
1783
  export declare const spaceVersionConventionArtifactContentResponseSchema: z.ZodObject<{
1750
1784
  kind: z.ZodEnum<{
1751
- redirects: "redirects";
1752
1785
  headers: "headers";
1786
+ redirects: "redirects";
1753
1787
  }>;
1754
1788
  path: z.ZodEnum<{
1755
1789
  _redirects: "_redirects";
1756
1790
  _headers: "_headers";
1757
1791
  }>;
1758
1792
  source: z.ZodEnum<{
1759
- uploaded: "uploaded";
1760
1793
  override: "override";
1794
+ uploaded: "uploaded";
1795
+ missing: "missing";
1761
1796
  inherited: "inherited";
1762
1797
  generated: "generated";
1763
- missing: "missing";
1764
1798
  }>;
1765
1799
  present: z.ZodBoolean;
1766
1800
  size: z.ZodNullable<z.ZodNumber>;
@@ -1770,18 +1804,17 @@ export declare const spaceVersionConventionArtifactContentResponseSchema: z.ZodO
1770
1804
  warningCount: z.ZodNumber;
1771
1805
  errorCount: z.ZodNumber;
1772
1806
  encoding: z.ZodEnum<{
1773
- utf8: "utf8";
1774
1807
  base64: "base64";
1808
+ utf8: "utf8";
1775
1809
  }>;
1776
1810
  content: z.ZodString;
1777
1811
  truncated: z.ZodBoolean;
1778
1812
  }, z.core.$strip>;
1779
1813
  /**
1780
- * Where a routing diagnostic came from a committed path in the version the
1781
- * publisher can open. Wider than the convention artifacts: the Spacefast config
1782
- * file states routing rules too, and they compile through the same compiler and
1783
- * report the same codes. Every accepted config filename is listed because
1784
- * finalize reads whichever one the version ships, and naming the canonical
1814
+ * Where a routing diagnostic came from: a committed path in the version the
1815
+ * publisher can open. Wider than the convention artifacts, because the config
1816
+ * file states routing rules too. Every accepted config filename is listed
1817
+ * because finalize reads whichever one the version ships, and naming
1785
1818
  * `sf.jsonc` at a version that committed `spacefast.jsonc` sends the publisher
1786
1819
  * to a file that is not there.
1787
1820
  */
@@ -1816,25 +1849,55 @@ export declare const spaceVersionRoutingDiagnosticSchema: z.ZodObject<{
1816
1849
  code: z.ZodString;
1817
1850
  message: z.ZodString;
1818
1851
  source: z.ZodString;
1852
+ deferredUntilSubstitution: z.ZodOptional<z.ZodLiteral<true>>;
1853
+ }, z.core.$strip>;
1854
+ export declare const spaceRoutingComputeSchema: z.ZodObject<{
1855
+ latestVersionId: z.ZodNullable<z.ZodString>;
1856
+ redirects: z.ZodNullable<z.ZodString>;
1857
+ headers: z.ZodNullable<z.ZodString>;
1858
+ diagnostics: z.ZodArray<z.ZodObject<{
1859
+ file: z.ZodEnum<{
1860
+ "sf.jsonc": "sf.jsonc";
1861
+ "spacefast.jsonc": "spacefast.jsonc";
1862
+ "spacefast.json": "spacefast.json";
1863
+ "sf.json": "sf.json";
1864
+ ".sf/sf.json": ".sf/sf.json";
1865
+ ".sf/config.jsonc": ".sf/config.jsonc";
1866
+ ".sf/config.json": ".sf/config.json";
1867
+ _redirects: "_redirects";
1868
+ _headers: "_headers";
1869
+ }>;
1870
+ line: z.ZodNumber;
1871
+ severity: z.ZodEnum<{
1872
+ warning: "warning";
1873
+ error: "error";
1874
+ }>;
1875
+ code: z.ZodString;
1876
+ message: z.ZodString;
1877
+ source: z.ZodString;
1878
+ deferredUntilSubstitution: z.ZodOptional<z.ZodLiteral<true>>;
1879
+ }, z.core.$strip>>;
1880
+ variableDependencies: z.ZodArray<z.ZodString>;
1881
+ systemVariableDependencies: z.ZodArray<z.ZodString>;
1819
1882
  }, z.core.$strip>;
1820
1883
  export declare const spaceVersionComputedRoutingSummarySchema: z.ZodObject<{
1821
1884
  versionId: z.ZodString;
1822
1885
  source: z.ZodObject<{
1823
1886
  artifacts: z.ZodArray<z.ZodObject<{
1824
1887
  kind: z.ZodEnum<{
1825
- redirects: "redirects";
1826
1888
  headers: "headers";
1889
+ redirects: "redirects";
1827
1890
  }>;
1828
1891
  path: z.ZodEnum<{
1829
1892
  _redirects: "_redirects";
1830
1893
  _headers: "_headers";
1831
1894
  }>;
1832
1895
  source: z.ZodEnum<{
1833
- uploaded: "uploaded";
1834
1896
  override: "override";
1897
+ uploaded: "uploaded";
1898
+ missing: "missing";
1835
1899
  inherited: "inherited";
1836
1900
  generated: "generated";
1837
- missing: "missing";
1838
1901
  }>;
1839
1902
  present: z.ZodBoolean;
1840
1903
  size: z.ZodNullable<z.ZodNumber>;
@@ -1870,6 +1933,7 @@ export declare const spaceVersionComputedRoutingSummarySchema: z.ZodObject<{
1870
1933
  code: z.ZodString;
1871
1934
  message: z.ZodString;
1872
1935
  source: z.ZodString;
1936
+ deferredUntilSubstitution: z.ZodOptional<z.ZodLiteral<true>>;
1873
1937
  }, z.core.$strip>>;
1874
1938
  }, z.core.$strip>;
1875
1939
  export declare const spaceVersionIntentResponseSchema: z.ZodObject<{
@@ -1904,7 +1968,8 @@ export declare const spaceVersionIntentResponseSchema: z.ZodObject<{
1904
1968
  contentType: z.ZodOptional<z.ZodString>;
1905
1969
  }, z.core.$strip>>>;
1906
1970
  links: z.ZodObject<{
1907
- resume: z.ZodString;
1971
+ refresh: z.ZodString;
1972
+ resume: z.ZodOptional<z.ZodString>;
1908
1973
  finalize: z.ZodString;
1909
1974
  }, z.core.$strip>;
1910
1975
  details: z.ZodOptional<z.ZodObject<{
@@ -1927,7 +1992,7 @@ export declare const spaceVersionIntentResponseSchema: z.ZodObject<{
1927
1992
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1928
1993
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1929
1994
  registrar: "registrar";
1930
- wpcloud: "wpcloud";
1995
+ infra: "infra";
1931
1996
  dns: "dns";
1932
1997
  runtime: "runtime";
1933
1998
  }>>>;
@@ -1946,9 +2011,9 @@ export declare const publishRequestSchema: z.ZodObject<{
1946
2011
  agent: "agent";
1947
2012
  api: "api";
1948
2013
  dashboard: "dashboard";
1949
- direct_upload: "direct_upload";
1950
2014
  cli: "cli";
1951
2015
  git: "git";
2016
+ direct_upload: "direct_upload";
1952
2017
  import: "import";
1953
2018
  variable_update: "variable_update";
1954
2019
  config_update: "config_update";
@@ -2078,19 +2143,13 @@ export declare const publishRequestSchema: z.ZodObject<{
2078
2143
  }>;
2079
2144
  id: z.ZodString;
2080
2145
  }, z.core.$strip>>;
2081
- files: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2082
- path: z.ZodString;
2083
- size: z.ZodNumber;
2084
- contentType: z.ZodOptional<z.ZodString>;
2085
- sourceUrl: z.ZodOptional<z.ZodString>;
2086
- sha256: z.ZodString;
2087
- }, z.core.$strip>, z.ZodObject<{
2146
+ files: z.ZodArray<z.ZodObject<{
2088
2147
  path: z.ZodString;
2089
2148
  size: z.ZodNumber;
2090
2149
  sha256: z.ZodOptional<z.ZodString>;
2091
2150
  contentType: z.ZodOptional<z.ZodString>;
2092
- sourceUrl: z.ZodString;
2093
- }, z.core.$strip>]>>;
2151
+ sourceUrl: z.ZodOptional<z.ZodString>;
2152
+ }, z.core.$strip>>;
2094
2153
  }, z.core.$strip>;
2095
2154
  export declare const publishUploadReceiptSchema: z.ZodObject<{
2096
2155
  id: z.ZodString;
@@ -2122,7 +2181,8 @@ export declare const publishUploadReceiptSchema: z.ZodObject<{
2122
2181
  contentType: z.ZodOptional<z.ZodString>;
2123
2182
  }, z.core.$strip>>>;
2124
2183
  links: z.ZodObject<{
2125
- resume: z.ZodString;
2184
+ refresh: z.ZodString;
2185
+ resume: z.ZodOptional<z.ZodString>;
2126
2186
  finalize: z.ZodString;
2127
2187
  }, z.core.$strip>;
2128
2188
  details: z.ZodOptional<z.ZodObject<{
@@ -2145,7 +2205,7 @@ export declare const publishUploadReceiptSchema: z.ZodObject<{
2145
2205
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2146
2206
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2147
2207
  registrar: "registrar";
2148
- wpcloud: "wpcloud";
2208
+ infra: "infra";
2149
2209
  dns: "dns";
2150
2210
  runtime: "runtime";
2151
2211
  }>>>;
@@ -2158,10 +2218,27 @@ export declare const publishUploadReceiptSchema: z.ZodObject<{
2158
2218
  export declare const publishReceiptSpaceSchema: z.ZodObject<{
2159
2219
  id: z.ZodString;
2160
2220
  slug: z.ZodString;
2221
+ title: z.ZodString;
2161
2222
  publicName: z.ZodString;
2162
- defaultHostname: z.ZodString;
2223
+ defaultHostname: z.ZodOptional<z.ZodString>;
2163
2224
  liveUrl: z.ZodNullable<z.ZodString>;
2164
2225
  }, z.core.$strip>;
2226
+ /**
2227
+ * The claim block as it rides on a publish receipt. Same members as the
2228
+ * server's {@link spaceClaimReceiptSchema}, with the URL formats relaxed to
2229
+ * plain strings so a client-rendered receipt can mask the three key-bearing
2230
+ * members (`key`, `url`, `claimUrl`) with {@link REDACTED_RECEIPT_SECRET} while
2231
+ * keeping the block's shape stable. `expiresAt` is never masked: it is what
2232
+ * tells an agent the space is temporary and by when it has to be claimed.
2233
+ */
2234
+ export declare const publishReceiptClaimSchema: z.ZodObject<{
2235
+ expiresAt: z.ZodString;
2236
+ key: z.ZodString;
2237
+ url: z.ZodString;
2238
+ claimUrl: z.ZodString;
2239
+ }, z.core.$strip>;
2240
+ /** The stand-in a surface writes where a secret would otherwise be printed. */
2241
+ export declare const REDACTED_RECEIPT_SECRET = "[REDACTED]";
2165
2242
  export declare const publishReceiptVersionSchema: z.ZodObject<{
2166
2243
  id: z.ZodString;
2167
2244
  status: z.ZodEnum<{
@@ -2176,7 +2253,7 @@ export declare const publishReceiptVersionSchema: z.ZodObject<{
2176
2253
  finalizing: "finalizing";
2177
2254
  ready: "ready";
2178
2255
  }>;
2179
- immutableUrl: z.ZodString;
2256
+ immutableUrl: z.ZodNullable<z.ZodString>;
2180
2257
  ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2181
2258
  number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2182
2259
  manifestHash: z.ZodNullable<z.ZodString>;
@@ -2210,8 +2287,9 @@ export declare const publishReceiptSchema: z.ZodObject<{
2210
2287
  space: z.ZodObject<{
2211
2288
  id: z.ZodString;
2212
2289
  slug: z.ZodString;
2290
+ title: z.ZodString;
2213
2291
  publicName: z.ZodString;
2214
- defaultHostname: z.ZodString;
2292
+ defaultHostname: z.ZodOptional<z.ZodString>;
2215
2293
  liveUrl: z.ZodNullable<z.ZodString>;
2216
2294
  }, z.core.$strip>;
2217
2295
  access: z.ZodOptional<z.ZodObject<{
@@ -2233,7 +2311,7 @@ export declare const publishReceiptSchema: z.ZodObject<{
2233
2311
  finalizing: "finalizing";
2234
2312
  ready: "ready";
2235
2313
  }>;
2236
- immutableUrl: z.ZodString;
2314
+ immutableUrl: z.ZodNullable<z.ZodString>;
2237
2315
  ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2238
2316
  number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2239
2317
  manifestHash: z.ZodNullable<z.ZodString>;
@@ -2261,6 +2339,23 @@ export declare const publishReceiptSchema: z.ZodObject<{
2261
2339
  retryAfter: z.ZodOptional<z.ZodNumber>;
2262
2340
  hint: z.ZodString;
2263
2341
  }, z.core.$strip>;
2342
+ git: z.ZodOptional<z.ZodObject<{
2343
+ managedBy: z.ZodEnum<{
2344
+ spacefast: "spacefast";
2345
+ github: "github";
2346
+ }>;
2347
+ remoteUrl: z.ZodNullable<z.ZodString>;
2348
+ repository: z.ZodNullable<z.ZodString>;
2349
+ defaultBranch: z.ZodNullable<z.ZodString>;
2350
+ }, z.core.$strip>>;
2351
+ authMode: z.ZodOptional<z.ZodEnum<{
2352
+ anonymous: "anonymous";
2353
+ authenticated: "authenticated";
2354
+ }>>;
2355
+ persistence: z.ZodOptional<z.ZodEnum<{
2356
+ managed: "managed";
2357
+ temporary: "temporary";
2358
+ }>>;
2264
2359
  operation: z.ZodOptional<z.ZodObject<{
2265
2360
  id: z.ZodString;
2266
2361
  kind: z.ZodString;
@@ -2291,7 +2386,7 @@ export declare const publishReceiptSchema: z.ZodObject<{
2291
2386
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2292
2387
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2293
2388
  registrar: "registrar";
2294
- wpcloud: "wpcloud";
2389
+ infra: "infra";
2295
2390
  dns: "dns";
2296
2391
  runtime: "runtime";
2297
2392
  }>>>;
@@ -2332,7 +2427,8 @@ export declare const publishReceiptSchema: z.ZodObject<{
2332
2427
  contentType: z.ZodOptional<z.ZodString>;
2333
2428
  }, z.core.$strip>>>;
2334
2429
  links: z.ZodObject<{
2335
- resume: z.ZodString;
2430
+ refresh: z.ZodString;
2431
+ resume: z.ZodOptional<z.ZodString>;
2336
2432
  finalize: z.ZodString;
2337
2433
  }, z.core.$strip>;
2338
2434
  details: z.ZodOptional<z.ZodObject<{
@@ -2355,7 +2451,7 @@ export declare const publishReceiptSchema: z.ZodObject<{
2355
2451
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2356
2452
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2357
2453
  registrar: "registrar";
2358
- wpcloud: "wpcloud";
2454
+ infra: "infra";
2359
2455
  dns: "dns";
2360
2456
  runtime: "runtime";
2361
2457
  }>>>;
@@ -2366,10 +2462,10 @@ export declare const publishReceiptSchema: z.ZodObject<{
2366
2462
  }, z.core.$strip>>;
2367
2463
  }, z.core.$strip>>;
2368
2464
  claim: z.ZodOptional<z.ZodObject<{
2465
+ expiresAt: z.ZodString;
2369
2466
  key: z.ZodString;
2370
2467
  url: z.ZodString;
2371
2468
  claimUrl: z.ZodString;
2372
- expiresAt: z.ZodString;
2373
2469
  }, z.core.$strip>>;
2374
2470
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2375
2471
  code: z.ZodString;
@@ -2382,7 +2478,7 @@ export declare const publishReceiptSchema: z.ZodObject<{
2382
2478
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2383
2479
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2384
2480
  registrar: "registrar";
2385
- wpcloud: "wpcloud";
2481
+ infra: "infra";
2386
2482
  dns: "dns";
2387
2483
  runtime: "runtime";
2388
2484
  }>>>;
@@ -2391,6 +2487,7 @@ export declare const publishReceiptSchema: z.ZodObject<{
2391
2487
  retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2392
2488
  }, z.core.$strip>>>;
2393
2489
  links: z.ZodOptional<z.ZodObject<{
2490
+ refresh: z.ZodOptional<z.ZodString>;
2394
2491
  resume: z.ZodOptional<z.ZodString>;
2395
2492
  finalize: z.ZodOptional<z.ZodString>;
2396
2493
  promote: z.ZodOptional<z.ZodString>;
@@ -2400,7 +2497,8 @@ export declare const publishReceiptSchema: z.ZodObject<{
2400
2497
  status: z.ZodOptional<z.ZodString>;
2401
2498
  }, z.core.$strip>>;
2402
2499
  }, z.core.$strip>;
2403
- export declare const spaceVersionResumeResponseSchema: z.ZodObject<{
2500
+ export type PublishReceipt = z.infer<typeof publishReceiptSchema>;
2501
+ export declare const spaceVersionRefreshResponseSchema: z.ZodObject<{
2404
2502
  versionId: z.ZodString;
2405
2503
  upload: z.ZodNullable<z.ZodObject<{
2406
2504
  id: z.ZodString;
@@ -2432,7 +2530,8 @@ export declare const spaceVersionResumeResponseSchema: z.ZodObject<{
2432
2530
  contentType: z.ZodOptional<z.ZodString>;
2433
2531
  }, z.core.$strip>>>;
2434
2532
  links: z.ZodObject<{
2435
- resume: z.ZodString;
2533
+ refresh: z.ZodString;
2534
+ resume: z.ZodOptional<z.ZodString>;
2436
2535
  finalize: z.ZodString;
2437
2536
  }, z.core.$strip>;
2438
2537
  details: z.ZodOptional<z.ZodObject<{
@@ -2455,7 +2554,7 @@ export declare const spaceVersionResumeResponseSchema: z.ZodObject<{
2455
2554
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2456
2555
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2457
2556
  registrar: "registrar";
2458
- wpcloud: "wpcloud";
2557
+ infra: "infra";
2459
2558
  dns: "dns";
2460
2559
  runtime: "runtime";
2461
2560
  }>>>;
@@ -2470,12 +2569,29 @@ export declare const spaceVersionResumeResponseSchema: z.ZodObject<{
2470
2569
  export declare const versionPromoteSchema: z.ZodDefault<z.ZodOptional<z.ZodObject<{
2471
2570
  channel: z.ZodOptional<z.ZodString>;
2472
2571
  }, z.core.$strip>>>;
2572
+ /**
2573
+ * `?async=1` on a route that otherwise waits for the work to settle: the route
2574
+ * answers with the operation handle to poll instead. Every such route builds its
2575
+ * query schema here so the accepted spellings stay one definition; the caller
2576
+ * passes the description because that is the only per-route part.
2577
+ *
2578
+ * Plain enum (no zod transform): transforms cannot be represented in the
2579
+ * generated OpenAPI spec, and this parameter must reach SDK consumers.
2580
+ */
2581
+ export declare function asyncQuerySchema(description: string): z.ZodObject<{
2582
+ async: z.ZodOptional<z.ZodEnum<{
2583
+ 0: "0";
2584
+ 1: "1";
2585
+ true: "true";
2586
+ false: "false";
2587
+ }>>;
2588
+ }, z.core.$strip>;
2589
+ /**
2590
+ * Reads an {@link asyncQuerySchema} value. The factory owns which spellings the
2591
+ * parameter accepts; this owns what they mean, so neither can drift alone.
2592
+ */
2593
+ export declare function isAsyncRequested(value: string | null | undefined): value is "true" | "1";
2473
2594
  export declare const spaceFinalizeSchema: z.ZodDefault<z.ZodOptional<z.ZodObject<{
2474
- conventionFiles: z.ZodOptional<z.ZodObject<{
2475
- redirects: z.ZodOptional<z.ZodString>;
2476
- headers: z.ZodOptional<z.ZodString>;
2477
- routes: z.ZodOptional<z.ZodString>;
2478
- }, z.core.$strip>>;
2479
2595
  channel: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2480
2596
  live: "live";
2481
2597
  }>>>;
@@ -2486,10 +2602,10 @@ export declare const spaceRuntimeStatusSchema: z.ZodObject<{
2486
2602
  liveUrl: z.ZodNullable<z.ZodString>;
2487
2603
  runtimeState: z.ZodEnum<{
2488
2604
  active: "active";
2605
+ failed: "failed";
2489
2606
  provisioning: "provisioning";
2490
2607
  updating: "updating";
2491
2608
  deleting: "deleting";
2492
- failed: "failed";
2493
2609
  }>;
2494
2610
  liveVersionStatus: z.ZodNullable<z.ZodEnum<{
2495
2611
  failed: "failed";
@@ -2545,7 +2661,7 @@ export declare const spaceRuntimeStatusSchema: z.ZodObject<{
2545
2661
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2546
2662
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2547
2663
  registrar: "registrar";
2548
- wpcloud: "wpcloud";
2664
+ infra: "infra";
2549
2665
  dns: "dns";
2550
2666
  runtime: "runtime";
2551
2667
  }>>>;
@@ -2563,8 +2679,135 @@ export declare const spaceRuntimeStatusSchema: z.ZodObject<{
2563
2679
  serverRuntime: z.ZodLiteral<"quickjs-rust">;
2564
2680
  inspect: z.ZodObject<{
2565
2681
  policy: z.ZodEnum<{
2682
+ private: "private";
2566
2683
  public: "public";
2684
+ }>;
2685
+ }, z.core.$strict>;
2686
+ install: z.ZodObject<{
2687
+ runtimeKind: z.ZodLiteral<"zero">;
2688
+ engine: z.ZodLiteral<"quickjs-rust">;
2689
+ storageRoot: z.ZodLiteral<"__spacefast/zero">;
2690
+ artifactPath: z.ZodLiteral<"__spacefast/zero/artifact.json">;
2691
+ configPath: z.ZodLiteral<"__spacefast/zero/config.json">;
2692
+ binary: z.ZodObject<{
2693
+ path: z.ZodLiteral<"__spacefast/zero/bin/stattic-runtime">;
2694
+ compatibilityTarget: z.ZodObject<{
2695
+ profile: z.ZodLiteral<"linux-x86_64-gnu-v1">;
2696
+ os: z.ZodLiteral<"linux">;
2697
+ cpu: z.ZodLiteral<"x86_64">;
2698
+ libc: z.ZodLiteral<"glibc">;
2699
+ linking: z.ZodLiteral<"dynamic">;
2700
+ requireExecutableBit: z.ZodLiteral<true>;
2701
+ }, z.core.$strict>;
2702
+ sha256: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2703
+ required: z.ZodLiteral<true>;
2704
+ }, z.core.$strict>;
2705
+ mysql: z.ZodObject<{
2706
+ migrateAtFinalize: z.ZodLiteral<true>;
2707
+ blockIncompatibleRollback: z.ZodLiteral<true>;
2708
+ }, z.core.$strict>;
2709
+ realtime: z.ZodObject<{
2710
+ production: z.ZodLiteral<"central">;
2711
+ local: z.ZodLiteral<"foreground-cli-ws">;
2712
+ }, z.core.$strict>;
2713
+ }, z.core.$strict>;
2714
+ tables: z.ZodDefault<z.ZodArray<z.ZodString>>;
2715
+ queries: z.ZodDefault<z.ZodArray<z.ZodString>>;
2716
+ mutations: z.ZodDefault<z.ZodArray<z.ZodString>>;
2717
+ actions: z.ZodDefault<z.ZodArray<z.ZodString>>;
2718
+ endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
2719
+ method: z.ZodEnum<{
2720
+ POST: "POST";
2721
+ PUT: "PUT";
2722
+ GET: "GET";
2723
+ HEAD: "HEAD";
2724
+ PATCH: "PATCH";
2725
+ DELETE: "DELETE";
2726
+ OPTIONS: "OPTIONS";
2727
+ }>;
2728
+ path: z.ZodString;
2729
+ }, z.core.$strict>>>;
2730
+ sockets: z.ZodDefault<z.ZodArray<z.ZodString>>;
2731
+ serverBundleSize: z.ZodNullable<z.ZodNumber>;
2732
+ clientBundleSize: z.ZodNullable<z.ZodNumber>;
2733
+ migrationCount: z.ZodNumber;
2734
+ schemaHash: z.ZodNullable<z.ZodString>;
2735
+ variables: z.ZodObject<{
2736
+ source: z.ZodLiteral<"stattic-variables">;
2737
+ names: z.ZodDefault<z.ZodArray<z.ZodString>>;
2738
+ }, z.core.$strict>;
2739
+ realtime: z.ZodObject<{
2740
+ mode: z.ZodEnum<{
2741
+ local: "local";
2742
+ cast: "cast";
2743
+ central: "central";
2744
+ }>;
2745
+ centralUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2746
+ path: z.ZodOptional<z.ZodString>;
2747
+ replayPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2748
+ replayUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2749
+ runPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2750
+ runUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2751
+ resourceKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2752
+ ticketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2753
+ socketPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2754
+ spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2755
+ versionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2756
+ }, z.core.$strict>;
2757
+ }, z.core.$strict>>;
2758
+ worker: z.ZodNullable<z.ZodObject<{
2759
+ artifactId: z.ZodString;
2760
+ appName: z.ZodString;
2761
+ entry: z.ZodString;
2762
+ compatibilityDate: z.ZodString;
2763
+ compatibilityFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
2764
+ routes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2765
+ method: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
2766
+ POST: "POST";
2767
+ PUT: "PUT";
2768
+ GET: "GET";
2769
+ HEAD: "HEAD";
2770
+ PATCH: "PATCH";
2771
+ DELETE: "DELETE";
2772
+ OPTIONS: "OPTIONS";
2773
+ }>>>;
2774
+ path: z.ZodString;
2775
+ subtree: z.ZodDefault<z.ZodBoolean>;
2776
+ }, z.core.$strict>>>;
2777
+ capabilities: z.ZodDefault<z.ZodObject<{
2778
+ db: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2779
+ fetch: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2780
+ auth: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2781
+ env: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2782
+ realtime: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2783
+ logging: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2784
+ gravatar: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2785
+ spam: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2786
+ email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2787
+ content: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2788
+ }, z.core.$strip>>;
2789
+ executionState: z.ZodEnum<{
2790
+ ready: "ready";
2791
+ absent: "absent";
2792
+ serving: "serving";
2793
+ }>;
2794
+ bundleSize: z.ZodNumber;
2795
+ bundleSha256: z.ZodString;
2796
+ variables: z.ZodObject<{
2797
+ source: z.ZodLiteral<"spacefast-variables">;
2798
+ names: z.ZodDefault<z.ZodArray<z.ZodString>>;
2799
+ }, z.core.$strict>;
2800
+ }, z.core.$strict>>;
2801
+ }, z.core.$strict>>;
2802
+ pendingApp: z.ZodNullable<z.ZodObject<{
2803
+ capsule: z.ZodNullable<z.ZodObject<{
2804
+ artifactId: z.ZodString;
2805
+ appName: z.ZodString;
2806
+ serverRuntime: z.ZodLiteral<"quickjs-rust">;
2807
+ inspect: z.ZodObject<{
2808
+ policy: z.ZodEnum<{
2567
2809
  private: "private";
2810
+ public: "public";
2568
2811
  }>;
2569
2812
  }, z.core.$strict>;
2570
2813
  install: z.ZodObject<{
@@ -2576,7 +2819,7 @@ export declare const spaceRuntimeStatusSchema: z.ZodObject<{
2576
2819
  binary: z.ZodObject<{
2577
2820
  path: z.ZodLiteral<"__spacefast/zero/bin/stattic-runtime">;
2578
2821
  compatibilityTarget: z.ZodObject<{
2579
- profile: z.ZodLiteral<"wpcloud-linux-x86_64-gnu-v1">;
2822
+ profile: z.ZodLiteral<"linux-x86_64-gnu-v1">;
2580
2823
  os: z.ZodLiteral<"linux">;
2581
2824
  cpu: z.ZodLiteral<"x86_64">;
2582
2825
  libc: z.ZodLiteral<"glibc">;
@@ -2612,6 +2855,8 @@ export declare const spaceRuntimeStatusSchema: z.ZodObject<{
2612
2855
  path: z.ZodString;
2613
2856
  }, z.core.$strict>>>;
2614
2857
  sockets: z.ZodDefault<z.ZodArray<z.ZodString>>;
2858
+ serverBundleSize: z.ZodNullable<z.ZodNumber>;
2859
+ clientBundleSize: z.ZodNullable<z.ZodNumber>;
2615
2860
  migrationCount: z.ZodNumber;
2616
2861
  schemaHash: z.ZodNullable<z.ZodString>;
2617
2862
  variables: z.ZodObject<{
@@ -2666,6 +2911,7 @@ export declare const spaceRuntimeStatusSchema: z.ZodObject<{
2666
2911
  gravatar: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2667
2912
  spam: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2668
2913
  email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2914
+ content: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2669
2915
  }, z.core.$strip>>;
2670
2916
  executionState: z.ZodEnum<{
2671
2917
  ready: "ready";
@@ -2681,39 +2927,16 @@ export declare const spaceRuntimeStatusSchema: z.ZodObject<{
2681
2927
  }, z.core.$strict>>;
2682
2928
  }, z.core.$strict>>;
2683
2929
  }, z.core.$strip>;
2684
- export declare const spaceApplyChangeBaseSchema: z.ZodObject<{
2685
- kind: z.ZodEnum<{
2686
- routing: "routing";
2687
- access: "access";
2688
- variable: "variable";
2689
- settings: "settings";
2690
- }>;
2691
- name: z.ZodString;
2692
- label: z.ZodString;
2693
- }, z.core.$strip>;
2694
- export declare const spaceApplyModeSchema: z.ZodEnum<{
2695
- stage: "stage";
2696
- apply: "apply";
2697
- }>;
2698
- export declare const spaceApplyChangeSchema: z.ZodObject<{
2699
- kind: z.ZodEnum<{
2700
- routing: "routing";
2701
- access: "access";
2702
- variable: "variable";
2703
- settings: "settings";
2704
- }>;
2705
- name: z.ZodString;
2706
- label: z.ZodString;
2707
- id: z.ZodString;
2708
- sourceSurface: z.ZodString;
2709
- applyMode: z.ZodEnum<{
2710
- stage: "stage";
2711
- apply: "apply";
2712
- }>;
2713
- before: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2714
- after: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2715
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2716
- }, z.core.$strip>;
2930
+ /**
2931
+ * Where a space's runtime stands against its desired state. `POST
2932
+ * /v1/spaces/{spaceId}/apply` returns this in the platform mutation envelope,
2933
+ * whose `operation` handle polls at `GET /v1/operations/{operationId}`; `GET
2934
+ * /v1/spaces/{spaceId}/apply-state` returns the same shape as a plain read.
2935
+ *
2936
+ * None of these fields live on an operation record: the operation says whether
2937
+ * the last apply ran, this says what the space is serving, what it wants to
2938
+ * serve, and whether you may ask for it now.
2939
+ */
2717
2940
  export declare const spaceApplyStateSchema: z.ZodObject<{
2718
2941
  status: z.ZodEnum<{
2719
2942
  live: "live";
@@ -2723,143 +2946,6 @@ export declare const spaceApplyStateSchema: z.ZodObject<{
2723
2946
  }>;
2724
2947
  desiredRevision: z.ZodNullable<z.ZodString>;
2725
2948
  appliedRevision: z.ZodNullable<z.ZodString>;
2726
- pendingChangeCount: z.ZodNumber;
2727
- changes: z.ZodArray<z.ZodObject<{
2728
- kind: z.ZodEnum<{
2729
- routing: "routing";
2730
- access: "access";
2731
- variable: "variable";
2732
- settings: "settings";
2733
- }>;
2734
- name: z.ZodString;
2735
- label: z.ZodString;
2736
- id: z.ZodString;
2737
- sourceSurface: z.ZodString;
2738
- applyMode: z.ZodEnum<{
2739
- stage: "stage";
2740
- apply: "apply";
2741
- }>;
2742
- before: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2743
- after: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2744
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2745
- }, z.core.$strip>>;
2746
- operation: z.ZodNullable<z.ZodObject<{
2747
- id: z.ZodString;
2748
- kind: z.ZodString;
2749
- status: z.ZodEnum<{
2750
- failed: "failed";
2751
- canceled: "canceled";
2752
- queued: "queued";
2753
- running: "running";
2754
- succeeded: "succeeded";
2755
- }>;
2756
- resources: z.ZodArray<z.ZodObject<{
2757
- type: z.ZodString;
2758
- id: z.ZodString;
2759
- }, z.core.$strip>>;
2760
- progress: z.ZodOptional<z.ZodObject<{
2761
- total: z.ZodNumber;
2762
- completed: z.ZodNumber;
2763
- failed: z.ZodNumber;
2764
- }, z.core.$strip>>;
2765
- diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2766
- code: z.ZodString;
2767
- severity: z.ZodEnum<{
2768
- info: "info";
2769
- warning: "warning";
2770
- error: "error";
2771
- }>;
2772
- message: z.ZodString;
2773
- path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2774
- provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2775
- registrar: "registrar";
2776
- wpcloud: "wpcloud";
2777
- dns: "dns";
2778
- runtime: "runtime";
2779
- }>>>;
2780
- details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2781
- fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2782
- retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2783
- }, z.core.$strip>>>;
2784
- createdAt: z.ZodString;
2785
- finishedAt: z.ZodOptional<z.ZodString>;
2786
- }, z.core.$strip>>;
2787
2949
  lastError: z.ZodNullable<z.ZodString>;
2788
2950
  canApplyNow: z.ZodBoolean;
2789
2951
  }, z.core.$strip>;
2790
- export declare const spaceApplyResponseSchema: z.ZodObject<{
2791
- applied: z.ZodBoolean;
2792
- applyState: z.ZodObject<{
2793
- status: z.ZodEnum<{
2794
- live: "live";
2795
- failed: "failed";
2796
- pending: "pending";
2797
- applying: "applying";
2798
- }>;
2799
- desiredRevision: z.ZodNullable<z.ZodString>;
2800
- appliedRevision: z.ZodNullable<z.ZodString>;
2801
- pendingChangeCount: z.ZodNumber;
2802
- changes: z.ZodArray<z.ZodObject<{
2803
- kind: z.ZodEnum<{
2804
- routing: "routing";
2805
- access: "access";
2806
- variable: "variable";
2807
- settings: "settings";
2808
- }>;
2809
- name: z.ZodString;
2810
- label: z.ZodString;
2811
- id: z.ZodString;
2812
- sourceSurface: z.ZodString;
2813
- applyMode: z.ZodEnum<{
2814
- stage: "stage";
2815
- apply: "apply";
2816
- }>;
2817
- before: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2818
- after: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2819
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2820
- }, z.core.$strip>>;
2821
- operation: z.ZodNullable<z.ZodObject<{
2822
- id: z.ZodString;
2823
- kind: z.ZodString;
2824
- status: z.ZodEnum<{
2825
- failed: "failed";
2826
- canceled: "canceled";
2827
- queued: "queued";
2828
- running: "running";
2829
- succeeded: "succeeded";
2830
- }>;
2831
- resources: z.ZodArray<z.ZodObject<{
2832
- type: z.ZodString;
2833
- id: z.ZodString;
2834
- }, z.core.$strip>>;
2835
- progress: z.ZodOptional<z.ZodObject<{
2836
- total: z.ZodNumber;
2837
- completed: z.ZodNumber;
2838
- failed: z.ZodNumber;
2839
- }, z.core.$strip>>;
2840
- diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2841
- code: z.ZodString;
2842
- severity: z.ZodEnum<{
2843
- info: "info";
2844
- warning: "warning";
2845
- error: "error";
2846
- }>;
2847
- message: z.ZodString;
2848
- path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2849
- provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2850
- registrar: "registrar";
2851
- wpcloud: "wpcloud";
2852
- dns: "dns";
2853
- runtime: "runtime";
2854
- }>>>;
2855
- details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2856
- fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2857
- retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2858
- }, z.core.$strip>>>;
2859
- createdAt: z.ZodString;
2860
- finishedAt: z.ZodOptional<z.ZodString>;
2861
- }, z.core.$strip>>;
2862
- lastError: z.ZodNullable<z.ZodString>;
2863
- canApplyNow: z.ZodBoolean;
2864
- }, z.core.$strip>;
2865
- }, z.core.$strip>;