@spacefast/common 0.2.2 → 0.4.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 (226) hide show
  1. package/dist/agents/marketplace-prompts.d.ts +1 -0
  2. package/dist/agents/marketplace-prompts.js +6 -0
  3. package/dist/agents/registry/core.d.ts +4 -12
  4. package/dist/agents/registry/core.js +7 -28
  5. package/dist/config/domains.d.ts +10 -8
  6. package/dist/config/domains.js +4 -7
  7. package/dist/contracts/access-core.d.ts +135 -0
  8. package/dist/contracts/access-core.js +242 -0
  9. package/dist/contracts/access-profiles.d.ts +8 -8
  10. package/dist/contracts/access-profiles.js +8 -8
  11. package/dist/contracts/access.d.ts +14 -103
  12. package/dist/contracts/access.js +10 -210
  13. package/dist/contracts/activity.d.ts +54 -55
  14. package/dist/contracts/activity.js +38 -9
  15. package/dist/contracts/api-keys.d.ts +69 -26
  16. package/dist/contracts/api-keys.js +29 -2
  17. package/dist/contracts/application-journal.d.ts +197 -4
  18. package/dist/contracts/application-journal.js +97 -16
  19. package/dist/contracts/auth.d.ts +20 -0
  20. package/dist/contracts/auth.js +18 -0
  21. package/dist/contracts/beta.d.ts +13 -0
  22. package/dist/contracts/beta.js +28 -0
  23. package/dist/contracts/billing.d.ts +2 -2
  24. package/dist/contracts/bootstrap.d.ts +23 -6
  25. package/dist/contracts/builds.d.ts +18 -4
  26. package/dist/contracts/builds.js +7 -4
  27. package/dist/contracts/channels.d.ts +43 -0
  28. package/dist/contracts/channels.js +22 -6
  29. package/dist/contracts/comments.d.ts +49 -0
  30. package/dist/contracts/comments.js +61 -2
  31. package/dist/contracts/commerce.d.ts +19 -13
  32. package/dist/contracts/connector-access.d.ts +28 -0
  33. package/dist/contracts/connector-access.js +31 -0
  34. package/dist/contracts/connectors.d.ts +2382 -0
  35. package/dist/contracts/connectors.js +941 -0
  36. package/dist/contracts/content-contract-verification.d.ts +112 -58
  37. package/dist/contracts/content-contract-verification.js +42 -54
  38. package/dist/contracts/content-model-emit.d.ts +97 -0
  39. package/dist/contracts/content-model-emit.js +306 -0
  40. package/dist/contracts/content-model-sdk.d.ts +101 -0
  41. package/dist/contracts/content-model-sdk.js +232 -0
  42. package/dist/contracts/{content-program.d.ts → content-model.d.ts} +338 -82
  43. package/dist/contracts/{content-program.js → content-model.js} +291 -63
  44. package/dist/contracts/content-platform-fixture.d.ts +380 -110
  45. package/dist/contracts/content-platform-fixture.js +8 -8
  46. package/dist/contracts/content-sync.d.ts +197 -74
  47. package/dist/contracts/content-sync.js +98 -37
  48. package/dist/contracts/content.d.ts +30 -422
  49. package/dist/contracts/content.js +34 -294
  50. package/dist/contracts/dashboard-prefs.d.ts +10 -3
  51. package/dist/contracts/dashboard-prefs.js +6 -3
  52. package/dist/contracts/data-location.d.ts +9 -0
  53. package/dist/contracts/data-location.js +7 -0
  54. package/dist/contracts/deployment-comparison.d.ts +67 -0
  55. package/dist/contracts/deployment-comparison.js +68 -0
  56. package/dist/contracts/device-auth.d.ts +55 -11
  57. package/dist/contracts/domains.d.ts +40 -16
  58. package/dist/contracts/domains.js +23 -0
  59. package/dist/contracts/enums.d.ts +1 -10
  60. package/dist/contracts/enums.js +0 -15
  61. package/dist/contracts/error-code-meta.d.ts +384 -20
  62. package/dist/contracts/error-code-meta.js +200 -5
  63. package/dist/contracts/error-codes.d.ts +17 -4
  64. package/dist/contracts/error-codes.js +108 -10
  65. package/dist/contracts/events.d.ts +5 -0
  66. package/dist/contracts/events.js +12 -3
  67. package/dist/contracts/execution.d.ts +5 -1
  68. package/dist/contracts/execution.js +4 -0
  69. package/dist/contracts/feature-lifecycle.d.ts +53 -20
  70. package/dist/contracts/feature-lifecycle.js +65 -23
  71. package/dist/contracts/features.d.ts +57 -31
  72. package/dist/contracts/features.js +0 -1
  73. package/dist/contracts/feedback.d.ts +124 -0
  74. package/dist/contracts/feedback.js +64 -0
  75. package/dist/contracts/fixtures/content-model-sdk-v1.generated.d.ts +129 -0
  76. package/dist/contracts/fixtures/content-model-sdk-v1.generated.js +48 -0
  77. package/dist/contracts/fixtures/content-platform-v1.json +101 -49
  78. package/dist/contracts/frame-session.d.ts +60 -10
  79. package/dist/contracts/frame-session.js +52 -12
  80. package/dist/contracts/functions.d.ts +28 -2
  81. package/dist/contracts/functions.js +25 -2
  82. package/dist/contracts/grant-copy.d.ts +2 -0
  83. package/dist/contracts/grant-copy.js +2 -0
  84. package/dist/contracts/grants-core.d.ts +95 -0
  85. package/dist/contracts/grants-core.js +435 -0
  86. package/dist/contracts/grants.d.ts +13 -84
  87. package/dist/contracts/grants.js +21 -369
  88. package/dist/contracts/ids-core.d.ts +11 -0
  89. package/dist/contracts/ids-core.js +14 -0
  90. package/dist/contracts/ids.d.ts +7 -4
  91. package/dist/contracts/ids.js +12 -4
  92. package/dist/contracts/internal.d.ts +18 -0
  93. package/dist/contracts/internal.js +19 -0
  94. package/dist/contracts/mcp.d.ts +8 -18
  95. package/dist/contracts/mcp.js +2 -23
  96. package/dist/contracts/notifications.d.ts +4 -1
  97. package/dist/contracts/notifications.js +1 -0
  98. package/dist/contracts/oauth-resources.d.ts +46 -9
  99. package/dist/contracts/oauth-resources.js +50 -1
  100. package/dist/contracts/oauth-scope-actions.d.ts +27 -3
  101. package/dist/contracts/oauth-scope-actions.js +18 -8
  102. package/dist/contracts/operations.d.ts +1 -1
  103. package/dist/contracts/partner-account.d.ts +629 -0
  104. package/dist/contracts/partner-account.js +18 -0
  105. package/dist/contracts/principal-assertion.d.ts +74 -1
  106. package/dist/contracts/principal-assertion.js +67 -3
  107. package/dist/contracts/publish-archive.d.ts +22 -1
  108. package/dist/contracts/push-new.d.ts +3 -3
  109. package/dist/contracts/push-new.js +1 -1
  110. package/dist/contracts/quotas.js +2 -1
  111. package/dist/contracts/repository-connections.d.ts +10 -6
  112. package/dist/contracts/repository-connections.js +15 -0
  113. package/dist/contracts/resources.d.ts +6 -5
  114. package/dist/contracts/resources.js +7 -0
  115. package/dist/contracts/route-inventory.d.ts +74 -19
  116. package/dist/contracts/route-inventory.js +20 -6
  117. package/dist/contracts/runtime-api.d.ts +415 -4
  118. package/dist/contracts/runtime-api.js +60 -15
  119. package/dist/contracts/runtime-app.d.ts +6 -1
  120. package/dist/contracts/runtime-components.d.ts +646 -18
  121. package/dist/contracts/runtime-components.js +304 -188
  122. package/dist/contracts/runtime-services.d.ts +15 -0
  123. package/dist/contracts/runtime-services.js +25 -0
  124. package/dist/contracts/runtime-storage.d.ts +32 -0
  125. package/dist/contracts/runtime-storage.js +37 -0
  126. package/dist/contracts/source-workspaces.d.ts +511 -0
  127. package/dist/contracts/source-workspaces.js +276 -0
  128. package/dist/contracts/space-config-spacefast.d.ts +394 -0
  129. package/dist/contracts/space-config-spacefast.js +70 -0
  130. package/dist/contracts/space-config.d.ts +177 -90
  131. package/dist/contracts/space-config.js +77 -92
  132. package/dist/contracts/spaces.d.ts +132 -24
  133. package/dist/contracts/spaces.js +77 -13
  134. package/dist/contracts/superadmin-connectors.d.ts +371 -0
  135. package/dist/contracts/superadmin-connectors.js +61 -0
  136. package/dist/contracts/superadmin-emails.d.ts +1 -1
  137. package/dist/contracts/superadmin-emails.js +1 -1
  138. package/dist/contracts/superadmin-entities.d.ts +105 -0
  139. package/dist/contracts/superadmin-entities.js +64 -0
  140. package/dist/contracts/superadmin-runtime.d.ts +35 -116
  141. package/dist/contracts/superadmin-runtime.js +13 -69
  142. package/dist/contracts/superadmin-search.d.ts +12 -14
  143. package/dist/contracts/superadmin-search.js +2 -2
  144. package/dist/contracts/superadmin-spaces.d.ts +15 -72
  145. package/dist/contracts/superadmin-spaces.js +2 -7
  146. package/dist/contracts/superadmin-teams.d.ts +12 -0
  147. package/dist/contracts/superadmin-teams.js +7 -1
  148. package/dist/contracts/superadmin-tenants.d.ts +44 -16
  149. package/dist/contracts/superadmin.d.ts +2 -2
  150. package/dist/contracts/tags.d.ts +12 -12
  151. package/dist/contracts/teams.d.ts +29 -1
  152. package/dist/contracts/teams.js +24 -2
  153. package/dist/contracts/tenants.d.ts +98 -0
  154. package/dist/contracts/tenants.js +20 -0
  155. package/dist/contracts/transfers.d.ts +92 -0
  156. package/dist/contracts/transfers.js +37 -0
  157. package/dist/contracts/usage.d.ts +9 -1
  158. package/dist/contracts/usage.js +2 -0
  159. package/dist/contracts/visual-review.d.ts +448 -0
  160. package/dist/contracts/visual-review.js +156 -0
  161. package/dist/contracts/wordpress-php-toolkit.json +9 -0
  162. package/dist/contracts/work-mode.d.ts +24 -0
  163. package/dist/contracts/work-mode.js +17 -0
  164. package/dist/contracts/wp-cli.d.ts +66 -0
  165. package/dist/contracts/wp-cli.js +68 -0
  166. package/dist/contracts/zero-catalog.d.ts +29 -0
  167. package/dist/contracts/zero-catalog.js +55 -0
  168. package/dist/contracts/zero-platform-abilities.generated.d.ts +31 -0
  169. package/dist/contracts/zero-platform-abilities.generated.js +373 -0
  170. package/dist/contracts/zero-spacefast.d.ts +444 -0
  171. package/dist/contracts/zero-spacefast.js +149 -0
  172. package/dist/contracts/zero-types.d.ts +47 -0
  173. package/dist/contracts/zero-types.js +263 -0
  174. package/dist/contracts/zero.d.ts +781 -14
  175. package/dist/contracts/zero.js +204 -10
  176. package/dist/dashboard-paths/index.d.ts +2 -2
  177. package/dist/dashboard-paths/route-reservations.generated.d.ts +2 -2
  178. package/dist/dashboard-paths/route-reservations.generated.js +5 -0
  179. package/dist/docs/agent-prose.d.ts +1 -1
  180. package/dist/docs/agent-prose.js +15 -18
  181. package/dist/docs/agent-setup.d.ts +1 -1
  182. package/dist/docs/agent-setup.js +5 -13
  183. package/dist/docs/catalog.d.ts +64 -28
  184. package/dist/docs/catalog.js +155 -28
  185. package/dist/docs/error-docs.d.ts +361 -17
  186. package/dist/docs/error-docs.js +365 -21
  187. package/dist/docs/reference-urls.js +1 -1
  188. package/dist/docs/skills.d.ts +84 -84
  189. package/dist/docs/skills.js +66 -47
  190. package/dist/docs/start-prompts.d.ts +14 -0
  191. package/dist/docs/start-prompts.js +20 -0
  192. package/dist/utils/account-labels.d.ts +7 -0
  193. package/dist/utils/account-labels.js +15 -0
  194. package/dist/utils/auth.d.ts +1 -0
  195. package/dist/utils/auth.js +1 -0
  196. package/dist/utils/credential-policy.d.ts +22 -1
  197. package/dist/utils/credential-policy.js +55 -6
  198. package/dist/utils/local-space-state.d.ts +7 -0
  199. package/dist/utils/local-space-state.js +7 -0
  200. package/dist/utils/logger.d.ts +34 -0
  201. package/dist/utils/logger.js +144 -0
  202. package/dist/utils/page-routes.d.ts +9 -0
  203. package/dist/utils/page-routes.js +82 -0
  204. package/dist/utils/pages.d.ts +2 -0
  205. package/dist/utils/pages.js +7 -0
  206. package/dist/utils/publish-form-data.d.ts +2 -0
  207. package/dist/utils/publish-form-data.js +2 -0
  208. package/dist/utils/publish-policy-spacefast.d.ts +13 -0
  209. package/dist/utils/publish-policy-spacefast.js +117 -0
  210. package/dist/utils/publish-policy.d.ts +22 -16
  211. package/dist/utils/publish-policy.fixtures.json +15 -0
  212. package/dist/utils/publish-policy.js +62 -139
  213. package/dist/utils/query-client.js +9 -1
  214. package/dist/utils/runtime-upload.d.ts +4 -0
  215. package/dist/utils/runtime-upload.js +5 -0
  216. package/dist/utils/space-config.d.ts +2 -3
  217. package/dist/utils/space-config.js +1 -1
  218. package/dist/utils/uploaded-source.d.ts +4 -0
  219. package/dist/utils/uploaded-source.js +12 -0
  220. package/dist/visual-review.d.ts +4 -0
  221. package/dist/visual-review.js +208 -0
  222. package/dist/vocabulary.d.ts +38 -0
  223. package/dist/vocabulary.js +55 -0
  224. package/package.json +7 -2
  225. package/dist/agents/registry/deeplink-probes.d.ts +0 -23
  226. package/dist/agents/registry/deeplink-probes.js +0 -18
