@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
@@ -3,8 +3,9 @@ export declare const archivePublishReceiptSchema: z.ZodObject<{
3
3
  space: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  slug: z.ZodString;
6
+ title: z.ZodString;
6
7
  publicName: z.ZodString;
7
- defaultHostname: z.ZodString;
8
+ defaultHostname: z.ZodOptional<z.ZodString>;
8
9
  liveUrl: z.ZodNullable<z.ZodString>;
9
10
  }, z.core.$strip>;
10
11
  build: z.ZodObject<{
@@ -29,6 +30,37 @@ export declare const archivePublishReceiptSchema: z.ZodObject<{
29
30
  branch: z.ZodOptional<z.ZodString>;
30
31
  pullRequestNumber: z.ZodOptional<z.ZodNumber>;
31
32
  }, z.core.$strict>], "kind">;
33
+ source: z.ZodDefault<z.ZodNullable<z.ZodObject<{
34
+ kind: z.ZodEnum<{
35
+ build: "build";
36
+ agent: "agent";
37
+ api: "api";
38
+ dashboard: "dashboard";
39
+ cli: "cli";
40
+ git: "git";
41
+ direct_upload: "direct_upload";
42
+ import: "import";
43
+ variable_update: "variable_update";
44
+ config_update: "config_update";
45
+ }>;
46
+ client: z.ZodOptional<z.ZodString>;
47
+ branch: z.ZodOptional<z.ZodString>;
48
+ commit: z.ZodOptional<z.ZodString>;
49
+ message: z.ZodOptional<z.ZodString>;
50
+ dirty: z.ZodOptional<z.ZodBoolean>;
51
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
52
+ git: z.ZodOptional<z.ZodObject<{
53
+ repository: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ repositoryFullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ repositoryUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ branchAliasUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ commit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ pullRequestNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
+ }, z.core.$catchall<z.ZodUnknown>>>;
63
+ }, z.core.$strip>>>;
32
64
  settingsSnapshot: z.ZodObject<{
33
65
  rootDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
34
66
  installDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -59,7 +91,7 @@ export declare const archivePublishReceiptSchema: z.ZodObject<{
59
91
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
92
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
61
93
  registrar: "registrar";
62
- wpcloud: "wpcloud";
94
+ infra: "infra";
63
95
  dns: "dns";
64
96
  runtime: "runtime";
65
97
  }>>>;
@@ -85,7 +117,7 @@ export declare const archivePublishReceiptSchema: z.ZodObject<{
85
117
  finalizing: "finalizing";
86
118
  ready: "ready";
87
119
  }>;
88
- immutableUrl: z.ZodString;
120
+ immutableUrl: z.ZodNullable<z.ZodString>;
89
121
  ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
122
  number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
91
123
  manifestHash: z.ZodNullable<z.ZodString>;
@@ -113,6 +145,15 @@ export declare const archivePublishReceiptSchema: z.ZodObject<{
113
145
  retryAfter: z.ZodOptional<z.ZodNumber>;
114
146
  hint: z.ZodString;
115
147
  }, z.core.$strip>;
148
+ git: z.ZodOptional<z.ZodObject<{
149
+ managedBy: z.ZodEnum<{
150
+ spacefast: "spacefast";
151
+ github: "github";
152
+ }>;
153
+ remoteUrl: z.ZodNullable<z.ZodString>;
154
+ repository: z.ZodNullable<z.ZodString>;
155
+ defaultBranch: z.ZodNullable<z.ZodString>;
156
+ }, z.core.$strip>>;
116
157
  access: z.ZodOptional<z.ZodObject<{
117
158
  url: z.ZodString;
118
159
  token: z.ZodString;
@@ -135,7 +176,7 @@ export declare const archivePublishReceiptSchema: z.ZodObject<{
135
176
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
177
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
137
178
  registrar: "registrar";
138
- wpcloud: "wpcloud";
179
+ infra: "infra";
139
180
  dns: "dns";
140
181
  runtime: "runtime";
141
182
  }>>>;
@@ -150,12 +191,210 @@ export declare const archivePublishReceiptSchema: z.ZodObject<{
150
191
  version: z.ZodOptional<z.ZodString>;
151
192
  }, z.core.$strip>;
152
193
  }, z.core.$strip>;
194
+ /**
195
+ * `build` is the discriminant: a remote-build publish carries one, an ordinary
196
+ * publish never does. The archive member is tried first because the ordinary
197
+ * receipt also matches a finished build's receipt and would strip the build off
198
+ * it, leaving every caller's `"build" in receipt` check answering false.
199
+ */
153
200
  export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObject<{
154
201
  space: z.ZodObject<{
155
202
  id: z.ZodString;
156
203
  slug: z.ZodString;
204
+ title: z.ZodString;
205
+ publicName: z.ZodString;
206
+ defaultHostname: z.ZodOptional<z.ZodString>;
207
+ liveUrl: z.ZodNullable<z.ZodString>;
208
+ }, z.core.$strip>;
209
+ build: z.ZodObject<{
210
+ id: z.ZodString;
211
+ spaceId: z.ZodString;
212
+ status: z.ZodEnum<{
213
+ failed: "failed";
214
+ canceled: "canceled";
215
+ waiting_for_source: "waiting_for_source";
216
+ uploading_source: "uploading_source";
217
+ queued: "queued";
218
+ running: "running";
219
+ succeeded: "succeeded";
220
+ skipped: "skipped";
221
+ }>;
222
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
223
+ kind: z.ZodLiteral<"archive">;
224
+ }, z.core.$strict>, z.ZodObject<{
225
+ kind: z.ZodLiteral<"repository">;
226
+ ref: z.ZodString;
227
+ commit: z.ZodOptional<z.ZodString>;
228
+ branch: z.ZodOptional<z.ZodString>;
229
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
230
+ }, z.core.$strict>], "kind">;
231
+ source: z.ZodDefault<z.ZodNullable<z.ZodObject<{
232
+ kind: z.ZodEnum<{
233
+ build: "build";
234
+ agent: "agent";
235
+ api: "api";
236
+ dashboard: "dashboard";
237
+ cli: "cli";
238
+ git: "git";
239
+ direct_upload: "direct_upload";
240
+ import: "import";
241
+ variable_update: "variable_update";
242
+ config_update: "config_update";
243
+ }>;
244
+ client: z.ZodOptional<z.ZodString>;
245
+ branch: z.ZodOptional<z.ZodString>;
246
+ commit: z.ZodOptional<z.ZodString>;
247
+ message: z.ZodOptional<z.ZodString>;
248
+ dirty: z.ZodOptional<z.ZodBoolean>;
249
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
250
+ git: z.ZodOptional<z.ZodObject<{
251
+ repository: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
+ repositoryFullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ repositoryUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
+ ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
+ branchAliasUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ commit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
258
+ commitSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
+ pullRequestNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
260
+ }, z.core.$catchall<z.ZodUnknown>>>;
261
+ }, z.core.$strip>>>;
262
+ settingsSnapshot: z.ZodObject<{
263
+ rootDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
264
+ installDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
265
+ installCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
266
+ buildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
267
+ outputDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
268
+ ignoredBuildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
269
+ frameworkPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
270
+ platformPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
271
+ allowUnsupportedPlatformFeatures: z.ZodDefault<z.ZodBoolean>;
272
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
273
+ }, z.core.$strip>;
274
+ target: z.ZodObject<{
275
+ channel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
276
+ preview: z.ZodDefault<z.ZodBoolean>;
277
+ }, z.core.$strip>;
278
+ retryOfBuildId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
279
+ producedVersionId: z.ZodNullable<z.ZodString>;
280
+ reusedVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
281
+ diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
282
+ code: z.ZodString;
283
+ severity: z.ZodEnum<{
284
+ info: "info";
285
+ warning: "warning";
286
+ error: "error";
287
+ }>;
288
+ message: z.ZodString;
289
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
291
+ registrar: "registrar";
292
+ infra: "infra";
293
+ dns: "dns";
294
+ runtime: "runtime";
295
+ }>>>;
296
+ details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
297
+ fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
+ retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
299
+ }, z.core.$strip>>>;
300
+ createdAt: z.ZodString;
301
+ startedAt: z.ZodNullable<z.ZodString>;
302
+ finishedAt: z.ZodNullable<z.ZodString>;
303
+ }, z.core.$strip>;
304
+ version: z.ZodOptional<z.ZodObject<{
305
+ id: z.ZodString;
306
+ status: z.ZodEnum<{
307
+ failed: "failed";
308
+ canceled: "canceled";
309
+ expired: "expired";
310
+ building: "building";
311
+ prepared: "prepared";
312
+ created: "created";
313
+ uploading: "uploading";
314
+ uploaded: "uploaded";
315
+ finalizing: "finalizing";
316
+ ready: "ready";
317
+ }>;
318
+ immutableUrl: z.ZodNullable<z.ZodString>;
319
+ ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
+ number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
321
+ manifestHash: z.ZodNullable<z.ZodString>;
322
+ }, z.core.$strip>>;
323
+ activation: z.ZodOptional<z.ZodObject<{
324
+ channel: z.ZodNullable<z.ZodEnum<{
325
+ live: "live";
326
+ }>>;
327
+ outcome: z.ZodEnum<{
328
+ pending: "pending";
329
+ activated: "activated";
330
+ unpromoted: "unpromoted";
331
+ superseded: "superseded";
332
+ }>;
333
+ currentLiveVersionId: z.ZodNullable<z.ZodString>;
334
+ }, z.core.$strip>>;
335
+ next: z.ZodObject<{
336
+ action: z.ZodEnum<{
337
+ upload: "upload";
338
+ finalize: "finalize";
339
+ done: "done";
340
+ poll: "poll";
341
+ }>;
342
+ url: z.ZodOptional<z.ZodString>;
343
+ retryAfter: z.ZodOptional<z.ZodNumber>;
344
+ hint: z.ZodString;
345
+ }, z.core.$strip>;
346
+ git: z.ZodOptional<z.ZodObject<{
347
+ managedBy: z.ZodEnum<{
348
+ spacefast: "spacefast";
349
+ github: "github";
350
+ }>;
351
+ remoteUrl: z.ZodNullable<z.ZodString>;
352
+ repository: z.ZodNullable<z.ZodString>;
353
+ defaultBranch: z.ZodNullable<z.ZodString>;
354
+ }, z.core.$strip>>;
355
+ access: z.ZodOptional<z.ZodObject<{
356
+ url: z.ZodString;
357
+ token: z.ZodString;
358
+ expiresAt: z.ZodNullable<z.ZodString>;
359
+ }, z.core.$strip>>;
360
+ claim: z.ZodOptional<z.ZodObject<{
361
+ key: z.ZodString;
362
+ url: z.ZodString;
363
+ claimUrl: z.ZodString;
364
+ expiresAt: z.ZodString;
365
+ }, z.core.$strip>>;
366
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
367
+ code: z.ZodString;
368
+ severity: z.ZodEnum<{
369
+ info: "info";
370
+ warning: "warning";
371
+ error: "error";
372
+ }>;
373
+ message: z.ZodString;
374
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
+ provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
376
+ registrar: "registrar";
377
+ infra: "infra";
378
+ dns: "dns";
379
+ runtime: "runtime";
380
+ }>>>;
381
+ details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
382
+ fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
384
+ }, z.core.$strip>>>;
385
+ links: z.ZodObject<{
386
+ inspect: z.ZodString;
387
+ build: z.ZodString;
388
+ status: z.ZodString;
389
+ version: z.ZodOptional<z.ZodString>;
390
+ }, z.core.$strip>;
391
+ }, z.core.$strip>, z.ZodObject<{
392
+ space: z.ZodObject<{
393
+ id: z.ZodString;
394
+ slug: z.ZodString;
395
+ title: z.ZodString;
157
396
  publicName: z.ZodString;
158
- defaultHostname: z.ZodString;
397
+ defaultHostname: z.ZodOptional<z.ZodString>;
159
398
  liveUrl: z.ZodNullable<z.ZodString>;
160
399
  }, z.core.$strip>;
161
400
  access: z.ZodOptional<z.ZodObject<{
@@ -177,7 +416,7 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
177
416
  finalizing: "finalizing";
178
417
  ready: "ready";
179
418
  }>;
180
- immutableUrl: z.ZodString;
419
+ immutableUrl: z.ZodNullable<z.ZodString>;
181
420
  ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
421
  number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
183
422
  manifestHash: z.ZodNullable<z.ZodString>;
@@ -205,6 +444,23 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
205
444
  retryAfter: z.ZodOptional<z.ZodNumber>;
206
445
  hint: z.ZodString;
207
446
  }, z.core.$strip>;
