@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
@@ -0,0 +1,141 @@
1
+ import { z } from "zod";
2
+ import { contentProgramSha256Schema } from "./content-program.js";
3
+ import { httpMethodSchema } from "./execution.js";
4
+ import { registeredIdSchema } from "./ids.js";
5
+ const routeInventoryMethodsSchema = z
6
+ .array(z.union([z.literal("*"), httpMethodSchema]))
7
+ .min(1)
8
+ .refine((methods) => new Set(methods).size === methods.length, {
9
+ message: "route methods must be unique",
10
+ })
11
+ .refine((methods) => !methods.includes("*") || methods.length === 1, {
12
+ message: "the wildcard method cannot be combined with explicit methods",
13
+ });
14
+ // This is mutable edge policy inherited by an immutable Version. Ability
15
+ // endpoint admission is a separate dispatcher-owned contract.
16
+ export const routeInventoryEdgeAuthV1Schema = z.literal("inherit");
17
+ const routeInventoryRecordFields = {
18
+ id: contentProgramSha256Schema,
19
+ source: z.string().min(1).max(2_048),
20
+ host: z.string().min(1).max(255),
21
+ path: z.string().min(1).max(2_048).startsWith("/"),
22
+ methods: routeInventoryMethodsSchema,
23
+ auth: routeInventoryEdgeAuthV1Schema,
24
+ };
25
+ const routingRecordFields = {
26
+ ...routeInventoryRecordFields,
27
+ runtime: z.literal("routing"),
28
+ destination: z.string(),
29
+ };
30
+ const redirectStatusSchema = z.union([
31
+ z.literal(301),
32
+ z.literal(302),
33
+ z.literal(303),
34
+ z.literal(307),
35
+ z.literal(308),
36
+ ]);
37
+ export const routeInventoryRecordV1Schema = z.discriminatedUnion("kind", [
38
+ z
39
+ .object({ ...routingRecordFields, kind: z.literal("redirect"), status: redirectStatusSchema })
40
+ .strict(),
41
+ z.object({ ...routingRecordFields, kind: z.literal("rewrite"), status: z.literal(200) }).strict(),
42
+ z
43
+ .object({
44
+ ...routingRecordFields,
45
+ kind: z.literal("proxy"),
46
+ status: z.literal(200),
47
+ cache: z.literal("shared").optional(),
48
+ })
49
+ .strict(),
50
+ z
51
+ .object({ ...routingRecordFields, kind: z.literal("not-found"), status: z.literal(404) })
52
+ .strict(),
53
+ z
54
+ .object({
55
+ ...routeInventoryRecordFields,
56
+ kind: z.literal("functions"),
57
+ runtime: z.literal("cloudflare-worker"),
58
+ })
59
+ .strict(),
60
+ z
61
+ .object({
62
+ ...routeInventoryRecordFields,
63
+ kind: z.literal("php-function"),
64
+ runtime: z.literal("php"),
65
+ })
66
+ .strict(),
67
+ z
68
+ .object({
69
+ ...routeInventoryRecordFields,
70
+ kind: z.literal("zero-control"),
71
+ runtime: z.literal("php"),
72
+ })
73
+ .strict(),
74
+ z
75
+ .object({
76
+ ...routeInventoryRecordFields,
77
+ kind: z.literal("zero-endpoint"),
78
+ runtime: z.literal("quick-js"),
79
+ })
80
+ .strict(),
81
+ ]);
82
+ export const routeInventoryV1Schema = z
83
+ .object({
84
+ format: z.literal("stattic.route-inventory.v1"),
85
+ routes: z.array(routeInventoryRecordV1Schema).max(100_000),
86
+ })
87
+ .strict()
88
+ .refine((inventory) => new Set(inventory.routes.map((route) => route.id)).size === inventory.routes.length, {
89
+ path: ["routes"],
90
+ message: "route inventory ids must be unique",
91
+ });
92
+ const spaceRouteSnapshotMatchV1Schema = z.discriminatedUnion("kind", [
93
+ z
94
+ .object({ kind: z.literal("exact"), path: z.string().min(1).max(2_048).startsWith("/") })
95
+ .strict(),
96
+ z
97
+ .object({
98
+ kind: z.literal("pattern"),
99
+ pattern: z.string().min(1).max(2_048),
100
+ })
101
+ .strict(),
102
+ ]);
103
+ export const spaceRouteSnapshotRouteV1Schema = z
104
+ .object({
105
+ id: contentProgramSha256Schema,
106
+ sourceRuleId: z.number().int().positive(),
107
+ priority: z.number().int().nonnegative(),
108
+ host: z.string().min(1).max(255),
109
+ methods: routeInventoryMethodsSchema,
110
+ match: spaceRouteSnapshotMatchV1Schema,
111
+ destination: z.string().min(1).max(8_192),
112
+ status: redirectStatusSchema,
113
+ })
114
+ .strict();
115
+ export const spaceRouteSnapshotV1Schema = z
116
+ .object({
117
+ format: z.literal("spacefast.space-route-snapshot"),
118
+ version: z.literal(1),
119
+ spaceId: registeredIdSchema("spc"),
120
+ source: z.literal("wordpress-redirection"),
121
+ capturedAt: z.string().datetime({ offset: true }),
122
+ revision: contentProgramSha256Schema,
123
+ routes: z.array(spaceRouteSnapshotRouteV1Schema).max(100_000),
124
+ })
125
+ .strict()
126
+ .superRefine((snapshot, context) => {
127
+ if (new Set(snapshot.routes.map((route) => route.id)).size !== snapshot.routes.length) {
128
+ context.addIssue({
129
+ code: "custom",
130
+ path: ["routes"],
131
+ message: "route snapshot ids must be unique",
132
+ });
133
+ }
134
+ if (new Set(snapshot.routes.map((route) => route.sourceRuleId)).size !== snapshot.routes.length) {
135
+ context.addIssue({
136
+ code: "custom",
137
+ path: ["routes"],
138
+ message: "route snapshot source rule ids must be unique",
139
+ });
140
+ }
141
+ });
@@ -1,8 +1,10 @@
1
1
  import { z } from "zod";
