@aviaryhq/cloudglue-js 0.4.7 → 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.
@@ -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?: SegmentationConfig | undefined;
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: common_2.ThumbnailsConfig.optional(),
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: common_1.SegmentationConfig.optional(),
139
- default_thumbnails_config: common_2.ThumbnailsConfig.optional(),
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(common_4.FileSegmentationConfig)
197
+ .and(common_6.FileSegmentationConfig)
186
198
  .and(zod_1.z
187
- .object({ thumbnails_config: common_2.ThumbnailsConfig })
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: common_3.File.optional(),
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(common_5.DescribeOutput);
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(common_5.DescribeOutput);
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(common_5.DescribeOutput),
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(common_5.DescribeOutput),
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,
@@ -391,7 +391,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
391
391
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
392
392
  }, z.ZodTypeAny, "passthrough">>>;
393
393
  thumbnail_url: z.ZodOptional<z.ZodString>;
394
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
394
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
395
395
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
396
396
  id: z.ZodString;
397
397
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -420,7 +420,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
420
420
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
421
421
  }, z.ZodTypeAny, "passthrough">>>;
422
422
  thumbnail_url: z.ZodOptional<z.ZodString>;
423
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
423
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
424
424
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
425
425
  id: z.ZodString;
426
426
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -449,7 +449,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
449
449
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
450
450
  }, z.ZodTypeAny, "passthrough">>>;
451
451
  thumbnail_url: z.ZodOptional<z.ZodString>;
452
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
452
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
453
453
  }, z.ZodTypeAny, "passthrough">>;
454
454
  errors: [{
455
455
  status: 400;
@@ -582,7 +582,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
582
582
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
583
583
  }, z.ZodTypeAny, "passthrough">>>;
584
584
  thumbnail_url: z.ZodOptional<z.ZodString>;
585
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
585
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
586
586
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
587
587
  id: z.ZodString;
588
588
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -611,7 +611,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
611
611
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
612
612
  }, z.ZodTypeAny, "passthrough">>>;
613
613
  thumbnail_url: z.ZodOptional<z.ZodString>;
614
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
614
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
615
615
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
616
616
  id: z.ZodString;
617
617
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -640,7 +640,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
640
640
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
641
641
  }, z.ZodTypeAny, "passthrough">>>;
642
642
  thumbnail_url: z.ZodOptional<z.ZodString>;
643
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
643
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
644
644
  }, z.ZodTypeAny, "passthrough">>;
645
645
  errors: [{
646
646
  status: 404;
@@ -758,7 +758,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
758
758
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
759
759
  }, z.ZodTypeAny, "passthrough">>>;
760
760
  thumbnail_url: z.ZodOptional<z.ZodString>;
761
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
761
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
762
762
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
763
763
  id: z.ZodString;
764
764
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -787,7 +787,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
787
787
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
788
788
  }, z.ZodTypeAny, "passthrough">>>;
789
789
  thumbnail_url: z.ZodOptional<z.ZodString>;
790
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
790
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
791
791
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
792
792
  id: z.ZodString;
793
793
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -816,7 +816,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
816
816
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
817
817
  }, z.ZodTypeAny, "passthrough">>>;
818
818
  thumbnail_url: z.ZodOptional<z.ZodString>;
819
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
819
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
820
820
  }, z.ZodTypeAny, "passthrough">>;
821
821
  errors: [{
822
822
  status: 400;
@@ -2741,7 +2741,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
2741
2741
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2742
2742
  }, z.ZodTypeAny, "passthrough">>>;
2743
2743
  thumbnail_url: z.ZodOptional<z.ZodString>;
2744
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
2744
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
2745
2745
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2746
2746
  id: z.ZodString;
2747
2747
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -2770,7 +2770,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
2770
2770
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2771
2771
  }, z.ZodTypeAny, "passthrough">>>;
2772
2772
  thumbnail_url: z.ZodOptional<z.ZodString>;
2773
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
2773
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
2774
2774
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2775
2775
  id: z.ZodString;
2776
2776
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -2799,7 +2799,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
2799
2799
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2800
2800
  }, z.ZodTypeAny, "passthrough">>>;
