@kumwe/studio-testkit 0.1.0-alpha.8 → 0.1.0-beta.3

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 (72) hide show
  1. package/README.md +79 -19
  2. package/THIRD_PARTY_NOTICES.md +9 -0
  3. package/conformance/authoring-web/non-drag-move-equivalence.json +199 -0
  4. package/conformance/renderer-web/blob-default-deny.json +62 -0
  5. package/conformance/renderer-web/chart-fallback.json +54 -0
  6. package/conformance/renderer-web/complete-catalog.json +649 -0
  7. package/conformance/renderer-web/escaped-heading.json +43 -0
  8. package/conformance/renderer-web/interactive-behaviors.json +284 -0
  9. package/conformance/renderer-web/presentation-capabilities.json +104 -0
  10. package/conformance/renderer-web/responsive-grid.json +48 -0
  11. package/conformance/renderer-web/security-fallbacks.json +184 -0
  12. package/conformance/rich-text/advanced.first-party.json +67 -0
  13. package/corpus-manifest.json +190 -2
  14. package/dist/contextual-conformance.d.ts +81 -0
  15. package/dist/contextual-conformance.d.ts.map +1 -0
  16. package/dist/contextual-conformance.js +1 -0
  17. package/dist/host-testbed.d.ts +47 -4
  18. package/dist/host-testbed.d.ts.map +1 -1
  19. package/dist/host-testbed.js +1 -742
  20. package/dist/http-authoring-contract.d.ts +3 -0
  21. package/dist/http-authoring-contract.d.ts.map +1 -0
  22. package/dist/http-authoring-contract.js +1 -0
  23. package/dist/http-host-adapter.d.ts +12 -64
  24. package/dist/http-host-adapter.d.ts.map +1 -1
  25. package/dist/http-host-adapter.js +1 -256
  26. package/dist/http-host-responder.d.ts +58 -0
  27. package/dist/http-host-responder.d.ts.map +1 -0
  28. package/dist/http-host-responder.js +1 -0
  29. package/dist/index.d.ts +49 -3
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +2 -174
  32. package/dist/web-conformance.d.ts +112 -0
  33. package/dist/web-conformance.d.ts.map +1 -0
  34. package/dist/web-conformance.js +1 -0
  35. package/fixtures/authoring-message-catalog.en.json +1093 -0
  36. package/fixtures/authoring-save.plan.example.json +48 -0
  37. package/fixtures/authoring-session.example.json +212 -0
  38. package/fixtures/authoring-target.example.json +34 -0
  39. package/fixtures/host-operations.example.json +77 -0
  40. package/fixtures/plugin.example.json +12 -0
  41. package/fixtures/reusable-content-type.example.json +26 -0
  42. package/fixtures/studio-deployment.hosted.example.json +152 -0
  43. package/fixtures/studio-deployment.standalone.example.json +9 -0
  44. package/invalid/authoring-save.plan-missing-coordinates.json +16 -0
  45. package/invalid/authoring-save.plan-missing-successor-context.json +28 -0
  46. package/invalid/authoring-save.request-plan-missing-successor-context.json +26 -0
  47. package/invalid/authoring-session.missing-entry-state.json +9 -0
  48. package/invalid/authoring-target.missing-resource-types.json +24 -0
  49. package/invalid/binding-projection-vector.unknown-status.json +85 -0
  50. package/invalid/host-error.retry-delay-without-retry.json +16 -0
  51. package/invalid/host-error.retry-delay-wrong-category.json +16 -0
  52. package/invalid/host-error.revision-without-conflict.json +16 -0
  53. package/invalid/reusable-content-type.entry-values.json +32 -0
  54. package/invalid/studio-chart.script-config.json +10 -0
  55. package/invalid/studio-deployment.long-lived-token.json +24 -0
  56. package/invalid/studio-deployment.missing-required.json +5 -0
  57. package/invalid/studio-deployment.unknown-member.json +15 -0
  58. package/invalid/studio-drawing.svg-payload.json +10 -0
  59. package/invalid/studio-money.float.json +8 -0
  60. package/invalid/studio-presentation.css-injection.json +8 -0
  61. package/invalid/studio-table.html-cell.json +8 -0
  62. package/package.json +8 -4
  63. package/studio-release.json +35 -0
  64. package/vectors/authoring-http/transport-matrix.json +237 -0
  65. package/vectors/binding-projection/app-content-fields.resolved.json +286 -0
  66. package/vectors/binding-projection/field-removed.diagnostic.json +135 -0
  67. package/vectors/binding-projection/model-revision-mismatch.diagnostic.json +124 -0
  68. package/vectors/host/model.get.stored.json +37 -0
  69. package/vectors/host/model.list.authorized.json +31 -0
  70. package/dist/host-testbed.js.map +0 -1
  71. package/dist/http-host-adapter.js.map +0 -1
  72. package/dist/index.js.map +0 -1
