@kumwe/studio-testkit 0.1.0-alpha.10

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 (304) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +138 -0
  3. package/THIRD_PARTY_NOTICES.md +9 -0
  4. package/conformance/authoring-web/non-drag-move-equivalence.json +199 -0
  5. package/conformance/renderer-web/blob-default-deny.json +47 -0
  6. package/conformance/renderer-web/chart-fallback.json +39 -0
  7. package/conformance/renderer-web/complete-catalog.json +634 -0
  8. package/conformance/renderer-web/escaped-heading.json +28 -0
  9. package/conformance/renderer-web/interactive-behaviors.json +226 -0
  10. package/conformance/renderer-web/presentation-capabilities.json +76 -0
  11. package/conformance/renderer-web/responsive-grid.json +33 -0
  12. package/conformance/renderer-web/security-fallbacks.json +169 -0
  13. package/conformance/rich-text/advanced.first-party.json +67 -0
  14. package/conformance/rich-text/blocks.structural.json +57 -0
  15. package/conformance/rich-text/document.multi-block.json +74 -0
  16. package/conformance/rich-text/embed.hard-break.json +24 -0
  17. package/conformance/rich-text/marks.nested.json +29 -0
  18. package/conformance/rich-text/offsets.astral.json +24 -0
  19. package/conformance/rich-text/paragraph.plain.json +20 -0
  20. package/conformance/rich-text/spans.adjacent.json +27 -0
  21. package/corpus-manifest.json +1212 -0
  22. package/dist/host-testbed.d.ts +71 -0
  23. package/dist/host-testbed.d.ts.map +1 -0
  24. package/dist/host-testbed.js +782 -0
  25. package/dist/host-testbed.js.map +1 -0
  26. package/dist/http-host-adapter.d.ts +74 -0
  27. package/dist/http-host-adapter.d.ts.map +1 -0
  28. package/dist/http-host-adapter.js +264 -0
  29. package/dist/http-host-adapter.js.map +1 -0
  30. package/dist/index.d.ts +112 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +211 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/web-conformance.d.ts +105 -0
  35. package/dist/web-conformance.d.ts.map +1 -0
  36. package/dist/web-conformance.js +72 -0
  37. package/dist/web-conformance.js.map +1 -0
  38. package/fixtures/authoring-message-catalog.en.json +649 -0
  39. package/fixtures/block.grid.example.json +76 -0
  40. package/fixtures/block.price.example.json +69 -0
  41. package/fixtures/blueprint.product.example.json +92 -0
  42. package/fixtures/command.move-node.example.json +18 -0
  43. package/fixtures/content-model.product.example.json +141 -0
  44. package/fixtures/design-vocabulary.example.json +85 -0
  45. package/fixtures/entry.product.example.json +55 -0
  46. package/fixtures/field-adapter.example.json +27 -0
  47. package/fixtures/host-capabilities.example.json +42 -0
  48. package/fixtures/host-error.conflict.example.json +23 -0
  49. package/fixtures/host-operations.example.json +270 -0
  50. package/fixtures/inspector.example.json +17 -0
  51. package/fixtures/media-asset.example.json +29 -0
  52. package/fixtures/media-asset.processing.example.json +15 -0
  53. package/fixtures/media-reference.example.json +26 -0
  54. package/fixtures/media-upload-grant.example.json +14 -0
  55. package/fixtures/media-upload-session.transferring.example.json +22 -0
  56. package/fixtures/migration.example.json +22 -0
  57. package/fixtures/pattern.example.json +49 -0
  58. package/fixtures/plugin.example.json +49 -0
  59. package/fixtures/preview.render.example.json +15 -0
  60. package/fixtures/provenance.example.json +38 -0
  61. package/fixtures/rich-text.example.json +48 -0
  62. package/fixtures/studio-config.example.json +139 -0
  63. package/fixtures/theme.example.json +123 -0
  64. package/fixtures/unresolved-contribution.example.json +23 -0
  65. package/invalid/binding-projection-vector.unknown-status.json +85 -0
  66. package/invalid/blueprint.control-character-member.json +59 -0
  67. package/invalid/blueprint.forbidden-property-member.json +61 -0
  68. package/invalid/blueprint.invalid-node-id.json +57 -0
  69. package/invalid/blueprint.invalid-slot-name.json +59 -0
  70. package/invalid/blueprint.published-empty-roots.json +45 -0
  71. package/invalid/blueprint.revoking-slot-marker.json +57 -0
  72. package/invalid/blueprint.unknown-member.json +58 -0
  73. package/invalid/command-vector.unknown-error-code.json +103 -0
  74. package/invalid/command.empty-batch.json +17 -0
  75. package/invalid/command.forbidden-id-map-member.json +20 -0
  76. package/invalid/command.malformed-size-role.json +18 -0
  77. package/invalid/command.negative-position.json +20 -0
  78. package/invalid/command.nested-batch.json +24 -0
  79. package/invalid/command.pattern-in-batch.json +40 -0
  80. package/invalid/command.reset-inherited-property-in-batch.json +24 -0
  81. package/invalid/command.unknown-member.json +23 -0
  82. package/invalid/command.wrong-contract-version.json +22 -0
  83. package/invalid/content-model.published-empty.json +22 -0
  84. package/invalid/design-vocabulary.unknown-control-kind.json +38 -0
  85. package/invalid/entry.forbidden-value-member.json +23 -0
  86. package/invalid/entry.invalid-locale.json +59 -0
  87. package/invalid/host-capabilities.invalid-protocol-version.json +40 -0
  88. package/invalid/host-sequence.pending-expectation.json +52 -0
  89. package/invalid/host-sequence.preview-render-missing-request-id.json +50 -0
  90. package/invalid/inspector.empty-block-types.json +20 -0
  91. package/invalid/media-reference.missing-accessibility.json +25 -0
  92. package/invalid/media-upload-grant.insecure-url.json +14 -0
  93. package/invalid/media-upload-session.complete-without-asset.json +20 -0
  94. package/invalid/migration.empty-artifact-kinds.json +22 -0
  95. package/invalid/preview-message.activated-unknown-interaction.json +16 -0
  96. package/invalid/preview-message.duplicate-marker.json +24 -0
  97. package/invalid/preview-message.invalid-digest.json +19 -0
  98. package/invalid/preview-message.invalid-marker-grammar.json +19 -0
  99. package/invalid/preview-message.missing-marker-map.json +20 -0
  100. package/invalid/preview-message.missing-render-request-id.json +18 -0
  101. package/invalid/preview-message.unknown-type.json +13 -0
  102. package/invalid/preview-message.viewport-height-too-small.json +13 -0
  103. package/invalid/preview-message.viewport-role-and-size.json +16 -0
  104. package/invalid/preview-message.viewport-unsafe-role.json +13 -0
  105. package/invalid/rich-text.embedded-html.json +13 -0
  106. package/invalid/rich-text.unknown-mark.json +19 -0
  107. package/invalid/studio-chart.script-config.json +10 -0
  108. package/invalid/studio-drawing.svg-payload.json +10 -0
  109. package/invalid/studio-money.float.json +8 -0
  110. package/invalid/studio-presentation.css-injection.json +8 -0
  111. package/invalid/studio-table.html-cell.json +8 -0
  112. package/invalid/theme.unknown-member.json +128 -0
  113. package/package.json +54 -0
  114. package/studio-release.json +18 -0
  115. package/vectors/binding-projection/app-content-fields.resolved.json +286 -0
  116. package/vectors/binding-projection/field-removed.diagnostic.json +135 -0
  117. package/vectors/binding-projection/model-revision-mismatch.diagnostic.json +124 -0
  118. package/vectors/canonical/array-order.json +13 -0
  119. package/vectors/canonical/control-characters.json +13 -0
  120. package/vectors/canonical/depth-exceeded.json +21 -0
  121. package/vectors/canonical/empty-containers.json +14 -0
  122. package/vectors/canonical/forbidden-member.json +14 -0
  123. package/vectors/canonical/member-order.json +16 -0
  124. package/vectors/canonical/negative-zero.json +13 -0
  125. package/vectors/canonical/nested-order.json +19 -0
  126. package/vectors/canonical/non-ascii.json +13 -0
  127. package/vectors/canonical/numbers.json +16 -0
  128. package/vectors/canonical/string-escapes.json +13 -0
  129. package/vectors/canonical/surrogate-pair.json +13 -0
  130. package/vectors/command/apply-pattern.colliding-id.error.json +97 -0
  131. package/vectors/command/apply-pattern.incomplete-id-map.error.json +111 -0
  132. package/vectors/command/apply-pattern.two-roots.json +259 -0
  133. package/vectors/command/batch.atomic-failure.error.json +100 -0
  134. package/vectors/command/batch.insert-and-configure.json +197 -0
  135. package/vectors/command/batch.size-roles.json +180 -0
  136. package/vectors/command/duplicate-node.existing-id.error.json +88 -0
  137. package/vectors/command/duplicate-node.explicit-destination.json +183 -0
  138. package/vectors/command/duplicate-node.incomplete-id-map.error.json +91 -0
  139. package/vectors/command/duplicate-node.subtree.json +201 -0
  140. package/vectors/command/insert-node.duplicate-id.error.json +87 -0
  141. package/vectors/command/insert-node.inner-duplicate-id.error.json +115 -0
  142. package/vectors/command/insert-node.invalid-index.error.json +87 -0
  143. package/vectors/command/insert-node.root.json +162 -0
  144. package/vectors/command/insert-node.slot.json +167 -0
  145. package/vectors/command/mode.blueprint.set-field-value.error.json +76 -0
  146. package/vectors/command/mode.blueprint.set-property.json +131 -0
  147. package/vectors/command/mode.content.insert-node.error.json +88 -0
  148. package/vectors/command/mode.hybrid.batch-atomic.error.json +158 -0
  149. package/vectors/command/mode.hybrid.insert-allowed.json +263 -0
  150. package/vectors/command/mode.hybrid.insert-designer-slot.error.json +145 -0
  151. package/vectors/command/mode.hybrid.insert-disallowed-type.error.json +145 -0
  152. package/vectors/command/mode.hybrid.insert-roots.error.json +143 -0
  153. package/vectors/command/mode.hybrid.remove-locked.error.json +130 -0
  154. package/vectors/command/mode.hybrid.reorder-with-locked.json +239 -0
  155. package/vectors/command/mode.hybrid.set-property.error.json +132 -0
  156. package/vectors/command/mode.hybrid.slot-marker-disallowed.error.json +125 -0
  157. package/vectors/command/mode.hybrid.slot-marker-insert.json +223 -0
  158. package/vectors/command/mode.hybrid.slot-marker-other-slot.error.json +125 -0
  159. package/vectors/command/mode.model.remove-node.error.json +75 -0
  160. package/vectors/command/mode.read-only.set-property.error.json +77 -0
  161. package/vectors/command/move-node.into-self.error.json +95 -0
  162. package/vectors/command/move-node.reparent.json +196 -0
  163. package/vectors/command/move-node.within-roots.json +188 -0
  164. package/vectors/command/remove-binding.base.json +159 -0
  165. package/vectors/command/remove-binding.missing.error.json +75 -0
  166. package/vectors/command/remove-node.empties-slot.json +167 -0
  167. package/vectors/command/remove-node.missing.error.json +74 -0
  168. package/vectors/command/remove-node.nested.json +192 -0
  169. package/vectors/command/reorder-children.not-permutation.error.json +85 -0
  170. package/vectors/command/reorder-children.roots.json +182 -0
  171. package/vectors/command/reorder-children.slot.json +192 -0
  172. package/vectors/command/reset-inherited-property.missing.error.json +82 -0
  173. package/vectors/command/reset-inherited-property.single-viewport.json +151 -0
  174. package/vectors/command/reset-inherited-property.two-viewports.json +168 -0
  175. package/vectors/command/restore-node.inner-duplicate-id.error.json +115 -0
  176. package/vectors/command/restore-node.subtree-into-slot.json +195 -0
  177. package/vectors/command/set-binding.add.json +159 -0
  178. package/vectors/command/set-binding.replace.json +178 -0
  179. package/vectors/command/set-property.add.json +143 -0
  180. package/vectors/command/set-property.replace.json +146 -0
  181. package/vectors/command/set-property.viewport-add.json +148 -0
  182. package/vectors/command/set-size-role.base.json +144 -0
  183. package/vectors/command/set-size-role.duplicate.json +148 -0
  184. package/vectors/command/set-size-role.viewport-add.json +154 -0
  185. package/vectors/command/unset-property.base.json +143 -0
  186. package/vectors/command/unset-property.missing.error.json +75 -0
  187. package/vectors/command/unset-property.viewport.json +154 -0
  188. package/vectors/command/unset-size-role.missing.error.json +78 -0
  189. package/vectors/command/unset-size-role.viewport.json +154 -0
  190. package/vectors/host/artifact.dependencies.result.json +35 -0
  191. package/vectors/host/artifact.load.stored.json +36 -0
  192. package/vectors/host/artifact.load.unknown.error.json +37 -0
  193. package/vectors/host/artifact.publish.accepted.json +37 -0
  194. package/vectors/host/artifact.publish.forbidden.error.json +37 -0
  195. package/vectors/host/artifact.publish.stale.error.json +38 -0
  196. package/vectors/host/artifact.save.accepted.json +38 -0
  197. package/vectors/host/artifact.save.forbidden.error.json +38 -0
  198. package/vectors/host/artifact.save.stale.error.json +39 -0
  199. package/vectors/host/artifact.unpublish.stale.error.json +38 -0
  200. package/vectors/host/envelope.malformed-context.error.json +36 -0
  201. package/vectors/host/envelope.protocol-version.error.json +36 -0
  202. package/vectors/host/envelope.stale-generation.error.json +36 -0
  203. package/vectors/host/localization.messages.unknown-locale.error.json +36 -0
  204. package/vectors/host/media.abort-upload.unknown.error.json +35 -0
  205. package/vectors/host/media.authorize-upload.granted.json +37 -0
  206. package/vectors/host/media.authorize-upload.path-filename.error.json +39 -0
  207. package/vectors/host/media.authorize-upload.too-large.error.json +38 -0
  208. package/vectors/host/media.complete-upload.unknown.error.json +36 -0
  209. package/vectors/host/media.get.unknown.json +34 -0
  210. package/vectors/host/media.import-external.private-host.error.json +36 -0
  211. package/vectors/host/media.list.cursor.error.json +36 -0
  212. package/vectors/host/media.list.limit.error.json +35 -0
  213. package/vectors/host/media.upload-status.unknown.error.json +35 -0
  214. package/vectors/host/model.get.stored.json +37 -0
  215. package/vectors/host/model.list.authorized.json +31 -0
  216. package/vectors/host/permission.explain.withheld.json +34 -0
  217. package/vectors/host/permission.refresh.snapshot.json +31 -0
  218. package/vectors/host/recovery.load.absent.json +31 -0
  219. package/vectors/host/telemetry.emit.accepted.json +37 -0
  220. package/vectors/host/telemetry.emit.non-primitive.error.json +40 -0
  221. package/vectors/host-sequence/artifact.publish.changed-intent.sequence.json +75 -0
  222. package/vectors/host-sequence/artifact.publish.idempotent-replay.sequence.json +111 -0
  223. package/vectors/host-sequence/preview.cancel.cross-context.sequence.json +78 -0
  224. package/vectors/host-sequence/preview.render.cancelled.sequence.json +75 -0
  225. package/vectors/host-sequence/recovery.store.canonical-number.sequence.json +72 -0
  226. package/vectors/host-sequence/recovery.store.changed-context.sequence.json +61 -0
  227. package/vectors/host-sequence/recovery.store.rate-limited.sequence.json +93 -0
  228. package/vectors/host-sequence/recovery.store.resource-scope.sequence.json +61 -0
  229. package/vectors/host-sequence/recovery.store.wrong-operation-id.sequence.json +56 -0
  230. package/vectors/media/accept.plan-deterministic.json +26 -0
  231. package/vectors/media/accept.size-at-boundary.json +26 -0
  232. package/vectors/media/cancel.complete-noop.json +30 -0
  233. package/vectors/media/cancel.requested.json +30 -0
  234. package/vectors/media/cancel.transferring.json +30 -0
  235. package/vectors/media/cancel.verifying.json +30 -0
  236. package/vectors/media/reject.disallowed-kind.json +23 -0
  237. package/vectors/media/reject.filename-empty.json +22 -0
  238. package/vectors/media/reject.filename-path.json +23 -0
  239. package/vectors/media/reject.size-one-byte-over.json +23 -0
  240. package/vectors/media/retry.fresh-session.json +26 -0
  241. package/vectors/preview/canonical-preorder.json +102 -0
  242. package/vectors/preview/empty-draft.json +36 -0
  243. package/vectors/schema-profile/alternative-limit.accepted.json +95 -0
  244. package/vectors/schema-profile/alternative-limit.rejected.json +92 -0
  245. package/vectors/schema-profile/array-composition.accepted.json +35 -0
  246. package/vectors/schema-profile/byte-limit.accepted.json +30 -0
  247. package/vectors/schema-profile/byte-limit.rejected.json +26 -0
  248. package/vectors/schema-profile/closed-object.accepted.json +38 -0
  249. package/vectors/schema-profile/decimal-multiple.accepted.json +54 -0
  250. package/vectors/schema-profile/depth-limit.accepted.json +90 -0
  251. package/vectors/schema-profile/depth-limit.rejected.json +88 -0
  252. package/vectors/schema-profile/description-limit.accepted.json +29 -0
  253. package/vectors/schema-profile/description-limit.rejected.json +25 -0
  254. package/vectors/schema-profile/diagnostic-precedence.rejected.json +26 -0
  255. package/vectors/schema-profile/duplicate-dependent-required.rejected.json +21 -0
  256. package/vectors/schema-profile/duplicate-required.rejected.json +18 -0
  257. package/vectors/schema-profile/empty-combinator.rejected.json +17 -0
  258. package/vectors/schema-profile/empty-enum.rejected.json +17 -0
  259. package/vectors/schema-profile/enum-limit.accepted.json +89 -0
  260. package/vectors/schema-profile/enum-limit.rejected.json +84 -0
  261. package/vectors/schema-profile/examples-limit.accepted.json +35 -0
  262. package/vectors/schema-profile/examples-limit.rejected.json +31 -0
  263. package/vectors/schema-profile/format-keyword.rejected.json +17 -0
  264. package/vectors/schema-profile/forward-reference-path-precedence.rejected.json +20 -0
  265. package/vectors/schema-profile/invalid-pointer.rejected.json +18 -0
  266. package/vectors/schema-profile/json-depth-limit.accepted.json +278 -0
  267. package/vectors/schema-profile/json-depth-limit.rejected.json +276 -0
  268. package/vectors/schema-profile/json-item-limit.accepted.json +686 -0
  269. package/vectors/schema-profile/json-item-limit.rejected.json +682 -0
  270. package/vectors/schema-profile/json-property-limit.accepted.json +1031 -0
  271. package/vectors/schema-profile/json-property-limit.rejected.json +1028 -0
  272. package/vectors/schema-profile/local-reference.accepted.json +28 -0
  273. package/vectors/schema-profile/memoized-diagnostic.accepted.json +31 -0
  274. package/vectors/schema-profile/node-limit.accepted.json +1097 -0
  275. package/vectors/schema-profile/node-limit.rejected.json +1094 -0
  276. package/vectors/schema-profile/non-object-root.rejected.json +9 -0
  277. package/vectors/schema-profile/non-schema-reference.rejected.json +21 -0
  278. package/vectors/schema-profile/object-key-limit.accepted.json +32 -0
  279. package/vectors/schema-profile/object-key-limit.rejected.json +28 -0
  280. package/vectors/schema-profile/open-root.rejected.json +13 -0
  281. package/vectors/schema-profile/percent-encoded-pointer.rejected.json +26 -0
  282. package/vectors/schema-profile/property-name-limit.accepted.json +543 -0
  283. package/vectors/schema-profile/property-name-limit.rejected.json +536 -0
  284. package/vectors/schema-profile/recursive-diagnostic-precedence.rejected.json +30 -0
  285. package/vectors/schema-profile/recursive-reference.rejected.json +24 -0
  286. package/vectors/schema-profile/reference-fanout.accepted.json +662 -0
  287. package/vectors/schema-profile/reference-length-limit.accepted.json +45 -0
  288. package/vectors/schema-profile/reference-length-limit.rejected.json +39 -0
  289. package/vectors/schema-profile/reference-limit.accepted.json +416 -0
  290. package/vectors/schema-profile/reference-limit.rejected.json +415 -0
  291. package/vectors/schema-profile/reference-vs-keyword-precedence.rejected.json +22 -0
  292. package/vectors/schema-profile/reserved-pointer.rejected.json +26 -0
  293. package/vectors/schema-profile/root-diagnostic-precedence.rejected.json +16 -0
  294. package/vectors/schema-profile/root-vs-reference-precedence.rejected.json +19 -0
  295. package/vectors/schema-profile/schema-map-limit.accepted.json +539 -0
  296. package/vectors/schema-profile/schema-map-limit.rejected.json +536 -0
  297. package/vectors/schema-profile/semantic-recursion-precedence.rejected.json +21 -0
  298. package/vectors/schema-profile/semantic-reference-precedence.rejected.json +21 -0
  299. package/vectors/schema-profile/title-limit.accepted.json +29 -0
  300. package/vectors/schema-profile/title-limit.rejected.json +25 -0
  301. package/vectors/schema-profile/unresolved-reference.rejected.json +17 -0
  302. package/vectors/schema-profile/unsafe-dependent-required.rejected.json +24 -0
  303. package/vectors/schema-profile/unsafe-member.rejected.json +17 -0
  304. package/vectors/schema-profile/unsafe-required.rejected.json +17 -0
