@aviaryhq/cloudglue-js 0.4.11 → 0.4.13

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.
Files changed (66) hide show
  1. package/dist/generated/Chat.d.ts +8 -8
  2. package/dist/generated/Chat.js +30 -30
  3. package/dist/generated/Collections.d.ts +25 -23
  4. package/dist/generated/Collections.js +266 -264
  5. package/dist/generated/Describe.d.ts +7 -7
  6. package/dist/generated/Describe.js +58 -58
  7. package/dist/generated/Extract.d.ts +6 -6
  8. package/dist/generated/Extract.js +52 -52
  9. package/dist/generated/Face_Detection.d.ts +6 -6
  10. package/dist/generated/Face_Detection.js +25 -25
  11. package/dist/generated/Face_Match.d.ts +6 -6
  12. package/dist/generated/Face_Match.js +26 -26
  13. package/dist/generated/Files.d.ts +1009 -10
  14. package/dist/generated/Files.js +247 -115
  15. package/dist/generated/Frames.d.ts +2 -2
  16. package/dist/generated/Frames.js +17 -17
  17. package/dist/generated/Search.d.ts +212 -19
  18. package/dist/generated/Search.js +143 -30
  19. package/dist/generated/Segmentations.d.ts +208 -2
  20. package/dist/generated/Segmentations.js +34 -29
  21. package/dist/generated/Segments.d.ts +13 -13
  22. package/dist/generated/Segments.js +49 -49
  23. package/dist/generated/Tags.d.ts +660 -0
  24. package/dist/generated/Tags.js +160 -0
  25. package/dist/generated/Transcribe.d.ts +7 -7
  26. package/dist/generated/Transcribe.js +46 -46
  27. package/dist/generated/Webhooks.d.ts +5 -5
  28. package/dist/generated/Webhooks.js +61 -61
  29. package/dist/generated/common.d.ts +391 -11
  30. package/dist/generated/common.js +63 -28
  31. package/dist/generated/index.d.ts +14 -13
  32. package/dist/generated/index.js +3 -1
  33. package/dist/src/api/chat-completion.api.d.ts +38 -0
  34. package/dist/src/api/chat-completion.api.js +15 -0
  35. package/dist/src/api/collections.api.d.ts +666 -0
  36. package/dist/src/api/collections.api.js +134 -0
  37. package/dist/src/api/describe.api.d.ts +153 -0
  38. package/dist/src/api/describe.api.js +57 -0
  39. package/dist/src/api/extract.api.d.ts +144 -0
  40. package/dist/src/api/extract.api.js +55 -0
  41. package/dist/src/api/face-detection.api.d.ts +77 -0
  42. package/dist/src/api/face-detection.api.js +41 -0
  43. package/dist/src/api/face-match.api.d.ts +94 -0
  44. package/dist/src/api/face-match.api.js +41 -0
  45. package/dist/src/api/files.api.d.ts +705 -0
  46. package/dist/src/api/files.api.js +146 -0
  47. package/dist/src/api/frame-extraction.api.d.ts +264 -0
  48. package/dist/src/api/frame-extraction.api.js +37 -0
  49. package/dist/src/api/search.api.d.ts +316 -0
  50. package/dist/src/api/search.api.js +22 -0
  51. package/dist/src/api/segmentations.api.d.ts +395 -0
  52. package/dist/src/api/segmentations.api.js +36 -0
  53. package/dist/src/api/segments.api.d.ts +141 -0
  54. package/dist/src/api/segments.api.js +40 -0
  55. package/dist/src/api/tags.api.d.ts +71 -0
  56. package/dist/src/api/tags.api.js +31 -0
  57. package/dist/src/api/transcribe.api.d.ts +150 -0
  58. package/dist/src/api/transcribe.api.js +65 -0
  59. package/dist/src/api/webhooks.api.d.ts +69 -0
  60. package/dist/src/api/webhooks.api.js +28 -0
  61. package/dist/src/client.d.ts +20 -2967
  62. package/dist/src/client.js +55 -643
  63. package/dist/src/error.d.ts +7 -0
  64. package/dist/src/error.js +14 -0
  65. package/dist/src/types.d.ts +20 -8
  66. package/package.json +2 -1
@@ -11,17 +11,18 @@ const common_4 = require("./common");
11
11
  const common_5 = require("./common");
12
12
  const common_6 = require("./common");
13
13
  const common_7 = require("./common");
14
+ const common_8 = require("./common");
14
15
  const Collection = zod_1.z
