@celluloid/vision-api 1.0.0 → 1.1.1
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/client/client.gen.d.ts +1 -1
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +15 -19
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/index.d.ts +8 -8
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +5 -16
- package/dist/client/index.js.map +1 -1
- package/dist/client/types.gen.d.ts +4 -4
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/types.gen.js +1 -2
- package/dist/client/types.gen.js.map +1 -1
- package/dist/client/utils.gen.d.ts +2 -2
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +20 -31
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/client.gen.d.ts +3 -3
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +2 -5
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.gen.js +1 -5
- package/dist/core/auth.gen.js.map +1 -1
- package/dist/core/bodySerializer.gen.d.ts +1 -1
- package/dist/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/core/bodySerializer.gen.js +3 -6
- package/dist/core/bodySerializer.gen.js.map +1 -1
- package/dist/core/params.gen.js +1 -5
- package/dist/core/params.gen.js.map +1 -1
- package/dist/core/pathSerializer.gen.js +11 -20
- package/dist/core/pathSerializer.gen.js.map +1 -1
- package/dist/core/queryKeySerializer.gen.js +6 -12
- package/dist/core/queryKeySerializer.gen.js.map +1 -1
- package/dist/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/core/serverSentEvents.gen.js +1 -5
- package/dist/core/serverSentEvents.gen.js.map +1 -1
- package/dist/core/types.gen.d.ts +2 -2
- package/dist/core/types.gen.d.ts.map +1 -1
- package/dist/core/types.gen.js +1 -2
- package/dist/core/types.gen.js.map +1 -1
- package/dist/core/utils.gen.d.ts +1 -1
- package/dist/core/utils.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.js +10 -16
- package/dist/core/utils.gen.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/dist/schemas.gen.d.ts +77 -78
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +110 -127
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +8 -8
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +8 -15
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +68 -72
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/types.gen.js +1 -2
- package/dist/types.gen.js.map +1 -1
- package/package.json +11 -8
package/dist/schemas.gen.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const AnalysisRequestSchema: {
|
|
2
2
|
readonly properties: {
|
|
3
|
-
readonly
|
|
3
|
+
readonly external_id: {
|
|
4
4
|
readonly type: "string";
|
|
5
|
-
readonly title: "
|
|
5
|
+
readonly title: "External Id";
|
|
6
6
|
readonly description: "Project identifier";
|
|
7
7
|
};
|
|
8
8
|
readonly video_url: {
|
|
@@ -29,7 +29,7 @@ export declare const AnalysisRequestSchema: {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
readonly type: "object";
|
|
32
|
-
readonly required: readonly ["
|
|
32
|
+
readonly required: readonly ["external_id", "video_url"];
|
|
33
33
|
readonly title: "AnalysisRequest";
|
|
34
34
|
};
|
|
35
35
|
export declare const AnalysisResponseSchema: {
|
|
@@ -60,7 +60,7 @@ export declare const AnalysisResponseSchema: {
|
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
readonly type: "object";
|
|
63
|
-
readonly required: readonly ["job_id", "status", "queue_position", "message"
|
|
63
|
+
readonly required: readonly ["job_id", "status", "queue_position", "message"];
|
|
64
64
|
readonly title: "AnalysisResponse";
|
|
65
65
|
};
|
|
66
66
|
export declare const BoundingBoxModelSchema: {
|
|
@@ -227,6 +227,10 @@ export declare const HTTPValidationErrorSchema: {
|
|
|
227
227
|
};
|
|
228
228
|
export declare const HealthResponseSchema: {
|
|
229
229
|
readonly properties: {
|
|
230
|
+
readonly version: {
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
readonly title: "Version";
|
|
233
|
+
};
|
|
230
234
|
readonly status: {
|
|
231
235
|
readonly type: "string";
|
|
232
236
|
readonly title: "Status";
|
|
@@ -235,25 +239,24 @@ export declare const HealthResponseSchema: {
|
|
|
235
239
|
readonly type: "string";
|
|
236
240
|
readonly title: "Timestamp";
|
|
237
241
|
};
|
|
238
|
-
readonly
|
|
239
|
-
readonly
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
readonly title: "Processing Jobs";
|
|
242
|
+
readonly job_stats: {
|
|
243
|
+
readonly anyOf: readonly [{
|
|
244
|
+
readonly $ref: "#/components/schemas/JobStats";
|
|
245
|
+
}, {
|
|
246
|
+
readonly type: "null";
|
|
247
|
+
}];
|
|
245
248
|
};
|
|
246
|
-
readonly
|
|
249
|
+
readonly error: {
|
|
247
250
|
readonly anyOf: readonly [{
|
|
248
251
|
readonly type: "string";
|
|
249
252
|
}, {
|
|
250
253
|
readonly type: "null";
|
|
251
254
|
}];
|
|
252
|
-
readonly title: "
|
|
255
|
+
readonly title: "Error";
|
|
253
256
|
};
|
|
254
257
|
};
|
|
255
258
|
readonly type: "object";
|
|
256
|
-
readonly required: readonly ["
|
|
259
|
+
readonly required: readonly ["version", "status", "timestamp"];
|
|
257
260
|
readonly title: "HealthResponse";
|
|
258
261
|
};
|
|
259
262
|
export declare const JobCompletedWebhookSchema: {
|
|
@@ -262,9 +265,9 @@ export declare const JobCompletedWebhookSchema: {
|
|
|
262
265
|
readonly type: "string";
|
|
263
266
|
readonly title: "Job Id";
|
|
264
267
|
};
|
|
265
|
-
readonly
|
|
268
|
+
readonly external_id: {
|
|
266
269
|
readonly type: "string";
|
|
267
|
-
readonly title: "
|
|
270
|
+
readonly title: "External Id";
|
|
268
271
|
};
|
|
269
272
|
readonly status: {
|
|
270
273
|
readonly type: "string";
|
|
@@ -277,26 +280,67 @@ export declare const JobCompletedWebhookSchema: {
|
|
|
277
280
|
};
|
|
278
281
|
};
|
|
279
282
|
readonly type: "object";
|
|
280
|
-
readonly required: readonly ["job_id", "
|
|
283
|
+
readonly required: readonly ["job_id", "external_id", "status", "timestamp"];
|
|
281
284
|
readonly title: "JobCompletedWebhook";
|
|
282
285
|
};
|
|
286
|
+
export declare const JobResultsResponseSchema: {
|
|
287
|
+
readonly properties: {
|
|
288
|
+
readonly status: {
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
readonly title: "Status";
|
|
291
|
+
};
|
|
292
|
+
readonly data: {
|
|
293
|
+
readonly anyOf: readonly [{
|
|
294
|
+
readonly $ref: "#/components/schemas/DetectionResultsModel";
|
|
295
|
+
}, {
|
|
296
|
+
readonly type: "null";
|
|
297
|
+
}];
|
|
298
|
+
};
|
|
299
|
+
readonly error_message: {
|
|
300
|
+
readonly anyOf: readonly [{
|
|
301
|
+
readonly type: "string";
|
|
302
|
+
}, {
|
|
303
|
+
readonly type: "null";
|
|
304
|
+
}];
|
|
305
|
+
readonly title: "Error Message";
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
readonly type: "object";
|
|
309
|
+
readonly required: readonly ["status"];
|
|
310
|
+
readonly title: "JobResultsResponse";
|
|
311
|
+
};
|
|
312
|
+
export declare const JobStatsSchema: {
|
|
313
|
+
readonly properties: {
|
|
314
|
+
readonly queued: {
|
|
315
|
+
readonly type: "integer";
|
|
316
|
+
readonly title: "Queued";
|
|
317
|
+
};
|
|
318
|
+
readonly processing: {
|
|
319
|
+
readonly type: "integer";
|
|
320
|
+
readonly title: "Processing";
|
|
321
|
+
};
|
|
322
|
+
readonly completed: {
|
|
323
|
+
readonly type: "integer";
|
|
324
|
+
readonly title: "Completed";
|
|
325
|
+
};
|
|
326
|
+
readonly failed: {
|
|
327
|
+
readonly type: "integer";
|
|
328
|
+
readonly title: "Failed";
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
readonly type: "object";
|
|
332
|
+
readonly required: readonly ["queued", "processing", "completed", "failed"];
|
|
333
|
+
readonly title: "JobStats";
|
|
334
|
+
};
|
|
283
335
|
export declare const JobStatusResponseSchema: {
|
|
284
336
|
readonly properties: {
|
|
285
337
|
readonly job_id: {
|
|
286
338
|
readonly type: "string";
|
|
287
339
|
readonly title: "Job Id";
|
|
288
340
|
};
|
|
289
|
-
readonly
|
|
290
|
-
readonly type: "string";
|
|
291
|
-
readonly title: "Project Id";
|
|
292
|
-
};
|
|
293
|
-
readonly video_url: {
|
|
341
|
+
readonly external_id: {
|
|
294
342
|
readonly type: "string";
|
|
295
|
-
readonly title: "
|
|
296
|
-
};
|
|
297
|
-
readonly similarity_threshold: {
|
|
298
|
-
readonly type: "number";
|
|
299
|
-
readonly title: "Similarity Threshold";
|
|
343
|
+
readonly title: "External Id";
|
|
300
344
|
};
|
|
301
345
|
readonly status: {
|
|
302
346
|
readonly type: "string";
|
|
@@ -307,20 +351,14 @@ export declare const JobStatusResponseSchema: {
|
|
|
307
351
|
readonly title: "Progress";
|
|
308
352
|
};
|
|
309
353
|
readonly queue_position: {
|
|
310
|
-
readonly
|
|
311
|
-
readonly type: "integer";
|
|
312
|
-
}, {
|
|
313
|
-
readonly type: "null";
|
|
314
|
-
}];
|
|
354
|
+
readonly type: "integer";
|
|
315
355
|
readonly title: "Queue Position";
|
|
356
|
+
readonly default: 0;
|
|
316
357
|
};
|
|
317
358
|
readonly estimated_wait_time: {
|
|
318
|
-
readonly
|
|
319
|
-
readonly type: "string";
|
|
320
|
-
}, {
|
|
321
|
-
readonly type: "null";
|
|
322
|
-
}];
|
|
359
|
+
readonly type: "string";
|
|
323
360
|
readonly title: "Estimated Wait Time";
|
|
361
|
+
readonly default: "00:00:00";
|
|
324
362
|
};
|
|
325
363
|
readonly start_time: {
|
|
326
364
|
readonly anyOf: readonly [{
|
|
@@ -338,23 +376,6 @@ export declare const JobStatusResponseSchema: {
|
|
|
338
376
|
}];
|
|
339
377
|
readonly title: "End Time";
|
|
340
378
|
};
|
|
341
|
-
readonly result_path: {
|
|
342
|
-
readonly anyOf: readonly [{
|
|
343
|
-
readonly type: "string";
|
|
344
|
-
}, {
|
|
345
|
-
readonly type: "null";
|
|
346
|
-
}];
|
|
347
|
-
readonly title: "Result Path";
|
|
348
|
-
};
|
|
349
|
-
readonly metadata: {
|
|
350
|
-
readonly anyOf: readonly [{
|
|
351
|
-
readonly additionalProperties: true;
|
|
352
|
-
readonly type: "object";
|
|
353
|
-
}, {
|
|
354
|
-
readonly type: "null";
|
|
355
|
-
}];
|
|
356
|
-
readonly title: "Metadata";
|
|
357
|
-
};
|
|
358
379
|
readonly error_message: {
|
|
359
380
|
readonly anyOf: readonly [{
|
|
360
381
|
readonly type: "string";
|
|
@@ -365,28 +386,9 @@ export declare const JobStatusResponseSchema: {
|
|
|
365
386
|
};
|
|
366
387
|
};
|
|
367
388
|
readonly type: "object";
|
|
368
|
-
readonly required: readonly ["job_id", "
|
|
389
|
+
readonly required: readonly ["job_id", "external_id", "status", "progress"];
|
|
369
390
|
readonly title: "JobStatusResponse";
|
|
370
391
|
};
|
|
371
|
-
export declare const ModelMetadataModelSchema: {
|
|
372
|
-
readonly properties: {
|
|
373
|
-
readonly name: {
|
|
374
|
-
readonly type: "string";
|
|
375
|
-
readonly title: "Name";
|
|
376
|
-
};
|
|
377
|
-
readonly type: {
|
|
378
|
-
readonly type: "string";
|
|
379
|
-
readonly title: "Type";
|
|
380
|
-
};
|
|
381
|
-
readonly version: {
|
|
382
|
-
readonly type: "string";
|
|
383
|
-
readonly title: "Version";
|
|
384
|
-
};
|
|
385
|
-
};
|
|
386
|
-
readonly type: "object";
|
|
387
|
-
readonly required: readonly ["name", "type", "version"];
|
|
388
|
-
readonly title: "ModelMetadataModel";
|
|
389
|
-
};
|
|
390
392
|
export declare const ProcessingMetadataModelSchema: {
|
|
391
393
|
readonly properties: {
|
|
392
394
|
readonly start_time: {
|
|
@@ -453,9 +455,6 @@ export declare const ResultsMetadataModelSchema: {
|
|
|
453
455
|
readonly video: {
|
|
454
456
|
readonly $ref: "#/components/schemas/VideoMetadataModel";
|
|
455
457
|
};
|
|
456
|
-
readonly model: {
|
|
457
|
-
readonly $ref: "#/components/schemas/ModelMetadataModel";
|
|
458
|
-
};
|
|
459
458
|
readonly sprite: {
|
|
460
459
|
readonly $ref: "#/components/schemas/SpriteMetadataModel";
|
|
461
460
|
};
|
|
@@ -464,7 +463,7 @@ export declare const ResultsMetadataModelSchema: {
|
|
|
464
463
|
};
|
|
465
464
|
};
|
|
466
465
|
readonly type: "object";
|
|
467
|
-
readonly required: readonly ["video", "
|
|
466
|
+
readonly required: readonly ["video", "sprite", "processing"];
|
|
468
467
|
readonly title: "ResultsMetadataModel";
|
|
469
468
|
};
|
|
470
469
|
export declare const SpriteMetadataModelSchema: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.gen.d.ts","sourceRoot":"","sources":["../client/schemas.gen.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCxB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schemas.gen.d.ts","sourceRoot":"","sources":["../client/schemas.gen.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCxB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCzB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;CA2BzB,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;CAyB5B,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;CAwB9B,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0EjC,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;CAY5B,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CvB,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;CA4B5B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;CAiC3B,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;CA2BjB,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsE1B,CAAC;AAEX,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFhC,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;CAmB7B,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;CAoB5B,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC3B,CAAC"}
|
package/dist/schemas.gen.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
-
|
|
4
|
-
exports.VideoMetadataModelSchema = exports.ValidationErrorSchema = exports.SpriteMetadataModelSchema = exports.ResultsMetadataModelSchema = exports.ProcessingMetadataModelSchema = exports.ModelMetadataModelSchema = exports.JobStatusResponseSchema = exports.JobCompletedWebhookSchema = exports.HealthResponseSchema = exports.HTTPValidationErrorSchema = exports.DetectionStatisticsModelSchema = exports.DetectionResultsModelSchema = exports.DetectionObjectModelSchema = exports.DetectionFrameModelSchema = exports.BoundingBoxModelSchema = exports.AnalysisResponseSchema = exports.AnalysisRequestSchema = void 0;
|
|
5
|
-
exports.AnalysisRequestSchema = {
|
|
2
|
+
export const AnalysisRequestSchema = {
|
|
6
3
|
properties: {
|
|
7
|
-
|
|
4
|
+
external_id: {
|
|
8
5
|
type: 'string',
|
|
9
|
-
title: '
|
|
6
|
+
title: 'External Id',
|
|
10
7
|
description: 'Project identifier'
|
|
11
8
|
},
|
|
12
9
|
video_url: {
|
|
@@ -37,12 +34,12 @@ exports.AnalysisRequestSchema = {
|
|
|
37
34
|
},
|
|
38
35
|
type: 'object',
|
|
39
36
|
required: [
|
|
40
|
-
'
|
|
37
|
+
'external_id',
|
|
41
38
|
'video_url'
|
|
42
39
|
],
|
|
43
40
|
title: 'AnalysisRequest'
|
|
44
41
|
};
|
|
45
|
-
|
|
42
|
+
export const AnalysisResponseSchema = {
|
|
46
43
|
properties: {
|
|
47
44
|
job_id: {
|
|
48
45
|
type: 'string',
|
|
@@ -77,12 +74,11 @@ exports.AnalysisResponseSchema = {
|
|
|
77
74
|
'job_id',
|
|
78
75
|
'status',
|
|
79
76
|
'queue_position',
|
|
80
|
-
'message'
|
|
81
|
-
'callback_url'
|
|
77
|
+
'message'
|
|
82
78
|
],
|
|
83
79
|
title: 'AnalysisResponse'
|
|
84
80
|
};
|
|
85
|
-
|
|
81
|
+
export const BoundingBoxModelSchema = {
|
|
86
82
|
properties: {
|
|
87
83
|
x: {
|
|
88
84
|
type: 'integer',
|
|
@@ -110,7 +106,7 @@ exports.BoundingBoxModelSchema = {
|
|
|
110
106
|
],
|
|
111
107
|
title: 'BoundingBoxModel'
|
|
112
108
|
};
|
|
113
|
-
|
|
109
|
+
export const DetectionFrameModelSchema = {
|
|
114
110
|
properties: {
|
|
115
111
|
frame_idx: {
|
|
116
112
|
type: 'integer',
|
|
@@ -136,7 +132,7 @@ exports.DetectionFrameModelSchema = {
|
|
|
136
132
|
],
|
|
137
133
|
title: 'DetectionFrameModel'
|
|
138
134
|
};
|
|
139
|
-
|
|
135
|
+
export const DetectionObjectModelSchema = {
|
|
140
136
|
properties: {
|
|
141
137
|
id: {
|
|
142
138
|
type: 'string',
|
|
@@ -168,7 +164,7 @@ exports.DetectionObjectModelSchema = {
|
|
|
168
164
|
],
|
|
169
165
|
title: 'DetectionObjectModel'
|
|
170
166
|
};
|
|
171
|
-
|
|
167
|
+
export const DetectionResultsModelSchema = {
|
|
172
168
|
properties: {
|
|
173
169
|
version: {
|
|
174
170
|
type: 'string',
|
|
@@ -193,7 +189,7 @@ exports.DetectionResultsModelSchema = {
|
|
|
193
189
|
],
|
|
194
190
|
title: 'DetectionResultsModel'
|
|
195
191
|
};
|
|
196
|
-
|
|
192
|
+
export const DetectionStatisticsModelSchema = {
|
|
197
193
|
properties: {
|
|
198
194
|
total_detections: {
|
|
199
195
|
anyOf: [
|
|
@@ -268,7 +264,7 @@ exports.DetectionStatisticsModelSchema = {
|
|
|
268
264
|
type: 'object',
|
|
269
265
|
title: 'DetectionStatisticsModel'
|
|
270
266
|
};
|
|
271
|
-
|
|
267
|
+
export const HTTPValidationErrorSchema = {
|
|
272
268
|
properties: {
|
|
273
269
|
detail: {
|
|
274
270
|
items: {
|
|
@@ -281,8 +277,12 @@ exports.HTTPValidationErrorSchema = {
|
|
|
281
277
|
type: 'object',
|
|
282
278
|
title: 'HTTPValidationError'
|
|
283
279
|
};
|
|
284
|
-
|
|
280
|
+
export const HealthResponseSchema = {
|
|
285
281
|
properties: {
|
|
282
|
+
version: {
|
|
283
|
+
type: 'string',
|
|
284
|
+
title: 'Version'
|
|
285
|
+
},
|
|
286
286
|
status: {
|
|
287
287
|
type: 'string',
|
|
288
288
|
title: 'Status'
|
|
@@ -291,15 +291,17 @@ exports.HealthResponseSchema = {
|
|
|
291
291
|
type: 'string',
|
|
292
292
|
title: 'Timestamp'
|
|
293
293
|
},
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
294
|
+
job_stats: {
|
|
295
|
+
anyOf: [
|
|
296
|
+
{
|
|
297
|
+
$ref: '#/components/schemas/JobStats'
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
type: 'null'
|
|
301
|
+
}
|
|
302
|
+
]
|
|
301
303
|
},
|
|
302
|
-
|
|
304
|
+
error: {
|
|
303
305
|
anyOf: [
|
|
304
306
|
{
|
|
305
307
|
type: 'string'
|
|
@@ -308,28 +310,26 @@ exports.HealthResponseSchema = {
|
|
|
308
310
|
type: 'null'
|
|
309
311
|
}
|
|
310
312
|
],
|
|
311
|
-
title: '
|
|
313
|
+
title: 'Error'
|
|
312
314
|
}
|
|
313
315
|
},
|
|
314
316
|
type: 'object',
|
|
315
317
|
required: [
|
|
318
|
+
'version',
|
|
316
319
|
'status',
|
|
317
|
-
'timestamp'
|
|
318
|
-
'queue_size',
|
|
319
|
-
'processing_jobs',
|
|
320
|
-
'current_job'
|
|
320
|
+
'timestamp'
|
|
321
321
|
],
|
|
322
322
|
title: 'HealthResponse'
|
|
323
323
|
};
|
|
324
|
-
|
|
324
|
+
export const JobCompletedWebhookSchema = {
|
|
325
325
|
properties: {
|
|
326
326
|
job_id: {
|
|
327
327
|
type: 'string',
|
|
328
328
|
title: 'Job Id'
|
|
329
329
|
},
|
|
330
|
-
|
|
330
|
+
external_id: {
|
|
331
331
|
type: 'string',
|
|
332
|
-
title: '
|
|
332
|
+
title: 'External Id'
|
|
333
333
|
},
|
|
334
334
|
status: {
|
|
335
335
|
type: 'string',
|
|
@@ -344,50 +344,29 @@ exports.JobCompletedWebhookSchema = {
|
|
|
344
344
|
type: 'object',
|
|
345
345
|
required: [
|
|
346
346
|
'job_id',
|
|
347
|
-
'
|
|
347
|
+
'external_id',
|
|
348
348
|
'status',
|
|
349
349
|
'timestamp'
|
|
350
350
|
],
|
|
351
351
|
title: 'JobCompletedWebhook'
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
export const JobResultsResponseSchema = {
|
|
354
354
|
properties: {
|
|
355
|
-
job_id: {
|
|
356
|
-
type: 'string',
|
|
357
|
-
title: 'Job Id'
|
|
358
|
-
},
|
|
359
|
-
project_id: {
|
|
360
|
-
type: 'string',
|
|
361
|
-
title: 'Project Id'
|
|
362
|
-
},
|
|
363
|
-
video_url: {
|
|
364
|
-
type: 'string',
|
|
365
|
-
title: 'Video Url'
|
|
366
|
-
},
|
|
367
|
-
similarity_threshold: {
|
|
368
|
-
type: 'number',
|
|
369
|
-
title: 'Similarity Threshold'
|
|
370
|
-
},
|
|
371
355
|
status: {
|
|
372
356
|
type: 'string',
|
|
373
357
|
title: 'Status'
|
|
374
358
|
},
|
|
375
|
-
|
|
376
|
-
type: 'number',
|
|
377
|
-
title: 'Progress'
|
|
378
|
-
},
|
|
379
|
-
queue_position: {
|
|
359
|
+
data: {
|
|
380
360
|
anyOf: [
|
|
381
361
|
{
|
|
382
|
-
|
|
362
|
+
$ref: '#/components/schemas/DetectionResultsModel'
|
|
383
363
|
},
|
|
384
364
|
{
|
|
385
365
|
type: 'null'
|
|
386
366
|
}
|
|
387
|
-
]
|
|
388
|
-
title: 'Queue Position'
|
|
367
|
+
]
|
|
389
368
|
},
|
|
390
|
-
|
|
369
|
+
error_message: {
|
|
391
370
|
anyOf: [
|
|
392
371
|
{
|
|
393
372
|
type: 'string'
|
|
@@ -396,7 +375,70 @@ exports.JobStatusResponseSchema = {
|
|
|
396
375
|
type: 'null'
|
|
397
376
|
}
|
|
398
377
|
],
|
|
399
|
-
title: '
|
|
378
|
+
title: 'Error Message'
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
type: 'object',
|
|
382
|
+
required: [
|
|
383
|
+
'status'
|
|
384
|
+
],
|
|
385
|
+
title: 'JobResultsResponse'
|
|
386
|
+
};
|
|
387
|
+
export const JobStatsSchema = {
|
|
388
|
+
properties: {
|
|
389
|
+
queued: {
|
|
390
|
+
type: 'integer',
|
|
391
|
+
title: 'Queued'
|
|
392
|
+
},
|
|
393
|
+
processing: {
|
|
394
|
+
type: 'integer',
|
|
395
|
+
title: 'Processing'
|
|
396
|
+
},
|
|
397
|
+
completed: {
|
|
398
|
+
type: 'integer',
|
|
399
|
+
title: 'Completed'
|
|
400
|
+
},
|
|
401
|
+
failed: {
|
|
402
|
+
type: 'integer',
|
|
403
|
+
title: 'Failed'
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
type: 'object',
|
|
407
|
+
required: [
|
|
408
|
+
'queued',
|
|
409
|
+
'processing',
|
|
410
|
+
'completed',
|
|
411
|
+
'failed'
|
|
412
|
+
],
|
|
413
|
+
title: 'JobStats'
|
|
414
|
+
};
|
|
415
|
+
export const JobStatusResponseSchema = {
|
|
416
|
+
properties: {
|
|
417
|
+
job_id: {
|
|
418
|
+
type: 'string',
|
|
419
|
+
title: 'Job Id'
|
|
420
|
+
},
|
|
421
|
+
external_id: {
|
|
422
|
+
type: 'string',
|
|
423
|
+
title: 'External Id'
|
|
424
|
+
},
|
|
425
|
+
status: {
|
|
426
|
+
type: 'string',
|
|
427
|
+
title: 'Status'
|
|
428
|
+
},
|
|
429
|
+
progress: {
|
|
430
|
+
type: 'number',
|
|
431
|
+
title: 'Progress'
|
|
432
|
+
},
|
|
433
|
+
queue_position: {
|
|
434
|
+
type: 'integer',
|
|
435
|
+
title: 'Queue Position',
|
|
436
|
+
default: 0
|
|
437
|
+
},
|
|
438
|
+
estimated_wait_time: {
|
|
439
|
+
type: 'string',
|
|
440
|
+
title: 'Estimated Wait Time',
|
|
441
|
+
default: '00:00:00'
|
|
400
442
|
},
|
|
401
443
|
start_time: {
|
|
402
444
|
anyOf: [
|
|
@@ -420,29 +462,6 @@ exports.JobStatusResponseSchema = {
|
|
|
420
462
|
],
|
|
421
463
|
title: 'End Time'
|
|
422
464
|
},
|
|
423
|
-
result_path: {
|
|
424
|
-
anyOf: [
|
|
425
|
-
{
|
|
426
|
-
type: 'string'
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
type: 'null'
|
|
430
|
-
}
|
|
431
|
-
],
|
|
432
|
-
title: 'Result Path'
|
|
433
|
-
},
|
|
434
|
-
metadata: {
|
|
435
|
-
anyOf: [
|
|
436
|
-
{
|
|
437
|
-
additionalProperties: true,
|
|
438
|
-
type: 'object'
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
type: 'null'
|
|
442
|
-
}
|
|
443
|
-
],
|
|
444
|
-
title: 'Metadata'
|
|
445
|
-
},
|
|
446
465
|
error_message: {
|
|
447
466
|
anyOf: [
|
|
448
467
|
{
|
|
@@ -458,45 +477,13 @@ exports.JobStatusResponseSchema = {
|
|
|
458
477
|
type: 'object',
|
|
459
478
|
required: [
|
|
460
479
|
'job_id',
|
|
461
|
-
'
|
|
462
|
-
'video_url',
|
|
463
|
-
'similarity_threshold',
|
|
480
|
+
'external_id',
|
|
464
481
|
'status',
|
|
465
|
-
'progress'
|
|
466
|
-
'queue_position',
|
|
467
|
-
'estimated_wait_time',
|
|
468
|
-
'start_time',
|
|
469
|
-
'end_time',
|
|
470
|
-
'result_path',
|
|
471
|
-
'metadata',
|
|
472
|
-
'error_message'
|
|
482
|
+
'progress'
|
|
473
483
|
],
|
|
474
484
|
title: 'JobStatusResponse'
|
|
475
485
|
};
|
|
476
|
-
|
|
477
|
-
properties: {
|
|
478
|
-
name: {
|
|
479
|
-
type: 'string',
|
|
480
|
-
title: 'Name'
|
|
481
|
-
},
|
|
482
|
-
type: {
|
|
483
|
-
type: 'string',
|
|
484
|
-
title: 'Type'
|
|
485
|
-
},
|
|
486
|
-
version: {
|
|
487
|
-
type: 'string',
|
|
488
|
-
title: 'Version'
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
type: 'object',
|
|
492
|
-
required: [
|
|
493
|
-
'name',
|
|
494
|
-
'type',
|
|
495
|
-
'version'
|
|
496
|
-
],
|
|
497
|
-
title: 'ModelMetadataModel'
|
|
498
|
-
};
|
|
499
|
-
exports.ProcessingMetadataModelSchema = {
|
|
486
|
+
export const ProcessingMetadataModelSchema = {
|
|
500
487
|
properties: {
|
|
501
488
|
start_time: {
|
|
502
489
|
anyOf: [
|
|
@@ -578,14 +565,11 @@ exports.ProcessingMetadataModelSchema = {
|
|
|
578
565
|
type: 'object',
|
|
579
566
|
title: 'ProcessingMetadataModel'
|
|
580
567
|
};
|
|
581
|
-
|
|
568
|
+
export const ResultsMetadataModelSchema = {
|
|
582
569
|
properties: {
|
|
583
570
|
video: {
|
|
584
571
|
$ref: '#/components/schemas/VideoMetadataModel'
|
|
585
572
|
},
|
|
586
|
-
model: {
|
|
587
|
-
$ref: '#/components/schemas/ModelMetadataModel'
|
|
588
|
-
},
|
|
589
573
|
sprite: {
|
|
590
574
|
$ref: '#/components/schemas/SpriteMetadataModel'
|
|
591
575
|
},
|
|
@@ -596,13 +580,12 @@ exports.ResultsMetadataModelSchema = {
|
|
|
596
580
|
type: 'object',
|
|
597
581
|
required: [
|
|
598
582
|
'video',
|
|
599
|
-
'model',
|
|
600
583
|
'sprite',
|
|
601
584
|
'processing'
|
|
602
585
|
],
|
|
603
586
|
title: 'ResultsMetadataModel'
|
|
604
587
|
};
|
|
605
|
-
|
|
588
|
+
export const SpriteMetadataModelSchema = {
|
|
606
589
|
properties: {
|
|
607
590
|
path: {
|
|
608
591
|
type: 'string',
|
|
@@ -623,7 +606,7 @@ exports.SpriteMetadataModelSchema = {
|
|
|
623
606
|
],
|
|
624
607
|
title: 'SpriteMetadataModel'
|
|
625
608
|
};
|
|
626
|
-
|
|
609
|
+
export const ValidationErrorSchema = {
|
|
627
610
|
properties: {
|
|
628
611
|
loc: {
|
|
629
612
|
items: {
|
|
@@ -656,7 +639,7 @@ exports.ValidationErrorSchema = {
|
|
|
656
639
|
],
|
|
657
640
|
title: 'ValidationError'
|
|
658
641
|
};
|
|
659
|
-
|
|
642
|
+
export const VideoMetadataModelSchema = {
|
|
660
643
|
properties: {
|
|
661
644
|
fps: {
|
|
662
645
|
type: 'number',
|