@aviaryhq/cloudglue-js 0.4.6 → 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 +8 -1
- 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
|
@@ -225,6 +225,7 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
225
225
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
226
226
|
}, z.ZodTypeAny, "passthrough">>;
|
|
227
227
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
228
229
|
data: z.ZodOptional<z.ZodObject<{
|
|
229
230
|
object: z.ZodLiteral<"list">;
|
|
230
231
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -243,6 +244,19 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
243
244
|
end_time: z.ZodNumber;
|
|
244
245
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
245
246
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
247
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
248
|
+
index: z.ZodNumber;
|
|
249
|
+
start_time: z.ZodNumber;
|
|
250
|
+
end_time: z.ZodNumber;
|
|
251
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
252
|
+
index: z.ZodNumber;
|
|
253
|
+
start_time: z.ZodNumber;
|
|
254
|
+
end_time: z.ZodNumber;
|
|
255
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
256
|
+
index: z.ZodNumber;
|
|
257
|
+
start_time: z.ZodNumber;
|
|
258
|
+
end_time: z.ZodNumber;
|
|
259
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
246
260
|
total: z.ZodNumber;
|
|
247
261
|
limit: z.ZodNumber;
|
|
248
262
|
offset: z.ZodNumber;
|
|
@@ -264,6 +278,19 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
264
278
|
end_time: z.ZodNumber;
|
|
265
279
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
266
280
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
281
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
282
|
+
index: z.ZodNumber;
|
|
283
|
+
start_time: z.ZodNumber;
|
|
284
|
+
end_time: z.ZodNumber;
|
|
285
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
286
|
+
index: z.ZodNumber;
|
|
287
|
+
start_time: z.ZodNumber;
|
|
288
|
+
end_time: z.ZodNumber;
|
|
289
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
290
|
+
index: z.ZodNumber;
|
|
291
|
+
start_time: z.ZodNumber;
|
|
292
|
+
end_time: z.ZodNumber;
|
|
293
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
267
294
|
total: z.ZodNumber;
|
|
268
295
|
limit: z.ZodNumber;
|
|
269
296
|
offset: z.ZodNumber;
|
|
@@ -285,6 +312,19 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
285
312
|
end_time: z.ZodNumber;
|
|
286
313
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
287
314
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
315
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
316
|
+
index: z.ZodNumber;
|
|
317
|
+
start_time: z.ZodNumber;
|
|
318
|
+
end_time: z.ZodNumber;
|
|
319
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
320
|
+
index: z.ZodNumber;
|
|
321
|
+
start_time: z.ZodNumber;
|
|
322
|
+
end_time: z.ZodNumber;
|
|
323
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
324
|
+
index: z.ZodNumber;
|
|
325
|
+
start_time: z.ZodNumber;
|
|
326
|
+
end_time: z.ZodNumber;
|
|
327
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
288
328
|
total: z.ZodNumber;
|
|
289
329
|
limit: z.ZodNumber;
|
|
290
330
|
offset: z.ZodNumber;
|
|
@@ -495,6 +535,7 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
495
535
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
496
536
|
}, z.ZodTypeAny, "passthrough">>;
|
|
497
537
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
538
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
498
539
|
data: z.ZodOptional<z.ZodObject<{
|
|
499
540
|
object: z.ZodLiteral<"list">;
|
|
500
541
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -513,6 +554,19 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
513
554
|
end_time: z.ZodNumber;
|
|
514
555
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
515
556
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
557
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
558
|
+
index: z.ZodNumber;
|
|
559
|
+
start_time: z.ZodNumber;
|
|
560
|
+
end_time: z.ZodNumber;
|
|
561
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
562
|
+
index: z.ZodNumber;
|
|
563
|
+
start_time: z.ZodNumber;
|
|
564
|
+
end_time: z.ZodNumber;
|
|
565
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
566
|
+
index: z.ZodNumber;
|
|
567
|
+
start_time: z.ZodNumber;
|
|
568
|
+
end_time: z.ZodNumber;
|
|
569
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
516
570
|
total: z.ZodNumber;
|
|
517
571
|
limit: z.ZodNumber;
|
|
518
572
|
offset: z.ZodNumber;
|
|
@@ -534,6 +588,19 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
534
588
|
end_time: z.ZodNumber;
|
|
535
589
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
536
590
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
591
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
592
|
+
index: z.ZodNumber;
|
|
593
|
+
start_time: z.ZodNumber;
|
|
594
|
+
end_time: z.ZodNumber;
|
|
595
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
596
|
+
index: z.ZodNumber;
|
|
597
|
+
start_time: z.ZodNumber;
|
|
598
|
+
end_time: z.ZodNumber;
|
|
599
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
600
|
+
index: z.ZodNumber;
|
|
601
|
+
start_time: z.ZodNumber;
|
|
602
|
+
end_time: z.ZodNumber;
|
|
603
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
537
604
|
total: z.ZodNumber;
|
|
538
605
|
limit: z.ZodNumber;
|
|
539
606
|
offset: z.ZodNumber;
|
|
@@ -555,6 +622,19 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
555
622
|
end_time: z.ZodNumber;
|
|
556
623
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
557
624
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
625
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
626
|
+
index: z.ZodNumber;
|
|
627
|
+
start_time: z.ZodNumber;
|
|
628
|
+
end_time: z.ZodNumber;
|
|
629
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
630
|
+
index: z.ZodNumber;
|
|
631
|
+
start_time: z.ZodNumber;
|
|
632
|
+
end_time: z.ZodNumber;
|
|
633
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
634
|
+
index: z.ZodNumber;
|
|
635
|
+
start_time: z.ZodNumber;
|
|
636
|
+
end_time: z.ZodNumber;
|
|
637
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
558
638
|
total: z.ZodNumber;
|
|
559
639
|
limit: z.ZodNumber;
|
|
560
640
|
offset: z.ZodNumber;
|
|
@@ -765,6 +845,7 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
765
845
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
766
846
|
}, z.ZodTypeAny, "passthrough">>;
|
|
767
847
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
848
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
768
849
|
data: z.ZodOptional<z.ZodObject<{
|
|
769
850
|
object: z.ZodLiteral<"list">;
|
|
770
851
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -783,6 +864,19 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
783
864
|
end_time: z.ZodNumber;
|
|
784
865
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
785
866
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
867
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
868
|
+
index: z.ZodNumber;
|
|
869
|
+
start_time: z.ZodNumber;
|
|
870
|
+
end_time: z.ZodNumber;
|
|
871
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
872
|
+
index: z.ZodNumber;
|
|
873
|
+
start_time: z.ZodNumber;
|
|
874
|
+
end_time: z.ZodNumber;
|
|
875
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
876
|
+
index: z.ZodNumber;
|
|
877
|
+
start_time: z.ZodNumber;
|
|
878
|
+
end_time: z.ZodNumber;
|
|
879
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
786
880
|
total: z.ZodNumber;
|
|
787
881
|
limit: z.ZodNumber;
|
|
788
882
|
offset: z.ZodNumber;
|
|
@@ -804,6 +898,19 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
804
898
|
end_time: z.ZodNumber;
|
|
805
899
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
806
900
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
901
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
902
|
+
index: z.ZodNumber;
|
|
903
|
+
start_time: z.ZodNumber;
|
|
904
|
+
end_time: z.ZodNumber;
|
|
905
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
906
|
+
index: z.ZodNumber;
|
|
907
|
+
start_time: z.ZodNumber;
|
|
908
|
+
end_time: z.ZodNumber;
|
|
909
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
910
|
+
index: z.ZodNumber;
|
|
911
|
+
start_time: z.ZodNumber;
|
|
912
|
+
end_time: z.ZodNumber;
|
|
913
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
807
914
|
total: z.ZodNumber;
|
|
808
915
|
limit: z.ZodNumber;
|
|
809
916
|
offset: z.ZodNumber;
|
|
@@ -825,6 +932,19 @@ export declare const SegmentationsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
825
932
|
end_time: z.ZodNumber;
|
|
826
933
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
827
934
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
935
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
936
|
+
index: z.ZodNumber;
|
|
937
|
+
start_time: z.ZodNumber;
|
|
938
|
+
end_time: z.ZodNumber;
|
|
939
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
940
|
+
index: z.ZodNumber;
|
|
941
|
+
start_time: z.ZodNumber;
|
|
942
|
+
end_time: z.ZodNumber;
|
|
943
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
944
|
+
index: z.ZodNumber;
|
|
945
|
+
start_time: z.ZodNumber;
|
|
946
|
+
end_time: z.ZodNumber;
|
|
947
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
828
948
|
total: z.ZodNumber;
|
|
829
949
|
limit: z.ZodNumber;
|
|
830
950
|
offset: z.ZodNumber;
|
|
@@ -1233,6 +1353,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1233
1353
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
1234
1354
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1235
1355
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
1356
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
1236
1357
|
data: z.ZodOptional<z.ZodObject<{
|
|
1237
1358
|
object: z.ZodLiteral<"list">;
|
|
1238
1359
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1251,6 +1372,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1251
1372
|
end_time: z.ZodNumber;
|
|
1252
1373
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1253
1374
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1375
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1376
|
+
index: z.ZodNumber;
|
|
1377
|
+
start_time: z.ZodNumber;
|
|
1378
|
+
end_time: z.ZodNumber;
|
|
1379
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1380
|
+
index: z.ZodNumber;
|
|
1381
|
+
start_time: z.ZodNumber;
|
|
1382
|
+
end_time: z.ZodNumber;
|
|
1383
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1384
|
+
index: z.ZodNumber;
|
|
1385
|
+
start_time: z.ZodNumber;
|
|
1386
|
+
end_time: z.ZodNumber;
|
|
1387
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1254
1388
|
total: z.ZodNumber;
|
|
1255
1389
|
limit: z.ZodNumber;
|
|
1256
1390
|
offset: z.ZodNumber;
|
|
@@ -1272,6 +1406,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1272
1406
|
end_time: z.ZodNumber;
|
|
1273
1407
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1274
1408
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1409
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1410
|
+
index: z.ZodNumber;
|
|
1411
|
+
start_time: z.ZodNumber;
|
|
1412
|
+
end_time: z.ZodNumber;
|
|
1413
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1414
|
+
index: z.ZodNumber;
|
|
1415
|
+
start_time: z.ZodNumber;
|
|
1416
|
+
end_time: z.ZodNumber;
|
|
1417
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1418
|
+
index: z.ZodNumber;
|
|
1419
|
+
start_time: z.ZodNumber;
|
|
1420
|
+
end_time: z.ZodNumber;
|
|
1421
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1275
1422
|
total: z.ZodNumber;
|
|
1276
1423
|
limit: z.ZodNumber;
|
|
1277
1424
|
offset: z.ZodNumber;
|
|
@@ -1293,6 +1440,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1293
1440
|
end_time: z.ZodNumber;
|
|
1294
1441
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1295
1442
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1443
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1444
|
+
index: z.ZodNumber;
|
|
1445
|
+
start_time: z.ZodNumber;
|
|
1446
|
+
end_time: z.ZodNumber;
|
|
1447
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1448
|
+
index: z.ZodNumber;
|
|
1449
|
+
start_time: z.ZodNumber;
|
|
1450
|
+
end_time: z.ZodNumber;
|
|
1451
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1452
|
+
index: z.ZodNumber;
|
|
1453
|
+
start_time: z.ZodNumber;
|
|
1454
|
+
end_time: z.ZodNumber;
|
|
1455
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1296
1456
|
total: z.ZodNumber;
|
|
1297
1457
|
limit: z.ZodNumber;
|
|
1298
1458
|
offset: z.ZodNumber;
|
|
@@ -1503,6 +1663,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1503
1663
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
1504
1664
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1505
1665
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
1666
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
1506
1667
|
data: z.ZodOptional<z.ZodObject<{
|
|
1507
1668
|
object: z.ZodLiteral<"list">;
|
|
1508
1669
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1521,6 +1682,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1521
1682
|
end_time: z.ZodNumber;
|
|
1522
1683
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1523
1684
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1685
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1686
|
+
index: z.ZodNumber;
|
|
1687
|
+
start_time: z.ZodNumber;
|
|
1688
|
+
end_time: z.ZodNumber;
|
|
1689
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1690
|
+
index: z.ZodNumber;
|
|
1691
|
+
start_time: z.ZodNumber;
|
|
1692
|
+
end_time: z.ZodNumber;
|
|
1693
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1694
|
+
index: z.ZodNumber;
|
|
1695
|
+
start_time: z.ZodNumber;
|
|
1696
|
+
end_time: z.ZodNumber;
|
|
1697
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1524
1698
|
total: z.ZodNumber;
|
|
1525
1699
|
limit: z.ZodNumber;
|
|
1526
1700
|
offset: z.ZodNumber;
|
|
@@ -1542,6 +1716,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1542
1716
|
end_time: z.ZodNumber;
|
|
1543
1717
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1544
1718
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1719
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1720
|
+
index: z.ZodNumber;
|
|
1721
|
+
start_time: z.ZodNumber;
|
|
1722
|
+
end_time: z.ZodNumber;
|
|
1723
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1724
|
+
index: z.ZodNumber;
|
|
1725
|
+
start_time: z.ZodNumber;
|
|
1726
|
+
end_time: z.ZodNumber;
|
|
1727
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1728
|
+
index: z.ZodNumber;
|
|
1729
|
+
start_time: z.ZodNumber;
|
|
1730
|
+
end_time: z.ZodNumber;
|
|
1731
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1545
1732
|
total: z.ZodNumber;
|
|
1546
1733
|
limit: z.ZodNumber;
|
|
1547
1734
|
offset: z.ZodNumber;
|
|
@@ -1563,6 +1750,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1563
1750
|
end_time: z.ZodNumber;
|
|
1564
1751
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1565
1752
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1753
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1754
|
+
index: z.ZodNumber;
|
|
1755
|
+
start_time: z.ZodNumber;
|
|
1756
|
+
end_time: z.ZodNumber;
|
|
1757
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1758
|
+
index: z.ZodNumber;
|
|
1759
|
+
start_time: z.ZodNumber;
|
|
1760
|
+
end_time: z.ZodNumber;
|
|
1761
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1762
|
+
index: z.ZodNumber;
|
|
1763
|
+
start_time: z.ZodNumber;
|
|
1764
|
+
end_time: z.ZodNumber;
|
|
1765
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1566
1766
|
total: z.ZodNumber;
|
|
1567
1767
|
limit: z.ZodNumber;
|
|
1568
1768
|
offset: z.ZodNumber;
|
|
@@ -1773,6 +1973,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1773
1973
|
enable_segment_thumbnails: z.ZodBoolean;
|
|
1774
1974
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1775
1975
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
1976
|
+
total_shots: z.ZodOptional<z.ZodNumber>;
|
|
1776
1977
|
data: z.ZodOptional<z.ZodObject<{
|
|
1777
1978
|
object: z.ZodLiteral<"list">;
|
|
1778
1979
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1791,6 +1992,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1791
1992
|
end_time: z.ZodNumber;
|
|
1792
1993
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1793
1994
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1995
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1996
|
+
index: z.ZodNumber;
|
|
1997
|
+
start_time: z.ZodNumber;
|
|
1998
|
+
end_time: z.ZodNumber;
|
|
1999
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2000
|
+
index: z.ZodNumber;
|
|
2001
|
+
start_time: z.ZodNumber;
|
|
2002
|
+
end_time: z.ZodNumber;
|
|
2003
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2004
|
+
index: z.ZodNumber;
|
|
2005
|
+
start_time: z.ZodNumber;
|
|
2006
|
+
end_time: z.ZodNumber;
|
|
2007
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1794
2008
|
total: z.ZodNumber;
|
|
1795
2009
|
limit: z.ZodNumber;
|
|
1796
2010
|
offset: z.ZodNumber;
|
|
@@ -1812,6 +2026,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1812
2026
|
end_time: z.ZodNumber;
|
|
1813
2027
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1814
2028
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
2029
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2030
|
+
index: z.ZodNumber;
|
|
2031
|
+
start_time: z.ZodNumber;
|
|
2032
|
+
end_time: z.ZodNumber;
|
|
2033
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2034
|
+
index: z.ZodNumber;
|
|
2035
|
+
start_time: z.ZodNumber;
|
|
2036
|
+
end_time: z.ZodNumber;
|
|
2037
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2038
|
+
index: z.ZodNumber;
|
|
2039
|
+
start_time: z.ZodNumber;
|
|
2040
|
+
end_time: z.ZodNumber;
|
|
2041
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1815
2042
|
total: z.ZodNumber;
|
|
1816
2043
|
limit: z.ZodNumber;
|
|
1817
2044
|
offset: z.ZodNumber;
|
|
@@ -1833,6 +2060,19 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
1833
2060
|
end_time: z.ZodNumber;
|
|
1834
2061
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1835
2062
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
2063
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2064
|
+
index: z.ZodNumber;
|
|
2065
|
+
start_time: z.ZodNumber;
|
|
2066
|
+
end_time: z.ZodNumber;
|
|
2067
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2068
|
+
index: z.ZodNumber;
|
|
2069
|
+
start_time: z.ZodNumber;
|
|
2070
|
+
end_time: z.ZodNumber;
|
|
2071
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2072
|
+
index: z.ZodNumber;
|
|
2073
|
+
start_time: z.ZodNumber;
|
|
2074
|
+
end_time: z.ZodNumber;
|
|
2075
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
1836
2076
|
total: z.ZodNumber;
|
|
1837
2077
|
limit: z.ZodNumber;
|
|
1838
2078
|
offset: z.ZodNumber;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ZodiosOptions } from "@zodios/core";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { Shot } from "./common";
|
|
3
4
|
type Segments = {
|
|
4
5
|
job_id: string;
|
|
5
6
|
file_id: string;
|
|
@@ -10,7 +11,9 @@ type Segments = {
|
|
|
10
11
|
shot_config?: ShotConfig | undefined;
|
|
11
12
|
narrative_config?: NarrativeConfig | undefined;
|
|
12
13
|
total_segments?: number | undefined;
|
|
14
|
+
total_shots?: number | undefined;
|
|
13
15
|
segments?: Array<Segment> | undefined;
|
|
16
|
+
shots?: Array<Shot> | undefined;
|
|
14
17
|
};
|
|
15
18
|
type NewSegments = {
|
|
16
19
|
url: string;
|
|
@@ -27,12 +30,15 @@ type NarrativeConfig = Partial<{
|
|
|
27
30
|
prompt: string;
|
|
28
31
|
strategy: "comprehensive" | "balanced";
|
|
29
32
|
number_of_chapters: number;
|
|
33
|
+
min_chapters: number;
|
|
34
|
+
max_chapters: number;
|
|
30
35
|
}>;
|
|
31
36
|
type Segment = {
|
|
32
37
|
start_time: number;
|
|
33
38
|
end_time: number;
|
|
34
39
|
description?: string | undefined;
|
|
35
40
|
thumbnail_url?: string | undefined;
|
|
41
|
+
shot_index?: number | undefined;
|
|
36
42
|
};
|
|
37
43
|
type SegmentsList = {
|
|
38
44
|
object: "list";
|
|
@@ -72,10 +78,14 @@ export declare const schemas: {
|
|
|
72
78
|
prompt: string;
|
|
73
79
|
strategy: "comprehensive" | "balanced";
|
|
74
80
|
number_of_chapters: number;
|
|
81
|
+
min_chapters: number;
|
|
82
|
+
max_chapters: number;
|
|
75
83
|
}>, z.ZodTypeDef, Partial<{
|
|
76
84
|
prompt: string;
|
|
77
85
|
strategy: "comprehensive" | "balanced";
|
|
78
86
|
number_of_chapters: number;
|
|
87
|
+
min_chapters: number;
|
|
88
|
+
max_chapters: number;
|
|
79
89
|
}>>;
|
|
80
90
|
NewSegments: z.ZodType<NewSegments, z.ZodTypeDef, NewSegments>;
|
|
81
91
|
Segment: z.ZodType<Segment, z.ZodTypeDef, Segment>;
|
|
@@ -87,7 +97,7 @@ export declare const SegmentsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
87
97
|
method: "post";
|
|
88
98
|
path: "/segments";
|
|
89
99
|
alias: "createSegments";
|
|
90
|
-
description: "Create intelligent video segments based on shot detection or narrative analysis.\n\n
|
|
100
|
+
description: "Create intelligent video segments based on shot detection or narrative analysis.\n\n**Note: YouTube URLs are supported for narrative-based segmentation only.** Shot-based segmentation requires direct video file access. Use Cloudglue Files, HTTP URLs, or files from data connectors for shot-based segmentation.\n\n**Narrative Segmentation Strategies:**\n\n- **comprehensive** (default for non-YouTube videos): Uses a VLM to deeply analyze logical segments of video. Only available for non-YouTube videos.\n- **balanced** (default for YouTube videos): Balanced analysis approach using multiple modalities. Supports YouTube URLs.\n\n**YouTube URLs**: Automatically use the 'balanced' strategy. The strategy field is ignored for YouTube URLs, and other strategies will be rejected with an error.\n\n**Chapter Count Parameters:**\n\n- **number_of_chapters**: Target number of chapters. If only this is provided, min_chapters and max_chapters are calculated automatically.\n- **min_chapters**: Minimum number of chapters. If provided with number_of_chapters and max, validates min is less than or equal to number_of_chapters which is less than or equal to max.\n- **max_chapters**: Maximum number of chapters. If provided with number_of_chapters and min, validates min is less than or equal to number_of_chapters which is less than or equal to max.\n- If none are provided, chapter counts are calculated automatically based on video duration.";
|
|
91
101
|
requestFormat: "json";
|
|
92
102
|
parameters: [{
|
|
93
103
|
name: "body";
|
|
@@ -271,7 +281,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
271
281
|
method: "post";
|
|
272
282
|
path: "/segments";
|
|
273
283
|
alias: "createSegments";
|
|
274
|
-
description: "Create intelligent video segments based on shot detection or narrative analysis.\n\n
|
|
284
|
+
description: "Create intelligent video segments based on shot detection or narrative analysis.\n\n**Note: YouTube URLs are supported for narrative-based segmentation only.** Shot-based segmentation requires direct video file access. Use Cloudglue Files, HTTP URLs, or files from data connectors for shot-based segmentation.\n\n**Narrative Segmentation Strategies:**\n\n- **comprehensive** (default for non-YouTube videos): Uses a VLM to deeply analyze logical segments of video. Only available for non-YouTube videos.\n- **balanced** (default for YouTube videos): Balanced analysis approach using multiple modalities. Supports YouTube URLs.\n\n**YouTube URLs**: Automatically use the 'balanced' strategy. The strategy field is ignored for YouTube URLs, and other strategies will be rejected with an error.\n\n**Chapter Count Parameters:**\n\n- **number_of_chapters**: Target number of chapters. If only this is provided, min_chapters and max_chapters are calculated automatically.\n- **min_chapters**: Minimum number of chapters. If provided with number_of_chapters and max, validates min is less than or equal to number_of_chapters which is less than or equal to max.\n- **max_chapters**: Maximum number of chapters. If provided with number_of_chapters and min, validates min is less than or equal to number_of_chapters which is less than or equal to max.\n- If none are provided, chapter counts are calculated automatically based on video duration.";
|
|
275
285
|
requestFormat: "json";
|
|
276
286
|
parameters: [{
|
|
277
287
|
name: "body";
|
|
@@ -4,6 +4,7 @@ exports.SegmentsApi = exports.schemas = void 0;
|
|
|
4
4
|
exports.createApiClient = createApiClient;
|
|
5
5
|
const core_1 = require("@zodios/core");
|
|
6
6
|
const zod_1 = require("zod");
|
|
7
|
+
const common_1 = require("./common");
|
|
7
8
|
const ShotConfig = zod_1.z
|
|
8
9
|
.object({
|
|
9
10
|
detector: zod_1.z.enum(["content", "adaptive"]).default("adaptive"),
|
|
@@ -18,6 +19,8 @@ const NarrativeConfig = zod_1.z
|
|
|
18
19
|
prompt: zod_1.z.string(),
|
|
19
20
|
strategy: zod_1.z.enum(["comprehensive", "balanced"]).default("balanced"),
|
|
20
21
|
number_of_chapters: zod_1.z.number().int().gte(1),
|
|
22
|
+
min_chapters: zod_1.z.number().int().gte(1),
|
|
23
|
+
max_chapters: zod_1.z.number().int().gte(1),
|
|
21
24
|
})
|
|
22
25
|
.partial()
|
|
23
26
|
.strict()
|
|
@@ -37,6 +40,7 @@ const Segment = zod_1.z
|
|
|
37
40
|
end_time: zod_1.z.number().gte(0),
|
|
38
41
|
description: zod_1.z.string().optional(),
|
|
39
42
|
thumbnail_url: zod_1.z.string().url().optional(),
|
|
43
|
+
shot_index: zod_1.z.number().int().optional(),
|
|
40
44
|
})
|
|
41
45
|
.strict()
|
|
42
46
|
.passthrough();
|
|
@@ -51,7 +55,9 @@ const Segments = zod_1.z
|
|
|
51
55
|
shot_config: ShotConfig.optional(),
|
|
52
56
|
narrative_config: NarrativeConfig.optional(),
|
|
53
57
|
total_segments: zod_1.z.number().int().gte(0).optional(),
|
|
58
|
+
total_shots: zod_1.z.number().int().gte(0).optional(),
|
|
54
59
|
segments: zod_1.z.array(Segment).optional(),
|
|
60
|
+
shots: zod_1.z.array(common_1.Shot).optional(),
|
|
55
61
|
})
|
|
56
62
|
.strict()
|
|
57
63
|
.passthrough();
|
|
@@ -94,17 +100,21 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
94
100
|
alias: "createSegments",
|
|
95
101
|
description: `Create intelligent video segments based on shot detection or narrative analysis.
|
|
96
102
|
|
|
97
|
-
|
|
103
|
+
**Note: YouTube URLs are supported for narrative-based segmentation only.** Shot-based segmentation requires direct video file access. Use Cloudglue Files, HTTP URLs, or files from data connectors for shot-based segmentation.
|
|
98
104
|
|
|
99
105
|
**Narrative Segmentation Strategies:**
|
|
100
106
|
|
|
101
|
-
|
|
102
|
-
|
|
107
|
+
- **comprehensive** (default for non-YouTube videos): Uses a VLM to deeply analyze logical segments of video. Only available for non-YouTube videos.
|
|
108
|
+
- **balanced** (default for YouTube videos): Balanced analysis approach using multiple modalities. Supports YouTube URLs.
|
|
103
109
|
|
|
104
|
-
|
|
105
|
-
Only available for non-YouTube videos.
|
|
110
|
+
**YouTube URLs**: Automatically use the 'balanced' strategy. The strategy field is ignored for YouTube URLs, and other strategies will be rejected with an error.
|
|
106
111
|
|
|
107
|
-
**
|
|
112
|
+
**Chapter Count Parameters:**
|
|
113
|
+
|
|
114
|
+
- **number_of_chapters**: Target number of chapters. If only this is provided, min_chapters and max_chapters are calculated automatically.
|
|
115
|
+
- **min_chapters**: Minimum number of chapters. If provided with number_of_chapters and max, validates min is less than or equal to number_of_chapters which is less than or equal to max.
|
|
116
|
+
- **max_chapters**: Maximum number of chapters. If provided with number_of_chapters and min, validates min is less than or equal to number_of_chapters which is less than or equal to max.
|
|
117
|
+
- If none are provided, chapter counts are calculated automatically based on video duration.`,
|
|
108
118
|
requestFormat: "json",
|
|
109
119
|
parameters: [
|
|
110
120
|
{
|