@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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FaceBoundingBox = exports.FrameExtraction = exports.FrameExtractionConfig = exports.FrameExtractionThumbnailsConfig = exports.FrameExtractionUniformConfig = exports.SearchFilter = exports.SearchFilterCriteria = exports.DescribeOutput = exports.SpeechOutputPart = exports.DescribeOutputPart = exports.ThumbnailList = exports.Thumbnail = exports.ThumbnailType = exports.Segmentation = exports.Shot = exports.File = exports.FileSegmentationConfig = exports.SegmentationConfig = exports.KeyframeConfig = exports.SegmentationManualConfig = exports.SegmentationShotDetectorConfig = exports.SegmentationUniformConfig = exports.ThumbnailsConfig = exports.ListVideoTagsResponse = exports.PaginationResponse = exports.VideoTag = void 0;
3
+ exports.FaceBoundingBox = exports.FrameExtraction = exports.FrameExtractionConfig = exports.FrameExtractionThumbnailsConfig = exports.FrameExtractionUniformConfig = exports.DescribeList = exports.Describe = exports.SearchFilter = exports.SearchFilterCriteria = exports.DescribeOutput = exports.SpeechOutputPart = exports.DescribeOutputPart = exports.ThumbnailList = exports.Thumbnail = exports.ThumbnailType = exports.Segmentation = exports.Chapter = exports.Shot = exports.File = exports.FileSegmentationConfig = exports.SegmentationConfig = exports.KeyframeConfig = exports.NarrativeConfig = exports.SegmentationManualConfig = exports.SegmentationShotDetectorConfig = exports.SegmentationUniformConfig = exports.ThumbnailsConfig = exports.ListVideoTagsResponse = exports.PaginationResponse = exports.VideoTag = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.VideoTag = zod_1.z
6
6
  .object({
@@ -57,6 +57,17 @@ exports.SegmentationManualConfig = zod_1.z
57
57
  })
58
58
  .strict()
59
59
  .passthrough();
60
+ exports.NarrativeConfig = zod_1.z
61
+ .object({
62
+ prompt: zod_1.z.string(),
63
+ strategy: zod_1.z.enum(['comprehensive', 'balanced']).default('balanced'),
64
+ number_of_chapters: zod_1.z.number().int().gte(1),
65
+ min_chapters: zod_1.z.number().int().gte(1),
66
+ max_chapters: zod_1.z.number().int().gte(1),
67
+ })
68
+ .partial()
69
+ .strict()
70
+ .passthrough();
60
71
  exports.KeyframeConfig = zod_1.z
