@spacefast/common 0.0.24 → 0.0.26

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 (145) 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.js +1 -1
  7. package/dist/agents/private-key-oauth.d.ts +0 -1
  8. package/dist/agents/private-key-oauth.js +46 -63
  9. package/dist/brand-assets-build.js +4 -6
  10. package/dist/brand-assets.d.ts +5 -15
  11. package/dist/brand-assets.js +15 -14
  12. package/dist/config/domains.d.ts +47 -7
  13. package/dist/config/domains.js +65 -10
  14. package/dist/contracts/access.d.ts +3 -3
  15. package/dist/contracts/activity.d.ts +1 -1
  16. package/dist/contracts/activity.js +5 -3
  17. package/dist/contracts/api-keys.js +2 -2
  18. package/dist/contracts/billing.d.ts +2 -1
  19. package/dist/contracts/billing.js +30 -0
  20. package/dist/contracts/builds.d.ts +34 -22
  21. package/dist/contracts/builds.js +18 -6
  22. package/dist/contracts/channels.js +1 -1
  23. package/dist/contracts/comments.d.ts +1 -1
  24. package/dist/contracts/common.d.ts +6 -6
  25. package/dist/contracts/common.js +5 -5
  26. package/dist/contracts/crons.d.ts +35 -0
  27. package/dist/contracts/crons.js +42 -0
  28. package/dist/contracts/device-auth.js +1 -1
  29. package/dist/contracts/docs.d.ts +5 -5
  30. package/dist/contracts/docs.js +2 -2
  31. package/dist/contracts/domains.d.ts +74 -63
  32. package/dist/contracts/domains.js +29 -2
  33. package/dist/contracts/enums.d.ts +3 -2
  34. package/dist/contracts/enums.js +10 -10
  35. package/dist/contracts/error-code-meta.d.ts +14 -0
  36. package/dist/contracts/error-code-meta.js +17 -0
  37. package/dist/contracts/error-codes.d.ts +1 -1
  38. package/dist/contracts/error-codes.js +4 -1
  39. package/dist/contracts/execution.d.ts +15 -12
  40. package/dist/contracts/execution.js +15 -12
  41. package/dist/contracts/feature-lifecycle.d.ts +4 -14
  42. package/dist/contracts/feature-lifecycle.js +0 -11
  43. package/dist/contracts/features.d.ts +33 -47
  44. package/dist/contracts/features.js +27 -20
  45. package/dist/contracts/functions.d.ts +169 -2
  46. package/dist/contracts/functions.js +160 -4
  47. package/dist/contracts/git.d.ts +27 -33
  48. package/dist/contracts/git.js +10 -11
  49. package/dist/contracts/grants.d.ts +2 -2
  50. package/dist/contracts/ids.js +2 -2
  51. package/dist/contracts/internal.d.ts +5 -16
  52. package/dist/contracts/internal.js +2 -12
  53. package/dist/contracts/mcp.d.ts +11 -0
  54. package/dist/contracts/mcp.js +5 -0
  55. package/dist/contracts/me.js +1 -1
  56. package/dist/contracts/operations.d.ts +4 -4
  57. package/dist/contracts/operations.js +2 -2
  58. package/dist/contracts/pages.d.ts +6 -6
  59. package/dist/contracts/plan-policy.d.ts +1 -1
  60. package/dist/contracts/plan-policy.js +1 -1
  61. package/dist/contracts/platform.d.ts +4 -4
  62. package/dist/contracts/publish-archive.d.ts +170 -160
  63. package/dist/contracts/publish-archive.js +8 -1
  64. package/dist/contracts/push-new.d.ts +4 -4
  65. package/dist/contracts/quotas.js +2 -2
  66. package/dist/contracts/repository-connections.d.ts +43 -30
  67. package/dist/contracts/repository-connections.js +11 -3
  68. package/dist/contracts/resources.d.ts +8 -8
  69. package/dist/contracts/resources.js +6 -6
  70. package/dist/contracts/runtime-api.d.ts +103 -56
  71. package/dist/contracts/runtime-api.js +67 -26
  72. package/dist/contracts/runtime-app.d.ts +2 -2
  73. package/dist/contracts/runtime-db.d.ts +6 -6
  74. package/dist/contracts/runtime-db.js +2 -2
  75. package/dist/contracts/runtime-purge.d.ts +8 -0
  76. package/dist/contracts/runtime-purge.js +7 -0
  77. package/dist/contracts/runtime-storage.d.ts +3 -2
  78. package/dist/contracts/runtime-storage.js +2 -1
  79. package/dist/contracts/sf-config-v1.d.ts +48 -10
  80. package/dist/contracts/space-config.d.ts +60 -3
  81. package/dist/contracts/space-config.js +213 -18
  82. package/dist/contracts/spaces.d.ts +55 -74
  83. package/dist/contracts/spaces.js +11 -14
  84. package/dist/contracts/superadmin-spaces.d.ts +9 -9
  85. package/dist/contracts/superadmin-teams.d.ts +2 -2
  86. package/dist/contracts/superadmin-tenants.d.ts +0 -6
  87. package/dist/contracts/superadmin-tenants.js +1 -7
  88. package/dist/contracts/superadmin.d.ts +135 -22
  89. package/dist/contracts/superadmin.js +43 -12
  90. package/dist/contracts/tags.d.ts +21 -21
  91. package/dist/contracts/tags.js +3 -3
  92. package/dist/contracts/teams.d.ts +14 -17
  93. package/dist/contracts/teams.js +6 -6
  94. package/dist/contracts/transfers.js +2 -2
  95. package/dist/contracts/variables.d.ts +4 -4
  96. package/dist/contracts/variables.js +3 -3
  97. package/dist/contracts/webhooks.d.ts +4 -4
  98. package/dist/contracts/zero.d.ts +15 -17
  99. package/dist/contracts/zero.js +12 -12
  100. package/dist/docs/agent-prose.d.ts +1 -1
  101. package/dist/docs/agent-prose.js +11 -14
  102. package/dist/docs/agent-setup.js +5 -2
  103. package/dist/docs/catalog.d.ts +7 -7
  104. package/dist/docs/catalog.js +7 -7
  105. package/dist/docs/error-docs.js +145 -133
  106. package/dist/docs/skills.d.ts +12 -12
  107. package/dist/docs/skills.js +4 -4
  108. package/dist/test-helpers/fetch-stub.js +1 -0
  109. package/dist/utils/build-settings.d.ts +5 -1
  110. package/dist/utils/build-settings.js +82 -10
  111. package/dist/utils/canonical-json.js +1 -0
  112. package/dist/utils/concurrency.js +1 -0
  113. package/dist/utils/credential-policy.js +4 -3
  114. package/dist/utils/dns-instructions.js +9 -9
  115. package/dist/utils/error-code.js +1 -0
  116. package/dist/utils/grant-decision.fixtures.json +2 -2
  117. package/dist/utils/grants.js +3 -1
  118. package/dist/utils/local-space-state.d.ts +8 -11
  119. package/dist/utils/local-space-state.js +13 -24
  120. package/dist/utils/one-shot-replay.d.ts +4 -1
  121. package/dist/utils/page-colors.d.ts +14 -12
  122. package/dist/utils/page-colors.js +15 -13
  123. package/dist/utils/page-fonts.d.ts +1 -1
  124. package/dist/utils/page-fonts.js +11 -18
  125. package/dist/utils/pages.d.ts +20 -1
  126. package/dist/utils/pages.js +22 -9
  127. package/dist/utils/publish-policy.d.ts +7 -0
  128. package/dist/utils/publish-policy.fixtures.json +11 -5
  129. package/dist/utils/publish-policy.js +9 -1
  130. package/dist/utils/query-keys.d.ts +4 -4
  131. package/dist/utils/query-keys.js +2 -2
  132. package/dist/utils/runtime-upload.d.ts +5 -0
  133. package/dist/utils/runtime-upload.js +7 -0
  134. package/dist/utils/secure-local-file.js +5 -16
  135. package/dist/utils/space-config.d.ts +1 -1
  136. package/dist/utils/space-config.js +3 -0
  137. package/dist/utils/static-runtime-policy.d.ts +9 -3
  138. package/dist/utils/static-runtime-policy.fixtures.json +38 -41
  139. package/dist/utils/static-runtime-policy.js +22 -56
  140. package/dist/utils/upload-session.d.ts +4 -1
  141. package/dist/utils/upload-session.js +33 -5
  142. package/dist/utils/version-path.js +1 -1
  143. package/dist/vocabulary.d.ts +8 -8
  144. package/dist/vocabulary.js +31 -20
  145. package/package.json +2 -17