@@ -3,8 +3,54 @@ export declare const runtimeCapabilityIdSchema: z.core.$ZodBranded<z.ZodString,
3
3
  export declare const runtimeComponentIdSchema: z.core.$ZodBranded<z.ZodString, "RuntimeComponentId", "out">;
4
4
  export type RuntimeCapabilityId = z.infer<typeof runtimeCapabilityIdSchema>;
5
5
  export type RuntimeComponentId = z.infer<typeof runtimeComponentIdSchema>;
6
- export declare const RUNTIME_COMPONENT_V1_REQUIRED_IDS: readonly ["wordpress-core", "runtime-engine", "immutable-loader", "content-kernel", "managed-theme", "secure-custom-fields", "redirection", "block-transformer", "quickjs-abi"];
7
- export declare const RUNTIME_COMPONENT_KINDS: readonly ["wordpress-core", "runtime-engine", "mu-plugin", "plugin", "theme", "block-transformer", "quickjs-abi"];
6
+ export declare const RUNTIME_ACCESS_BROWSER_STATE_CAPABILITY: string & z.core.$brand<"RuntimeCapabilityId">;
7
+ export declare const SPACEFAST_WORDPRESS_COMPONENT_RELEASE: {
8
+ readonly wordpress: {
9
+ readonly version: "7.1";
10
+ readonly archiveUrl: "https://wordpress.org/wordpress-7.1.zip";
11
+ readonly archiveBytes: 37216004;
12
+ readonly archiveSha256: "sha256:d1ae02b5ae18428031ffc3943659fa87ab361d827f4aa804adf9276e4dc75df6";
13
+ };
14
+ readonly secureCustomFields: {
15
+ readonly version: "6.9.5";
16
+ readonly software: "plugin://https://downloads.wordpress.org/plugin/secure-custom-fields.6.9.5.zip";
17
+ readonly archiveUrl: "https://downloads.wordpress.org/plugin/secure-custom-fields.6.9.5.zip";
18
+ readonly archiveBytes: 5532990;
19
+ readonly archiveSha256: "sha256:2f3c6be871e23192bbcaf0f0870a8103678b078d168983cb39d95e0b0d25dbf3";
20
+ };
21
+ readonly redirection: {
22
+ readonly version: "5.10.0";
23
+ readonly software: "plugin://https://downloads.wordpress.org/plugin/redirection.5.10.0.zip";
24
+ readonly archiveUrl: "https://downloads.wordpress.org/plugin/redirection.5.10.0.zip";
25
+ readonly archiveBytes: 494067;
26
+ readonly archiveSha256: "sha256:966ac6267cd6a99f2d79ec05db1dee2e0aa0cddb6060b1c32cde2ffde739e333";
27
+ };
28
+ readonly blockTransformer: {
29
+ readonly version: "0.6.2";
30
+ readonly software: "plugin://https://codeload.github.com/Automattic/blocks-engine-php-transformer/zip/refs/tags/v0.6.2";
31
+ readonly archiveUrl: "https://codeload.github.com/Automattic/blocks-engine-php-transformer/zip/refs/tags/v0.6.2";
32
+ readonly archiveBytes: 786827;
33
+ readonly archiveSha256: "sha256:16492638259e8f0c1676332e52df27dd005552cca4a3f50055274363030a5a49";
34
+ };
35
+ readonly phpToolkit: {
36
+ version: string;
37
+ archiveUrl: string;
38
+ archiveBytes: number;
39
+ archiveSha256: string;
40
+ archivePath: string;
41
+ embeddedPath: string;
42
+ sha256: string;
43
+ };
44
+ readonly jetpack: {
45
+ readonly version: "latest";
46
+ readonly software: "plugins/jetpack/latest";
47
+ };
48
+ readonly quickjsAbi: "rquickjs-0.12";
49
+ readonly managedTheme: "spacefast-managed";
50
+ };
51
+ export declare const RUNTIME_COMPONENT_V1_REQUIRED_IDS: readonly ["wordpress-core", "runtime-engine", "immutable-loader", "content-kernel", "managed-theme", "secure-custom-fields", "redirection", "block-transformer", "php-toolkit", "jetpack", "quickjs-abi"];
52
+ export declare const JETPACK_RUNTIME_COMPONENT_ID: string & z.core.$brand<"RuntimeComponentId">;
53
+ export declare const RUNTIME_COMPONENT_KINDS: readonly ["wordpress-core", "runtime-engine", "mu-plugin", "plugin", "theme", "block-transformer", "quickjs-abi", "runtime-library"];
8
54
  export declare const runtimeComponentKindSchema: z.ZodEnum<{
9
55
  plugin: "plugin";
10
56
  theme: "theme";
@@ -13,6 +59,7 @@ export declare const runtimeComponentKindSchema: z.ZodEnum<{
13
59
  "block-transformer": "block-transformer";
14
60
  "quickjs-abi": "quickjs-abi";
15
61
  "mu-plugin": "mu-plugin";
62
+ "runtime-library": "runtime-library";
16
63
  }>;
17
64
  export type RuntimeComponentKind = z.infer<typeof runtimeComponentKindSchema>;
18
65
  export declare const runtimeComponentV1Schema: z.ZodObject<{
@@ -25,9 +72,10 @@ export declare const runtimeComponentV1Schema: z.ZodObject<{
25
72
  "block-transformer": "block-transformer";
26
73
  "quickjs-abi": "quickjs-abi";
27
74
  "mu-plugin": "mu-plugin";
75
+ "runtime-library": "runtime-library";
28
76
  }>;
29
77
  version: z.ZodString;
30
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
78
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
31
79
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
32
80
  kind: z.ZodLiteral<"archive">;
33
81
  url: z.ZodString;
@@ -35,10 +83,18 @@ export declare const runtimeComponentV1Schema: z.ZodObject<{
35
83
  }, z.core.$strict>, z.ZodObject<{
36
84
  kind: z.ZodLiteral<"embedded">;
37
85
  path: z.ZodString;
86
+ }, z.core.$strict>, z.ZodObject<{
87
+ kind: z.ZodLiteral<"provider-managed">;
88
+ software: z.ZodString;
38
89
  }, z.core.$strict>], "kind">;
90
+ installedArtifact: z.ZodOptional<z.ZodObject<{
91
+ path: z.ZodString;
92
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
93
+ }, z.core.$strict>>;
39
94
  provides: z.ZodArray<z.core.$ZodBranded<z.ZodString, "RuntimeCapabilityId", "out">>;
40
95
  activation: z.ZodEnum<{
41
96
  always: "always";
97
+ installed: "installed";
42
98
  "on-demand": "on-demand";
43
99
  }>;
44
100
  }, z.core.$strict>;
