@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ZodiosOptions } from "@zodios/core";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { SegmentationConfig } from "./common";
|
|
4
|
+
import { ThumbnailsConfig } from "./common";
|
|
4
5
|
import { File } from "./common";
|
|
5
6
|
import { FileSegmentationConfig } from "./common";
|
|
6
7
|
type Collection = {
|
|
@@ -22,6 +23,7 @@ type Collection = {
|
|
|
22
23
|
enable_visual_scene_description: boolean;
|
|
23
24
|
}> | undefined;
|
|
24
25
|
default_segmentation_config?: SegmentationConfig | undefined;
|
|
26
|
+
default_thumbnails_config?: ThumbnailsConfig | undefined;
|
|
25
27
|
created_at: number;
|
|
26
28
|
file_count: number;
|
|
27
29
|
};
|
|
@@ -42,6 +44,7 @@ type NewCollection = {
|
|
|
42
44
|
enable_visual_scene_description: boolean;
|
|
43
45
|
}> | undefined;
|
|
44
46
|
default_segmentation_config?: SegmentationConfig | undefined;
|
|
47
|
+
default_thumbnails_config?: ThumbnailsConfig | undefined;
|
|
45
48
|
};
|
|
46
49
|
type CollectionList = {
|
|
47
50
|
object: "list";
|
|
@@ -68,7 +71,9 @@ type AddCollectionFile = ({
|
|
|
68
71
|
file_id: string;
|
|
69
72
|
} | {
|
|
70
73
|
url: string;
|
|
71
|
-
}) & FileSegmentationConfig
|
|
74
|
+
}) & FileSegmentationConfig & Partial<{
|
|
75
|
+
thumbnails_config: ThumbnailsConfig;
|
|
76
|
+
}>;
|
|
72
77
|
type CollectionFileList = {
|
|
73
78
|
object: "list";
|
|
74
79
|
data: Array<CollectionFile>;
|
|
@@ -7,6 +7,7 @@ const zod_1 = require("zod");
|
|
|
7
7
|
const common_1 = require("./common");
|
|
8
8
|
const common_2 = require("./common");
|
|
9
9
|
const common_3 = require("./common");
|
|
10
|
+
const common_4 = require("./common");
|
|
10
11
|
const Collection = zod_1.z
|
|
11
12
|
.object({
|
|
12
13
|
id: zod_1.z.string(),
|
|
@@ -41,6 +42,7 @@ const Collection = zod_1.z
|
|
|
41
42
|
.passthrough()
|
|
42
43
|
.optional(),
|
|
43
44
|
default_segmentation_config: common_1.SegmentationConfig.optional(),
|
|
45
|
+
default_thumbnails_config: common_2.ThumbnailsConfig.optional(),
|
|
44
46
|
created_at: zod_1.z.number().int(),
|
|
45
47
|
file_count: zod_1.z.number().int(),
|
|
46
48
|
})
|
|
@@ -74,6 +76,7 @@ const NewCollection = zod_1.z
|
|
|
74
76
|
.passthrough()
|
|
75
77
|
.optional(),
|
|
76
78
|
default_segmentation_config: common_1.SegmentationConfig.optional(),
|
|
79
|
+
default_thumbnails_config: common_2.ThumbnailsConfig.optional(),
|
|
77
80
|
})
|
|
78
81
|
.strict()
|
|
79
82
|
.passthrough();
|
|
@@ -92,7 +95,12 @@ const AddCollectionFile = zod_1.z
|
|
|
92
95
|
zod_1.z.object({ file_id: zod_1.z.string() }).strict().passthrough(),
|
|
93
96
|
zod_1.z.object({ url: zod_1.z.string() }).strict().passthrough(),
|
|
94
97
|
])
|
|
95
|
-
.and(
|
|
98
|
+
.and(common_4.FileSegmentationConfig)
|
|
99
|
+
.and(zod_1.z
|
|
100
|
+
.object({ thumbnails_config: common_2.ThumbnailsConfig })
|
|
101
|
+
.partial()
|
|
102
|
+
.strict()
|
|
103
|
+
.passthrough());
|
|
96
104
|
const AddYouTubeCollectionFile = zod_1.z
|
|
97
105
|
.object({
|
|
98
106
|
url: zod_1.z.string(),
|
|
@@ -100,7 +108,7 @@ const AddYouTubeCollectionFile = zod_1.z
|
|
|
100
108
|
})
|
|
101
109
|
.strict()
|
|
102
110
|
.passthrough()
|
|
103
|
-
.and(
|
|
111
|
+
.and(common_4.FileSegmentationConfig);
|
|
104
112
|
const CollectionFile = zod_1.z
|
|
105
113
|
.object({
|
|
106
114
|
collection_id: zod_1.z.string(),
|
|
@@ -114,7 +122,7 @@ const CollectionFile = zod_1.z
|
|
|
114
122
|
"failed",
|
|
115
123
|
"not_applicable",
|
|
116
124
|
]),
|
|
117
|
-
file:
|
|
125
|
+
file: common_3.File.optional(),
|
|
118
126
|
segmentation: zod_1.z
|
|
119
127
|
.object({
|
|
120
128
|
id: zod_1.z.string().uuid(),
|
|
@@ -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 Extract = {
|
|
5
6
|
job_id: string;
|
|
@@ -28,6 +29,7 @@ type NewExtract = {
|
|
|
28
29
|
schema?: {} | undefined;
|
|
29
30
|
enable_video_level_entities?: boolean | undefined;
|
|
30
31
|
enable_segment_level_entities?: boolean | undefined;
|
|
32
|
+
thumbnails_config?: ThumbnailsConfig | undefined;
|
|
31
33
|
} & FileSegmentationConfig;
|
|
32
34
|
type ExtractList = {
|
|
33
35
|
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 Extract = zod_1.z
|
|
9
10
|
.object({
|
|
10
11
|
job_id: zod_1.z.string(),
|
|
@@ -66,10 +67,11 @@ const NewExtract = zod_1.z
|
|
|
66
67
|
schema: zod_1.z.object({}).partial().strict().passthrough().optional(),
|
|
67
68
|
enable_video_level_entities: zod_1.z.boolean().optional().default(false),
|
|
68
69
|
enable_segment_level_entities: zod_1.z.boolean().optional().default(true),
|
|
70
|
+
thumbnails_config: common_1.ThumbnailsConfig.optional(),
|
|
69
71
|
})
|
|
70
72
|
.strict()
|
|
71
73
|
.passthrough()
|
|
72
|
-
.and(
|
|
74
|
+
.and(common_2.FileSegmentationConfig);
|
|
73
75
|
exports.schemas = {
|
|
74
76
|
Extract,
|
|
75
77
|
ExtractList,
|