2
+ import { manifestFileSchema } from "./internal.js";
2
3
  export declare const RUNTIME_CHANGED_PATHS_MAX = 900;
3
4
  export declare const runtimePurgeReceiptSchema: z.ZodObject<{
4
5
  status: z.ZodEnum<{
5
6
  failed: "failed";
7
+ queued: "queued";
6
8
  pending: "pending";
7
9
  ok: "ok";
8
10
  }>;
@@ -12,14 +14,12 @@ export declare const runtimePurgeReceiptSchema: z.ZodObject<{
12
14
  }>;
13
15
  urls: z.ZodOptional<z.ZodNumber>;
14
16
  }, z.core.$strip>;
15
- export declare const runtimeSpacePurgeRequestSchema: z.ZodObject<{
16
- urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
- }, z.core.$strip>;
18
17
  export declare const runtimeSpacePurgeResponseSchema: z.ZodObject<{
19
18
  space_id: z.ZodString;
20
19
  purge: z.ZodObject<{
21
20
  status: z.ZodEnum<{
22
21
  failed: "failed";
22
+ queued: "queued";
23
23
  pending: "pending";
24
24
  ok: "ok";
25
25
  }>;
@@ -47,6 +47,12 @@ export declare const runtimeVersionFilesResponseSchema: z.ZodObject<{
47
47
  }, z.core.$strip>>;
48
48
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
49
  }, z.core.$strip>;
50
+ export declare const runtimeRetentionModeSchema: z.ZodEnum<{
51
+ all: "all";
52
+ list: "list";
53
+ none: "none";
54
+ }>;
55
+ export type RuntimeRetentionMode = z.infer<typeof runtimeRetentionModeSchema>;
50
56
  export declare const runtimeVersionCreateRequestSchema: z.ZodObject<{
51
57
  version_id: z.ZodOptional<z.ZodString>;
52
58
  files: z.ZodArray<z.ZodObject<{
@@ -56,6 +62,11 @@ export declare const runtimeVersionCreateRequestSchema: z.ZodObject<{
56
62
  contentType: z.ZodOptional<z.ZodString>;
57
63
  sourceUrl: z.ZodOptional<z.ZodString>;
58
64
  }, z.core.$strip>>;
65
+ retention: z.ZodEnum<{
66
+ all: "all";
67
+ list: "list";
68
+ none: "none";
69
+ }>;
59
70
  retained_files: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
71
  path: z.ZodString;
61
72
  size: z.ZodNumber;
@@ -68,6 +79,32 @@ export declare const runtimeVersionCreateRequestSchema: z.ZodObject<{
68
79
  expires_at: z.ZodOptional<z.ZodString>;
69
80
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
70
81
  }, z.core.$strip>;
82
+ export declare const runtimeStaticZipIngestResponseSchema: z.ZodObject<{
83
+ space_id: z.ZodString;
84
+ files: z.ZodArray<z.ZodObject<{
85
+ path: z.ZodString;
86
+ size: z.ZodNumber;
87
+ sha256: z.ZodString;
88
+ sniff: z.ZodEnum<{
89
+ text: "text";
90
+ binary: "binary";
91
+ png: "png";
92
+ jpeg: "jpeg";
93
+ gif: "gif";
94
+ webp: "webp";
95
+ avif: "avif";
96
+ ico: "ico";
97
+ pdf: "pdf";
98
+ gzip: "gzip";
99
+ woff: "woff";
100
+ woff2: "woff2";
101
+ ttf: "ttf";
102
+ otf: "otf";
103
+ }>;
104
+ }, z.core.$strip>>;
105
+ pin_expires_at: z.ZodString;
106
+ }, z.core.$strip>;
107
+ export type RuntimeStaticZipIngestResponse = z.infer<typeof runtimeStaticZipIngestResponseSchema>;
71
108
  export declare const runtimeVersionCreateResponseSchema: z.ZodObject<{
72
109
  space_id: z.ZodString;
73
110
  version_id: z.ZodString;
@@ -87,6 +124,11 @@ export declare const runtimeUploadSessionDescriptorSchema: z.ZodObject<{
87
124
  contentType: z.ZodOptional<z.ZodString>;
88
125
  sourceUrl: z.ZodOptional<z.ZodString>;
89
126
  }, z.core.$strip>>;
127
+ retention: z.ZodEnum<{
128
+ all: "all";
129
+ list: "list";
130
+ none: "none";
131
+ }>;
90
132
  retained_files: z.ZodOptional<z.ZodArray<z.ZodObject<{
91
133
  path: z.ZodString;
92
134
  size: z.ZodNumber;
@@ -98,6 +140,26 @@ export declare const runtimeUploadSessionDescriptorSchema: z.ZodObject<{
98
140
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
99
141
  }, z.core.$strip>;
100
142
  export type RuntimeUploadSessionDescriptor = z.infer<typeof runtimeUploadSessionDescriptorSchema>;
143
+ /**
144
+ * The retention half of a create-version body or session descriptor.
145
+ * `retained_files` is omitted when empty; with an explicit `retention` that
146
+ * omission means retain nothing beyond what `all` materializes.
147
+ */
148
+ export declare function runtimeRetentionFields(input: {
149
+ retention: RuntimeRetentionMode;
150
+ retainedFiles: readonly z.infer<typeof manifestFileSchema>[];
151
+ reusableVersionId: string | null;
152
+ }): {
153
+ reusable_version_id?: string;
154
+ retained_files?: {
155
+ path: string;
156
+ size: number;
157
+ sha256?: string | undefined;
158
+ contentType?: string | undefined;
159
+ sourceUrl?: string | undefined;
160
+ }[];
161
+ retention: "all" | "list" | "none";
162
+ };
101
163
  export declare const RUNTIME_UPLOAD_SESSION_DESCRIPTOR_MAX_BYTES = 4096;
102
164
  export declare const RUNTIME_UPLOAD_AUTHORIZATION_HEADER_MAX_BYTES: number;
103
165
  export declare const RUNTIME_UPLOAD_SESSION_STORED_MAX_BYTES: number;
@@ -164,7 +226,6 @@ export declare const runtimeAccessPageDescriptorSchema: z.ZodObject<{
164
226
  credential: z.ZodString;
165
227
  }, z.core.$strip>>;
166
228
  }, z.core.$strict>;
167
- export type RuntimeAccessPageDescriptor = z.infer<typeof runtimeAccessPageDescriptorSchema>;
168
229
  export declare const RUNTIME_AUTHORIZATION_GRANT_LIMIT = 1024;
169
230
  export declare const runtimeAuthorizationProjectionSchema: z.ZodObject<{
170
231
  generation: z.ZodNumber;
@@ -283,6 +344,11 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
283
344
  contentType: z.ZodOptional<z.ZodString>;
284
345
  sourceUrl: z.ZodOptional<z.ZodString>;
285
346
  }, z.core.$strip>>;
347
+ retention: z.ZodEnum<{
348
+ all: "all";
349
+ list: "list";
350
+ none: "none";
351
+ }>;
286
352
  retained_files: z.ZodOptional<z.ZodArray<z.ZodObject<{
287
353
  path: z.ZodString;
288
354
  size: z.ZodNumber;
@@ -293,6 +359,7 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
293
359
  reusable_version_id: z.ZodOptional<z.ZodString>;
294
360
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
295
361
  }, z.core.$strip>>;
362
+ previous_version_id: z.ZodOptional<z.ZodString>;
296
363
  zero: z.ZodOptional<z.ZodObject<{
297
364
  auth: z.ZodDefault<z.ZodObject<{
298
365
  provider: z.ZodDefault<z.ZodLiteral<"gravatar">>;
@@ -302,10 +369,6 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
302
369
  signOutUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
303
370
  returnToParam: z.ZodDefault<z.ZodString>;
304
371
  }, z.core.$strict>>;
305
- variables: z.ZodObject<{
306
- source: z.ZodLiteral<"stattic-variables">;
307
- names: z.ZodDefault<z.ZodArray<z.ZodString>>;
308
- }, z.core.$strict>;
309
372
  realtime: z.ZodObject<{
310
373
  mode: z.ZodEnum<{
311
374
  local: "local";
@@ -366,7 +429,7 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
366
429
  sockets: z.ZodDefault<z.ZodArray<z.ZodString>>;
367
430
  }, z.core.$strict>;
368
431
  db: z.ZodObject<{
369
- backend: z.ZodLiteral<"wpcloud-mysql">;
432
+ backend: z.ZodLiteral<"mysql">;
370
433
  migrations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
371
434
  op: z.ZodLiteral<"create_table">;
372
435
  table: z.ZodString;
@@ -451,6 +514,10 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
451
514
  }, z.core.$strip>>>;
452
515
  }, z.core.$strict>;
453
516
  }, z.core.$strict>;
517
+ variables: z.ZodObject<{
518
+ source: z.ZodLiteral<"stattic-variables">;
519
+ names: z.ZodDefault<z.ZodArray<z.ZodString>>;
520
+ }, z.core.$strict>;
454
521
  runtimeKind: z.ZodLiteral<"zero">;
455
522
  migrations: z.ZodDefault<z.ZodNullable<z.ZodObject<{
456
523
  format: z.ZodLiteral<"stattic.zero.migrations.v1">;
@@ -519,7 +586,7 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
519
586
  binary: z.ZodObject<{
520
587
  path: z.ZodLiteral<"__spacefast/zero/bin/stattic-runtime">;
521
588
  compatibilityTarget: z.ZodObject<{
522
- profile: z.ZodLiteral<"wpcloud-linux-x86_64-gnu-v1">;
589
+ profile: z.ZodLiteral<"linux-x86_64-gnu-v1">;
523
590
  os: z.ZodLiteral<"linux">;
524
591
  cpu: z.ZodLiteral<"x86_64">;
525
592
  libc: z.ZodLiteral<"glibc">;
@@ -540,8 +607,8 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
540
607
  }, z.core.$strict>;
541
608
  inspect: z.ZodDefault<z.ZodObject<{
542
609
  policy: z.ZodDefault<z.ZodEnum<{
543
- public: "public";
544
610
  private: "private";
611
+ public: "public";
545
612
  }>>;
546
613
  }, z.core.$strict>>;
547
614
  variableValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -562,6 +629,12 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
562
629
  sha256: z.ZodString;
563
630
  size: z.ZodNumber;
564
631
  }, z.core.$strict>;
632
+ seed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
633
+ path: z.ZodString;
634
+ sha256: z.ZodString;
635
+ size: z.ZodNumber;
636
+ entries: z.ZodNumber;
637
+ }, z.core.$strict>>>;
565
638
  compatibilityDate: z.ZodString;
566
639
  compatibilityFlags: z.ZodDefault<z.ZodArray<z.ZodString>>;
567
640
  routes: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -577,6 +650,7 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
577
650
  path: z.ZodString;
578
651
  subtree: z.ZodDefault<z.ZodBoolean>;
579
652
  }, z.core.$strict>>>;
653
+ bypassCookies: z.ZodDefault<z.ZodArray<z.ZodString>>;
580
654
  capabilities: z.ZodDefault<z.ZodObject<{
581
655
  db: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
582
656
  fetch: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -587,6 +661,7 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
587
661
  gravatar: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
588
662
  spam: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
589
663
  email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
664
+ content: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
590
665
  }, z.core.$strip>>;
591
666
  platform: z.ZodDefault<z.ZodObject<{
592
667
  nextCache: z.ZodDefault<z.ZodBoolean>;
@@ -599,6 +674,7 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
599
674
  host: z.ZodObject<{
600
675
  hostname: z.ZodString;
601
676
  bundleUrl: z.ZodString;
677
+ seedUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
602
678
  }, z.core.$strict>;
603
679
  grantedCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<{
604
680
  fetch: "fetch";
@@ -622,6 +698,9 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
622
698
  url: z.ZodString;
623
699
  token: z.ZodString;
624
700
  }, z.core.$strict>>>;
701
+ purge: z.ZodDefault<z.ZodNullable<z.ZodObject<{
702
+ token: z.ZodString;
703
+ }, z.core.$strict>>>;
625
704
  variableValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
626
705
  }, z.core.$strict>>;
627
706
  variable_scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -662,13 +741,26 @@ export declare const runtimeVersionFinalizeRequestSchema: z.ZodObject<{
662
741
  pages: z.ZodOptional<z.ZodObject<{
663
742
  routes: z.ZodRecord<z.ZodString, z.ZodObject<{
664
743
  pages: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
665
- denied: "denied";
666
744
  access: "access";
745
+ denied: "denied";
667
746
  404: "404";
668
747
  }>, z.ZodString>>;
669
748
  index: z.ZodOptional<z.ZodString>;
670
749
  }, z.core.$strip>>;
671
750
  previews: z.ZodRecord<z.ZodString, z.ZodString>;
751
+ platform: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
752
+ legal: "legal";
753
+ login: "login";
754
+ suspended: "suspended";
755
+ undeployed: "undeployed";
756
+ gone: "gone";
757
+ "runtime-error": "runtime-error";
758
+ "rate-limited": "rate-limited";
759
+ "tier-unavailable": "tier-unavailable";
760
+ "proxy-error": "proxy-error";
761
+ "method-not-allowed": "method-not-allowed";
762
+ "content-too-large": "content-too-large";
763
+ }>, z.ZodString>>;
672
764
  collab: z.ZodOptional<z.ZodString>;
673
765
  }, z.core.$strip>>;
674
766
  experimental_gutenberg: z.ZodOptional<z.ZodBoolean>;
@@ -921,6 +1013,36 @@ export declare const runtimeCompileDiagnosticSchema: z.ZodObject<{
921
1013
  path: z.ZodOptional<z.ZodString>;
922
1014
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
923
1015
  }, z.core.$strip>;
1016
+ export declare const runtimeRouteInventorySchema: z.ZodObject<{
1017
+ format: z.ZodLiteral<"stattic.route-inventory.v1">;
1018
+ routes: z.ZodArray<z.ZodObject<{
1019
+ id: z.ZodString;
1020
+ kind: z.ZodEnum<{
1021
+ proxy: "proxy";
1022
+ functions: "functions";
1023
+ redirect: "redirect";
1024
+ rewrite: "rewrite";
1025
+ "not-found": "not-found";
1026
+ "php-function": "php-function";
1027
+ "zero-control": "zero-control";
1028
+ "zero-endpoint": "zero-endpoint";
1029
+ }>;
1030
+ source: z.ZodString;
1031
+ runtime: z.ZodEnum<{
1032
+ routing: "routing";
1033
+ php: "php";
1034
+ "cloudflare-worker": "cloudflare-worker";
1035
+ "quick-js": "quick-js";
1036
+ }>;
1037
+ host: z.ZodString;
1038
+ path: z.ZodString;
1039
+ methods: z.ZodArray<z.ZodString>;
1040
+ auth: z.ZodLiteral<"inherit">;
1041
+ cache: z.ZodOptional<z.ZodLiteral<"shared">>;
1042
+ destination: z.ZodOptional<z.ZodString>;
1043
+ status: z.ZodOptional<z.ZodNumber>;
1044
+ }, z.core.$strip>>;
1045
+ }, z.core.$strip>;
924
1046
  export declare const runtimeCompiledRoutingSchema: z.ZodObject<{
925
1047
  redirect_rule_count: z.ZodNumber;
926
1048
  header_rule_count: z.ZodNumber;
@@ -930,10 +1052,28 @@ export declare const runtimeCompiledRoutingSchema: z.ZodObject<{
930
1052
  destination: z.ZodString;
931
1053
  }, z.core.$strip>>>;
932
1054
  }, z.core.$strip>;
1055
+ export declare const runtimeFinalizeTelemetrySchema: z.ZodObject<{
1056
+ stagedFiles: z.ZodNumber;
1057
+ generatedFiles: z.ZodNumber;
1058
+ decoratedFiles: z.ZodNumber;
1059
+ skippedFiles: z.ZodNumber;
1060
+ stagingMs: z.ZodNumber;
1061
+ templateSubstitutionMs: z.ZodNumber;
1062
+ htmlPipelineMs: z.ZodNumber;
1063
+ conventionsMs: z.ZodOptional<z.ZodNumber>;
1064
+ zeroCompileMs: z.ZodOptional<z.ZodNumber>;
1065
+ blobInstallMs: z.ZodNumber;
1066
+ listingsMs: z.ZodOptional<z.ZodNumber>;
1067
+ responseTablesMs: z.ZodNumber;
1068
+ catalogDeltaMs: z.ZodNumber;
1069
+ artifactsWriteMs: z.ZodOptional<z.ZodNumber>;
1070
+ totalMs: z.ZodNumber;
1071
+ }, z.core.$strip>;
933
1072
  export declare const runtimeVersionFinalizeResponseSchema: z.ZodObject<{
934
1073
  purge: z.ZodOptional<z.ZodObject<{
935
1074
  status: z.ZodEnum<{
936
1075
  failed: "failed";
1076
+ queued: "queued";
937
1077
  pending: "pending";
938
1078
  ok: "ok";
939
1079
  }>;
@@ -967,6 +1107,36 @@ export declare const runtimeVersionFinalizeResponseSchema: z.ZodObject<{
967
1107
  destination: z.ZodString;
968
1108
  }, z.core.$strip>>>;
969
1109
  }, z.core.$strip>>;
1110
+ route_inventory: z.ZodOptional<z.ZodObject<{
1111
+ format: z.ZodLiteral<"stattic.route-inventory.v1">;
1112
+ routes: z.ZodArray<z.ZodObject<{
1113
+ id: z.ZodString;
1114
+ kind: z.ZodEnum<{
1115
+ proxy: "proxy";
1116
+ functions: "functions";
1117
+ redirect: "redirect";
1118
+ rewrite: "rewrite";
1119
+ "not-found": "not-found";
1120
+ "php-function": "php-function";
1121
+ "zero-control": "zero-control";
1122
+ "zero-endpoint": "zero-endpoint";
1123
+ }>;
1124
+ source: z.ZodString;
1125
+ runtime: z.ZodEnum<{
1126
+ routing: "routing";
1127
+ php: "php";
1128
+ "cloudflare-worker": "cloudflare-worker";
1129
+ "quick-js": "quick-js";
1130
+ }>;
1131
+ host: z.ZodString;
1132
+ path: z.ZodString;
1133
+ methods: z.ZodArray<z.ZodString>;
1134
+ auth: z.ZodLiteral<"inherit">;
1135
+ cache: z.ZodOptional<z.ZodLiteral<"shared">>;
1136
+ destination: z.ZodOptional<z.ZodString>;
1137
+ status: z.ZodOptional<z.ZodNumber>;
1138
+ }, z.core.$strip>>;
1139
+ }, z.core.$strip>>;
970
1140
  variable_digests: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
971
1141
  system_variable_dependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
972
1142
  manifest: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -990,6 +1160,23 @@ export declare const runtimeVersionFinalizeResponseSchema: z.ZodObject<{
990
1160
  path: z.ZodString;
991
1161
  expected_statuses: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<200>, z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>, z.ZodLiteral<401>, z.ZodLiteral<403>]>, z.ZodLiteral<404>]>>;
992
1162
  }, z.core.$strip>;
1163
+ telemetry: z.ZodOptional<z.ZodObject<{
1164
+ stagedFiles: z.ZodNumber;
1165
+ generatedFiles: z.ZodNumber;
1166
+ decoratedFiles: z.ZodNumber;
1167
+ skippedFiles: z.ZodNumber;
1168
+ stagingMs: z.ZodNumber;
1169
+ templateSubstitutionMs: z.ZodNumber;
1170
+ htmlPipelineMs: z.ZodNumber;
1171
+ conventionsMs: z.ZodOptional<z.ZodNumber>;
1172
+ zeroCompileMs: z.ZodOptional<z.ZodNumber>;
1173
+ blobInstallMs: z.ZodNumber;
1174
+ listingsMs: z.ZodOptional<z.ZodNumber>;
1175
+ responseTablesMs: z.ZodNumber;
1176
+ catalogDeltaMs: z.ZodNumber;
1177
+ artifactsWriteMs: z.ZodOptional<z.ZodNumber>;
1178
+ totalMs: z.ZodNumber;
1179
+ }, z.core.$strip>>;
993
1180
  activation_event_id: z.ZodOptional<z.ZodString>;
994
1181
  }, z.core.$strip>;