2801
2801
  thumbnail_url: z.ZodOptional<z.ZodString>;
2802
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
2802
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
2803
2803
  }, z.ZodTypeAny, "passthrough">>;
2804
2804
  errors: [{
2805
2805
  status: 400;
@@ -2932,7 +2932,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
2932
2932
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2933
2933
  }, z.ZodTypeAny, "passthrough">>>;
2934
2934
  thumbnail_url: z.ZodOptional<z.ZodString>;
2935
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
2935
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
2936
2936
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2937
2937
  id: z.ZodString;
2938
2938
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -2961,7 +2961,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
2961
2961
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2962
2962
  }, z.ZodTypeAny, "passthrough">>>;
2963
2963
  thumbnail_url: z.ZodOptional<z.ZodString>;
2964
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
2964
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
2965
2965
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2966
2966
  id: z.ZodString;
2967
2967
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -2990,7 +2990,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
2990
2990
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2991
2991
  }, z.ZodTypeAny, "passthrough">>>;
2992
2992
  thumbnail_url: z.ZodOptional<z.ZodString>;
2993
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
2993
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
2994
2994
  }, z.ZodTypeAny, "passthrough">>;
2995
2995
  errors: [{
2996
2996
  status: 404;
@@ -3108,7 +3108,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
3108
3108
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3109
3109
  }, z.ZodTypeAny, "passthrough">>>;
3110
3110
  thumbnail_url: z.ZodOptional<z.ZodString>;
3111
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
3111
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
3112
3112
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3113
3113
  id: z.ZodString;
3114
3114
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -3137,7 +3137,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
3137
3137
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3138
3138
  }, z.ZodTypeAny, "passthrough">>>;
3139
3139
  thumbnail_url: z.ZodOptional<z.ZodString>;
3140
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
3140
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
3141
3141
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3142
3142
  id: z.ZodString;
3143
3143
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -3166,7 +3166,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
3166
3166
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3167
3167
  }, z.ZodTypeAny, "passthrough">>>;
3168
3168
  thumbnail_url: z.ZodOptional<z.ZodString>;
3169
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
3169
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
3170
3170
  }, z.ZodTypeAny, "passthrough">>;
3171
3171
  errors: [{
3172
3172
  status: 400;
@@ -51,10 +51,7 @@ const SearchRequest = zod_1.z
51
51
  .object({ url: zod_1.z.string(), base64: zod_1.z.string() })
52
52
  .partial()
53
53
  .strict()
54
- .passthrough()
55
- .refine((obj) => obj.url !== undefined || obj.base64 !== undefined, {
56
- message: "source_image must have at least one of 'url' or 'base64'",
57
- }),
54
+ .passthrough(),
58
55
  limit: zod_1.z.number().int().gte(1).default(10),
59
56
  filter: SearchFilter,
60
57
  threshold: zod_1.z.number(),
@@ -63,7 +63,7 @@ export type File = {
63
63
  has_audio: boolean | null;
64
64
  }> | undefined;
65
65
  thumbnail_url?: string | undefined;
66
- source?: ("video" | "youtube" | "s3" | "dropbox" | "http" | "upload" | "google-drive" | "zoom" | "gong") | undefined;
66
+ source?: ("video" | "youtube" | "s3" | "dropbox" | "http" | "upload" | "google-drive" | "zoom" | "gong" | "recall") | undefined;
67
67
  };
68
68
  export type Segmentation = {
69
69
  segmentation_id: string;
@@ -1020,7 +1020,7 @@ export declare const File: z.ZodObject<{
1020
1020
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1021
1021
  }, z.ZodTypeAny, "passthrough">>>;
1022
1022
  thumbnail_url: z.ZodOptional<z.ZodString>;
1023
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
1023
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
1024
1024
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1025
1025
  id: z.ZodString;
1026
1026
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -1049,7 +1049,7 @@ export declare const File: z.ZodObject<{
1049
1049
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1050
1050
  }, z.ZodTypeAny, "passthrough">>>;
1051
1051
  thumbnail_url: z.ZodOptional<z.ZodString>;
1052
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
1052
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
1053
1053
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1054
1054
  id: z.ZodString;
1055
1055
  status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
@@ -1078,7 +1078,7 @@ export declare const File: z.ZodObject<{
1078
1078
  has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1079
1079
  }, z.ZodTypeAny, "passthrough">>>;
1080
1080
  thumbnail_url: z.ZodOptional<z.ZodString>;
1081
- source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
1081
+ source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
1082
1082
  }, z.ZodTypeAny, "passthrough">>;
1083
1083
  export declare const Shot: z.ZodObject<{
1084
1084
  index: z.ZodNumber;
@@ -90,6 +90,7 @@ exports.File = zod_1.z
90
90
  "google-drive",
91
91
  "zoom",
92
92
  "gong",
93
+ "recall",
93
94
  ])