@@ -47,7 +103,7 @@ export declare const runtimeComponentInventoryV1Schema: z.ZodObject<{
47
103
  format: z.ZodLiteral<"spacefast.wordpress-components">;
48
104
  version: z.ZodLiteral<1>;
49
105
  platformRelease: z.ZodString;
50
- digest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
106
+ digest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
51
107
  components: z.ZodArray<z.ZodObject<{
52
108
  id: z.core.$ZodBranded<z.ZodString, "RuntimeComponentId", "out">;
53
109
  kind: z.ZodEnum<{
@@ -58,9 +114,10 @@ export declare const runtimeComponentInventoryV1Schema: z.ZodObject<{
58
114
  "block-transformer": "block-transformer";
59
115
  "quickjs-abi": "quickjs-abi";
60
116
  "mu-plugin": "mu-plugin";
117
+ "runtime-library": "runtime-library";
61
118
  }>;
62
119
  version: z.ZodString;
63
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
120
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
64
121
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
65
122
  kind: z.ZodLiteral<"archive">;
66
123
  url: z.ZodString;
@@ -68,32 +125,570 @@ export declare const runtimeComponentInventoryV1Schema: z.ZodObject<{
68
125
  }, z.core.$strict>, z.ZodObject<{
69
126
  kind: z.ZodLiteral<"embedded">;
70
127
  path: z.ZodString;
128
+ }, z.core.$strict>, z.ZodObject<{
129
+ kind: z.ZodLiteral<"provider-managed">;
130
+ software: z.ZodString;
71
131
  }, z.core.$strict>], "kind">;
132
+ installedArtifact: z.ZodOptional<z.ZodObject<{
133
+ path: z.ZodString;
134
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
135
+ }, z.core.$strict>>;
72
136
  provides: z.ZodArray<z.core.$ZodBranded<z.ZodString, "RuntimeCapabilityId", "out">>;
73
137
  activation: z.ZodEnum<{
74
138
  always: "always";
139
+ installed: "installed";
75
140
  "on-demand": "on-demand";
76
141
  }>;
77
142
  }, z.core.$strict>>;
78
143
  }, z.core.$strict>;
