@aviaryhq/cloudglue-js 0.4.6 → 0.4.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 +12 -1
- package/dist/generated/Collections.js +23 -10
- package/dist/generated/Files.d.ts +271 -20
- package/dist/generated/Files.js +20 -1
- package/dist/generated/Search.d.ts +10 -0
- package/dist/generated/Search.js +4 -0
- 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 +144 -4
- package/dist/generated/common.js +12 -1
- package/dist/src/client.d.ts +113 -63
- package/dist/src/client.js +1 -1
- package/dist/src/types.d.ts +43 -0
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type ZodiosOptions } from "@zodios/core";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { SegmentationConfig } from "./common";
|
|
4
|
+
import { SegmentationUniformConfig } from "./common";
|
|
5
|
+
import { SegmentationShotDetectorConfig } from "./common";
|
|
4
6
|
import { ThumbnailsConfig } from "./common";
|
|
5
7
|
import { File } from "./common";
|
|
6
8
|
import { FileSegmentationConfig } from "./common";
|
|
@@ -72,7 +74,7 @@ type NewCollection = {
|
|
|
72
74
|
enable_visual_scene_description: boolean;
|
|
73
75
|
enable_audio_description: boolean;
|
|
74
76
|
}> | undefined;
|
|
75
|
-
default_segmentation_config?:
|
|
77
|
+
default_segmentation_config?: DefaultSegmentationConfig | undefined;
|
|
76
78
|
default_thumbnails_config?: ThumbnailsConfig | undefined;
|
|
77
79
|
face_detection_config?: Partial<{
|
|
78
80
|
frame_extraction_config: {
|
|
@@ -87,6 +89,13 @@ type NewCollection = {
|
|
|
87
89
|
}>;
|
|
88
90
|
}> | null | undefined;
|
|
89
91
|
};
|
|
92
|
+
type DefaultSegmentationConfig = {
|
|
93
|
+
strategy: "uniform" | "shot-detector";
|
|
94
|
+
uniform_config?: SegmentationUniformConfig | undefined;
|
|
95
|
+
shot_detector_config?: SegmentationShotDetectorConfig | undefined;
|
|
96
|
+
start_time_seconds?: number | undefined;
|
|
97
|
+
end_time_seconds?: number | undefined;
|
|
98
|
+
};
|
|
90
99
|
type CollectionList = {
|
|
91
100
|
object: "list";
|
|
92
101
|
data: Array<Collection>;
|
|
@@ -195,6 +204,7 @@ type MediaDescription = {
|
|
|
195
204
|
}>> | undefined;
|
|
196
205
|
} & DescribeOutput;
|
|
197
206
|
declare const Collection: z.ZodType<Collection>;
|
|
207
|
+
declare const DefaultSegmentationConfig: z.ZodType<DefaultSegmentationConfig>;
|
|
198
208
|
declare const NewCollection: z.ZodType<NewCollection>;
|
|
199
209
|
declare const CollectionList: z.ZodType<CollectionList>;
|
|
200
210
|
declare const AddCollectionFile: z.ZodType<AddCollectionFile>;
|
|
@@ -206,6 +216,7 @@ declare const CollectionRichTranscriptsList: z.ZodType<CollectionRichTranscripts
|
|
|
206
216
|
declare const CollectionMediaDescriptionsList: z.ZodType<CollectionMediaDescriptionsList>;
|
|
207
217
|
export declare const schemas: {
|
|
208
218
|
Collection: z.ZodType<Collection, z.ZodTypeDef, Collection>;
|
|
219
|
+
DefaultSegmentationConfig: z.ZodType<DefaultSegmentationConfig, z.ZodTypeDef, DefaultSegmentationConfig>;
|
|
209
220
|
NewCollection: z.ZodType<NewCollection, z.ZodTypeDef, NewCollection>;
|
|
210
221
|
CollectionList: z.ZodType<CollectionList, z.ZodTypeDef, CollectionList>;
|
|
211
222
|
AddCollectionFile: z.ZodType<AddCollectionFile, z.ZodTypeDef, AddCollectionFile>;
|
|
@@ -9,6 +9,8 @@ const common_2 = require("./common");
|
|
|
9
9
|
const common_3 = require("./common");
|
|
10
10
|
const common_4 = require("./common");
|
|
11
11
|
const common_5 = require("./common");
|
|
12
|
+
const common_6 = require("./common");
|
|
13
|
+
const common_7 = require("./common");
|
|
12
14
|
const Collection = zod_1.z
|
|
13
15
|
.object({
|
|
14
16
|
id: zod_1.z.string(),
|
|
@@ -57,7 +59,7 @@ const Collection = zod_1.z
|
|
|
57
59
|
.passthrough()
|
|
58
60
|
.optional(),
|
|
59
61
|
default_segmentation_config: common_1.SegmentationConfig.optional(),
|
|
60
|
-
default_thumbnails_config:
|
|
62
|
+
default_thumbnails_config: common_4.ThumbnailsConfig.optional(),
|
|
61
63
|
face_detection_config: zod_1.z
|
|
62
64
|
.object({
|
|
63
65
|
frame_extraction_config: zod_1.z
|
|
@@ -90,6 +92,16 @@ const Collection = zod_1.z
|
|
|
90
92
|
})
|
|
91
93
|
.strict()
|
|
92
94
|
.passthrough();
|
|
95
|
+
const DefaultSegmentationConfig = zod_1.z
|
|
96
|
+
.object({
|
|
97
|
+
strategy: zod_1.z.enum(["uniform", "shot-detector"]),
|
|
98
|
+
uniform_config: common_2.SegmentationUniformConfig.optional(),
|
|
99
|
+
shot_detector_config: common_3.SegmentationShotDetectorConfig.optional(),
|
|
100
|
+
start_time_seconds: zod_1.z.number().gte(0).optional(),
|
|
101
|
+
end_time_seconds: zod_1.z.number().gte(0).optional(),
|
|
102
|
+
})
|
|
103
|
+
.strict()
|
|
104
|
+
.passthrough();
|
|
93
105
|
const NewCollection = zod_1.z
|
|
94
106
|
.object({
|
|
95
107
|
collection_type: zod_1.z.enum([
|
|
@@ -135,8 +147,8 @@ const NewCollection = zod_1.z
|
|
|
135
147
|
.strict()
|
|
136
148
|
.passthrough()
|
|
137
149
|
.optional(),
|
|
138
|
-
default_segmentation_config:
|
|
139
|
-
default_thumbnails_config:
|
|
150
|
+
default_segmentation_config: DefaultSegmentationConfig.optional(),
|
|
151
|
+
default_thumbnails_config: common_4.ThumbnailsConfig.optional(),
|
|
140
152
|
face_detection_config: zod_1.z
|
|
141
153
|
.object({
|
|
142
154
|
frame_extraction_config: zod_1.z
|
|
@@ -182,9 +194,9 @@ const AddCollectionFile = zod_1.z
|
|
|
182
194
|
zod_1.z.object({ file_id: zod_1.z.string() }).strict().passthrough(),
|
|
183
195
|
zod_1.z.object({ url: zod_1.z.string() }).strict().passthrough(),
|
|
184
196
|
])
|
|
185
|
-
.and(
|
|
197
|
+
.and(common_6.FileSegmentationConfig)
|
|
186
198
|
.and(zod_1.z
|
|
187
|
-
.object({ thumbnails_config:
|
|
199
|
+
.object({ thumbnails_config: common_4.ThumbnailsConfig })
|
|
188
200
|
.partial()
|
|
189
201
|
.strict()
|
|
190
202
|
.passthrough());
|
|
@@ -201,7 +213,7 @@ const CollectionFile = zod_1.z
|
|
|
201
213
|
"failed",
|
|
202
214
|
"not_applicable",
|
|
203
215
|
]),
|
|
204
|
-
file:
|
|
216
|
+
file: common_5.File.optional(),
|
|
205
217
|
segmentation: zod_1.z
|
|
206
218
|
.object({
|
|
207
219
|
id: zod_1.z.string().uuid(),
|
|
@@ -254,7 +266,7 @@ const MediaDescription = zod_1.z
|
|
|
254
266
|
})
|
|
255
267
|
.strict()
|
|
256
268
|
.passthrough()
|
|
257
|
-
.and(
|
|
269
|
+
.and(common_7.DescribeOutput);
|
|
258
270
|
const RichTranscript = zod_1.z
|
|
259
271
|
.object({
|
|
260
272
|
collection_id: zod_1.z.string(),
|
|
@@ -278,7 +290,7 @@ const RichTranscript = zod_1.z
|
|
|
278
290
|
})
|
|
279
291
|
.strict()
|
|
280
292
|
.passthrough()
|
|
281
|
-
.and(
|
|
293
|
+
.and(common_7.DescribeOutput);
|
|
282
294
|
const CollectionRichTranscriptsList = zod_1.z
|
|
283
295
|
.object({
|
|
284
296
|
object: zod_1.z.literal("list"),
|
|
@@ -305,7 +317,7 @@ const CollectionRichTranscriptsList = zod_1.z
|
|
|
305
317
|
.partial()
|
|
306
318
|
.strict()
|
|
307
319
|
.passthrough()
|
|
308
|
-
.and(
|
|
320
|
+
.and(common_7.DescribeOutput),
|
|
309
321
|
})
|
|
310
322
|
.strict()
|
|
311
323
|
.passthrough()),
|
|
@@ -343,7 +355,7 @@ const CollectionMediaDescriptionsList = zod_1.z
|
|
|
343
355
|
.partial()
|
|
344
356
|
.strict()
|
|
345
357
|
.passthrough()
|
|
346
|
-
.and(
|
|
358
|
+
.and(common_7.DescribeOutput),
|
|
347
359
|
})
|
|
348
360
|
.strict()
|
|
349
361
|
.passthrough()),
|
|
@@ -452,6 +464,7 @@ const FileFaceDetections = zod_1.z
|
|
|
452
464
|
.passthrough();
|
|
453
465
|
exports.schemas = {
|
|
454
466
|
Collection,
|
|
467
|
+
DefaultSegmentationConfig,
|
|
455
468
|
NewCollection,
|
|
456
469
|
CollectionList,
|
|
457
470
|
AddCollectionFile,
|