capture-runtime-client 0.4.0__py3-none-any.whl
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.
- capture_runtime_client/__init__.py +41 -0
- capture_runtime_client/client.py +852 -0
- capture_runtime_client/codec.py +124 -0
- capture_runtime_client/contracts.py +272 -0
- capture_runtime_client/errors.py +170 -0
- capture_runtime_client/private/__init__.py +1 -0
- capture_runtime_client/private/assets/__init__.py +1 -0
- capture_runtime_client/private/assets/contract-set.json +1 -0
- capture_runtime_client/private/assets/contract-set.sha256 +1 -0
- capture_runtime_client/private/generated_models.py +627 -0
- capture_runtime_client/private/schemas/__init__.py +1 -0
- capture_runtime_client/private/schemas/capture-block.schema.json +151 -0
- capture_runtime_client/private/schemas/capture-document.schema.json +356 -0
- capture_runtime_client/private/schemas/capture-engine.schema.json +40 -0
- capture_runtime_client/private/schemas/capture-event-v2.schema.json +301 -0
- capture_runtime_client/private/schemas/capture-failure-v2.schema.json +40 -0
- capture_runtime_client/private/schemas/capture-operation-v2.schema.json +207 -0
- capture_runtime_client/private/schemas/capture-source.schema.json +34 -0
- capture_runtime_client/private/schemas/error-body-v2.schema.json +34 -0
- capture_runtime_client/private/schemas/error-envelope-v2.schema.json +49 -0
- capture_runtime_client/private/schemas/finalize-ingestion-v2.schema.json +27 -0
- capture_runtime_client/private/schemas/ingestion-v2.schema.json +127 -0
- capture_runtime_client/private/schemas/open-ingestion-v2.schema.json +79 -0
- capture_runtime_client/private/schemas/page-locator.schema.json +49 -0
- capture_runtime_client/private/schemas/partial-capture-v2.schema.json +267 -0
- capture_runtime_client/private/schemas/raw-capture-segment.schema.json +125 -0
- capture_runtime_client/private/schemas/raw-capture.schema.json +260 -0
- capture_runtime_client/private/schemas/report-structuring-failure-v2.schema.json +28 -0
- capture_runtime_client/private/schemas/runtime-artifact-descriptor-v2.schema.json +34 -0
- capture_runtime_client/private/schemas/runtime-installation-v2.schema.json +126 -0
- capture_runtime_client/private/schemas/runtime-installations-v2.schema.json +143 -0
- capture_runtime_client/private/schemas/runtime-model-installation-v2.schema.json +121 -0
- capture_runtime_client/private/schemas/runtime-model-installations-v2.schema.json +138 -0
- capture_runtime_client/private/schemas/runtime-model-option-v2.schema.json +80 -0
- capture_runtime_client/private/schemas/runtime-model-options-v2.schema.json +103 -0
- capture_runtime_client/private/schemas/runtime-ready.schema.json +88 -0
- capture_runtime_client/private/schemas/runtime-requirement-v2.schema.json +120 -0
- capture_runtime_client/private/schemas/runtime-requirements-v2.schema.json +137 -0
- capture_runtime_client/private/schemas/runtime-streaming-capabilities-v2.schema.json +64 -0
- capture_runtime_client/private/schemas/start-capture-v2.schema.json +59 -0
- capture_runtime_client/private/schemas/start-runtime-installation-v2.schema.json +26 -0
- capture_runtime_client/private/schemas/start-runtime-model-installation-v2.schema.json +21 -0
- capture_runtime_client/private/schemas/time-locator.schema.json +27 -0
- capture_runtime_client/py.typed +1 -0
- capture_runtime_client/transport.py +158 -0
- capture_runtime_client-0.4.0.dist-info/METADATA +18 -0
- capture_runtime_client-0.4.0.dist-info/RECORD +48 -0
- capture_runtime_client-0.4.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$defs": {
|
|
3
|
+
"CaptureFailureV2": {
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"code": {
|
|
7
|
+
"pattern": "^[a-z][a-z0-9_]{1,63}$",
|
|
8
|
+
"title": "Code",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"message": {
|
|
12
|
+
"maxLength": 500,
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"title": "Message",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"stage": {
|
|
18
|
+
"anyOf": [
|
|
19
|
+
{
|
|
20
|
+
"minLength": 1,
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "null"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"default": null,
|
|
28
|
+
"title": "Stage"
|
|
29
|
+
},
|
|
30
|
+
"retryable": {
|
|
31
|
+
"default": false,
|
|
32
|
+
"title": "Retryable",
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"code",
|
|
38
|
+
"message"
|
|
39
|
+
],
|
|
40
|
+
"title": "CaptureFailureV2",
|
|
41
|
+
"type": "object"
|
|
42
|
+
},
|
|
43
|
+
"CaptureSourceKind": {
|
|
44
|
+
"enum": [
|
|
45
|
+
"pdf",
|
|
46
|
+
"image",
|
|
47
|
+
"audio"
|
|
48
|
+
],
|
|
49
|
+
"title": "CaptureSourceKind",
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"PageLocator": {
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"properties": {
|
|
55
|
+
"kind": {
|
|
56
|
+
"const": "page",
|
|
57
|
+
"default": "page",
|
|
58
|
+
"title": "Kind",
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"page": {
|
|
62
|
+
"minimum": 1,
|
|
63
|
+
"title": "Page",
|
|
64
|
+
"type": "integer"
|
|
65
|
+
},
|
|
66
|
+
"boundingBox": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"maxItems": 4,
|
|
70
|
+
"minItems": 4,
|
|
71
|
+
"prefixItems": [
|
|
72
|
+
{
|
|
73
|
+
"type": "number"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "number"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "number"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "number"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"type": "array"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "null"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"default": null,
|
|
92
|
+
"title": "Boundingbox"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": [
|
|
96
|
+
"page"
|
|
97
|
+
],
|
|
98
|
+
"title": "PageLocator",
|
|
99
|
+
"type": "object"
|
|
100
|
+
},
|
|
101
|
+
"RawCaptureSegment": {
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"properties": {
|
|
104
|
+
"segmentId": {
|
|
105
|
+
"minLength": 1,
|
|
106
|
+
"title": "Segmentid",
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"order": {
|
|
110
|
+
"minimum": 0,
|
|
111
|
+
"title": "Order",
|
|
112
|
+
"type": "integer"
|
|
113
|
+
},
|
|
114
|
+
"locator": {
|
|
115
|
+
"discriminator": {
|
|
116
|
+
"mapping": {
|
|
117
|
+
"page": "#/$defs/PageLocator",
|
|
118
|
+
"time": "#/$defs/TimeLocator"
|
|
119
|
+
},
|
|
120
|
+
"propertyName": "kind"
|
|
121
|
+
},
|
|
122
|
+
"oneOf": [
|
|
123
|
+
{
|
|
124
|
+
"$ref": "#/$defs/PageLocator"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"$ref": "#/$defs/TimeLocator"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"title": "Locator"
|
|
131
|
+
},
|
|
132
|
+
"text": {
|
|
133
|
+
"maxLength": 2000000,
|
|
134
|
+
"minLength": 1,
|
|
135
|
+
"title": "Text",
|
|
136
|
+
"type": "string"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"required": [
|
|
140
|
+
"segmentId",
|
|
141
|
+
"order",
|
|
142
|
+
"locator",
|
|
143
|
+
"text"
|
|
144
|
+
],
|
|
145
|
+
"title": "RawCaptureSegment",
|
|
146
|
+
"type": "object"
|
|
147
|
+
},
|
|
148
|
+
"StreamingEventType": {
|
|
149
|
+
"enum": [
|
|
150
|
+
"accepted",
|
|
151
|
+
"input_checkpoint",
|
|
152
|
+
"heartbeat",
|
|
153
|
+
"segment",
|
|
154
|
+
"checkpoint",
|
|
155
|
+
"resync_required",
|
|
156
|
+
"completed",
|
|
157
|
+
"failed",
|
|
158
|
+
"cancelled"
|
|
159
|
+
],
|
|
160
|
+
"title": "StreamingEventType",
|
|
161
|
+
"type": "string"
|
|
162
|
+
},
|
|
163
|
+
"TimeLocator": {
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"properties": {
|
|
166
|
+
"kind": {
|
|
167
|
+
"const": "time",
|
|
168
|
+
"default": "time",
|
|
169
|
+
"title": "Kind",
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"startMs": {
|
|
173
|
+
"minimum": 0,
|
|
174
|
+
"title": "Startms",
|
|
175
|
+
"type": "integer"
|
|
176
|
+
},
|
|
177
|
+
"endMs": {
|
|
178
|
+
"exclusiveMinimum": 0,
|
|
179
|
+
"title": "Endms",
|
|
180
|
+
"type": "integer"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"required": [
|
|
184
|
+
"startMs",
|
|
185
|
+
"endMs"
|
|
186
|
+
],
|
|
187
|
+
"title": "TimeLocator",
|
|
188
|
+
"type": "object"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"additionalProperties": false,
|
|
192
|
+
"properties": {
|
|
193
|
+
"protocolVersion": {
|
|
194
|
+
"const": "2",
|
|
195
|
+
"default": "2",
|
|
196
|
+
"title": "Protocolversion",
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"eventId": {
|
|
200
|
+
"minLength": 1,
|
|
201
|
+
"title": "Eventid",
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"sequence": {
|
|
205
|
+
"minimum": 0,
|
|
206
|
+
"title": "Sequence",
|
|
207
|
+
"type": "integer"
|
|
208
|
+
},
|
|
209
|
+
"captureId": {
|
|
210
|
+
"minLength": 1,
|
|
211
|
+
"title": "Captureid",
|
|
212
|
+
"type": "string"
|
|
213
|
+
},
|
|
214
|
+
"kind": {
|
|
215
|
+
"$ref": "#/$defs/CaptureSourceKind",
|
|
216
|
+
"default": "audio"
|
|
217
|
+
},
|
|
218
|
+
"eventType": {
|
|
219
|
+
"$ref": "#/$defs/StreamingEventType"
|
|
220
|
+
},
|
|
221
|
+
"stage": {
|
|
222
|
+
"minLength": 1,
|
|
223
|
+
"title": "Stage",
|
|
224
|
+
"type": "string"
|
|
225
|
+
},
|
|
226
|
+
"progress": {
|
|
227
|
+
"anyOf": [
|
|
228
|
+
{
|
|
229
|
+
"maximum": 1,
|
|
230
|
+
"minimum": 0,
|
|
231
|
+
"type": "number"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"type": "null"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"default": null,
|
|
238
|
+
"title": "Progress"
|
|
239
|
+
},
|
|
240
|
+
"partialRevision": {
|
|
241
|
+
"anyOf": [
|
|
242
|
+
{
|
|
243
|
+
"minimum": 0,
|
|
244
|
+
"type": "integer"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"type": "null"
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"default": null,
|
|
251
|
+
"title": "Partialrevision"
|
|
252
|
+
},
|
|
253
|
+
"coveredUntilMs": {
|
|
254
|
+
"anyOf": [
|
|
255
|
+
{
|
|
256
|
+
"minimum": 0,
|
|
257
|
+
"type": "integer"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "null"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
"default": null,
|
|
264
|
+
"title": "Covereduntilms"
|
|
265
|
+
},
|
|
266
|
+
"segments": {
|
|
267
|
+
"items": {
|
|
268
|
+
"$ref": "#/$defs/RawCaptureSegment"
|
|
269
|
+
},
|
|
270
|
+
"maxItems": 1000,
|
|
271
|
+
"title": "Segments",
|
|
272
|
+
"type": "array"
|
|
273
|
+
},
|
|
274
|
+
"error": {
|
|
275
|
+
"anyOf": [
|
|
276
|
+
{
|
|
277
|
+
"$ref": "#/$defs/CaptureFailureV2"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"type": "null"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"default": null
|
|
284
|
+
},
|
|
285
|
+
"createdAt": {
|
|
286
|
+
"format": "date-time",
|
|
287
|
+
"title": "Createdat",
|
|
288
|
+
"type": "string"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": [
|
|
292
|
+
"eventId",
|
|
293
|
+
"sequence",
|
|
294
|
+
"captureId",
|
|
295
|
+
"eventType",
|
|
296
|
+
"stage",
|
|
297
|
+
"createdAt"
|
|
298
|
+
],
|
|
299
|
+
"title": "CaptureEventV2",
|
|
300
|
+
"type": "object"
|
|
301
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"additionalProperties": false,
|
|
3
|
+
"properties": {
|
|
4
|
+
"code": {
|
|
5
|
+
"pattern": "^[a-z][a-z0-9_]{1,63}$",
|
|
6
|
+
"title": "Code",
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"message": {
|
|
10
|
+
"maxLength": 500,
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"title": "Message",
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"stage": {
|
|
16
|
+
"anyOf": [
|
|
17
|
+
{
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "null"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"default": null,
|
|
26
|
+
"title": "Stage"
|
|
27
|
+
},
|
|
28
|
+
"retryable": {
|
|
29
|
+
"default": false,
|
|
30
|
+
"title": "Retryable",
|
|
31
|
+
"type": "boolean"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"code",
|
|
36
|
+
"message"
|
|
37
|
+
],
|
|
38
|
+
"title": "CaptureFailureV2",
|
|
39
|
+
"type": "object"
|
|
40
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$defs": {
|
|
3
|
+
"CaptureFailureV2": {
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"code": {
|
|
7
|
+
"pattern": "^[a-z][a-z0-9_]{1,63}$",
|
|
8
|
+
"title": "Code",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"message": {
|
|
12
|
+
"maxLength": 500,
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"title": "Message",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"stage": {
|
|
18
|
+
"anyOf": [
|
|
19
|
+
{
|
|
20
|
+
"minLength": 1,
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "null"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"default": null,
|
|
28
|
+
"title": "Stage"
|
|
29
|
+
},
|
|
30
|
+
"retryable": {
|
|
31
|
+
"default": false,
|
|
32
|
+
"title": "Retryable",
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"code",
|
|
38
|
+
"message"
|
|
39
|
+
],
|
|
40
|
+
"title": "CaptureFailureV2",
|
|
41
|
+
"type": "object"
|
|
42
|
+
},
|
|
43
|
+
"CaptureSource": {
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"properties": {
|
|
46
|
+
"sha256": {
|
|
47
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
48
|
+
"title": "Sha256",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"fileName": {
|
|
52
|
+
"maxLength": 255,
|
|
53
|
+
"minLength": 1,
|
|
54
|
+
"title": "Filename",
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"mediaType": {
|
|
58
|
+
"minLength": 1,
|
|
59
|
+
"title": "Mediatype",
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"bytes": {
|
|
63
|
+
"minimum": 1,
|
|
64
|
+
"title": "Bytes",
|
|
65
|
+
"type": "integer"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": [
|
|
69
|
+
"sha256",
|
|
70
|
+
"fileName",
|
|
71
|
+
"mediaType",
|
|
72
|
+
"bytes"
|
|
73
|
+
],
|
|
74
|
+
"title": "CaptureSource",
|
|
75
|
+
"type": "object"
|
|
76
|
+
},
|
|
77
|
+
"CaptureSourceKind": {
|
|
78
|
+
"enum": [
|
|
79
|
+
"pdf",
|
|
80
|
+
"image",
|
|
81
|
+
"audio"
|
|
82
|
+
],
|
|
83
|
+
"title": "CaptureSourceKind",
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"StreamingCaptureStatus": {
|
|
87
|
+
"enum": [
|
|
88
|
+
"created",
|
|
89
|
+
"waiting_input",
|
|
90
|
+
"extracting",
|
|
91
|
+
"awaiting_structuring",
|
|
92
|
+
"structuring",
|
|
93
|
+
"completed",
|
|
94
|
+
"failed",
|
|
95
|
+
"cancelled"
|
|
96
|
+
],
|
|
97
|
+
"title": "StreamingCaptureStatus",
|
|
98
|
+
"type": "string"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"properties": {
|
|
103
|
+
"protocolVersion": {
|
|
104
|
+
"const": "2",
|
|
105
|
+
"default": "2",
|
|
106
|
+
"title": "Protocolversion",
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"captureId": {
|
|
110
|
+
"minLength": 1,
|
|
111
|
+
"title": "Captureid",
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"ingestionId": {
|
|
115
|
+
"minLength": 1,
|
|
116
|
+
"title": "Ingestionid",
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"kind": {
|
|
120
|
+
"$ref": "#/$defs/CaptureSourceKind",
|
|
121
|
+
"default": "audio"
|
|
122
|
+
},
|
|
123
|
+
"status": {
|
|
124
|
+
"$ref": "#/$defs/StreamingCaptureStatus"
|
|
125
|
+
},
|
|
126
|
+
"progress": {
|
|
127
|
+
"anyOf": [
|
|
128
|
+
{
|
|
129
|
+
"maximum": 1,
|
|
130
|
+
"minimum": 0,
|
|
131
|
+
"type": "number"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "null"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"default": null,
|
|
138
|
+
"title": "Progress"
|
|
139
|
+
},
|
|
140
|
+
"partialRevision": {
|
|
141
|
+
"minimum": 0,
|
|
142
|
+
"title": "Partialrevision",
|
|
143
|
+
"type": "integer"
|
|
144
|
+
},
|
|
145
|
+
"lastEventSequence": {
|
|
146
|
+
"minimum": 0,
|
|
147
|
+
"title": "Lasteventsequence",
|
|
148
|
+
"type": "integer"
|
|
149
|
+
},
|
|
150
|
+
"source": {
|
|
151
|
+
"anyOf": [
|
|
152
|
+
{
|
|
153
|
+
"$ref": "#/$defs/CaptureSource"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"type": "null"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"default": null
|
|
160
|
+
},
|
|
161
|
+
"error": {
|
|
162
|
+
"anyOf": [
|
|
163
|
+
{
|
|
164
|
+
"$ref": "#/$defs/CaptureFailureV2"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "null"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"default": null
|
|
171
|
+
},
|
|
172
|
+
"createdAt": {
|
|
173
|
+
"format": "date-time",
|
|
174
|
+
"title": "Createdat",
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"updatedAt": {
|
|
178
|
+
"format": "date-time",
|
|
179
|
+
"title": "Updatedat",
|
|
180
|
+
"type": "string"
|
|
181
|
+
},
|
|
182
|
+
"completedAt": {
|
|
183
|
+
"anyOf": [
|
|
184
|
+
{
|
|
185
|
+
"format": "date-time",
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"type": "null"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"default": null,
|
|
193
|
+
"title": "Completedat"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": [
|
|
197
|
+
"captureId",
|
|
198
|
+
"ingestionId",
|
|
199
|
+
"status",
|
|
200
|
+
"partialRevision",
|
|
201
|
+
"lastEventSequence",
|
|
202
|
+
"createdAt",
|
|
203
|
+
"updatedAt"
|
|
204
|
+
],
|
|
205
|
+
"title": "CaptureOperationV2",
|
|
206
|
+
"type": "object"
|
|
207
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"additionalProperties": false,
|
|
3
|
+
"properties": {
|
|
4
|
+
"sha256": {
|
|
5
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
6
|
+
"title": "Sha256",
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"fileName": {
|
|
10
|
+
"maxLength": 255,
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"title": "Filename",
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"mediaType": {
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"title": "Mediatype",
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"bytes": {
|
|
21
|
+
"minimum": 1,
|
|
22
|
+
"title": "Bytes",
|
|
23
|
+
"type": "integer"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"sha256",
|
|
28
|
+
"fileName",
|
|
29
|
+
"mediaType",
|
|
30
|
+
"bytes"
|
|
31
|
+
],
|
|
32
|
+
"title": "CaptureSource",
|
|
33
|
+
"type": "object"
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"additionalProperties": false,
|
|
3
|
+
"properties": {
|
|
4
|
+
"code": {
|
|
5
|
+
"minLength": 1,
|
|
6
|
+
"title": "Code",
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"message": {
|
|
10
|
+
"minLength": 1,
|
|
11
|
+
"title": "Message",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"details": {
|
|
15
|
+
"anyOf": [
|
|
16
|
+
{
|
|
17
|
+
"additionalProperties": true,
|
|
18
|
+
"type": "object"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "null"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"default": null,
|
|
25
|
+
"title": "Details"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"code",
|
|
30
|
+
"message"
|
|
31
|
+
],
|
|
32
|
+
"title": "ErrorBodyV2",
|
|
33
|
+
"type": "object"
|
|
34
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$defs": {
|
|
3
|
+
"ErrorBodyV2": {
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"code": {
|
|
7
|
+
"minLength": 1,
|
|
8
|
+
"title": "Code",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"message": {
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"title": "Message",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"details": {
|
|
17
|
+
"anyOf": [
|
|
18
|
+
{
|
|
19
|
+
"additionalProperties": true,
|
|
20
|
+
"type": "object"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "null"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"default": null,
|
|
27
|
+
"title": "Details"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": [
|
|
31
|
+
"code",
|
|
32
|
+
"message"
|
|
33
|
+
],
|
|
34
|
+
"title": "ErrorBodyV2",
|
|
35
|
+
"type": "object"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"properties": {
|
|
40
|
+
"error": {
|
|
41
|
+
"$ref": "#/$defs/ErrorBodyV2"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": [
|
|
45
|
+
"error"
|
|
46
|
+
],
|
|
47
|
+
"title": "ErrorEnvelopeV2",
|
|
48
|
+
"type": "object"
|
|
49
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"additionalProperties": false,
|
|
3
|
+
"properties": {
|
|
4
|
+
"protocolVersion": {
|
|
5
|
+
"const": "2",
|
|
6
|
+
"default": "2",
|
|
7
|
+
"title": "Protocolversion",
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"totalBytes": {
|
|
11
|
+
"exclusiveMinimum": 0,
|
|
12
|
+
"title": "Totalbytes",
|
|
13
|
+
"type": "integer"
|
|
14
|
+
},
|
|
15
|
+
"sha256": {
|
|
16
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
17
|
+
"title": "Sha256",
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"totalBytes",
|
|
23
|
+
"sha256"
|
|
24
|
+
],
|
|
25
|
+
"title": "FinalizeIngestionV2",
|
|
26
|
+
"type": "object"
|
|
27
|
+
}
|