79
144
  export type RuntimeComponentInventoryV1 = z.infer<typeof runtimeComponentInventoryV1Schema>;
80
- export declare const programRequirementsV1Schema: z.ZodObject<{
81
- format: z.ZodLiteral<"spacefast.program-requirements">;
145
+ export declare const contentModelRequirementsV1Schema: z.ZodObject<{
146
+ format: z.ZodLiteral<"spacefast.content-model-requirements">;
82
147
  version: z.ZodLiteral<1>;
83
- inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
148
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
84
149
  wordpressAbi: z.ZodLiteral<1>;
85
150
  capabilities: z.ZodArray<z.core.$ZodBranded<z.ZodString, "RuntimeCapabilityId", "out">>;
86
151
  }, z.core.$strict>;
87
- export type ProgramRequirementsV1 = z.infer<typeof programRequirementsV1Schema>;
152
+ export type ContentModelRequirementsV1 = z.infer<typeof contentModelRequirementsV1Schema>;
153
+ /**
154
+ * A compiled content model as a published version carries it, under
155
+ * `sourceMetadata.statticZero.contentModel`.
156
+ *
157
+ * The five artifacts plus the `compiled` manifest naming their digests. This is
158
+ * the one spelling of that bag: the capsule compiler writes it, version source
159
+ * metadata transports it, and the control plane re-verifies it before staging
160
+ * `content-model.php`. It lives here, beside the requirements it carries,
161
+ * rather than in the verifier — the deploy-metadata contract needs to name it
162
+ * without dragging in the whole verification graph.
163
+ */
164
+ export declare const compiledContentModelArtifactsV1Schema: z.ZodObject<{
165
+ compiled: z.ZodObject<{
166
+ format: z.ZodLiteral<"spacefast.compiled-content-model">;
167
+ version: z.ZodLiteral<1>;
168
+ model: z.ZodObject<{
169
+ format: z.ZodLiteral<"spacefast.zero-wordpress">;
170
+ version: z.ZodLiteral<1>;
171
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
172
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
173
+ bytes: z.ZodNumber;
174
+ mediaType: z.ZodLiteral<"application/json">;
175
+ }, z.core.$strict>;
176
+ executables: z.ZodObject<{
177
+ format: z.ZodLiteral<"spacefast.zero-executables">;
178
+ version: z.ZodLiteral<1>;
179
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
180
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
181
+ bytes: z.ZodNumber;
182
+ mediaType: z.ZodLiteral<"application/json">;
183
+ }, z.core.$strict>;
184
+ sdk: z.ZodObject<{
185
+ format: z.ZodLiteral<"spacefast.sdk-descriptors">;
186
+ version: z.ZodLiteral<1>;
187
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
188
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
189
+ bytes: z.ZodNumber;
190
+ mediaType: z.ZodLiteral<"application/json">;
191
+ }, z.core.$strict>;
192
+ routes: z.ZodObject<{
193
+ format: z.ZodLiteral<"spacefast.route-contributions">;
194
+ version: z.ZodLiteral<1>;
195
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
196
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
197
+ bytes: z.ZodNumber;
198
+ mediaType: z.ZodLiteral<"application/json">;
199
+ }, z.core.$strict>;
200
+ requirements: z.ZodObject<{
201
+ format: z.ZodLiteral<"spacefast.content-model-requirements">;
202
+ version: z.ZodLiteral<1>;
203
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
204
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
205
+ bytes: z.ZodNumber;
206
+ mediaType: z.ZodLiteral<"application/json">;
207
+ }, z.core.$strict>;
208
+ }, z.core.$strict>;
209
+ model: z.ZodObject<{
210
+ format: z.ZodLiteral<"spacefast.zero-wordpress">;
211
+ version: z.ZodLiteral<1>;
212
+ revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
213
+ schemas: z.ZodArray<z.ZodObject<{
214
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
215
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
216
+ schema: z.ZodType<import("./content-model.js").ContentModelJsonValue, unknown, z.core.$ZodTypeInternals<import("./content-model.js").ContentModelJsonValue, unknown>>;
217
+ }, z.core.$strict>>;
218
+ wordpress: z.ZodObject<{
219
+ format: z.ZodLiteral<"spacefast.wordpress-content-model">;
220
+ version: z.ZodLiteral<1>;
221
+ resources: z.ZodArray<z.ZodObject<{
222
+ id: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
223
+ name: z.ZodString;
224
+ label: z.ZodString;
225
+ kind: z.ZodEnum<{
226
+ media: "media";
227
+ collection: "collection";
228
+ posts: "posts";
229
+ pages: "pages";
230
+ }>;
231
+ fields: z.ZodArray<z.ZodObject<{
232
+ id: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
233
+ name: z.ZodString;
234
+ label: z.ZodString;
235
+ required: z.ZodBoolean;
236
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
237
+ kind: z.ZodLiteral<"text">;
238
+ multiline: z.ZodBoolean;
239
+ maxLength: z.ZodNullable<z.ZodNumber>;
240
+ }, z.core.$strict>, z.ZodObject<{
241
+ kind: z.ZodLiteral<"number">;
242
+ }, z.core.$strict>, z.ZodObject<{
243
+ kind: z.ZodLiteral<"boolean">;
244
+ }, z.core.$strict>, z.ZodObject<{
245
+ kind: z.ZodLiteral<"datetime">;
246
+ }, z.core.$strict>, z.ZodObject<{
247
+ kind: z.ZodLiteral<"blocks">;
248
+ allowed: z.ZodUnion<readonly [z.ZodLiteral<"any">, z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentComponentId", "out">>]>;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ kind: z.ZodLiteral<"media">;
251
+ multiple: z.ZodBoolean;
252
+ }, z.core.$strict>, z.ZodObject<{
253
+ kind: z.ZodLiteral<"reference">;
254
+ target: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
255
+ multiple: z.ZodBoolean;
256
+ }, z.core.$strict>, z.ZodObject<{
257
+ kind: z.ZodLiteral<"enum">;
258
+ values: z.ZodArray<z.ZodString>;
259
+ multiple: z.ZodBoolean;
260
+ }, z.core.$strict>], "kind">;
261
+ }, z.core.$strict>>;
262
+ publicRead: z.ZodBoolean;
263
+ }, z.core.$strict>>;
264
+ }, z.core.$strict>;
265
+ tables: z.ZodArray<z.ZodObject<{
266
+ id: z.core.$ZodBranded<z.ZodString, "ContentTableId", "out">;
267
+ name: z.ZodString;
268
+ columns: z.ZodArray<z.ZodObject<{
269
+ id: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
270
+ name: z.ZodString;
271
+ nullable: z.ZodBoolean;
272
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
273
+ kind: z.ZodLiteral<"string">;
274
+ maxLength: z.ZodNullable<z.ZodNumber>;
275
+ }, z.core.$strict>, z.ZodObject<{
276
+ kind: z.ZodLiteral<"number">;
277
+ }, z.core.$strict>, z.ZodObject<{
278
+ kind: z.ZodLiteral<"boolean">;
279
+ }, z.core.$strict>, z.ZodObject<{
280
+ kind: z.ZodLiteral<"datetime">;
281
+ }, z.core.$strict>, z.ZodObject<{
282
+ kind: z.ZodLiteral<"json">;
283
+ }, z.core.$strict>], "kind">;
284
+ }, z.core.$strict>>;
285
+ indexes: z.ZodArray<z.ZodObject<{
286
+ id: z.ZodString;
287
+ fields: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">>;
288
+ unique: z.ZodBoolean;
289
+ }, z.core.$strict>>;
290
+ }, z.core.$strict>>;
291
+ abilities: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
292
+ kind: z.ZodLiteral<"query">;
293
+ mode: z.ZodLiteral<"read">;
294
+ id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
295
+ input: z.ZodObject<{
296
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
297
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
298
+ }, z.core.$strict>;
299
+ output: z.ZodObject<{
300
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
301
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
302
+ }, z.core.$strict>;
303
+ permits: z.ZodArray<z.ZodEnum<{
304
+ "page.view": "page.view";
305
+ "comments.read": "comments.read";
306
+ "comments.write": "comments.write";
307
+ "content.publish": "content.publish";
308
+ "access.manage": "access.manage";
309
+ }>>;
310
+ reads: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
311
+ writes: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
312
+ exposure: z.ZodDiscriminatedUnion<[z.ZodObject<{
313
+ kind: z.ZodLiteral<"named">;
314
+ named: z.ZodLiteral<true>;
315
+ }, z.core.$strict>, z.ZodObject<{
316
+ kind: z.ZodLiteral<"routed">;
317
+ named: z.ZodLiteral<true>;
318
+ route: z.ZodObject<{
319
+ id: z.ZodString;
320
+ method: z.ZodEnum<{
321
+ POST: "POST";
322
+ PUT: "PUT";
323
+ GET: "GET";
324
+ HEAD: "HEAD";
325
+ PATCH: "PATCH";
326
+ DELETE: "DELETE";
327
+ OPTIONS: "OPTIONS";
328
+ }>;
329
+ path: z.ZodString;
330
+ admission: z.ZodEnum<{
331
+ public: "public";
332
+ authenticated: "authenticated";
333
+ }>;
334
+ }, z.core.$strict>;
335
+ }, z.core.$strict>], "kind">;
336
+ cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
337
+ kind: z.ZodLiteral<"none">;
338
+ }, z.core.$strict>, z.ZodObject<{
339
+ kind: z.ZodLiteral<"private">;
340
+ maxAgeSeconds: z.ZodNumber;
341
+ }, z.core.$strict>, z.ZodObject<{
342
+ kind: z.ZodLiteral<"public">;
343
+ maxAgeSeconds: z.ZodNumber;
344
+ staleWhileRevalidateSeconds: z.ZodNumber;
345
+ }, z.core.$strict>], "kind">;
346
+ }, z.core.$strict>, z.ZodObject<{
347
+ kind: z.ZodLiteral<"mutation">;
348
+ mode: z.ZodLiteral<"write">;
349
+ id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
350
+ input: z.ZodObject<{
351
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
352
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
353
+ }, z.core.$strict>;
354
+ output: z.ZodObject<{
355
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
356
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
357
+ }, z.core.$strict>;
358
+ permits: z.ZodArray<z.ZodEnum<{
359
+ "page.view": "page.view";
360
+ "comments.read": "comments.read";
361
+ "comments.write": "comments.write";
362
+ "content.publish": "content.publish";
363
+ "access.manage": "access.manage";
364
+ }>>;
365
+ reads: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
366
+ writes: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
367
+ exposure: z.ZodDiscriminatedUnion<[z.ZodObject<{
368
+ kind: z.ZodLiteral<"named">;
369
+ named: z.ZodLiteral<true>;
370
+ }, z.core.$strict>, z.ZodObject<{
371
+ kind: z.ZodLiteral<"routed">;
372
+ named: z.ZodLiteral<true>;
373
+ route: z.ZodObject<{
374
+ id: z.ZodString;
375
+ method: z.ZodEnum<{
376
+ POST: "POST";
377
+ PUT: "PUT";
378
+ GET: "GET";
379
+ HEAD: "HEAD";
380
+ PATCH: "PATCH";
381
+ DELETE: "DELETE";
382
+ OPTIONS: "OPTIONS";
383
+ }>;
384
+ path: z.ZodString;
385
+ admission: z.ZodEnum<{
386
+ public: "public";
387
+ authenticated: "authenticated";
388
+ }>;
389
+ }, z.core.$strict>;
390
+ }, z.core.$strict>], "kind">;
391
+ cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
392
+ kind: z.ZodLiteral<"none">;
393
+ }, z.core.$strict>, z.ZodObject<{
394
+ kind: z.ZodLiteral<"private">;
395
+ maxAgeSeconds: z.ZodNumber;
396
+ }, z.core.$strict>, z.ZodObject<{
397
+ kind: z.ZodLiteral<"public">;
398
+ maxAgeSeconds: z.ZodNumber;
399
+ staleWhileRevalidateSeconds: z.ZodNumber;
400
+ }, z.core.$strict>], "kind">;
401
+ }, z.core.$strict>, z.ZodObject<{
402
+ kind: z.ZodLiteral<"endpoint">;
403
+ mode: z.ZodEnum<{
404
+ read: "read";
405
+ write: "write";
406
+ }>;
407
+ id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
408
+ input: z.ZodObject<{
409
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
410
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
411
+ }, z.core.$strict>;
412
+ output: z.ZodObject<{
413
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
414
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
415
+ }, z.core.$strict>;
416
+ permits: z.ZodArray<z.ZodEnum<{
417
+ "page.view": "page.view";
418
+ "comments.read": "comments.read";
419
+ "comments.write": "comments.write";
420
+ "content.publish": "content.publish";
421
+ "access.manage": "access.manage";
422
+ }>>;
423
+ reads: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
424
+ writes: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">>;
425
+ exposure: z.ZodDiscriminatedUnion<[z.ZodObject<{
426
+ kind: z.ZodLiteral<"named">;
427
+ named: z.ZodLiteral<true>;
428
+ }, z.core.$strict>, z.ZodObject<{
429
+ kind: z.ZodLiteral<"routed">;
430
+ named: z.ZodLiteral<true>;
431
+ route: z.ZodObject<{
432
+ id: z.ZodString;
433
+ method: z.ZodEnum<{
434
+ POST: "POST";
435
+ PUT: "PUT";
436
+ GET: "GET";
437
+ HEAD: "HEAD";
438
+ PATCH: "PATCH";
439
+ DELETE: "DELETE";
440
+ OPTIONS: "OPTIONS";
441
+ }>;
442
+ path: z.ZodString;
443
+ admission: z.ZodEnum<{
444
+ public: "public";
445
+ authenticated: "authenticated";
446
+ }>;
447
+ }, z.core.$strict>;
448
+ }, z.core.$strict>], "kind">;
449
+ cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
450
+ kind: z.ZodLiteral<"none">;
451
+ }, z.core.$strict>, z.ZodObject<{
452
+ kind: z.ZodLiteral<"private">;
453
+ maxAgeSeconds: z.ZodNumber;
454
+ }, z.core.$strict>, z.ZodObject<{
455
+ kind: z.ZodLiteral<"public">;
456
+ maxAgeSeconds: z.ZodNumber;
457
+ staleWhileRevalidateSeconds: z.ZodNumber;
458
+ }, z.core.$strict>], "kind">;
459
+ }, z.core.$strict>], "kind">>;
460
+ pages: z.ZodArray<z.ZodObject<{
461
+ id: z.ZodString;
462
+ sourceKey: z.ZodString;
463
+ path: z.ZodString;
464
+ title: z.ZodString;
465
+ blockName: z.ZodLiteral<"zero/component">;
466
+ componentId: z.core.$ZodBranded<z.ZodString, "ContentComponentId", "out">;
467
+ props: z.ZodObject<{
468
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
469
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
470
+ }, z.core.$strict>;
471
+ }, z.core.$strict>>;
472
+ hooks: z.ZodArray<z.ZodObject<{
473
+ id: z.ZodString;
474
+ runtime: z.ZodEnum<{
475
+ php: "php";
476
+ quickjs: "quickjs";
477
+ }>;
478
+ artifact: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
479
+ export: z.ZodString;
480
+ }, z.core.$strict>>;
481
+ syncBindings: z.ZodArray<z.ZodPipe<z.ZodObject<{
482
+ id: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
483
+ resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
484
+ fieldId: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
485
+ source: z.ZodString;
486
+ publicPath: z.ZodOptional<z.ZodString>;
487
+ format: z.ZodOptional<z.ZodEnum<{
488
+ md: "md";
489
+ html: "html";
490
+ tsx: "tsx";
491
+ }>>;
492
+ compiled: z.ZodOptional<z.ZodObject<{
493
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
494
+ }, z.core.$strict>>;
495
+ documentSeed: z.ZodOptional<z.ZodObject<{
496
+ text: z.ZodString;
497
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
498
+ }, z.core.$strict>>;
499
+ slug: z.ZodString;
500
+ }, z.core.$strict>, z.ZodTransform<{
501
+ format: "md" | "html" | "tsx";
502
+ id: string & z.core.$brand<"ContentSyncBindingId">;
503
+ resourceId: string & z.core.$brand<"ContentResourceId">;
504
+ fieldId: string & z.core.$brand<"ContentFieldId">;
505
+ source: string;
506
+ slug: string;
507
+ publicPath?: string | undefined;
508
+ compiled?: {
509
+ sha256: string & z.core.$brand<"ContentModelSha256">;
510
+ } | undefined;
511
+ documentSeed?: {
512
+ text: string;
513
+ sha256: string & z.core.$brand<"ContentModelSha256">;
514
+ } | undefined;
515
+ }, {
516
+ id: string & z.core.$brand<"ContentSyncBindingId">;
517
+ resourceId: string & z.core.$brand<"ContentResourceId">;
518
+ fieldId: string & z.core.$brand<"ContentFieldId">;
519
+ source: string;
520
+ slug: string;
521
+ publicPath?: string | undefined;
522
+ format?: "md" | "html" | "tsx" | undefined;
523
+ compiled?: {
524
+ sha256: string & z.core.$brand<"ContentModelSha256">;
525
+ } | undefined;
526
+ documentSeed?: {
527
+ text: string;
528
+ sha256: string & z.core.$brand<"ContentModelSha256">;
529
+ } | undefined;
530
+ }>>>;
531
+ materializations: z.ZodDefault<z.ZodArray<z.ZodObject<{
532
+ resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
533
+ fieldId: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
534
+ directory: z.ZodString;
535
+ suffix: z.ZodString;
536
+ format: z.ZodEnum<{
537
+ md: "md";
538
+ html: "html";
539
+ tsx: "tsx";
540
+ }>;
541
+ }, z.core.$strict>>>;
542
+ }, z.core.$strict>;
543
+ executables: z.ZodObject<{
544
+ format: z.ZodLiteral<"spacefast.zero-executables">;
545
+ version: z.ZodLiteral<1>;
546
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
547
+ executables: z.ZodArray<z.ZodObject<{
548
+ id: z.ZodString;
549
+ runtime: z.ZodEnum<{
550
+ php: "php";
551
+ quickjs: "quickjs";
552
+ }>;
553
+ artifact: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
554
+ export: z.ZodString;
555
+ }, z.core.$strict>>;
556
+ }, z.core.$strict>;
557
+ sdk: z.ZodObject<{
558
+ format: z.ZodLiteral<"spacefast.sdk-descriptors">;
559
+ version: z.ZodLiteral<1>;
560
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
561
+ operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
562
+ id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
563
+ kind: z.ZodLiteral<"query">;
564
+ mode: z.ZodLiteral<"read">;
565
+ input: z.ZodObject<{
566
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
567
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
568
+ }, z.core.$strict>;
569
+ output: z.ZodObject<{
570
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
571
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
572
+ }, z.core.$strict>;
573
+ cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
574
+ kind: z.ZodLiteral<"none">;
575
+ }, z.core.$strict>, z.ZodObject<{
576
+ kind: z.ZodLiteral<"private">;
577
+ maxAgeSeconds: z.ZodNumber;
578
+ }, z.core.$strict>, z.ZodObject<{
579
+ kind: z.ZodLiteral<"public">;
580
+ maxAgeSeconds: z.ZodNumber;
581
+ staleWhileRevalidateSeconds: z.ZodNumber;
582
+ }, z.core.$strict>], "kind">;
583
+ invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
584
+ }, z.core.$strict>, z.ZodObject<{
585
+ id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
586
+ kind: z.ZodLiteral<"mutation">;
587
+ mode: z.ZodLiteral<"write">;
588
+ input: z.ZodObject<{
589
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
590
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
591
+ }, z.core.$strict>;
592
+ output: z.ZodObject<{
593
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
594
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
595
+ }, z.core.$strict>;
596
+ cache: z.ZodObject<{
597
+ kind: z.ZodLiteral<"none">;
598
+ }, z.core.$strict>;
599
+ invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
600
+ }, z.core.$strict>, z.ZodObject<{
601
+ id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
602
+ kind: z.ZodLiteral<"endpoint">;
603
+ mode: z.ZodEnum<{
604
+ read: "read";
605
+ write: "write";
606
+ }>;
607
+ input: z.ZodObject<{
608
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
609
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
610
+ }, z.core.$strict>;
611
+ output: z.ZodObject<{
612
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
613
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
614
+ }, z.core.$strict>;
615
+ cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
616
+ kind: z.ZodLiteral<"none">;
617
+ }, z.core.$strict>, z.ZodObject<{
618
+ kind: z.ZodLiteral<"private">;
619
+ maxAgeSeconds: z.ZodNumber;
620
+ }, z.core.$strict>, z.ZodObject<{
621
+ kind: z.ZodLiteral<"public">;
622
+ maxAgeSeconds: z.ZodNumber;
623
+ staleWhileRevalidateSeconds: z.ZodNumber;
624
+ }, z.core.$strict>], "kind">;
625
+ invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
626
+ }, z.core.$strict>], "kind">>;
627
+ sync: z.ZodArray<z.ZodObject<{
628
+ id: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
629
+ resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
630
+ source: z.ZodString;
631
+ }, z.core.$strict>>;
632
+ }, z.core.$strict>;
633
+ routes: z.ZodObject<{
634
+ format: z.ZodLiteral<"spacefast.route-contributions">;
635
+ version: z.ZodLiteral<1>;
636
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
637
+ routes: z.ZodArray<z.ZodObject<{
638
+ abilityId: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
639
+ route: z.ZodObject<{
640
+ id: z.ZodString;
641
+ method: z.ZodEnum<{
642
+ POST: "POST";
643
+ PUT: "PUT";
644
+ GET: "GET";
645
+ HEAD: "HEAD";
646
+ PATCH: "PATCH";
647
+ DELETE: "DELETE";
648
+ OPTIONS: "OPTIONS";
649
+ }>;
650
+ path: z.ZodString;
651
+ admission: z.ZodEnum<{
652
+ public: "public";
653
+ authenticated: "authenticated";
654
+ }>;
655
+ }, z.core.$strict>;
656
+ }, z.core.$strict>>;
657
+ }, z.core.$strict>;
658
+ requirements: z.ZodObject<{
659
+ format: z.ZodLiteral<"spacefast.content-model-requirements">;
660
+ version: z.ZodLiteral<1>;
661
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
662
+ wordpressAbi: z.ZodLiteral<1>;
663
+ capabilities: z.ZodArray<z.core.$ZodBranded<z.ZodString, "RuntimeCapabilityId", "out">>;
664
+ }, z.core.$strict>;
665
+ }, z.core.$strict>;
666
+ export type CompiledContentModelArtifactsV1 = z.infer<typeof compiledContentModelArtifactsV1Schema>;
88
667
  export declare const runtimeComponentPlacementTargetV1Schema: z.ZodObject<{
89
668
  spaceId: z.ZodTemplateLiteral<`spc_${string}`>;
90
669
  runtimeInstanceId: z.ZodString;
91
670
  siteId: z.ZodString;
92
671
  }, z.core.$strict>;
