@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
@@ -1,8 +1,16 @@
1
1
  import { z } from "zod";
2
- export declare const CONTENT_PROGRAM_FORMAT: "spacefast.zero-wordpress";
3
- export declare const CONTENT_PROGRAM_VERSION: 1;
4
- export declare const contentProgramSha256Schema: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
5
- export type ContentProgramSha256 = z.infer<typeof contentProgramSha256Schema>;
2
+ export declare const CONTENT_MODEL_FORMAT: "spacefast.zero-wordpress";
3
+ export declare const CONTENT_MODEL_VERSION: 1;
4
+ export declare const contentModelSha256Schema: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
5
+ export type ContentModelSha256 = z.infer<typeof contentModelSha256Schema>;
6
+ /**
7
+ * The one spelling of a content model identifier.
8
+ *
9
+ * Exported because every "author → content model" compiler needs to normalize
10
+ * someone else's identifiers against it, and a hand-copied regex that drifts
11
+ * from this one produces ids the release then refuses.
12
+ */
13
+ export declare const contentStableIdSchema: z.ZodString;
6
14
  export declare const contentResourceIdSchema: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
7
15
  export declare const contentFieldIdSchema: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
8
16
  export declare const contentTableIdSchema: z.core.$ZodBranded<z.ZodString, "ContentTableId", "out">;
@@ -17,26 +25,54 @@ export type ContentAbilityId = z.infer<typeof contentAbilityIdSchema>;
17
25
  export type ContentSchemaId = z.infer<typeof contentSchemaIdSchema>;
18
26
  export type ContentComponentId = z.infer<typeof contentComponentIdSchema>;
19
27
  export type ContentSyncBindingId = z.infer<typeof contentSyncBindingIdSchema>;
28
+ /**
29
+ * The name WordPress publishes an Ability under, derived from its content model id.
30
+ *
31
+ * Content model ids stay the vocabulary everywhere Spacefast addresses an Ability —
32
+ * routes, SDK descriptors, executables, decisions, receipts, invalidations.
33
+ * WordPress is the exception: its Abilities registry admits
34
+ * `^[a-z0-9-]+/[a-z0-9-]+$`, one namespace and one slug, so a dotted id
35
+ * flattens onto a single Zero-branded slug and `content.projects.list` is
36
+ * published as `zero/content-projects-list`.
37
+ *
38
+ * `spacefast_content_model_ability_name` in runtime/engine/wordpress/content-model-kernel.php
39
+ * is the same derivation in PHP and the two must change together. Because
40
+ * flattening is many-to-one (`a.b` and `a_b` collide),
41
+ * `contentModelReleaseV1Schema` rejects a content model whose abilities would share
42
+ * a name.
43
+ */
44
+ export declare function contentAbilityWordPressName(id: string): string;
45
+ /**
46
+ * The TypeScript identifier the generated content model SDK gives an Ability.
47
+ *
48
+ * This flattening is coarser than `contentAbilityWordPressName`: it drops every
49
+ * `.`/`_`/`-` separator and PascalCases the parts, so two ids that keep distinct
50
+ * WordPress names can still land on the same identifier (`posts.v2` and
51
+ * `posts.v.2` both become `PostsV2`, because a digit-led part has no letter to
52
+ * capitalize). `contentModelReleaseV1Schema` rejects that collision so the
53
+ * generated module never emits a duplicate `export type`.
54
+ */
55
+ export declare function contentAbilityTypeName(id: string): string;
20
56
  export declare const contentSyncSourcePathSchema: z.ZodString;
21
57
  export type ContentSyncSourcePath = z.infer<typeof contentSyncSourcePathSchema>;
