@aviaryhq/cloudglue-js 0.1.2 → 0.1.3
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 +46 -373
- package/dist/generated/Collections.js +67 -46
- package/dist/generated/Extract.d.ts +12 -57
- package/dist/generated/Extract.js +3 -1
- package/dist/generated/Files.d.ts +1280 -0
- package/dist/generated/Files.js +87 -0
- package/dist/generated/Segmentations.d.ts +1076 -0
- package/dist/generated/Segmentations.js +77 -0
- package/dist/generated/Transcribe.d.ts +13 -58
- package/dist/generated/Transcribe.js +14 -12
- package/dist/generated/Webhooks.d.ts +3 -3
- package/dist/generated/Webhooks.js +3 -3
- package/dist/generated/common.d.ts +894 -0
- package/dist/generated/common.js +70 -1
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.js +3 -1
- package/dist/src/client.d.ts +385 -20
- package/dist/src/client.js +57 -19
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +16 -7
- package/dist/src/types.d.ts +16 -2
- package/package.json +2 -2
- package/dist/generated/Describe.d.ts +0 -7027
- package/dist/generated/Describe.js +0 -159
package/dist/src/client.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { FilesApi, CollectionsApi, ChatApi, TranscribeApi, ExtractApi } from "../generated";
|
|
2
|
-
import type { File, UpdateFileParams } from "./types";
|
|
2
|
+
import type { File, SegmentationConfig, UpdateFileParams } from "./types";
|
|
3
|
+
import { SegmentationsApi } from "../generated/Segmentations";
|
|
3
4
|
export declare class CloudGlueError extends Error {
|
|
4
5
|
readonly statusCode?: number | undefined;
|
|
5
6
|
readonly data?: string | undefined;
|
|
6
7
|
readonly headers?: Record<string, any> | undefined;
|
|
7
|
-
|
|
8
|
+
readonly responseData?: any | undefined;
|
|
9
|
+
constructor(message: string, statusCode?: number | undefined, data?: string | undefined, headers?: Record<string, any> | undefined, responseData?: any | undefined);
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* Configuration options for initializing the CloudGlue client
|
|
@@ -18,7 +20,7 @@ export interface CloudGlueConfig {
|
|
|
18
20
|
timeout?: number;
|
|
19
21
|
}
|
|
20
22
|
interface ListFilesParams {
|
|
21
|
-
status?: "pending" | "processing" | "
|
|
23
|
+
status?: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
22
24
|
limit?: number;
|
|
23
25
|
offset?: number;
|
|
24
26
|
order?: "created_at" | "filename";
|
|
@@ -53,11 +55,12 @@ interface CreateCollectionParams {
|
|
|
53
55
|
enable_scene_text?: boolean;
|
|
54
56
|
enable_visual_scene_description?: boolean;
|
|
55
57
|
};
|
|
58
|
+
default_segmentation_config?: SegmentationConfig;
|
|
56
59
|
}
|
|
57
60
|
interface ListCollectionVideosParams {
|
|
58
61
|
limit?: number;
|
|
59
62
|
offset?: number;
|
|
60
|
-
status?: "pending" | "processing" | "
|
|
63
|
+
status?: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
61
64
|
order?: "added_at" | "filename";
|
|
62
65
|
sort?: "asc" | "desc";
|
|
63
66
|
added_before?: string;
|
|
@@ -191,6 +194,169 @@ declare class EnhancedFilesApi {
|
|
|
191
194
|
has_audio: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodNull]>>;
|
|
192
195
|
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
193
196
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
197
|
+
listFileSegmentations(fileId: string, params?: {
|
|
198
|
+
limit?: number;
|
|
199
|
+
offset?: number;
|
|
200
|
+
}): Promise<{
|
|
201
|
+
object: "list";
|
|
202
|
+
data: Array<import("../generated/common").Segmentation>;
|
|
203
|
+
total: number;
|
|
204
|
+
limit: number;
|
|
205
|
+
offset: number;
|
|
206
|
+
}>;
|
|
207
|
+
createFileSegmentation(fileId: string, params: SegmentationConfig): Promise<import("zod").objectOutputType<{
|
|
208
|
+
segmentation_id: import("zod").ZodString;
|
|
209
|
+
status: import("zod").ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
210
|
+
created_at: import("zod").ZodNumber;
|
|
211
|
+
file_id: import("zod").ZodString;
|
|
212
|
+
segmentation_config: import("zod").ZodObject<{
|
|
213
|
+
strategy: import("zod").ZodEnum<["uniform", "shot-detector"]>;
|
|
214
|
+
uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
215
|
+
window_seconds: import("zod").ZodNumber;
|
|
216
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
217
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
218
|
+
window_seconds: import("zod").ZodNumber;
|
|
219
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
220
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
221
|
+
window_seconds: import("zod").ZodNumber;
|
|
222
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
223
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
224
|
+
shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
225
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
226
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
227
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
228
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
229
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
230
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
231
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
232
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
233
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
234
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
235
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
236
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
237
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
238
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
239
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
240
|
+
start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
241
|
+
end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
242
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
243
|
+
strategy: import("zod").ZodEnum<["uniform", "shot-detector"]>;
|
|
244
|
+
uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
245
|
+
window_seconds: import("zod").ZodNumber;
|
|
246
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
247
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
248
|
+
window_seconds: import("zod").ZodNumber;
|
|
249
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
250
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
251
|
+
window_seconds: import("zod").ZodNumber;
|
|
252
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
253
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
254
|
+
shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
255
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
256
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
257
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
258
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
259
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
260
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
261
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
262
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
263
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
264
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
265
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
266
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
267
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
268
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
269
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
270
|
+
start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
271
|
+
end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
272
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
273
|
+
strategy: import("zod").ZodEnum<["uniform", "shot-detector"]>;
|
|
274
|
+
uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
275
|
+
window_seconds: import("zod").ZodNumber;
|
|
276
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
277
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
278
|
+
window_seconds: import("zod").ZodNumber;
|
|
279
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
280
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
281
|
+
window_seconds: import("zod").ZodNumber;
|
|
282
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
283
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
284
|
+
shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
285
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
286
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
287
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
288
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
289
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
290
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
291
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
292
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
293
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
294
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
295
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
296
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
297
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
298
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
299
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
300
|
+
start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
301
|
+
end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
302
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
303
|
+
total_segments: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
304
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
305
|
+
object: import("zod").ZodLiteral<"list">;
|
|
306
|
+
segments: import("zod").ZodArray<import("zod").ZodObject<{
|
|
307
|
+
id: import("zod").ZodString;
|
|
308
|
+
start_time: import("zod").ZodNumber;
|
|
309
|
+
end_time: import("zod").ZodNumber;
|
|
310
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
311
|
+
id: import("zod").ZodString;
|
|
312
|
+
start_time: import("zod").ZodNumber;
|
|
313
|
+
end_time: import("zod").ZodNumber;
|
|
314
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
315
|
+
id: import("zod").ZodString;
|
|
316
|
+
start_time: import("zod").ZodNumber;
|
|
317
|
+
end_time: import("zod").ZodNumber;
|
|
318
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">;
|
|
319
|
+
total: import("zod").ZodNumber;
|
|
320
|
+
limit: import("zod").ZodNumber;
|
|
321
|
+
offset: import("zod").ZodNumber;
|
|
322
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
323
|
+
object: import("zod").ZodLiteral<"list">;
|
|
324
|
+
segments: import("zod").ZodArray<import("zod").ZodObject<{
|
|
325
|
+
id: import("zod").ZodString;
|
|
326
|
+
start_time: import("zod").ZodNumber;
|
|
327
|
+
end_time: import("zod").ZodNumber;
|
|
328
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
329
|
+
id: import("zod").ZodString;
|
|
330
|
+
start_time: import("zod").ZodNumber;
|
|
331
|
+
end_time: import("zod").ZodNumber;
|
|
332
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
333
|
+
id: import("zod").ZodString;
|
|
334
|
+
start_time: import("zod").ZodNumber;
|
|
335
|
+
end_time: import("zod").ZodNumber;
|
|
336
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">;
|
|
337
|
+
total: import("zod").ZodNumber;
|
|
338
|
+
limit: import("zod").ZodNumber;
|
|
339
|
+
offset: import("zod").ZodNumber;
|
|
340
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
341
|
+
object: import("zod").ZodLiteral<"list">;
|
|
342
|
+
segments: import("zod").ZodArray<import("zod").ZodObject<{
|
|
343
|
+
id: import("zod").ZodString;
|
|
344
|
+
start_time: import("zod").ZodNumber;
|
|
345
|
+
end_time: import("zod").ZodNumber;
|
|
346
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
347
|
+
id: import("zod").ZodString;
|
|
348
|
+
start_time: import("zod").ZodNumber;
|
|
349
|
+
end_time: import("zod").ZodNumber;
|
|
350
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
351
|
+
id: import("zod").ZodString;
|
|
352
|
+
start_time: import("zod").ZodNumber;
|
|
353
|
+
end_time: import("zod").ZodNumber;
|
|
354
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">;
|
|
355
|
+
total: import("zod").ZodNumber;
|
|
356
|
+
limit: import("zod").ZodNumber;
|
|
357
|
+
offset: import("zod").ZodNumber;
|
|
358
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
359
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
194
360
|
/**
|
|
195
361
|
* Waits for a file to finish processing by polling the getFile endpoint until the file
|
|
196
362
|
* reaches a terminal state (completed, failed, or not_applicable) or until maxAttempts is reached.
|
|
@@ -252,6 +418,7 @@ declare class EnhancedCollectionsApi {
|
|
|
252
418
|
enable_scene_text: boolean;
|
|
253
419
|
enable_visual_scene_description: boolean;
|
|
254
420
|
}> | undefined;
|
|
421
|
+
default_segmentation_config?: import("../generated/common").SegmentationConfig | undefined;
|
|
255
422
|
created_at: number;
|
|
256
423
|
file_count: number;
|
|
257
424
|
}>;
|
|
@@ -277,6 +444,7 @@ declare class EnhancedCollectionsApi {
|
|
|
277
444
|
enable_scene_text: boolean;
|
|
278
445
|
enable_visual_scene_description: boolean;
|
|
279
446
|
}> | undefined;
|
|
447
|
+
default_segmentation_config?: import("../generated/common").SegmentationConfig | undefined;
|
|
280
448
|
created_at: number;
|
|
281
449
|
file_count: number;
|
|
282
450
|
}>;
|
|
@@ -298,6 +466,7 @@ declare class EnhancedCollectionsApi {
|
|
|
298
466
|
enable_scene_text: boolean;
|
|
299
467
|
enable_visual_scene_description: boolean;
|
|
300
468
|
}> | undefined;
|
|
469
|
+
default_segmentation_config?: import("../generated/common").SegmentationConfig | undefined;
|
|
301
470
|
created_at: number;
|
|
302
471
|
file_count: number;
|
|
303
472
|
}>;
|
|
@@ -305,15 +474,22 @@ declare class EnhancedCollectionsApi {
|
|
|
305
474
|
id: import("zod").ZodString;
|
|
306
475
|
object: import("zod").ZodLiteral<"collection">;
|
|
307
476
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
308
|
-
addVideo(collectionId: string, fileId: string
|
|
477
|
+
addVideo(collectionId: string, fileId: string, params?: {
|
|
478
|
+
segmentation_config?: SegmentationConfig;
|
|
479
|
+
metadata?: Record<string, any>;
|
|
480
|
+
}): Promise<{
|
|
309
481
|
collection_id: string;
|
|
310
482
|
file_id: string;
|
|
311
483
|
object: "collection_file";
|
|
312
484
|
added_at: number;
|
|
313
485
|
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
314
|
-
extract_status?: ("pending" | "processing" | "completed" | "failed" | "not_applicable") | undefined;
|
|
315
|
-
searchable_status?: ("pending" | "processing" | "completed" | "failed" | "not_applicable") | undefined;
|
|
316
486
|
file?: File | undefined;
|
|
487
|
+
segmentation?: {
|
|
488
|
+
id: string;
|
|
489
|
+
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
490
|
+
file_id: string;
|
|
491
|
+
segmentation_config: import("../generated/common").SegmentationConfig;
|
|
492
|
+
} | undefined;
|
|
317
493
|
}>;
|
|
318
494
|
listVideos(collectionId: string, params?: ListCollectionVideosParams): Promise<{
|
|
319
495
|
object: "list";
|
|
@@ -323,9 +499,13 @@ declare class EnhancedCollectionsApi {
|
|
|
323
499
|
object: "collection_file";
|
|
324
500
|
added_at: number;
|
|
325
501
|
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
326
|
-
extract_status?: ("pending" | "processing" | "completed" | "failed" | "not_applicable") | undefined;
|
|
327
|
-
searchable_status?: ("pending" | "processing" | "completed" | "failed" | "not_applicable") | undefined;
|
|
328
502
|
file?: File | undefined;
|
|
503
|
+
segmentation?: {
|
|
504
|
+
id: string;
|
|
505
|
+
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
506
|
+
file_id: string;
|
|
507
|
+
segmentation_config: import("../generated/common").SegmentationConfig;
|
|
508
|
+
} | undefined;
|
|
329
509
|
}>;
|
|
330
510
|
total: number;
|
|
331
511
|
limit: number;
|
|
@@ -337,9 +517,13 @@ declare class EnhancedCollectionsApi {
|
|
|
337
517
|
object: "collection_file";
|
|
338
518
|
added_at: number;
|
|
339
519
|
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
340
|
-
extract_status?: ("pending" | "processing" | "completed" | "failed" | "not_applicable") | undefined;
|
|
341
|
-
searchable_status?: ("pending" | "processing" | "completed" | "failed" | "not_applicable") | undefined;
|
|
342
520
|
file?: File | undefined;
|
|
521
|
+
segmentation?: {
|
|
522
|
+
id: string;
|
|
523
|
+
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
524
|
+
file_id: string;
|
|
525
|
+
segmentation_config: import("../generated/common").SegmentationConfig;
|
|
526
|
+
} | undefined;
|
|
343
527
|
}>;
|
|
344
528
|
deleteVideo(collectionId: string, fileId: string): Promise<import("zod").objectOutputType<{
|
|
345
529
|
collection_id: import("zod").ZodString;
|
|
@@ -410,15 +594,22 @@ declare class EnhancedCollectionsApi {
|
|
|
410
594
|
end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
411
595
|
}, import("zod").ZodTypeAny, "passthrough">>, "many">>;
|
|
412
596
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
413
|
-
addYouTubeVideo(collectionId: string, url: string,
|
|
597
|
+
addYouTubeVideo(collectionId: string, url: string, params?: {
|
|
598
|
+
metadata?: Record<string, any>;
|
|
599
|
+
segmentation_config?: SegmentationConfig;
|
|
600
|
+
}): Promise<{
|
|
414
601
|
collection_id: string;
|
|
415
602
|
file_id: string;
|
|
416
603
|
object: "collection_file";
|
|
417
604
|
added_at: number;
|
|
418
605
|
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
419
|
-
extract_status?: ("pending" | "processing" | "completed" | "failed" | "not_applicable") | undefined;
|
|
420
|
-
searchable_status?: ("pending" | "processing" | "completed" | "failed" | "not_applicable") | undefined;
|
|
421
606
|
file?: File | undefined;
|
|
607
|
+
segmentation?: {
|
|
608
|
+
id: string;
|
|
609
|
+
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
610
|
+
file_id: string;
|
|
611
|
+
segmentation_config: import("../generated/common").SegmentationConfig;
|
|
612
|
+
} | undefined;
|
|
422
613
|
}>;
|
|
423
614
|
listEntities(collectionId: string, params?: ListCollectionEntitiesParams): Promise<import("zod").objectOutputType<{
|
|
424
615
|
object: import("zod").ZodLiteral<"list">;
|
|
@@ -990,9 +1181,13 @@ declare class EnhancedCollectionsApi {
|
|
|
990
1181
|
object: "collection_file";
|
|
991
1182
|
added_at: number;
|
|
992
1183
|
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
993
|
-
extract_status?: ("pending" | "processing" | "completed" | "failed" | "not_applicable") | undefined;
|
|
994
|
-
searchable_status?: ("pending" | "processing" | "completed" | "failed" | "not_applicable") | undefined;
|
|
995
1184
|
file?: File | undefined;
|
|
1185
|
+
segmentation?: {
|
|
1186
|
+
id: string;
|
|
1187
|
+
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
1188
|
+
file_id: string;
|
|
1189
|
+
segmentation_config: import("../generated/common").SegmentationConfig;
|
|
1190
|
+
} | undefined;
|
|
996
1191
|
}>;
|
|
997
1192
|
}
|
|
998
1193
|
declare class EnhancedChatApi {
|
|
@@ -1054,13 +1249,14 @@ declare class EnhancedTranscribeApi {
|
|
|
1054
1249
|
enable_speech?: boolean;
|
|
1055
1250
|
enable_scene_text?: boolean;
|
|
1056
1251
|
enable_visual_scene_description?: boolean;
|
|
1252
|
+
segmentation_config?: SegmentationConfig;
|
|
1057
1253
|
}): Promise<{
|
|
1058
1254
|
job_id: string;
|
|
1059
1255
|
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
1060
1256
|
url?: string | undefined;
|
|
1061
1257
|
created_at?: number | undefined;
|
|
1062
1258
|
transcribe_config?: Partial<{
|
|
1063
|
-
|
|
1259
|
+
enable_summary: boolean;
|
|
1064
1260
|
enable_speech: boolean;
|
|
1065
1261
|
enable_visual_scene_description: boolean;
|
|
1066
1262
|
enable_scene_text: boolean;
|
|
@@ -1095,7 +1291,7 @@ declare class EnhancedTranscribeApi {
|
|
|
1095
1291
|
url?: string | undefined;
|
|
1096
1292
|
created_at?: number | undefined;
|
|
1097
1293
|
transcribe_config?: Partial<{
|
|
1098
|
-
|
|
1294
|
+
enable_summary: boolean;
|
|
1099
1295
|
enable_speech: boolean;
|
|
1100
1296
|
enable_visual_scene_description: boolean;
|
|
1101
1297
|
enable_scene_text: boolean;
|
|
@@ -1138,7 +1334,7 @@ declare class EnhancedTranscribeApi {
|
|
|
1138
1334
|
url?: string | undefined;
|
|
1139
1335
|
created_at?: number | undefined;
|
|
1140
1336
|
transcribe_config?: Partial<{
|
|
1141
|
-
|
|
1337
|
+
enable_summary: boolean;
|
|
1142
1338
|
enable_speech: boolean;
|
|
1143
1339
|
enable_visual_scene_description: boolean;
|
|
1144
1340
|
enable_scene_text: boolean;
|
|
@@ -1185,7 +1381,7 @@ declare class EnhancedTranscribeApi {
|
|
|
1185
1381
|
url?: string | undefined;
|
|
1186
1382
|
created_at?: number | undefined;
|
|
1187
1383
|
transcribe_config?: Partial<{
|
|
1188
|
-
|
|
1384
|
+
enable_summary: boolean;
|
|
1189
1385
|
enable_speech: boolean;
|
|
1190
1386
|
enable_visual_scene_description: boolean;
|
|
1191
1387
|
enable_scene_text: boolean;
|
|
@@ -1221,6 +1417,7 @@ declare class EnhancedExtractApi {
|
|
|
1221
1417
|
schema?: Record<string, any>;
|
|
1222
1418
|
enable_video_level_entities?: boolean;
|
|
1223
1419
|
enable_segment_level_entities?: boolean;
|
|
1420
|
+
segmentation_config?: SegmentationConfig;
|
|
1224
1421
|
}): Promise<{
|
|
1225
1422
|
job_id: string;
|
|
1226
1423
|
status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
|
|
@@ -1328,6 +1525,169 @@ declare class EnhancedExtractApi {
|
|
|
1328
1525
|
error?: string | undefined;
|
|
1329
1526
|
}>;
|
|
1330
1527
|
}
|
|
1528
|
+
declare class EnhancedSegmentationsApi {
|
|
1529
|
+
private readonly api;
|
|
1530
|
+
constructor(api: typeof SegmentationsApi);
|
|
1531
|
+
getSegmentation(segmentationId: string, params?: {
|
|
1532
|
+
limit?: number;
|
|
1533
|
+
offset?: number;
|
|
1534
|
+
}): Promise<import("zod").objectOutputType<{
|
|
1535
|
+
segmentation_id: import("zod").ZodString;
|
|
1536
|
+
status: import("zod").ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
1537
|
+
created_at: import("zod").ZodNumber;
|
|
1538
|
+
file_id: import("zod").ZodString;
|
|
1539
|
+
segmentation_config: import("zod").ZodObject<{
|
|
1540
|
+
strategy: import("zod").ZodEnum<["uniform", "shot-detector"]>;
|
|
1541
|
+
uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1542
|
+
window_seconds: import("zod").ZodNumber;
|
|
1543
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1544
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
1545
|
+
window_seconds: import("zod").ZodNumber;
|
|
1546
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1547
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1548
|
+
window_seconds: import("zod").ZodNumber;
|
|
1549
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1550
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
1551
|
+
shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1552
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1553
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1554
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1555
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
1556
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
1557
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1558
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1559
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1560
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
1561
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1562
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1563
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1564
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1565
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
1566
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
1567
|
+
start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1568
|
+
end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1569
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
1570
|
+
strategy: import("zod").ZodEnum<["uniform", "shot-detector"]>;
|
|
1571
|
+
uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1572
|
+
window_seconds: import("zod").ZodNumber;
|
|
1573
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1574
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
1575
|
+
window_seconds: import("zod").ZodNumber;
|
|
1576
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1577
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1578
|
+
window_seconds: import("zod").ZodNumber;
|
|
1579
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1580
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
1581
|
+
shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1582
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1583
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1584
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1585
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
1586
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
1587
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1588
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1589
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1590
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
1591
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1592
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1593
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1594
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1595
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
1596
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
1597
|
+
start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1598
|
+
end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1599
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1600
|
+
strategy: import("zod").ZodEnum<["uniform", "shot-detector"]>;
|
|
1601
|
+
uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1602
|
+
window_seconds: import("zod").ZodNumber;
|
|
1603
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1604
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
1605
|
+
window_seconds: import("zod").ZodNumber;
|
|
1606
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1607
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1608
|
+
window_seconds: import("zod").ZodNumber;
|
|
1609
|
+
hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1610
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
1611
|
+
shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1612
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1613
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1614
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1615
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
1616
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
1617
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1618
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1619
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1620
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
1621
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1622
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1623
|
+
min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1624
|
+
max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1625
|
+
detector: import("zod").ZodEnum<["adaptive", "content"]>;
|
|
1626
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
1627
|
+
start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1628
|
+
end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1629
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
1630
|
+
total_segments: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1631
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1632
|
+
object: import("zod").ZodLiteral<"list">;
|
|
1633
|
+
segments: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1634
|
+
id: import("zod").ZodString;
|
|
1635
|
+
start_time: import("zod").ZodNumber;
|
|
1636
|
+
end_time: import("zod").ZodNumber;
|
|
1637
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
1638
|
+
id: import("zod").ZodString;
|
|
1639
|
+
start_time: import("zod").ZodNumber;
|
|
1640
|
+
end_time: import("zod").ZodNumber;
|
|
1641
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1642
|
+
id: import("zod").ZodString;
|
|
1643
|
+
start_time: import("zod").ZodNumber;
|
|
1644
|
+
end_time: import("zod").ZodNumber;
|
|
1645
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">;
|
|
1646
|
+
total: import("zod").ZodNumber;
|
|
1647
|
+
limit: import("zod").ZodNumber;
|
|
1648
|
+
offset: import("zod").ZodNumber;
|
|
1649
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
1650
|
+
object: import("zod").ZodLiteral<"list">;
|
|
1651
|
+
segments: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1652
|
+
id: import("zod").ZodString;
|
|
1653
|
+
start_time: import("zod").ZodNumber;
|
|
1654
|
+
end_time: import("zod").ZodNumber;
|
|
1655
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
1656
|
+
id: import("zod").ZodString;
|
|
1657
|
+
start_time: import("zod").ZodNumber;
|
|
1658
|
+
end_time: import("zod").ZodNumber;
|
|
1659
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1660
|
+
id: import("zod").ZodString;
|
|
1661
|
+
start_time: import("zod").ZodNumber;
|
|
1662
|
+
end_time: import("zod").ZodNumber;
|
|
1663
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">;
|
|
1664
|
+
total: import("zod").ZodNumber;
|
|
1665
|
+
limit: import("zod").ZodNumber;
|
|
1666
|
+
offset: import("zod").ZodNumber;
|
|
1667
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1668
|
+
object: import("zod").ZodLiteral<"list">;
|
|
1669
|
+
segments: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1670
|
+
id: import("zod").ZodString;
|
|
1671
|
+
start_time: import("zod").ZodNumber;
|
|
1672
|
+
end_time: import("zod").ZodNumber;
|
|
1673
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
1674
|
+
id: import("zod").ZodString;
|
|
1675
|
+
start_time: import("zod").ZodNumber;
|
|
1676
|
+
end_time: import("zod").ZodNumber;
|
|
1677
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
1678
|
+
id: import("zod").ZodString;
|
|
1679
|
+
start_time: import("zod").ZodNumber;
|
|
1680
|
+
end_time: import("zod").ZodNumber;
|
|
1681
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">;
|
|
1682
|
+
total: import("zod").ZodNumber;
|
|
1683
|
+
limit: import("zod").ZodNumber;
|
|
1684
|
+
offset: import("zod").ZodNumber;
|
|
1685
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
1686
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
1687
|
+
deleteSegmentation(segmentationId: string): Promise<import("zod").objectOutputType<{
|
|
1688
|
+
id: import("zod").ZodString;
|
|
1689
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
1690
|
+
}
|
|
1331
1691
|
/**
|
|
1332
1692
|
* Main CloudGlue client class that provides access to all API functionality
|
|
1333
1693
|
* through enhanced, user-friendly interfaces
|
|
@@ -1361,6 +1721,11 @@ export declare class CloudGlue {
|
|
|
1361
1721
|
* Provides methods for extracting specific information from video content
|
|
1362
1722
|
*/
|
|
1363
1723
|
readonly extract: EnhancedExtractApi;
|
|
1724
|
+
/**
|
|
1725
|
+
* Segmentations API for segmenting videos into shots
|
|
1726
|
+
* Provides methods for segmenting videos into shots
|
|
1727
|
+
*/
|
|
1728
|
+
readonly segmentations: EnhancedSegmentationsApi;
|
|
1364
1729
|
constructor(config?: CloudGlueConfig);
|
|
1365
1730
|
}
|
|
1366
1731
|
export {};
|