@@ -0,0 +1,270 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "host-operations",
4
+ "operations": [
5
+ {
6
+ "capability": "studio.operation/artifact.dependencies",
7
+ "expectsRevision": false,
8
+ "method": "dependencies",
9
+ "mutating": false,
10
+ "operation": "dependencies",
11
+ "port": "artifact",
12
+ "portCapability": "studio.port/artifact",
13
+ "required": true,
14
+ "route": "artifact/dependencies"
15
+ },
16
+ {
17
+ "capability": "studio.operation/artifact.load",
18
+ "expectsRevision": false,
19
+ "method": "load",
20
+ "mutating": false,
21
+ "operation": "load",
22
+ "port": "artifact",
23
+ "portCapability": "studio.port/artifact",
24
+ "required": true,
25
+ "route": "artifact/load"
26
+ },
27
+ {
28
+ "capability": "studio.operation/artifact.publish",
29
+ "expectsRevision": true,
30
+ "method": "publish",
31
+ "mutating": true,
32
+ "operation": "publish",
33
+ "port": "artifact",
34
+ "portCapability": "studio.port/artifact",
35
+ "required": true,
36
+ "route": "artifact/publish"
37
+ },
38
+ {
39
+ "capability": "studio.operation/artifact.save",
40
+ "expectsRevision": true,
41
+ "method": "save",
42
+ "mutating": true,
43
+ "operation": "save",
44
+ "port": "artifact",
45
+ "portCapability": "studio.port/artifact",
46
+ "required": true,
47
+ "route": "artifact/save"
48
+ },
49
+ {
50
+ "capability": "studio.operation/artifact.unpublish",
51
+ "expectsRevision": true,
52
+ "method": "unpublish",
53
+ "mutating": true,
54
+ "operation": "unpublish",
55
+ "port": "artifact",
56
+ "portCapability": "studio.port/artifact",
57
+ "required": true,
58
+ "route": "artifact/unpublish"
59
+ },
60
+ {
61
+ "capability": "studio.operation/localization.messages",
62
+ "expectsRevision": false,
63
+ "method": "messages",
64
+ "mutating": false,
65
+ "operation": "messages",
66
+ "port": "localization",
67
+ "portCapability": "studio.port/localization",
68
+ "required": false,
69
+ "route": "localization/messages"
70
+ },
71
+ {
72
+ "capability": "studio.operation/media.abort-upload",
73
+ "expectsRevision": false,
74
+ "method": "abortUpload",
75
+ "mutating": true,
76
+ "operation": "abort-upload",
77
+ "port": "media",
78
+ "portCapability": "studio.port/media",
79
+ "required": false,
80
+ "route": "media/abort-upload"
81
+ },
82
+ {
83
+ "capability": "studio.operation/media.authorize-upload",
84
+ "expectsRevision": false,
85
+ "method": "authorizeUpload",
86
+ "mutating": true,
87
+ "operation": "authorize-upload",
88
+ "port": "media",
89
+ "portCapability": "studio.port/media",
90
+ "required": false,
91
+ "route": "media/authorize-upload"
92
+ },
93
+ {
94
+ "capability": "studio.operation/media.complete-upload",
95
+ "expectsRevision": false,
96
+ "method": "completeUpload",
97
+ "mutating": true,
98
+ "operation": "complete-upload",
99
+ "port": "media",
100
+ "portCapability": "studio.port/media",
101
+ "required": false,
102
+ "route": "media/complete-upload"
103
+ },
104
+ {
105
+ "capability": "studio.operation/media.get",
106
+ "expectsRevision": false,
107
+ "method": "get",
108
+ "mutating": false,
109
+ "operation": "get",
110
+ "port": "media",
111
+ "portCapability": "studio.port/media",
112
+ "required": false,
113
+ "route": "media/get"
114
+ },
115
+ {
116
+ "capability": "studio.operation/media.import-external",
117
+ "expectsRevision": false,
118
+ "method": "importExternal",
119
+ "mutating": true,
120
+ "operation": "import-external",
121
+ "port": "media",
122
+ "portCapability": "studio.port/media",
123
+ "required": false,
124
+ "route": "media/import-external"
125
+ },
126
+ {
127
+ "capability": "studio.operation/media.list",
128
+ "expectsRevision": false,
129
+ "method": "list",
130
+ "mutating": false,
131
+ "operation": "list",
132
+ "port": "media",
133
+ "portCapability": "studio.port/media",
134
+ "required": false,
135
+ "route": "media/list"
136
+ },
137
+ {
138
+ "capability": "studio.operation/media.upload-status",
139
+ "expectsRevision": false,
140
+ "method": "uploadStatus",
141
+ "mutating": false,
142
+ "operation": "upload-status",
143
+ "port": "media",
144
+ "portCapability": "studio.port/media",
145
+ "required": false,
146
+ "route": "media/upload-status"
147
+ },
148
+ {
149
+ "capability": "studio.operation/model.get",
150
+ "expectsRevision": false,
151
+ "method": "get",
152
+ "mutating": false,
153
+ "operation": "get",
154
+ "port": "model",
155
+ "portCapability": "studio.port/model",
156
+ "required": false,
157
+ "route": "model/get"
158
+ },
159
+ {
160
+ "capability": "studio.operation/model.list",
161
+ "expectsRevision": false,
162
+ "method": "list",
163
+ "mutating": false,
164
+ "operation": "list",
165
+ "port": "model",
166
+ "portCapability": "studio.port/model",
167
+ "required": false,
168
+ "route": "model/list"
169
+ },
170
+ {
171
+ "capability": "studio.operation/permission.explain",
172
+ "expectsRevision": false,
173
+ "method": "explain",
174
+ "mutating": false,
175
+ "operation": "explain",
176
+ "port": "permission",
177
+ "portCapability": "studio.port/permission",
178
+ "required": false,
179
+ "route": "permission/explain"
180
+ },
181
+ {
182
+ "capability": "studio.operation/permission.refresh",
183
+ "expectsRevision": false,
184
+ "method": "refresh",
185
+ "mutating": false,
186
+ "operation": "refresh",
187
+ "port": "permission",
188
+ "portCapability": "studio.port/permission",
189
+ "required": false,
190
+ "route": "permission/refresh"
191
+ },
192
+ {
193
+ "capability": "studio.operation/preview.cancel",
194
+ "expectsRevision": false,
195
+ "method": "cancel",
196
+ "mutating": false,
197
+ "operation": "cancel",
198
+ "port": "preview",
199
+ "portCapability": "studio.port/preview",
200
+ "required": false,
201
+ "route": "preview/cancel"
202
+ },
203
+ {
204
+ "capability": "studio.operation/preview.render",
205
+ "expectsRevision": false,
206
+ "method": "render",
207
+ "mutating": false,
208
+ "operation": "render",
209
+ "port": "preview",
210
+ "portCapability": "studio.port/preview",
211
+ "required": false,
212
+ "route": "preview/render"
213
+ },
214
+ {
215
+ "capability": "studio.operation/recovery.discard",
216
+ "expectsRevision": false,
217
+ "method": "discard",
218
+ "mutating": true,
219
+ "operation": "discard",
220
+ "port": "recovery",
221
+ "portCapability": "studio.port/recovery",
222
+ "required": false,
223
+ "route": "recovery/discard"
224
+ },
225
+ {
226
+ "capability": "studio.operation/recovery.load",
227
+ "expectsRevision": false,
228
+ "method": "load",
229
+ "mutating": false,
230
+ "operation": "load",
231
+ "port": "recovery",
232
+ "portCapability": "studio.port/recovery",
233
+ "required": false,
234
+ "route": "recovery/load"
235
+ },
236
+ {
237
+ "capability": "studio.operation/recovery.store",
238
+ "expectsRevision": false,
239
+ "method": "store",
240
+ "mutating": true,
241
+ "operation": "store",
242
+ "port": "recovery",
243
+ "portCapability": "studio.port/recovery",
244
+ "required": false,
245
+ "route": "recovery/store"
246
+ },
247
+ {
248
+ "capability": "studio.operation/resource.search",
249
+ "expectsRevision": false,
250
+ "method": "search",
251
+ "mutating": false,
252
+ "operation": "search",
253
+ "port": "resource",
254
+ "portCapability": "studio.port/resource",
255
+ "required": false,
256
+ "route": "resource/search"
257
+ },
258
+ {
259
+ "capability": "studio.operation/telemetry.emit",
260
+ "expectsRevision": false,
261
+ "method": "emit",
262
+ "mutating": true,
263
+ "operation": "emit",
264
+ "port": "telemetry",
265
+ "portCapability": "studio.port/telemetry",
266
+ "required": false,
267
+ "route": "telemetry/emit"
268
+ }
269
+ ]
270
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "inspector",
4
+ "id": "org.example.catalog/price-inspector",
5
+ "version": "1.0.0",
6
+ "owner": {
7
+ "id": "org.example/catalog",
8
+ "version": "1.0.0"
9
+ },
10
+ "label": {
11
+ "key": "org.example.catalog/price-inspector",
12
+ "defaultMessage": "Price inspector"
13
+ },
14
+ "blockTypes": ["org.example.catalog/price"],
15
+ "placement": "augment",
16
+ "requiredCapability": "studio.capability/custom-inspectors"
17
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "media-asset",
4
+ "id": "media/trail-backpack-front",
5
+ "revision": "media-r4",
6
+ "state": "ready",
7
+ "mediaKind": "image",
8
+ "mediaType": "image/avif",
9
+ "byteSize": 483210,
10
+ "filename": "trail-backpack-front.avif",
11
+ "metadata": {
12
+ "width": 2400,
13
+ "height": 1800,
14
+ "altText": "Green trail backpack shown from the front",
15
+ "decorative": false,
16
+ "focalPoint": {
17
+ "x": 0.5,
18
+ "y": 0.46
19
+ }
20
+ },
21
+ "renditions": [
22
+ {
23
+ "id": "card",
24
+ "mediaType": "image/avif",
25
+ "width": 800,
26
+ "height": 600
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "media-asset",
4
+ "id": "media/trail-backpack-side",
5
+ "revision": "media-r1",
6
+ "state": "processing",
7
+ "mediaKind": "image",
8
+ "mediaType": "image/jpeg",
9
+ "byteSize": 7831420,
10
+ "filename": "trail-backpack-side.jpg",
11
+ "metadata": {
12
+ "altText": "Green trail backpack shown from the side",
13
+ "decorative": false
14
+ }
15
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "media-reference",
4
+ "assetId": "media/trail-backpack-front",
5
+ "assetRevision": "media-r4",
6
+ "usage": "org.example.catalog/product-hero",
7
+ "renditionIntent": {
8
+ "role": "hero",
9
+ "fit": "cover",
10
+ "preferredMediaTypes": ["image/avif", "image/webp"]
11
+ },
12
+ "focalPoint": {
13
+ "x": 0.5,
14
+ "y": 0.46
15
+ },
16
+ "cropIntent": {
17
+ "mode": "aspect-ratio",
18
+ "width": 4,
19
+ "height": 3
20
+ },
21
+ "accessibility": {
22
+ "mode": "informative",
23
+ "altText": "Green trail backpack shown from the front",
24
+ "caption": "Trail Backpack in forest green"
25
+ }
26
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "expiresAt": "2026-08-18T23:30:00Z",
3
+ "headers": {
4
+ "X-Upload-Session": "uploads-7f2c"
5
+ },
6
+ "method": "PUT",
7
+ "plan": {
8
+ "chunkBytes": 5242880,
9
+ "maximumBytes": 52428800,
10
+ "resumable": true
11
+ },
12
+ "uploadId": "uploads/7f2c",
13
+ "url": "https://media.example.org/uploads/7f2c"
14
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "media-upload-session",
4
+ "id": "uploads/2b6f0d31",
5
+ "request": {
6
+ "filename": "trail-backpack-side.jpg",
7
+ "mediaType": "image/jpeg",
8
+ "byteSize": 3145728,
9
+ "purpose": "org.example.catalog/product-gallery",
10
+ "checksum": "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="
11
+ },
12
+ "plan": {
13
+ "maximumBytes": 10485760,
14
+ "chunkBytes": 1048576,
15
+ "resumable": true
16
+ },
17
+ "state": "transferring",
18
+ "progress": {
19
+ "transferredBytes": 2097152,
20
+ "totalBytes": 3145728
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "migration",
4
+ "id": "org.example.catalog/price-to-money",
5
+ "version": "1.1.0",
6
+ "owner": {
7
+ "id": "org.example/catalog",
8
+ "version": "1.1.0"
9
+ },
10
+ "label": {
11
+ "key": "org.example.catalog/price-to-money",
12
+ "defaultMessage": "Price becomes typed money"
13
+ },
14
+ "description": {
15
+ "key": "org.example.catalog/price-to-money-description",
16
+ "defaultMessage": "Rewrites plain price properties into the typed money value shape."
17
+ },
18
+ "artifactKinds": ["blueprint", "entry"],
19
+ "sourceVersions": ">=1.0.0 <1.1.0",
20
+ "targetVersion": "1.1.0",
21
+ "lossClassification": "lossless"
22
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "pattern",
4
+ "id": "patterns/hero-with-caption",
5
+ "version": "1.2.0",
6
+ "revision": "pattern-r3",
7
+ "owner": { "id": "org.example/patterns", "version": "1.2.0" },
8
+ "label": { "key": "org.example/hero-with-caption", "defaultMessage": "Hero with caption" },
9
+ "description": {
10
+ "key": "org.example/hero-with-caption-help",
11
+ "defaultMessage": "A hero section followed by a caption paragraph."
12
+ },
13
+ "blockDependencies": [
14
+ { "type": "studio.vector/section", "version": "1.0.0", "revision": "block-r1" },
15
+ { "type": "studio.vector/text", "version": "1.0.0", "revision": "block-r1" }
16
+ ],
17
+ "roots": [
18
+ {
19
+ "authoring": { "mode": "structural" },
20
+ "bindings": {},
21
+ "id": "section-p",
22
+ "properties": {},
23
+ "slots": {
24
+ "main": [
25
+ {
26
+ "authoring": { "mode": "designer" },
27
+ "bindings": {},
28
+ "id": "text-p",
29
+ "properties": { "text": "Hero" },
30
+ "slots": {},
31
+ "type": "studio.vector/text",
32
+ "version": "1.0.0"
33
+ }
34
+ ]
35
+ },
36
+ "type": "studio.vector/section",
37
+ "version": "1.0.0"
38
+ },
39
+ {
40
+ "authoring": { "mode": "designer" },
41
+ "bindings": {},
42
+ "id": "text-q",
43
+ "properties": { "text": "Caption" },
44
+ "slots": {},
45
+ "type": "studio.vector/text",
46
+ "version": "1.0.0"
47
+ }
48
+ ]
49
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "plugin-manifest",
4
+ "id": "org.example/catalog-plugin",
5
+ "version": "1.0.0",
6
+ "owner": {
7
+ "id": "org.example/catalog",
8
+ "version": "1.0.0"
9
+ },
10
+ "label": {
11
+ "key": "org.example.catalog/plugin",
12
+ "defaultMessage": "Catalog Studio integration"
13
+ },
14
+ "activation": "declarative",
15
+ "entryModules": [],
16
+ "contributions": [
17
+ {
18
+ "kind": "block",
19
+ "id": "org.example.catalog/price",
20
+ "version": "1.0.0",
21
+ "resource": "blocks/price.json",
22
+ "integrity": "sha256-gEReHtrWQj4XVxU9b3Yie2ssI8Wsy/nv+rvEe6RcFac=",
23
+ "executable": false
24
+ },
25
+ {
26
+ "kind": "locale",
27
+ "id": "org.example.catalog/en",
28
+ "version": "1.0.0",
29
+ "resource": "locales/en.json",
30
+ "integrity": "sha256-5sNWsx8n/MDESzjxSwhjg4AnBq/6Mtur4NX0cWTHkKg=",
31
+ "executable": false
32
+ }
33
+ ],
34
+ "requiredCapabilities": [
35
+ {
36
+ "id": "studio.host/artifact",
37
+ "versions": "^1.0.0"
38
+ }
39
+ ],
40
+ "optionalCapabilities": [
41
+ {
42
+ "id": "studio.host/media",
43
+ "versions": "^1.0.0"
44
+ }
45
+ ],
46
+ "dependencies": [],
47
+ "permissions": ["org.example.catalog/read-product"],
48
+ "locales": ["en"]
49
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "preview-message",
4
+ "channelId": "preview-channel-7f8d",
5
+ "sessionGeneration": "session-generation-1",
6
+ "sequence": 14,
7
+ "type": "studio.preview/render",
8
+ "payload": {
9
+ "artifactId": "org.example.blueprints/product-card",
10
+ "draftDigest": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
11
+ "draftRevision": "product-card-r5-local-12",
12
+ "requestId": "renders/product-card-14",
13
+ "viewport": "expanded"
14
+ }
15
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "provenance",
4
+ "artifact": {
5
+ "id": "landing.blueprint",
6
+ "revision": "blueprint-r9"
7
+ },
8
+ "chain": [
9
+ {
10
+ "origin": "authoring",
11
+ "fromRevision": "blueprint-r8",
12
+ "toRevision": "blueprint-r9",
13
+ "recordedAt": "2026-08-15T09:30:00Z",
14
+ "actor": { "id": "users/lemuel", "displayName": "Lemuel" },
15
+ "sessionId": "sessions/2f6c1f6d",
16
+ "commandCount": 14
17
+ },
18
+ {
19
+ "origin": "migration",
20
+ "fromRevision": "blueprint-r7",
21
+ "toRevision": "blueprint-r8",
22
+ "recordedAt": "2026-08-14T16:05:12Z",
23
+ "actor": { "id": "users/lemuel", "displayName": "Lemuel" },
24
+ "migrationId": "org.example.migration/rename-text"
25
+ },
26
+ {
27
+ "origin": "pattern",
28
+ "toRevision": "blueprint-r7",
29
+ "recordedAt": "2026-08-14T15:58:41Z",
30
+ "actor": { "id": "users/lemuel", "displayName": "Lemuel" },
31
+ "source": {
32
+ "id": "patterns/hero-with-caption",
33
+ "version": "1.2.0",
34
+ "revision": "pattern-r3"
35
+ }
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "type": "doc",
3
+ "content": [
4
+ {
5
+ "type": "heading",
6
+ "attrs": { "level": 2 },
7
+ "content": [{ "type": "text", "text": "Trail care" }]
8
+ },
9
+ {
10
+ "type": "paragraph",
11
+ "content": [
12
+ { "type": "text", "text": "Wash with " },
13
+ { "type": "text", "text": "cold water", "marks": [{ "type": "bold" }] },
14
+ { "type": "text", "text": " only." },
15
+ { "type": "hardBreak" },
16
+ { "type": "text", "text": "Air dry away from direct sun.", "marks": [{ "type": "italic" }] }
17
+ ]
18
+ },
19
+ {
20
+ "type": "orderedList",
21
+ "attrs": { "start": 1 },
22
+ "content": [
23
+ {
24
+ "type": "listItem",
25
+ "content": [
26
+ { "type": "paragraph", "content": [{ "type": "text", "text": "Empty all pockets." }] }
27
+ ]
28
+ },
29
+ {
30
+ "type": "listItem",
31
+ "content": [
32
+ { "type": "paragraph", "content": [{ "type": "text", "text": "Brush off dry mud." }] }
33
+ ]
34
+ }
35
+ ]
36
+ },
37
+ { "type": "horizontalRule" },
38
+ {
39
+ "type": "blockquote",
40
+ "content": [
41
+ {
42
+ "type": "paragraph",
43
+ "content": [{ "type": "text", "text": "Repairs beat replacements." }]
44
+ }
45
+ ]
46
+ }
47
+ ]
48
+ }