22
- export type ContentProgramJsonValue = string | number | boolean | null | ContentProgramJsonValue[] | {
23
- [key: string]: ContentProgramJsonValue;
58
+ export type ContentModelJsonValue = string | number | boolean | null | ContentModelJsonValue[] | {
59
+ [key: string]: ContentModelJsonValue;
24
60
  };
25
- export declare const contentProgramJsonValueSchema: z.ZodType<ContentProgramJsonValue>;
61
+ export declare const contentModelJsonValueSchema: z.ZodType<ContentModelJsonValue>;
26
62
  export declare const contentResourceRefSchema: z.core.$ZodBranded<z.ZodString, "ContentResourceRef", "out">;
27
63
  export type ContentResourceRef = z.infer<typeof contentResourceRefSchema>;
28
64
  export declare const contentSchemaRefSchema: z.ZodObject<{
29
65
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
30
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
66
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
31
67
  }, z.core.$strict>;
32
68
  export type ContentSchemaRef = z.infer<typeof contentSchemaRefSchema>;
33
69
  export declare const contentSchemaDefinitionSchema: z.ZodObject<{
34
70
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
35
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
36
- schema: z.ZodType<ContentProgramJsonValue, unknown, z.core.$ZodTypeInternals<ContentProgramJsonValue, unknown>>;
71
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
72
+ schema: z.ZodType<ContentModelJsonValue, unknown, z.core.$ZodTypeInternals<ContentModelJsonValue, unknown>>;
37
73
  }, z.core.$strict>;
38
74
  export type ContentSchemaDefinition = z.infer<typeof contentSchemaDefinitionSchema>;
39
- export declare const contentProgramFieldSchema: z.ZodObject<{
75
+ export declare const contentModelFieldSchema: z.ZodObject<{
40
76
  id: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
41
77
  name: z.ZodString;
42
78
  label: z.ZodString;
@@ -67,16 +103,16 @@ export declare const contentProgramFieldSchema: z.ZodObject<{
67
103
  multiple: z.ZodBoolean;
68
104
  }, z.core.$strict>], "kind">;
69
105
  }, z.core.$strict>;
70
- export type ContentProgramField = z.infer<typeof contentProgramFieldSchema>;
106
+ export type ContentModelField = z.infer<typeof contentModelFieldSchema>;
71
107
  export declare const wordpressContentResourceSchema: z.ZodObject<{
72
108
  id: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
73
109
  name: z.ZodString;
74
110
  label: z.ZodString;
75
111
  kind: z.ZodEnum<{
76
112
  media: "media";
113
+ collection: "collection";
77
114
  posts: "posts";
78
115
  pages: "pages";
79
- collection: "collection";
80
116
  }>;
81
117
  fields: z.ZodArray<z.ZodObject<{
82
118
  id: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
@@ -112,8 +148,8 @@ export declare const wordpressContentResourceSchema: z.ZodObject<{
112
148
  publicRead: z.ZodBoolean;
113
149
  }, z.core.$strict>;
114
150
  export type WordPressContentResource = z.infer<typeof wordpressContentResourceSchema>;
115
- export declare const wordpressProgramIrV1Schema: z.ZodObject<{
116
- format: z.ZodLiteral<"spacefast.wordpress-program">;
151
+ export declare const wordpressContentModelIrV1Schema: z.ZodObject<{
152
+ format: z.ZodLiteral<"spacefast.wordpress-content-model">;
117
153
  version: z.ZodLiteral<1>;
118
154
  resources: z.ZodArray<z.ZodObject<{
119
155
  id: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
@@ -121,9 +157,9 @@ export declare const wordpressProgramIrV1Schema: z.ZodObject<{
121
157
  label: z.ZodString;
122
158
  kind: z.ZodEnum<{
123
159
  media: "media";
160
+ collection: "collection";
124
161
  posts: "posts";
125
162
  pages: "pages";
126
- collection: "collection";
127
163
  }>;
128
164
  fields: z.ZodArray<z.ZodObject<{
129
165
  id: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
@@ -159,7 +195,7 @@ export declare const wordpressProgramIrV1Schema: z.ZodObject<{
159
195
  publicRead: z.ZodBoolean;
160
196
  }, z.core.$strict>>;
161
197
  }, z.core.$strict>;
162
- export type WordPressProgramIrV1 = z.infer<typeof wordpressProgramIrV1Schema>;
198
+ export type WordPressContentModelIrV1 = z.infer<typeof wordpressContentModelIrV1Schema>;
163
199
  export declare const contentTableColumnSchema: z.ZodObject<{
164
200
  id: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
165
201
  name: z.ZodString;
@@ -220,7 +256,7 @@ export declare const contentAbilityRouteAdmissionV1Schema: z.ZodEnum<{
220
256
  authenticated: "authenticated";
221
257
  }>;
222
258
  export type ContentAbilityRouteAdmissionV1 = z.infer<typeof contentAbilityRouteAdmissionV1Schema>;
223
- export declare const contentProgramRouteSchema: z.ZodObject<{
259
+ export declare const contentModelRouteSchema: z.ZodObject<{
224
260
  id: z.ZodString;
225
261
  method: z.ZodEnum<{
226
262
  POST: "POST";
@@ -237,18 +273,18 @@ export declare const contentProgramRouteSchema: z.ZodObject<{
237
273
  authenticated: "authenticated";
238
274
  }>;
239
275
  }, z.core.$strict>;
240
- export type ContentProgramRoute = z.infer<typeof contentProgramRouteSchema>;
276
+ export type ContentModelRoute = z.infer<typeof contentModelRouteSchema>;
241
277
  export declare const contentAbilityDescriptorV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
242
278
  kind: z.ZodLiteral<"query">;
243
279
  mode: z.ZodLiteral<"read">;
244
280
  id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
245
281
  input: z.ZodObject<{
246
282
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
247
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
283
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
248
284
  }, z.core.$strict>;
249
285
  output: z.ZodObject<{
250
286
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
251
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
287
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
252
288
  }, z.core.$strict>;
253
289
  permits: z.ZodArray<z.ZodEnum<{
254
290
  "page.view": "page.view";
@@ -299,11 +335,11 @@ export declare const contentAbilityDescriptorV1Schema: z.ZodDiscriminatedUnion<[
299
335
  id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
300
336
  input: z.ZodObject<{
301
337
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
302
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
338
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
303
339
  }, z.core.$strict>;
304
340
  output: z.ZodObject<{
305
341
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
306
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
342
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
307
343
  }, z.core.$strict>;
308
344
  permits: z.ZodArray<z.ZodEnum<{
309
345
  "page.view": "page.view";
@@ -357,11 +393,11 @@ export declare const contentAbilityDescriptorV1Schema: z.ZodDiscriminatedUnion<[
357
393
  id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
358
394
  input: z.ZodObject<{
359
395
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
360
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
396
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
361
397
  }, z.core.$strict>;
362
398
  output: z.ZodObject<{
363
399
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
364
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
400
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
365
401
  }, z.core.$strict>;
366
402
  permits: z.ZodArray<z.ZodEnum<{
367
403
  "page.view": "page.view";
@@ -467,7 +503,7 @@ export declare const contentAbilityReceiptV1Schema: z.ZodDiscriminatedUnion<[z.Z
467
503
  abilityId: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
468
504
  callId: z.ZodString;
469
505
  status: z.ZodLiteral<"succeeded">;
470
- output: z.ZodType<ContentProgramJsonValue, unknown, z.core.$ZodTypeInternals<ContentProgramJsonValue, unknown>>;
506
+ output: z.ZodType<ContentModelJsonValue, unknown, z.core.$ZodTypeInternals<ContentModelJsonValue, unknown>>;
471
507
  invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
472
508
  }, z.core.$strict>, z.ZodObject<{
473
509
  format: z.ZodLiteral<"spacefast.ability-receipt">;
@@ -505,7 +541,7 @@ export declare const contentClientPageIrV1Schema: z.ZodObject<{
505
541
  componentId: z.core.$ZodBranded<z.ZodString, "ContentComponentId", "out">;
506
542
  props: z.ZodObject<{
507
543
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
508
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
544
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
509
545
  }, z.core.$strict>;
510
546
  }, z.core.$strict>;
511
547
  export type ContentClientPageIrV1 = z.infer<typeof contentClientPageIrV1Schema>;
@@ -515,29 +551,115 @@ export declare const contentExecutableRefV1Schema: z.ZodObject<{
515
551
  php: "php";
516
552
  quickjs: "quickjs";
517
553
  }>;
518
- artifact: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
554
+ artifact: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
519
555
  export: z.ZodString;
520
556
  }, z.core.$strict>;
521
557
  export type ContentExecutableRefV1 = z.infer<typeof contentExecutableRefV1Schema>;
522
- export declare const contentSyncBindingV1Schema: z.ZodObject<{
558
+ /**
559
+ * Which serializer stands between a source file and the blocks WordPress holds.
560
+ *
561
+ * The format is a property of the binding rather than of the request, because
562
+ * the file's extension decides it once at compile time and every later
563
+ * reconciliation has to agree. A caller cannot ask for the other serializer on
564
+ * a file this ContentModelRelease bound to one.
565
+ */
566
+ export declare const CONTENT_SYNC_FORMATS: readonly ["md", "html", "tsx"];
567
+ export declare const contentSyncFormatSchema: z.ZodEnum<{
568
+ md: "md";
569
+ html: "html";
570
+ tsx: "tsx";
571
+ }>;
572
+ export type ContentSyncFormat = z.infer<typeof contentSyncFormatSchema>;
573
+ /**
574
+ * Formats that compile one way. No serializer reads them back out of blocks, so
575
+ * their bindings carry the digest of the markup they produced and drift is
576
+ * settled by recompiling and comparing rather than by merging.
577
+ */
578
+ export declare const CONTENT_SYNC_COMPILE_FORMATS: ReadonlySet<ContentSyncFormat>;
579
+ export declare function contentSyncFormatIsCompiled(format: ContentSyncFormat): boolean;
580
+ /** The source extension each serializer owns. */
581
+ export declare const CONTENT_SYNC_FORMAT_EXTENSIONS: Map<string, "md" | "html" | "tsx">;
582
+ /** The binding format a source path implies, or `null` when no serializer claims it. */
583
+ export declare function contentSyncFormatForSource(source: string): ContentSyncFormat | null;
584
+ export declare const contentSyncBindingV1Schema: z.ZodPipe<z.ZodObject<{
523
585
  id: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
524
586
  resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
525
587
  fieldId: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
526
588
  source: z.ZodString;
589
+ publicPath: z.ZodOptional<z.ZodString>;
590
+ format: z.ZodOptional<z.ZodEnum<{
591
+ md: "md";
592
+ html: "html";
593
+ tsx: "tsx";
594
+ }>>;
595
+ compiled: z.ZodOptional<z.ZodObject<{
596
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
597
+ }, z.core.$strict>>;
598
+ documentSeed: z.ZodOptional<z.ZodObject<{
599
+ text: z.ZodString;
600
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
601
+ }, z.core.$strict>>;
527
602
  slug: z.ZodString;
528
- }, z.core.$strict>;
603
+ }, z.core.$strict>, z.ZodTransform<{
604
+ format: "md" | "html" | "tsx";
605
+ id: string & z.core.$brand<"ContentSyncBindingId">;
606
+ resourceId: string & z.core.$brand<"ContentResourceId">;
607
+ fieldId: string & z.core.$brand<"ContentFieldId">;
608
+ source: string;
609
+ slug: string;
610
+ publicPath?: string | undefined;
611
+ compiled?: {
612
+ sha256: string & z.core.$brand<"ContentModelSha256">;
613
+ } | undefined;
614
+ documentSeed?: {
615
+ text: string;
616
+ sha256: string & z.core.$brand<"ContentModelSha256">;
617
+ } | undefined;
618
+ }, {
619
+ id: string & z.core.$brand<"ContentSyncBindingId">;
620
+ resourceId: string & z.core.$brand<"ContentResourceId">;
621
+ fieldId: string & z.core.$brand<"ContentFieldId">;
622
+ source: string;
623
+ slug: string;
624
+ publicPath?: string | undefined;
625
+ format?: "md" | "html" | "tsx" | undefined;
626
+ compiled?: {
627
+ sha256: string & z.core.$brand<"ContentModelSha256">;
628
+ } | undefined;
629
+ documentSeed?: {
630
+ text: string;
631
+ sha256: string & z.core.$brand<"ContentModelSha256">;
632
+ } | undefined;
633
+ }>>;
529
634
  export type ContentSyncBindingV1 = z.infer<typeof contentSyncBindingV1Schema>;
530
- export declare const contentProgramReleaseV1Schema: z.ZodObject<{
635
+ /**
636
+ * Where a collection puts a document that WordPress created and no file backs
637
+ * yet. Deterministic — it restates the glob the capsule declared — so it may
638
+ * live in a content-addressed release.
639
+ */
640
+ export declare const contentSyncMaterializationV1Schema: z.ZodObject<{
641
+ resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
642
+ fieldId: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
643
+ directory: z.ZodString;
644
+ suffix: z.ZodString;
645
+ format: z.ZodEnum<{
646
+ md: "md";
647
+ html: "html";
648
+ tsx: "tsx";
649
+ }>;
650
+ }, z.core.$strict>;
651
+ export type ContentSyncMaterializationV1 = z.infer<typeof contentSyncMaterializationV1Schema>;
652
+ export declare const contentModelReleaseV1Schema: z.ZodObject<{
531
653
  format: z.ZodLiteral<"spacefast.zero-wordpress">;
532
654
  version: z.ZodLiteral<1>;
533
- revision: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
655
+ revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
534
656
  schemas: z.ZodArray<z.ZodObject<{
535
657
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
536
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
537
- schema: z.ZodType<ContentProgramJsonValue, unknown, z.core.$ZodTypeInternals<ContentProgramJsonValue, unknown>>;
658
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
659
+ schema: z.ZodType<ContentModelJsonValue, unknown, z.core.$ZodTypeInternals<ContentModelJsonValue, unknown>>;
538
660
  }, z.core.$strict>>;
539
661
  wordpress: z.ZodObject<{
540
- format: z.ZodLiteral<"spacefast.wordpress-program">;
662
+ format: z.ZodLiteral<"spacefast.wordpress-content-model">;
541
663
  version: z.ZodLiteral<1>;
542
664
  resources: z.ZodArray<z.ZodObject<{
543
665
  id: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
@@ -545,9 +667,9 @@ export declare const contentProgramReleaseV1Schema: z.ZodObject<{
545
667
  label: z.ZodString;
546
668
  kind: z.ZodEnum<{
547
669
  media: "media";
670
+ collection: "collection";
548
671
  posts: "posts";
549
672
  pages: "pages";
550
- collection: "collection";
551
673
  }>;
552
674
  fields: z.ZodArray<z.ZodObject<{
553
675
  id: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
@@ -615,11 +737,11 @@ export declare const contentProgramReleaseV1Schema: z.ZodObject<{
615
737
  id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
616
738
  input: z.ZodObject<{
617
739
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
618
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
740
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
619
741
  }, z.core.$strict>;
620
742
  output: z.ZodObject<{
621
743
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
622
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
744
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
623
745
  }, z.core.$strict>;
624
746
  permits: z.ZodArray<z.ZodEnum<{
625
747
  "page.view": "page.view";
@@ -670,11 +792,11 @@ export declare const contentProgramReleaseV1Schema: z.ZodObject<{
670
792
  id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
671
793
  input: z.ZodObject<{
672
794
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
673
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
795
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
674
796
  }, z.core.$strict>;
675
797
  output: z.ZodObject<{
676
798
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
677
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
799
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
678
800
  }, z.core.$strict>;
679
801
  permits: z.ZodArray<z.ZodEnum<{
680
802
  "page.view": "page.view";
@@ -728,11 +850,11 @@ export declare const contentProgramReleaseV1Schema: z.ZodObject<{
728
850
  id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
729
851
  input: z.ZodObject<{
730
852
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
731
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
853
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
732
854
  }, z.core.$strict>;
733
855
  output: z.ZodObject<{
734
856
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
735
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
857
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
736
858
  }, z.core.$strict>;
737
859
  permits: z.ZodArray<z.ZodEnum<{
738
860
  "page.view": "page.view";
@@ -787,7 +909,7 @@ export declare const contentProgramReleaseV1Schema: z.ZodObject<{
787
909
  componentId: z.core.$ZodBranded<z.ZodString, "ContentComponentId", "out">;
788
910
  props: z.ZodObject<{
789
911
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
790
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
912
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
791
913
  }, z.core.$strict>;
792
914
  }, z.core.$strict>>;
793
915
  hooks: z.ZodArray<z.ZodObject<{
@@ -796,116 +918,249 @@ export declare const contentProgramReleaseV1Schema: z.ZodObject<{
796
918
  php: "php";
797
919
  quickjs: "quickjs";
798
920
  }>;
799
- artifact: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
921
+ artifact: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
800
922
  export: z.ZodString;
801
923
  }, z.core.$strict>>;
802
- syncBindings: z.ZodArray<z.ZodObject<{
924
+ syncBindings: z.ZodArray<z.ZodPipe<z.ZodObject<{
803
925
  id: z.core.$ZodBranded<z.ZodString, "ContentSyncBindingId", "out">;
804
926
  resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
805
927
  fieldId: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
806
928
  source: z.ZodString;
929
+ publicPath: z.ZodOptional<z.ZodString>;
930
+ format: z.ZodOptional<z.ZodEnum<{
931
+ md: "md";
932
+ html: "html";
933
+ tsx: "tsx";
934
+ }>>;
935
+ compiled: z.ZodOptional<z.ZodObject<{
936
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
937
+ }, z.core.$strict>>;
938
+ documentSeed: z.ZodOptional<z.ZodObject<{
939
+ text: z.ZodString;
940
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
941
+ }, z.core.$strict>>;
807
942
  slug: z.ZodString;
808
- }, z.core.$strict>>;
943
+ }, z.core.$strict>, z.ZodTransform<{
944
+ format: "md" | "html" | "tsx";
945
+ id: string & z.core.$brand<"ContentSyncBindingId">;
946
+ resourceId: string & z.core.$brand<"ContentResourceId">;
947
+ fieldId: string & z.core.$brand<"ContentFieldId">;
948
+ source: string;
949
+ slug: string;
950
+ publicPath?: string | undefined;
951
+ compiled?: {
952
+ sha256: string & z.core.$brand<"ContentModelSha256">;
953
+ } | undefined;
954
+ documentSeed?: {
955
+ text: string;
956
+ sha256: string & z.core.$brand<"ContentModelSha256">;
957
+ } | undefined;
958
+ }, {
959
+ id: string & z.core.$brand<"ContentSyncBindingId">;
960
+ resourceId: string & z.core.$brand<"ContentResourceId">;
961
+ fieldId: string & z.core.$brand<"ContentFieldId">;
962
+ source: string;
963
+ slug: string;
964
+ publicPath?: string | undefined;
965
+ format?: "md" | "html" | "tsx" | undefined;
966
+ compiled?: {
967
+ sha256: string & z.core.$brand<"ContentModelSha256">;
968
+ } | undefined;
969
+ documentSeed?: {
970
+ text: string;
971
+ sha256: string & z.core.$brand<"ContentModelSha256">;
972
+ } | undefined;
973
+ }>>>;
974
+ materializations: z.ZodDefault<z.ZodArray<z.ZodObject<{
975
+ resourceId: z.core.$ZodBranded<z.ZodString, "ContentResourceId", "out">;
976
+ fieldId: z.core.$ZodBranded<z.ZodString, "ContentFieldId", "out">;
977
+ directory: z.ZodString;
978
+ suffix: z.ZodString;
979
+ format: z.ZodEnum<{
980
+ md: "md";
981
+ html: "html";
982
+ tsx: "tsx";
983
+ }>;
984
+ }, z.core.$strict>>>;
985
+ }, z.core.$strict>;
986
+ export type ContentModelReleaseV1 = z.infer<typeof contentModelReleaseV1Schema>;
987
+ export declare const contentModelStageReceiptV1Schema: z.ZodObject<{
988
+ revision: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
989
+ artifactDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
990
+ staged: z.ZodBoolean;
991
+ }, z.core.$strict>;
992
+ export type ContentModelStageReceiptV1 = z.infer<typeof contentModelStageReceiptV1Schema>;
993
+ export declare const contentModelActivationReceiptV1Schema: z.ZodObject<{
994
+ revision: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">>;
995
+ tables: z.ZodNumber;
996
+ pages: z.ZodNumber;
809
997
  }, z.core.$strict>;
810
- export type ContentProgramReleaseV1 = z.infer<typeof contentProgramReleaseV1Schema>;
811
- export declare const CONTENT_PROGRAM_ARTIFACT_FORMATS: {
812
- readonly program: "spacefast.zero-wordpress";
998
+ export type ContentModelActivationReceiptV1 = z.infer<typeof contentModelActivationReceiptV1Schema>;
999
+ export declare const CONTENT_MODEL_ARTIFACT_FORMATS: {
1000
+ readonly model: "spacefast.zero-wordpress";
813
1001
  readonly executables: "spacefast.zero-executables";
814
1002
  readonly sdk: "spacefast.sdk-descriptors";
815
1003
  readonly routes: "spacefast.route-contributions";
816
- readonly requirements: "spacefast.program-requirements";
1004
+ readonly requirements: "spacefast.content-model-requirements";
817
1005
  };
818
- export type ContentProgramArtifactFormat = (typeof CONTENT_PROGRAM_ARTIFACT_FORMATS)[keyof typeof CONTENT_PROGRAM_ARTIFACT_FORMATS];
819
- export type ContentProgramArtifactRef<Format extends ContentProgramArtifactFormat, Version extends number> = Readonly<{
1006
+ export type ContentModelArtifactFormat = (typeof CONTENT_MODEL_ARTIFACT_FORMATS)[keyof typeof CONTENT_MODEL_ARTIFACT_FORMATS];
1007
+ export type ContentModelArtifactRef<Format extends ContentModelArtifactFormat, Version extends number> = Readonly<{
820
1008
  format: Format;
821
1009
  version: Version;
822
- inputDigest: ContentProgramSha256;
823
- sha256: ContentProgramSha256;
1010
+ inputDigest: ContentModelSha256;
1011
+ sha256: ContentModelSha256;
824
1012
  bytes: number;
825
1013
  mediaType: "application/json";
826
1014
  }>;
827
- export declare function contentProgramArtifactRefSchema<Format extends ContentProgramArtifactFormat>(format: Format): z.ZodObject<{
1015
+ export declare function contentModelArtifactRefSchema<Format extends ContentModelArtifactFormat>(format: Format): z.ZodObject<{
828
1016
  format: z.ZodLiteral<Format>;
829
1017
  version: z.ZodLiteral<1>;
830
- inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
831
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1018
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1019
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
832
1020
  bytes: z.ZodNumber;
833
1021
  mediaType: z.ZodLiteral<"application/json">;
834
1022
  }, z.core.$strict>;
835
- export declare const compiledContentProgramV1Schema: z.ZodObject<{
836
- format: z.ZodLiteral<"spacefast.compiled-program">;
1023
+ export declare const compiledContentModelV1Schema: z.ZodObject<{
1024
+ format: z.ZodLiteral<"spacefast.compiled-content-model">;
837
1025
  version: z.ZodLiteral<1>;
838
- program: z.ZodObject<{
1026
+ model: z.ZodObject<{
839
1027
  format: z.ZodLiteral<"spacefast.zero-wordpress">;
840
1028
  version: z.ZodLiteral<1>;
841
- inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
842
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1029
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1030
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
843
1031
  bytes: z.ZodNumber;
844
1032
  mediaType: z.ZodLiteral<"application/json">;
845
1033
  }, z.core.$strict>;
846
1034
  executables: z.ZodObject<{
847
1035
  format: z.ZodLiteral<"spacefast.zero-executables">;
848
1036
  version: z.ZodLiteral<1>;
849
- inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
850
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1037
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1038
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
851
1039
  bytes: z.ZodNumber;
852
1040
  mediaType: z.ZodLiteral<"application/json">;
853
1041
  }, z.core.$strict>;
854
1042
  sdk: z.ZodObject<{
855
1043
  format: z.ZodLiteral<"spacefast.sdk-descriptors">;
856
1044
  version: z.ZodLiteral<1>;
857
- inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
858
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1045
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1046
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
859
1047
  bytes: z.ZodNumber;
860
1048
  mediaType: z.ZodLiteral<"application/json">;
861
1049
  }, z.core.$strict>;
862
1050
  routes: z.ZodObject<{
863
1051
  format: z.ZodLiteral<"spacefast.route-contributions">;
864
1052
  version: z.ZodLiteral<1>;
865
- inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
866
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1053
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1054
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
867
1055
  bytes: z.ZodNumber;
868
1056
  mediaType: z.ZodLiteral<"application/json">;
869
1057
  }, z.core.$strict>;
870
1058
  requirements: z.ZodObject<{
871
- format: z.ZodLiteral<"spacefast.program-requirements">;
1059
+ format: z.ZodLiteral<"spacefast.content-model-requirements">;
872
1060
  version: z.ZodLiteral<1>;
873
- inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
874
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1061
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1062
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
875
1063
  bytes: z.ZodNumber;
876
1064
  mediaType: z.ZodLiteral<"application/json">;
877
1065
  }, z.core.$strict>;
878
1066
  }, z.core.$strict>;
879
- export type CompiledContentProgramV1 = z.infer<typeof compiledContentProgramV1Schema>;
1067
+ export type CompiledContentModelV1 = z.infer<typeof compiledContentModelV1Schema>;
880
1068
  export declare const contentExecutableSetV1Schema: z.ZodObject<{
881
1069
  format: z.ZodLiteral<"spacefast.zero-executables">;
882
1070
  version: z.ZodLiteral<1>;
883
- inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1071
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
884
1072
  executables: z.ZodArray<z.ZodObject<{
885
1073
  id: z.ZodString;
886
1074
  runtime: z.ZodEnum<{
887
1075
  php: "php";
888
1076
  quickjs: "quickjs";
889
1077
  }>;
890
- artifact: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1078
+ artifact: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
891
1079
  export: z.ZodString;
892
1080
  }, z.core.$strict>>;
893
1081
  }, z.core.$strict>;
1082
+ export declare const contentSdkOperationDescriptorV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1083
+ id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
1084
+ kind: z.ZodLiteral<"query">;
1085
+ mode: z.ZodLiteral<"read">;
1086
+ input: z.ZodObject<{
1087
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
1088
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1089
+ }, z.core.$strict>;
1090
+ output: z.ZodObject<{
1091
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
1092
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1093
+ }, z.core.$strict>;
1094
+ cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
1095
+ kind: z.ZodLiteral<"none">;
1096
+ }, z.core.$strict>, z.ZodObject<{
1097
+ kind: z.ZodLiteral<"private">;
1098
+ maxAgeSeconds: z.ZodNumber;
1099
+ }, z.core.$strict>, z.ZodObject<{
1100
+ kind: z.ZodLiteral<"public">;
1101
+ maxAgeSeconds: z.ZodNumber;
1102
+ staleWhileRevalidateSeconds: z.ZodNumber;
1103
+ }, z.core.$strict>], "kind">;
1104
+ invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
1105
+ }, z.core.$strict>, z.ZodObject<{
1106
+ id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
1107
+ kind: z.ZodLiteral<"mutation">;
1108
+ mode: z.ZodLiteral<"write">;
1109
+ input: z.ZodObject<{
1110
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
1111
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1112
+ }, z.core.$strict>;
1113
+ output: z.ZodObject<{
1114
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
1115
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1116
+ }, z.core.$strict>;
1117
+ cache: z.ZodObject<{
1118
+ kind: z.ZodLiteral<"none">;
1119
+ }, z.core.$strict>;
1120
+ invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
1121
+ }, z.core.$strict>, z.ZodObject<{
1122
+ id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
1123
+ kind: z.ZodLiteral<"endpoint">;
1124
+ mode: z.ZodEnum<{
1125
+ read: "read";
1126
+ write: "write";
1127
+ }>;
1128
+ input: z.ZodObject<{
1129
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
1130
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1131
+ }, z.core.$strict>;
1132
+ output: z.ZodObject<{
1133
+ id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
1134
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
1135
+ }, z.core.$strict>;
1136
+ cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
1137
+ kind: z.ZodLiteral<"none">;
1138
+ }, z.core.$strict>, z.ZodObject<{
1139
+ kind: z.ZodLiteral<"private">;
1140
+ maxAgeSeconds: z.ZodNumber;
1141
+ }, z.core.$strict>, z.ZodObject<{
1142
+ kind: z.ZodLiteral<"public">;
1143
+ maxAgeSeconds: z.ZodNumber;
1144
+ staleWhileRevalidateSeconds: z.ZodNumber;
1145
+ }, z.core.$strict>], "kind">;
1146
+ invalidates: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">>;
1147
+ }, z.core.$strict>], "kind">;
1148
+ export type ContentSdkOperationDescriptorV1 = z.infer<typeof contentSdkOperationDescriptorV1Schema>;
894
1149
  export declare const contentSdkDescriptorSetV1Schema: z.ZodObject<{
895
1150
  format: z.ZodLiteral<"spacefast.sdk-descriptors">;
896
1151
  version: z.ZodLiteral<1>;
897
- inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1152
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
898
1153
  operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
899
1154
  id: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
900
1155
  kind: z.ZodLiteral<"query">;
901
1156
  mode: z.ZodLiteral<"read">;
902
1157
  input: z.ZodObject<{
903
1158
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
904
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1159
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
905
1160
  }, z.core.$strict>;
906
1161
  output: z.ZodObject<{
907
1162
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
908
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1163
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
909
1164
  }, z.core.$strict>;
910
1165
  cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
911
1166
  kind: z.ZodLiteral<"none">;
@@ -924,11 +1179,11 @@ export declare const contentSdkDescriptorSetV1Schema: z.ZodObject<{
924
1179
  mode: z.ZodLiteral<"write">;
925
1180
  input: z.ZodObject<{
926
1181
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
927
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1182
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
928
1183
  }, z.core.$strict>;
929
1184
  output: z.ZodObject<{
930
1185
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
931
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1186
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
932
1187
  }, z.core.$strict>;
933
1188
  cache: z.ZodObject<{
934
1189
  kind: z.ZodLiteral<"none">;
@@ -943,11 +1198,11 @@ export declare const contentSdkDescriptorSetV1Schema: z.ZodObject<{
943
1198
  }>;
944
1199
  input: z.ZodObject<{
945
1200
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
946
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1201
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
947
1202
  }, z.core.$strict>;
948
1203
  output: z.ZodObject<{
949
1204
  id: z.core.$ZodBranded<z.ZodString, "ContentSchemaId", "out">;
950
- sha256: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1205
+ sha256: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
951
1206
  }, z.core.$strict>;
952
1207
  cache: z.ZodDiscriminatedUnion<[z.ZodObject<{
953
1208
  kind: z.ZodLiteral<"none">;
@@ -967,10 +1222,11 @@ export declare const contentSdkDescriptorSetV1Schema: z.ZodObject<{
967
1222
  source: z.ZodString;
968
1223
  }, z.core.$strict>>;
969
1224
  }, z.core.$strict>;
1225
+ export type ContentSdkDescriptorSetV1 = z.infer<typeof contentSdkDescriptorSetV1Schema>;
970
1226
  export declare const contentRouteContributionSetV1Schema: z.ZodObject<{
971
1227
  format: z.ZodLiteral<"spacefast.route-contributions">;
972
1228
  version: z.ZodLiteral<1>;
973
- inputDigest: z.core.$ZodBranded<z.ZodString, "ContentProgramSha256", "out">;
1229
+ inputDigest: z.core.$ZodBranded<z.ZodString, "ContentModelSha256", "out">;
974
1230
  routes: z.ZodArray<z.ZodObject<{
975
1231
  abilityId: z.core.$ZodBranded<z.ZodString, "ContentAbilityId", "out">;
976
1232
  route: z.ZodObject<{