94
95
  .optional(),
95
96
  })
@@ -1,5 +1,5 @@
1
1
  import { FilesApi, CollectionsApi, ChatApi, TranscribeApi, ExtractApi, SearchApi, DescribeApi, SegmentsApi, WebhooksApi, FramesApi, Face_DetectionApi, Face_MatchApi } from "../generated";
2
- import type { CloudGlueConfig, File, Filter, ListFilesParams, NarrativeConfig, SearchRequest, SegmentationConfig, ShotConfig, UpdateFileParams } from "./types";
2
+ import type { CloudGlueConfig, DefaultSegmentationConfig, File, Filter, ListFilesParams, NarrativeConfig, SearchRequest, SegmentationConfig, ShotConfig, UpdateFileParams } from "./types";
3
3
  import { SegmentationsApi } from "../generated/Segmentations";
4
4
  import { ThumbnailsConfig, FrameExtractionConfig } from "../generated/common";
5
5
  import { WebhookEvents } from './types';
@@ -49,7 +49,7 @@ interface CreateCollectionParams {
49
49
  enable_visual_scene_description?: boolean;
50
50
  enable_audio_description?: boolean;
51
51
  };
52
- default_segmentation_config?: SegmentationConfig;
52
+ default_segmentation_config?: DefaultSegmentationConfig;
53
53
  default_thumbnails_config?: ThumbnailsConfig;
54
54
  face_detection_config?: {
55
55
  frame_extraction_config: {
@@ -175,7 +175,7 @@ declare class EnhancedFilesApi {
175
175
  has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
176
176
  }, import("zod").ZodTypeAny, "passthrough">>>;
177
177
  thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
178
- source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
178
+ source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
179
179
  }, import("zod").ZodTypeAny, "passthrough">>;
180
180
  deleteFile(fileId: string): Promise<import("zod").objectOutputType<{
181
181
  id: import("zod").ZodString;
@@ -209,7 +209,7 @@ declare class EnhancedFilesApi {
209
209
  has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
210
210
  }, import("zod").ZodTypeAny, "passthrough">>>;
211
211
  thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
212
- source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
212
+ source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
213
213
  }, import("zod").ZodTypeAny, "passthrough">>;
214
214
  listFileSegmentations(fileId: string, params?: {
215
215
  limit?: number;
@@ -739,7 +739,7 @@ declare class EnhancedFilesApi {
739
739
  has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
740
740
  }, import("zod").ZodTypeAny, "passthrough">>>;
741
741
  thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
742
- source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
742
+ source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong", "recall"]>>;
743
743
  }, import("zod").ZodTypeAny, "passthrough">>;
744
744
  }
745
745
  declare class EnhancedCollectionsApi {
@@ -645,7 +645,7 @@ class CloudGlue {
645
645
  headers: {
646
646
  Authorization: `Bearer ${this.apiKey}`,
647
647
  'x-sdk-client': 'cloudglue-js',
648
- 'x-sdk-version': '0.4.7',
648
+ 'x-sdk-version': '0.4.8',
649
649
  },
650
650
  baseURL: this.baseUrl,
651
651
  timeout: this.timeout,
@@ -255,3 +255,4 @@ export interface ListFilesParams {
255
255
  created_after?: string;
256
256
  filter?: Filter;
257
257
  }
258
+ export type DefaultSegmentationConfig = z.infer<typeof collectionsSchemas.DefaultSegmentationConfig>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aviaryhq/cloudglue-js",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "Cloudglue API client for Node.js",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",