447
+ git: z.ZodOptional<z.ZodObject<{
448
+ managedBy: z.ZodEnum<{
449
+ spacefast: "spacefast";
450
+ github: "github";
451
+ }>;
452
+ remoteUrl: z.ZodNullable<z.ZodString>;
453
+ repository: z.ZodNullable<z.ZodString>;
454
+ defaultBranch: z.ZodNullable<z.ZodString>;
455
+ }, z.core.$strip>>;
456
+ authMode: z.ZodOptional<z.ZodEnum<{
457
+ anonymous: "anonymous";
458
+ authenticated: "authenticated";
459
+ }>>;
460
+ persistence: z.ZodOptional<z.ZodEnum<{
461
+ managed: "managed";
462
+ temporary: "temporary";
463
+ }>>;
208
464
  operation: z.ZodOptional<z.ZodObject<{
209
465
  id: z.ZodString;
210
466
  kind: z.ZodString;
@@ -235,7 +491,7 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
235
491
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
492
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
237
493
  registrar: "registrar";
238
- wpcloud: "wpcloud";
494
+ infra: "infra";
239
495
  dns: "dns";
240
496
  runtime: "runtime";
241
497
  }>>>;
@@ -276,7 +532,8 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
276
532
  contentType: z.ZodOptional<z.ZodString>;
