@aviaryhq/cloudglue-js 0.1.6 → 0.1.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/Collections.d.ts +5 -1
- package/dist/generated/Collections.js +10 -3
- package/dist/generated/Extract.d.ts +2 -0
- package/dist/generated/Extract.js +3 -1
- package/dist/generated/Files.d.ts +465 -36
- package/dist/generated/Files.js +50 -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 +186 -20
- package/dist/generated/common.js +31 -3
- package/dist/src/client.d.ts +136 -12
- package/dist/src/client.js +35 -1
- package/package.json +1 -1
- 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;
|
|
@@ -42,19 +45,42 @@ export type Segmentation = {
|
|
|
42
45
|
created_at: number;
|
|
43
46
|
file_id: string;
|
|
44
47
|
segmentation_config: SegmentationConfig;
|
|
48
|
+
thumbnails_config: ThumbnailsConfig;
|
|
45
49
|
total_segments?: number | undefined;
|
|
46
50
|
data?: {
|
|
47
51
|
object: "list";
|
|
48
|
-
segments
|
|
52
|
+
segments?: Array<{
|
|
49
53
|
id: string;
|
|
50
54
|
start_time: number;
|
|
51
55
|
end_time: number;
|
|
52
|
-
|
|
56
|
+
thumbnail_url?: string | undefined;
|
|
57
|
+
}> | undefined;
|
|
53
58
|
total: number;
|
|
54
59
|
limit: number;
|
|
55
60
|
offset: number;
|
|
56
61
|
} | undefined;
|
|
57
62
|
};
|
|
63
|
+
export type ThumbnailList = {
|
|
64
|
+
object: "list";
|
|
65
|
+
total: number;
|
|
66
|
+
limit: number;
|
|
67
|
+
offset: number;
|
|
68
|
+
data: Array<Thumbnail>;
|
|
69
|
+
};
|
|
70
|
+
export type Thumbnail = {
|
|
71
|
+
id: string;
|
|
72
|
+
url: string;
|
|
73
|
+
time: number;
|
|
74
|
+
segmentation_id?: string | undefined;
|
|
75
|
+
segment_id?: string | undefined;
|
|
76
|
+
};
|
|
77
|
+
export declare const ThumbnailsConfig: z.ZodObject<{
|
|
78
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
79
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
80
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
81
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
82
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
83
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
58
84
|
export declare const SegmentationUniformConfig: z.ZodObject<{
|
|
59
85
|
window_seconds: z.ZodNumber;
|
|
60
86
|
hop_seconds: z.ZodOptional<z.ZodNumber>;
|
|
@@ -630,58 +656,74 @@ export declare const Segmentation: z.ZodObject<{
|
|
|
630
656
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
631
657
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
632
658
|
}, z.ZodTypeAny, "passthrough">>;
|
|
659
|
+
thumbnails_config: z.ZodObject<{
|
|
660
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
661
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
662
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
663
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
664
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
665
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
633
666
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
634
667
|
data: z.ZodOptional<z.ZodObject<{
|
|
635
668
|
object: z.ZodLiteral<"list">;
|
|
636
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
669
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
637
670
|
id: z.ZodString;
|
|
638
671
|
start_time: z.ZodNumber;
|
|
639
672
|
end_time: z.ZodNumber;
|
|
673
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
640
674
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
641
675
|
id: z.ZodString;
|
|
642
676
|
start_time: z.ZodNumber;
|
|
643
677
|
end_time: z.ZodNumber;
|
|
678
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
644
679
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
645
680
|
id: z.ZodString;
|
|
646
681
|
start_time: z.ZodNumber;
|
|
647
682
|
end_time: z.ZodNumber;
|
|
648
|
-
|
|
683
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
684
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
649
685
|
total: z.ZodNumber;
|
|
650
686
|
limit: z.ZodNumber;
|
|
651
687
|
offset: z.ZodNumber;
|
|
652
688
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
653
689
|
object: z.ZodLiteral<"list">;
|
|
654
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
690
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
655
691
|
id: z.ZodString;
|
|
656
692
|
start_time: z.ZodNumber;
|
|
657
693
|
end_time: z.ZodNumber;
|
|
694
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
658
695
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
659
696
|
id: z.ZodString;
|
|
660
697
|
start_time: z.ZodNumber;
|
|
661
698
|
end_time: z.ZodNumber;
|
|
699
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
662
700
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
663
701
|
id: z.ZodString;
|
|
664
702
|
start_time: z.ZodNumber;
|
|
665
703
|
end_time: z.ZodNumber;
|
|
666
|
-
|
|
704
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
705
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
667
706
|
total: z.ZodNumber;
|
|
668
707
|
limit: z.ZodNumber;
|
|
669
708
|
offset: z.ZodNumber;
|
|
670
709
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
671
710
|
object: z.ZodLiteral<"list">;
|
|
672
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
711
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
673
712
|
id: z.ZodString;
|
|
674
713
|
start_time: z.ZodNumber;
|
|
675
714
|
end_time: z.ZodNumber;
|
|
715
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
676
716
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
677
717
|
id: z.ZodString;
|
|
678
718
|
start_time: z.ZodNumber;
|
|
679
719
|
end_time: z.ZodNumber;
|
|
720
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
680
721
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
681
722
|
id: z.ZodString;
|
|
682
723
|
start_time: z.ZodNumber;
|
|
683
724
|
end_time: z.ZodNumber;
|
|
684
|
-
|
|
725
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
726
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
685
727
|
total: z.ZodNumber;
|
|
686
728
|
limit: z.ZodNumber;
|
|
687
729
|
offset: z.ZodNumber;
|
|
@@ -782,58 +824,74 @@ export declare const Segmentation: z.ZodObject<{
|
|
|
782
824
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
783
825
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
784
826
|
}, z.ZodTypeAny, "passthrough">>;
|
|
827
|
+
thumbnails_config: z.ZodObject<{
|
|
828
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
829
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
830
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
831
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
832
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
833
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
785
834
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
786
835
|
data: z.ZodOptional<z.ZodObject<{
|
|
787
836
|
object: z.ZodLiteral<"list">;
|
|
788
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
837
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
789
838
|
id: z.ZodString;
|
|
790
839
|
start_time: z.ZodNumber;
|
|
791
840
|
end_time: z.ZodNumber;
|
|
841
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
792
842
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
793
843
|
id: z.ZodString;
|
|
794
844
|
start_time: z.ZodNumber;
|
|
795
845
|
end_time: z.ZodNumber;
|
|
846
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
796
847
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
797
848
|
id: z.ZodString;
|
|
798
849
|
start_time: z.ZodNumber;
|
|
799
850
|
end_time: z.ZodNumber;
|
|
800
|
-
|
|
851
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
852
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
801
853
|
total: z.ZodNumber;
|
|
802
854
|
limit: z.ZodNumber;
|
|
803
855
|
offset: z.ZodNumber;
|
|
804
856
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
805
857
|
object: z.ZodLiteral<"list">;
|
|
806
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
858
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
807
859
|
id: z.ZodString;
|
|
808
860
|
start_time: z.ZodNumber;
|
|
809
861
|
end_time: z.ZodNumber;
|
|
862
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
810
863
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
811
864
|
id: z.ZodString;
|
|
812
865
|
start_time: z.ZodNumber;
|
|
813
866
|
end_time: z.ZodNumber;
|
|
867
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
814
868
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
815
869
|
id: z.ZodString;
|
|
816
870
|
start_time: z.ZodNumber;
|
|
817
871
|
end_time: z.ZodNumber;
|
|
818
|
-
|
|
872
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
873
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
819
874
|
total: z.ZodNumber;
|
|
820
875
|
limit: z.ZodNumber;
|
|
821
876
|
offset: z.ZodNumber;
|
|
822
877
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
823
878
|
object: z.ZodLiteral<"list">;
|
|
824
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
879
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
825
880
|
id: z.ZodString;
|
|
826
881
|
start_time: z.ZodNumber;
|
|
827
882
|
end_time: z.ZodNumber;
|
|
883
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
828
884
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
829
885
|
id: z.ZodString;
|
|
830
886
|
start_time: z.ZodNumber;
|
|
831
887
|
end_time: z.ZodNumber;
|
|
888
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
832
889
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
833
890
|
id: z.ZodString;
|
|
834
891
|
start_time: z.ZodNumber;
|
|
835
892
|
end_time: z.ZodNumber;
|
|
836
|
-
|
|
893
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
894
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
837
895
|
total: z.ZodNumber;
|
|
838
896
|
limit: z.ZodNumber;
|
|
839
897
|
offset: z.ZodNumber;
|
|
@@ -934,60 +992,168 @@ export declare const Segmentation: z.ZodObject<{
|
|
|
934
992
|
start_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
935
993
|
end_time_seconds: z.ZodOptional<z.ZodNumber>;
|
|
936
994
|
}, z.ZodTypeAny, "passthrough">>;
|
|
995
|
+
thumbnails_config: z.ZodObject<{
|
|
996
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
997
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
998
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
999
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1000
|
+
enable_segment_thumbnails: z.ZodBoolean;
|
|
1001
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
937
1002
|
total_segments: z.ZodOptional<z.ZodNumber>;
|
|
938
1003
|
data: z.ZodOptional<z.ZodObject<{
|
|
939
1004
|
object: z.ZodLiteral<"list">;
|
|
940
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
1005
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
941
1006
|
id: z.ZodString;
|
|
942
1007
|
start_time: z.ZodNumber;
|
|
943
1008
|
end_time: z.ZodNumber;
|
|
1009
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
944
1010
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
945
1011
|
id: z.ZodString;
|
|
946
1012
|
start_time: z.ZodNumber;
|
|
947
1013
|
end_time: z.ZodNumber;
|
|
1014
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
948
1015
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
949
1016
|
id: z.ZodString;
|
|
950
1017
|
start_time: z.ZodNumber;
|
|
951
1018
|
end_time: z.ZodNumber;
|
|
952
|
-
|
|
1019
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
953
1021
|
total: z.ZodNumber;
|
|
954
1022
|
limit: z.ZodNumber;
|
|
955
1023
|
offset: z.ZodNumber;
|
|
956
1024
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
957
1025
|
object: z.ZodLiteral<"list">;
|
|
958
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
1026
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
959
1027
|
id: z.ZodString;
|
|
960
1028
|
start_time: z.ZodNumber;
|
|
961
1029
|
end_time: z.ZodNumber;
|
|
1030
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
962
1031
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
963
1032
|
id: z.ZodString;
|
|
964
1033
|
start_time: z.ZodNumber;
|
|
965
1034
|
end_time: z.ZodNumber;
|
|
1035
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
966
1036
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
967
1037
|
id: z.ZodString;
|
|
968
1038
|
start_time: z.ZodNumber;
|
|
969
1039
|
end_time: z.ZodNumber;
|
|
970
|
-
|
|
1040
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1041
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
971
1042
|
total: z.ZodNumber;
|
|
972
1043
|
limit: z.ZodNumber;
|
|
973
1044
|
offset: z.ZodNumber;
|
|
974
1045
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
975
1046
|
object: z.ZodLiteral<"list">;
|
|
976
|
-
segments: z.ZodArray<z.ZodObject<{
|
|
1047
|
+
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
977
1048
|
id: z.ZodString;
|
|
978
1049
|
start_time: z.ZodNumber;
|
|
979
1050
|
end_time: z.ZodNumber;
|
|
1051
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
980
1052
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
981
1053
|
id: z.ZodString;
|
|
982
1054
|
start_time: z.ZodNumber;
|
|
983
1055
|
end_time: z.ZodNumber;
|
|
1056
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
984
1057
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
985
1058
|
id: z.ZodString;
|
|
986
1059
|
start_time: z.ZodNumber;
|
|
987
1060
|
end_time: z.ZodNumber;
|
|
988
|
-
|
|
1061
|
+
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
1062
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
989
1063
|
total: z.ZodNumber;
|
|
990
1064
|
limit: z.ZodNumber;
|
|
991
1065
|
offset: z.ZodNumber;
|
|
992
1066
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
993
1067
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1068
|
+
export declare const Thumbnail: z.ZodObject<{
|
|
1069
|
+
id: z.ZodString;
|
|
1070
|
+
url: z.ZodString;
|
|
1071
|
+
time: z.ZodNumber;
|
|
1072
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1074
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1075
|
+
id: z.ZodString;
|
|
1076
|
+
url: z.ZodString;
|
|
1077
|
+
time: z.ZodNumber;
|
|
1078
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1080
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1081
|
+
id: z.ZodString;
|
|
1082
|
+
url: z.ZodString;
|
|
1083
|
+
time: z.ZodNumber;
|
|
1084
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1085
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1087
|
+
export declare const ThumbnailList: z.ZodObject<{
|
|
1088
|
+
object: z.ZodLiteral<"list">;
|
|
1089
|
+
total: z.ZodNumber;
|
|
1090
|
+
limit: z.ZodNumber;
|
|
1091
|
+
offset: z.ZodNumber;
|
|
1092
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1093
|
+
id: z.ZodString;
|
|
1094
|
+
url: z.ZodString;
|
|
1095
|
+
time: z.ZodNumber;
|
|
1096
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1097
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1098
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1099
|
+
id: z.ZodString;
|
|
1100
|
+
url: z.ZodString;
|
|
1101
|
+
time: z.ZodNumber;
|
|
1102
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1103
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1105
|
+
id: z.ZodString;
|
|
1106
|
+
url: z.ZodString;
|
|
1107
|
+
time: z.ZodNumber;
|
|
1108
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1109
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1110
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1111
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1112
|
+
object: z.ZodLiteral<"list">;
|
|
1113
|
+
total: z.ZodNumber;
|
|
1114
|
+
limit: z.ZodNumber;
|
|
1115
|
+
offset: z.ZodNumber;
|
|
1116
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1117
|
+
id: z.ZodString;
|
|
1118
|
+
url: z.ZodString;
|
|
1119
|
+
time: z.ZodNumber;
|
|
1120
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1122
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1123
|
+
id: z.ZodString;
|
|
1124
|
+
url: z.ZodString;
|
|
1125
|
+
time: z.ZodNumber;
|
|
1126
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1127
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1128
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1129
|
+
id: z.ZodString;
|
|
1130
|
+
url: z.ZodString;
|
|
1131
|
+
time: z.ZodNumber;
|
|
1132
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1134
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1135
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1136
|
+
object: z.ZodLiteral<"list">;
|
|
1137
|
+
total: z.ZodNumber;
|
|
1138
|
+
limit: z.ZodNumber;
|
|
1139
|
+
offset: z.ZodNumber;
|
|
1140
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1141
|
+
id: z.ZodString;
|
|
1142
|
+
url: z.ZodString;
|
|
1143
|
+
time: z.ZodNumber;
|
|
1144
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1145
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1146
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1147
|
+
id: z.ZodString;
|
|
1148
|
+
url: z.ZodString;
|
|
1149
|
+
time: z.ZodNumber;
|
|
1150
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1151
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1152
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1153
|
+
id: z.ZodString;
|
|
1154
|
+
url: z.ZodString;
|
|
1155
|
+
time: z.ZodNumber;
|
|
1156
|
+
segmentation_id: z.ZodOptional<z.ZodString>;
|
|
1157
|
+
segment_id: z.ZodOptional<z.ZodString>;
|
|
1158
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1159
|
+
}, 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),
|
|
@@ -81,18 +85,22 @@ exports.Segmentation = zod_1.z
|
|
|
81
85
|
created_at: zod_1.z.number().gte(0),
|
|
82
86
|
file_id: zod_1.z.string().uuid(),
|
|
83
87
|
segmentation_config: exports.SegmentationConfig,
|
|
88
|
+
thumbnails_config: exports.ThumbnailsConfig,
|
|
84
89
|
total_segments: zod_1.z.number().gte(0).optional(),
|
|
85
90
|
data: zod_1.z
|
|
86
91
|
.object({
|
|
87
92
|
object: zod_1.z.literal("list"),
|
|
88
|
-
segments: zod_1.z
|
|
93
|
+
segments: zod_1.z
|
|
94
|
+
.array(zod_1.z
|
|
89
95
|
.object({
|
|
90
96
|
id: zod_1.z.string().uuid(),
|
|
91
97
|
start_time: zod_1.z.number(),
|
|
92
98
|
end_time: zod_1.z.number(),
|
|
99
|
+
thumbnail_url: zod_1.z.string().optional(),
|
|
93
100
|
})
|
|
94
101
|
.strict()
|
|
95
|
-
.passthrough())
|
|
102
|
+
.passthrough())
|
|
103
|
+
.optional(),
|
|
96
104
|
total: zod_1.z.number().int(),
|
|
97
105
|
limit: zod_1.z.number().int(),
|
|
98
106
|
offset: zod_1.z.number().int(),
|
|
@@ -103,3 +111,23 @@ exports.Segmentation = zod_1.z
|
|
|
103
111
|
})
|
|
104
112
|
.strict()
|
|
105
113
|
.passthrough();
|
|
114
|
+
exports.Thumbnail = zod_1.z
|
|
115
|
+
.object({
|
|
116
|
+
id: zod_1.z.string().uuid(),
|
|
117
|
+
url: zod_1.z.string(),
|
|
118
|
+
time: zod_1.z.number(),
|
|
119
|
+
segmentation_id: zod_1.z.string().uuid().optional(),
|
|
120
|
+
segment_id: zod_1.z.string().uuid().optional(),
|
|
121
|
+
})
|
|
122
|
+
.strict()
|
|
123
|
+
.passthrough();
|
|
124
|
+
exports.ThumbnailList = zod_1.z
|
|
125
|
+
.object({
|
|
126
|
+
object: zod_1.z.literal("list"),
|
|
127
|
+
total: zod_1.z.number().int(),
|
|
128
|
+
limit: zod_1.z.number().int(),
|
|
129
|
+
offset: zod_1.z.number().int(),
|
|
130
|
+
data: zod_1.z.array(exports.Thumbnail),
|
|
131
|
+
})
|
|
132
|
+
.strict()
|
|
133
|
+
.passthrough();
|