@aviaryhq/cloudglue-js 0.5.9 → 0.6.0
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 +3 -1
- package/dist/generated/Collections.js +13 -11
- package/dist/generated/Describe.d.ts +7722 -43
- package/dist/generated/Describe.js +4 -64
- package/dist/generated/Files.d.ts +1097 -27
- package/dist/generated/Files.js +174 -0
- package/dist/generated/Response.d.ts +727 -0
- package/dist/generated/Response.js +318 -0
- package/dist/generated/Search.js +3 -3
- package/dist/generated/Segmentations.d.ts +6311 -933
- package/dist/generated/Segmentations.js +48 -0
- package/dist/generated/Segments.d.ts +4 -21
- package/dist/generated/Segments.js +8 -16
- package/dist/generated/common.d.ts +3745 -22
- package/dist/generated/common.js +86 -2
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.js +3 -1
- package/dist/src/api/describe.api.d.ts +1546 -109
- package/dist/src/api/files.api.d.ts +236 -3
- package/dist/src/api/files.api.js +27 -0
- package/dist/src/api/response.api.d.ts +269 -0
- package/dist/src/api/response.api.js +85 -0
- package/dist/src/api/segmentations.api.d.ts +896 -3
- package/dist/src/api/segmentations.api.js +13 -0
- package/dist/src/api/segments.api.d.ts +10 -28
- package/dist/src/client.d.ts +6 -0
- package/dist/src/client.js +6 -1
- package/dist/src/types.d.ts +42 -5
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
import { SegmentationConfig } from './common';
|
|
4
4
|
import { SegmentationUniformConfig } from './common';
|
|
5
5
|
import { SegmentationShotDetectorConfig } from './common';
|
|
6
|
+
import { NarrativeConfig } from './common';
|
|
6
7
|
import { KeyframeConfig } from './common';
|
|
7
8
|
import { ThumbnailsConfig } from './common';
|
|
8
9
|
import { File } from './common';
|
|
@@ -93,9 +94,10 @@ type NewCollection = {
|
|
|
93
94
|
}> | null | undefined;
|
|
94
95
|
};
|
|
95
96
|
type DefaultSegmentationConfig = {
|
|
96
|
-
strategy: 'uniform' | 'shot-detector';
|
|
97
|
+
strategy: 'uniform' | 'shot-detector' | 'narrative';
|
|
97
98
|
uniform_config?: SegmentationUniformConfig | undefined;
|
|
98
99
|
shot_detector_config?: SegmentationShotDetectorConfig | undefined;
|
|
100
|
+
narrative_config?: NarrativeConfig | undefined;
|
|
99
101
|
keyframe_config?: KeyframeConfig | undefined;
|
|
100
102
|
start_time_seconds?: number | undefined;
|
|
101
103
|
end_time_seconds?: number | undefined;
|
|
@@ -12,6 +12,7 @@ const common_5 = require("./common");
|
|
|
12
12
|
const common_6 = require("./common");
|
|
13
13
|
const common_7 = require("./common");
|
|
14
14
|
const common_8 = require("./common");
|
|
15
|
+
const common_9 = require("./common");
|
|
15
16
|
const Collection = zod_1.z
|
|
16
17
|
.object({
|
|
17
18
|
id: zod_1.z.string(),
|
|
@@ -61,7 +62,7 @@ const Collection = zod_1.z
|
|
|
61
62
|
.passthrough()
|
|
62
63
|
.optional(),
|
|
63
64
|
default_segmentation_config: common_1.SegmentationConfig.optional(),
|
|
64
|
-
default_thumbnails_config:
|
|
65
|
+
default_thumbnails_config: common_6.ThumbnailsConfig.optional(),
|
|
65
66
|
face_detection_config: zod_1.z
|
|
66
67
|
.object({
|
|
67
68
|
frame_extraction_config: zod_1.z
|
|
@@ -96,10 +97,11 @@ const Collection = zod_1.z
|
|
|
96
97
|
.passthrough();
|
|
97
98
|
const DefaultSegmentationConfig = zod_1.z
|
|
98
99
|
.object({
|
|
99
|
-
strategy: zod_1.z.enum(['uniform', 'shot-detector']),
|
|
100
|
+
strategy: zod_1.z.enum(['uniform', 'shot-detector', 'narrative']),
|
|
100
101
|
uniform_config: common_2.SegmentationUniformConfig.optional(),
|
|
101
102
|
shot_detector_config: common_3.SegmentationShotDetectorConfig.optional(),
|
|
102
|
-
|
|
103
|
+
narrative_config: common_4.NarrativeConfig.optional(),
|
|
104
|
+
keyframe_config: common_5.KeyframeConfig.optional(),
|
|
103
105
|
start_time_seconds: zod_1.z.number().gte(0).optional(),
|
|
104
106
|
end_time_seconds: zod_1.z.number().gte(0).optional(),
|
|
105
107
|
})
|
|
@@ -152,7 +154,7 @@ const NewCollection = zod_1.z
|
|
|
152
154
|
.passthrough()
|
|
153
155
|
.optional(),
|
|
154
156
|
default_segmentation_config: DefaultSegmentationConfig.optional(),
|
|
155
|
-
default_thumbnails_config:
|
|
157
|
+
default_thumbnails_config: common_6.ThumbnailsConfig.optional(),
|
|
156
158
|
face_detection_config: zod_1.z
|
|
157
159
|
.object({
|
|
158
160
|
frame_extraction_config: zod_1.z
|
|
@@ -198,9 +200,9 @@ const AddCollectionFile = zod_1.z
|
|
|
198
200
|
zod_1.z.object({ file_id: zod_1.z.string() }).strict().passthrough(),
|
|
199
201
|
zod_1.z.object({ url: zod_1.z.string() }).strict().passthrough(),
|
|
200
202
|
])
|
|
201
|
-
.and(
|
|
203
|
+
.and(common_9.FileSegmentationConfig)
|
|
202
204
|
.and(zod_1.z
|
|
203
|
-
.object({ thumbnails_config:
|
|
205
|
+
.object({ thumbnails_config: common_6.ThumbnailsConfig })
|
|
204
206
|
.partial()
|
|
205
207
|
.strict()
|
|
206
208
|
.passthrough());
|
|
@@ -217,7 +219,7 @@ const CollectionFile = zod_1.z
|
|
|
217
219
|
'failed',
|
|
218
220
|
'not_applicable',
|
|
219
221
|
]),
|
|
220
|
-
file:
|
|
222
|
+
file: common_7.File.optional(),
|
|
221
223
|
segmentation: zod_1.z
|
|
222
224
|
.object({
|
|
223
225
|
id: zod_1.z.string().uuid(),
|
|
@@ -270,7 +272,7 @@ const MediaDescription = zod_1.z
|
|
|
270
272
|
})
|
|
271
273
|
.strict()
|
|
272
274
|
.passthrough()
|
|
273
|
-
.and(
|
|
275
|
+
.and(common_8.DescribeOutput);
|
|
274
276
|
const RichTranscript = zod_1.z
|
|
275
277
|
.object({
|
|
276
278
|
collection_id: zod_1.z.string(),
|
|
@@ -294,7 +296,7 @@ const RichTranscript = zod_1.z
|
|
|
294
296
|
})
|
|
295
297
|
.strict()
|
|
296
298
|
.passthrough()
|
|
297
|
-
.and(
|
|
299
|
+
.and(common_8.DescribeOutput);
|
|
298
300
|
const CollectionRichTranscriptsList = zod_1.z
|
|
299
301
|
.object({
|
|
300
302
|
object: zod_1.z.literal('list'),
|
|
@@ -321,7 +323,7 @@ const CollectionRichTranscriptsList = zod_1.z
|
|
|
321
323
|
.partial()
|
|
322
324
|
.strict()
|
|
323
325
|
.passthrough()
|
|
324
|
-
.and(
|
|
326
|
+
.and(common_8.DescribeOutput),
|
|
325
327
|
})
|
|
326
328
|
.strict()
|
|
327
329
|
.passthrough()),
|
|
@@ -359,7 +361,7 @@ const CollectionMediaDescriptionsList = zod_1.z
|
|
|
359
361
|
.partial()
|
|
360
362
|
.strict()
|
|
361
363
|
.passthrough()
|
|
362
|
-
.and(
|
|
364
|
+
.and(common_8.DescribeOutput),
|
|
363
365
|
})
|
|
364
366
|
.strict()
|
|
365
367
|
.passthrough()),
|