93
672
  export type RuntimeComponentPlacementTargetV1 = z.infer<typeof runtimeComponentPlacementTargetV1Schema>;
673
+ export declare const runtimeComponentPoolPlacementTargetV1Schema: z.ZodObject<{
674
+ sitePoolId: z.ZodTemplateLiteral<`site_${string}`>;
675
+ runtimeInstanceId: z.ZodString;
676
+ siteId: z.ZodString;
677
+ }, z.core.$strict>;
678
+ export type RuntimeComponentPoolPlacementTargetV1 = z.infer<typeof runtimeComponentPoolPlacementTargetV1Schema>;
679
+ export declare const runtimeComponentReceiptTargetV1Schema: z.ZodUnion<readonly [z.ZodObject<{
680
+ spaceId: z.ZodTemplateLiteral<`spc_${string}`>;
681
+ runtimeInstanceId: z.ZodString;
682
+ siteId: z.ZodString;
683
+ }, z.core.$strict>, z.ZodObject<{
684
+ sitePoolId: z.ZodTemplateLiteral<`site_${string}`>;
685
+ runtimeInstanceId: z.ZodString;
686
+ siteId: z.ZodString;
687
+ }, z.core.$strict>]>;
688
+ export type RuntimeComponentReceiptTargetV1 = z.infer<typeof runtimeComponentReceiptTargetV1Schema>;
94
689
  export declare const runtimeComponentPlacementReceiptV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
