@kumwe/studio-protocol 0.1.0-alpha.4 → 0.1.0-alpha.6
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 +8 -2
- package/dist/guards.d.ts +4 -1
- package/dist/guards.d.ts.map +1 -1
- package/dist/guards.js +108 -22
- package/dist/guards.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +10 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +30 -0
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +81 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/package.json +1 -1
- package/schemas/canonical-vector.schema.json +65 -0
- package/schemas/corpus-manifest.schema.json +48 -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-sequence-vector.schema.json +342 -0
- package/schemas/host-vector.schema.json +197 -0
- package/schemas/inspector.schema.json +44 -0
- package/schemas/manifest.json +63 -3
- package/schemas/media-upload-grant.schema.json +48 -0
- package/schemas/preview-message.schema.json +419 -62
- package/schemas/preview-vector.schema.json +52 -0
- package/schemas/schema-profile-vector.schema.json +133 -0
- package/schemas/schema-profile.schema.json +47 -7
|
@@ -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
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
"file": "blueprint.schema.json",
|
|
14
14
|
"id": "https://schemas.kumwe.org/studio/v1/blueprint.schema.json"
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"digest": "sha256-WrqnuGMzdcSi5geh9LXT5uhL1AsimMgw1jhizsAKyBA=",
|
|
18
|
+
"file": "canonical-vector.schema.json",
|
|
19
|
+
"id": "https://schemas.kumwe.org/studio/v1/canonical-vector.schema.json"
|
|
20
|
+
},
|
|
16
21
|
{
|
|
17
22
|
"digest": "sha256-GEoWp72qtRDvyf9V7pyQzshlqDecOjtUxIYCY7TJ8SA=",
|
|
18
23
|
"file": "command-vector.schema.json",
|
|
@@ -33,6 +38,11 @@
|
|
|
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
|
+
},
|
|
36
46
|
{
|
|
37
47
|
"digest": "sha256-KoGp/qlqlsqabqtELbd/bdRHyM1wU8sRxyyLvOg/OFg=",
|
|
38
48
|
"file": "design-vocabulary.schema.json",
|
|
@@ -44,7 +54,12 @@
|
|
|
44
54
|
"id": "https://schemas.kumwe.org/studio/v1/entry.schema.json"
|
|
45
55
|
},
|
|
46
56
|
{
|
|
47
|
-
"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=",
|
|
48
63
|
"file": "host-capabilities.schema.json",
|
|
49
64
|
"id": "https://schemas.kumwe.org/studio/v1/host-capabilities.schema.json"
|
|
50
65
|
},
|
|
@@ -53,6 +68,36 @@
|
|
|
53
68
|
"file": "host-error.schema.json",
|
|
54
69
|
"id": "https://schemas.kumwe.org/studio/v1/host-error.schema.json"
|
|
55
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-pYvWThxhigEI7S1XeKyUkkN1KMZZPeRj/d5HV3ke+kQ=",
|
|
88
|
+
"file": "host-sequence-vector.schema.json",
|
|
89
|
+
"id": "https://schemas.kumwe.org/studio/v1/host-sequence-vector.schema.json"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"digest": "sha256-KETVqPMNQCSN8faoNW7fHuSWc6rT/Jkp4+Lh31gQuQM=",
|
|
93
|
+
"file": "host-vector.schema.json",
|
|
94
|
+
"id": "https://schemas.kumwe.org/studio/v1/host-vector.schema.json"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"digest": "sha256-gCIQyhwXC4DwTYwg2g+L05rrw2HIu0Ckni22Y7CDbEQ=",
|
|
98
|
+
"file": "inspector.schema.json",
|
|
99
|
+
"id": "https://schemas.kumwe.org/studio/v1/inspector.schema.json"
|
|
100
|
+
},
|
|
56
101
|
{
|
|
57
102
|
"digest": "sha256-tOiXLsL+sv+gnL3sUeAjA/+oumRb5AGSjkeC/1GI+/8=",
|
|
58
103
|
"file": "media-asset.schema.json",
|
|
@@ -63,6 +108,11 @@
|
|
|
63
108
|
"file": "media-reference.schema.json",
|
|
64
109
|
"id": "https://schemas.kumwe.org/studio/v1/media-reference.schema.json"
|
|
65
110
|
},
|
|
111
|
+
{
|
|
112
|
+
"digest": "sha256-sJCtOlIcYAvnMhMS2zPdFo8xJFzKjNlgJLz+HT7J2mg=",
|
|
113
|
+
"file": "media-upload-grant.schema.json",
|
|
114
|
+
"id": "https://schemas.kumwe.org/studio/v1/media-upload-grant.schema.json"
|
|
115
|
+
},
|
|
66
116
|
{
|
|
67
117
|
"digest": "sha256-46XVlSre/jC+J75IDUDtCBq8yawymUGuVmUWyhM0GV8=",
|
|
68
118
|
"file": "media-upload-session.schema.json",
|
|
@@ -89,10 +139,15 @@
|
|
|
89
139
|
"id": "https://schemas.kumwe.org/studio/v1/plugin-manifest.schema.json"
|
|
90
140
|
},
|
|
91
141
|
{
|
|
92
|
-
"digest": "sha256-
|
|
142
|
+
"digest": "sha256-7yQWc2+cZ+LoVmq2nZ5h4NsTO8tRjpODN7vIyJnbDKU=",
|
|
93
143
|
"file": "preview-message.schema.json",
|
|
94
144
|
"id": "https://schemas.kumwe.org/studio/v1/preview-message.schema.json"
|
|
95
145
|
},
|
|
146
|
+
{
|
|
147
|
+
"digest": "sha256-h4au/6iI71X7lArbz5moSOxk29g+I+W/1Ewkeh7MqoI=",
|
|
148
|
+
"file": "preview-vector.schema.json",
|
|
149
|
+
"id": "https://schemas.kumwe.org/studio/v1/preview-vector.schema.json"
|
|
150
|
+
},
|
|
96
151
|
{
|
|
97
152
|
"digest": "sha256-QURE0s0zSfvGXEvy3meE4rQeofecsUVZksqQKfKv4ys=",
|
|
98
153
|
"file": "provenance.schema.json",
|
|
@@ -109,7 +164,12 @@
|
|
|
109
164
|
"id": "https://schemas.kumwe.org/studio/v1/rich-text.schema.json"
|
|
110
165
|
},
|
|
111
166
|
{
|
|
112
|
-
"digest": "sha256-
|
|
167
|
+
"digest": "sha256-200BYrY2bR/TvZGo852CHKtkxFn+7Yf2ULiVirg1R/o=",
|
|
168
|
+
"file": "schema-profile-vector.schema.json",
|
|
169
|
+
"id": "https://schemas.kumwe.org/studio/v1/schema-profile-vector.schema.json"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"digest": "sha256-DbxBTu984mB1oo3O1kcDuqkxbmPJjtTXq65GptM8Xkw=",
|
|
113
173
|
"file": "schema-profile.schema.json",
|
|
114
174
|
"id": "https://schemas.kumwe.org/studio/v1/schema-profile.schema.json"
|
|
115
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
|
+
}
|