@@ -1,4 +1,5 @@
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>;
@@ -197,14 +198,14 @@ export declare const SpaceCreateResponseSchema: z.ZodObject<{
197
198
  code: z.ZodString;
198
199
  severity: z.ZodEnum<{
199
200
  info: "info";
200
- warning: "warning";
201
201
  error: "error";
202
+ warning: "warning";
202
203
  }>;
203
204
  message: z.ZodString;
204
205
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
206
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
206
207
  registrar: "registrar";
207
- wpcloud: "wpcloud";
208
+ infra: "infra";
208
209
  dns: "dns";
209
210
  runtime: "runtime";
210
211
  }>>>;
@@ -234,14 +235,14 @@ export declare const spaceDiagnosticSchema: z.ZodObject<{
234
235
  code: z.ZodString;
235
236
  severity: z.ZodEnum<{
236
237
  info: "info";
237
- warning: "warning";
238
238
  error: "error";
239
+ warning: "warning";
239
240
  }>;
240
241
  message: z.ZodString;
241
242
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
243
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
243
244
  registrar: "registrar";
244
- wpcloud: "wpcloud";
245
+ infra: "infra";
245
246
  dns: "dns";
246
247
  runtime: "runtime";
247
248
  }>>>;
@@ -258,14 +259,14 @@ export declare const spaceDiagnosticListResponseSchema: z.ZodObject<{
258
259
  code: z.ZodString;
259
260
  severity: z.ZodEnum<{
260
261
  info: "info";
261
- warning: "warning";
262
262
  error: "error";
263
+ warning: "warning";
263
264
  }>;
264
265
  message: z.ZodString;
265
266
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
267
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
267
268
  registrar: "registrar";
268
- wpcloud: "wpcloud";
269
+ infra: "infra";
269
270
  dns: "dns";
270
271
  runtime: "runtime";
271
272
  }>>>;