95
690
  status: z.ZodLiteral<"ready">;
96
- observedInventoryDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
691
+ observedInventoryDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
97
692
  substrate: z.ZodObject<{
98
693
  wordpress: z.ZodObject<{
99
694
  boot: z.ZodLiteral<"ready">;
@@ -102,8 +697,8 @@ export declare const runtimeComponentPlacementReceiptV1Schema: z.ZodDiscriminate
102
697
  }, z.core.$strict>;
103
698
  routing: z.ZodObject<{
104
699
  state: z.ZodLiteral<"ready">;
105
- snapshotRevision: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
106
- inventoryDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
700
+ snapshotRevision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
701
+ inventoryDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
107
702
  }, z.core.$strict>;
108
703
  mail: z.ZodObject<{
109
704
  state: z.ZodLiteral<"ready">;
@@ -111,19 +706,28 @@ export declare const runtimeComponentPlacementReceiptV1Schema: z.ZodDiscriminate
111
706
  journal: z.ZodObject<{
112
707
  state: z.ZodLiteral<"ready">;
113
708
  }, z.core.$strict>;
709
+ onDemandActive: z.ZodArray<z.core.$ZodBranded<z.ZodString, "RuntimeComponentId", "out">>;
114
710
  }, z.core.$strict>;
115
711
  format: z.ZodLiteral<"spacefast.component-placement">;
116
712
  version: z.ZodLiteral<1>;
117
713
  operationId: z.ZodString;
118
- target: z.ZodObject<{
714
+ target: z.ZodUnion<readonly [z.ZodObject<{
119
715
  spaceId: z.ZodTemplateLiteral<`spc_${string}`>;
120
716
  runtimeInstanceId: z.ZodString;
121
717
  siteId: z.ZodString;
122
- }, z.core.$strict>;
718
+ }, z.core.$strict>, z.ZodObject<{
719
+ sitePoolId: z.ZodTemplateLiteral<`site_${string}`>;
720
+ runtimeInstanceId: z.ZodString;
721
+ siteId: z.ZodString;
722
+ }, z.core.$strict>]>;
123
723
  platformRelease: z.ZodString;
124
- expectedInventoryDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
724
+ expectedInventoryDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
125
725
  }, z.core.$strict>, z.ZodObject<{
126
726
  status: z.ZodLiteral<"blocked">;
727
+ observedRouting: z.ZodOptional<z.ZodObject<{
728
+ snapshotRevision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
729
+ inventoryDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
730
+ }, z.core.$strict>>;
127
731
  problems: z.ZodArray<z.ZodObject<{
128
732
  componentId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RuntimeComponentId", "out">>;
129
733
  code: z.ZodString;
@@ -132,12 +736,36 @@ export declare const runtimeComponentPlacementReceiptV1Schema: z.ZodDiscriminate
132
736
  format: z.ZodLiteral<"spacefast.component-placement">;
133
737
  version: z.ZodLiteral<1>;
134
738
  operationId: z.ZodString;
135
- target: z.ZodObject<{
739
+ target: z.ZodUnion<readonly [z.ZodObject<{
136
740
  spaceId: z.ZodTemplateLiteral<`spc_${string}`>;
137
741
  runtimeInstanceId: z.ZodString;
138
742
  siteId: z.ZodString;
139
- }, z.core.$strict>;
743
+ }, z.core.$strict>, z.ZodObject<{
744
+ sitePoolId: z.ZodTemplateLiteral<`site_${string}`>;
745
+ runtimeInstanceId: z.ZodString;
746
+ siteId: z.ZodString;
747
+ }, z.core.$strict>]>;
140
748
  platformRelease: z.ZodString;
141
- expectedInventoryDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
749
+ expectedInventoryDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
142
750
  }, z.core.$strict>], "status">;