@@ -0,0 +1,286 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "binding-projection-vector",
4
+ "id": "binding-projection/app-content-fields-resolved",
5
+ "description": "An App-like Content projection exposes compatible visible fields in authoring order, preserves declared controls, and resolves exact entry-field bindings.",
6
+ "profile": "studio.profile/binding-projection-v1",
7
+ "blueprint": {
8
+ "contractVersion": "0.1-draft",
9
+ "kind": "blueprint",
10
+ "id": "blueprints/article-page",
11
+ "version": "1.0.0",
12
+ "revision": "blueprint-r1",
13
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
14
+ "status": "draft",
15
+ "label": { "key": "studio.test/article-page", "defaultMessage": "Article page" },
16
+ "model": {
17
+ "id": "content-model:00000000-0000-4000-8000-000000000001",
18
+ "version": "0.0.4",
19
+ "revision": "content-type-v4"
20
+ },
21
+ "dependencyLock": {
22
+ "theme": { "id": "studio.test/theme", "version": "1.0.0", "revision": "theme-r1" },
23
+ "blocks": [{ "type": "studio.test/article-card", "version": "1.0.0", "revision": "block-r1" }]
24
+ },
25
+ "roots": [
26
+ {
27
+ "id": "article-card-1",
28
+ "type": "studio.test/article-card",
29
+ "version": "1.0.0",
30
+ "properties": {},
31
+ "bindings": {
32
+ "headline": {
33
+ "source": { "kind": "entry-field", "fieldPath": ["data_title"] },
34
+ "transforms": [],
35
+ "onNull": "empty",
36
+ "onError": "error"
37
+ },
38
+ "labels": {
39
+ "source": { "kind": "entry-field", "fieldPath": ["data_tags"] },
40
+ "transforms": [],
41
+ "onNull": "empty",
42
+ "onError": "error"
43
+ },
44
+ "manual": {
45
+ "source": { "kind": "static-value", "value": "Fallback" },
46
+ "transforms": [],
47
+ "onNull": "empty",
48
+ "onError": "error"
49
+ }
50
+ },
51
+ "slots": {},
52
+ "authoring": { "mode": "content" }
53
+ }
54
+ ]
55
+ },
56
+ "model": {
57
+ "contractVersion": "0.1-draft",
58
+ "kind": "content-model",
59
+ "id": "content-model:00000000-0000-4000-8000-000000000001",
60
+ "version": "0.0.4",
61
+ "revision": "content-type-v4",
62
+ "owner": { "id": "kumwe.app/content", "version": "2.0.0" },
63
+ "status": "published",
64
+ "label": { "key": "kumwe.app/article", "defaultMessage": "Article" },
65
+ "fields": [
66
+ {
67
+ "id": "data_title",
68
+ "kind": "string",
69
+ "label": { "key": "kumwe.app/title", "defaultMessage": "Title" },
70
+ "required": true,
71
+ "localized": true,
72
+ "cardinality": "one",
73
+ "authoring": { "control": "studio.control/single-line-text", "order": 0 }
74
+ },
75
+ {
76
+ "id": "data_contact",
77
+ "kind": "string",
78
+ "label": { "key": "kumwe.app/contact", "defaultMessage": "Contact" },
79
+ "required": false,
80
+ "localized": true,
81
+ "cardinality": "one",
82
+ "authoring": { "control": "kumwe.app/email", "order": 1 }
83
+ },
84
+ {
85
+ "id": "data_category",
86
+ "kind": "enum",
87
+ "label": { "key": "kumwe.app/category", "defaultMessage": "Category" },
88
+ "required": false,
89
+ "localized": true,
90
+ "cardinality": "one",
91
+ "enumValues": [
92
+ {
93
+ "value": "guide",
94
+ "label": { "key": "kumwe.app/category-guide", "defaultMessage": "Guide" }
95
+ }
96
+ ],
97
+ "authoring": { "control": "studio.control/select", "order": 2 }
98
+ },
99
+ {
100
+ "id": "data_internal",
101
+ "kind": "string",
102
+ "label": { "key": "kumwe.app/internal", "defaultMessage": "Internal" },
103
+ "required": false,
104
+ "localized": false,
105
+ "cardinality": "one",
106
+ "authoring": {
107
+ "control": "studio.control/single-line-text",
108
+ "hidden": true,
109
+ "order": 3
110
+ }
111
+ },
112
+ {
113
+ "id": "data_tags",
114
+ "kind": "collection",
115
+ "itemKind": "string",
116
+ "label": { "key": "kumwe.app/tags", "defaultMessage": "Tags" },
117
+ "required": false,
118
+ "localized": true,
119
+ "cardinality": "many",
120
+ "authoring": { "control": "kumwe.app/schema-group", "order": 4 }
121
+ }
122
+ ],
123
+ "relationships": []
124
+ },
125
+ "blockDefinitions": [
126
+ {
127
+ "contractVersion": "0.1-draft",
128
+ "kind": "block-definition",
129
+ "type": "studio.test/article-card",
130
+ "version": "1.0.0",
131
+ "revision": "block-r1",
132
+ "owner": { "id": "studio.test/blocks", "version": "1.0.0" },
133
+ "label": { "key": "studio.test/article-card", "defaultMessage": "Article card" },
134
+ "category": "studio.category/content",
135
+ "propertySchema": { "type": "object", "additionalProperties": false },
136
+ "slots": [],
137
+ "ports": [
138
+ {
139
+ "id": "headline",
140
+ "label": { "key": "studio.test/headline", "defaultMessage": "Headline" },
141
+ "valueType": "text",
142
+ "required": true,
143
+ "multiple": false
144
+ },
145
+ {
146
+ "id": "labels",
147
+ "label": { "key": "studio.test/labels", "defaultMessage": "Labels" },
148
+ "valueType": "text",
149
+ "required": false,
150
+ "multiple": true
151
+ },
152
+ {
153
+ "id": "featured",
154
+ "label": { "key": "studio.test/featured", "defaultMessage": "Featured" },
155
+ "valueType": "boolean",
156
+ "required": false,
157
+ "multiple": false
158
+ },
159
+ {
160
+ "id": "manual",
161
+ "label": { "key": "studio.test/manual", "defaultMessage": "Manual" },
162
+ "valueType": "text",
163
+ "required": false,
164
+ "multiple": false
165
+ }
166
+ ],
167
+ "editingModes": ["blueprint", "content"],
168
+ "themeControls": [],
169
+ "rendererRequirements": [
170
+ {
171
+ "surface": "preview",
172
+ "capability": "studio.renderer/test",
173
+ "versions": "^1.0.0"
174
+ }
175
+ ],
176
+ "accessibility": {
177
+ "category": "text",
178
+ "accessibleName": "derived",
179
+ "keyboard": {
180
+ "key": "studio.test/article-card-keyboard",
181
+ "defaultMessage": "Use the outline controls."
182
+ },
183
+ "reducedMotion": "not-applicable",
184
+ "outputChecks": ["studio.check/article-card"]
185
+ }
186
+ }
187
+ ],
188
+ "expect": {
189
+ "model": {
190
+ "id": "content-model:00000000-0000-4000-8000-000000000001",
191
+ "version": "0.0.4",
192
+ "revision": "content-type-v4"
193
+ },
194
+ "nodes": [
195
+ {
196
+ "nodeId": "article-card-1",
197
+ "ports": [
198
+ {
199
+ "port": "headline",
200
+ "status": "resolved",
201
+ "bindingSourceKind": "entry-field",
202
+ "boundFieldPath": ["data_title"],
203
+ "candidates": [
204
+ {
205
+ "fieldPath": ["data_title"],
206
+ "kind": "string",
207
+ "cardinality": "one",
208
+ "control": "studio.control/single-line-text"
209
+ },
210
+ {
211
+ "fieldPath": ["data_contact"],
212
+ "kind": "string",
213
+ "cardinality": "one",
214
+ "control": "kumwe.app/email"
215
+ },
216
+ {
217
+ "fieldPath": ["data_category"],
218
+ "kind": "enum",
219
+ "cardinality": "one",
220
+ "control": "studio.control/select"
221
+ }
222
+ ],
223
+ "multiple": false,
224
+ "required": true,
225
+ "valueType": "text"
226
+ },
227
+ {
228
+ "port": "labels",
229
+ "status": "resolved",
230
+ "bindingSourceKind": "entry-field",
231
+ "boundFieldPath": ["data_tags"],
232
+ "candidates": [
233
+ {
234
+ "fieldPath": ["data_tags"],
235
+ "kind": "collection",
236
+ "itemKind": "string",
237
+ "cardinality": "many",
238
+ "control": "kumwe.app/schema-group"
239
+ }
240
+ ],
241
+ "multiple": true,
242
+ "required": false,
243
+ "valueType": "text"
244
+ },
245
+ {
246
+ "port": "featured",
247
+ "status": "unbound",
248
+ "candidates": [],
249
+ "multiple": false,
250
+ "required": false,
251
+ "valueType": "boolean"
252
+ },
253
+ {
254
+ "port": "manual",
255
+ "status": "non-field-source",
256
+ "bindingSourceKind": "static-value",
257
+ "candidates": [
258
+ {
259
+ "fieldPath": ["data_title"],
260
+ "kind": "string",
261
+ "cardinality": "one",
262
+ "control": "studio.control/single-line-text"
263
+ },
264
+ {
265
+ "fieldPath": ["data_contact"],
266
+ "kind": "string",
267
+ "cardinality": "one",
268
+ "control": "kumwe.app/email"
269
+ },
270
+ {
271
+ "fieldPath": ["data_category"],
272
+ "kind": "enum",
273
+ "cardinality": "one",
274
+ "control": "studio.control/select"
275
+ }
276
+ ],
277
+ "multiple": false,
278
+ "required": false,
279
+ "valueType": "text"
280
+ }
281
+ ]
282
+ }
283
+ ],
284
+ "diagnostics": []
285
+ }
286
+ }
@@ -0,0 +1,135 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "binding-projection-vector",
4
+ "id": "binding-projection/field-removed-diagnostic",
5
+ "description": "A binding to a field removed from the exact locked model is preserved and diagnosed instead of silently rewritten.",
6
+ "profile": "studio.profile/binding-projection-v1",
7
+ "blueprint": {
8
+ "contractVersion": "0.1-draft",
9
+ "kind": "blueprint",
10
+ "id": "blueprints/removed-field",
11
+ "version": "1.0.0",
12
+ "revision": "blueprint-r1",
13
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
14
+ "status": "draft",
15
+ "label": { "key": "studio.test/removed-field", "defaultMessage": "Removed field" },
16
+ "model": { "id": "studio.test/article", "version": "1.0.0", "revision": "model-r2" },
17
+ "dependencyLock": {
18
+ "theme": { "id": "studio.test/theme", "version": "1.0.0", "revision": "theme-r1" },
19
+ "blocks": [{ "type": "studio.test/text", "version": "1.0.0", "revision": "block-r1" }]
20
+ },
21
+ "roots": [
22
+ {
23
+ "id": "text-1",
24
+ "type": "studio.test/text",
25
+ "version": "1.0.0",
26
+ "properties": {},
27
+ "bindings": {
28
+ "headline": {
29
+ "source": { "kind": "entry-field", "fieldPath": ["title"] },
30
+ "transforms": [],
31
+ "onNull": "empty",
32
+ "onError": "error"
33
+ }
34
+ },
35
+ "slots": {},
36
+ "authoring": { "mode": "content" }
37
+ }
38
+ ]
39
+ },
40
+ "model": {
41
+ "contractVersion": "0.1-draft",
42
+ "kind": "content-model",
43
+ "id": "studio.test/article",
44
+ "version": "1.0.0",
45
+ "revision": "model-r2",
46
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
47
+ "status": "published",
48
+ "label": { "key": "studio.test/article", "defaultMessage": "Article" },
49
+ "fields": [
50
+ {
51
+ "id": "summary",
52
+ "kind": "string",
53
+ "label": { "key": "studio.test/summary", "defaultMessage": "Summary" },
54
+ "required": false,
55
+ "localized": true,
56
+ "cardinality": "one",
57
+ "authoring": { "control": "studio.control/multi-line-text", "order": 0 }
58
+ }
59
+ ],
60
+ "relationships": []
61
+ },
62
+ "blockDefinitions": [
63
+ {
64
+ "contractVersion": "0.1-draft",
65
+ "kind": "block-definition",
66
+ "type": "studio.test/text",
67
+ "version": "1.0.0",
68
+ "revision": "block-r1",
69
+ "owner": { "id": "studio.test/blocks", "version": "1.0.0" },
70
+ "label": { "key": "studio.test/text", "defaultMessage": "Text" },
71
+ "category": "studio.category/content",
72
+ "propertySchema": { "type": "object", "additionalProperties": false },
73
+ "slots": [],
74
+ "ports": [
75
+ {
76
+ "id": "headline",
77
+ "label": { "key": "studio.test/headline", "defaultMessage": "Headline" },
78
+ "valueType": "text",
79
+ "required": true,
80
+ "multiple": false
81
+ }
82
+ ],
83
+ "editingModes": ["blueprint", "content"],
84
+ "themeControls": [],
85
+ "rendererRequirements": [
86
+ { "surface": "preview", "capability": "studio.renderer/test", "versions": "^1.0.0" }
87
+ ],
88
+ "accessibility": {
89
+ "category": "text",
90
+ "accessibleName": "derived",
91
+ "keyboard": { "key": "studio.test/text-keyboard", "defaultMessage": "Use the outline." },
92
+ "reducedMotion": "not-applicable",
93
+ "outputChecks": ["studio.check/text"]
94
+ }
95
+ }
96
+ ],
97
+ "expect": {
98
+ "model": { "id": "studio.test/article", "version": "1.0.0", "revision": "model-r2" },
99
+ "nodes": [
100
+ {
101
+ "nodeId": "text-1",
102
+ "ports": [
103
+ {
104
+ "port": "headline",
105
+ "status": "invalid",
106
+ "bindingSourceKind": "entry-field",
107
+ "boundFieldPath": ["title"],
108
+ "candidates": [
109
+ {
110
+ "fieldPath": ["summary"],
111
+ "kind": "string",
112
+ "cardinality": "one",
113
+ "control": "studio.control/multi-line-text"
114
+ }
115
+ ],
116
+ "multiple": false,
117
+ "required": true,
118
+ "valueType": "text"
119
+ }
120
+ ]
121
+ }
122
+ ],
123
+ "diagnostics": [
124
+ {
125
+ "code": "studio.binding/field-missing",
126
+ "severity": "error",
127
+ "location": {
128
+ "artifactId": "blueprints/removed-field",
129
+ "nodeId": "text-1",
130
+ "fieldPath": ["title"]
131
+ }
132
+ }
133
+ ]
134
+ }
135
+ }
@@ -0,0 +1,124 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "binding-projection-vector",
4
+ "id": "binding-projection/model-revision-mismatch-diagnostic",
5
+ "description": "A projected model from a different immutable revision fails the entire candidate surface closed with an exact coordinate diagnostic.",
6
+ "profile": "studio.profile/binding-projection-v1",
7
+ "blueprint": {
8
+ "contractVersion": "0.1-draft",
9
+ "kind": "blueprint",
10
+ "id": "blueprints/revision-mismatch",
11
+ "version": "1.0.0",
12
+ "revision": "blueprint-r1",
13
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
14
+ "status": "draft",
15
+ "label": { "key": "studio.test/revision-mismatch", "defaultMessage": "Mismatch" },
16
+ "model": { "id": "studio.test/article", "version": "1.0.0", "revision": "model-r1" },
17
+ "dependencyLock": {
18
+ "theme": { "id": "studio.test/theme", "version": "1.0.0", "revision": "theme-r1" },
19
+ "blocks": [{ "type": "studio.test/text", "version": "1.0.0", "revision": "block-r1" }]
20
+ },
21
+ "roots": [
22
+ {
23
+ "id": "text-1",
24
+ "type": "studio.test/text",
25
+ "version": "1.0.0",
26
+ "properties": {},
27
+ "bindings": {
28
+ "headline": {
29
+ "source": { "kind": "entry-field", "fieldPath": ["title"] },
30
+ "transforms": [],
31
+ "onNull": "empty",
32
+ "onError": "error"
33
+ }
34
+ },
35
+ "slots": {},
36
+ "authoring": { "mode": "content" }
37
+ }
38
+ ]
39
+ },
40
+ "model": {
41
+ "contractVersion": "0.1-draft",
42
+ "kind": "content-model",
43
+ "id": "studio.test/article",
44
+ "version": "1.0.0",
45
+ "revision": "model-r2",
46
+ "owner": { "id": "studio.test/host", "version": "1.0.0" },
47
+ "status": "published",
48
+ "label": { "key": "studio.test/article", "defaultMessage": "Article" },
49
+ "fields": [
50
+ {
51
+ "id": "title",
52
+ "kind": "string",
53
+ "label": { "key": "studio.test/title", "defaultMessage": "Title" },
54
+ "required": true,
55
+ "localized": true,
56
+ "cardinality": "one",
57
+ "authoring": { "control": "studio.control/single-line-text", "order": 0 }
58
+ }
59
+ ],
60
+ "relationships": []
61
+ },
62
+ "blockDefinitions": [
63
+ {
64
+ "contractVersion": "0.1-draft",
65
+ "kind": "block-definition",
66
+ "type": "studio.test/text",
67
+ "version": "1.0.0",
68
+ "revision": "block-r1",
69
+ "owner": { "id": "studio.test/blocks", "version": "1.0.0" },
70
+ "label": { "key": "studio.test/text", "defaultMessage": "Text" },
71
+ "category": "studio.category/content",
72
+ "propertySchema": { "type": "object", "additionalProperties": false },
73
+ "slots": [],
74
+ "ports": [
75
+ {
76
+ "id": "headline",
77
+ "label": { "key": "studio.test/headline", "defaultMessage": "Headline" },
78
+ "valueType": "text",
79
+ "required": true,
80
+ "multiple": false
81
+ }
82
+ ],
83
+ "editingModes": ["blueprint", "content"],
84
+ "themeControls": [],
85
+ "rendererRequirements": [
86
+ { "surface": "preview", "capability": "studio.renderer/test", "versions": "^1.0.0" }
87
+ ],
88
+ "accessibility": {
89
+ "category": "text",
90
+ "accessibleName": "derived",
91
+ "keyboard": { "key": "studio.test/text-keyboard", "defaultMessage": "Use the outline." },
92
+ "reducedMotion": "not-applicable",
93
+ "outputChecks": ["studio.check/text"]
94
+ }
95
+ }
96
+ ],
97
+ "expect": {
98
+ "model": { "id": "studio.test/article", "version": "1.0.0", "revision": "model-r1" },
99
+ "nodes": [
100
+ {
101
+ "nodeId": "text-1",
102
+ "ports": [
103
+ {
104
+ "port": "headline",
105
+ "status": "invalid",
106
+ "bindingSourceKind": "entry-field",
107
+ "boundFieldPath": ["title"],
108
+ "candidates": [],
109
+ "multiple": false,
110
+ "required": true,
111
+ "valueType": "text"
112
+ }
113
+ ]
114
+ }
115
+ ],
116
+ "diagnostics": [
117
+ {
118
+ "code": "studio.binding/model-revision-mismatch",
119
+ "severity": "error",
120
+ "location": { "artifactId": "blueprints/revision-mismatch" }
121
+ }
122
+ ]
123
+ }
124
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "host-vector",
4
+ "id": "vector.host-vector.model.get.stored",
5
+ "description": "Getting an authorized model resolves one exact ID, semantic version, and immutable revision through the read-only model port.",
6
+ "profile": "studio.profile/host-baseline",
7
+ "port": "model",
8
+ "operation": "get",
9
+ "given": {
10
+ "artifacts": [
11
+ {
12
+ "id": "studio.test/article-model",
13
+ "kind": "content-model",
14
+ "revision": "model-r1"
15
+ }
16
+ ],
17
+ "permissions": [],
18
+ "sessionGeneration": "session-r1"
19
+ },
20
+ "context": {
21
+ "operationId": "studio.operation/model.get",
22
+ "protocolVersion": "0.1.0-draft.2",
23
+ "requestId": "requests/model-get-1",
24
+ "resourceContextKey": "contexts/vector",
25
+ "sessionGeneration": "session-r1"
26
+ },
27
+ "argument": {
28
+ "id": "studio.test/article-model",
29
+ "version": "1.0.0",
30
+ "revision": "model-r1"
31
+ },
32
+ "expect": {
33
+ "outcome": "result",
34
+ "revision": "model-r1",
35
+ "value": "content-model"
36
+ }
37
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "contractVersion": "0.1-draft",
3
+ "kind": "host-vector",
4
+ "id": "vector.host-vector.model.list.authorized",
5
+ "description": "Listing models returns only the authorized content-model projections in deterministic coordinate order.",
6
+ "profile": "studio.profile/host-baseline",
7
+ "port": "model",
8
+ "operation": "list",
9
+ "given": {
10
+ "artifacts": [
11
+ {
12
+ "id": "studio.test/article-model",
13
+ "kind": "content-model",
14
+ "revision": "model-r1"
15
+ }
16
+ ],
17
+ "permissions": [],
18
+ "sessionGeneration": "session-r1"
19
+ },
20
+ "context": {
21
+ "operationId": "studio.operation/model.list",
22
+ "protocolVersion": "0.1.0-draft.2",
23
+ "requestId": "requests/model-list-1",
24
+ "resourceContextKey": "contexts/vector",
25
+ "sessionGeneration": "session-r1"
26
+ },
27
+ "expect": {
28
+ "outcome": "result",
29
+ "value": "content-models"
30
+ }
31
+ }