15
16
  .object({
16
17
  id: zod_1.z.string(),
17
- object: zod_1.z.literal("collection"),
18
+ object: zod_1.z.literal('collection'),
18
19
  name: zod_1.z.string(),
19
20
  description: zod_1.z.string().nullish(),
20
21
  collection_type: zod_1.z.enum([
21
- "media-descriptions",
22
- "entities",
23
- "rich-transcripts",
24
- "face-analysis",
22
+ 'media-descriptions',
23
+ 'entities',
24
+ 'rich-transcripts',
25
+ 'face-analysis',
25
26
  ]),
26
27
  extract_config: zod_1.z
27
28
  .object({
@@ -59,12 +60,12 @@ const Collection = zod_1.z
59
60
  .passthrough()
60
61
  .optional(),
61
62
  default_segmentation_config: common_1.SegmentationConfig.optional(),
62
- default_thumbnails_config: common_4.ThumbnailsConfig.optional(),
63
+ default_thumbnails_config: common_5.ThumbnailsConfig.optional(),
63
64
  face_detection_config: zod_1.z
64
65
  .object({
65
66
  frame_extraction_config: zod_1.z
66
67
  .object({
67
- strategy: zod_1.z.literal("uniform"),
68
+ strategy: zod_1.z.literal('uniform'),
68
69
  uniform_config: zod_1.z
69
70
  .object({
70
71
  frames_per_second: zod_1.z.number().gte(0.1).lte(30).default(1),
@@ -94,9 +95,10 @@ const Collection = zod_1.z
94
95
  .passthrough();
95
96
  const DefaultSegmentationConfig = zod_1.z
96
97
  .object({
97
- strategy: zod_1.z.enum(["uniform", "shot-detector"]),
98
+ strategy: zod_1.z.enum(['uniform', 'shot-detector']),
98
99
  uniform_config: common_2.SegmentationUniformConfig.optional(),
99
100
  shot_detector_config: common_3.SegmentationShotDetectorConfig.optional(),
101
+ keyframe_config: common_4.KeyframeConfig.optional(),
100
102
  start_time_seconds: zod_1.z.number().gte(0).optional(),
101
103
  end_time_seconds: zod_1.z.number().gte(0).optional(),
102
104
  })
@@ -105,10 +107,10 @@ const DefaultSegmentationConfig = zod_1.z
105
107
  const NewCollection = zod_1.z
106
108
  .object({
107
109
  collection_type: zod_1.z.enum([
108
- "media-descriptions",
109
- "entities",
110
- "rich-transcripts",
111
- "face-analysis",
110
+ 'media-descriptions',
111
+ 'entities',
112
+ 'rich-transcripts',
113
+ 'face-analysis',
112
114
  ]),
113
115
  name: zod_1.z.string(),
114
116
  description: zod_1.z.string().nullish(),
@@ -148,12 +150,12 @@ const NewCollection = zod_1.z
148
150
  .passthrough()
149
151
  .optional(),
150
152
  default_segmentation_config: DefaultSegmentationConfig.optional(),
151
- default_thumbnails_config: common_4.ThumbnailsConfig.optional(),
153
+ default_thumbnails_config: common_5.ThumbnailsConfig.optional(),
152
154
  face_detection_config: zod_1.z
153
155
  .object({
154
156
  frame_extraction_config: zod_1.z
155
157
  .object({
156
- strategy: zod_1.z.literal("uniform"),
158
+ strategy: zod_1.z.literal('uniform'),
157
159
  uniform_config: zod_1.z
158
160
  .object({
159
161
  frames_per_second: zod_1.z.number().gte(0.1).lte(30).default(1),
@@ -181,7 +183,7 @@ const NewCollection = zod_1.z
181
183
  .passthrough();
182
184
  const CollectionList = zod_1.z
183
185
  .object({
184
- object: zod_1.z.literal("list"),
186
+ object: zod_1.z.literal('list'),
185
187
  data: zod_1.z.array(Collection),
186
188
  total: zod_1.z.number().int(),
187
189
  limit: zod_1.z.number().int(),
@@ -194,9 +196,9 @@ const AddCollectionFile = zod_1.z
194
196
  zod_1.z.object({ file_id: zod_1.z.string() }).strict().passthrough(),
195
197
  zod_1.z.object({ url: zod_1.z.string() }).strict().passthrough(),
196
198
  ])
197
- .and(common_6.FileSegmentationConfig)
199
+ .and(common_7.FileSegmentationConfig)
198
200
  .and(zod_1.z
199
- .object({ thumbnails_config: common_4.ThumbnailsConfig })
201
+ .object({ thumbnails_config: common_5.ThumbnailsConfig })
200
202
  .partial()
201
203
  .strict()
202
204
  .passthrough());
@@ -204,25 +206,25 @@ const CollectionFile = zod_1.z
204
206
  .object({
205
207
  collection_id: zod_1.z.string(),
206
208
  file_id: zod_1.z.string(),
207
- object: zod_1.z.literal("collection_file"),
209
+ object: zod_1.z.literal('collection_file'),
208
210
  added_at: zod_1.z.number().int(),
209
211
  status: zod_1.z.enum([
210
- "pending",
211
- "processing",
212
- "completed",
213
- "failed",
214
- "not_applicable",
212
+ 'pending',
213
+ 'processing',
214
+ 'completed',
215
+ 'failed',
216
+ 'not_applicable',
215
217
  ]),
216
- file: common_5.File.optional(),
218
+ file: common_6.File.optional(),
217
219
  segmentation: zod_1.z
218
220
  .object({
219
221
  id: zod_1.z.string().uuid(),
220
222
  status: zod_1.z.enum([
221
- "pending",
222
- "processing",
223
- "completed",
224
- "failed",
225
- "not_applicable",
223
+ 'pending',
224
+ 'processing',
225
+ 'completed',
226
+ 'failed',
227
+ 'not_applicable',
226
228
  ]),
227
229
  file_id: zod_1.z.string().uuid(),
228
230
  segmentation_config: common_1.SegmentationConfig,
@@ -235,7 +237,7 @@ const CollectionFile = zod_1.z
235
237
  .passthrough();
236
238
  const CollectionFileList = zod_1.z
237
239
  .object({
238
- object: zod_1.z.literal("list"),
240
+ object: zod_1.z.literal('list'),
239
241
  data: zod_1.z.array(CollectionFile),
240
242
  total: zod_1.z.number().int(),
241
243
  limit: zod_1.z.number().int(),
@@ -266,7 +268,7 @@ const MediaDescription = zod_1.z
266
268
  })
267
269
  .strict()
268
270
  .passthrough()
269
- .and(common_7.DescribeOutput);
271
+ .and(common_8.DescribeOutput);
270
272
  const RichTranscript = zod_1.z
271
273
  .object({
272
274
  collection_id: zod_1.z.string(),
@@ -290,10 +292,10 @@ const RichTranscript = zod_1.z
290
292
  })
291
293
  .strict()
292
294
  .passthrough()
293
- .and(common_7.DescribeOutput);
295
+ .and(common_8.DescribeOutput);
294
296
  const CollectionRichTranscriptsList = zod_1.z
295
297
  .object({
296
- object: zod_1.z.literal("list"),
298
+ object: zod_1.z.literal('list'),
297
299
  data: zod_1.z.array(zod_1.z
298
300
  .object({
299
301
  file_id: zod_1.z.string(),
@@ -317,7 +319,7 @@ const CollectionRichTranscriptsList = zod_1.z
317
319
  .partial()
318
320
  .strict()
319
321
  .passthrough()
320
- .and(common_7.DescribeOutput),
322
+ .and(common_8.DescribeOutput),
321
323
  })
322
324
  .strict()
323
325
  .passthrough()),
@@ -329,12 +331,12 @@ const CollectionRichTranscriptsList = zod_1.z
329
331
  .passthrough();
330
332
  const CollectionMediaDescriptionsList = zod_1.z
331
333
  .object({
332
- object: zod_1.z.literal("list"),
334
+ object: zod_1.z.literal('list'),
333
335
  data: zod_1.z.array(zod_1.z
334
336
  .object({
335
337
  file_id: zod_1.z.string(),
336
338
  added_at: zod_1.z.number().int(),
337
- object: zod_1.z.literal("collection_file"),
339
+ object: zod_1.z.literal('collection_file'),
338
340
  duration_seconds: zod_1.z.number().optional(),
339
341
  data: zod_1.z
340
342
  .object({
@@ -355,7 +357,7 @@ const CollectionMediaDescriptionsList = zod_1.z
355
357
  .partial()
356
358
  .strict()
357
359
  .passthrough()
358
- .and(common_7.DescribeOutput),
360
+ .and(common_8.DescribeOutput),
359
361
  })
360
362
  .strict()
361
363
  .passthrough()),
@@ -366,7 +368,7 @@ const CollectionMediaDescriptionsList = zod_1.z
366
368
  .strict()
367
369
  .passthrough();
368
370
  const CollectionDelete = zod_1.z
369
- .object({ id: zod_1.z.string(), object: zod_1.z.literal("collection") })
371
+ .object({ id: zod_1.z.string(), object: zod_1.z.literal('collection') })
370
372
  .strict()
371
373
  .passthrough();
372
374
  const CollectionUpdate = zod_1.z
@@ -378,7 +380,7 @@ const CollectionFileDelete = zod_1.z
378
380
  .object({
379
381
  collection_id: zod_1.z.string(),
380
382
  file_id: zod_1.z.string(),
381
- object: zod_1.z.literal("collection_file"),
383
+ object: zod_1.z.literal('collection_file'),
382
384
  })
383
385
  .strict()
384
386
  .passthrough();
@@ -404,7 +406,7 @@ const FileEntities = zod_1.z
404
406
  .passthrough();
405
407
  const CollectionEntitiesList = zod_1.z
406
408
  .object({
407
- object: zod_1.z.literal("list"),
409
+ object: zod_1.z.literal('list'),
408
410
  data: zod_1.z.array(zod_1.z
409
411
  .object({
410
412
  file_id: zod_1.z.string(),
@@ -483,16 +485,16 @@ exports.schemas = {
483
485
  };
484
486
  const endpoints = (0, core_1.makeApi)([
485
487
  {
486
- method: "post",
487
- path: "/collections",
488
- alias: "createCollection",
488
+ method: 'post',
489
+ path: '/collections',
490
+ alias: 'createCollection',
489
491
  description: `Create a new collection to organize and process video files. Collections are used to group files together and process them in a consistent way.`,
490
- requestFormat: "json",
492
+ requestFormat: 'json',
491
493
  parameters: [
492
494
  {
493
- name: "body",
495
+ name: 'body',
494
496
  description: `Collection creation parameters`,
495
- type: "Body",
497
+ type: 'Body',
496
498
  schema: NewCollection,
497
499
  },
498
500
  ],
@@ -521,52 +523,52 @@ const endpoints = (0, core_1.makeApi)([
521
523
  ],
522
524
  },
523
525
  {
524
- method: "get",
525
- path: "/collections",
526
- alias: "listCollections",
526
+ method: 'get',
527
+ path: '/collections',
528
+ alias: 'listCollections',
527
529
  description: `List all collections`,
528
- requestFormat: "json",
530
+ requestFormat: 'json',
529
531
  parameters: [
530
532
  {
531
- name: "limit",
532
- type: "Query",
533
+ name: 'limit',
534
+ type: 'Query',
533
535
  schema: zod_1.z.number().int().lte(100).optional().default(50),
534
536
  },
535
537
  {
536
- name: "offset",
537
- type: "Query",
538
+ name: 'offset',
539
+ type: 'Query',
538
540
  schema: zod_1.z.number().int().optional().default(0),
539
541
  },
540
542
  {
541
- name: "order",
542
- type: "Query",
543
- schema: zod_1.z.enum(["name", "created_at"]).optional().default("created_at"),
543
+ name: 'order',
544
+ type: 'Query',
545
+ schema: zod_1.z.enum(['name', 'created_at']).optional().default('created_at'),
544
546
  },
545
547
  {
546
- name: "sort",
547
- type: "Query",
548
- schema: zod_1.z.enum(["asc", "desc"]).optional().default("desc"),
548
+ name: 'sort',
549
+ type: 'Query',
550
+ schema: zod_1.z.enum(['asc', 'desc']).optional().default('desc'),
549
551
  },
550
552
  {
551
- name: "collection_type",
552
- type: "Query",
553
+ name: 'collection_type',
554
+ type: 'Query',
553
555
  schema: zod_1.z
554
556
  .enum([
555
- "media-descriptions",
556
- "entities",
557
- "rich-transcripts",
558
- "face-analysis",
557
+ 'media-descriptions',
558
+ 'entities',
559
+ 'rich-transcripts',
560
+ 'face-analysis',
559
561
  ])
560
562
  .optional(),
561
563
  },
562
564
  {
563
- name: "created_after",
564
- type: "Query",
565
+ name: 'created_after',
566
+ type: 'Query',
565
567
  schema: zod_1.z.string().datetime({ offset: true }).optional(),
566
568
  },
567
569
  {
568
- name: "created_before",
569
- type: "Query",
570
+ name: 'created_before',
571
+ type: 'Query',
570
572
  schema: zod_1.z.string().datetime({ offset: true }).optional(),
571
573
  },
572
574
  ],
@@ -580,15 +582,15 @@ const endpoints = (0, core_1.makeApi)([
580
582
  ],
581
583
  },
582
584
  {
583
- method: "get",
584
- path: "/collections/:collection_id",
585
- alias: "getCollection",
585
+ method: 'get',
586
+ path: '/collections/:collection_id',
587
+ alias: 'getCollection',
586
588
  description: `Retrieve details about a specific collection`,
587
- requestFormat: "json",
589
+ requestFormat: 'json',
588
590
  parameters: [
589
591
  {
590
- name: "collection_id",
591
- type: "Path",
592
+ name: 'collection_id',
593
+ type: 'Path',
592
594
  schema: zod_1.z.string(),
593
595
  },
594
596
  ],
@@ -607,15 +609,15 @@ const endpoints = (0, core_1.makeApi)([
607
609
  ],
608
610
  },
609
611
  {
610
- method: "delete",
611
- path: "/collections/:collection_id",
612
- alias: "deleteCollection",
612
+ method: 'delete',
613
+ path: '/collections/:collection_id',
614
+ alias: 'deleteCollection',
613
615
  description: `Delete a collection`,
614
- requestFormat: "json",
616
+ requestFormat: 'json',
615
617
  parameters: [
616
618
  {
617
- name: "collection_id",
618
- type: "Path",
619
+ name: 'collection_id',
620
+ type: 'Path',
619
621
  schema: zod_1.z.string(),
620
622
  },
621
623
  ],
@@ -634,21 +636,21 @@ const endpoints = (0, core_1.makeApi)([
634
636
  ],
635
637
  },
636
638
  {
637
- method: "put",
638
- path: "/collections/:collection_id",
639
- alias: "updateCollection",
639
+ method: 'put',
640
+ path: '/collections/:collection_id',
641
+ alias: 'updateCollection',
640
642
  description: `Update a collection`,
641
- requestFormat: "json",
643
+ requestFormat: 'json',
642
644
  parameters: [
643
645
  {
644
- name: "body",
646
+ name: 'body',
645
647
  description: `Collection update parameters`,
646
- type: "Body",
648
+ type: 'Body',
647
649
  schema: CollectionUpdate,
648
650
  },
649
651
  {
650
- name: "collection_id",
651
- type: "Path",
652
+ name: 'collection_id',
653
+ type: 'Path',
652
654
  schema: zod_1.z.string(),
653
655
  },
654
656
  ],
@@ -672,21 +674,21 @@ const endpoints = (0, core_1.makeApi)([
672
674
  ],
673
675
  },
674
676
  {
675
- method: "post",
676
- path: "/collections/:collection_id/videos",
677
- alias: "addVideo",
677
+ method: 'post',
678
+ path: '/collections/:collection_id/videos',
679
+ alias: 'addVideo',
678
680
  description: `Add a video to a collection`,
679
- requestFormat: "json",
681
+ requestFormat: 'json',
680
682
  parameters: [
681
683
  {
682
- name: "body",
684
+ name: 'body',
683
685
  description: `File association parameters`,
684
- type: "Body",
686
+ type: 'Body',
685
687
  schema: AddCollectionFile,
686
688
  },
687
689
  {
688
- name: "collection_id",
689
- type: "Path",
690
+ name: 'collection_id',
691
+ type: 'Path',
690
692
  schema: zod_1.z.string(),
691
693
  },
692
694
  ],
@@ -710,63 +712,63 @@ const endpoints = (0, core_1.makeApi)([
710
712
  ],
711
713
  },
712
714
  {
713
- method: "get",
714
- path: "/collections/:collection_id/videos",
715
- alias: "listVideos",
715
+ method: 'get',
716
+ path: '/collections/:collection_id/videos',
717
+ alias: 'listVideos',
716
718
  description: `List all files in a collection`,
717
- requestFormat: "json",
719
+ requestFormat: 'json',
718
720
  parameters: [
719
721
  {
720
- name: "collection_id",
721
- type: "Path",
722
+ name: 'collection_id',
723
+ type: 'Path',
722
724
  schema: zod_1.z.string(),
723
725
  },
724
726
  {
725
- name: "limit",
726
- type: "Query",
727
+ name: 'limit',
728
+ type: 'Query',
727
729
  schema: zod_1.z.number().int().lte(100).optional().default(50),
728
730
  },
729
731
  {
730
- name: "offset",
731
- type: "Query",
732
+ name: 'offset',
733
+ type: 'Query',
732
734
  schema: zod_1.z.number().int().optional().default(0),
733
735
  },
734
736
  {
735
- name: "status",
736
- type: "Query",
737
+ name: 'status',
738
+ type: 'Query',
737
739
  schema: zod_1.z
738
740
  .enum([
739
- "pending",
740
- "processing",
741
- "completed",
742
- "failed",
743
- "not_applicable",
741
+ 'pending',
742
+ 'processing',
743
+ 'completed',
744
+ 'failed',
745
+ 'not_applicable',
744
746
  ])
745
747
  .optional(),
746
748
  },
747
749
  {
748
- name: "added_before",
749
- type: "Query",
750
+ name: 'added_before',
751
+ type: 'Query',
750
752
  schema: zod_1.z.string().optional(),
751
753
  },
752
754
  {
753
- name: "added_after",
754
- type: "Query",
755
+ name: 'added_after',
756
+ type: 'Query',
755
757
  schema: zod_1.z.string().optional(),
756
758
  },
757
759
  {
758
- name: "order",
759
- type: "Query",
760
- schema: zod_1.z.enum(["added_at", "filename"]).optional().default("added_at"),
760
+ name: 'order',
761
+ type: 'Query',
762
+ schema: zod_1.z.enum(['added_at', 'filename']).optional().default('added_at'),
761
763
  },
762
764
  {
763
- name: "sort",
764
- type: "Query",
765
- schema: zod_1.z.enum(["asc", "desc"]).optional().default("desc"),
765
+ name: 'sort',
766
+ type: 'Query',
767
+ schema: zod_1.z.enum(['asc', 'desc']).optional().default('desc'),
766
768
  },
767
769
  {
768
- name: "filter",
769
- type: "Query",
770
+ name: 'filter',
771
+ type: 'Query',
770
772
  schema: zod_1.z.string().optional(),
771
773
  },
772
774
  ],
@@ -785,20 +787,20 @@ const endpoints = (0, core_1.makeApi)([
785
787
  ],
786
788
  },
787
789
  {
788
- method: "get",
789
- path: "/collections/:collection_id/videos/:file_id",
790
- alias: "getVideo",
790
+ method: 'get',
791
+ path: '/collections/:collection_id/videos/:file_id',
792
+ alias: 'getVideo',
791
793
  description: `Retrieve information about a specific video file in a collection`,
792
- requestFormat: "json",
794
+ requestFormat: 'json',
793
795
  parameters: [
794
796
  {
795
- name: "collection_id",
796
- type: "Path",
797
+ name: 'collection_id',
798
+ type: 'Path',
797
799
  schema: zod_1.z.string(),
798
800
  },
799
801
  {
800
- name: "file_id",
801
- type: "Path",
802
+ name: 'file_id',
803
+ type: 'Path',
802
804
  schema: zod_1.z.string(),
803
805
  },
804
806
  ],
@@ -817,20 +819,20 @@ const endpoints = (0, core_1.makeApi)([
817
819
  ],
818
820
  },
819
821
  {
820
- method: "delete",
821
- path: "/collections/:collection_id/videos/:file_id",
822
- alias: "deleteVideo",
822
+ method: 'delete',
823
+ path: '/collections/:collection_id/videos/:file_id',
824
+ alias: 'deleteVideo',
823
825
  description: `Remove a video file from a collection`,
824
- requestFormat: "json",
826
+ requestFormat: 'json',
825
827
  parameters: [
826
828
  {
827
- name: "collection_id",
828
- type: "Path",
829
+ name: 'collection_id',
830
+ type: 'Path',
829
831
  schema: zod_1.z.string(),
830
832
  },
831
833
  {
832
- name: "file_id",
833
- type: "Path",
834
+ name: 'file_id',
835
+ type: 'Path',
834
836
  schema: zod_1.z.string(),
835
837
  },
836
838
  ],
@@ -849,30 +851,30 @@ const endpoints = (0, core_1.makeApi)([
849
851
  ],
850
852
  },
851
853
  {
852
- method: "get",
853
- path: "/collections/:collection_id/videos/:file_id/entities",
854
- alias: "getEntities",
854
+ method: 'get',
855
+ path: '/collections/:collection_id/videos/:file_id/entities',
856
+ alias: 'getEntities',
855
857
  description: `Retrieve extracted entities for a specific file in a collection. Results are paginated with a default limit of 50 segment entities per request (maximum 100). Use limit and offset parameters to paginate through all results. This API is only available when the collection is created with collection_type 'entities'`,
856
- requestFormat: "json",
858
+ requestFormat: 'json',
857
859
  parameters: [
858
860
  {
859
- name: "collection_id",
860
- type: "Path",
861
+ name: 'collection_id',
862
+ type: 'Path',
861
863
  schema: zod_1.z.string(),
862
864
  },
863
865
  {
864
- name: "file_id",
865
- type: "Path",
866
+ name: 'file_id',
867
+ type: 'Path',
866
868
  schema: zod_1.z.string(),
867
869
  },
868
870
  {
869
- name: "limit",
870
- type: "Query",
871
+ name: 'limit',
872
+ type: 'Query',
871
873
  schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
872
874
  },
873
875
  {
874
- name: "offset",
875
- type: "Query",
876
+ name: 'offset',
877
+ type: 'Query',
876
878
  schema: zod_1.z.number().int().gte(0).optional().default(0),
877
879
  },
878
880
  ],
@@ -896,35 +898,35 @@ const endpoints = (0, core_1.makeApi)([
896
898
  ],
897
899
  },
898
900
  {
899
- method: "get",
900
- path: "/collections/:collection_id/videos/:file_id/rich-transcripts",
901
- alias: "getTranscripts",
901
+ method: 'get',
902
+ path: '/collections/:collection_id/videos/:file_id/rich-transcripts',
903
+ alias: 'getTranscripts',
902
904
  description: `Retrieve rich transcription data for a specific file in a collection. This API is only available when the a collection is created with collection_type 'rich-transcripts'`,
903
- requestFormat: "json",
905
+ requestFormat: 'json',
904
906
  parameters: [
905
907
  {
906
- name: "collection_id",
907
- type: "Path",
908
+ name: 'collection_id',
909
+ type: 'Path',
908
910
  schema: zod_1.z.string(),
909
911
  },
910
912
  {
911
- name: "file_id",
912
- type: "Path",
913
+ name: 'file_id',
914
+ type: 'Path',
913
915
  schema: zod_1.z.string(),
914
916
  },
915
917
  {
916
- name: "response_format",
917
- type: "Query",
918
- schema: zod_1.z.enum(["json", "markdown"]).optional().default("json"),
918
+ name: 'response_format',
919
+ type: 'Query',
920
+ schema: zod_1.z.enum(['json', 'markdown']).optional().default('json'),
919
921
  },
920
922
  {
921
- name: "start_time_seconds",
922
- type: "Query",
923
+ name: 'start_time_seconds',
924
+ type: 'Query',
923
925
  schema: zod_1.z.number().optional(),
924
926
  },
925
927
  {
926
- name: "end_time_seconds",
927
- type: "Query",
928
+ name: 'end_time_seconds',
929
+ type: 'Query',
928
930
  schema: zod_1.z.number().optional(),
929
931
  },
930
932
  ],
@@ -948,45 +950,45 @@ const endpoints = (0, core_1.makeApi)([
948
950
  ],
949
951
  },
950
952
  {
951
- method: "get",
952
- path: "/collections/:collection_id/entities",
953
- alias: "listCollectionEntities",
953
+ method: 'get',
954
+ path: '/collections/:collection_id/entities',
955
+ alias: 'listCollectionEntities',
954
956
  description: `List all extracted entities for files in a collection. This API is only available when a collection is created with collection_type 'entities'`,
955
- requestFormat: "json",
957
+ requestFormat: 'json',
956
958
  parameters: [
957
959
  {
958
- name: "collection_id",
959
- type: "Path",
960
+ name: 'collection_id',
961
+ type: 'Path',
960
962
  schema: zod_1.z.string(),
961
963
  },
962
964
  {
963
- name: "limit",
964
- type: "Query",
965
+ name: 'limit',
966
+ type: 'Query',
965
967
  schema: zod_1.z.number().int().lte(100).optional().default(50),
966
968
  },
967
969
  {
968
- name: "offset",
969
- type: "Query",
970
+ name: 'offset',
971
+ type: 'Query',
970
972
  schema: zod_1.z.number().int().optional().default(0),
971
973
  },
972
974
  {
973
- name: "order",
974
- type: "Query",
975
- schema: zod_1.z.enum(["added_at", "filename"]).optional().default("added_at"),
975
+ name: 'order',
976
+ type: 'Query',
977
+ schema: zod_1.z.enum(['added_at', 'filename']).optional().default('added_at'),
976
978
  },
977
979
  {
978
- name: "sort",
979
- type: "Query",
980
- schema: zod_1.z.enum(["asc", "desc"]).optional().default("desc"),
980
+ name: 'sort',
981
+ type: 'Query',
982
+ schema: zod_1.z.enum(['asc', 'desc']).optional().default('desc'),
981
983
  },
982
984
  {
983
- name: "added_before",
984
- type: "Query",
985
+ name: 'added_before',
986
+ type: 'Query',
985
987
  schema: zod_1.z.string().optional(),
986
988
  },
987
989
  {
988
- name: "added_after",
989
- type: "Query",
990
+ name: 'added_after',
991
+ type: 'Query',
990
992
  schema: zod_1.z.string().optional(),
991
993
  },
992
994
  ],
@@ -1010,51 +1012,51 @@ const endpoints = (0, core_1.makeApi)([
1010
1012
  ],
1011
1013
  },
1012
1014
  {
1013
- method: "get",
1014
- path: "/collections/:collection_id/rich-transcripts",
1015
- alias: "listCollectionRichTranscripts",
1015
+ method: 'get',
1016
+ path: '/collections/:collection_id/rich-transcripts',
1017
+ alias: 'listCollectionRichTranscripts',
1016
1018
  description: `List all rich transcription data for files in a collection. This API is only available when a collection is created with collection_type 'rich-transcripts'`,
1017
- requestFormat: "json",
1019
+ requestFormat: 'json',
1018
1020
  parameters: [
1019
1021
  {
1020
- name: "collection_id",
1021
- type: "Path",
1022
+ name: 'collection_id',
1023
+ type: 'Path',
1022
1024
  schema: zod_1.z.string(),
1023
1025
  },
1024
1026
  {
1025
- name: "limit",
1026
- type: "Query",
1027
+ name: 'limit',
1028
+ type: 'Query',
1027
1029
  schema: zod_1.z.number().int().lte(100).optional().default(20),
1028
1030
  },
1029
1031
  {
1030
- name: "offset",
1031
- type: "Query",
1032
+ name: 'offset',
1033
+ type: 'Query',
1032
1034
  schema: zod_1.z.number().int().optional().default(0),
1033
1035
  },
1034
1036
  {
1035
- name: "order",
1036
- type: "Query",
1037
- schema: zod_1.z.enum(["added_at", "filename"]).optional().default("added_at"),
1037
+ name: 'order',
1038
+ type: 'Query',
1039
+ schema: zod_1.z.enum(['added_at', 'filename']).optional().default('added_at'),
1038
1040
  },
1039
1041
  {
1040
- name: "sort",
1041
- type: "Query",
1042
- schema: zod_1.z.enum(["asc", "desc"]).optional().default("desc"),
1042
+ name: 'sort',
1043
+ type: 'Query',
1044
+ schema: zod_1.z.enum(['asc', 'desc']).optional().default('desc'),
1043
1045
  },
1044
1046
  {
1045
- name: "added_before",
1046
- type: "Query",
1047
+ name: 'added_before',
1048
+ type: 'Query',
1047
1049
  schema: zod_1.z.string().optional(),
1048
1050
  },
1049
1051
  {
1050
- name: "added_after",
1051
- type: "Query",
1052
+ name: 'added_after',
1053
+ type: 'Query',
1052
1054
  schema: zod_1.z.string().optional(),
1053
1055
  },
1054
1056
  {
1055
- name: "response_format",
1056
- type: "Query",
1057
- schema: zod_1.z.enum(["json", "markdown"]).optional().default("json"),
1057
+ name: 'response_format',
1058
+ type: 'Query',
1059
+ schema: zod_1.z.enum(['json', 'markdown']).optional().default('json'),
1058
1060
  },
1059
1061
  ],
1060
1062
  response: CollectionRichTranscriptsList,
@@ -1077,51 +1079,51 @@ const endpoints = (0, core_1.makeApi)([
1077
1079
  ],
1078
1080
  },
1079
1081
  {
1080
- method: "get",
1081
- path: "/collections/:collection_id/media-descriptions",
1082
- alias: "listCollectionMediaDescriptions",
1082
+ method: 'get',
1083
+ path: '/collections/:collection_id/media-descriptions',
1084
+ alias: 'listCollectionMediaDescriptions',
1083
1085
  description: `List all media description data for files in a collection. This API is only available when a collection is created with collection_type 'media-descriptions'`,
1084
- requestFormat: "json",
1086
+ requestFormat: 'json',
1085
1087
  parameters: [
1086
1088
  {
1087
- name: "collection_id",
1088
- type: "Path",
1089
+ name: 'collection_id',
1090
+ type: 'Path',
1089
1091
  schema: zod_1.z.string(),
1090
1092
  },
1091
1093
  {
1092
- name: "limit",
1093
- type: "Query",
1094
+ name: 'limit',
1095
+ type: 'Query',
1094
1096
  schema: zod_1.z.number().int().lte(100).optional().default(20),
1095
1097
  },
1096
1098
  {
1097
- name: "offset",
1098
- type: "Query",
1099
+ name: 'offset',
1100
+ type: 'Query',
1099
1101
  schema: zod_1.z.number().int().optional().default(0),
1100
1102
  },
1101
1103
  {
1102
- name: "order",
1103
- type: "Query",
1104
- schema: zod_1.z.enum(["added_at", "filename"]).optional().default("added_at"),
1104
+ name: 'order',
1105
+ type: 'Query',
1106
+ schema: zod_1.z.enum(['added_at', 'filename']).optional().default('added_at'),
1105
1107
  },
1106
1108
  {
1107
- name: "sort",
1108
- type: "Query",
1109
- schema: zod_1.z.enum(["asc", "desc"]).optional().default("desc"),
1109
+ name: 'sort',
1110
+ type: 'Query',
1111
+ schema: zod_1.z.enum(['asc', 'desc']).optional().default('desc'),
1110
1112
  },
1111
1113
  {
1112
- name: "added_before",
1113
- type: "Query",
1114
+ name: 'added_before',
1115
+ type: 'Query',
1114
1116
  schema: zod_1.z.string().optional(),
1115
1117
  },
1116
1118
  {
1117
- name: "added_after",
1118
- type: "Query",
1119
+ name: 'added_after',
1120
+ type: 'Query',
1119
1121
  schema: zod_1.z.string().optional(),
1120
1122
  },
1121
1123
  {
1122
- name: "response_format",
1123
- type: "Query",
1124
- schema: zod_1.z.enum(["json", "markdown"]).optional().default("json"),
1124
+ name: 'response_format',
1125
+ type: 'Query',
1126
+ schema: zod_1.z.enum(['json', 'markdown']).optional().default('json'),
1125
1127
  },
1126
1128
  ],
1127
1129
  response: CollectionMediaDescriptionsList,
@@ -1144,35 +1146,35 @@ const endpoints = (0, core_1.makeApi)([
1144
1146
  ],
1145
1147
  },
1146
1148
  {
1147
- method: "get",
1148
- path: "/collections/:collection_id/videos/:file_id/media-descriptions",
1149
- alias: "getMediaDescriptions",
1149
+ method: 'get',
1150
+ path: '/collections/:collection_id/videos/:file_id/media-descriptions',
1151
+ alias: 'getMediaDescriptions',
1150
1152
  description: `Retrieve media description data for a specific file in a collection. This API is only available when the collection is created with collection_type 'media-descriptions'`,
1151
- requestFormat: "json",
1153
+ requestFormat: 'json',
1152
1154
  parameters: [
1153
1155
  {
1154
- name: "collection_id",
1155
- type: "Path",
1156
+ name: 'collection_id',
1157
+ type: 'Path',
1156
1158
  schema: zod_1.z.string(),
1157
1159
  },
1158
1160
  {
1159
- name: "file_id",
1160
- type: "Path",
1161
+ name: 'file_id',
1162
+ type: 'Path',
1161
1163
  schema: zod_1.z.string(),
1162
1164
  },
1163
1165
  {
1164
- name: "response_format",
1165
- type: "Query",
1166
- schema: zod_1.z.enum(["json", "markdown"]).optional().default("json"),
1166
+ name: 'response_format',
1167
+ type: 'Query',
1168
+ schema: zod_1.z.enum(['json', 'markdown']).optional().default('json'),
1167
1169
  },
1168
1170
  {
1169
- name: "start_time_seconds",
1170
- type: "Query",
1171
+ name: 'start_time_seconds',
1172
+ type: 'Query',
1171
1173
  schema: zod_1.z.number().optional(),
1172
1174
  },
1173
1175
  {
1174
- name: "end_time_seconds",
1175
- type: "Query",
1176
+ name: 'end_time_seconds',
1177
+ type: 'Query',
1176
1178
  schema: zod_1.z.number().optional(),
1177
1179
  },
1178
1180
  ],
@@ -1196,30 +1198,30 @@ const endpoints = (0, core_1.makeApi)([
1196
1198
  ],
1197
1199
  },
1198
1200
  {
1199
- method: "get",
1200
- path: "/collections/:collection_id/videos/:file_id/face-detections",
1201
- alias: "getFaceDetections",
1201
+ method: 'get',
1202
+ path: '/collections/:collection_id/videos/:file_id/face-detections',
1203
+ alias: 'getFaceDetections',
1202
1204
  description: `Retrieve face detections for a specific file in a collection. Results are paginated with a default limit of 50 faces per request (maximum 100). Use limit and offset parameters to paginate through all results. This API is only available when the collection is created with collection_type 'face-analysis'`,
1203
- requestFormat: "json",
1205
+ requestFormat: 'json',
1204
1206
  parameters: [
1205
1207
  {
1206
- name: "collection_id",
1207
- type: "Path",
1208
+ name: 'collection_id',
1209
+ type: 'Path',
1208
1210
  schema: zod_1.z.string(),
1209
1211
  },
1210
1212
  {
1211
- name: "file_id",
1212
- type: "Path",
1213
+ name: 'file_id',
1214
+ type: 'Path',
1213
1215
  schema: zod_1.z.string(),
1214
1216
  },
1215
1217
  {
1216
- name: "limit",
1217
- type: "Query",
1218
+ name: 'limit',
1219
+ type: 'Query',
1218
1220
  schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
1219
1221
  },
1220
1222
  {
1221
- name: "offset",
1222
- type: "Query",
1223
+ name: 'offset',
1224
+ type: 'Query',
1223
1225
  schema: zod_1.z.number().int().gte(0).optional().default(0),
1224
1226
  },
1225
1227
  ],
@@ -1243,7 +1245,7 @@ const endpoints = (0, core_1.makeApi)([
1243
1245
  ],
1244
1246
  },
1245
1247
  ]);
1246
- exports.CollectionsApi = new core_1.Zodios("https://api.cloudglue.dev/v1", endpoints);
1248
+ exports.CollectionsApi = new core_1.Zodios('https://api.cloudglue.dev/v1', endpoints);
1247
1249
  function createApiClient(baseUrl, options) {
1248
1250
  return new core_1.Zodios(baseUrl, endpoints, options);
1249
1251
  }