277
533
  }, z.core.$strip>>>;
278
534
  links: z.ZodObject<{
279
- resume: z.ZodString;
535
+ refresh: z.ZodString;
536
+ resume: z.ZodOptional<z.ZodString>;
280
537
  finalize: z.ZodString;
281
538
  }, z.core.$strip>;
282
539
  details: z.ZodOptional<z.ZodObject<{
@@ -299,7 +556,7 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
299
556
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
557
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
301
558
  registrar: "registrar";
302
- wpcloud: "wpcloud";
559
+ infra: "infra";
303
560
  dns: "dns";
304
561
  runtime: "runtime";
305
562
  }>>>;
@@ -310,10 +567,10 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
310
567
  }, z.core.$strip>>;
311
568
  }, z.core.$strip>>;
312
569
  claim: z.ZodOptional<z.ZodObject<{
570
+ expiresAt: z.ZodString;
313
571
  key: z.ZodString;
314
572
  url: z.ZodString;
315
573
  claimUrl: z.ZodString;
316
- expiresAt: z.ZodString;
317
574
  }, z.core.$strip>>;
318
575
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
319
576
  code: z.ZodString;
@@ -326,7 +583,7 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
326
583
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
584
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
328
585
  registrar: "registrar";
329
- wpcloud: "wpcloud";
586
+ infra: "infra";
330
587
  dns: "dns";
