@aviaryhq/cloudglue-js 0.4.5 → 0.4.7
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/generated/Files.d.ts +253 -2
- package/dist/generated/Files.js +20 -1
- package/dist/generated/Search.d.ts +10 -0
- package/dist/generated/Search.js +9 -2
- package/dist/generated/Segmentations.d.ts +240 -0
- package/dist/generated/Segments.d.ts +12 -2
- package/dist/generated/Segments.js +16 -6
- package/dist/generated/common.d.ts +140 -0
- package/dist/generated/common.js +11 -1
- package/dist/src/client.d.ts +109 -59
- package/dist/src/client.js +1 -1
- package/dist/src/types.d.ts +42 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ZodiosOptions } from "@zodios/core";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { File as CloudglueFile } from "./common";
|
|
4
|
-
import {
|
|
4
|
+
import { SegmentationConfig, ThumbnailsConfig, FrameExtractionConfig } from "./common";
|
|
5
5
|
type FileList = {
|
|
6
6
|
object: "list";
|
|
7
7
|
data: Array<CloudglueFile>;
|
|
@@ -11,11 +11,20 @@ type FileList = {
|
|
|
11
11
|
};
|
|
12
12
|
type SegmentationList = {
|
|
13
13
|
object: "list";
|
|
14
|
-
data: Array<
|
|
14
|
+
data: Array<SegmentationListItem>;
|
|
15
15
|
total: number;
|
|
16
16
|
limit: number;
|
|
17
17
|
offset: number;
|
|
18
18
|
};
|
|
19
|
+
type SegmentationListItem = {
|
|
20
|
+
segmentation_id: string;
|
|
21
|
+
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
22
|
+
created_at: number;
|
|
23
|
+
file_id: string;
|
|
24
|
+
segmentation_config: SegmentationConfig;
|
|
25
|
+
thumbnails_config: ThumbnailsConfig;
|
|
26
|
+
total_segments?: number | undefined;
|
|
27
|
+
};
|
|
19
28
|
type FrameExtractionList = {
|
|
20
29
|
object: "list";
|
|
21
30
|
data: Array<{
|
|
@@ -31,10 +40,12 @@ type FrameExtractionList = {
|
|
|
31
40
|
offset: number;
|
|
32
41
|
};
|
|
33
42
|
declare const FileList: z.ZodType<FileList>;
|
|
43
|
+
declare const SegmentationListItem: z.ZodType<SegmentationListItem>;
|
|
34
44
|
declare const SegmentationList: z.ZodType<SegmentationList>;
|
|
35
45
|
declare const FrameExtractionList: z.ZodType<FrameExtractionList>;
|
|
36
46
|
export declare const schemas: {
|
|
37
47
|
FileList: z.ZodType<FileList, z.ZodTypeDef, FileList>;
|
|
48
|
+
SegmentationListItem: z.ZodType<SegmentationListItem, z.ZodTypeDef, SegmentationListItem>;
|
|
38
49
|
SegmentationList: z.ZodType<SegmentationList, z.ZodTypeDef, SegmentationList>;
|
|
39
50
|
FrameExtractionList: z.ZodType<FrameExtractionList, z.ZodTypeDef, FrameExtractionList>;
|
|
40
51
|
FileUpload: z.ZodObject<{
|
|
@@ -1232,6 +1243,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1232
1243
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
1233
1244
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1234
1245
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
1246
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
1235
1247
|
data: z.ZodOptional<z.ZodObject<{
|
|
1236
1248
|
object: z.ZodLiteral<"list">;
|
|
1237
1249
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1250,6 +1262,19 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1250
1262
|
end_time: z.ZodNumber;
|
|
1251
1263
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1252
1264
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1265
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1266
|
+
index: z.ZodNumber;
|
|
1267
|
+
start_time: z.ZodNumber;
|
|
1268
|
+
end_time: z.ZodNumber;
|
|
1269
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1270
|
+
index: z.ZodNumber;
|
|
1271
|
+
start_time: z.ZodNumber;
|
|
1272
|
+
end_time: z.ZodNumber;
|
|
1273
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1274
|
+
index: z.ZodNumber;
|
|
1275
|
+
start_time: z.ZodNumber;
|
|
1276
|
+
end_time: z.ZodNumber;
|
|
1277
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1253
1278
|
total: z.ZodNumber;
|
|
1254
1279
|
limit: z.ZodNumber;
|
|
1255
1280
|
offset: z.ZodNumber;
|
|
@@ -1271,6 +1296,19 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1271
1296
|
end_time: z.ZodNumber;
|
|
1272
1297
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1273
1298
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1299
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1300
|
+
index: z.ZodNumber;
|
|
1301
|
+
start_time: z.ZodNumber;
|
|
1302
|
+
end_time: z.ZodNumber;
|
|
1303
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1304
|
+
index: z.ZodNumber;
|
|
1305
|
+
start_time: z.ZodNumber;
|
|
1306
|
+
end_time: z.ZodNumber;
|
|
1307
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1308
|
+
index: z.ZodNumber;
|
|
1309
|
+
start_time: z.ZodNumber;
|
|
1310
|
+
end_time: z.ZodNumber;
|
|
1311
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1274
1312
|
total: z.ZodNumber;
|
|
1275
1313
|
limit: z.ZodNumber;
|
|
1276
1314
|
offset: z.ZodNumber;
|
|
@@ -1292,6 +1330,19 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1292
1330
|
end_time: z.ZodNumber;
|
|
1293
1331
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1294
1332
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1333
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1334
|
+
index: z.ZodNumber;
|
|
1335
|
+
start_time: z.ZodNumber;
|
|
1336
|
+
end_time: z.ZodNumber;
|
|
1337
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1338
|
+
index: z.ZodNumber;
|
|
1339
|
+
start_time: z.ZodNumber;
|
|
1340
|
+
end_time: z.ZodNumber;
|
|
1341
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1342
|
+
index: z.ZodNumber;
|
|
1343
|
+
start_time: z.ZodNumber;
|
|
1344
|
+
end_time: z.ZodNumber;
|
|
1345
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1295
1346
|
total: z.ZodNumber;
|
|
1296
1347
|
limit: z.ZodNumber;
|
|
1297
1348
|
offset: z.ZodNumber;
|
|
@@ -1502,6 +1553,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1502
1553
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
1503
1554
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1504
1555
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
1556
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
1505
1557
|
data: z.ZodOptional<z.ZodObject<{
|
|
1506
1558
|
object: z.ZodLiteral<"list">;
|
|
1507
1559
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1520,6 +1572,19 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1520
1572
|
end_time: z.ZodNumber;
|
|
1521
1573
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1522
1574
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1575
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1576
|
+
index: z.ZodNumber;
|
|
1577
|
+
start_time: z.ZodNumber;
|
|
1578
|
+
end_time: z.ZodNumber;
|
|
1579
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1580
|
+
index: z.ZodNumber;
|
|
1581
|
+
start_time: z.ZodNumber;
|
|
1582
|
+
end_time: z.ZodNumber;
|
|
1583
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1584
|
+
index: z.ZodNumber;
|
|
1585
|
+
start_time: z.ZodNumber;
|
|
1586
|
+
end_time: z.ZodNumber;
|
|
1587
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1523
1588
|
total: z.ZodNumber;
|
|
1524
1589
|
limit: z.ZodNumber;
|
|
1525
1590
|
offset: z.ZodNumber;
|
|
@@ -1541,6 +1606,19 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1541
1606
|
end_time: z.ZodNumber;
|
|
1542
1607
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1543
1608
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1609
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1610
|
+
index: z.ZodNumber;
|
|
1611
|
+
start_time: z.ZodNumber;
|
|
1612
|
+
end_time: z.ZodNumber;
|
|
1613
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1614
|
+
index: z.ZodNumber;
|
|
1615
|
+
start_time: z.ZodNumber;
|
|
1616
|
+
end_time: z.ZodNumber;
|
|
1617
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1618
|
+
index: z.ZodNumber;
|
|
1619
|
+
start_time: z.ZodNumber;
|
|
1620
|
+
end_time: z.ZodNumber;
|
|
1621
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1544
1622
|
total: z.ZodNumber;
|
|
1545
1623
|
limit: z.ZodNumber;
|
|
1546
1624
|
offset: z.ZodNumber;
|
|
@@ -1562,6 +1640,19 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1562
1640
|
end_time: z.ZodNumber;
|
|
1563
1641
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1564
1642
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1643
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1644
|
+
index: z.ZodNumber;
|
|
1645
|
+
start_time: z.ZodNumber;
|
|
1646
|
+
end_time: z.ZodNumber;
|
|
1647
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1648
|
+
index: z.ZodNumber;
|
|
1649
|
+
start_time: z.ZodNumber;
|
|
1650
|
+
end_time: z.ZodNumber;
|
|
1651
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1652
|
+
index: z.ZodNumber;
|
|
1653
|
+
start_time: z.ZodNumber;
|
|
1654
|
+
end_time: z.ZodNumber;
|
|
1655
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1565
1656
|
total: z.ZodNumber;
|
|
1566
1657
|
limit: z.ZodNumber;
|
|
1567
1658
|
offset: z.ZodNumber;
|
|
@@ -1772,6 +1863,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1772
1863
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
1773
1864
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1774
1865
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
1866
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
1775
1867
|
data: z.ZodOptional<z.ZodObject<{
|
|
1776
1868
|
object: z.ZodLiteral<"list">;
|
|
1777
1869
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1790,6 +1882,19 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1790
1882
|
end_time: z.ZodNumber;
|
|
1791
1883
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1792
1884
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1885
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1886
|
+
index: z.ZodNumber;
|
|
1887
|
+
start_time: z.ZodNumber;
|
|
1888
|
+
end_time: z.ZodNumber;
|
|
1889
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1890
|
+
index: z.ZodNumber;
|
|
1891
|
+
start_time: z.ZodNumber;
|
|
1892
|
+
end_time: z.ZodNumber;
|
|
1893
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1894
|
+
index: z.ZodNumber;
|
|
1895
|
+
start_time: z.ZodNumber;
|
|
1896
|
+
end_time: z.ZodNumber;
|
|
1897
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1793
1898
|
total: z.ZodNumber;
|
|
1794
1899
|
limit: z.ZodNumber;
|
|
1795
1900
|
offset: z.ZodNumber;
|
|
@@ -1811,6 +1916,19 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1811
1916
|
end_time: z.ZodNumber;
|
|
1812
1917
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1813
1918
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1919
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1920
|
+
index: z.ZodNumber;
|
|
1921
|
+
start_time: z.ZodNumber;
|
|
1922
|
+
end_time: z.ZodNumber;
|
|
1923
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1924
|
+
index: z.ZodNumber;
|
|
1925
|
+
start_time: z.ZodNumber;
|
|
1926
|
+
end_time: z.ZodNumber;
|
|
1927
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1928
|
+
index: z.ZodNumber;
|
|
1929
|
+
start_time: z.ZodNumber;
|
|
1930
|
+
end_time: z.ZodNumber;
|
|
1931
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1814
1932
|
total: z.ZodNumber;
|
|
1815
1933
|
limit: z.ZodNumber;
|
|
1816
1934
|
offset: z.ZodNumber;
|
|
@@ -1832,6 +1950,19 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
1832
1950
|
end_time: z.ZodNumber;
|
|
1833
1951
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1834
1952
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1953
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1954
|
+
index: z.ZodNumber;
|
|
1955
|
+
start_time: z.ZodNumber;
|
|
1956
|
+
end_time: z.ZodNumber;
|
|
1957
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1958
|
+
index: z.ZodNumber;
|
|
1959
|
+
start_time: z.ZodNumber;
|
|
1960
|
+
end_time: z.ZodNumber;
|
|
1961
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1962
|
+
index: z.ZodNumber;
|
|
1963
|
+
start_time: z.ZodNumber;
|
|
1964
|
+
end_time: z.ZodNumber;
|
|
1965
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1835
1966
|
total: z.ZodNumber;
|
|
1836
1967
|
limit: z.ZodNumber;
|
|
1837
1968
|
offset: z.ZodNumber;
|
|
@@ -3462,6 +3593,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
3462
3593
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
3463
3594
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3464
3595
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
3596
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
3465
3597
|
data: z.ZodOptional<z.ZodObject<{
|
|
3466
3598
|
object: z.ZodLiteral<"list">;
|
|
3467
3599
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3480,6 +3612,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
3480
3612
|
end_time: z.ZodNumber;
|
|
3481
3613
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
3482
3614
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3615
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3616
|
+
index: z.ZodNumber;
|
|
3617
|
+
start_time: z.ZodNumber;
|
|
3618
|
+
end_time: z.ZodNumber;
|
|
3619
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3620
|
+
index: z.ZodNumber;
|
|
3621
|
+
start_time: z.ZodNumber;
|
|
3622
|
+
end_time: z.ZodNumber;
|
|
3623
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3624
|
+
index: z.ZodNumber;
|
|
3625
|
+
start_time: z.ZodNumber;
|
|
3626
|
+
end_time: z.ZodNumber;
|
|
3627
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3483
3628
|
total: z.ZodNumber;
|
|
3484
3629
|
limit: z.ZodNumber;
|
|
3485
3630
|
offset: z.ZodNumber;
|
|
@@ -3501,6 +3646,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
3501
3646
|
end_time: z.ZodNumber;
|
|
3502
3647
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
3503
3648
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3649
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3650
|
+
index: z.ZodNumber;
|
|
3651
|
+
start_time: z.ZodNumber;
|
|
3652
|
+
end_time: z.ZodNumber;
|
|
3653
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3654
|
+
index: z.ZodNumber;
|
|
3655
|
+
start_time: z.ZodNumber;
|
|
3656
|
+
end_time: z.ZodNumber;
|
|
3657
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3658
|
+
index: z.ZodNumber;
|
|
3659
|
+
start_time: z.ZodNumber;
|
|
3660
|
+
end_time: z.ZodNumber;
|
|
3661
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3504
3662
|
total: z.ZodNumber;
|
|
3505
3663
|
limit: z.ZodNumber;
|
|
3506
3664
|
offset: z.ZodNumber;
|
|
@@ -3522,6 +3680,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
3522
3680
|
end_time: z.ZodNumber;
|
|
3523
3681
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
3524
3682
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3683
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3684
|
+
index: z.ZodNumber;
|
|
3685
|
+
start_time: z.ZodNumber;
|
|
3686
|
+
end_time: z.ZodNumber;
|
|
3687
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3688
|
+
index: z.ZodNumber;
|
|
3689
|
+
start_time: z.ZodNumber;
|
|
3690
|
+
end_time: z.ZodNumber;
|
|
3691
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3692
|
+
index: z.ZodNumber;
|
|
3693
|
+
start_time: z.ZodNumber;
|
|
3694
|
+
end_time: z.ZodNumber;
|
|
3695
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3525
3696
|
total: z.ZodNumber;
|
|
3526
3697
|
limit: z.ZodNumber;
|
|
3527
3698
|
offset: z.ZodNumber;
|
|
@@ -3732,6 +3903,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
3732
3903
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
3733
3904
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3734
3905
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
3906
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
3735
3907
|
data: z.ZodOptional<z.ZodObject<{
|
|
3736
3908
|
object: z.ZodLiteral<"list">;
|
|
3737
3909
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3750,6 +3922,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
3750
3922
|
end_time: z.ZodNumber;
|
|
3751
3923
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
3752
3924
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3925
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3926
|
+
index: z.ZodNumber;
|
|
3927
|
+
start_time: z.ZodNumber;
|
|
3928
|
+
end_time: z.ZodNumber;
|
|
3929
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3930
|
+
index: z.ZodNumber;
|
|
3931
|
+
start_time: z.ZodNumber;
|
|
3932
|
+
end_time: z.ZodNumber;
|
|
3933
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3934
|
+
index: z.ZodNumber;
|
|
3935
|
+
start_time: z.ZodNumber;
|
|
3936
|
+
end_time: z.ZodNumber;
|
|
3937
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3753
3938
|
total: z.ZodNumber;
|
|
3754
3939
|
limit: z.ZodNumber;
|
|
3755
3940
|
offset: z.ZodNumber;
|
|
@@ -3771,6 +3956,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
3771
3956
|
end_time: z.ZodNumber;
|
|
3772
3957
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
3773
3958
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3959
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3960
|
+
index: z.ZodNumber;
|
|
3961
|
+
start_time: z.ZodNumber;
|
|
3962
|
+
end_time: z.ZodNumber;
|
|
3963
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3964
|
+
index: z.ZodNumber;
|
|
3965
|
+
start_time: z.ZodNumber;
|
|
3966
|
+
end_time: z.ZodNumber;
|
|
3967
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3968
|
+
index: z.ZodNumber;
|
|
3969
|
+
start_time: z.ZodNumber;
|
|
3970
|
+
end_time: z.ZodNumber;
|
|
3971
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3774
3972
|
total: z.ZodNumber;
|
|
3775
3973
|
limit: z.ZodNumber;
|
|
3776
3974
|
offset: z.ZodNumber;
|
|
@@ -3792,6 +3990,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
3792
3990
|
end_time: z.ZodNumber;
|
|
3793
3991
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
3794
3992
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3993
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3994
|
+
index: z.ZodNumber;
|
|
3995
|
+
start_time: z.ZodNumber;
|
|
3996
|
+
end_time: z.ZodNumber;
|
|
3997
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3998
|
+
index: z.ZodNumber;
|
|
3999
|
+
start_time: z.ZodNumber;
|
|
4000
|
+
end_time: z.ZodNumber;
|
|
4001
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4002
|
+
index: z.ZodNumber;
|
|
4003
|
+
start_time: z.ZodNumber;
|
|
4004
|
+
end_time: z.ZodNumber;
|
|
4005
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
3795
4006
|
total: z.ZodNumber;
|
|
3796
4007
|
limit: z.ZodNumber;
|
|
3797
4008
|
offset: z.ZodNumber;
|
|
@@ -4002,6 +4213,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
4002
4213
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
4003
4214
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4004
4215
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
4216
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
4005
4217
|
data: z.ZodOptional<z.ZodObject<{
|
|
4006
4218
|
object: z.ZodLiteral<"list">;
|
|
4007
4219
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -4020,6 +4232,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
4020
4232
|
end_time: z.ZodNumber;
|
|
4021
4233
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
4022
4234
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
4235
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4236
|
+
index: z.ZodNumber;
|
|
4237
|
+
start_time: z.ZodNumber;
|
|
4238
|
+
end_time: z.ZodNumber;
|
|
4239
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4240
|
+
index: z.ZodNumber;
|
|
4241
|
+
start_time: z.ZodNumber;
|
|
4242
|
+
end_time: z.ZodNumber;
|
|
4243
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4244
|
+
index: z.ZodNumber;
|
|
4245
|
+
start_time: z.ZodNumber;
|
|
4246
|
+
end_time: z.ZodNumber;
|
|
4247
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
4023
4248
|
total: z.ZodNumber;
|
|
4024
4249
|
limit: z.ZodNumber;
|
|
4025
4250
|
offset: z.ZodNumber;
|
|
@@ -4041,6 +4266,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
4041
4266
|
end_time: z.ZodNumber;
|
|
4042
4267
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
4043
4268
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
4269
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4270
|
+
index: z.ZodNumber;
|
|
4271
|
+
start_time: z.ZodNumber;
|
|
4272
|
+
end_time: z.ZodNumber;
|
|
4273
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4274
|
+
index: z.ZodNumber;
|
|
4275
|
+
start_time: z.ZodNumber;
|
|
4276
|
+
end_time: z.ZodNumber;
|
|
4277
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4278
|
+
index: z.ZodNumber;
|
|
4279
|
+
start_time: z.ZodNumber;
|
|
4280
|
+
end_time: z.ZodNumber;
|
|
4281
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
4044
4282
|
total: z.ZodNumber;
|
|
4045
4283
|
limit: z.ZodNumber;
|
|
4046
4284
|
offset: z.ZodNumber;
|
|
@@ -4062,6 +4300,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
4062
4300
|
end_time: z.ZodNumber;
|
|
4063
4301
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
4064
4302
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
4303
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4304
|
+
index: z.ZodNumber;
|
|
4305
|
+
start_time: z.ZodNumber;
|
|
4306
|
+
end_time: z.ZodNumber;
|
|
4307
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4308
|
+
index: z.ZodNumber;
|
|
4309
|
+
start_time: z.ZodNumber;
|
|
4310
|
+
end_time: z.ZodNumber;
|
|
4311
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4312
|
+
index: z.ZodNumber;
|
|
4313
|
+
start_time: z.ZodNumber;
|
|
4314
|
+
end_time: z.ZodNumber;
|
|
4315
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
4065
4316
|
total: z.ZodNumber;
|
|
4066
4317
|
limit: z.ZodNumber;
|
|
4067
4318
|
offset: z.ZodNumber;
|
package/dist/generated/Files.js
CHANGED
|
@@ -16,10 +16,28 @@ const FileList = zod_1.z
|
|
|
16
16
|
})
|
|
17
17
|
.strict()
|
|
18
18
|
.passthrough();
|
|
19
|
+
const SegmentationListItem = zod_1.z
|
|
20
|
+
.object({
|
|
21
|
+
segmentation_id: zod_1.z.string().uuid(),
|
|
22
|
+
status: zod_1.z.enum([
|
|
23
|
+
"pending",
|
|
24
|
+
"processing",
|
|
25
|
+
"completed",
|
|
26
|
+
"failed",
|
|
27
|
+
"not_applicable",
|
|
28
|
+
]),
|
|
29
|
+
created_at: zod_1.z.number().gte(0),
|
|
30
|
+
file_id: zod_1.z.string().uuid(),
|
|
31
|
+
segmentation_config: common_2.SegmentationConfig,
|
|
32
|
+
thumbnails_config: common_2.ThumbnailsConfig,
|
|
33
|
+
total_segments: zod_1.z.number().gte(0).optional(),
|
|
34
|
+
})
|
|
35
|
+
.strict()
|
|
36
|
+
.passthrough();
|
|
19
37
|
const SegmentationList = zod_1.z
|
|
20
38
|
.object({
|
|
21
39
|
object: zod_1.z.literal("list"),
|
|
22
|
-
data: zod_1.z.array(
|
|
40
|
+
data: zod_1.z.array(SegmentationListItem),
|
|
23
41
|
total: zod_1.z.number().int(),
|
|
24
42
|
limit: zod_1.z.number().int(),
|
|
25
43
|
offset: zod_1.z.number().int(),
|
|
@@ -70,6 +88,7 @@ const createFileSegmentation_Body = common_2.SegmentationConfig;
|
|
|
70
88
|
const createFileFrameExtraction_Body = common_2.FrameExtractionConfig;
|
|
71
89
|
exports.schemas = {
|
|
72
90
|
FileList,
|
|
91
|
+
SegmentationListItem,
|
|
73
92
|
SegmentationList,
|
|
74
93
|
FrameExtractionList,
|
|
75
94
|
FileUpload,
|
|
@@ -7,10 +7,12 @@ type SearchResponse = {
|
|
|
7
7
|
scope: "file" | "segment" | "face";
|
|
8
8
|
group_by_key?: "file" | undefined;
|
|
9
9
|
group_count?: number | undefined;
|
|
10
|
+
search_modalities?: SearchModalities | undefined;
|
|
10
11
|
results: Array<FileSearchResult | SegmentSearchResult | FaceSearchResult | SegmentGroupResult | FaceGroupResult>;
|
|
11
12
|
total: number;
|
|
12
13
|
limit: number;
|
|
13
14
|
};
|
|
15
|
+
type SearchModalities = Array<"general_content" | "speech_lexical" | "ocr_lexical">;
|
|
14
16
|
type FileSearchResult = {
|
|
15
17
|
type: "file";
|
|
16
18
|
file_id: string;
|
|
@@ -98,6 +100,7 @@ type SearchFilterCriteria = {
|
|
|
98
100
|
};
|
|
99
101
|
declare const SearchFilterCriteria: z.ZodType<SearchFilterCriteria>;
|
|
100
102
|
declare const SearchFilter: z.ZodType<SearchFilter>;
|
|
103
|
+
declare const SearchModalities: z.ZodArray<z.ZodEnum<["general_content", "speech_lexical", "ocr_lexical"]>, "many">;
|
|
101
104
|
declare const FileSearchResult: z.ZodType<FileSearchResult>;
|
|
102
105
|
declare const SegmentSearchResult: z.ZodType<SegmentSearchResult>;
|
|
103
106
|
declare const FaceSearchResult: z.ZodType<FaceSearchResult>;
|
|
@@ -123,6 +126,7 @@ export declare const schemas: {
|
|
|
123
126
|
path: "bytes" | "filename" | "uri" | "created_at" | "id";
|
|
124
127
|
}>>;
|
|
125
128
|
}>>;
|
|
129
|
+
SearchModalities: z.ZodArray<z.ZodEnum<["general_content", "speech_lexical", "ocr_lexical"]>, "many">;
|
|
126
130
|
SearchRequest: z.ZodType<Partial<{
|
|
127
131
|
scope: "file" | "segment" | "face";
|
|
128
132
|
collections: Array<string>;
|
|
@@ -136,6 +140,7 @@ export declare const schemas: {
|
|
|
136
140
|
threshold: number;
|
|
137
141
|
group_by_key: "file";
|
|
138
142
|
sort_by: "score" | "item_count";
|
|
143
|
+
search_modalities: SearchModalities;
|
|
139
144
|
}>, z.ZodTypeDef, Partial<{
|
|
140
145
|
scope: "file" | "segment" | "face";
|
|
141
146
|
collections: Array<string>;
|
|
@@ -149,6 +154,7 @@ export declare const schemas: {
|
|
|
149
154
|
threshold: number;
|
|
150
155
|
group_by_key: "file";
|
|
151
156
|
sort_by: "score" | "item_count";
|
|
157
|
+
search_modalities: SearchModalities;
|
|
152
158
|
}>>;
|
|
153
159
|
FileSearchResult: z.ZodType<FileSearchResult, z.ZodTypeDef, FileSearchResult>;
|
|
154
160
|
SegmentSearchResult: z.ZodType<SegmentSearchResult, z.ZodTypeDef, SegmentSearchResult>;
|
|
@@ -180,6 +186,7 @@ export declare const SearchApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
180
186
|
threshold: number;
|
|
181
187
|
group_by_key: "file";
|
|
182
188
|
sort_by: "score" | "item_count";
|
|
189
|
+
search_modalities: SearchModalities;
|
|
183
190
|
}>, z.ZodTypeDef, Partial<{
|
|
184
191
|
scope: "file" | "segment" | "face";
|
|
185
192
|
collections: Array<string>;
|
|
@@ -193,6 +200,7 @@ export declare const SearchApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
193
200
|
threshold: number;
|
|
194
201
|
group_by_key: "file";
|
|
195
202
|
sort_by: "score" | "item_count";
|
|
203
|
+
search_modalities: SearchModalities;
|
|
196
204
|
}>>;
|
|
197
205
|
}];
|
|
198
206
|
response: z.ZodType<SearchResponse, z.ZodTypeDef, SearchResponse>;
|
|
@@ -251,6 +259,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
251
259
|
threshold: number;
|
|
252
260
|
group_by_key: "file";
|
|
253
261
|
sort_by: "score" | "item_count";
|
|
262
|
+
search_modalities: SearchModalities;
|
|
254
263
|
}>, z.ZodTypeDef, Partial<{
|
|
255
264
|
scope: "file" | "segment" | "face";
|
|
256
265
|
collections: Array<string>;
|
|
@@ -264,6 +273,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
264
273
|
threshold: number;
|
|
265
274
|
group_by_key: "file";
|
|
266
275
|
sort_by: "score" | "item_count";
|
|
276
|
+
search_modalities: SearchModalities;
|
|
267
277
|
}>>;
|
|
268
278
|
}];
|
|
269
279
|
response: z.ZodType<SearchResponse, z.ZodTypeDef, SearchResponse>;
|
package/dist/generated/Search.js
CHANGED
|
@@ -41,6 +41,7 @@ const SearchFilter = zod_1.z
|
|
|
41
41
|
.partial()
|
|
42
42
|
.strict()
|
|
43
43
|
.passthrough();
|
|
44
|
+
const SearchModalities = zod_1.z.array(zod_1.z.enum(["general_content", "speech_lexical", "ocr_lexical"]));
|
|
44
45
|
const SearchRequest = zod_1.z
|
|
45
46
|
.object({
|
|
46
47
|
scope: zod_1.z.enum(["file", "segment", "face"]),
|
|
@@ -50,12 +51,16 @@ const SearchRequest = zod_1.z
|
|
|
50
51
|
.object({ url: zod_1.z.string(), base64: zod_1.z.string() })
|
|
51
52
|
.partial()
|
|
52
53
|
.strict()
|
|
53
|
-
.passthrough()
|
|
54
|
-
|
|
54
|
+
.passthrough()
|
|
55
|
+
.refine((obj) => obj.url !== undefined || obj.base64 !== undefined, {
|
|
56
|
+
message: "source_image must have at least one of 'url' or 'base64'",
|
|
57
|
+
}),
|
|
58
|
+
limit: zod_1.z.number().int().gte(1).default(10),
|
|
55
59
|
filter: SearchFilter,
|
|
56
60
|
threshold: zod_1.z.number(),
|
|
57
61
|
group_by_key: zod_1.z.literal("file"),
|
|
58
62
|
sort_by: zod_1.z.enum(["score", "item_count"]).default("score"),
|
|
63
|
+
search_modalities: SearchModalities,
|
|
59
64
|
})
|
|
60
65
|
.partial()
|
|
61
66
|
.strict()
|
|
@@ -175,6 +180,7 @@ const SearchResponse = zod_1.z
|
|
|
175
180
|
scope: zod_1.z.enum(["file", "segment", "face"]),
|
|
176
181
|
group_by_key: zod_1.z.literal("file").optional(),
|
|
177
182
|
group_count: zod_1.z.number().int().optional(),
|
|
183
|
+
search_modalities: SearchModalities.optional(),
|
|
178
184
|
results: zod_1.z.array(zod_1.z.union([
|
|
179
185
|
FileSearchResult,
|
|
180
186
|
SegmentSearchResult,
|
|
@@ -190,6 +196,7 @@ const SearchResponse = zod_1.z
|
|
|
190
196
|
exports.schemas = {
|
|
191
197
|
SearchFilterCriteria,
|
|
192
198
|
SearchFilter,
|
|
199
|
+
SearchModalities,
|
|
193
200
|
SearchRequest,
|
|
194
201
|
FileSearchResult,
|
|
195
202
|
SegmentSearchResult,
|