@kumwe/studio-testkit 0.1.0-alpha.8 → 0.1.0-beta.2
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.
- package/README.md +79 -19
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/conformance/authoring-web/non-drag-move-equivalence.json +199 -0
- package/conformance/renderer-web/blob-default-deny.json +62 -0
- package/conformance/renderer-web/chart-fallback.json +54 -0
- package/conformance/renderer-web/complete-catalog.json +649 -0
- package/conformance/renderer-web/escaped-heading.json +43 -0
- package/conformance/renderer-web/interactive-behaviors.json +284 -0
- package/conformance/renderer-web/presentation-capabilities.json +104 -0
- package/conformance/renderer-web/responsive-grid.json +48 -0
- package/conformance/renderer-web/security-fallbacks.json +184 -0
- package/conformance/rich-text/advanced.first-party.json +67 -0
- package/corpus-manifest.json +190 -2
- package/dist/contextual-conformance.d.ts +81 -0
- package/dist/contextual-conformance.d.ts.map +1 -0
- package/dist/contextual-conformance.js +1 -0
- package/dist/host-testbed.d.ts +47 -4
- package/dist/host-testbed.d.ts.map +1 -1
- package/dist/host-testbed.js +1 -742
- package/dist/http-authoring-contract.d.ts +3 -0
- package/dist/http-authoring-contract.d.ts.map +1 -0
- package/dist/http-authoring-contract.js +1 -0
- package/dist/http-host-adapter.d.ts +12 -64
- package/dist/http-host-adapter.d.ts.map +1 -1
- package/dist/http-host-adapter.js +1 -256
- package/dist/http-host-responder.d.ts +58 -0
- package/dist/http-host-responder.d.ts.map +1 -0
- package/dist/http-host-responder.js +1 -0
- package/dist/index.d.ts +49 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -174
- package/dist/web-conformance.d.ts +112 -0
- package/dist/web-conformance.d.ts.map +1 -0
- package/dist/web-conformance.js +1 -0
- package/fixtures/authoring-message-catalog.en.json +1093 -0
- package/fixtures/authoring-save.plan.example.json +48 -0
- package/fixtures/authoring-session.example.json +212 -0
- package/fixtures/authoring-target.example.json +34 -0
- package/fixtures/host-operations.example.json +77 -0
- package/fixtures/plugin.example.json +12 -0
- package/fixtures/reusable-content-type.example.json +26 -0
- package/fixtures/studio-deployment.hosted.example.json +152 -0
- package/fixtures/studio-deployment.standalone.example.json +9 -0
- package/invalid/authoring-save.plan-missing-coordinates.json +16 -0
- package/invalid/authoring-save.plan-missing-successor-context.json +28 -0
- package/invalid/authoring-save.request-plan-missing-successor-context.json +26 -0
- package/invalid/authoring-session.missing-entry-state.json +9 -0
- package/invalid/authoring-target.missing-resource-types.json +24 -0
- package/invalid/binding-projection-vector.unknown-status.json +85 -0
- package/invalid/host-error.retry-delay-without-retry.json +16 -0
- package/invalid/host-error.retry-delay-wrong-category.json +16 -0
- package/invalid/host-error.revision-without-conflict.json +16 -0
- package/invalid/reusable-content-type.entry-values.json +32 -0
- package/invalid/studio-chart.script-config.json +10 -0
- package/invalid/studio-deployment.long-lived-token.json +24 -0
- package/invalid/studio-deployment.missing-required.json +5 -0
- package/invalid/studio-deployment.unknown-member.json +15 -0
- package/invalid/studio-drawing.svg-payload.json +10 -0
- package/invalid/studio-money.float.json +8 -0
- package/invalid/studio-presentation.css-injection.json +8 -0
- package/invalid/studio-table.html-cell.json +8 -0
- package/package.json +8 -4
- package/studio-release.json +35 -0
- package/vectors/authoring-http/transport-matrix.json +237 -0
- package/vectors/binding-projection/app-content-fields.resolved.json +286 -0
- package/vectors/binding-projection/field-removed.diagnostic.json +135 -0
- package/vectors/binding-projection/model-revision-mismatch.diagnostic.json +124 -0
- package/vectors/host/model.get.stored.json +37 -0
- package/vectors/host/model.list.authorized.json +31 -0
- package/dist/host-testbed.js.map +0 -1
- package/dist/http-host-adapter.js.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "authoring-save-plan",
|
|
4
|
+
"id": "save-plans/product-page-v2",
|
|
5
|
+
"revision": "save-plan-r1",
|
|
6
|
+
"successorContext": {
|
|
7
|
+
"key": "returns/product-trail-backpack-r8",
|
|
8
|
+
"label": {
|
|
9
|
+
"key": "studio.example/return-to-product",
|
|
10
|
+
"defaultMessage": "Return to accepted product"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"sessionId": "sessions/product-trail-backpack",
|
|
14
|
+
"outcome": "save-new-type-version",
|
|
15
|
+
"expected": {
|
|
16
|
+
"type": {
|
|
17
|
+
"id": "content-types/product-page",
|
|
18
|
+
"version": "1.0.0",
|
|
19
|
+
"revision": "product-page-type-r1"
|
|
20
|
+
},
|
|
21
|
+
"model": {
|
|
22
|
+
"id": "org.example.models/product",
|
|
23
|
+
"version": "1.0.0",
|
|
24
|
+
"revision": "product-model-r1"
|
|
25
|
+
},
|
|
26
|
+
"blueprint": {
|
|
27
|
+
"id": "org.example.blueprints/product-card",
|
|
28
|
+
"version": "1.0.0",
|
|
29
|
+
"revision": "product-card-r5"
|
|
30
|
+
},
|
|
31
|
+
"entry": {
|
|
32
|
+
"id": "products/trail-backpack",
|
|
33
|
+
"revision": "entry-r7"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"affectedArtifacts": ["model", "blueprint", "reusable-content-type"],
|
|
37
|
+
"consequences": [
|
|
38
|
+
{
|
|
39
|
+
"code": "studio.authoring/dependent-entry-migration",
|
|
40
|
+
"severity": "warning",
|
|
41
|
+
"message": {
|
|
42
|
+
"key": "studio.authoring/dependent-entry-migration",
|
|
43
|
+
"defaultMessage": "Dependent entries remain on the current type version until migrated."
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"confirmationRequired": true
|
|
48
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "authoring-session",
|
|
4
|
+
"sessionId": "sessions/product-trail-backpack",
|
|
5
|
+
"sessionGeneration": "session-generation-r3",
|
|
6
|
+
"target": {
|
|
7
|
+
"contractVersion": "0.1-draft",
|
|
8
|
+
"kind": "authoring-target",
|
|
9
|
+
"id": "org.example.catalog/product-content",
|
|
10
|
+
"owner": {
|
|
11
|
+
"id": "org.example/catalog",
|
|
12
|
+
"version": "1.0.0"
|
|
13
|
+
},
|
|
14
|
+
"label": {
|
|
15
|
+
"key": "org.example.catalog/product-content",
|
|
16
|
+
"defaultMessage": "Product content"
|
|
17
|
+
},
|
|
18
|
+
"surface": "org.example.catalog/product-editor",
|
|
19
|
+
"resourceTypes": ["org.example.catalog/product"],
|
|
20
|
+
"eligibility": ["create", "edit"],
|
|
21
|
+
"modes": ["model", "blueprint", "content"],
|
|
22
|
+
"startKinds": ["blank", "from-type", "existing"],
|
|
23
|
+
"presentationStates": ["inline", "fullscreen"],
|
|
24
|
+
"saveOutcomes": ["save-item", "save-new-type-version", "save-as-new-type"],
|
|
25
|
+
"requiredCapabilities": [],
|
|
26
|
+
"contributionDependencies": []
|
|
27
|
+
},
|
|
28
|
+
"resourceContext": {
|
|
29
|
+
"key": "contexts/product-trail-backpack",
|
|
30
|
+
"surface": "org.example.catalog/product-editor",
|
|
31
|
+
"revision": "context-r2",
|
|
32
|
+
"scopes": [
|
|
33
|
+
{
|
|
34
|
+
"kind": "org.example/tenant",
|
|
35
|
+
"id": "tenants/north"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"resource": {
|
|
39
|
+
"type": "org.example.catalog/product",
|
|
40
|
+
"id": "products/trail-backpack"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"start": {
|
|
44
|
+
"kind": "existing"
|
|
45
|
+
},
|
|
46
|
+
"type": {
|
|
47
|
+
"contractVersion": "0.1-draft",
|
|
48
|
+
"kind": "reusable-content-type",
|
|
49
|
+
"id": "content-types/product-page",
|
|
50
|
+
"version": "1.0.0",
|
|
51
|
+
"revision": "product-page-type-r1",
|
|
52
|
+
"label": {
|
|
53
|
+
"key": "org.example.catalog/product-page-type",
|
|
54
|
+
"defaultMessage": "Product page"
|
|
55
|
+
},
|
|
56
|
+
"status": "published",
|
|
57
|
+
"model": {
|
|
58
|
+
"id": "org.example.models/product",
|
|
59
|
+
"version": "1.0.0",
|
|
60
|
+
"revision": "product-model-r1"
|
|
61
|
+
},
|
|
62
|
+
"blueprint": {
|
|
63
|
+
"id": "org.example.blueprints/product-card",
|
|
64
|
+
"version": "1.0.0",
|
|
65
|
+
"revision": "product-card-r5"
|
|
66
|
+
},
|
|
67
|
+
"authoringPolicy": {
|
|
68
|
+
"modes": ["model", "blueprint", "content"],
|
|
69
|
+
"itemComposition": "overrides"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"state": {
|
|
73
|
+
"coordinates": {
|
|
74
|
+
"type": {
|
|
75
|
+
"id": "content-types/product-page",
|
|
76
|
+
"version": "1.0.0",
|
|
77
|
+
"revision": "product-page-type-r1"
|
|
78
|
+
},
|
|
79
|
+
"model": {
|
|
80
|
+
"id": "org.example.models/product",
|
|
81
|
+
"version": "1.0.0",
|
|
82
|
+
"revision": "product-model-r1"
|
|
83
|
+
},
|
|
84
|
+
"blueprint": {
|
|
85
|
+
"id": "org.example.blueprints/product-card",
|
|
86
|
+
"version": "1.0.0",
|
|
87
|
+
"revision": "product-card-r5"
|
|
88
|
+
},
|
|
89
|
+
"entry": {
|
|
90
|
+
"id": "products/trail-backpack",
|
|
91
|
+
"revision": "entry-r7"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"model": {
|
|
95
|
+
"contractVersion": "0.1-draft",
|
|
96
|
+
"kind": "content-model",
|
|
97
|
+
"id": "org.example.models/product",
|
|
98
|
+
"version": "1.0.0",
|
|
99
|
+
"revision": "product-model-r1",
|
|
100
|
+
"owner": {
|
|
101
|
+
"id": "org.example/catalog",
|
|
102
|
+
"version": "1.0.0"
|
|
103
|
+
},
|
|
104
|
+
"status": "published",
|
|
105
|
+
"label": {
|
|
106
|
+
"key": "org.example.catalog/product-model",
|
|
107
|
+
"defaultMessage": "Product"
|
|
108
|
+
},
|
|
109
|
+
"fields": [
|
|
110
|
+
{
|
|
111
|
+
"id": "name",
|
|
112
|
+
"kind": "string",
|
|
113
|
+
"label": {
|
|
114
|
+
"key": "org.example.catalog/product-name",
|
|
115
|
+
"defaultMessage": "Name"
|
|
116
|
+
},
|
|
117
|
+
"required": true,
|
|
118
|
+
"localized": true,
|
|
119
|
+
"cardinality": "one"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"relationships": []
|
|
123
|
+
},
|
|
124
|
+
"blueprint": {
|
|
125
|
+
"contractVersion": "0.1-draft",
|
|
126
|
+
"kind": "blueprint",
|
|
127
|
+
"id": "org.example.blueprints/product-card",
|
|
128
|
+
"version": "1.0.0",
|
|
129
|
+
"revision": "product-card-r5",
|
|
130
|
+
"owner": {
|
|
131
|
+
"id": "org.example/catalog",
|
|
132
|
+
"version": "1.0.0"
|
|
133
|
+
},
|
|
134
|
+
"status": "published",
|
|
135
|
+
"label": {
|
|
136
|
+
"key": "org.example.catalog/product-card",
|
|
137
|
+
"defaultMessage": "Product card"
|
|
138
|
+
},
|
|
139
|
+
"model": {
|
|
140
|
+
"id": "org.example.models/product",
|
|
141
|
+
"version": "1.0.0",
|
|
142
|
+
"revision": "product-model-r1"
|
|
143
|
+
},
|
|
144
|
+
"dependencyLock": {
|
|
145
|
+
"theme": {
|
|
146
|
+
"id": "org.example.themes/commerce",
|
|
147
|
+
"version": "1.0.0",
|
|
148
|
+
"revision": "commerce-theme-r3"
|
|
149
|
+
},
|
|
150
|
+
"blocks": [
|
|
151
|
+
{
|
|
152
|
+
"type": "studio.core/text",
|
|
153
|
+
"version": "1.0.0",
|
|
154
|
+
"revision": "text-block-r1"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"roots": [
|
|
159
|
+
{
|
|
160
|
+
"id": "node-name",
|
|
161
|
+
"type": "studio.core/text",
|
|
162
|
+
"version": "1.0.0",
|
|
163
|
+
"properties": {},
|
|
164
|
+
"bindings": {
|
|
165
|
+
"value": {
|
|
166
|
+
"source": {
|
|
167
|
+
"kind": "entry-field",
|
|
168
|
+
"fieldPath": ["name"]
|
|
169
|
+
},
|
|
170
|
+
"transforms": [],
|
|
171
|
+
"onNull": "empty",
|
|
172
|
+
"onError": "error"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"slots": {},
|
|
176
|
+
"authoring": {
|
|
177
|
+
"mode": "content"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"entry": {
|
|
183
|
+
"contractVersion": "0.1-draft",
|
|
184
|
+
"kind": "entry",
|
|
185
|
+
"id": "products/trail-backpack",
|
|
186
|
+
"revision": "entry-r7",
|
|
187
|
+
"model": {
|
|
188
|
+
"id": "org.example.models/product",
|
|
189
|
+
"version": "1.0.0",
|
|
190
|
+
"revision": "product-model-r1"
|
|
191
|
+
},
|
|
192
|
+
"status": "draft",
|
|
193
|
+
"values": {
|
|
194
|
+
"name": "Trail Backpack"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"dirty": [],
|
|
198
|
+
"diagnostics": []
|
|
199
|
+
},
|
|
200
|
+
"capabilities": {
|
|
201
|
+
"modes": ["model", "blueprint", "content"],
|
|
202
|
+
"presentationStates": ["inline", "fullscreen"],
|
|
203
|
+
"saveOutcomes": ["save-item", "save-new-type-version", "save-as-new-type"]
|
|
204
|
+
},
|
|
205
|
+
"presentation": {
|
|
206
|
+
"current": "inline",
|
|
207
|
+
"returnContext": {
|
|
208
|
+
"key": "return/product-list"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"contributionGeneration": "contributions-r8"
|
|
212
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "authoring-target",
|
|
4
|
+
"id": "org.example.catalog/product-content",
|
|
5
|
+
"owner": {
|
|
6
|
+
"id": "org.example/catalog",
|
|
7
|
+
"version": "1.0.0"
|
|
8
|
+
},
|
|
9
|
+
"label": {
|
|
10
|
+
"key": "org.example.catalog/product-content",
|
|
11
|
+
"defaultMessage": "Product content"
|
|
12
|
+
},
|
|
13
|
+
"surface": "org.example.catalog/product-editor",
|
|
14
|
+
"resourceTypes": ["org.example.catalog/product"],
|
|
15
|
+
"eligibility": ["create", "edit"],
|
|
16
|
+
"modes": ["model", "blueprint", "content"],
|
|
17
|
+
"startKinds": ["blank", "from-type", "existing"],
|
|
18
|
+
"presentationStates": ["inline", "minimized", "maximized", "fullscreen"],
|
|
19
|
+
"saveOutcomes": ["save-item", "save-new-type-version", "save-as-new-type"],
|
|
20
|
+
"requiredCapabilities": [
|
|
21
|
+
{
|
|
22
|
+
"id": "studio.capability/contextual-authoring",
|
|
23
|
+
"versions": ">=0.1.0 <1.0.0"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"contributionDependencies": [
|
|
27
|
+
{
|
|
28
|
+
"kind": "field-adapter",
|
|
29
|
+
"id": "org.example.catalog/money-control",
|
|
30
|
+
"versions": "^1.0.0",
|
|
31
|
+
"required": true
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -57,6 +57,83 @@
|
|
|
57
57
|
"required": true,
|
|
58
58
|
"route": "artifact/unpublish"
|
|
59
59
|
},
|
|
60
|
+
{
|
|
61
|
+
"capability": "studio.operation/authoring.list-types",
|
|
62
|
+
"expectsRevision": false,
|
|
63
|
+
"method": "listTypes",
|
|
64
|
+
"mutating": false,
|
|
65
|
+
"operation": "list-types",
|
|
66
|
+
"port": "authoring",
|
|
67
|
+
"portCapability": "studio.port/authoring",
|
|
68
|
+
"required": false,
|
|
69
|
+
"route": "authoring/list-types"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"capability": "studio.operation/authoring.plan-save",
|
|
73
|
+
"expectsRevision": false,
|
|
74
|
+
"method": "planSave",
|
|
75
|
+
"mutating": false,
|
|
76
|
+
"operation": "plan-save",
|
|
77
|
+
"port": "authoring",
|
|
78
|
+
"portCapability": "studio.port/authoring",
|
|
79
|
+
"required": false,
|
|
80
|
+
"route": "authoring/plan-save"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"capability": "studio.operation/authoring.resolve-target",
|
|
84
|
+
"expectsRevision": false,
|
|
85
|
+
"method": "resolveTarget",
|
|
86
|
+
"mutating": false,
|
|
87
|
+
"operation": "resolve-target",
|
|
88
|
+
"port": "authoring",
|
|
89
|
+
"portCapability": "studio.port/authoring",
|
|
90
|
+
"required": false,
|
|
91
|
+
"route": "authoring/resolve-target"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"capability": "studio.operation/authoring.save-as-new-type",
|
|
95
|
+
"expectsRevision": false,
|
|
96
|
+
"method": "saveAsNewType",
|
|
97
|
+
"mutating": true,
|
|
98
|
+
"operation": "save-as-new-type",
|
|
99
|
+
"port": "authoring",
|
|
100
|
+
"portCapability": "studio.port/authoring",
|
|
101
|
+
"required": false,
|
|
102
|
+
"route": "authoring/save-as-new-type"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"capability": "studio.operation/authoring.save-item",
|
|
106
|
+
"expectsRevision": false,
|
|
107
|
+
"method": "saveItem",
|
|
108
|
+
"mutating": true,
|
|
109
|
+
"operation": "save-item",
|
|
110
|
+
"port": "authoring",
|
|
111
|
+
"portCapability": "studio.port/authoring",
|
|
112
|
+
"required": false,
|
|
113
|
+
"route": "authoring/save-item"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"capability": "studio.operation/authoring.save-new-type-version",
|
|
117
|
+
"expectsRevision": false,
|
|
118
|
+
"method": "saveNewTypeVersion",
|
|
119
|
+
"mutating": true,
|
|
120
|
+
"operation": "save-new-type-version",
|
|
121
|
+
"port": "authoring",
|
|
122
|
+
"portCapability": "studio.port/authoring",
|
|
123
|
+
"required": false,
|
|
124
|
+
"route": "authoring/save-new-type-version"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"capability": "studio.operation/authoring.start",
|
|
128
|
+
"expectsRevision": false,
|
|
129
|
+
"method": "start",
|
|
130
|
+
"mutating": true,
|
|
131
|
+
"operation": "start",
|
|
132
|
+
"port": "authoring",
|
|
133
|
+
"portCapability": "studio.port/authoring",
|
|
134
|
+
"required": false,
|
|
135
|
+
"route": "authoring/start"
|
|
136
|
+
},
|
|
60
137
|
{
|
|
61
138
|
"capability": "studio.operation/localization.messages",
|
|
62
139
|
"expectsRevision": false,
|
|
@@ -14,6 +14,14 @@
|
|
|
14
14
|
"activation": "declarative",
|
|
15
15
|
"entryModules": [],
|
|
16
16
|
"contributions": [
|
|
17
|
+
{
|
|
18
|
+
"kind": "authoring-target",
|
|
19
|
+
"id": "org.example.catalog/product-content",
|
|
20
|
+
"version": "1.0.0",
|
|
21
|
+
"resource": "authoring/product-content.json",
|
|
22
|
+
"integrity": "sha256-8UXhVSSK8qpAIeINL/EZAeMXvriQ6Xy97BKjuvI2gTU=",
|
|
23
|
+
"executable": false
|
|
24
|
+
},
|
|
17
25
|
{
|
|
18
26
|
"kind": "block",
|
|
19
27
|
"id": "org.example.catalog/price",
|
|
@@ -32,6 +40,10 @@
|
|
|
32
40
|
}
|
|
33
41
|
],
|
|
34
42
|
"requiredCapabilities": [
|
|
43
|
+
{
|
|
44
|
+
"id": "studio.capability/contextual-authoring",
|
|
45
|
+
"versions": "^1.0.0"
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"id": "studio.host/artifact",
|
|
37
49
|
"versions": "^1.0.0"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "reusable-content-type",
|
|
4
|
+
"id": "content-types/product-page",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"revision": "product-page-type-r1",
|
|
7
|
+
"label": {
|
|
8
|
+
"key": "org.example.catalog/product-page-type",
|
|
9
|
+
"defaultMessage": "Product page"
|
|
10
|
+
},
|
|
11
|
+
"status": "published",
|
|
12
|
+
"model": {
|
|
13
|
+
"id": "org.example.models/product",
|
|
14
|
+
"version": "1.0.0",
|
|
15
|
+
"revision": "product-model-r1"
|
|
16
|
+
},
|
|
17
|
+
"blueprint": {
|
|
18
|
+
"id": "org.example.blueprints/product-card",
|
|
19
|
+
"version": "1.0.0",
|
|
20
|
+
"revision": "product-card-r5"
|
|
21
|
+
},
|
|
22
|
+
"authoringPolicy": {
|
|
23
|
+
"modes": ["model", "blueprint", "content"],
|
|
24
|
+
"itemComposition": "overrides"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractVersion": "0.1-draft",
|
|
3
|
+
"kind": "studio-deployment",
|
|
4
|
+
"instanceId": "studio-example-page",
|
|
5
|
+
"mount": "#studio-page",
|
|
6
|
+
"release": {
|
|
7
|
+
"version": "0.1.0-beta.2",
|
|
8
|
+
"corpusManifestDigest": "sha256-HCQ5pF8NMk9nPOXfU6kVX/E8sjgJjHdyDQ86CTOjGi0="
|
|
9
|
+
},
|
|
10
|
+
"launch": {
|
|
11
|
+
"targetId": "org.example.authoring/page",
|
|
12
|
+
"intent": "create",
|
|
13
|
+
"resourceContext": {
|
|
14
|
+
"key": "contexts/example-page",
|
|
15
|
+
"surface": "org.example.surface/content",
|
|
16
|
+
"revision": "context-r1",
|
|
17
|
+
"scopes": [
|
|
18
|
+
{
|
|
19
|
+
"kind": "studio.scope/site",
|
|
20
|
+
"id": "sites/main"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"resource": {
|
|
24
|
+
"type": "org.example.content/page",
|
|
25
|
+
"id": "pages/example"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"start": { "kind": "blank" },
|
|
29
|
+
"initialPresentation": "inline"
|
|
30
|
+
},
|
|
31
|
+
"session": {
|
|
32
|
+
"contractVersion": "0.1-draft",
|
|
33
|
+
"protocolVersion": "0.1.0-draft.2",
|
|
34
|
+
"sessionId": "session-example-page",
|
|
35
|
+
"sessionGeneration": "session-generation-1",
|
|
36
|
+
"mode": "blueprint",
|
|
37
|
+
"composite": "single",
|
|
38
|
+
"sessionState": "editable",
|
|
39
|
+
"actor": {
|
|
40
|
+
"id": "users/example-author",
|
|
41
|
+
"displayName": "Example Author"
|
|
42
|
+
},
|
|
43
|
+
"locale": {
|
|
44
|
+
"requested": "en",
|
|
45
|
+
"resolved": "en",
|
|
46
|
+
"fallbacks": [],
|
|
47
|
+
"direction": "ltr",
|
|
48
|
+
"timeZone": "Etc/UTC"
|
|
49
|
+
},
|
|
50
|
+
"displayPreferences": {
|
|
51
|
+
"calendar": "gregory",
|
|
52
|
+
"numberingSystem": "latn",
|
|
53
|
+
"hourCycle": "h23",
|
|
54
|
+
"measurementSystem": "metric"
|
|
55
|
+
},
|
|
56
|
+
"resourceContext": {
|
|
57
|
+
"key": "contexts/example-page",
|
|
58
|
+
"surface": "org.example.surface/content",
|
|
59
|
+
"revision": "context-r1",
|
|
60
|
+
"scopes": [
|
|
61
|
+
{
|
|
62
|
+
"kind": "studio.scope/site",
|
|
63
|
+
"id": "sites/main"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"resource": {
|
|
67
|
+
"type": "org.example.content/page",
|
|
68
|
+
"id": "pages/example"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"permissions": [
|
|
72
|
+
"studio.operation/authoring.resolve-target",
|
|
73
|
+
"studio.operation/authoring.start"
|
|
74
|
+
],
|
|
75
|
+
"artifacts": {},
|
|
76
|
+
"blocks": [],
|
|
77
|
+
"plugins": [],
|
|
78
|
+
"hostCapabilities": {
|
|
79
|
+
"contractVersion": "0.1-draft",
|
|
80
|
+
"kind": "host-capabilities",
|
|
81
|
+
"host": {
|
|
82
|
+
"id": "org.example/php-host",
|
|
83
|
+
"version": "1.0.0",
|
|
84
|
+
"generation": "php-runtime-1"
|
|
85
|
+
},
|
|
86
|
+
"protocolVersions": ["0.1.0-draft.2"],
|
|
87
|
+
"ports": [
|
|
88
|
+
{
|
|
89
|
+
"id": "studio.port/authoring",
|
|
90
|
+
"version": "1.0.0",
|
|
91
|
+
"operations": [
|
|
92
|
+
"studio.operation/authoring.resolve-target",
|
|
93
|
+
"studio.operation/authoring.start"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"capabilities": []
|
|
98
|
+
},
|
|
99
|
+
"limits": {
|
|
100
|
+
"maxNodes": 5000,
|
|
101
|
+
"maxDepth": 32,
|
|
102
|
+
"maxSlotsPerNode": 20,
|
|
103
|
+
"maxChildrenPerSlot": 1000,
|
|
104
|
+
"maxPropertyBytes": 1048576,
|
|
105
|
+
"maxExtensionBytes": 1048576,
|
|
106
|
+
"maxCommandBatch": 100,
|
|
107
|
+
"maxHistoryEntries": 1000,
|
|
108
|
+
"maxRichTextBytes": 1048576,
|
|
109
|
+
"maxRichTextDepth": 32,
|
|
110
|
+
"maxPreviewRequestsPerMinute": 600,
|
|
111
|
+
"maxPreviewBytes": 10485760,
|
|
112
|
+
"maxMediaUploadBytes": 1073741824,
|
|
113
|
+
"maxMediaBatch": 50,
|
|
114
|
+
"maxPluginCount": 50,
|
|
115
|
+
"maxContributionsPerPlugin": 500,
|
|
116
|
+
"maxLocaleBytes": 1048576
|
|
117
|
+
},
|
|
118
|
+
"features": {
|
|
119
|
+
"executablePlugins": false,
|
|
120
|
+
"customInspectors": false,
|
|
121
|
+
"externalMediaImport": false,
|
|
122
|
+
"clipboardMediaUpload": false,
|
|
123
|
+
"collaboration": false,
|
|
124
|
+
"offlineRecovery": false
|
|
125
|
+
},
|
|
126
|
+
"preview": {
|
|
127
|
+
"enabled": false,
|
|
128
|
+
"sameOriginRequired": true,
|
|
129
|
+
"allowApproximateRenderer": false
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"transport": {
|
|
133
|
+
"kind": "http",
|
|
134
|
+
"routing": {
|
|
135
|
+
"kind": "operation-map",
|
|
136
|
+
"endpoints": {
|
|
137
|
+
"authoring/resolve-target": "/api/studio/authoring/resolve-target",
|
|
138
|
+
"authoring/start": "/api/studio/authoring/start"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"authentication": {
|
|
142
|
+
"kind": "same-origin-session",
|
|
143
|
+
"credentials": "same-origin",
|
|
144
|
+
"csrf": {
|
|
145
|
+
"headerName": "X-CSRF-Token",
|
|
146
|
+
"token": "<csrf-token>"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"requestTimeoutMilliseconds": 10000,
|
|
150
|
+
"maximumResponseBytes": 67108864
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "authoring-save.schema.json",
|
|
3
|
+
"description": "A save plan cannot be confirmed without the exact expected Model, Blueprint, and Entry coordinates.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "authoring-save-plan",
|
|
7
|
+
"id": "save-plans/incomplete",
|
|
8
|
+
"revision": "save-plan-r1",
|
|
9
|
+
"successorContext": { "key": "returns/incomplete-r2" },
|
|
10
|
+
"sessionId": "sessions/incomplete",
|
|
11
|
+
"outcome": "save-item",
|
|
12
|
+
"affectedArtifacts": ["entry"],
|
|
13
|
+
"consequences": [],
|
|
14
|
+
"confirmationRequired": false
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "authoring-save.schema.json",
|
|
3
|
+
"description": "A save plan must bind the exact host-minted return context that an accepted result will advance to.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "authoring-save-plan",
|
|
7
|
+
"id": "save-plans/missing-successor-context",
|
|
8
|
+
"revision": "save-plan-r1",
|
|
9
|
+
"sessionId": "sessions/missing-successor-context",
|
|
10
|
+
"outcome": "save-item",
|
|
11
|
+
"expected": {
|
|
12
|
+
"model": {
|
|
13
|
+
"id": "models/article",
|
|
14
|
+
"version": "1.0.0",
|
|
15
|
+
"revision": "model-r1"
|
|
16
|
+
},
|
|
17
|
+
"blueprint": {
|
|
18
|
+
"id": "blueprints/article",
|
|
19
|
+
"version": "1.0.0",
|
|
20
|
+
"revision": "blueprint-r1"
|
|
21
|
+
},
|
|
22
|
+
"entry": { "id": "entries/article", "revision": "entry-r1" }
|
|
23
|
+
},
|
|
24
|
+
"affectedArtifacts": ["entry"],
|
|
25
|
+
"consequences": [],
|
|
26
|
+
"confirmationRequired": false
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "authoring-save.schema.json",
|
|
3
|
+
"description": "A save request must echo the complete plan reference, including its planned successor return context.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "authoring-save-item-request",
|
|
7
|
+
"plan": { "id": "save-plans/entry-r8", "revision": "save-plan-r1" },
|
|
8
|
+
"acceptedConsequences": [],
|
|
9
|
+
"draft": {
|
|
10
|
+
"outcome": "save-item",
|
|
11
|
+
"entry": {
|
|
12
|
+
"contractVersion": "0.1-draft",
|
|
13
|
+
"kind": "entry",
|
|
14
|
+
"id": "entries/article",
|
|
15
|
+
"revision": "entry-r7",
|
|
16
|
+
"model": {
|
|
17
|
+
"id": "models/article",
|
|
18
|
+
"version": "1.0.0",
|
|
19
|
+
"revision": "model-r1"
|
|
20
|
+
},
|
|
21
|
+
"status": "draft",
|
|
22
|
+
"values": {}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "authoring-session.schema.json",
|
|
3
|
+
"description": "A contextual session cannot claim coordinated hydration without a separately identified Entry document.",
|
|
4
|
+
"value": {
|
|
5
|
+
"contractVersion": "0.1-draft",
|
|
6
|
+
"kind": "authoring-session",
|
|
7
|
+
"sessionId": "sessions/incomplete"
|
|
8
|
+
}
|
|
9
|
+
}
|