@kumwe/studio-protocol 0.1.0-alpha.3 → 0.1.0-alpha.5
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/dist/guards.d.ts.map +1 -1
- package/dist/guards.js +44 -0
- package/dist/guards.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +9 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +27 -0
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +122 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/schemas/blueprint.schema.json +20 -1
- package/schemas/canonical-vector.schema.json +65 -0
- package/schemas/command-vector.schema.json +4 -0
- package/schemas/corpus-manifest.schema.json +48 -0
- package/schemas/design-vocabulary.schema.json +91 -0
- package/schemas/field-adapter.schema.json +51 -0
- package/schemas/host-capabilities.schema.json +3 -2
- package/schemas/host-operations.schema.json +162 -0
- package/schemas/host-request.schema.json +71 -0
- package/schemas/host-result.schema.json +19 -0
- package/schemas/host-vector.schema.json +197 -0
- package/schemas/inspector.schema.json +44 -0
- package/schemas/manifest.json +61 -6
- package/schemas/media-upload-grant.schema.json +48 -0
- package/schemas/migration.schema.json +41 -0
- package/schemas/plugin-manifest.schema.json +7 -5
- package/schemas/preview-message.schema.json +385 -60
- package/schemas/unresolved-contribution.schema.json +2 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/host-request.schema.json",
|
|
4
|
+
"title": "Studio host port request",
|
|
5
|
+
"description": "The body of one host port operation call: the argument the operation takes and the envelope every operation carries. A host validates this shape before dispatching, so a malformed envelope is refused as invalid-request rather than partially honoured.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["context"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"arguments": {
|
|
11
|
+
"description": "The operation argument. Absent for operations that take only the envelope.",
|
|
12
|
+
"$ref": "common.schema.json#/$defs/jsonValue"
|
|
13
|
+
},
|
|
14
|
+
"context": { "$ref": "#/$defs/requestContext" }
|
|
15
|
+
},
|
|
16
|
+
"$defs": {
|
|
17
|
+
"requestContext": {
|
|
18
|
+
"description": "The request envelope. Actor identity and authorization evidence are attached by the trusted transport and never appear here: a Studio-supplied actor value is display context, never authentication.",
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": [
|
|
22
|
+
"operationId",
|
|
23
|
+
"protocolVersion",
|
|
24
|
+
"requestId",
|
|
25
|
+
"resourceContextKey",
|
|
26
|
+
"sessionGeneration"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"expectedRevision": {
|
|
30
|
+
"description": "The revision the caller believes is current. Required by every operation the registry marks expectsRevision; a mismatch conflicts and the host returns the safe current revision.",
|
|
31
|
+
"$ref": "common.schema.json#/$defs/revision"
|
|
32
|
+
},
|
|
33
|
+
"idempotencyKey": {
|
|
34
|
+
"description": "Present when a mutation may be retried. A host that has already accepted this key for this operation returns the original outcome rather than applying the mutation twice.",
|
|
35
|
+
"$ref": "common.schema.json#/$defs/stableId"
|
|
36
|
+
},
|
|
37
|
+
"locale": {
|
|
38
|
+
"description": "The locale for localized diagnostics. Absent means the session locale.",
|
|
39
|
+
"$ref": "common.schema.json#/$defs/locale"
|
|
40
|
+
},
|
|
41
|
+
"operationId": {
|
|
42
|
+
"description": "The capability identifier of the operation being invoked, closed by the operation registry.",
|
|
43
|
+
"$ref": "host-operations.schema.json#/$defs/operationCapability"
|
|
44
|
+
},
|
|
45
|
+
"protocolVersion": {
|
|
46
|
+
"description": "The negotiated wire version. A version the host does not support is refused as incompatible before any work.",
|
|
47
|
+
"$ref": "common.schema.json#/$defs/semanticVersion"
|
|
48
|
+
},
|
|
49
|
+
"requestId": {
|
|
50
|
+
"description": "Unique per call, used for correlation. It never identifies the actor.",
|
|
51
|
+
"$ref": "common.schema.json#/$defs/stableId"
|
|
52
|
+
},
|
|
53
|
+
"resourceContextKey": {
|
|
54
|
+
"description": "The opaque, non-secret, non-bearer context key. The host resolves and verifies the canonical context from this key rather than trusting client-supplied scope values; a stale, altered or cross-session key is rejected without disclosing private resource existence.",
|
|
55
|
+
"$ref": "common.schema.json#/$defs/stableId"
|
|
56
|
+
},
|
|
57
|
+
"sessionGeneration": {
|
|
58
|
+
"description": "The generation the session was opened at. A superseded generation is refused, because a permission or context change mints a new one.",
|
|
59
|
+
"$ref": "common.schema.json#/$defs/revision"
|
|
60
|
+
},
|
|
61
|
+
"traceContext": {
|
|
62
|
+
"description": "Trace correlation permitted by privacy policy. It carries no actor identity, credential or private resource value.",
|
|
63
|
+
"type": "object",
|
|
64
|
+
"maxProperties": 10,
|
|
65
|
+
"propertyNames": { "$ref": "common.schema.json#/$defs/localName" },
|
|
66
|
+
"additionalProperties": { "type": "string", "maxLength": 200 }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/host-result.schema.json",
|
|
4
|
+
"title": "Studio host port result",
|
|
5
|
+
"description": "The body a host returns when a port operation succeeds. A failure is never expressed here: it carries the canonical host error document instead, so a client distinguishes outcomes by shape rather than by guessing from a status code.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["value"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"revision": {
|
|
11
|
+
"description": "The accepted resource revision. Every operation the registry marks expectsRevision returns the revision it advanced to, so a client never re-reads to learn what it just wrote.",
|
|
12
|
+
"$ref": "common.schema.json#/$defs/revision"
|
|
13
|
+
},
|
|
14
|
+
"value": {
|
|
15
|
+
"description": "The normalized operation result. Operations that answer with nothing return null rather than omitting the member, so absence is explicit.",
|
|
16
|
+
"$ref": "common.schema.json#/$defs/jsonValue"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/host-vector.schema.json",
|
|
4
|
+
"title": "Studio canonical host conformance vector",
|
|
5
|
+
"description": "One canonical host-port exchange: the host state a conforming implementation is seeded with, the request envelope and argument Studio sends, and either the accepted result or the exact error category the closed taxonomy requires. Every precondition is a condition a real host can reproduce - a seeded revision, a withheld permission, an unknown identifier, an unsupported wire version - so the corpus is replayable by any implementation in any language without executing Studio code.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"contractVersion",
|
|
10
|
+
"kind",
|
|
11
|
+
"id",
|
|
12
|
+
"description",
|
|
13
|
+
"profile",
|
|
14
|
+
"port",
|
|
15
|
+
"operation",
|
|
16
|
+
"given",
|
|
17
|
+
"context",
|
|
18
|
+
"expect"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
|
|
22
|
+
"kind": { "const": "host-vector" },
|
|
23
|
+
"id": { "$ref": "common.schema.json#/$defs/stableId" },
|
|
24
|
+
"description": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"maxLength": 500
|
|
28
|
+
},
|
|
29
|
+
"profile": {
|
|
30
|
+
"description": "The conformance profile whose assertion set this vector belongs to.",
|
|
31
|
+
"$ref": "common.schema.json#/$defs/qualifiedName"
|
|
32
|
+
},
|
|
33
|
+
"port": {
|
|
34
|
+
"enum": [
|
|
35
|
+
"artifact",
|
|
36
|
+
"localization",
|
|
37
|
+
"media",
|
|
38
|
+
"model",
|
|
39
|
+
"permission",
|
|
40
|
+
"preview",
|
|
41
|
+
"recovery",
|
|
42
|
+
"resource",
|
|
43
|
+
"telemetry"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"operation": { "$ref": "common.schema.json#/$defs/localName" },
|
|
47
|
+
"given": {
|
|
48
|
+
"description": "The reproducible host state before the request. A conforming host seeds exactly this state; nothing here is a test double.",
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"required": ["artifacts", "permissions"],
|
|
52
|
+
"properties": {
|
|
53
|
+
"artifacts": {
|
|
54
|
+
"description": "Artifact identities the host already stores, with the revision each is stored at.",
|
|
55
|
+
"type": "array",
|
|
56
|
+
"maxItems": 20,
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": ["id", "kind", "revision"],
|
|
61
|
+
"properties": {
|
|
62
|
+
"id": { "$ref": "common.schema.json#/$defs/stableId" },
|
|
63
|
+
"kind": { "enum": ["blueprint", "content-model", "entry"] },
|
|
64
|
+
"revision": { "$ref": "common.schema.json#/$defs/revision" }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"permissions": {
|
|
69
|
+
"description": "Operations the acting identity is authorized for. An operation absent here is withheld.",
|
|
70
|
+
"type": "array",
|
|
71
|
+
"maxItems": 50,
|
|
72
|
+
"uniqueItems": true,
|
|
73
|
+
"items": { "$ref": "common.schema.json#/$defs/qualifiedName" }
|
|
74
|
+
},
|
|
75
|
+
"sessionGeneration": {
|
|
76
|
+
"description": "The host's live session generation. A request naming any other generation is stale.",
|
|
77
|
+
"$ref": "common.schema.json#/$defs/revision"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"context": {
|
|
82
|
+
"description": "The request envelope every port operation carries.",
|
|
83
|
+
"type": "object",
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"required": [
|
|
86
|
+
"operationId",
|
|
87
|
+
"protocolVersion",
|
|
88
|
+
"requestId",
|
|
89
|
+
"resourceContextKey",
|
|
90
|
+
"sessionGeneration"
|
|
91
|
+
],
|
|
92
|
+
"properties": {
|
|
93
|
+
"expectedRevision": { "$ref": "common.schema.json#/$defs/revision" },
|
|
94
|
+
"idempotencyKey": { "$ref": "common.schema.json#/$defs/stableId" },
|
|
95
|
+
"locale": { "$ref": "common.schema.json#/$defs/locale" },
|
|
96
|
+
"operationId": { "$ref": "common.schema.json#/$defs/qualifiedName" },
|
|
97
|
+
"protocolVersion": {
|
|
98
|
+
"description": "Deliberately looser than the negotiated wire version so a vector can carry a version the host must refuse.",
|
|
99
|
+
"type": "string",
|
|
100
|
+
"maxLength": 100
|
|
101
|
+
},
|
|
102
|
+
"requestId": {
|
|
103
|
+
"description": "Deliberately looser than the canonical stable identifier so a vector can carry a structurally invalid envelope the host must refuse.",
|
|
104
|
+
"type": "string",
|
|
105
|
+
"maxLength": 240
|
|
106
|
+
},
|
|
107
|
+
"resourceContextKey": { "$ref": "common.schema.json#/$defs/stableId" },
|
|
108
|
+
"sessionGeneration": { "$ref": "common.schema.json#/$defs/revision" }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"argument": {
|
|
112
|
+
"description": "The port argument, shaped by the operation. Absent for operations that take only the envelope.",
|
|
113
|
+
"$ref": "common.schema.json#/$defs/jsonValue"
|
|
114
|
+
},
|
|
115
|
+
"expect": {
|
|
116
|
+
"oneOf": [
|
|
117
|
+
{
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": ["outcome"],
|
|
121
|
+
"properties": {
|
|
122
|
+
"outcome": { "const": "result" },
|
|
123
|
+
"revision": {
|
|
124
|
+
"description": "The accepted revision the result carries. A mutation MUST advance it beyond the stored revision.",
|
|
125
|
+
"$ref": "common.schema.json#/$defs/revision"
|
|
126
|
+
},
|
|
127
|
+
"revisionAdvances": {
|
|
128
|
+
"description": "True when the operation mutates and the returned revision must differ from the stored one.",
|
|
129
|
+
"type": "boolean"
|
|
130
|
+
},
|
|
131
|
+
"value": {
|
|
132
|
+
"description": "The value shape the result carries.",
|
|
133
|
+
"enum": [
|
|
134
|
+
"artifact",
|
|
135
|
+
"artifact-references",
|
|
136
|
+
"media-asset",
|
|
137
|
+
"media-page",
|
|
138
|
+
"message-bundle",
|
|
139
|
+
"null",
|
|
140
|
+
"permission-explanation",
|
|
141
|
+
"permission-snapshot",
|
|
142
|
+
"recovery-envelope",
|
|
143
|
+
"rendered",
|
|
144
|
+
"search-page",
|
|
145
|
+
"upload-accepted",
|
|
146
|
+
"upload-grant"
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "object",
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"required": ["outcome", "category"],
|
|
155
|
+
"properties": {
|
|
156
|
+
"outcome": { "const": "error" },
|
|
157
|
+
"category": {
|
|
158
|
+
"enum": [
|
|
159
|
+
"cancelled",
|
|
160
|
+
"conflict",
|
|
161
|
+
"forbidden",
|
|
162
|
+
"incompatible",
|
|
163
|
+
"internal",
|
|
164
|
+
"invalid-request",
|
|
165
|
+
"limit-exceeded",
|
|
166
|
+
"not-found",
|
|
167
|
+
"rate-limited",
|
|
168
|
+
"unauthenticated",
|
|
169
|
+
"unavailable",
|
|
170
|
+
"validation-failed"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"retryable": {
|
|
174
|
+
"description": "The retry classification the error MUST carry.",
|
|
175
|
+
"type": "boolean"
|
|
176
|
+
},
|
|
177
|
+
"revision": {
|
|
178
|
+
"description": "The safe current revision a conflict MUST return so the client can resolve without a second read.",
|
|
179
|
+
"$ref": "common.schema.json#/$defs/revision"
|
|
180
|
+
},
|
|
181
|
+
"messageMustNotContain": {
|
|
182
|
+
"description": "Values the user-facing message MUST NOT echo, so a rejection never discloses private resource existence or request internals.",
|
|
183
|
+
"type": "array",
|
|
184
|
+
"minItems": 1,
|
|
185
|
+
"maxItems": 10,
|
|
186
|
+
"items": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"minLength": 1,
|
|
189
|
+
"maxLength": 200
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/inspector.schema.json",
|
|
4
|
+
"title": "Studio inspector contribution",
|
|
5
|
+
"description": "The declarative payload behind an `inspector` plugin contribution: a panel an extension offers for inspecting or configuring the block types it declares. The declaration is inert data; whether its executable half runs, and in which realm, stays a host decision recorded in the plugin manifest.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"contractVersion",
|
|
10
|
+
"kind",
|
|
11
|
+
"id",
|
|
12
|
+
"version",
|
|
13
|
+
"owner",
|
|
14
|
+
"label",
|
|
15
|
+
"blockTypes",
|
|
16
|
+
"placement"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
|
|
20
|
+
"kind": { "const": "inspector" },
|
|
21
|
+
"id": { "$ref": "common.schema.json#/$defs/qualifiedName" },
|
|
22
|
+
"version": { "$ref": "common.schema.json#/$defs/semanticVersion" },
|
|
23
|
+
"owner": { "$ref": "common.schema.json#/$defs/ownerReference" },
|
|
24
|
+
"label": { "$ref": "common.schema.json#/$defs/messageReference" },
|
|
25
|
+
"description": { "$ref": "common.schema.json#/$defs/messageReference" },
|
|
26
|
+
"blockTypes": {
|
|
27
|
+
"description": "The block types this inspector applies to. It never sees a node of any other type.",
|
|
28
|
+
"type": "array",
|
|
29
|
+
"minItems": 1,
|
|
30
|
+
"maxItems": 500,
|
|
31
|
+
"uniqueItems": true,
|
|
32
|
+
"items": { "$ref": "common.schema.json#/$defs/qualifiedName" }
|
|
33
|
+
},
|
|
34
|
+
"placement": {
|
|
35
|
+
"description": "Whether the panel augments the built-in inspector or replaces it for the declared block types. Replacement never removes the host's own policy and accessibility surfaces.",
|
|
36
|
+
"enum": ["augment", "replace"]
|
|
37
|
+
},
|
|
38
|
+
"requiredCapability": {
|
|
39
|
+
"description": "The capability the executable half requires. A declaration without one is inspectable but never executed.",
|
|
40
|
+
"$ref": "common.schema.json#/$defs/qualifiedName"
|
|
41
|
+
},
|
|
42
|
+
"extensions": { "$ref": "common.schema.json#/$defs/extensions" }
|
|
43
|
+
}
|
|
44
|
+
}
|
package/schemas/manifest.json
CHANGED
|
@@ -9,12 +9,17 @@
|
|
|
9
9
|
"id": "https://schemas.kumwe.org/studio/v1/block-definition.schema.json"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
|
-
"digest": "sha256-
|
|
12
|
+
"digest": "sha256-MsFQU2lUG7oNfV9WyzVraH3uwd/+AHpdlsh9inHgBu0=",
|
|
13
13
|
"file": "blueprint.schema.json",
|
|
14
14
|
"id": "https://schemas.kumwe.org/studio/v1/blueprint.schema.json"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"digest": "sha256-
|
|
17
|
+
"digest": "sha256-WrqnuGMzdcSi5geh9LXT5uhL1AsimMgw1jhizsAKyBA=",
|
|
18
|
+
"file": "canonical-vector.schema.json",
|
|
19
|
+
"id": "https://schemas.kumwe.org/studio/v1/canonical-vector.schema.json"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"digest": "sha256-GEoWp72qtRDvyf9V7pyQzshlqDecOjtUxIYCY7TJ8SA=",
|
|
18
23
|
"file": "command-vector.schema.json",
|
|
19
24
|
"id": "https://schemas.kumwe.org/studio/v1/command-vector.schema.json"
|
|
20
25
|
},
|
|
@@ -33,13 +38,28 @@
|
|
|
33
38
|
"file": "content-model.schema.json",
|
|
34
39
|
"id": "https://schemas.kumwe.org/studio/v1/content-model.schema.json"
|
|
35
40
|
},
|
|
41
|
+
{
|
|
42
|
+
"digest": "sha256-DuM7fZghcN9YsMdEHf5Eap7jijiPBLl4B68OFMFIJZo=",
|
|
43
|
+
"file": "corpus-manifest.schema.json",
|
|
44
|
+
"id": "https://schemas.kumwe.org/studio/v1/corpus-manifest.schema.json"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"digest": "sha256-KoGp/qlqlsqabqtELbd/bdRHyM1wU8sRxyyLvOg/OFg=",
|
|
48
|
+
"file": "design-vocabulary.schema.json",
|
|
49
|
+
"id": "https://schemas.kumwe.org/studio/v1/design-vocabulary.schema.json"
|
|
50
|
+
},
|
|
36
51
|
{
|
|
37
52
|
"digest": "sha256-BQFVJmT3bwZOfCmXuQrZnYYxjB0FAUV7j1XrdZdIkdw=",
|
|
38
53
|
"file": "entry.schema.json",
|
|
39
54
|
"id": "https://schemas.kumwe.org/studio/v1/entry.schema.json"
|
|
40
55
|
},
|
|
41
56
|
{
|
|
42
|
-
"digest": "sha256-
|
|
57
|
+
"digest": "sha256-pmSxOOQO2G0OAxej15ISDEd9tS16w3XwZXyBxXyalzk=",
|
|
58
|
+
"file": "field-adapter.schema.json",
|
|
59
|
+
"id": "https://schemas.kumwe.org/studio/v1/field-adapter.schema.json"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"digest": "sha256-dcyPPmPmKLyU3jwajgfQd17xBtrI8sL9nhweAF3LsnY=",
|
|
43
63
|
"file": "host-capabilities.schema.json",
|
|
44
64
|
"id": "https://schemas.kumwe.org/studio/v1/host-capabilities.schema.json"
|
|
45
65
|
},
|
|
@@ -48,6 +68,31 @@
|
|
|
48
68
|
"file": "host-error.schema.json",
|
|
49
69
|
"id": "https://schemas.kumwe.org/studio/v1/host-error.schema.json"
|
|
50
70
|
},
|
|
71
|
+
{
|
|
72
|
+
"digest": "sha256-dKcbTVV2gn4IWAAH1RMpK5Ve12V+RswsDuhlrC1Ohm4=",
|
|
73
|
+
"file": "host-operations.schema.json",
|
|
74
|
+
"id": "https://schemas.kumwe.org/studio/v1/host-operations.schema.json"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"digest": "sha256-pOVrjkIA0RiBKF2aKfmOnmE1DlAFYgg+QBuiH+L5hIk=",
|
|
78
|
+
"file": "host-request.schema.json",
|
|
79
|
+
"id": "https://schemas.kumwe.org/studio/v1/host-request.schema.json"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"digest": "sha256-yNKi6fS95rlh9UubTz2FA+neXY0KDNYKs3NX0vGY+c0=",
|
|
83
|
+
"file": "host-result.schema.json",
|
|
84
|
+
"id": "https://schemas.kumwe.org/studio/v1/host-result.schema.json"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"digest": "sha256-KETVqPMNQCSN8faoNW7fHuSWc6rT/Jkp4+Lh31gQuQM=",
|
|
88
|
+
"file": "host-vector.schema.json",
|
|
89
|
+
"id": "https://schemas.kumwe.org/studio/v1/host-vector.schema.json"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"digest": "sha256-gCIQyhwXC4DwTYwg2g+L05rrw2HIu0Ckni22Y7CDbEQ=",
|
|
93
|
+
"file": "inspector.schema.json",
|
|
94
|
+
"id": "https://schemas.kumwe.org/studio/v1/inspector.schema.json"
|
|
95
|
+
},
|
|
51
96
|
{
|
|
52
97
|
"digest": "sha256-tOiXLsL+sv+gnL3sUeAjA/+oumRb5AGSjkeC/1GI+/8=",
|
|
53
98
|
"file": "media-asset.schema.json",
|
|
@@ -58,6 +103,11 @@
|
|
|
58
103
|
"file": "media-reference.schema.json",
|
|
59
104
|
"id": "https://schemas.kumwe.org/studio/v1/media-reference.schema.json"
|
|
60
105
|
},
|
|
106
|
+
{
|
|
107
|
+
"digest": "sha256-sJCtOlIcYAvnMhMS2zPdFo8xJFzKjNlgJLz+HT7J2mg=",
|
|
108
|
+
"file": "media-upload-grant.schema.json",
|
|
109
|
+
"id": "https://schemas.kumwe.org/studio/v1/media-upload-grant.schema.json"
|
|
110
|
+
},
|
|
61
111
|
{
|
|
62
112
|
"digest": "sha256-46XVlSre/jC+J75IDUDtCBq8yawymUGuVmUWyhM0GV8=",
|
|
63
113
|
"file": "media-upload-session.schema.json",
|
|
@@ -68,18 +118,23 @@
|
|
|
68
118
|
"file": "media-vector.schema.json",
|
|
69
119
|
"id": "https://schemas.kumwe.org/studio/v1/media-vector.schema.json"
|
|
70
120
|
},
|
|
121
|
+
{
|
|
122
|
+
"digest": "sha256-hlwTWpwFCpBpyHSkB+UhCPV2ks1Pu3UutuuT34frYMI=",
|
|
123
|
+
"file": "migration.schema.json",
|
|
124
|
+
"id": "https://schemas.kumwe.org/studio/v1/migration.schema.json"
|
|
125
|
+
},
|
|
71
126
|
{
|
|
72
127
|
"digest": "sha256-ys69OuX6KO1efqLjTmOV3K0gQC2GZiAXDXkH06Ddh88=",
|
|
73
128
|
"file": "pattern.schema.json",
|
|
74
129
|
"id": "https://schemas.kumwe.org/studio/v1/pattern.schema.json"
|
|
75
130
|
},
|
|
76
131
|
{
|
|
77
|
-
"digest": "sha256-
|
|
132
|
+
"digest": "sha256-WWBFJmWz4p0F1PhOwup1rgBJuAkelWZz83SJX7mshGE=",
|
|
78
133
|
"file": "plugin-manifest.schema.json",
|
|
79
134
|
"id": "https://schemas.kumwe.org/studio/v1/plugin-manifest.schema.json"
|
|
80
135
|
},
|
|
81
136
|
{
|
|
82
|
-
"digest": "sha256-
|
|
137
|
+
"digest": "sha256-wg6mVwubXmfpzfOZzlSamDJtyhdpD9/7vtqjb22SYB8=",
|
|
83
138
|
"file": "preview-message.schema.json",
|
|
84
139
|
"id": "https://schemas.kumwe.org/studio/v1/preview-message.schema.json"
|
|
85
140
|
},
|
|
@@ -114,7 +169,7 @@
|
|
|
114
169
|
"id": "https://schemas.kumwe.org/studio/v1/theme.schema.json"
|
|
115
170
|
},
|
|
116
171
|
{
|
|
117
|
-
"digest": "sha256
|
|
172
|
+
"digest": "sha256-ne4c7LoBJl5IZVIAbMJF3Z0ankI4CqUQlpNpxrGXEcE=",
|
|
118
173
|
"file": "unresolved-contribution.schema.json",
|
|
119
174
|
"id": "https://schemas.kumwe.org/studio/v1/unresolved-contribution.schema.json"
|
|
120
175
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/media-upload-grant.schema.json",
|
|
4
|
+
"title": "Studio media upload grant",
|
|
5
|
+
"description": "The host's authorization to transfer one upload. Bytes never cross the JSON port: the host issues a short-lived, single-purpose destination it controls and the client transfers directly to it, so custody, quotas and storage placement stay host-owned and a large body never traverses the port transport. A grant authorizes exactly the declared upload and expires; it is not a credential the client may reuse, cache, or apply to another upload.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["expiresAt", "method", "plan", "uploadId", "url"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"expiresAt": {
|
|
11
|
+
"description": "When the grant stops being honoured. A client that has not completed by then re-authorizes rather than retrying against a dead destination.",
|
|
12
|
+
"$ref": "common.schema.json#/$defs/rfc3339Instant"
|
|
13
|
+
},
|
|
14
|
+
"headers": {
|
|
15
|
+
"description": "Headers the client must send verbatim on the transfer. They carry no user credential and are never logged by the client.",
|
|
16
|
+
"type": "object",
|
|
17
|
+
"maxProperties": 20,
|
|
18
|
+
"propertyNames": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^[A-Za-z][A-Za-z0-9-]*(?![\\s\\S])",
|
|
21
|
+
"maxLength": 100
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": { "type": "string", "maxLength": 2000 }
|
|
24
|
+
},
|
|
25
|
+
"method": { "enum": ["POST", "PUT"] },
|
|
26
|
+
"plan": {
|
|
27
|
+
"description": "The bounded transfer plan the host derived from its policy. The client transfers within it and never negotiates a larger bound.",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"required": ["maximumBytes", "resumable"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"chunkBytes": { "type": "integer", "minimum": 1024, "maximum": 1073741824 },
|
|
33
|
+
"maximumBytes": { "type": "integer", "minimum": 1, "maximum": 1099511627776 },
|
|
34
|
+
"resumable": { "type": "boolean" }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"uploadId": {
|
|
38
|
+
"description": "The opaque host-issued upload identity used to complete or abort the transfer.",
|
|
39
|
+
"$ref": "common.schema.json#/$defs/stableId"
|
|
40
|
+
},
|
|
41
|
+
"url": {
|
|
42
|
+
"description": "The absolute https destination the host controls. It is never an author-supplied value and never a Studio-derived address.",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"pattern": "^https://",
|
|
45
|
+
"maxLength": 2000
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.kumwe.org/studio/v1/migration.schema.json",
|
|
4
|
+
"title": "Studio migration declaration",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"contractVersion",
|
|
9
|
+
"kind",
|
|
10
|
+
"id",
|
|
11
|
+
"version",
|
|
12
|
+
"owner",
|
|
13
|
+
"label",
|
|
14
|
+
"artifactKinds",
|
|
15
|
+
"sourceVersions",
|
|
16
|
+
"targetVersion",
|
|
17
|
+
"lossClassification"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"contractVersion": { "$ref": "common.schema.json#/$defs/contractVersion" },
|
|
21
|
+
"kind": { "const": "migration" },
|
|
22
|
+
"id": { "$ref": "common.schema.json#/$defs/qualifiedName" },
|
|
23
|
+
"version": { "$ref": "common.schema.json#/$defs/semanticVersion" },
|
|
24
|
+
"owner": { "$ref": "common.schema.json#/$defs/ownerReference" },
|
|
25
|
+
"label": { "$ref": "common.schema.json#/$defs/messageReference" },
|
|
26
|
+
"description": { "$ref": "common.schema.json#/$defs/messageReference" },
|
|
27
|
+
"artifactKinds": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"minItems": 1,
|
|
30
|
+
"maxItems": 5,
|
|
31
|
+
"uniqueItems": true,
|
|
32
|
+
"items": {
|
|
33
|
+
"enum": ["block-definition", "blueprint", "content-model", "entry", "theme"]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"sourceVersions": { "$ref": "common.schema.json#/$defs/versionRange" },
|
|
37
|
+
"targetVersion": { "$ref": "common.schema.json#/$defs/semanticVersion" },
|
|
38
|
+
"lossClassification": { "enum": ["lossless", "lossy"] },
|
|
39
|
+
"extensions": { "$ref": "common.schema.json#/$defs/extensions" }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -53,15 +53,17 @@
|
|
|
53
53
|
"kind": {
|
|
54
54
|
"enum": [
|
|
55
55
|
"block",
|
|
56
|
-
"pattern",
|
|
57
|
-
"panel",
|
|
58
|
-
"inspector",
|
|
59
56
|
"command",
|
|
57
|
+
"design-vocabulary",
|
|
60
58
|
"field-adapter",
|
|
61
|
-
"
|
|
59
|
+
"inspector",
|
|
62
60
|
"locale",
|
|
61
|
+
"migration",
|
|
62
|
+
"panel",
|
|
63
|
+
"pattern",
|
|
63
64
|
"renderer-capability",
|
|
64
|
-
"test-fixture"
|
|
65
|
+
"test-fixture",
|
|
66
|
+
"transform"
|
|
65
67
|
]
|
|
66
68
|
},
|
|
67
69
|
"id": { "$ref": "common.schema.json#/$defs/qualifiedName" },
|