331
588
  runtime: "runtime";
332
589
  }>>>;
@@ -335,6 +592,7 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
335
592
  retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
336
593
  }, z.core.$strip>>>;
337
594
  links: z.ZodOptional<z.ZodObject<{
595
+ refresh: z.ZodOptional<z.ZodString>;
338
596
  resume: z.ZodOptional<z.ZodString>;
339
597
  finalize: z.ZodOptional<z.ZodString>;
340
598
  promote: z.ZodOptional<z.ZodString>;
@@ -343,156 +601,6 @@ export declare const publishResponseReceiptSchema: z.ZodUnion<readonly [z.ZodObj
343
601
  version: z.ZodOptional<z.ZodString>;
344
602
  status: z.ZodOptional<z.ZodString>;
345
603
  }, z.core.$strip>>;
346
- }, z.core.$strip>, z.ZodObject<{
347
- space: z.ZodObject<{
348
- id: z.ZodString;
349
- slug: z.ZodString;
350
- publicName: z.ZodString;
351
- defaultHostname: z.ZodString;
352
- liveUrl: z.ZodNullable<z.ZodString>;
353
- }, z.core.$strip>;
354
- build: z.ZodObject<{
355
- id: z.ZodString;
356
- spaceId: z.ZodString;
357
- status: z.ZodEnum<{
358
- failed: "failed";
359
- canceled: "canceled";
360
- waiting_for_source: "waiting_for_source";
361
- uploading_source: "uploading_source";
362
- queued: "queued";
363
- running: "running";
364
- succeeded: "succeeded";
365
- skipped: "skipped";
366
- }>;
367
- input: z.ZodDiscriminatedUnion<[z.ZodObject<{
368
- kind: z.ZodLiteral<"archive">;
369
- }, z.core.$strict>, z.ZodObject<{
370
- kind: z.ZodLiteral<"repository">;
371
- ref: z.ZodString;
372
- commit: z.ZodOptional<z.ZodString>;
373
- branch: z.ZodOptional<z.ZodString>;
374
- pullRequestNumber: z.ZodOptional<z.ZodNumber>;
375
- }, z.core.$strict>], "kind">;
376
- settingsSnapshot: z.ZodObject<{
377
- rootDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
378
- installDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
379
- installCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
380
- buildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
381
- outputDirectory: z.ZodDefault<z.ZodNullable<z.ZodString>>;
382
- ignoredBuildCommand: z.ZodDefault<z.ZodNullable<z.ZodString>>;
383
- frameworkPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
384
- platformPreset: z.ZodDefault<z.ZodNullable<z.ZodString>>;
385
- allowUnsupportedPlatformFeatures: z.ZodDefault<z.ZodBoolean>;
386
- timeoutSeconds: z.ZodDefault<z.ZodNumber>;
387
- }, z.core.$strip>;
388
- target: z.ZodObject<{
389
- channel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
390
- preview: z.ZodDefault<z.ZodBoolean>;
391
- }, z.core.$strip>;
392
- retryOfBuildId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
393
- producedVersionId: z.ZodNullable<z.ZodString>;
394
- reusedVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
395
- diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
396
- code: z.ZodString;
397
- severity: z.ZodEnum<{
398
- info: "info";
399
- warning: "warning";
400
- error: "error";
401
- }>;
402
- message: z.ZodString;
403
- path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
404
- provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
405
- registrar: "registrar";
406
- wpcloud: "wpcloud";
407
- dns: "dns";
408
- runtime: "runtime";
409
- }>>>;
410
- details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
411
- fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
- retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
413
- }, z.core.$strip>>>;
414
- createdAt: z.ZodString;
415
- startedAt: z.ZodNullable<z.ZodString>;
416
- finishedAt: z.ZodNullable<z.ZodString>;
417
- }, z.core.$strip>;
418
- version: z.ZodOptional<z.ZodObject<{
419
- id: z.ZodString;
420
- status: z.ZodEnum<{
421
- failed: "failed";
422
- canceled: "canceled";
423
- expired: "expired";
424
- building: "building";
425
- prepared: "prepared";
426
- created: "created";
427
- uploading: "uploading";
428
- uploaded: "uploaded";
429
- finalizing: "finalizing";
430
- ready: "ready";
431
- }>;
432
- immutableUrl: z.ZodString;
433
- ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
- number: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
435
- manifestHash: z.ZodNullable<z.ZodString>;
436
- }, z.core.$strip>>;
437
- activation: z.ZodOptional<z.ZodObject<{
438
- channel: z.ZodNullable<z.ZodEnum<{
439
- live: "live";
440
- }>>;
441
- outcome: z.ZodEnum<{
442
- pending: "pending";
443
- activated: "activated";
444
- unpromoted: "unpromoted";
445
- superseded: "superseded";
446
- }>;
447
- currentLiveVersionId: z.ZodNullable<z.ZodString>;
448
- }, z.core.$strip>>;
449
- next: z.ZodObject<{
450
- action: z.ZodEnum<{
451
- upload: "upload";
452
- finalize: "finalize";
453
- done: "done";
454
- poll: "poll";
455
- }>;
456
- url: z.ZodOptional<z.ZodString>;
457
- retryAfter: z.ZodOptional<z.ZodNumber>;
458
- hint: z.ZodString;
459
- }, z.core.$strip>;
460
- access: z.ZodOptional<z.ZodObject<{
461
- url: z.ZodString;
462
- token: z.ZodString;
463
- expiresAt: z.ZodNullable<z.ZodString>;
464
- }, z.core.$strip>>;
465
- claim: z.ZodOptional<z.ZodObject<{
466
- key: z.ZodString;
467
- url: z.ZodString;
468
- claimUrl: z.ZodString;
469
- expiresAt: z.ZodString;
470
- }, z.core.$strip>>;
471
- diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
472
- code: z.ZodString;
473
- severity: z.ZodEnum<{
474
- info: "info";
475
- warning: "warning";
476
- error: "error";
477
- }>;
478
- message: z.ZodString;
479
- path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
480
- provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
481
- registrar: "registrar";
482
- wpcloud: "wpcloud";
483
- dns: "dns";
484
- runtime: "runtime";
485
- }>>>;
486
- details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
487
- fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
- retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
489
- }, z.core.$strip>>>;
490
- links: z.ZodObject<{
491
- inspect: z.ZodString;
492
- build: z.ZodString;
493
- status: z.ZodString;
494
- version: z.ZodOptional<z.ZodString>;
495
- }, z.core.$strip>;
496
604
  }, z.core.$strip>]>;
