@kumwe/studio-protocol 0.1.0-alpha.5 → 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 +72 -6
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/generated/schema-models.d.ts +2750 -0
- package/dist/generated/schema-models.d.ts.map +1 -0
- package/dist/generated/schema-models.js +1 -0
- package/dist/guards.d.ts +4 -1
- package/dist/guards.d.ts.map +1 -1
- package/dist/guards.js +1 -332
- package/dist/host-failure.d.ts +16 -0
- package/dist/host-failure.d.ts.map +1 -0
- package/dist/host-failure.js +1 -0
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -4
- package/dist/release.d.ts +8 -0
- package/dist/release.d.ts.map +1 -0
- package/dist/release.js +1 -0
- package/dist/schemas.d.ts +25 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +1 -93
- package/dist/types.d.ts +447 -7
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -3
- package/package.json +7 -3
- package/schemas/authoring-http-vector.schema.json +195 -0
- package/schemas/authoring-http.schema.json +505 -0
- package/schemas/authoring-message-catalog.schema.json +45 -0
- package/schemas/authoring-save.schema.json +188 -0
- package/schemas/authoring-session.schema.json +151 -0
- package/schemas/authoring-target.schema.json +160 -0
- package/schemas/authoring-web-vector.schema.json +236 -0
- package/schemas/binding-projection-vector.schema.json +127 -0
- package/schemas/block-definition.schema.json +10 -1
- package/schemas/common.schema.json +45 -0
- package/schemas/host-error.schema.json +22 -1
- package/schemas/host-operations.schema.json +16 -0
- package/schemas/host-sequence-vector.schema.json +342 -0
- package/schemas/host-vector.schema.json +2 -0
- package/schemas/manifest.json +120 -11
- package/schemas/plugin-manifest.schema.json +1 -0
- package/schemas/preview-message.schema.json +44 -12
- package/schemas/preview-vector.schema.json +52 -0
- package/schemas/renderer-web-vector.schema.json +273 -0
- package/schemas/reusable-content-type.schema.json +99 -0
- package/schemas/rich-text-projection.schema.json +12 -3
- package/schemas/rich-text.schema.json +156 -7
- package/schemas/schema-profile-vector.schema.json +133 -0
- package/schemas/schema-profile.schema.json +47 -7
- package/schemas/studio-browser-assets.schema.json +376 -0
- package/schemas/studio-chart.schema.json +35 -0
- package/schemas/studio-config.schema.json +1 -33
- package/schemas/studio-deployment.schema.json +347 -0
- package/schemas/studio-drawing.schema.json +44 -0
- package/schemas/studio-money.schema.json +16 -0
- package/schemas/studio-presentation.schema.json +31 -0
- package/schemas/studio-release.schema.json +125 -0
- package/schemas/studio-table.schema.json +27 -0
- package/studio-release.json +35 -0
- package/dist/guards.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/schemas.js.map +0 -1
- package/dist/types.js.map +0 -1
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/authoring-save.schema.json",
|
|
4
|
+
"title": "Studio contextual authoring save documents",
|
|
5
|
+
"description": "Host-authoritative planning, confirmation, and reconciliation documents for the three explicit contextual save outcomes.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{ "$ref": "#/$defs/saveIntent" },
|
|
8
|
+
{ "$ref": "#/$defs/savePlan" },
|
|
9
|
+
{ "$ref": "#/$defs/saveItemRequest" },
|
|
10
|
+
{ "$ref": "#/$defs/saveNewTypeVersionRequest" },
|
|
11
|
+
{ "$ref": "#/$defs/saveAsNewTypeRequest" },
|
|
12
|
+
{ "$ref": "#/$defs/saveResult" }
|
|
13
|
+
],
|
|
14
|
+
"$defs": {
|
|
15
|
+
"artifactKind": {
|
|
16
|
+
"enum": ["model", "blueprint", "entry", "reusable-content-type"]
|
|
17
|
+
},
|
|
18
|
+
"saveItemDraft": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": ["outcome", "entry"],
|
|
22
|
+
"properties": {
|
|
23
|
+
"outcome": { "const": "save-item" },
|
|
24
|
+
"entry": { "$ref": "entry.schema.json" },
|
|
25
|
+
"itemBlueprint": { "$ref": "blueprint.schema.json" }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"saveNewTypeVersionDraft": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": ["outcome", "model", "blueprint"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"outcome": { "const": "save-new-type-version" },
|
|
34
|
+
"model": { "$ref": "content-model.schema.json" },
|
|
35
|
+
"blueprint": { "$ref": "blueprint.schema.json" }
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"saveAsNewTypeDraft": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"additionalProperties": false,
|
|
41
|
+
"required": ["outcome", "label", "authoringPolicy", "model", "blueprint"],
|
|
42
|
+
"properties": {
|
|
43
|
+
"outcome": { "const": "save-as-new-type" },
|
|
44
|
+
"label": { "$ref": "common.schema.json#/$defs/messageReference" },
|
|
45
|
+
"authoringPolicy": {
|
|
46
|
+
"$ref": "reusable-content-type.schema.json#/$defs/authoringPolicy"
|
|
47
|
+
},
|
|
48
|
+
"model": { "$ref": "content-model.schema.json" },
|
|
49
|
+
"blueprint": { "$ref": "blueprint.schema.json" }
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"saveDraft": {
|
|
53
|
+
"oneOf": [
|
|
54
|
+
{ "$ref": "#/$defs/saveItemDraft" },
|
|
55
|
+
{ "$ref": "#/$defs/saveNewTypeVersionDraft" },
|
|
56
|
+
{ "$ref": "#/$defs/saveAsNewTypeDraft" }
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"saveIntent": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"required": ["contractVersion", "kind", "sessionId", "expected", "draft"],
|
|
63
|
+
"properties": {
|
|
64
|
+
"contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
|
|
65
|
+
"kind": { "const": "authoring-save-intent" },
|
|
66
|
+
"sessionId": { "$ref": "common.schema.json#/$defs/stableId" },
|
|
67
|
+
"expected": {
|
|
68
|
+
"$ref": "authoring-session.schema.json#/$defs/artifactCoordinates"
|
|
69
|
+
},
|
|
70
|
+
"draft": { "$ref": "#/$defs/saveDraft" }
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"planReference": {
|
|
74
|
+
"description": "The exact reviewed plan identity and host-minted return context adopted only after that plan is accepted.",
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": ["id", "revision", "successorContext"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"id": { "$ref": "common.schema.json#/$defs/stableId" },
|
|
80
|
+
"revision": { "$ref": "common.schema.json#/$defs/revision" },
|
|
81
|
+
"successorContext": {
|
|
82
|
+
"description": "The exact host return context that the accepted result session must carry.",
|
|
83
|
+
"$ref": "common.schema.json#/$defs/returnContext"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"savePlan": {
|
|
88
|
+
"description": "A host-reviewed save transaction whose successorContext binds post-acceptance return navigation without granting authority.",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"required": [
|
|
92
|
+
"contractVersion",
|
|
93
|
+
"kind",
|
|
94
|
+
"id",
|
|
95
|
+
"revision",
|
|
96
|
+
"successorContext",
|
|
97
|
+
"sessionId",
|
|
98
|
+
"outcome",
|
|
99
|
+
"expected",
|
|
100
|
+
"affectedArtifacts",
|
|
101
|
+
"consequences",
|
|
102
|
+
"confirmationRequired"
|
|
103
|
+
],
|
|
104
|
+
"properties": {
|
|
105
|
+
"contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
|
|
106
|
+
"kind": { "const": "authoring-save-plan" },
|
|
107
|
+
"id": { "$ref": "common.schema.json#/$defs/stableId" },
|
|
108
|
+
"revision": { "$ref": "common.schema.json#/$defs/revision" },
|
|
109
|
+
"successorContext": {
|
|
110
|
+
"description": "The exact host return context copied into the request/result planReference and adopted after acceptance.",
|
|
111
|
+
"$ref": "common.schema.json#/$defs/returnContext"
|
|
112
|
+
},
|
|
113
|
+
"sessionId": { "$ref": "common.schema.json#/$defs/stableId" },
|
|
114
|
+
"outcome": { "$ref": "authoring-target.schema.json#/$defs/saveOutcome" },
|
|
115
|
+
"expected": {
|
|
116
|
+
"$ref": "authoring-session.schema.json#/$defs/artifactCoordinates"
|
|
117
|
+
},
|
|
118
|
+
"affectedArtifacts": {
|
|
119
|
+
"type": "array",
|
|
120
|
+
"minItems": 1,
|
|
121
|
+
"maxItems": 4,
|
|
122
|
+
"uniqueItems": true,
|
|
123
|
+
"items": { "$ref": "#/$defs/artifactKind" }
|
|
124
|
+
},
|
|
125
|
+
"consequences": {
|
|
126
|
+
"type": "array",
|
|
127
|
+
"maxItems": 100,
|
|
128
|
+
"items": { "$ref": "common.schema.json#/$defs/diagnostic" }
|
|
129
|
+
},
|
|
130
|
+
"confirmationRequired": { "type": "boolean" }
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"acceptedConsequences": {
|
|
134
|
+
"type": "array",
|
|
135
|
+
"maxItems": 100,
|
|
136
|
+
"uniqueItems": true,
|
|
137
|
+
"items": { "$ref": "common.schema.json#/$defs/qualifiedName" }
|
|
138
|
+
},
|
|
139
|
+
"saveItemRequest": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"required": ["contractVersion", "kind", "plan", "acceptedConsequences", "draft"],
|
|
143
|
+
"properties": {
|
|
144
|
+
"contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
|
|
145
|
+
"kind": { "const": "authoring-save-item-request" },
|
|
146
|
+
"plan": { "$ref": "#/$defs/planReference" },
|
|
147
|
+
"acceptedConsequences": { "$ref": "#/$defs/acceptedConsequences" },
|
|
148
|
+
"draft": { "$ref": "#/$defs/saveItemDraft" }
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"saveNewTypeVersionRequest": {
|
|
152
|
+
"type": "object",
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"required": ["contractVersion", "kind", "plan", "acceptedConsequences", "draft"],
|
|
155
|
+
"properties": {
|
|
156
|
+
"contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
|
|
157
|
+
"kind": { "const": "authoring-save-new-type-version-request" },
|
|
158
|
+
"plan": { "$ref": "#/$defs/planReference" },
|
|
159
|
+
"acceptedConsequences": { "$ref": "#/$defs/acceptedConsequences" },
|
|
160
|
+
"draft": { "$ref": "#/$defs/saveNewTypeVersionDraft" }
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"saveAsNewTypeRequest": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"additionalProperties": false,
|
|
166
|
+
"required": ["contractVersion", "kind", "plan", "acceptedConsequences", "draft"],
|
|
167
|
+
"properties": {
|
|
168
|
+
"contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
|
|
169
|
+
"kind": { "const": "authoring-save-as-new-type-request" },
|
|
170
|
+
"plan": { "$ref": "#/$defs/planReference" },
|
|
171
|
+
"acceptedConsequences": { "$ref": "#/$defs/acceptedConsequences" },
|
|
172
|
+
"draft": { "$ref": "#/$defs/saveAsNewTypeDraft" }
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"saveResult": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"additionalProperties": false,
|
|
178
|
+
"required": ["contractVersion", "kind", "outcome", "plan", "session"],
|
|
179
|
+
"properties": {
|
|
180
|
+
"contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
|
|
181
|
+
"kind": { "const": "authoring-save-result" },
|
|
182
|
+
"outcome": { "$ref": "authoring-target.schema.json#/$defs/saveOutcome" },
|
|
183
|
+
"plan": { "$ref": "#/$defs/planReference" },
|
|
184
|
+
"session": { "$ref": "authoring-session.schema.json#/$defs/snapshot" }
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/authoring-session.schema.json",
|
|
4
|
+
"title": "Studio coordinated contextual authoring session",
|
|
5
|
+
"description": "One resource-bound authoring snapshot with separately identified Model, Blueprint, and Entry documents and exact host-accepted coordinates.",
|
|
6
|
+
"$ref": "#/$defs/snapshot",
|
|
7
|
+
"$defs": {
|
|
8
|
+
"startSource": {
|
|
9
|
+
"oneOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["kind"],
|
|
14
|
+
"properties": { "kind": { "const": "blank" } }
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"required": ["kind", "type"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"kind": { "const": "from-type" },
|
|
22
|
+
"type": { "$ref": "reusable-content-type.schema.json#/$defs/reference" }
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["kind"],
|
|
29
|
+
"properties": { "kind": { "const": "existing" } }
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"startRequest": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["targetId", "resourceContext", "source"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"targetId": { "$ref": "common.schema.json#/$defs/qualifiedName" },
|
|
39
|
+
"resourceContext": { "$ref": "common.schema.json#/$defs/resourceContext" },
|
|
40
|
+
"source": { "$ref": "#/$defs/startSource" },
|
|
41
|
+
"presentation": {
|
|
42
|
+
"$ref": "authoring-target.schema.json#/$defs/presentationState"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"artifactCoordinates": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"required": ["model", "blueprint", "entry"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"type": { "$ref": "reusable-content-type.schema.json#/$defs/reference" },
|
|
52
|
+
"model": { "$ref": "common.schema.json#/$defs/lockedArtifactReference" },
|
|
53
|
+
"blueprint": { "$ref": "common.schema.json#/$defs/lockedArtifactReference" },
|
|
54
|
+
"entry": { "$ref": "common.schema.json#/$defs/resolvedEntryReference" }
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"artifactState": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": ["coordinates", "model", "blueprint", "entry", "dirty", "diagnostics"],
|
|
61
|
+
"properties": {
|
|
62
|
+
"coordinates": { "$ref": "#/$defs/artifactCoordinates" },
|
|
63
|
+
"model": { "$ref": "content-model.schema.json" },
|
|
64
|
+
"blueprint": { "$ref": "blueprint.schema.json" },
|
|
65
|
+
"entry": { "$ref": "entry.schema.json" },
|
|
66
|
+
"dirty": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"maxItems": 3,
|
|
69
|
+
"uniqueItems": true,
|
|
70
|
+
"items": { "enum": ["model", "blueprint", "entry"] }
|
|
71
|
+
},
|
|
72
|
+
"diagnostics": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"maxItems": 1000,
|
|
75
|
+
"items": { "$ref": "common.schema.json#/$defs/diagnostic" }
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"capabilities": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": ["modes", "presentationStates", "saveOutcomes"],
|
|
83
|
+
"properties": {
|
|
84
|
+
"modes": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"minItems": 1,
|
|
87
|
+
"maxItems": 3,
|
|
88
|
+
"uniqueItems": true,
|
|
89
|
+
"items": { "enum": ["model", "blueprint", "content"] }
|
|
90
|
+
},
|
|
91
|
+
"presentationStates": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"minItems": 1,
|
|
94
|
+
"maxItems": 4,
|
|
95
|
+
"uniqueItems": true,
|
|
96
|
+
"items": {
|
|
97
|
+
"$ref": "authoring-target.schema.json#/$defs/presentationState"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"saveOutcomes": {
|
|
101
|
+
"type": "array",
|
|
102
|
+
"minItems": 1,
|
|
103
|
+
"maxItems": 3,
|
|
104
|
+
"uniqueItems": true,
|
|
105
|
+
"items": { "$ref": "authoring-target.schema.json#/$defs/saveOutcome" }
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"presentation": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"required": ["current"],
|
|
113
|
+
"properties": {
|
|
114
|
+
"current": { "$ref": "authoring-target.schema.json#/$defs/presentationState" },
|
|
115
|
+
"returnContext": { "$ref": "common.schema.json#/$defs/returnContext" }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"snapshot": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"required": [
|
|
122
|
+
"contractVersion",
|
|
123
|
+
"kind",
|
|
124
|
+
"sessionId",
|
|
125
|
+
"sessionGeneration",
|
|
126
|
+
"target",
|
|
127
|
+
"resourceContext",
|
|
128
|
+
"start",
|
|
129
|
+
"state",
|
|
130
|
+
"capabilities",
|
|
131
|
+
"presentation",
|
|
132
|
+
"contributionGeneration"
|
|
133
|
+
],
|
|
134
|
+
"properties": {
|
|
135
|
+
"contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
|
|
136
|
+
"kind": { "const": "authoring-session" },
|
|
137
|
+
"sessionId": { "$ref": "common.schema.json#/$defs/stableId" },
|
|
138
|
+
"sessionGeneration": { "$ref": "common.schema.json#/$defs/revision" },
|
|
139
|
+
"target": { "$ref": "authoring-target.schema.json#/$defs/declaration" },
|
|
140
|
+
"resourceContext": { "$ref": "common.schema.json#/$defs/resourceContext" },
|
|
141
|
+
"start": { "$ref": "#/$defs/startSource" },
|
|
142
|
+
"type": { "$ref": "reusable-content-type.schema.json#/$defs/definition" },
|
|
143
|
+
"state": { "$ref": "#/$defs/artifactState" },
|
|
144
|
+
"capabilities": { "$ref": "#/$defs/capabilities" },
|
|
145
|
+
"presentation": { "$ref": "#/$defs/presentation" },
|
|
146
|
+
"contributionGeneration": { "$ref": "common.schema.json#/$defs/revision" },
|
|
147
|
+
"extensions": { "$ref": "common.schema.json#/$defs/extensions" }
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/authoring-target.schema.json",
|
|
4
|
+
"title": "Studio contextual authoring target declaration",
|
|
5
|
+
"description": "A bounded host-core or extension declaration that makes one class of host resources eligible for contextual Studio authoring. Discovery never grants authority.",
|
|
6
|
+
"$ref": "#/$defs/declaration",
|
|
7
|
+
"$defs": {
|
|
8
|
+
"presentationState": {
|
|
9
|
+
"enum": ["inline", "minimized", "maximized", "fullscreen"]
|
|
10
|
+
},
|
|
11
|
+
"saveOutcome": {
|
|
12
|
+
"enum": ["save-item", "save-new-type-version", "save-as-new-type"]
|
|
13
|
+
},
|
|
14
|
+
"startKind": {
|
|
15
|
+
"enum": ["blank", "from-type", "existing"]
|
|
16
|
+
},
|
|
17
|
+
"eligibility": {
|
|
18
|
+
"enum": ["create", "edit"]
|
|
19
|
+
},
|
|
20
|
+
"capabilityRequirement": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": ["id", "versions"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"id": { "$ref": "common.schema.json#/$defs/qualifiedName" },
|
|
26
|
+
"versions": { "$ref": "common.schema.json#/$defs/versionRange" }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"contributionDependency": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["kind", "id", "versions", "required"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"kind": {
|
|
35
|
+
"enum": [
|
|
36
|
+
"block-definition",
|
|
37
|
+
"pattern",
|
|
38
|
+
"field-adapter",
|
|
39
|
+
"inspector",
|
|
40
|
+
"design-vocabulary",
|
|
41
|
+
"migration"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"id": { "$ref": "common.schema.json#/$defs/qualifiedName" },
|
|
45
|
+
"versions": { "$ref": "common.schema.json#/$defs/versionRange" },
|
|
46
|
+
"required": { "type": "boolean" }
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"declaration": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": [
|
|
53
|
+
"contractVersion",
|
|
54
|
+
"kind",
|
|
55
|
+
"id",
|
|
56
|
+
"owner",
|
|
57
|
+
"label",
|
|
58
|
+
"surface",
|
|
59
|
+
"resourceTypes",
|
|
60
|
+
"eligibility",
|
|
61
|
+
"modes",
|
|
62
|
+
"startKinds",
|
|
63
|
+
"presentationStates",
|
|
64
|
+
"saveOutcomes",
|
|
65
|
+
"requiredCapabilities",
|
|
66
|
+
"contributionDependencies"
|
|
67
|
+
],
|
|
68
|
+
"properties": {
|
|
69
|
+
"contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
|
|
70
|
+
"kind": { "const": "authoring-target" },
|
|
71
|
+
"id": { "$ref": "common.schema.json#/$defs/qualifiedName" },
|
|
72
|
+
"owner": { "$ref": "common.schema.json#/$defs/ownerReference" },
|
|
73
|
+
"label": { "$ref": "common.schema.json#/$defs/messageReference" },
|
|
74
|
+
"surface": { "$ref": "common.schema.json#/$defs/qualifiedName" },
|
|
75
|
+
"resourceTypes": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"minItems": 1,
|
|
78
|
+
"maxItems": 100,
|
|
79
|
+
"uniqueItems": true,
|
|
80
|
+
"items": { "$ref": "common.schema.json#/$defs/qualifiedName" }
|
|
81
|
+
},
|
|
82
|
+
"eligibility": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"minItems": 1,
|
|
85
|
+
"maxItems": 2,
|
|
86
|
+
"uniqueItems": true,
|
|
87
|
+
"items": { "$ref": "#/$defs/eligibility" }
|
|
88
|
+
},
|
|
89
|
+
"modes": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"minItems": 1,
|
|
92
|
+
"maxItems": 3,
|
|
93
|
+
"uniqueItems": true,
|
|
94
|
+
"items": { "enum": ["model", "blueprint", "content"] }
|
|
95
|
+
},
|
|
96
|
+
"startKinds": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"minItems": 1,
|
|
99
|
+
"maxItems": 3,
|
|
100
|
+
"uniqueItems": true,
|
|
101
|
+
"items": { "$ref": "#/$defs/startKind" }
|
|
102
|
+
},
|
|
103
|
+
"presentationStates": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"minItems": 1,
|
|
106
|
+
"maxItems": 4,
|
|
107
|
+
"uniqueItems": true,
|
|
108
|
+
"items": { "$ref": "#/$defs/presentationState" }
|
|
109
|
+
},
|
|
110
|
+
"saveOutcomes": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"minItems": 1,
|
|
113
|
+
"maxItems": 3,
|
|
114
|
+
"uniqueItems": true,
|
|
115
|
+
"items": { "$ref": "#/$defs/saveOutcome" }
|
|
116
|
+
},
|
|
117
|
+
"requiredCapabilities": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"maxItems": 100,
|
|
120
|
+
"items": { "$ref": "#/$defs/capabilityRequirement" }
|
|
121
|
+
},
|
|
122
|
+
"contributionDependencies": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"maxItems": 500,
|
|
125
|
+
"items": { "$ref": "#/$defs/contributionDependency" }
|
|
126
|
+
},
|
|
127
|
+
"extensions": { "$ref": "common.schema.json#/$defs/extensions" }
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"resolveRequest": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"additionalProperties": false,
|
|
133
|
+
"required": ["targetId", "intent", "resourceContext"],
|
|
134
|
+
"properties": {
|
|
135
|
+
"targetId": { "$ref": "common.schema.json#/$defs/qualifiedName" },
|
|
136
|
+
"intent": { "$ref": "#/$defs/eligibility" },
|
|
137
|
+
"resourceContext": { "$ref": "common.schema.json#/$defs/resourceContext" },
|
|
138
|
+
"requestedPresentation": { "$ref": "#/$defs/presentationState" }
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"resolution": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"additionalProperties": false,
|
|
144
|
+
"required": ["target", "resourceContext", "availableStarts", "initialPresentation"],
|
|
145
|
+
"properties": {
|
|
146
|
+
"target": { "$ref": "#/$defs/declaration" },
|
|
147
|
+
"resourceContext": { "$ref": "common.schema.json#/$defs/resourceContext" },
|
|
148
|
+
"availableStarts": {
|
|
149
|
+
"type": "array",
|
|
150
|
+
"minItems": 1,
|
|
151
|
+
"maxItems": 3,
|
|
152
|
+
"uniqueItems": true,
|
|
153
|
+
"items": { "$ref": "#/$defs/startKind" }
|
|
154
|
+
},
|
|
155
|
+
"initialPresentation": { "$ref": "#/$defs/presentationState" },
|
|
156
|
+
"returnContext": { "$ref": "common.schema.json#/$defs/returnContext" }
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|