@aviaryhq/cloudglue-js 0.1.6 → 0.1.8
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/Collections.d.ts +6 -1
- package/dist/generated/Collections.js +11 -3
- package/dist/generated/Extract.d.ts +2 -0
- package/dist/generated/Extract.js +3 -1
- package/dist/generated/Files.d.ts +492 -36
- package/dist/generated/Files.js +51 -1
- package/dist/generated/Segmentations.d.ts +366 -36
- package/dist/generated/Segmentations.js +43 -0
- package/dist/generated/Transcribe.d.ts +2 -0
- package/dist/generated/Transcribe.js +3 -1
- package/dist/generated/common.d.ts +190 -20
- package/dist/generated/common.js +32 -3
- package/dist/src/client.d.ts +139 -12
- package/dist/src/client.js +35 -1
- package/package.json +8 -9
- package/dist/generated/Describe.d.ts +0 -7027
- package/dist/generated/Describe.js +0 -159
|
@@ -5,6 +5,7 @@ exports.createApiClient = createApiClient;
|
|
|
5
5
|
const core_1 = require("@zodios/core");
|
|
6
6
|
const zod_1 = require("zod");
|
|
7
7
|
const common_1 = require("./common");
|
|
8
|
+
const common_2 = require("./common");
|
|
8
9
|
const endpoints = (0, core_1.makeApi)([
|
|
9
10
|
{
|
|
10
11
|
method: "get",
|
|
@@ -70,6 +71,48 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
70
71
|
},
|
|
71
72
|
],
|
|
72
73
|
},
|
|
74
|
+
{
|
|
75
|
+
method: "get",
|
|
76
|
+
path: "/segmentations/:segmentation_id/thumbnails",
|
|
77
|
+
alias: "getSegmentationThumbnails",
|
|
78
|
+
description: `Get all thumbnails for a segmentation`,
|
|
79
|
+
requestFormat: "json",
|
|
80
|
+
parameters: [
|
|
81
|
+
{
|
|
82
|
+
name: "segmentation_id",
|
|
83
|
+
type: "Path",
|
|
84
|
+
schema: zod_1.z.string().uuid(),
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "segment_ids",
|
|
88
|
+
type: "Query",
|
|
89
|
+
schema: zod_1.z.string().optional(),
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "limit",
|
|
93
|
+
type: "Query",
|
|
94
|
+
schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: "offset",
|
|
98
|
+
type: "Query",
|
|
99
|
+
schema: zod_1.z.number().int().gte(0).optional().default(0),
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
response: common_2.ThumbnailList,
|
|
103
|
+
errors: [
|
|
104
|
+
{
|
|
105
|
+
status: 404,
|
|
106
|
+
description: `Segmentation not found`,
|
|
107
|
+
schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
status: 500,
|
|
111
|
+
description: `An unexpected error occurred on the server`,
|
|
112
|
+
schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
73
116
|
]);
|
|
74
117
|
exports.SegmentationsApi = new core_1.Zodios("https://api.cloudglue.dev/v1", endpoints);
|
|
75
118
|
function createApiClient(baseUrl, options) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ZodiosOptions } from "@zodios/core";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { ThumbnailsConfig } from "./common";
|
|
3
4
|
import { FileSegmentationConfig } from "./common";
|
|
4
5
|
type Transcribe = {
|
|
5
6
|
job_id: string;
|
|
@@ -46,6 +47,7 @@ type NewTranscribe = {
|
|
|
46
47
|
enable_speech?: boolean | undefined;
|
|
47
48
|
enable_visual_scene_description?: boolean | undefined;
|
|
48
49
|
enable_scene_text?: boolean | undefined;
|
|
50
|
+
thumbnails_config?: ThumbnailsConfig | undefined;
|
|
49
51
|
} & FileSegmentationConfig;
|
|
50
52
|
type TranscribeList = {
|
|
51
53
|
object: "list";
|
|
@@ -5,6 +5,7 @@ exports.createApiClient = createApiClient;
|
|
|
5
5
|
const core_1 = require("@zodios/core");
|
|
6
6
|
const zod_1 = require("zod");
|
|
7
7
|
const common_1 = require("./common");
|
|
8
|
+
const common_2 = require("./common");
|
|
8
9
|
const NewTranscribe = zod_1.z
|
|
9
10
|
.object({
|
|
10
11
|
url: zod_1.z.string(),
|
|
@@ -12,10 +13,11 @@ const NewTranscribe = zod_1.z
|
|
|
12
13
|
enable_speech: zod_1.z.boolean().optional().default(true),
|
|
13
14
|
enable_visual_scene_description: zod_1.z.boolean().optional().default(false),
|
|
14
15
|
enable_scene_text: zod_1.z.boolean().optional().default(false),
|
|
16
|
+
thumbnails_config: common_1.ThumbnailsConfig.optional(),
|
|
15
17
|
})
|
|
16
18
|
.strict()
|
|
17
19
|
.passthrough()
|
|
18
|
-
.and(
|
|
20
|
+
.and(common_2.FileSegmentationConfig);
|
|
19
21
|
const Transcribe = zod_1.z
|
|
20
22
|
.object({
|
|
21
23
|
job_id: zod_1.z.string(),
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export type ThumbnailsConfig = {
|
|
3
|
+
enable_segment_thumbnails: boolean;
|
|
4
|
+
};
|
|
2
5
|
export type FileSegmentationConfig = Partial<{
|
|
3
6
|
segmentation_id: string;
|
|
4
7
|
segmentation_config: SegmentationConfig;
|
|
@@ -35,6 +38,7 @@ export type File = {
|
|
|
35
38
|
format: string | null;
|
|
36
39
|
has_audio: boolean | null;
|
|
37
40
|
}> | undefined;
|
|
41
|
+
thumbnail_url?: string | undefined;
|
|
38
42
|
};
|
|
39
43
|
export type Segmentation = {
|
|
40
44
|
segmentation_id: string;
|
|
@@ -42,19 +46,42 @@ export type Segmentation = {
|
|
|
42
46
|
created_at: number;
|
|
43
47
|
file_id: string;
|
|
44
48
|
segmentation_config: SegmentationConfig;
|
|
49
|
+
thumbnails_config: ThumbnailsConfig;
|
|
45
50
|
total_segments?: number | undefined;
|
|
46
51
|
data?: {
|
|
47
52
|
object: "list";
|
|
48
|
-
segments
|
|
53
|
+
segments?: Array<{
|
|
49
54
|
id: string;
|
|
50
55
|
start_time: number;
|
|
51
56
|
end_time: number;
|
|
52
|
-
|
|
57
|
+
thumbnail_url?: string | undefined;
|
|
58
|
+
}> | undefined;
|
|
53
59
|
total: number;
|
|
54
60
|
limit: number;
|
|
55
61
|
offset: number;
|
|
56
62
|
} | undefined;
|
|
57
63
|
};
|
|
64
|
+
export type ThumbnailList = {
|
|
65
|
+
object: "list";
|
|
66
|
+
total: number;
|
|
67
|
+
limit: number;
|
|
68
|
+
offset: number;
|
|
69
|
+
data: Array<Thumbnail>;
|
|
70
|
+
};
|
|
71
|
+
export type Thumbnail = {
|
|
72
|
+
id: string;
|
|
73
|
+
url: string;
|
|
74
|
+
time: number;
|
|
75
|
+
segmentation_id?: string | undefined;
|
|
76
|
+
segment_id?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
export declare const ThumbnailsConfig: z.ZodObject<{
|
|
79
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
80
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
81
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
82
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
83
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
84
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
58
85
|
export declare const SegmentationUniformConfig: z.ZodObject<{
|
|
59
86
|
window_seconds: z.ZodNumber;
|
|
60
87
|
hop_seconds: z.ZodOptional<z.ZodNumber>;
|
|
@@ -479,6 +506,7 @@ export declare const File: z.ZodObject<{
|
|
|
479
506
|
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
480
507
|
has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
|
|
481
508
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
509
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
482
510
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
483
511
|
id: z.ZodString;
|
|
484
512
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -506,6 +534,7 @@ export declare const File: z.ZodObject<{
|
|
|
506
534
|
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
507
535
|
has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
|
|
508
536
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
537
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
509
538
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
510
539
|
id: z.ZodString;
|
|
511
540
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -533,6 +562,7 @@ export declare const File: z.ZodObject<{
|
|
|
533
562
|
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
534
563
|
has_audio: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
|
|
535
564
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
565
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
536
566
|
}, z.ZodTypeAny, "passthrough">>;
|
|
537
567
|
export declare const Segmentation: z.ZodObject<{
|
|
538
568
|
segmentation_id: z.ZodString;
|
|
@@ -630,58 +660,74 @@ export declare const Segmentation: z.ZodObject<{
|
|
|
630
660
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
631
661
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
632
662
|
}, z.ZodTypeAny, "passthrough">>;
|
|
663
|
+
thumbnails_config: z.ZodObject<{
|
|
664
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
665
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
666
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
667
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
668
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
669
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
633
670
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
634
671
|
data: z.ZodOptional<z.ZodObject<{
|
|
635
672
|
object: z.ZodLiteral<"list">;
|
|
636
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
673
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
637
674
|
id: z.ZodString;
|
|
638
675
|
start_time: z.ZodNumber;
|
|
639
676
|
end_time: z.ZodNumber;
|
|
677
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
640
678
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
641
679
|
id: z.ZodString;
|
|
642
680
|
start_time: z.ZodNumber;
|
|
643
681
|
end_time: z.ZodNumber;
|
|
682
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
644
683
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
645
684
|
id: z.ZodString;
|
|
646
685
|
start_time: z.ZodNumber;
|
|
647
686
|
end_time: z.ZodNumber;
|
|
648
|
-
|
|
687
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
688
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
649
689
|
total: z.ZodNumber;
|
|
650
690
|
limit: z.ZodNumber;
|
|
651
691
|
offset: z.ZodNumber;
|
|
652
692
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
653
693
|
object: z.ZodLiteral<"list">;
|
|
654
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
694
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
655
695
|
id: z.ZodString;
|
|
656
696
|
start_time: z.ZodNumber;
|
|
657
697
|
end_time: z.ZodNumber;
|
|
698
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
658
699
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
659
700
|
id: z.ZodString;
|
|
660
701
|
start_time: z.ZodNumber;
|
|
661
702
|
end_time: z.ZodNumber;
|
|
703
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
662
704
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
663
705
|
id: z.ZodString;
|
|
664
706
|
start_time: z.ZodNumber;
|
|
665
707
|
end_time: z.ZodNumber;
|
|
666
|
-
|
|
708
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
709
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
667
710
|
total: z.ZodNumber;
|
|
668
711
|
limit: z.ZodNumber;
|
|
669
712
|
offset: z.ZodNumber;
|
|
670
713
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
671
714
|
object: z.ZodLiteral<"list">;
|
|
672
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
715
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
673
716
|
id: z.ZodString;
|
|
674
717
|
start_time: z.ZodNumber;
|
|
675
718
|
end_time: z.ZodNumber;
|
|
719
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
676
720
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
677
721
|
id: z.ZodString;
|
|
678
722
|
start_time: z.ZodNumber;
|
|
679
723
|
end_time: z.ZodNumber;
|
|
724
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
680
725
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
681
726
|
id: z.ZodString;
|
|
682
727
|
start_time: z.ZodNumber;
|
|
683
728
|
end_time: z.ZodNumber;
|
|
684
|
-
|
|
729
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
730
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
685
731
|
total: z.ZodNumber;
|
|
686
732
|
limit: z.ZodNumber;
|
|
687
733
|
offset: z.ZodNumber;
|
|
@@ -782,58 +828,74 @@ export declare const Segmentation: z.ZodObject<{
|
|
|
782
828
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
783
829
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
784
830
|
}, z.ZodTypeAny, "passthrough">>;
|
|
831
|
+
thumbnails_config: z.ZodObject<{
|
|
832
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
833
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
834
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
835
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
836
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
837
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
785
838
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
786
839
|
data: z.ZodOptional<z.ZodObject<{
|
|
787
840
|
object: z.ZodLiteral<"list">;
|
|
788
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
841
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
789
842
|
id: z.ZodString;
|
|
790
843
|
start_time: z.ZodNumber;
|
|
791
844
|
end_time: z.ZodNumber;
|
|
845
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
792
846
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
793
847
|
id: z.ZodString;
|
|
794
848
|
start_time: z.ZodNumber;
|
|
795
849
|
end_time: z.ZodNumber;
|
|
850
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
796
851
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
797
852
|
id: z.ZodString;
|
|
798
853
|
start_time: z.ZodNumber;
|
|
799
854
|
end_time: z.ZodNumber;
|
|
800
|
-
|
|
855
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
856
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
801
857
|
total: z.ZodNumber;
|
|
802
858
|
limit: z.ZodNumber;
|
|
803
859
|
offset: z.ZodNumber;
|
|
804
860
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
805
861
|
object: z.ZodLiteral<"list">;
|
|
806
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
862
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
807
863
|
id: z.ZodString;
|
|
808
864
|
start_time: z.ZodNumber;
|
|
809
865
|
end_time: z.ZodNumber;
|
|
866
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
810
867
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
811
868
|
id: z.ZodString;
|
|
812
869
|
start_time: z.ZodNumber;
|
|
813
870
|
end_time: z.ZodNumber;
|
|
871
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
814
872
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
815
873
|
id: z.ZodString;
|
|
816
874
|
start_time: z.ZodNumber;
|
|
817
875
|
end_time: z.ZodNumber;
|
|
818
|
-
|
|
876
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
877
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
819
878
|
total: z.ZodNumber;
|
|
820
879
|
limit: z.ZodNumber;
|
|
821
880
|
offset: z.ZodNumber;
|
|
822
881
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
823
882
|
object: z.ZodLiteral<"list">;
|
|
824
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
883
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
825
884
|
id: z.ZodString;
|
|
826
885
|
start_time: z.ZodNumber;
|
|
827
886
|
end_time: z.ZodNumber;
|
|
887
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
828
888
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
829
889
|
id: z.ZodString;
|
|
830
890
|
start_time: z.ZodNumber;
|
|
831
891
|
end_time: z.ZodNumber;
|
|
892
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
832
893
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
833
894
|
id: z.ZodString;
|
|
834
895
|
start_time: z.ZodNumber;
|
|
835
896
|
end_time: z.ZodNumber;
|
|
836
|
-
|
|
897
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
898
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
837
899
|
total: z.ZodNumber;
|
|
838
900
|
limit: z.ZodNumber;
|
|
839
901
|
offset: z.ZodNumber;
|
|
@@ -934,60 +996,168 @@ export declare const Segmentation: z.ZodObject<{
|
|
|
934
996
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
935
997
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
936
998
|
}, z.ZodTypeAny, "passthrough">>;
|
|
999
|
+
thumbnails_config: z.ZodObject<{
|
|
1000
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
1001
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1002
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
1003
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1004
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
1005
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
937
1006
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
938
1007
|
data: z.ZodOptional<z.ZodObject<{
|
|
939
1008
|
object: z.ZodLiteral<"list">;
|
|
940
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
1009
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
941
1010
|
id: z.ZodString;
|
|
942
1011
|
start_time: z.ZodNumber;
|
|
943
1012
|
end_time: z.ZodNumber;
|
|
1013
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
944
1014
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
945
1015
|
id: z.ZodString;
|
|
946
1016
|
start_time: z.ZodNumber;
|
|
947
1017
|
end_time: z.ZodNumber;
|
|
1018
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
948
1019
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
949
1020
|
id: z.ZodString;
|
|
950
1021
|
start_time: z.ZodNumber;
|
|
951
1022
|
end_time: z.ZodNumber;
|
|
952
|
-
|
|
1023
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1024
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
953
1025
|
total: z.ZodNumber;
|
|
954
1026
|
limit: z.ZodNumber;
|
|
955
1027
|
offset: z.ZodNumber;
|
|
956
1028
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
957
1029
|
object: z.ZodLiteral<"list">;
|
|
958
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
1030
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
959
1031
|
id: z.ZodString;
|
|
960
1032
|
start_time: z.ZodNumber;
|
|
961
1033
|
end_time: z.ZodNumber;
|
|
1034
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
962
1035
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
963
1036
|
id: z.ZodString;
|
|
964
1037
|
start_time: z.ZodNumber;
|
|
965
1038
|
end_time: z.ZodNumber;
|
|
1039
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
966
1040
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
967
1041
|
id: z.ZodString;
|
|
968
1042
|
start_time: z.ZodNumber;
|
|
969
1043
|
end_time: z.ZodNumber;
|
|
970
|
-
|
|
1044
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
971
1046
|
total: z.ZodNumber;
|
|
972
1047
|
limit: z.ZodNumber;
|
|
973
1048
|
offset: z.ZodNumber;
|
|
974
1049
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
975
1050
|
object: z.ZodLiteral<"list">;
|
|
976
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
1051
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
977
1052
|
id: z.ZodString;
|
|
978
1053
|
start_time: z.ZodNumber;
|
|
979
1054
|
end_time: z.ZodNumber;
|
|
1055
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
980
1056
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
981
1057
|
id: z.ZodString;
|
|
982
1058
|
start_time: z.ZodNumber;
|
|
983
1059
|
end_time: z.ZodNumber;
|
|
1060
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
984
1061
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
985
1062
|
id: z.ZodString;
|
|
986
1063
|
start_time: z.ZodNumber;
|
|
987
1064
|
end_time: z.ZodNumber;
|
|
988
|
-
|
|
1065
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1066
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
989
1067
|
total: z.ZodNumber;
|
|
990
1068
|
limit: z.ZodNumber;
|
|
991
1069
|
offset: z.ZodNumber;
|
|
992
1070
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
993
1071
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1072
|
+
export declare const Thumbnail: z.ZodObject<{
|
|
1073
|
+
id: z.ZodString;
|
|
1074
|
+
url: z.ZodString;
|
|
1075
|
+
time: z.ZodNumber;
|
|
1076
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1079
|
+
id: z.ZodString;
|
|
1080
|
+
url: z.ZodString;
|
|
1081
|
+
time: z.ZodNumber;
|
|
1082
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1083
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1084
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1085
|
+
id: z.ZodString;
|
|
1086
|
+
url: z.ZodString;
|
|
1087
|
+
time: z.ZodNumber;
|
|
1088
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1089
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1090
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1091
|
+
export declare const ThumbnailList: z.ZodObject<{
|
|
1092
|
+
object: z.ZodLiteral<"list">;
|
|
1093
|
+
total: z.ZodNumber;
|
|
1094
|
+
limit: z.ZodNumber;
|
|
1095
|
+
offset: z.ZodNumber;
|
|
1096
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1097
|
+
id: z.ZodString;
|
|
1098
|
+
url: z.ZodString;
|
|
1099
|
+
time: z.ZodNumber;
|
|
1100
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1101
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1103
|
+
id: z.ZodString;
|
|
1104
|
+
url: z.ZodString;
|
|
1105
|
+
time: z.ZodNumber;
|
|
1106
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1109
|
+
id: z.ZodString;
|
|
1110
|
+
url: z.ZodString;
|
|
1111
|
+
time: z.ZodNumber;
|
|
1112
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1113
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1114
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1115
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1116
|
+
object: z.ZodLiteral<"list">;
|
|
1117
|
+
total: z.ZodNumber;
|
|
1118
|
+
limit: z.ZodNumber;
|
|
1119
|
+
offset: z.ZodNumber;
|
|
1120
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1121
|
+
id: z.ZodString;
|
|
1122
|
+
url: z.ZodString;
|
|
1123
|
+
time: z.ZodNumber;
|
|
1124
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1125
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1126
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1127
|
+
id: z.ZodString;
|
|
1128
|
+
url: z.ZodString;
|
|
1129
|
+
time: z.ZodNumber;
|
|
1130
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1131
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1133
|
+
id: z.ZodString;
|
|
1134
|
+
url: z.ZodString;
|
|
1135
|
+
time: z.ZodNumber;
|
|
1136
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1137
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1138
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1139
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1140
|
+
object: z.ZodLiteral<"list">;
|
|
1141
|
+
total: z.ZodNumber;
|
|
1142
|
+
limit: z.ZodNumber;
|
|
1143
|
+
offset: z.ZodNumber;
|
|
1144
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1145
|
+
id: z.ZodString;
|
|
1146
|
+
url: z.ZodString;
|
|
1147
|
+
time: z.ZodNumber;
|
|
1148
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1149
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1150
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1151
|
+
id: z.ZodString;
|
|
1152
|
+
url: z.ZodString;
|
|
1153
|
+
time: z.ZodNumber;
|
|
1154
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1155
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1156
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1157
|
+
id: z.ZodString;
|
|
1158
|
+
url: z.ZodString;
|
|
1159
|
+
time: z.ZodNumber;
|
|
1160
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1161
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1162
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1163
|
+
}, z.ZodTypeAny, "passthrough">>;
|
package/dist/generated/common.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Segmentation = exports.File = exports.FileSegmentationConfig = exports.SegmentationConfig = exports.SegmentationShotDetectorConfig = exports.SegmentationUniformConfig = void 0;
|
|
3
|
+
exports.ThumbnailList = exports.Thumbnail = exports.Segmentation = exports.File = exports.FileSegmentationConfig = exports.SegmentationConfig = exports.SegmentationShotDetectorConfig = exports.SegmentationUniformConfig = exports.ThumbnailsConfig = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
exports.ThumbnailsConfig = zod_1.z
|
|
6
|
+
.object({ enable_segment_thumbnails: zod_1.z.boolean() })
|
|
7
|
+
.strict()
|
|
8
|
+
.passthrough();
|
|
5
9
|
exports.SegmentationUniformConfig = zod_1.z
|
|
6
10
|
.object({
|
|
7
11
|
window_seconds: zod_1.z.number().gte(2).lte(60),
|
|
@@ -65,6 +69,7 @@ exports.File = zod_1.z
|
|
|
65
69
|
.strict()
|
|
66
70
|
.passthrough()
|
|
67
71
|
.optional(),
|
|
72
|
+
thumbnail_url: zod_1.z.string().optional(),
|
|
68
73
|
})
|
|
69
74
|
.strict()
|
|
70
75
|
.passthrough();
|
|
@@ -81,18 +86,22 @@ exports.Segmentation = zod_1.z
|
|
|
81
86
|
created_at: zod_1.z.number().gte(0),
|
|
82
87
|
file_id: zod_1.z.string().uuid(),
|
|
83
88
|
segmentation_config: exports.SegmentationConfig,
|
|
89
|
+
thumbnails_config: exports.ThumbnailsConfig,
|
|
84
90
|
total_segments: zod_1.z.number().gte(0).optional(),
|
|
85
91
|
data: zod_1.z
|
|
86
92
|
.object({
|
|
87
93
|
object: zod_1.z.literal("list"),
|
|
88
|
-
segments: zod_1.z
|
|
94
|
+
segments: zod_1.z
|
|
95
|
+
.array(zod_1.z
|
|
89
96
|
.object({
|
|
90
97
|
id: zod_1.z.string().uuid(),
|
|
91
98
|
start_time: zod_1.z.number(),
|
|
92
99
|
end_time: zod_1.z.number(),
|
|
100
|
+
thumbnail_url: zod_1.z.string().optional(),
|
|
93
101
|
})
|
|
94
102
|
.strict()
|
|
95
|
-
.passthrough())
|
|
103
|
+
.passthrough())
|
|
104
|
+
.optional(),
|
|
96
105
|
total: zod_1.z.number().int(),
|
|
97
106
|
limit: zod_1.z.number().int(),
|
|
98
107
|
offset: zod_1.z.number().int(),
|
|
@@ -103,3 +112,23 @@ exports.Segmentation = zod_1.z
|
|
|
103
112
|
})
|
|
104
113
|
.strict()
|
|
105
114
|
.passthrough();
|
|
115
|
+
exports.Thumbnail = zod_1.z
|
|
116
|
+
.object({
|
|
117
|
+
id: zod_1.z.string().uuid(),
|
|
118
|
+
url: zod_1.z.string(),
|
|
119
|
+
time: zod_1.z.number(),
|
|
120
|
+
segmentation_id: zod_1.z.string().uuid().optional(),
|
|
121
|
+
segment_id: zod_1.z.string().uuid().optional(),
|
|
122
|
+
})
|
|
123
|
+
.strict()
|
|
124
|
+
.passthrough();
|
|
125
|
+
exports.ThumbnailList = zod_1.z
|
|
126
|
+
.object({
|
|
127
|
+
object: zod_1.z.literal("list"),
|
|
128
|
+
total: zod_1.z.number().int(),
|
|
129
|
+
limit: zod_1.z.number().int(),
|
|
130
|
+
offset: zod_1.z.number().int(),
|
|
131
|
+
data: zod_1.z.array(exports.Thumbnail),
|
|
132
|
+
})
|
|
133
|
+
.strict()
|
|
134
|
+
.passthrough();
|