995
1182
  export declare const runtimeZeroMigrationsApplyResponseSchema: z.ZodObject<{
@@ -1190,6 +1377,7 @@ export declare const runtimeRouteUpdateResponseSchema: z.ZodObject<{
1190
1377
  purge: z.ZodOptional<z.ZodObject<{
1191
1378
  status: z.ZodEnum<{
1192
1379
  failed: "failed";
1380
+ queued: "queued";
1193
1381
  pending: "pending";
1194
1382
  ok: "ok";
1195
1383
  }>;
@@ -1209,6 +1397,7 @@ export declare const runtimeHostnameIntentUpdateResponseSchema: z.ZodObject<{
1209
1397
  purge: z.ZodOptional<z.ZodObject<{
1210
1398
  status: z.ZodEnum<{
1211
1399
  failed: "failed";
1400
+ queued: "queued";
1212
1401
  pending: "pending";
1213
1402
  ok: "ok";
1214
1403
  }>;
@@ -1235,6 +1424,7 @@ export declare const runtimeTombstonesUpdateResponseSchema: z.ZodObject<{
1235
1424
  purge: z.ZodOptional<z.ZodObject<{
1236
1425
  status: z.ZodEnum<{
1237
1426
  failed: "failed";
1427
+ queued: "queued";
1238
1428
  pending: "pending";
1239
1429
  ok: "ok";
1240
1430
  }>;
@@ -1247,45 +1437,11 @@ export declare const runtimeTombstonesUpdateResponseSchema: z.ZodObject<{
1247
1437
  space_id: z.ZodString;
1248
1438
  tombstone_count: z.ZodNumber;
1249
1439
  }, z.core.$strip>;
1250
- export declare const runtimeRetentionPolicyUpdateRequestSchema: z.ZodObject<{
1251
- prunable_version_ids: z.ZodArray<z.ZodString>;
1252
- }, z.core.$strip>;
1253
- export declare const runtimeRetentionPolicyUpdateResponseSchema: z.ZodObject<{
1254
- purge: z.ZodOptional<z.ZodObject<{
1255
- status: z.ZodEnum<{
1256
- failed: "failed";
1257
- pending: "pending";
1258
- ok: "ok";
1259
- }>;
1260
- mode: z.ZodEnum<{
1261
- domain: "domain";
1262
- urls: "urls";
1263
- }>;
1264
- urls: z.ZodOptional<z.ZodNumber>;
1265
- }, z.core.$strip>>;
1266
- space_id: z.ZodString;
1267
- prunable_count: z.ZodNumber;
1268
- }, z.core.$strip>;
1269
- export declare const runtimeSpaceDeleteResponseSchema: z.ZodObject<{
1270
- purge: z.ZodOptional<z.ZodObject<{
1271
- status: z.ZodEnum<{
1272
- failed: "failed";
1273
- pending: "pending";
1274
- ok: "ok";
1275
- }>;
1276
- mode: z.ZodEnum<{
1277
- domain: "domain";
1278
- urls: "urls";
1279
- }>;
1280
- urls: z.ZodOptional<z.ZodNumber>;
1281
- }, z.core.$strip>>;
1282
- space_id: z.ZodString;
1283
- status: z.ZodLiteral<"deleted">;
1284
- }, z.core.$strip>;
1285
1440
  export declare const runtimeVersionDeleteResponseSchema: z.ZodObject<{
1286
1441
  purge: z.ZodOptional<z.ZodObject<{
1287
1442
  status: z.ZodEnum<{
1288
1443
  failed: "failed";
1444
+ queued: "queued";
1289
1445
  pending: "pending";
1290
1446
  ok: "ok";
1291
1447
  }>;
@@ -1299,22 +1455,6 @@ export declare const runtimeVersionDeleteResponseSchema: z.ZodObject<{
1299
1455
  version_id: z.ZodString;
1300
1456
  status: z.ZodLiteral<"deleted">;
1301
1457
  }, z.core.$strip>;
1302
- export declare const runtimeSpaceRepairResponseSchema: z.ZodObject<{
1303
- purge: z.ZodOptional<z.ZodObject<{
1304
- status: z.ZodEnum<{
1305
- failed: "failed";
1306
- pending: "pending";
1307
- ok: "ok";
1308
- }>;
1309
- mode: z.ZodEnum<{
1310
- domain: "domain";
1311
- urls: "urls";
1312
- }>;
1313
- urls: z.ZodOptional<z.ZodNumber>;
1314
- }, z.core.$strip>>;
1315
- space_id: z.ZodString;
1316
- status: z.ZodLiteral<"repaired">;
1317
- }, z.core.$strip>;
1318
1458
  export declare const runtimePinCreateRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
1319
1459
  mode: z.ZodLiteral<"snapshot">;
1320
1460
  version_ids: z.ZodArray<z.ZodString>;
@@ -1395,6 +1535,7 @@ export declare const runtimeCallbackEventSchema: z.ZodObject<{
1395
1535
  operation_action: z.ZodOptional<z.ZodString>;
1396
1536
  space_id: z.ZodOptional<z.ZodString>;
1397
1537
  version_id: z.ZodOptional<z.ZodString>;
1538
+ version_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1398
1539
  route_name: z.ZodOptional<z.ZodString>;
1399
1540
  hostnames: z.ZodOptional<z.ZodArray<z.ZodString>>;
1400
1541
  changed_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1450,6 +1591,7 @@ export declare const runtimeEventsDrainResponseSchema: z.ZodObject<{
1450
1591
  operation_action: z.ZodOptional<z.ZodString>;
1451
1592
  space_id: z.ZodOptional<z.ZodString>;
1452
1593
  version_id: z.ZodOptional<z.ZodString>;
1594
+ version_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1453
1595
  route_name: z.ZodOptional<z.ZodString>;
1454
1596
  hostnames: z.ZodOptional<z.ZodArray<z.ZodString>>;
1455
1597
  changed_paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1604,28 +1746,13 @@ export declare const runtimeEngineJobTickResponseSchema: z.ZodObject<{
1604
1746
  drained: z.ZodOptional<z.ZodBoolean>;
1605
1747
  }, z.core.$strip>;
1606
1748
  export type RuntimeVersionCreateRequest = z.infer<typeof runtimeVersionCreateRequestSchema>;
1607
- export type RuntimePurgeReceipt = z.infer<typeof runtimePurgeReceiptSchema>;
1608
- export type RuntimeSpacePurgeRequest = z.infer<typeof runtimeSpacePurgeRequestSchema>;
1609
- export type RuntimeSpacePurgeResponse = z.infer<typeof runtimeSpacePurgeResponseSchema>;
1610
- export type RuntimeVersionFilesResponse = z.infer<typeof runtimeVersionFilesResponseSchema>;
1611
1749
  export type RuntimeVersionFinalizeRequest = z.infer<typeof runtimeVersionFinalizeRequestSchema>;
1612
1750
  export type RuntimeVersionFinalizeResponse = z.infer<typeof runtimeVersionFinalizeResponseSchema>;
1613
- export type RuntimeCatalogDigests = z.infer<typeof runtimeCatalogDigestsSchema>;
1614
- export type RuntimeCatalogDelta = z.infer<typeof runtimeCatalogDeltaSchema>;
1751
+ export type RuntimeFinalizeTelemetry = z.infer<typeof runtimeFinalizeTelemetrySchema>;
1615
1752
  export type RuntimeReadinessTarget = z.infer<typeof runtimeReadinessTargetSchema>;
1616
1753
  export type RuntimeHostnameIntentUpdateRequest = z.infer<typeof runtimeHostnameIntentUpdateRequestSchema>;
1617
1754
  export type RuntimeRouteUpdateRequest = z.infer<typeof runtimeRouteUpdateRequestSchema>;
1618
1755
  export type RuntimeTombstonesUpdateRequest = z.infer<typeof runtimeTombstonesUpdateRequestSchema>;
1619
- export type RuntimeRetentionPolicyUpdateRequest = z.infer<typeof runtimeRetentionPolicyUpdateRequestSchema>;
1620
- export type RuntimeRetentionPolicyUpdateResponse = z.infer<typeof runtimeRetentionPolicyUpdateResponseSchema>;
1621
- export type RuntimePinCreateRequest = z.infer<typeof runtimePinCreateRequestSchema>;
1622
- export type RuntimePinCreateResponse = z.infer<typeof runtimePinCreateResponseSchema>;
1623
- export type RuntimePinReleaseResponse = z.infer<typeof runtimePinReleaseResponseSchema>;
1624
- export type RuntimeBlobsHaveRequest = z.infer<typeof runtimeBlobsHaveRequestSchema>;
1625
- export type RuntimeBlobsHaveResponse = z.infer<typeof runtimeBlobsHaveResponseSchema>;
1626
- export type RuntimeBlobPutResponse = z.infer<typeof runtimeBlobPutResponseSchema>;
1627
- export type RuntimeZeroDbImportRequest = z.infer<typeof runtimeZeroDbImportRequestSchema>;
1628
- export type RuntimeZeroDbImportResponse = z.infer<typeof runtimeZeroDbImportResponseSchema>;
1629
1756
  export type RuntimeSpaceState = z.infer<typeof runtimeSpaceStateSchema>;
1630
1757
  export type RuntimeCallbackEvent = z.infer<typeof runtimeCallbackEventSchema>;
1631
1758
  export type RuntimeEventsDrainRequest = z.infer<typeof runtimeEventsDrainRequestSchema>;
@@ -1635,8 +1762,5 @@ export type RuntimeJournalCursor = z.infer<typeof runtimeJournalCursorSchema>;
1635
1762
  export type RuntimeEventsAckRequest = z.infer<typeof runtimeEventsAckRequestSchema>;
1636
1763
  export type RuntimeEventsAckResponse = z.infer<typeof runtimeEventsAckResponseSchema>;
1637
1764
  export type RuntimeEngineJobLane = z.infer<typeof runtimeEngineJobLaneSchema>;
1638
- export type RuntimeEngineJobStatus = z.infer<typeof runtimeEngineJobStatusSchema>;
1639
1765
  export type RuntimeEngineJobRecord = z.infer<typeof runtimeEngineJobRecordSchema>;
1640
1766
  export type RuntimeEngineJobCreateRequest = z.infer<typeof runtimeEngineJobCreateRequestSchema>;
1641
- export type RuntimeEngineJobResponse = z.infer<typeof runtimeEngineJobResponseSchema>;
1642
- export type RuntimeEngineJobTickResponse = z.infer<typeof runtimeEngineJobTickResponseSchema>;