@@ -698,27 +699,16 @@ export declare const spaceVersionCreateSchema: z.ZodObject<{
698
699
  }>>;
699
700
  sourceMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
700
701
  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
702
  finalize: z.ZodOptional<z.ZodObject<{
707
703
  channel: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"live">>>;
708
704
  }, 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<{
705
+ files: z.ZodArray<z.ZodObject<{
716
706
  path: z.ZodString;
717
707
  size: z.ZodNumber;
718
708
  sha256: z.ZodOptional<z.ZodString>;
719
709
  contentType: z.ZodOptional<z.ZodString>;
720
- sourceUrl: z.ZodString;
721
- }, z.core.$strip>]>>;
710
+ sourceUrl: z.ZodOptional<z.ZodString>;
711
+ }, z.core.$strip>>;
722
712
  }, z.core.$strip>;
723
713
  export declare const spaceVersionListSchema: z.ZodObject<{
724
714
  data: z.ZodArray<z.ZodObject<{
@@ -899,14 +889,14 @@ export declare const spaceVersionListSchema: z.ZodObject<{
899
889
  code: z.ZodString;
900
890
  severity: z.ZodEnum<{
901
891
  info: "info";
902
- warning: "warning";
903
892
  error: "error";
893
+ warning: "warning";
904
894
  }>;
905
895
  message: z.ZodString;
906
896
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
907
897
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
908
898
  registrar: "registrar";
909
- wpcloud: "wpcloud";
899
+ infra: "infra";
910
900
  dns: "dns";
911
901
  runtime: "runtime";
912
902
  }>>>;
@@ -926,14 +916,14 @@ export declare const spaceVersionListSchema: z.ZodObject<{
926
916
  code: z.ZodString;
927
917
  severity: z.ZodEnum<{
928
918
  info: "info";
929
- warning: "warning";
930
919
  error: "error";
920
+ warning: "warning";
931
921
  }>;
932
922
  message: z.ZodString;
933
923
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
934
924
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
935
925
  registrar: "registrar";
936
- wpcloud: "wpcloud";
926
+ infra: "infra";
937
927
  dns: "dns";
938
928
  runtime: "runtime";
939
929
  }>>>;
@@ -1127,14 +1117,14 @@ export declare const spaceListSchema: z.ZodObject<{
1127
1117
  code: z.ZodString;
1128
1118
  severity: z.ZodEnum<{
1129
1119
  info: "info";
1130
- warning: "warning";
1131
1120
  error: "error";
1121
+ warning: "warning";
1132
1122
  }>;
1133
1123
  message: z.ZodString;
1134
1124
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1135
1125
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1136
1126
  registrar: "registrar";
1137
- wpcloud: "wpcloud";
1127
+ infra: "infra";
1138
1128
  dns: "dns";
1139
1129
  runtime: "runtime";
1140
1130
  }>>>;
@@ -1169,7 +1159,6 @@ export declare const versionLogEntrySchema: z.ZodObject<{
1169
1159
  message: z.ZodString;
1170
1160
  }, z.core.$strip>;
1171
1161
  export type VersionLogEntry = z.infer<typeof versionLogEntrySchema>;
1172
- export declare const VERSION_BUILD_LOG_MAX_LENGTH: number;
1173
1162
  export declare const versionLogListResponseSchema: z.ZodObject<{
1174
1163
  data: z.ZodArray<z.ZodObject<{
1175
1164
  timestamp: z.ZodString;
@@ -1671,8 +1660,8 @@ export declare const spaceVersionFileLinksResponseSchema: z.ZodObject<{
1671
1660
  }, z.core.$strip>>;
1672
1661
  }, z.core.$strip>;
1673
1662
  export declare const spaceVersionConventionArtifactKindSchema: z.ZodEnum<{
1674
- redirects: "redirects";
1675
1663
  headers: "headers";
1664
+ redirects: "redirects";
1676
1665
  }>;
1677
1666
  export declare const spaceVersionConventionArtifactPathSchema: z.ZodEnum<{
1678
1667
  _redirects: "_redirects";
@@ -1687,8 +1676,8 @@ export declare const spaceVersionConventionArtifactSourceSchema: z.ZodEnum<{
1687
1676
  }>;
1688
1677
  export declare const spaceVersionConventionArtifactMetadataSchema: z.ZodObject<{
1689
1678
  kind: z.ZodEnum<{
1690
- redirects: "redirects";
1691
1679
  headers: "headers";
1680
+ redirects: "redirects";
1692
1681
  }>;
1693
1682
  path: z.ZodEnum<{
1694
1683
  _redirects: "_redirects";
@@ -1713,8 +1702,8 @@ export declare const spaceVersionConventionArtifactsResponseSchema: z.ZodObject<
1713
1702
  versionId: z.ZodString;
1714
1703
  artifacts: z.ZodArray<z.ZodObject<{
1715
1704
  kind: z.ZodEnum<{
1716
- redirects: "redirects";
1717
1705
  headers: "headers";
1706
+ redirects: "redirects";
1718
1707
  }>;
1719
1708
  path: z.ZodEnum<{
1720
1709
  _redirects: "_redirects";
@@ -1738,8 +1727,8 @@ export declare const spaceVersionConventionArtifactsResponseSchema: z.ZodObject<
1738
1727
  }, z.core.$strip>;
1739
1728
  export declare const spaceVersionConventionArtifactQuerySchema: z.ZodObject<{
1740
1729
  kind: z.ZodOptional<z.ZodEnum<{
1741
- redirects: "redirects";
1742
1730
  headers: "headers";
1731
+ redirects: "redirects";
1743
1732
  }>>;
1744
1733
  path: z.ZodOptional<z.ZodEnum<{
1745
1734
  _redirects: "_redirects";
@@ -1748,8 +1737,8 @@ export declare const spaceVersionConventionArtifactQuerySchema: z.ZodObject<{
1748
1737
  }, z.core.$strip>;
1749
1738
  export declare const spaceVersionConventionArtifactContentResponseSchema: z.ZodObject<{
1750
1739
  kind: z.ZodEnum<{
1751
- redirects: "redirects";
1752
1740
  headers: "headers";
1741
+ redirects: "redirects";
1753
1742
  }>;
1754
1743
  path: z.ZodEnum<{
1755
1744
  _redirects: "_redirects";
@@ -1770,8 +1759,8 @@ export declare const spaceVersionConventionArtifactContentResponseSchema: z.ZodO
1770
1759
  warningCount: z.ZodNumber;
1771
1760
  errorCount: z.ZodNumber;
1772
1761
  encoding: z.ZodEnum<{
1773
- utf8: "utf8";
1774
1762
  base64: "base64";
1763
+ utf8: "utf8";
1775
1764
  }>;
1776
1765
  content: z.ZodString;
1777
1766
  truncated: z.ZodBoolean;
@@ -1810,8 +1799,8 @@ export declare const spaceVersionRoutingDiagnosticSchema: z.ZodObject<{
1810
1799
  }>;
1811
1800
  line: z.ZodNumber;
1812
1801
  severity: z.ZodEnum<{
1813
- warning: "warning";
1814
1802
  error: "error";
1803
+ warning: "warning";
1815
1804
  }>;
1816
1805
  code: z.ZodString;
1817
1806
  message: z.ZodString;
@@ -1822,8 +1811,8 @@ export declare const spaceVersionComputedRoutingSummarySchema: z.ZodObject<{
1822
1811
  source: z.ZodObject<{
1823
1812
  artifacts: z.ZodArray<z.ZodObject<{
1824
1813
  kind: z.ZodEnum<{
1825
- redirects: "redirects";
1826
1814
  headers: "headers";
1815
+ redirects: "redirects";
1827
1816
  }>;
1828
1817
  path: z.ZodEnum<{
1829
1818
  _redirects: "_redirects";
@@ -1864,8 +1853,8 @@ export declare const spaceVersionComputedRoutingSummarySchema: z.ZodObject<{
1864
1853
  }>;
1865
1854
  line: z.ZodNumber;
1866
1855
  severity: z.ZodEnum<{
1867
- warning: "warning";
1868
1856
  error: "error";
1857
+ warning: "warning";
1869
1858
  }>;
1870
1859
  code: z.ZodString;
1871
1860
  message: z.ZodString;
@@ -1920,14 +1909,14 @@ export declare const spaceVersionIntentResponseSchema: z.ZodObject<{
1920
1909
  code: z.ZodString;
1921
1910
  severity: z.ZodEnum<{
1922
1911
  info: "info";
1923
- warning: "warning";
1924
1912
  error: "error";
1913
+ warning: "warning";
1925
1914
  }>;
1926
1915
  message: z.ZodString;
1927
1916
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1928
1917
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1929
1918
  registrar: "registrar";
1930
- wpcloud: "wpcloud";
1919
+ infra: "infra";
1931
1920
  dns: "dns";
1932
1921
  runtime: "runtime";
1933
1922
  }>>>;
@@ -2078,19 +2067,13 @@ export declare const publishRequestSchema: z.ZodObject<{
2078
2067
  }>;
2079
2068
  id: z.ZodString;
2080
2069
  }, 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<{
2070
+ files: z.ZodArray<z.ZodObject<{
2088
2071
  path: z.ZodString;
2089
2072
  size: z.ZodNumber;
2090
2073
  sha256: z.ZodOptional<z.ZodString>;
2091
2074
  contentType: z.ZodOptional<z.ZodString>;
2092
- sourceUrl: z.ZodString;
2093
- }, z.core.$strip>]>>;
2075
+ sourceUrl: z.ZodOptional<z.ZodString>;
2076
+ }, z.core.$strip>>;
2094
2077
  }, z.core.$strip>;
2095
2078
  export declare const publishUploadReceiptSchema: z.ZodObject<{
2096
2079
  id: z.ZodString;
@@ -2138,14 +2121,14 @@ export declare const publishUploadReceiptSchema: z.ZodObject<{
2138
2121
  code: z.ZodString;
2139
2122
  severity: z.ZodEnum<{
2140
2123
  info: "info";
2141
- warning: "warning";
2142
2124
  error: "error";
2125
+ warning: "warning";
2143
2126
  }>;
2144
2127
  message: z.ZodString;
2145
2128
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2146
2129
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2147
2130
  registrar: "registrar";
2148
- wpcloud: "wpcloud";
2131
+ infra: "infra";
2149
2132
  dns: "dns";
2150
2133
  runtime: "runtime";
2151
2134
  }>>>;
@@ -2158,6 +2141,7 @@ export declare const publishUploadReceiptSchema: z.ZodObject<{
2158
2141
  export declare const publishReceiptSpaceSchema: z.ZodObject<{
2159
2142
  id: z.ZodString;
2160
2143
  slug: z.ZodString;
2144
+ title: z.ZodString;
2161
2145
  publicName: z.ZodString;
2162
2146
  defaultHostname: z.ZodString;
2163
2147
  liveUrl: z.ZodNullable<z.ZodString>;
@@ -2210,6 +2194,7 @@ export declare const publishReceiptSchema: z.ZodObject<{
2210
2194
  space: z.ZodObject<{
2211
2195
  id: z.ZodString;
2212
2196
  slug: z.ZodString;
2197
+ title: z.ZodString;
2213
2198
  publicName: z.ZodString;
2214
2199
  defaultHostname: z.ZodString;
2215
2200
  liveUrl: z.ZodNullable<z.ZodString>;
@@ -2284,14 +2269,14 @@ export declare const publishReceiptSchema: z.ZodObject<{
2284
2269
  code: z.ZodString;
2285
2270
  severity: z.ZodEnum<{
2286
2271
  info: "info";
2287
- warning: "warning";
2288
2272
  error: "error";
2273
+ warning: "warning";
2289
2274
  }>;
2290
2275
  message: z.ZodString;
2291
2276
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2292
2277
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2293
2278
  registrar: "registrar";
2294
- wpcloud: "wpcloud";
2279
+ infra: "infra";
2295
2280
  dns: "dns";
2296
2281
  runtime: "runtime";
2297
2282
  }>>>;
@@ -2348,14 +2333,14 @@ export declare const publishReceiptSchema: z.ZodObject<{
2348
2333
  code: z.ZodString;
2349
2334
  severity: z.ZodEnum<{
2350
2335
  info: "info";
2351
- warning: "warning";
2352
2336
  error: "error";
2337
+ warning: "warning";
2353
2338
  }>;
2354
2339
  message: z.ZodString;
2355
2340
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2356
2341
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2357
2342
  registrar: "registrar";
2358
- wpcloud: "wpcloud";
2343
+ infra: "infra";
2359
2344
  dns: "dns";
2360
2345
  runtime: "runtime";
2361
2346
  }>>>;
@@ -2375,14 +2360,14 @@ export declare const publishReceiptSchema: z.ZodObject<{
2375
2360
  code: z.ZodString;
2376
2361
  severity: z.ZodEnum<{
2377
2362
  info: "info";
2378
- warning: "warning";
2379
2363
  error: "error";
2364
+ warning: "warning";
2380
2365
  }>;
2381
2366
  message: z.ZodString;
2382
2367
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2383
2368
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2384
2369
  registrar: "registrar";
2385
- wpcloud: "wpcloud";
2370
+ infra: "infra";
2386
2371
  dns: "dns";
2387
2372
  runtime: "runtime";
2388
2373
  }>>>;
@@ -2400,6 +2385,7 @@ export declare const publishReceiptSchema: z.ZodObject<{
2400
2385
  status: z.ZodOptional<z.ZodString>;
2401
2386
  }, z.core.$strip>>;
2402
2387
  }, z.core.$strip>;
2388
+ export type PublishReceipt = z.infer<typeof publishReceiptSchema>;
2403
2389
  export declare const spaceVersionResumeResponseSchema: z.ZodObject<{
2404
2390
  versionId: z.ZodString;
2405
2391
  upload: z.ZodNullable<z.ZodObject<{
@@ -2448,14 +2434,14 @@ export declare const spaceVersionResumeResponseSchema: z.ZodObject<{
2448
2434
  code: z.ZodString;
2449
2435
  severity: z.ZodEnum<{
2450
2436
  info: "info";
2451
- warning: "warning";
2452
2437
  error: "error";
2438
+ warning: "warning";
2453
2439
  }>;
2454
2440
  message: z.ZodString;
2455
2441
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2456
2442
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2457
2443
  registrar: "registrar";
2458
- wpcloud: "wpcloud";
2444
+ infra: "infra";
2459
2445
  dns: "dns";
2460
2446
  runtime: "runtime";
2461
2447
  }>>>;
@@ -2471,11 +2457,6 @@ export declare const versionPromoteSchema: z.ZodDefault<z.ZodOptional<z.ZodObjec
2471
2457
  channel: z.ZodOptional<z.ZodString>;
2472
2458
  }, z.core.$strip>>>;
2473
2459
  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
2460
  channel: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2480
2461
  live: "live";
2481
2462
  }>>>;
@@ -2538,14 +2519,14 @@ export declare const spaceRuntimeStatusSchema: z.ZodObject<{
2538
2519
  code: z.ZodString;
2539
2520
  severity: z.ZodEnum<{
2540
2521
  info: "info";
2541
- warning: "warning";
2542
2522
  error: "error";
2523
+ warning: "warning";
2543
2524
  }>;
2544
2525
  message: z.ZodString;
2545
2526
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2546
2527
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2547
2528
  registrar: "registrar";
2548
- wpcloud: "wpcloud";
2529
+ infra: "infra";
2549
2530
  dns: "dns";
2550
2531
  runtime: "runtime";
2551
2532
  }>>>;
@@ -2563,8 +2544,8 @@ export declare const spaceRuntimeStatusSchema: z.ZodObject<{
2563
2544
  serverRuntime: z.ZodLiteral<"quickjs-rust">;
2564
2545
  inspect: z.ZodObject<{
2565
2546
  policy: z.ZodEnum<{
2566
- public: "public";
2567
2547
  private: "private";
2548
+ public: "public";
2568
2549
  }>;
2569
2550
  }, z.core.$strict>;
2570
2551
  install: z.ZodObject<{
@@ -2576,7 +2557,7 @@ export declare const spaceRuntimeStatusSchema: z.ZodObject<{
2576
2557
  binary: z.ZodObject<{
2577
2558
  path: z.ZodLiteral<"__spacefast/zero/bin/stattic-runtime">;
2578
2559
  compatibilityTarget: z.ZodObject<{
2579
- profile: z.ZodLiteral<"wpcloud-linux-x86_64-gnu-v1">;
2560
+ profile: z.ZodLiteral<"linux-x86_64-gnu-v1">;
2580
2561
  os: z.ZodLiteral<"linux">;
2581
2562
  cpu: z.ZodLiteral<"x86_64">;
2582
2563
  libc: z.ZodLiteral<"glibc">;
@@ -2683,8 +2664,8 @@ export declare const spaceRuntimeStatusSchema: z.ZodObject<{
2683
2664
  }, z.core.$strip>;
2684
2665
  export declare const spaceApplyChangeBaseSchema: z.ZodObject<{
2685
2666
  kind: z.ZodEnum<{
2686
- routing: "routing";
2687
2667
  access: "access";
2668
+ routing: "routing";
2688
2669
  variable: "variable";
2689
2670
  settings: "settings";
2690
2671
  }>;
@@ -2697,8 +2678,8 @@ export declare const spaceApplyModeSchema: z.ZodEnum<{
2697
2678
  }>;
2698
2679
  export declare const spaceApplyChangeSchema: z.ZodObject<{
2699
2680
  kind: z.ZodEnum<{
2700
- routing: "routing";
2701
2681
  access: "access";
2682
+ routing: "routing";
2702
2683
  variable: "variable";
2703
2684
  settings: "settings";
2704
2685
  }>;
@@ -2726,8 +2707,8 @@ export declare const spaceApplyStateSchema: z.ZodObject<{
2726
2707
  pendingChangeCount: z.ZodNumber;
2727
2708
  changes: z.ZodArray<z.ZodObject<{
2728
2709
  kind: z.ZodEnum<{
2729
- routing: "routing";
2730
2710
  access: "access";
2711
+ routing: "routing";
2731
2712
  variable: "variable";
2732
2713
  settings: "settings";
2733
2714
  }>;
@@ -2766,14 +2747,14 @@ export declare const spaceApplyStateSchema: z.ZodObject<{
2766
2747
  code: z.ZodString;
2767
2748
  severity: z.ZodEnum<{
2768
2749
  info: "info";
2769
- warning: "warning";
2770
2750
  error: "error";
2751
+ warning: "warning";
2771
2752
  }>;
2772
2753
  message: z.ZodString;
2773
2754
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2774
2755
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2775
2756
  registrar: "registrar";
2776
- wpcloud: "wpcloud";
2757
+ infra: "infra";
2777
2758
  dns: "dns";
2778
2759
  runtime: "runtime";
2779
2760
  }>>>;
@@ -2801,8 +2782,8 @@ export declare const spaceApplyResponseSchema: z.ZodObject<{
2801
2782
  pendingChangeCount: z.ZodNumber;
2802
2783
  changes: z.ZodArray<z.ZodObject<{
2803
2784
  kind: z.ZodEnum<{
2804
- routing: "routing";
2805
2785
  access: "access";
2786
+ routing: "routing";
2806
2787
  variable: "variable";
2807
2788
  settings: "settings";
2808
2789
  }>;
@@ -2841,14 +2822,14 @@ export declare const spaceApplyResponseSchema: z.ZodObject<{
2841
2822
  code: z.ZodString;
2842
2823
  severity: z.ZodEnum<{
2843
2824
  info: "info";
2844
- warning: "warning";
2845
2825
  error: "error";
2826
+ warning: "warning";
2846
2827
  }>;
2847
2828
  message: z.ZodString;
2848
2829
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2849
2830
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2850
2831
  registrar: "registrar";
2851
- wpcloud: "wpcloud";
2832
+ infra: "infra";
2852
2833
  dns: "dns";
2853
2834
  runtime: "runtime";
2854
2835
  }>>>;
@@ -4,11 +4,12 @@ import { normalizeVersionPath } from "../utils/version-path.js";
4
4
  import { publishedAccessSchema } from "./access.js";
5
5
  import { AsyncOperationSchema, baseDiagnosticSchema, CursorPaginationSchema, cursorListQuerySchema, } from "./common.js";
6
6
  import { versionStatus, spaceStatus } from "./enums.js";
7
- import { conventionFilesSchema, uploadInstructionsSchema, manifestFileSchema, uploadManifestFileSchema, } from "./internal.js";
7
+ import { uploadInstructionsSchema, manifestFileSchema } from "./internal.js";
8
8
  import { VersionSchema, PublishSourceSchema, SpaceSchema, spaceSettingsDigestSchema, } from "./resources.js";
9
9
  import { runtimeAppSchema } from "./runtime-app.js";
10
10
  import { SPACE_CONFIG_ACCEPTED_FILES, spaceConfigSchema, spacePlacementConfigSchema, } from "./space-config.js";
11
11
  import { principalIdSchema } from "./transfers.js";
12
+ export const VERSION_BUILD_LOG_MAX_LENGTH = 512 * 1024;
12
13
  // Capacity accounting for the provider site a space runs on. A space IS a
13
14
  // site, so occupancy is not a question — storage is. Warm-pool inventory rows
14
15
  // carry the same shape before a space adopts them.
@@ -319,19 +320,16 @@ export const spaceVersionCreateSchema = z
319
320
  .describe("Additional control-plane-only provenance for build and deploy read models."),
320
321
  buildLog: z
321
322
  .string()
322
- .max(64_000)
323
+ .max(VERSION_BUILD_LOG_MAX_LENGTH)
323
324
  .optional()
324
325
  .describe("Build transcript truncated to a bounded size for deploys that ran a local build before publishing."),
325
- conventionFiles: conventionFilesSchema
326
- .optional()
327
- .describe("Routing convention contents used when deciding whether this publish is unchanged. The same values are supplied again when the version is finalized."),
328
326
  finalize: z
329
327
  .object({ channel: z.literal("live").nullable().optional() })
330
328
  .optional()
331
329
  .describe("Finalize intent for a declared upload. When every declared file lands, the version finalizes itself; the explicit finalize call remains available for recovery and replay."),
332
330
  files: z
333
- .array(uploadManifestFileSchema)
334
- .describe("The complete desired file manifest. Local-byte entries require `sha256` and are uploaded to a content-addressed target. A `sourceUrl` entry may omit `sha256` because the runtime computes it while fetching. Hashes also let updates skip unchanged files."),
331
+ .array(manifestFileSchema)
332
+ .describe("The complete desired file manifest. `sha256` is optional: omit it to upload by path and let the runtime hash the bytes, or include it to upload by content address, with the digest verified as the bytes land. A `sourceUrl` entry is fetched and hashed by the runtime."),
335
333
  ...manifestMutationFieldsSchema,
336
334
  })
337
335
  .superRefine(refineManifestMutationRules);
@@ -358,7 +356,6 @@ export const versionLogEntrySchema = z.object({
358
356
  code: z.string().describe("Stable version.{status} code for the line."),
359
357
  message: z.string().describe("Human-readable log line."),
360
358
  });
361
- export const VERSION_BUILD_LOG_MAX_LENGTH = 512 * 1024;
362
359
  export const versionLogListResponseSchema = z.object({
363
360
  data: z.array(versionLogEntrySchema),
364
361
  pagination: CursorPaginationSchema,
@@ -540,7 +537,7 @@ export const spaceVersionComputedRoutingSummarySchema = z.object({
540
537
  }),
541
538
  diagnostics: z.array(spaceVersionRoutingDiagnosticSchema),
542
539
  });
543
- // Upload state is inferable (internal-docs/platform.md L2216): `upload` present means bytes are
540
+ // Upload state is inferable (the platform spec): `upload` present means bytes are
544
541
  // still needed (then finalize); `versionId` null means the manifest matched and nothing changed.
545
542
  // No redundant booleans ride along.
546
543
  export const spaceVersionIntentResponseSchema = z.object({
@@ -562,8 +559,8 @@ export const publishRequestSchema = z
562
559
  teamId: z.string().nullable().optional(),
563
560
  principal: principalRefInputSchema.optional(),
564
561
  files: z
565
- .array(uploadManifestFileSchema)
566
- .describe("Desired file manifest for a declared publish session. Local-byte entries require `sha256`; sourceUrl entries may omit it. Clients upload returned targets, then finalize."),
562
+ .array(manifestFileSchema)
563
+ .describe("Desired file manifest for a declared publish session. `sha256` is optional: omitted local bytes receive path-addressed upload targets and are hashed by the runtime; declared hashes receive content-addressed targets and can reuse existing bytes. Clients upload returned targets, then finalize."),
567
564
  ...manifestMutationFieldsSchema,
568
565
  source: PublishSourceSchema.optional().describe('Publish provenance recorded on the version; defaults to {kind: "direct_upload"}.'),
569
566
  // Same fields, same bounds as spaceVersionCreateSchema: a publish that ran
@@ -575,7 +572,7 @@ export const publishRequestSchema = z
575
572
  .describe("Additional control-plane-only provenance for build/deploy read models."),
576
573
  buildLog: z
577
574
  .string()
578
- .max(64_000)
575
+ .max(VERSION_BUILD_LOG_MAX_LENGTH)
579
576
  .optional()
580
577
  .describe("Bounded build transcript for deploys that ran a local build before publishing."),
581
578
  publishMode: z
@@ -618,6 +615,7 @@ export const publishUploadReceiptSchema = z.object({
618
615
  export const publishReceiptSpaceSchema = z.object({
619
616
  id: z.string(),
620
617
  slug: z.string(),
618
+ title: z.string(),
621
619
  publicName: z.string(),
622
620
  defaultHostname: z.string(),
623
621
  liveUrl: z.string().nullable(),
@@ -730,7 +728,6 @@ export const versionPromoteSchema = z
730
728
  .default({});
731
729
  export const spaceFinalizeSchema = z
732
730
  .object({
733
- conventionFiles: conventionFilesSchema.optional(),
734
731
  channel: z
735
732
  .enum(["live"])
736
733
  .nullable()
@@ -758,7 +755,7 @@ export const spaceRuntimeStatusSchema = z.object({
758
755
  operation: AsyncOperationSchema.nullable(),
759
756
  app: runtimeAppSchema
760
757
  .nullable()
761
- .describe("What the live version runs: its Zero capsule and its Functions worker, each null when the published tree carries none of that product (both null for a static space). The whole object is null for callers whose credential does not carry `versions:read`, because app details read version contents, not serving state."),
758
+ .describe("What the live version runs: its Zero capsule and its Functions worker, each null when the published tree carries none of that product (both null for a space without a runtime). The whole object is null for callers whose credential does not carry `versions:read`, because app details read version contents, not serving state."),
762
759
  });
763
760
  export const spaceApplyChangeBaseSchema = z.object({
764
761
  kind: z.enum(["variable", "routing", "access", "settings"]),
@@ -27,8 +27,8 @@ export declare const SuperadminSpaceVersionZeroSchema: z.ZodObject<{
27
27
  appName: z.ZodString;
28
28
  serverRuntime: z.ZodString;
29
29
  inspectPolicy: z.ZodEnum<{
30
- public: "public";
31
30
  private: "private";
31
+ public: "public";
32
32
  }>;
33
33
  tableCount: z.ZodNumber;
34
34
  queryCount: z.ZodNumber;
@@ -72,8 +72,8 @@ export declare const SuperadminSpaceVersionSchema: z.ZodObject<{
72
72
  appName: z.ZodString;
73
73
  serverRuntime: z.ZodString;
74
74
  inspectPolicy: z.ZodEnum<{
75
- public: "public";
76
75
  private: "private";
76
+ public: "public";
77
77
  }>;
78
78
  tableCount: z.ZodNumber;
79
79
  queryCount: z.ZodNumber;
@@ -270,14 +270,14 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
270
270
  code: z.ZodString;
271
271
  severity: z.ZodEnum<{
272
272
  info: "info";
273
- warning: "warning";
274
273
  error: "error";
274
+ warning: "warning";
275
275
  }>;
276
276
  message: z.ZodString;
277
277
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
278
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
279
279
  registrar: "registrar";
280
- wpcloud: "wpcloud";
280
+ infra: "infra";
281
281
  dns: "dns";
282
282
  runtime: "runtime";
283
283
  }>>>;
@@ -343,8 +343,8 @@ export declare const SuperadminSpaceDetailSchema: z.ZodObject<{
343
343
  appName: z.ZodString;
344
344
  serverRuntime: z.ZodString;
345
345
  inspectPolicy: z.ZodEnum<{
346
- public: "public";
347
346
  private: "private";
347
+ public: "public";
348
348
  }>;
349
349
  tableCount: z.ZodNumber;
350
350
  queryCount: z.ZodNumber;
@@ -550,14 +550,14 @@ export declare const SuperadminSpaceListSchema: z.ZodObject<{
550
550
  code: z.ZodString;
551
551
  severity: z.ZodEnum<{
552
552
  info: "info";
553
- warning: "warning";
554
553
  error: "error";
554
+ warning: "warning";
555
555
  }>;
556
556
  message: z.ZodString;
557
557
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
558
558
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
559
559
  registrar: "registrar";
560
- wpcloud: "wpcloud";
560
+ infra: "infra";
561
561
  dns: "dns";
562
562
  runtime: "runtime";
563
563
  }>>>;
@@ -901,14 +901,14 @@ export declare const SuperadminSpaceAssignResponseSchema: z.ZodObject<{
901
901
  code: z.ZodString;
902
902
  severity: z.ZodEnum<{
903
903
  info: "info";
904
- warning: "warning";
905
904
  error: "error";
905
+ warning: "warning";
906
906
  }>;
907
907
  message: z.ZodString;
908
908
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
909
909
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
910
910
  registrar: "registrar";
911
- wpcloud: "wpcloud";
911
+ infra: "infra";
912
912
  dns: "dns";
913
913
  runtime: "runtime";
914
914
  }>>>;