61
72
  .object({
62
73
  frames_per_segment: zod_1.z.number().gte(0).lte(8),
@@ -66,10 +77,11 @@ exports.KeyframeConfig = zod_1.z
66
77
  .passthrough();
67
78
  exports.SegmentationConfig = zod_1.z
68
79
  .object({
69
- strategy: zod_1.z.enum(['uniform', 'shot-detector', 'manual']),
80
+ strategy: zod_1.z.enum(['uniform', 'shot-detector', 'manual', 'narrative']),
70
81
  uniform_config: exports.SegmentationUniformConfig.optional(),
71
82
  shot_detector_config: exports.SegmentationShotDetectorConfig.optional(),
72
83
  manual_config: exports.SegmentationManualConfig.optional(),
84
+ narrative_config: exports.NarrativeConfig.optional(),
73
85
  keyframe_config: exports.KeyframeConfig.optional(),
74
86
  start_time_seconds: zod_1.z.number().gte(0).optional(),
75
87
  end_time_seconds: zod_1.z.number().gte(0).optional(),
@@ -154,6 +166,15 @@ exports.Shot = zod_1.z
154
166
  })
155
167
  .strict()
156
168
  .passthrough();
169
+ exports.Chapter = zod_1.z
170
+ .object({
171
+ index: zod_1.z.number().int(),
172
+ start_time: zod_1.z.number().gte(0),
173
+ end_time: zod_1.z.number().gte(0),
174
+ description: zod_1.z.string(),
175
+ })
176
+ .strict()
177
+ .passthrough();
157
178
  exports.Segmentation = zod_1.z
158
179
  .object({
159
180
  segmentation_id: zod_1.z.string().uuid(),
@@ -170,6 +191,7 @@ exports.Segmentation = zod_1.z
170
191
  thumbnails_config: exports.ThumbnailsConfig,
171
192
  total_segments: zod_1.z.number().gte(0).optional(),
172
193
  total_shots: zod_1.z.number().gte(0).optional(),
194
+ total_chapters: zod_1.z.number().gte(0).optional(),
173
195
  data: zod_1.z
174
196
  .object({
175
197
  object: zod_1.z.literal('list'),
@@ -185,6 +207,7 @@ exports.Segmentation = zod_1.z
185
207
  .passthrough())
186
208
  .optional(),
187
209
  shots: zod_1.z.array(exports.Shot).optional(),
210
+ chapters: zod_1.z.array(exports.Chapter).optional(),
188
211
  total: zod_1.z.number().int(),
189
212
  limit: zod_1.z.number().int(),
190
213
  offset: zod_1.z.number().int(),
@@ -283,6 +306,67 @@ exports.SearchFilter = zod_1.z
283
306
  .partial()
284
307
  .strict()
285
308
  .passthrough();
309
+ exports.Describe = zod_1.z
310
+ .object({
311
+ job_id: zod_1.z.string(),
312
+ status: zod_1.z.enum([
313
+ 'pending',
314
+ 'processing',
315
+ 'completed',
316
+ 'failed',
317
+ 'not_applicable',
318
+ ]),
319
+ url: zod_1.z.string().optional(),
320
+ duration_seconds: zod_1.z.number().optional(),
321
+ created_at: zod_1.z.number().int().optional(),
322
+ describe_config: zod_1.z
323
+ .object({
324
+ enable_summary: zod_1.z.boolean(),
325
+ enable_speech: zod_1.z.boolean(),
326
+ enable_visual_scene_description: zod_1.z.boolean(),
327
+ enable_scene_text: zod_1.z.boolean(),
328
+ enable_audio_description: zod_1.z.boolean(),
329
+ })
330
+ .partial()
331
+ .strict()
332
+ .passthrough()
333
+ .optional(),
334
+ data: zod_1.z
335
+ .object({
336
+ content: zod_1.z.string(),
337
+ title: zod_1.z.string(),
338
+ summary: zod_1.z.string(),
339
+ segment_summary: zod_1.z.array(zod_1.z
340
+ .object({
341
+ title: zod_1.z.string(),
342
+ summary: zod_1.z.string(),
343
+ start_time: zod_1.z.number(),
344
+ end_time: zod_1.z.number(),
345
+ })
346
+ .partial()
347
+ .strict()
348
+ .passthrough()),
349
+ })
350
+ .partial()
351
+ .strict()
352
+ .passthrough()
353
+ .and(exports.DescribeOutput)
354
+ .optional(),
355
+ error: zod_1.z.string().optional(),
356
+ segmentation_id: zod_1.z.string().uuid().optional(),
357
+ })
358
+ .strict()
359
+ .passthrough();
360
+ exports.DescribeList = zod_1.z
361
+ .object({
362
+ object: zod_1.z.literal('list'),
363
+ data: zod_1.z.array(exports.Describe),
364
+ total: zod_1.z.number().int(),
365
+ limit: zod_1.z.number().int(),
366
+ offset: zod_1.z.number().int(),
367
+ })
368
+ .strict()
369
+ .passthrough();
286
370
  exports.FrameExtractionUniformConfig = zod_1.z
287
371
  .object({
288
372
  frames_per_second: zod_1.z.number().gte(0.1).lte(30).default(1),
@@ -7,6 +7,7 @@ export { TranscribeApi } from './Transcribe';
7
7
  export { DescribeApi } from './Describe';
8
8
  export { WebhooksApi } from './Webhooks';
9
9
  export { SearchApi } from './Search';
10
+ export { ResponseApi } from './Response';
10
11
  export { SegmentationsApi } from './Segmentations';
11
12
  export { FramesApi } from './Frames';
12
13
  export { SegmentsApi } from './Segments';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShareApi = exports.Face_DetectionApi = exports.Face_MatchApi = exports.SegmentsApi = exports.FramesApi = exports.SegmentationsApi = exports.SearchApi = exports.WebhooksApi = exports.DescribeApi = exports.TranscribeApi = exports.ChatApi = exports.CollectionsApi = exports.FilesApi = exports.ExtractApi = exports.TagsApi = void 0;
3
+ exports.ShareApi = exports.Face_DetectionApi = exports.Face_MatchApi = exports.SegmentsApi = exports.FramesApi = exports.SegmentationsApi = exports.ResponseApi = exports.SearchApi = exports.WebhooksApi = exports.DescribeApi = exports.TranscribeApi = exports.ChatApi = exports.CollectionsApi = exports.FilesApi = exports.ExtractApi = exports.TagsApi = void 0;
4
4
  var Tags_1 = require("./Tags");
5
5
  Object.defineProperty(exports, "TagsApi", { enumerable: true, get: function () { return Tags_1.TagsApi; } });
6
6
  var Extract_1 = require("./Extract");
@@ -19,6 +19,8 @@ var Webhooks_1 = require("./Webhooks");
19
19
  Object.defineProperty(exports, "WebhooksApi", { enumerable: true, get: function () { return Webhooks_1.WebhooksApi; } });
20
20
  var Search_1 = require("./Search");
21
21
  Object.defineProperty(exports, "SearchApi", { enumerable: true, get: function () { return Search_1.SearchApi; } });
22
+ var Response_1 = require("./Response");
23
+ Object.defineProperty(exports, "ResponseApi", { enumerable: true, get: function () { return Response_1.ResponseApi; } });
22
24
  var Segmentations_1 = require("./Segmentations");
23
25
  Object.defineProperty(exports, "SegmentationsApi", { enumerable: true, get: function () { return Segmentations_1.SegmentationsApi; } });
24
26
  var Frames_1 = require("./Frames");