143
751
  export type RuntimeComponentPlacementReceiptV1 = z.infer<typeof runtimeComponentPlacementReceiptV1Schema>;
752
+ export declare const runtimeComponentStageRequestV1Schema: z.ZodObject<{
753
+ format: z.ZodLiteral<"spacefast.component-stage">;
754
+ version: z.ZodLiteral<1>;
755
+ operationId: z.ZodString;
756
+ target: z.ZodUnion<readonly [z.ZodObject<{
757
+ spaceId: z.ZodTemplateLiteral<`spc_${string}`>;
758
+ runtimeInstanceId: z.ZodString;
759
+ siteId: z.ZodString;
760
+ }, z.core.$strict>, z.ZodObject<{
761
+ sitePoolId: z.ZodTemplateLiteral<`site_${string}`>;
762
+ runtimeInstanceId: z.ZodString;
763
+ siteId: z.ZodString;
764
+ }, z.core.$strict>]>;
765
+ expectedInventoryDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
766
+ routing: z.ZodObject<{
767
+ snapshotRevision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
768
+ inventoryDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
769
+ }, z.core.$strict>;
770
+ }, z.core.$strict>;
771
+ export type RuntimeComponentStageRequestV1 = z.infer<typeof runtimeComponentStageRequestV1Schema>;