497
605
  export type ArchivePublishReceipt = z.infer<typeof archivePublishReceiptSchema>;
498
606
  export type PublishResponseReceipt = z.infer<typeof publishResponseReceiptSchema>;
@@ -2,6 +2,7 @@ import { z } from "zod";
2
2
  import { publishedAccessSchema } from "./access.js";
3
3
  import { BuildSchema } from "./builds.js";
4
4
  import { baseDiagnosticSchema } from "./common.js";
5
+ import { spaceGitSchema } from "./resources.js";
5
6
  import { publishActivationSchema, publishNextSchema, publishReceiptSchema, publishReceiptSpaceSchema, publishReceiptVersionSchema, spaceClaimReceiptSchema, } from "./spaces.js";
6
7
  export const archivePublishReceiptSchema = z.object({
7
8
  space: publishReceiptSpaceSchema,
@@ -9,6 +10,9 @@ export const archivePublishReceiptSchema = z.object({
9
10
  version: publishReceiptVersionSchema.optional(),
10
11
  activation: publishActivationSchema.optional(),
11
12
  next: publishNextSchema,
13
+ // Same block, same meaning as the ordinary receipt: a build publish is still
14
+ // a publish, and the caller still wants to know how to push the next one.
15
+ git: spaceGitSchema.optional(),
12
16
  access: publishedAccessSchema.optional(),
13
17
  claim: spaceClaimReceiptSchema.optional(),
14
18
  diagnostics: z.array(baseDiagnosticSchema).optional(),
@@ -19,7 +23,13 @@ export const archivePublishReceiptSchema = z.object({
19
23
  version: z.string().optional(),
20
24
  }),
21
25
  });
26
+ /**
27
+ * `build` is the discriminant: a remote-build publish carries one, an ordinary
28
+ * publish never does. The archive member is tried first because the ordinary
29
+ * receipt also matches a finished build's receipt and would strip the build off
30
+ * it, leaving every caller's `"build" in receipt` check answering false.
31
+ */
22
32
  export const publishResponseReceiptSchema = z.union([
23
- publishReceiptSchema,
24
33
  archivePublishReceiptSchema,
34
+ publishReceiptSchema,
25
35
  ]);
@@ -9,8 +9,8 @@ export declare const pushNewSessionStatusSchema: z.ZodEnum<{
9
9
  waiting_for_upload: "waiting_for_upload";
10
10
  }>;
11
11
  export declare const pushNewSourceKindSchema: z.ZodEnum<{
12
- direct_upload: "direct_upload";
13
12
  git: "git";
13
+ direct_upload: "direct_upload";
14
14
  }>;
15
15
  export declare const pushNewUploadModeSchema: z.ZodEnum<{
16
16
  static_publish: "static_publish";
@@ -28,8 +28,8 @@ export declare const PushNewSessionSchema: z.ZodObject<{
28
28
  waiting_for_upload: "waiting_for_upload";
29
29
  }>;
30
30
  sourceKind: z.ZodEnum<{
31
- direct_upload: "direct_upload";
32
31
  git: "git";
32
+ direct_upload: "direct_upload";
33
33
  }>;
34
34
  uploadMode: z.ZodNullable<z.ZodEnum<{
35
35
  static_publish: "static_publish";
@@ -86,8 +86,8 @@ export declare const PushNewCreateSessionResponseSchema: z.ZodObject<{
86
86
  waiting_for_upload: "waiting_for_upload";
87
87
  }>;
88
88
  sourceKind: z.ZodEnum<{
89
- direct_upload: "direct_upload";
90
89
  git: "git";
90
+ direct_upload: "direct_upload";
91
91
  }>;
92
92
  uploadMode: z.ZodNullable<z.ZodEnum<{
93
93
  static_publish: "static_publish";
@@ -162,21 +162,21 @@ export declare const PushNewStatusResponseSchema: z.ZodObject<{
162
162
  updatedAt: z.ZodString;
163
163
  branch: z.ZodString;
164
164
  versionId: z.ZodNullable<z.ZodString>;
165
- ref: z.ZodNullable<z.ZodString>;
166
- spaceSlug: z.ZodString;
167
- commitSha: z.ZodNullable<z.ZodString>;
168
- repositoryFullName: z.ZodNullable<z.ZodString>;
169
165
  slug: z.ZodString;
170
166
  liveUrl: z.ZodString;
167
+ repositoryFullName: z.ZodNullable<z.ZodString>;
168
+ ref: z.ZodNullable<z.ZodString>;
169
+ commitSha: z.ZodNullable<z.ZodString>;
171
170
  buildId: z.ZodNullable<z.ZodString>;
172
171
  claimUrl: z.ZodString;
173
172
  repositoryConnectionId: z.ZodNullable<z.ZodString>;
174
173
  repositoryId: z.ZodNullable<z.ZodString>;
175
174
  reusedVersionId: z.ZodNullable<z.ZodString>;
175
+ spaceSlug: z.ZodString;
176
176
  errorCode: z.ZodNullable<z.ZodString>;
177
177
  sourceKind: z.ZodEnum<{
178
- direct_upload: "direct_upload";
179
178
  git: "git";
179
+ direct_upload: "direct_upload";
180
180
  }>;
181
181
  remoteExpiresAt: z.ZodNullable<z.ZodString>;
182
182
  uploadMode: z.ZodNullable<z.ZodEnum<{
@@ -1,8 +1,8 @@
1
- // Crude worst-case quotas (internal-docs/platform.md "Abuse Posture"): hard,
1
+ // Crude worst-case quotas (the platform spec "Abuse Posture"): hard,
2
2
  // launch-day abuse controls that exist independently of plan limits. One named
3
- // raise-only table raising a limit later is a tweet, lowering one is a
4
- // betrayal. Enforcement points live in the control plane and reference these
5
- // names; every trip emits activity/ops events so thresholds are tuned from data.
3
+ // raise-only table: raise a limit later, never lower one. Enforcement points
4
+ // live in the control plane and reference these names; every trip emits
5
+ // activity/ops events so thresholds are tuned from data.
6
6
  export const WORST_CASE_QUOTAS = {
7
7
  // Per-version artifact ceiling (sum of file bytes; enforced at manifest intake).
8
8
  maxArtifactBytes: 2 * 1024 * 1024 * 1024,
@@ -20,7 +20,7 @@ export const WORST_CASE_QUOTAS = {
20
20
  // over budget are recorded failed (never silently dropped) and never queued.
21
21
  maxWebhookDeliveriesPerTenantPerHour: 10_000,
22
22
  };
23
- // Anonymous-tier safety caps (internal-docs/platform.md "Abuse Posture"):
23
+ // Anonymous-tier safety caps (the platform spec "Abuse Posture"):
24
24
  // LIVE launch values, anonymous <= Free on every axis. These protect the
25
25
  // platform and are not soft plan seams; plan policy can only raise them.
26
26
  export const ANONYMOUS_PUBLISH_CAPS = {