@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
@@ -1,2969 +1,18 @@
1
- import { FilesApi, CollectionsApi, ChatApi, TranscribeApi, ExtractApi, SearchApi, DescribeApi, SegmentsApi, WebhooksApi, FramesApi, Face_DetectionApi, Face_MatchApi } from "../generated";
2
- import type { CloudGlueConfig, DefaultSegmentationConfig, File, Filter, ListFilesParams, NarrativeConfig, SearchRequest, SegmentationConfig, ShotConfig, UpdateFileParams } from "./types";
3
- import { SegmentationsApi } from "../generated/Segmentations";
4
- import { ThumbnailsConfig, FrameExtractionConfig } from "../generated/common";
5
- import { WebhookEvents } from './types';
6
- export declare class CloudGlueError extends Error {
7
- readonly statusCode?: number | undefined;
8
- readonly data?: string | undefined;
9
- readonly headers?: Record<string, any> | undefined;
10
- readonly responseData?: any | undefined;
11
- constructor(message: string, statusCode?: number | undefined, data?: string | undefined, headers?: Record<string, any> | undefined, responseData?: any | undefined);
12
- }
13
- interface UploadFileParams {
14
- file: globalThis.File;
15
- metadata?: Record<string, any>;
16
- /**
17
- * If enabled, the file will be segmented and thumbnails will be generated for each segment for the default segmentation config.
18
- */
19
- enable_segment_thumbnails?: boolean;
20
- }
21
- interface ListCollectionParams {
22
- limit?: number;
23
- offset?: number;
24
- order?: "name" | "created_at";
25
- sort?: "asc" | "desc";
26
- collection_type?: "entities" | "rich-transcripts" | "media-descriptions" | "face-analysis";
27
- }
28
- interface CreateCollectionParams {
29
- collection_type: "entities" | "rich-transcripts" | "media-descriptions" | "face-analysis";
30
- name: string;
31
- description?: string;
32
- extract_config?: {
33
- prompt?: string;
34
- schema?: Record<string, any>;
35
- enable_video_level_entities?: boolean;
36
- enable_segment_level_entities?: boolean;
37
- };
38
- transcribe_config?: {
39
- enable_summary?: boolean;
40
- enable_speech?: boolean;
41
- enable_scene_text?: boolean;
42
- enable_visual_scene_description?: boolean;
43
- enable_audio_description?: boolean;
44
- };
45
- describe_config?: {
46
- enable_summary?: boolean;
47
- enable_speech?: boolean;
48
- enable_scene_text?: boolean;
49
- enable_visual_scene_description?: boolean;
50
- enable_audio_description?: boolean;
51
- };
52
- default_segmentation_config?: DefaultSegmentationConfig;
53
- default_thumbnails_config?: ThumbnailsConfig;
54
- face_detection_config?: {
55
- frame_extraction_config: {
56
- strategy: "uniform";
57
- uniform_config?: {
58
- frames_per_second?: number;
59
- max_width?: number;
60
- };
61
- };
62
- thumbnails_config?: {
63
- enable_frame_thumbnails?: boolean;
64
- };
65
- } | null;
66
- }
67
- interface ListCollectionVideosParams {
68
- limit?: number;
69
- offset?: number;
70
- status?: "pending" | "processing" | "completed" | "failed" | "not_applicable";
71
- order?: "added_at" | "filename";
72
- sort?: "asc" | "desc";
73
- added_before?: string;
74
- added_after?: string;
75
- filter?: Filter;
76
- }
77
- interface ListCollectionEntitiesParams {
78
- limit?: number;
79
- offset?: number;
80
- order?: "added_at" | "filename";
81
- sort?: "asc" | "desc";
82
- added_before?: string;
83
- added_after?: string;
84
- }
85
- interface ListCollectionRichTranscriptsParams {
86
- limit?: number;
87
- offset?: number;
88
- order?: "added_at" | "filename";
89
- sort?: "asc" | "desc";
90
- added_before?: string;
91
- added_after?: string;
92
- response_format?: "json" | "markdown";
93
- }
94
- interface ListCollectionMediaDescriptionsParams {
95
- limit?: number;
96
- offset?: number;
97
- order?: "added_at" | "filename";
98
- sort?: "asc" | "desc";
99
- added_before?: string;
100
- added_after?: string;
101
- response_format?: "json" | "markdown";
102
- }
103
- interface ChatCompletionParams {
104
- model?: string;
105
- messages: Array<{
106
- role: "system" | "user" | "assistant";
107
- content: string;
108
- name?: string;
109
- }>;
110
- collections: string[];
111
- filter?: {
112
- metadata?: Array<{
113
- path: string;
114
- operator: "NotEqual" | "Equal" | "LessThan" | "GreaterThan" | "In" | "ContainsAny" | "ContainsAll";
115
- valueText?: string;
116
- valueTextArray?: string[];
117
- }>;
118
- video_info?: Array<{
119
- path: string;
120
- operator: "NotEqual" | "Equal" | "LessThan" | "GreaterThan" | "In" | "ContainsAny" | "ContainsAll";
121
- valueText?: string;
122
- valueTextArray?: string[];
123
- }>;
124
- file?: Array<{
125
- path: string;
126
- operator: "NotEqual" | "Equal" | "LessThan" | "GreaterThan" | "In" | "ContainsAny" | "ContainsAll";
127
- valueText?: string;
128
- valueTextArray?: string[];
129
- }>;
130
- };
131
- temperature?: number;
132
- }
133
- interface WaitForReadyOptions {
134
- /** Interval in milliseconds between polling attempts. Defaults to 5000ms (5 seconds). */
135
- pollingInterval?: number;
136
- /** Maximum number of polling attempts before giving up. Defaults to 36 (3 minutes total with default interval). */
137
- maxAttempts?: number;
138
- }
139
- declare class EnhancedFilesApi {
140
- private readonly api;
141
- constructor(api: typeof FilesApi);
142
- listFiles(params?: ListFilesParams): Promise<{
143
- object: "list";
144
- data: Array<File>;
145
- total: number;
146
- limit: number;
147
- offset: number;
148
- }>;
149
- uploadFile(params: UploadFileParams): Promise<import("axios").AxiosResponse<any, any, {}>>;
150
- getFile(fileId: string): Promise<import("zod").objectOutputType<{
151
- id: import("zod").ZodString;
152
- status: import("zod").ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
153
- bytes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
154
- created_at: import("zod").ZodOptional<import("zod").ZodNumber>;
155
- filename: import("zod").ZodOptional<import("zod").ZodString>;
156
- uri: import("zod").ZodString;
157
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>>;
158
- video_info: import("zod").ZodOptional<import("zod").ZodObject<{
159
- duration_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
160
- height: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
161
- width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
162
- format: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
163
- has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
164
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
165
- duration_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
166
- height: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
167
- width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
168
- format: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
169
- has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
170
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
171
- duration_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
172
- height: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
173
- width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
174
- format: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
175
- has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
176
- }, import("zod").ZodTypeAny, "passthrough">>>;
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", "recall"]>>;
179
- }, import("zod").ZodTypeAny, "passthrough">>;
180
- deleteFile(fileId: string): Promise<import("zod").objectOutputType<{
181
- id: import("zod").ZodString;
182
- object: import("zod").ZodLiteral<"file">;
183
- }, import("zod").ZodTypeAny, "passthrough">>;
184
- updateFile(fileId: string, params: UpdateFileParams): Promise<import("zod").objectOutputType<{
185
- id: import("zod").ZodString;
186
- status: import("zod").ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
187
- bytes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
188
- created_at: import("zod").ZodOptional<import("zod").ZodNumber>;
189
- filename: import("zod").ZodOptional<import("zod").ZodString>;
190
- uri: import("zod").ZodString;
191
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>>;
192
- video_info: import("zod").ZodOptional<import("zod").ZodObject<{
193
- duration_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
194
- height: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
195
- width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
196
- format: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
197
- has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
198
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
199
- duration_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
200
- height: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
201
- width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
202
- format: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
203
- has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
204
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
205
- duration_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
206
- height: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
207
- width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
208
- format: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
209
- has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
210
- }, import("zod").ZodTypeAny, "passthrough">>>;
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", "recall"]>>;
213
- }, import("zod").ZodTypeAny, "passthrough">>;
214
- listFileSegmentations(fileId: string, params?: {
215
- limit?: number;
216
- offset?: number;
217
- }): Promise<{
218
- object: "list";
219
- data: Array<{
220
- segmentation_id: string;
221
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
222
- created_at: number;
223
- file_id: string;
224
- segmentation_config: import("../generated/common").SegmentationConfig;
225
- thumbnails_config: ThumbnailsConfig;
226
- total_segments?: number | undefined;
227
- }>;
228
- total: number;
229
- limit: number;
230
- offset: number;
231
- }>;
232
- /**
233
- * Get thumbnails for a file. If a segmentationId is provided, the thumbnails will be for a specific segmentation.
234
- * @param fileId - The ID of the file
235
- * @param params - Optional parameters
236
- * @returns The thumbnails for the file
237
- */
238
- getFileThumbnails(fileId: string, params?: {
239
- limit?: number;
240
- offset?: number;
241
- isDefault?: boolean;
242
- segmentationId?: string;
243
- }): Promise<import("zod").objectOutputType<{
244
- object: import("zod").ZodLiteral<"list">;
245
- total: import("zod").ZodNumber;
246
- limit: import("zod").ZodNumber;
247
- offset: import("zod").ZodNumber;
248
- data: import("zod").ZodArray<import("zod").ZodObject<{
249
- id: import("zod").ZodString;
250
- url: import("zod").ZodString;
251
- time: import("zod").ZodNumber;
252
- segmentation_id: import("zod").ZodOptional<import("zod").ZodString>;
253
- segment_id: import("zod").ZodOptional<import("zod").ZodString>;
254
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
255
- id: import("zod").ZodString;
256
- url: import("zod").ZodString;
257
- time: import("zod").ZodNumber;
258
- segmentation_id: import("zod").ZodOptional<import("zod").ZodString>;
259
- segment_id: import("zod").ZodOptional<import("zod").ZodString>;
260
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
261
- id: import("zod").ZodString;
262
- url: import("zod").ZodString;
263
- time: import("zod").ZodNumber;
264
- segmentation_id: import("zod").ZodOptional<import("zod").ZodString>;
265
- segment_id: import("zod").ZodOptional<import("zod").ZodString>;
266
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
267
- }, import("zod").ZodTypeAny, "passthrough">>;
268
- createFileSegmentation(fileId: string, params: SegmentationConfig): Promise<import("zod").objectOutputType<{
269
- segmentation_id: import("zod").ZodString;
270
- status: import("zod").ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
271
- created_at: import("zod").ZodNumber;
272
- file_id: import("zod").ZodString;
273
- segmentation_config: import("zod").ZodObject<{
274
- strategy: import("zod").ZodEnum<["uniform", "shot-detector", "manual"]>;
275
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
276
- window_seconds: import("zod").ZodNumber;
277
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
278
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
279
- window_seconds: import("zod").ZodNumber;
280
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
281
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
282
- window_seconds: import("zod").ZodNumber;
283
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
284
- }, import("zod").ZodTypeAny, "passthrough">>>;
285
- shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
286
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
287
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
288
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
289
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
290
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
291
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
292
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
293
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
294
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
295
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
296
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
297
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
298
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
299
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
300
- }, import("zod").ZodTypeAny, "passthrough">>>;
301
- manual_config: import("zod").ZodOptional<import("zod").ZodObject<{
302
- segments: import("zod").ZodArray<import("zod").ZodObject<{
303
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
304
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
305
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
306
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
307
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
308
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
309
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
310
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
311
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
312
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
313
- segments: import("zod").ZodArray<import("zod").ZodObject<{
314
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
315
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
316
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
317
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
318
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
319
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
320
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
321
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
322
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
323
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
324
- segments: import("zod").ZodArray<import("zod").ZodObject<{
325
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
326
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
327
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
328
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
329
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
330
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
331
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
332
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
333
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
334
- }, import("zod").ZodTypeAny, "passthrough">>>;
335
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
336
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
337
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
338
- strategy: import("zod").ZodEnum<["uniform", "shot-detector", "manual"]>;
339
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
340
- window_seconds: import("zod").ZodNumber;
341
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
342
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
343
- window_seconds: import("zod").ZodNumber;
344
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
345
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
346
- window_seconds: import("zod").ZodNumber;
347
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
348
- }, import("zod").ZodTypeAny, "passthrough">>>;
349
- shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
350
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
351
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
352
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
353
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
354
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
355
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
356
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
357
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
358
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
359
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
360
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
361
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
362
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
363
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
364
- }, import("zod").ZodTypeAny, "passthrough">>>;
365
- manual_config: import("zod").ZodOptional<import("zod").ZodObject<{
366
- segments: import("zod").ZodArray<import("zod").ZodObject<{
367
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
368
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
369
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
370
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
371
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
372
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
373
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
374
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
375
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
376
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
377
- segments: import("zod").ZodArray<import("zod").ZodObject<{
378
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
379
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
380
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
381
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
382
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
383
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
384
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
385
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
386
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
387
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
388
- segments: import("zod").ZodArray<import("zod").ZodObject<{
389
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
390
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
391
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
392
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
393
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
394
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
395
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
396
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
397
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
398
- }, import("zod").ZodTypeAny, "passthrough">>>;
399
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
400
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
401
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
402
- strategy: import("zod").ZodEnum<["uniform", "shot-detector", "manual"]>;
403
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
404
- window_seconds: import("zod").ZodNumber;
405
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
406
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
407
- window_seconds: import("zod").ZodNumber;
408
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
409
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
410
- window_seconds: import("zod").ZodNumber;
411
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
412
- }, import("zod").ZodTypeAny, "passthrough">>>;
413
- shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
414
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
415
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
416
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
417
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
418
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
419
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
420
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
421
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
422
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
423
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
424
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
425
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
426
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
427
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
428
- }, import("zod").ZodTypeAny, "passthrough">>>;
429
- manual_config: import("zod").ZodOptional<import("zod").ZodObject<{
430
- segments: import("zod").ZodArray<import("zod").ZodObject<{
431
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
432
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
433
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
434
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
435
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
436
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
437
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
438
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
439
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
440
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
441
- segments: import("zod").ZodArray<import("zod").ZodObject<{
442
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
443
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
444
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
445
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
446
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
447
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
448
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
449
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
450
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
451
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
452
- segments: import("zod").ZodArray<import("zod").ZodObject<{
453
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
454
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
455
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
456
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
457
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
458
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
459
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
460
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
461
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
462
- }, import("zod").ZodTypeAny, "passthrough">>>;
463
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
464
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
465
- }, import("zod").ZodTypeAny, "passthrough">>;
466
- thumbnails_config: import("zod").ZodObject<{
467
- enable_segment_thumbnails: import("zod").ZodBoolean;
468
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
469
- enable_segment_thumbnails: import("zod").ZodBoolean;
470
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
471
- enable_segment_thumbnails: import("zod").ZodBoolean;
472
- }, import("zod").ZodTypeAny, "passthrough">>;
473
- total_segments: import("zod").ZodOptional<import("zod").ZodNumber>;
474
- total_shots: import("zod").ZodOptional<import("zod").ZodNumber>;
475
- data: import("zod").ZodOptional<import("zod").ZodObject<{
476
- object: import("zod").ZodLiteral<"list">;
477
- segments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
478
- id: import("zod").ZodString;
479
- start_time: import("zod").ZodNumber;
480
- end_time: import("zod").ZodNumber;
481
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
482
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
483
- id: import("zod").ZodString;
484
- start_time: import("zod").ZodNumber;
485
- end_time: import("zod").ZodNumber;
486
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
487
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
488
- id: import("zod").ZodString;
489
- start_time: import("zod").ZodNumber;
490
- end_time: import("zod").ZodNumber;
491
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
492
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
493
- shots: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
494
- index: import("zod").ZodNumber;
495
- start_time: import("zod").ZodNumber;
496
- end_time: import("zod").ZodNumber;
497
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
498
- index: import("zod").ZodNumber;
499
- start_time: import("zod").ZodNumber;
500
- end_time: import("zod").ZodNumber;
501
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
502
- index: import("zod").ZodNumber;
503
- start_time: import("zod").ZodNumber;
504
- end_time: import("zod").ZodNumber;
505
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
506
- total: import("zod").ZodNumber;
507
- limit: import("zod").ZodNumber;
508
- offset: import("zod").ZodNumber;
509
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
510
- object: import("zod").ZodLiteral<"list">;
511
- segments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
512
- id: import("zod").ZodString;
513
- start_time: import("zod").ZodNumber;
514
- end_time: import("zod").ZodNumber;
515
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
516
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
517
- id: import("zod").ZodString;
518
- start_time: import("zod").ZodNumber;
519
- end_time: import("zod").ZodNumber;
520
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
521
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
522
- id: import("zod").ZodString;
523
- start_time: import("zod").ZodNumber;
524
- end_time: import("zod").ZodNumber;
525
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
526
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
527
- shots: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
528
- index: import("zod").ZodNumber;
529
- start_time: import("zod").ZodNumber;
530
- end_time: import("zod").ZodNumber;
531
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
532
- index: import("zod").ZodNumber;
533
- start_time: import("zod").ZodNumber;
534
- end_time: import("zod").ZodNumber;
535
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
536
- index: import("zod").ZodNumber;
537
- start_time: import("zod").ZodNumber;
538
- end_time: import("zod").ZodNumber;
539
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
540
- total: import("zod").ZodNumber;
541
- limit: import("zod").ZodNumber;
542
- offset: import("zod").ZodNumber;
543
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
544
- object: import("zod").ZodLiteral<"list">;
545
- segments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
546
- id: import("zod").ZodString;
547
- start_time: import("zod").ZodNumber;
548
- end_time: import("zod").ZodNumber;
549
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
550
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
551
- id: import("zod").ZodString;
552
- start_time: import("zod").ZodNumber;
553
- end_time: import("zod").ZodNumber;
554
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
555
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
556
- id: import("zod").ZodString;
557
- start_time: import("zod").ZodNumber;
558
- end_time: import("zod").ZodNumber;
559
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
560
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
561
- shots: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
562
- index: import("zod").ZodNumber;
563
- start_time: import("zod").ZodNumber;
564
- end_time: import("zod").ZodNumber;
565
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
566
- index: import("zod").ZodNumber;
567
- start_time: import("zod").ZodNumber;
568
- end_time: import("zod").ZodNumber;
569
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
570
- index: import("zod").ZodNumber;
571
- start_time: import("zod").ZodNumber;
572
- end_time: import("zod").ZodNumber;
573
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
574
- total: import("zod").ZodNumber;
575
- limit: import("zod").ZodNumber;
576
- offset: import("zod").ZodNumber;
577
- }, import("zod").ZodTypeAny, "passthrough">>>;
578
- }, import("zod").ZodTypeAny, "passthrough">>;
579
- createFileFrameExtraction(fileId: string, params: FrameExtractionConfig): Promise<import("zod").objectOutputType<{
580
- frame_extraction_id: import("zod").ZodString;
581
- status: import("zod").ZodEnum<["pending", "processing", "completed", "failed"]>;
582
- created_at: import("zod").ZodNumber;
583
- file_id: import("zod").ZodString;
584
- frame_extraction_config: import("zod").ZodObject<{
585
- strategy: import("zod").ZodLiteral<"uniform">;
586
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
587
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
588
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
589
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
590
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
591
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
592
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
593
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
594
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
595
- }, import("zod").ZodTypeAny, "passthrough">>>;
596
- thumbnails_config: import("zod").ZodOptional<import("zod").ZodObject<{
597
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
598
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
599
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
600
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
601
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
602
- }, import("zod").ZodTypeAny, "passthrough">>>;
603
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
604
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
605
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
606
- strategy: import("zod").ZodLiteral<"uniform">;
607
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
608
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
609
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
610
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
611
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
612
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
613
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
614
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
615
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
616
- }, import("zod").ZodTypeAny, "passthrough">>>;
617
- thumbnails_config: import("zod").ZodOptional<import("zod").ZodObject<{
618
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
619
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
620
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
621
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
622
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
623
- }, import("zod").ZodTypeAny, "passthrough">>>;
624
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
625
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
626
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
627
- strategy: import("zod").ZodLiteral<"uniform">;
628
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
629
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
630
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
631
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
632
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
633
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
634
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
635
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
636
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
637
- }, import("zod").ZodTypeAny, "passthrough">>>;
638
- thumbnails_config: import("zod").ZodOptional<import("zod").ZodObject<{
639
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
640
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
641
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
642
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
643
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
644
- }, import("zod").ZodTypeAny, "passthrough">>>;
645
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
646
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
647
- }, import("zod").ZodTypeAny, "passthrough">>;
648
- frame_count: import("zod").ZodOptional<import("zod").ZodNumber>;
649
- data: import("zod").ZodOptional<import("zod").ZodObject<{
650
- object: import("zod").ZodLiteral<"list">;
651
- frames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
652
- id: import("zod").ZodString;
653
- timestamp: import("zod").ZodNumber;
654
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
655
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
656
- id: import("zod").ZodString;
657
- timestamp: import("zod").ZodNumber;
658
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
659
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
660
- id: import("zod").ZodString;
661
- timestamp: import("zod").ZodNumber;
662
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
663
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
664
- total: import("zod").ZodNumber;
665
- limit: import("zod").ZodNumber;
666
- offset: import("zod").ZodNumber;
667
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
668
- object: import("zod").ZodLiteral<"list">;
669
- frames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
670
- id: import("zod").ZodString;
671
- timestamp: import("zod").ZodNumber;
672
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
673
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
674
- id: import("zod").ZodString;
675
- timestamp: import("zod").ZodNumber;
676
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
677
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
678
- id: import("zod").ZodString;
679
- timestamp: import("zod").ZodNumber;
680
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
681
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
682
- total: import("zod").ZodNumber;
683
- limit: import("zod").ZodNumber;
684
- offset: import("zod").ZodNumber;
685
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
686
- object: import("zod").ZodLiteral<"list">;
687
- frames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
688
- id: import("zod").ZodString;
689
- timestamp: import("zod").ZodNumber;
690
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
691
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
692
- id: import("zod").ZodString;
693
- timestamp: import("zod").ZodNumber;
694
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
695
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
696
- id: import("zod").ZodString;
697
- timestamp: import("zod").ZodNumber;
698
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
699
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
700
- total: import("zod").ZodNumber;
701
- limit: import("zod").ZodNumber;
702
- offset: import("zod").ZodNumber;
703
- }, import("zod").ZodTypeAny, "passthrough">>>;
704
- }, import("zod").ZodTypeAny, "passthrough">>;
705
- /**
706
- * Waits for a file to finish processing by polling the getFile endpoint until the file
707
- * reaches a terminal state (completed, failed, or not_applicable) or until maxAttempts is reached.
708
- *
709
- * @param fileId - The ID of the file to wait for
710
- * @param options - Optional configuration for polling behavior
711
- * @returns The final file object
712
- * @throws {CloudGlueError} If the file fails to process or maxAttempts is reached
713
- */
714
- waitForReady(fileId: string, options?: WaitForReadyOptions): Promise<import("zod").objectOutputType<{
715
- id: import("zod").ZodString;
716
- status: import("zod").ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
717
- bytes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
718
- created_at: import("zod").ZodOptional<import("zod").ZodNumber>;
719
- filename: import("zod").ZodOptional<import("zod").ZodString>;
720
- uri: import("zod").ZodString;
721
- metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>>;
722
- video_info: import("zod").ZodOptional<import("zod").ZodObject<{
723
- duration_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
724
- height: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
725
- width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
726
- format: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
727
- has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
728
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
729
- duration_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
730
- height: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
731
- width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
732
- format: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
733
- has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
734
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
735
- duration_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
736
- height: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
737
- width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
738
- format: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
739
- has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
740
- }, import("zod").ZodTypeAny, "passthrough">>>;
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", "recall"]>>;
743
- }, import("zod").ZodTypeAny, "passthrough">>;
744
- }
745
- declare class EnhancedCollectionsApi {
746
- private readonly api;
747
- constructor(api: typeof CollectionsApi);
748
- listCollections(params?: ListCollectionParams): Promise<{
749
- object: "list";
750
- data: Array<{
751
- id: string;
752
- object: "collection";
753
- name: string;
754
- description?: (string | null) | undefined;
755
- collection_type: "media-descriptions" | "entities" | "rich-transcripts" | "face-analysis";
756
- extract_config?: Partial<{
757
- prompt: string;
758
- schema: {};
759
- enable_video_level_entities: boolean;
760
- enable_segment_level_entities: boolean;
761
- }> | undefined;
762
- transcribe_config?: Partial<{
763
- enable_summary: boolean;
764
- enable_speech: boolean;
765
- enable_scene_text: boolean;
766
- enable_visual_scene_description: boolean;
767
- enable_audio_description: boolean;
768
- }> | undefined;
769
- describe_config?: Partial<{
770
- enable_summary: boolean;
771
- enable_speech: boolean;
772
- enable_scene_text: boolean;
773
- enable_visual_scene_description: boolean;
774
- enable_audio_description: boolean;
775
- }> | undefined;
776
- default_segmentation_config?: import("../generated/common").SegmentationConfig | undefined;
777
- default_thumbnails_config?: ThumbnailsConfig | undefined;
778
- face_detection_config?: Partial<{
779
- frame_extraction_config: {
780
- strategy: "uniform";
781
- uniform_config?: Partial<{
782
- frames_per_second: number;
783
- max_width: number;
784
- }> | undefined;
785
- };
786
- thumbnails_config: Partial<{
787
- enable_frame_thumbnails: boolean;
788
- }>;
789
- }> | null | undefined;
790
- created_at: number;
791
- file_count: number;
792
- }>;
793
- total: number;
794
- limit: number;
795
- offset: number;
796
- }>;
797
- createCollection(params: CreateCollectionParams): Promise<{
798
- id: string;
799
- object: "collection";
800
- name: string;
801
- description?: (string | null) | undefined;
802
- collection_type: "media-descriptions" | "entities" | "rich-transcripts" | "face-analysis";
803
- extract_config?: Partial<{
804
- prompt: string;
805
- schema: {};
806
- enable_video_level_entities: boolean;
807
- enable_segment_level_entities: boolean;
808
- }> | undefined;
809
- transcribe_config?: Partial<{
810
- enable_summary: boolean;
811
- enable_speech: boolean;
812
- enable_scene_text: boolean;
813
- enable_visual_scene_description: boolean;
814
- enable_audio_description: boolean;
815
- }> | undefined;
816
- describe_config?: Partial<{
817
- enable_summary: boolean;
818
- enable_speech: boolean;
819
- enable_scene_text: boolean;
820
- enable_visual_scene_description: boolean;
821
- enable_audio_description: boolean;
822
- }> | undefined;
823
- default_segmentation_config?: import("../generated/common").SegmentationConfig | undefined;
824
- default_thumbnails_config?: ThumbnailsConfig | undefined;
825
- face_detection_config?: Partial<{
826
- frame_extraction_config: {
827
- strategy: "uniform";
828
- uniform_config?: Partial<{
829
- frames_per_second: number;
830
- max_width: number;
831
- }> | undefined;
832
- };
833
- thumbnails_config: Partial<{
834
- enable_frame_thumbnails: boolean;
835
- }>;
836
- }> | null | undefined;
837
- created_at: number;
838
- file_count: number;
839
- }>;
840
- getCollection(collectionId: string): Promise<{
841
- id: string;
842
- object: "collection";
843
- name: string;
844
- description?: (string | null) | undefined;
845
- collection_type: "media-descriptions" | "entities" | "rich-transcripts" | "face-analysis";
846
- extract_config?: Partial<{
847
- prompt: string;
848
- schema: {};
849
- enable_video_level_entities: boolean;
850
- enable_segment_level_entities: boolean;
851
- }> | undefined;
852
- transcribe_config?: Partial<{
853
- enable_summary: boolean;
854
- enable_speech: boolean;
855
- enable_scene_text: boolean;
856
- enable_visual_scene_description: boolean;
857
- enable_audio_description: boolean;
858
- }> | undefined;
859
- describe_config?: Partial<{
860
- enable_summary: boolean;
861
- enable_speech: boolean;
862
- enable_scene_text: boolean;
863
- enable_visual_scene_description: boolean;
864
- enable_audio_description: boolean;
865
- }> | undefined;
866
- default_segmentation_config?: import("../generated/common").SegmentationConfig | undefined;
867
- default_thumbnails_config?: ThumbnailsConfig | undefined;
868
- face_detection_config?: Partial<{
869
- frame_extraction_config: {
870
- strategy: "uniform";
871
- uniform_config?: Partial<{
872
- frames_per_second: number;
873
- max_width: number;
874
- }> | undefined;
875
- };
876
- thumbnails_config: Partial<{
877
- enable_frame_thumbnails: boolean;
878
- }>;
879
- }> | null | undefined;
880
- created_at: number;
881
- file_count: number;
882
- }>;
883
- deleteCollection(collectionId: string): Promise<import("zod").objectOutputType<{
884
- id: import("zod").ZodString;
885
- object: import("zod").ZodLiteral<"collection">;
886
- }, import("zod").ZodTypeAny, "passthrough">>;
887
- updateCollection(collectionId: string, params: {
888
- name?: string;
889
- description?: string;
890
- }): Promise<{
891
- id: string;
892
- object: "collection";
893
- name: string;
894
- description?: (string | null) | undefined;
895
- collection_type: "media-descriptions" | "entities" | "rich-transcripts" | "face-analysis";
896
- extract_config?: Partial<{
897
- prompt: string;
898
- schema: {};
899
- enable_video_level_entities: boolean;
900
- enable_segment_level_entities: boolean;
901
- }> | undefined;
902
- transcribe_config?: Partial<{
903
- enable_summary: boolean;
904
- enable_speech: boolean;
905
- enable_scene_text: boolean;
906
- enable_visual_scene_description: boolean;
907
- enable_audio_description: boolean;
908
- }> | undefined;
909
- describe_config?: Partial<{
910
- enable_summary: boolean;
911
- enable_speech: boolean;
912
- enable_scene_text: boolean;
913
- enable_visual_scene_description: boolean;
914
- enable_audio_description: boolean;
915
- }> | undefined;
916
- default_segmentation_config?: import("../generated/common").SegmentationConfig | undefined;
917
- default_thumbnails_config?: ThumbnailsConfig | undefined;
918
- face_detection_config?: Partial<{
919
- frame_extraction_config: {
920
- strategy: "uniform";
921
- uniform_config?: Partial<{
922
- frames_per_second: number;
923
- max_width: number;
924
- }> | undefined;
925
- };
926
- thumbnails_config: Partial<{
927
- enable_frame_thumbnails: boolean;
928
- }>;
929
- }> | null | undefined;
930
- created_at: number;
931
- file_count: number;
932
- }>;
933
- addVideoByUrl({ collectionId, url, params }: {
934
- collectionId: string;
935
- url: string;
936
- params: {
937
- segmentation_config?: SegmentationConfig;
938
- segmentation_id?: string;
939
- metadata?: Record<string, any>;
940
- thumbnail_config?: ThumbnailsConfig;
941
- };
942
- }): Promise<{
943
- collection_id: string;
944
- file_id: string;
945
- object: "collection_file";
946
- added_at: number;
947
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
948
- file?: File | undefined;
949
- segmentation?: {
950
- id: string;
951
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
952
- file_id: string;
953
- segmentation_config: import("../generated/common").SegmentationConfig;
954
- } | undefined;
955
- }>;
956
- addVideo(collectionId: string, fileId: string, params?: {
957
- segmentation_config?: SegmentationConfig;
958
- segmentation_id?: string;
959
- metadata?: Record<string, any>;
960
- thumbnail_config?: ThumbnailsConfig;
961
- }): Promise<{
962
- collection_id: string;
963
- file_id: string;
964
- object: "collection_file";
965
- added_at: number;
966
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
967
- file?: File | undefined;
968
- segmentation?: {
969
- id: string;
970
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
971
- file_id: string;
972
- segmentation_config: import("../generated/common").SegmentationConfig;
973
- } | undefined;
974
- }>;
975
- listVideos(collectionId: string, params?: ListCollectionVideosParams): Promise<{
976
- object: "list";
977
- data: Array<{
978
- collection_id: string;
979
- file_id: string;
980
- object: "collection_file";
981
- added_at: number;
982
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
983
- file?: File | undefined;
984
- segmentation?: {
985
- id: string;
986
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
987
- file_id: string;
988
- segmentation_config: import("../generated/common").SegmentationConfig;
989
- } | undefined;
990
- }>;
991
- total: number;
992
- limit: number;
993
- offset: number;
994
- }>;
995
- getVideo(collectionId: string, fileId: string): Promise<{
996
- collection_id: string;
997
- file_id: string;
998
- object: "collection_file";
999
- added_at: number;
1000
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1001
- file?: File | undefined;
1002
- segmentation?: {
1003
- id: string;
1004
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1005
- file_id: string;
1006
- segmentation_config: import("../generated/common").SegmentationConfig;
1007
- } | undefined;
1008
- }>;
1009
- deleteVideo(collectionId: string, fileId: string): Promise<import("zod").objectOutputType<{
1010
- collection_id: import("zod").ZodString;
1011
- file_id: import("zod").ZodString;
1012
- object: import("zod").ZodLiteral<"collection_file">;
1013
- }, import("zod").ZodTypeAny, "passthrough">>;
1014
- getEntities(collectionId: string, fileId: string, params?: {
1015
- limit?: number;
1016
- offset?: number;
1017
- }): Promise<import("zod").objectOutputType<{
1018
- collection_id: import("zod").ZodString;
1019
- file_id: import("zod").ZodString;
1020
- entities: import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>;
1021
- segment_entities: import("zod").ZodArray<import("zod").ZodObject<{
1022
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1023
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1024
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1025
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1026
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1027
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1028
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1029
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1030
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1031
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1032
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1033
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1034
- total: import("zod").ZodNumber;
1035
- limit: import("zod").ZodNumber;
1036
- offset: import("zod").ZodNumber;
1037
- }, import("zod").ZodTypeAny, "passthrough">>;
1038
- getTranscripts(collectionId: string, fileId: string, options?: {
1039
- limit?: number;
1040
- offset?: number;
1041
- response_format?: "markdown" | "json";
1042
- start_time_seconds?: number;
1043
- end_time_seconds?: number;
1044
- }): Promise<{
1045
- collection_id: string;
1046
- file_id: string;
1047
- content?: string | undefined;
1048
- title?: string | undefined;
1049
- summary?: string | undefined;
1050
- duration_seconds?: number | undefined;
1051
- segment_summary?: Array<Partial<{
1052
- title: string;
1053
- summary: string;
1054
- start_time: number;
1055
- end_time: number;
1056
- }>> | undefined;
1057
- } & Partial<{
1058
- visual_scene_description: Array<import("../generated/common").DescribeOutputPart>;
1059
- scene_text: Array<import("../generated/common").DescribeOutputPart>;
1060
- speech: Array<import("../generated/common").SpeechOutputPart>;
1061
- audio_description: Array<import("../generated/common").DescribeOutputPart>;
1062
- }>>;
1063
- listEntities(collectionId: string, params?: ListCollectionEntitiesParams): Promise<import("zod").objectOutputType<{
1064
- object: import("zod").ZodLiteral<"list">;
1065
- data: import("zod").ZodArray<import("zod").ZodObject<{
1066
- file_id: import("zod").ZodString;
1067
- data: import("zod").ZodObject<{
1068
- entities: import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>;
1069
- segment_entities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1070
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1071
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1072
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1073
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1074
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1075
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1076
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1077
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1078
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1079
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1080
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1081
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1082
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1083
- entities: import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>;
1084
- segment_entities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1085
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1086
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1087
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1088
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1089
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1090
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1091
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1092
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1093
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1094
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1095
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1096
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1097
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1098
- entities: import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>;
1099
- segment_entities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1100
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1101
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1102
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1103
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1104
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1105
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1106
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1107
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1108
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1109
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1110
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1111
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1112
- }, import("zod").ZodTypeAny, "passthrough">>;
1113
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1114
- file_id: import("zod").ZodString;
1115
- data: import("zod").ZodObject<{
1116
- entities: import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>;
1117
- segment_entities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1118
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1119
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1120
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1121
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1122
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1123
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1124
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1125
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1126
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1127
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1128
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1129
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1130
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1131
- entities: import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>;
1132
- segment_entities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1133
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1134
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1135
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1136
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1137
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1138
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1139
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1140
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1141
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1142
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1143
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1144
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1145
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1146
- entities: import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>;
1147
- segment_entities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1148
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1149
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1150
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1151
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1152
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1153
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1154
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1155
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1156
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1157
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1158
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1159
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1160
- }, import("zod").ZodTypeAny, "passthrough">>;
1161
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1162
- file_id: import("zod").ZodString;
1163
- data: import("zod").ZodObject<{
1164
- entities: import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>;
1165
- segment_entities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1166
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1167
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1168
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1169
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1170
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1171
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1172
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1173
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1174
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1175
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1176
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1177
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1178
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1179
- entities: import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>;
1180
- segment_entities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1181
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1182
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1183
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1184
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1185
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1186
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1187
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1188
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1189
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1190
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1191
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1192
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1193
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1194
- entities: import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>;
1195
- segment_entities: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1196
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1197
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1198
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1199
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1200
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1201
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1202
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1203
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1204
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1205
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1206
- entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
1207
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1208
- }, import("zod").ZodTypeAny, "passthrough">>;
1209
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1210
- total: import("zod").ZodNumber;
1211
- limit: import("zod").ZodNumber;
1212
- offset: import("zod").ZodNumber;
1213
- }, import("zod").ZodTypeAny, "passthrough">>;
1214
- listRichTranscripts(collectionId: string, params?: ListCollectionRichTranscriptsParams): Promise<{
1215
- object: "list";
1216
- data: Array<{
1217
- file_id: string;
1218
- duration_seconds?: number | undefined;
1219
- data: Partial<{
1220
- content: string;
1221
- title: string;
1222
- summary: string;
1223
- segment_summary: Array<Partial<{
1224
- title: string;
1225
- summary: string;
1226
- start_time: number;
1227
- end_time: number;
1228
- }>>;
1229
- }> & import("../generated/common").DescribeOutput;
1230
- }>;
1231
- total: number;
1232
- limit: number;
1233
- offset: number;
1234
- }>;
1235
- getMediaDescriptions(collectionId: string, fileId: string, options?: {
1236
- response_format?: "markdown" | "json";
1237
- start_time_seconds?: number;
1238
- end_time_seconds?: number;
1239
- }): Promise<{
1240
- collection_id: string;
1241
- file_id: string;
1242
- content?: string | undefined;
1243
- title?: string | undefined;
1244
- summary?: string | undefined;
1245
- duration_seconds?: number | undefined;
1246
- segment_summary?: Array<Partial<{
1247
- title: string;
1248
- summary: string;
1249
- start_time: number;
1250
- end_time: number;
1251
- }>> | undefined;
1252
- } & Partial<{
1253
- visual_scene_description: Array<import("../generated/common").DescribeOutputPart>;
1254
- scene_text: Array<import("../generated/common").DescribeOutputPart>;
1255
- speech: Array<import("../generated/common").SpeechOutputPart>;
1256
- audio_description: Array<import("../generated/common").DescribeOutputPart>;
1257
- }>>;
1258
- getFaceDetections(collectionId: string, fileId: string, params?: {
1259
- limit?: number;
1260
- offset?: number;
1261
- }): Promise<import("zod").objectOutputType<{
1262
- collection_id: import("zod").ZodString;
1263
- file_id: import("zod").ZodString;
1264
- faces: import("zod").ZodArray<import("zod").ZodObject<{
1265
- id: import("zod").ZodString;
1266
- face_bounding_box: import("zod").ZodObject<{
1267
- height: import("zod").ZodNumber;
1268
- width: import("zod").ZodNumber;
1269
- top: import("zod").ZodNumber;
1270
- left: import("zod").ZodNumber;
1271
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1272
- height: import("zod").ZodNumber;
1273
- width: import("zod").ZodNumber;
1274
- top: import("zod").ZodNumber;
1275
- left: import("zod").ZodNumber;
1276
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1277
- height: import("zod").ZodNumber;
1278
- width: import("zod").ZodNumber;
1279
- top: import("zod").ZodNumber;
1280
- left: import("zod").ZodNumber;
1281
- }, import("zod").ZodTypeAny, "passthrough">>;
1282
- frame_id: import("zod").ZodString;
1283
- timestamp: import("zod").ZodNumber;
1284
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
1285
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1286
- id: import("zod").ZodString;
1287
- face_bounding_box: import("zod").ZodObject<{
1288
- height: import("zod").ZodNumber;
1289
- width: import("zod").ZodNumber;
1290
- top: import("zod").ZodNumber;
1291
- left: import("zod").ZodNumber;
1292
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1293
- height: import("zod").ZodNumber;
1294
- width: import("zod").ZodNumber;
1295
- top: import("zod").ZodNumber;
1296
- left: import("zod").ZodNumber;
1297
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1298
- height: import("zod").ZodNumber;
1299
- width: import("zod").ZodNumber;
1300
- top: import("zod").ZodNumber;
1301
- left: import("zod").ZodNumber;
1302
- }, import("zod").ZodTypeAny, "passthrough">>;
1303
- frame_id: import("zod").ZodString;
1304
- timestamp: import("zod").ZodNumber;
1305
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
1306
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1307
- id: import("zod").ZodString;
1308
- face_bounding_box: import("zod").ZodObject<{
1309
- height: import("zod").ZodNumber;
1310
- width: import("zod").ZodNumber;
1311
- top: import("zod").ZodNumber;
1312
- left: import("zod").ZodNumber;
1313
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1314
- height: import("zod").ZodNumber;
1315
- width: import("zod").ZodNumber;
1316
- top: import("zod").ZodNumber;
1317
- left: import("zod").ZodNumber;
1318
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1319
- height: import("zod").ZodNumber;
1320
- width: import("zod").ZodNumber;
1321
- top: import("zod").ZodNumber;
1322
- left: import("zod").ZodNumber;
1323
- }, import("zod").ZodTypeAny, "passthrough">>;
1324
- frame_id: import("zod").ZodString;
1325
- timestamp: import("zod").ZodNumber;
1326
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
1327
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1328
- total: import("zod").ZodNumber;
1329
- limit: import("zod").ZodNumber;
1330
- offset: import("zod").ZodNumber;
1331
- }, import("zod").ZodTypeAny, "passthrough">>;
1332
- listMediaDescriptions(collectionId: string, params?: ListCollectionMediaDescriptionsParams): Promise<{
1333
- object: "list";
1334
- data: Array<{
1335
- file_id: string;
1336
- added_at: number;
1337
- object: "collection_file";
1338
- duration_seconds?: number | undefined;
1339
- data: Partial<{
1340
- content: string;
1341
- title: string;
1342
- summary: string;
1343
- segment_summary: Array<Partial<{
1344
- title: string;
1345
- summary: string;
1346
- start_time: number;
1347
- end_time: number;
1348
- }>>;
1349
- }> & import("../generated/common").DescribeOutput;
1350
- }>;
1351
- total: number;
1352
- limit: number;
1353
- offset: number;
1354
- }>;
1355
- /**
1356
- * Waits for a video in a collection to be ready by polling the getVideo endpoint until
1357
- * the video reaches a terminal state (completed, failed, or not_applicable) or until maxAttempts is reached.
1358
- *
1359
- * @param collectionId - The ID of the collection containing the video
1360
- * @param fileId - The ID of the video file to wait for
1361
- * @param options - Optional configuration for polling behavior
1362
- * @returns The final collection file object
1363
- * @throws {CloudGlueError} If the video fails to process or maxAttempts is reached
1364
- */
1365
- waitForReady(collectionId: string, fileId: string, options?: WaitForReadyOptions): Promise<{
1366
- collection_id: string;
1367
- file_id: string;
1368
- object: "collection_file";
1369
- added_at: number;
1370
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1371
- file?: File | undefined;
1372
- segmentation?: {
1373
- id: string;
1374
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1375
- file_id: string;
1376
- segmentation_config: import("../generated/common").SegmentationConfig;
1377
- } | undefined;
1378
- }>;
1379
- }
1380
- declare class EnhancedChatApi {
1381
- private readonly api;
1382
- constructor(api: typeof ChatApi);
1383
- createCompletion(params: ChatCompletionParams): Promise<Partial<{
1384
- id: string;
1385
- object: string;
1386
- created: number;
1387
- model: string;
1388
- choices: Array<Partial<{
1389
- index: number;
1390
- message: {
1391
- role: "system" | "user" | "assistant";
1392
- content: string;
1393
- name?: string | undefined;
1394
- };
1395
- citations: Array<Partial<{
1396
- collection_id: string;
1397
- file_id: string;
1398
- segment_id: string;
1399
- start_time: string | number;
1400
- end_time: string | number;
1401
- text: string;
1402
- context: string;
1403
- relevant_sources: Array<Partial<{
1404
- text: string;
1405
- }>>;
1406
- }> & import("../generated/common").DescribeOutput>;
1407
- }>>;
1408
- usage: Partial<{
1409
- prompt_tokens: number;
1410
- completion_tokens: number;
1411
- total_tokens: number;
1412
- }>;
1413
- }>>;
1414
- }
1415
- /**
1416
- * @deprecated
1417
- */
1418
- declare class EnhancedTranscribeApi {
1419
- private readonly api;
1420
- constructor(api: typeof TranscribeApi);
1421
- /**
1422
- * @deprecated use createDescribe instead
1423
- */
1424
- createTranscribe(url: string, options?: {
1425
- enable_summary?: boolean;
1426
- enable_speech?: boolean;
1427
- enable_scene_text?: boolean;
1428
- enable_visual_scene_description?: boolean;
1429
- segmentation_config?: SegmentationConfig;
1430
- segmentation_id?: string;
1431
- thumbnail_config?: ThumbnailsConfig;
1432
- }): Promise<{
1433
- job_id: string;
1434
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1435
- url?: string | undefined;
1436
- created_at?: number | undefined;
1437
- transcribe_config?: Partial<{
1438
- enable_summary: boolean;
1439
- enable_speech: boolean;
1440
- enable_visual_scene_description: boolean;
1441
- enable_scene_text: boolean;
1442
- }> | undefined;
1443
- data?: (Partial<{
1444
- content: string;
1445
- title: string;
1446
- summary: string;
1447
- segment_summary: Array<Partial<{
1448
- title: string;
1449
- summary: string;
1450
- start_time: number;
1451
- end_time: number;
1452
- }>>;
1453
- }> & import("../generated/common").DescribeOutput) | undefined;
1454
- error?: string | undefined;
1455
- }>;
1456
- /**
1457
- * @deprecated use getDescribe instead
1458
- */
1459
- getTranscribe(jobId: string, options?: {
1460
- response_format?: "json" | "markdown";
1461
- }): Promise<{
1462
- job_id: string;
1463
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1464
- url?: string | undefined;
1465
- created_at?: number | undefined;
1466
- transcribe_config?: Partial<{
1467
- enable_summary: boolean;
1468
- enable_speech: boolean;
1469
- enable_visual_scene_description: boolean;
1470
- enable_scene_text: boolean;
1471
- }> | undefined;
1472
- data?: (Partial<{
1473
- content: string;
1474
- title: string;
1475
- summary: string;
1476
- segment_summary: Array<Partial<{
1477
- title: string;
1478
- summary: string;
1479
- start_time: number;
1480
- end_time: number;
1481
- }>>;
1482
- }> & import("../generated/common").DescribeOutput) | undefined;
1483
- error?: string | undefined;
1484
- }>;
1485
- /**
1486
- * @deprecated use listDescribes instead
1487
- */
1488
- listTranscribes(params?: {
1489
- limit?: number;
1490
- offset?: number;
1491
- status?: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1492
- created_before?: string;
1493
- created_after?: string;
1494
- url?: string;
1495
- response_format?: "json" | "markdown";
1496
- }): Promise<{
1497
- object: "list";
1498
- data: Array<{
1499
- job_id: string;
1500
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1501
- url?: string | undefined;
1502
- created_at?: number | undefined;
1503
- transcribe_config?: Partial<{
1504
- enable_summary: boolean;
1505
- enable_speech: boolean;
1506
- enable_visual_scene_description: boolean;
1507
- enable_scene_text: boolean;
1508
- }> | undefined;
1509
- data?: (Partial<{
1510
- content: string;
1511
- title: string;
1512
- summary: string;
1513
- segment_summary: Array<Partial<{
1514
- title: string;
1515
- summary: string;
1516
- start_time: number;
1517
- end_time: number;
1518
- }>>;
1519
- }> & import("../generated/common").DescribeOutput) | undefined;
1520
- error?: string | undefined;
1521
- }>;
1522
- total: number;
1523
- limit: number;
1524
- }>;
1525
- /**
1526
- * Waits for a transcription job to be ready by polling the getTranscribe endpoint until
1527
- * the job reaches a terminal state (completed, failed, or not_applicable) or until maxAttempts is reached.
1528
- *
1529
- * @param jobId - The ID of the transcription job to wait for
1530
- * @param options - Optional configuration for polling behavior and response format
1531
- * @returns The final transcription job object
1532
- * @throws {CloudGlueError} If the job fails to process or maxAttempts is reached
1533
- * @deprecated
1534
- */
1535
- waitForReady(jobId: string, options?: WaitForReadyOptions & {
1536
- response_format?: "json" | "markdown";
1537
- }): Promise<{
1538
- job_id: string;
1539
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1540
- url?: string | undefined;
1541
- created_at?: number | undefined;
1542
- transcribe_config?: Partial<{
1543
- enable_summary: boolean;
1544
- enable_speech: boolean;
1545
- enable_visual_scene_description: boolean;
1546
- enable_scene_text: boolean;
1547
- }> | undefined;
1548
- data?: (Partial<{
1549
- content: string;
1550
- title: string;
1551
- summary: string;
1552
- segment_summary: Array<Partial<{
1553
- title: string;
1554
- summary: string;
1555
- start_time: number;
1556
- end_time: number;
1557
- }>>;
1558
- }> & import("../generated/common").DescribeOutput) | undefined;
1559
- error?: string | undefined;
1560
- }>;
1561
- }
1562
- declare class EnhancedExtractApi {
1563
- private readonly api;
1564
- constructor(api: typeof ExtractApi);
1565
- createExtract(url: string, options?: {
1566
- prompt?: string;
1567
- schema?: Record<string, any>;
1568
- enable_video_level_entities?: boolean;
1569
- enable_segment_level_entities?: boolean;
1570
- segmentation_config?: SegmentationConfig;
1571
- segmentation_id?: string;
1572
- thumbnail_config?: ThumbnailsConfig;
1573
- }): Promise<{
1574
- job_id: string;
1575
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1576
- url?: string | undefined;
1577
- created_at?: number | undefined;
1578
- extract_config?: Partial<{
1579
- prompt: string;
1580
- schema: {};
1581
- enable_video_level_entities: boolean;
1582
- enable_segment_level_entities: boolean;
1583
- }> | undefined;
1584
- segmentation_id?: string | undefined;
1585
- data?: Partial<{
1586
- entities: {};
1587
- segment_entities: Array<Partial<{
1588
- start_time: number;
1589
- end_time: number;
1590
- entities: {};
1591
- }>>;
1592
- }> | undefined;
1593
- total?: number | undefined;
1594
- limit?: number | undefined;
1595
- offset?: number | undefined;
1596
- error?: string | undefined;
1597
- }>;
1598
- getExtract(jobId: string, params?: {
1599
- limit?: number;
1600
- offset?: number;
1601
- }): Promise<{
1602
- job_id: string;
1603
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1604
- url?: string | undefined;
1605
- created_at?: number | undefined;
1606
- extract_config?: Partial<{
1607
- prompt: string;
1608
- schema: {};
1609
- enable_video_level_entities: boolean;
1610
- enable_segment_level_entities: boolean;
1611
- }> | undefined;
1612
- segmentation_id?: string | undefined;
1613
- data?: Partial<{
1614
- entities: {};
1615
- segment_entities: Array<Partial<{
1616
- start_time: number;
1617
- end_time: number;
1618
- entities: {};
1619
- }>>;
1620
- }> | undefined;
1621
- total?: number | undefined;
1622
- limit?: number | undefined;
1623
- offset?: number | undefined;
1624
- error?: string | undefined;
1625
- }>;
1626
- listExtracts(params?: {
1627
- limit?: number;
1628
- offset?: number;
1629
- status?: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1630
- created_before?: string;
1631
- created_after?: string;
1632
- url?: string;
1633
- include_data?: boolean;
1634
- }): Promise<{
1635
- object: "list";
1636
- data: Array<{
1637
- job_id: string;
1638
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1639
- url?: string | undefined;
1640
- created_at?: number | undefined;
1641
- extract_config?: Partial<{
1642
- prompt: string;
1643
- schema: {};
1644
- enable_video_level_entities: boolean;
1645
- enable_segment_level_entities: boolean;
1646
- }> | undefined;
1647
- segmentation_id?: string | undefined;
1648
- data?: Partial<{
1649
- entities: {};
1650
- segment_entities: Array<Partial<{
1651
- start_time: number;
1652
- end_time: number;
1653
- entities: {};
1654
- }>>;
1655
- }> | undefined;
1656
- total?: number | undefined;
1657
- limit?: number | undefined;
1658
- offset?: number | undefined;
1659
- error?: string | undefined;
1660
- }>;
1661
- total: number;
1662
- limit: number;
1663
- offset: number;
1664
- }>;
1665
- deleteExtract(jobId: string): Promise<import("zod").objectOutputType<{
1666
- id: import("zod").ZodString;
1667
- }, import("zod").ZodTypeAny, "passthrough">>;
1668
- /**
1669
- * Waits for an extraction job to be ready by polling the getExtract endpoint until
1670
- * the job reaches a terminal state (completed, failed, or not_applicable) or until maxAttempts is reached.
1671
- *
1672
- * @param jobId - The ID of the extraction job to wait for
1673
- * @param options - Optional configuration for polling behavior
1674
- * @returns The final extraction job object
1675
- * @throws {CloudGlueError} If the job fails to process or maxAttempts is reached
1676
- */
1677
- waitForReady(jobId: string, options?: WaitForReadyOptions): Promise<{
1678
- job_id: string;
1679
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
1680
- url?: string | undefined;
1681
- created_at?: number | undefined;
1682
- extract_config?: Partial<{
1683
- prompt: string;
1684
- schema: {};
1685
- enable_video_level_entities: boolean;
1686
- enable_segment_level_entities: boolean;
1687
- }> | undefined;
1688
- segmentation_id?: string | undefined;
1689
- data?: Partial<{
1690
- entities: {};
1691
- segment_entities: Array<Partial<{
1692
- start_time: number;
1693
- end_time: number;
1694
- entities: {};
1695
- }>>;
1696
- }> | undefined;
1697
- total?: number | undefined;
1698
- limit?: number | undefined;
1699
- offset?: number | undefined;
1700
- error?: string | undefined;
1701
- }>;
1702
- }
1703
- declare class EnhancedSegmentationsApi {
1704
- private readonly api;
1705
- constructor(api: typeof SegmentationsApi);
1706
- getSegmentation(segmentationId: string, params?: {
1707
- limit?: number;
1708
- offset?: number;
1709
- }): Promise<import("zod").objectOutputType<{
1710
- segmentation_id: import("zod").ZodString;
1711
- status: import("zod").ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
1712
- created_at: import("zod").ZodNumber;
1713
- file_id: import("zod").ZodString;
1714
- segmentation_config: import("zod").ZodObject<{
1715
- strategy: import("zod").ZodEnum<["uniform", "shot-detector", "manual"]>;
1716
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
1717
- window_seconds: import("zod").ZodNumber;
1718
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1719
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1720
- window_seconds: import("zod").ZodNumber;
1721
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1722
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1723
- window_seconds: import("zod").ZodNumber;
1724
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1725
- }, import("zod").ZodTypeAny, "passthrough">>>;
1726
- shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
1727
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1728
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1729
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1730
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
1731
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1732
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1733
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1734
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1735
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
1736
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1737
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1738
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1739
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1740
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
1741
- }, import("zod").ZodTypeAny, "passthrough">>>;
1742
- manual_config: import("zod").ZodOptional<import("zod").ZodObject<{
1743
- segments: import("zod").ZodArray<import("zod").ZodObject<{
1744
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1745
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1746
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1747
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1748
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1749
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1750
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1751
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1752
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1753
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1754
- segments: import("zod").ZodArray<import("zod").ZodObject<{
1755
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1756
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1757
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1758
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1759
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1760
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1761
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1762
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1763
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1764
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1765
- segments: import("zod").ZodArray<import("zod").ZodObject<{
1766
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1767
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1768
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1769
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1770
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1771
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1772
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1773
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1774
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1775
- }, import("zod").ZodTypeAny, "passthrough">>>;
1776
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1777
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1778
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1779
- strategy: import("zod").ZodEnum<["uniform", "shot-detector", "manual"]>;
1780
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
1781
- window_seconds: import("zod").ZodNumber;
1782
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1783
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1784
- window_seconds: import("zod").ZodNumber;
1785
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1786
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1787
- window_seconds: import("zod").ZodNumber;
1788
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1789
- }, import("zod").ZodTypeAny, "passthrough">>>;
1790
- shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
1791
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1792
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1793
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1794
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
1795
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1796
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1797
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1798
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1799
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
1800
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1801
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1802
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1803
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1804
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
1805
- }, import("zod").ZodTypeAny, "passthrough">>>;
1806
- manual_config: import("zod").ZodOptional<import("zod").ZodObject<{
1807
- segments: import("zod").ZodArray<import("zod").ZodObject<{
1808
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1809
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1810
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1811
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1812
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1813
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1814
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1815
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1816
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1817
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1818
- segments: import("zod").ZodArray<import("zod").ZodObject<{
1819
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1820
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1821
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1822
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1823
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1824
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1825
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1826
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1827
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1828
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1829
- segments: import("zod").ZodArray<import("zod").ZodObject<{
1830
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1831
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1832
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1833
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1834
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1835
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1836
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1837
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1838
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1839
- }, import("zod").ZodTypeAny, "passthrough">>>;
1840
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1841
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1842
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1843
- strategy: import("zod").ZodEnum<["uniform", "shot-detector", "manual"]>;
1844
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
1845
- window_seconds: import("zod").ZodNumber;
1846
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1847
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1848
- window_seconds: import("zod").ZodNumber;
1849
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1850
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1851
- window_seconds: import("zod").ZodNumber;
1852
- hop_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1853
- }, import("zod").ZodTypeAny, "passthrough">>>;
1854
- shot_detector_config: import("zod").ZodOptional<import("zod").ZodObject<{
1855
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1856
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1857
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1858
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
1859
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1860
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1861
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1862
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1863
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
1864
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1865
- threshold: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1866
- min_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1867
- max_seconds: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1868
- detector: import("zod").ZodEnum<["adaptive", "content"]>;
1869
- }, import("zod").ZodTypeAny, "passthrough">>>;
1870
- manual_config: import("zod").ZodOptional<import("zod").ZodObject<{
1871
- segments: import("zod").ZodArray<import("zod").ZodObject<{
1872
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1873
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1874
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1875
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1876
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1877
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1878
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1879
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1880
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1881
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1882
- segments: import("zod").ZodArray<import("zod").ZodObject<{
1883
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1884
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1885
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1886
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1887
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1888
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1889
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1890
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1891
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1892
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1893
- segments: import("zod").ZodArray<import("zod").ZodObject<{
1894
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1895
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1896
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1897
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1898
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1899
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1900
- start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1901
- end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
1902
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
1903
- }, import("zod").ZodTypeAny, "passthrough">>>;
1904
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1905
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
1906
- }, import("zod").ZodTypeAny, "passthrough">>;
1907
- thumbnails_config: import("zod").ZodObject<{
1908
- enable_segment_thumbnails: import("zod").ZodBoolean;
1909
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1910
- enable_segment_thumbnails: import("zod").ZodBoolean;
1911
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1912
- enable_segment_thumbnails: import("zod").ZodBoolean;
1913
- }, import("zod").ZodTypeAny, "passthrough">>;
1914
- total_segments: import("zod").ZodOptional<import("zod").ZodNumber>;
1915
- total_shots: import("zod").ZodOptional<import("zod").ZodNumber>;
1916
- data: import("zod").ZodOptional<import("zod").ZodObject<{
1917
- object: import("zod").ZodLiteral<"list">;
1918
- segments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1919
- id: import("zod").ZodString;
1920
- start_time: import("zod").ZodNumber;
1921
- end_time: import("zod").ZodNumber;
1922
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
1923
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1924
- id: import("zod").ZodString;
1925
- start_time: import("zod").ZodNumber;
1926
- end_time: import("zod").ZodNumber;
1927
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
1928
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1929
- id: import("zod").ZodString;
1930
- start_time: import("zod").ZodNumber;
1931
- end_time: import("zod").ZodNumber;
1932
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
1933
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1934
- shots: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1935
- index: import("zod").ZodNumber;
1936
- start_time: import("zod").ZodNumber;
1937
- end_time: import("zod").ZodNumber;
1938
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1939
- index: import("zod").ZodNumber;
1940
- start_time: import("zod").ZodNumber;
1941
- end_time: import("zod").ZodNumber;
1942
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1943
- index: import("zod").ZodNumber;
1944
- start_time: import("zod").ZodNumber;
1945
- end_time: import("zod").ZodNumber;
1946
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1947
- total: import("zod").ZodNumber;
1948
- limit: import("zod").ZodNumber;
1949
- offset: import("zod").ZodNumber;
1950
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1951
- object: import("zod").ZodLiteral<"list">;
1952
- segments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1953
- id: import("zod").ZodString;
1954
- start_time: import("zod").ZodNumber;
1955
- end_time: import("zod").ZodNumber;
1956
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
1957
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1958
- id: import("zod").ZodString;
1959
- start_time: import("zod").ZodNumber;
1960
- end_time: import("zod").ZodNumber;
1961
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
1962
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1963
- id: import("zod").ZodString;
1964
- start_time: import("zod").ZodNumber;
1965
- end_time: import("zod").ZodNumber;
1966
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
1967
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1968
- shots: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1969
- index: import("zod").ZodNumber;
1970
- start_time: import("zod").ZodNumber;
1971
- end_time: import("zod").ZodNumber;
1972
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1973
- index: import("zod").ZodNumber;
1974
- start_time: import("zod").ZodNumber;
1975
- end_time: import("zod").ZodNumber;
1976
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1977
- index: import("zod").ZodNumber;
1978
- start_time: import("zod").ZodNumber;
1979
- end_time: import("zod").ZodNumber;
1980
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
1981
- total: import("zod").ZodNumber;
1982
- limit: import("zod").ZodNumber;
1983
- offset: import("zod").ZodNumber;
1984
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1985
- object: import("zod").ZodLiteral<"list">;
1986
- segments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1987
- id: import("zod").ZodString;
1988
- start_time: import("zod").ZodNumber;
1989
- end_time: import("zod").ZodNumber;
1990
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
1991
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
1992
- id: import("zod").ZodString;
1993
- start_time: import("zod").ZodNumber;
1994
- end_time: import("zod").ZodNumber;
1995
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
1996
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
1997
- id: import("zod").ZodString;
1998
- start_time: import("zod").ZodNumber;
1999
- end_time: import("zod").ZodNumber;
2000
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2001
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
2002
- shots: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2003
- index: import("zod").ZodNumber;
2004
- start_time: import("zod").ZodNumber;
2005
- end_time: import("zod").ZodNumber;
2006
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2007
- index: import("zod").ZodNumber;
2008
- start_time: import("zod").ZodNumber;
2009
- end_time: import("zod").ZodNumber;
2010
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2011
- index: import("zod").ZodNumber;
2012
- start_time: import("zod").ZodNumber;
2013
- end_time: import("zod").ZodNumber;
2014
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
2015
- total: import("zod").ZodNumber;
2016
- limit: import("zod").ZodNumber;
2017
- offset: import("zod").ZodNumber;
2018
- }, import("zod").ZodTypeAny, "passthrough">>>;
2019
- }, import("zod").ZodTypeAny, "passthrough">>;
2020
- deleteSegmentation(segmentationId: string): Promise<import("zod").objectOutputType<{
2021
- id: import("zod").ZodString;
2022
- }, import("zod").ZodTypeAny, "passthrough">>;
2023
- /**
2024
- * Get thumbnails for a specific segmentation
2025
- * @param segmentationId - The ID of the segmentation
2026
- * @param params - Optional parameters
2027
- * @returns The thumbnails for the segmentation
2028
- */
2029
- getSegmentationThumbnails(segmentationId: string, params?: {
2030
- limit?: number;
2031
- offset?: number;
2032
- /**
2033
- * The IDs of the segments to get thumbnails for. If not provided, all segments will be used.
2034
- */
2035
- segment_ids?: string[];
2036
- }): Promise<import("zod").objectOutputType<{
2037
- object: import("zod").ZodLiteral<"list">;
2038
- total: import("zod").ZodNumber;
2039
- limit: import("zod").ZodNumber;
2040
- offset: import("zod").ZodNumber;
2041
- data: import("zod").ZodArray<import("zod").ZodObject<{
2042
- id: import("zod").ZodString;
2043
- url: import("zod").ZodString;
2044
- time: import("zod").ZodNumber;
2045
- segmentation_id: import("zod").ZodOptional<import("zod").ZodString>;
2046
- segment_id: import("zod").ZodOptional<import("zod").ZodString>;
2047
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2048
- id: import("zod").ZodString;
2049
- url: import("zod").ZodString;
2050
- time: import("zod").ZodNumber;
2051
- segmentation_id: import("zod").ZodOptional<import("zod").ZodString>;
2052
- segment_id: import("zod").ZodOptional<import("zod").ZodString>;
2053
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2054
- id: import("zod").ZodString;
2055
- url: import("zod").ZodString;
2056
- time: import("zod").ZodNumber;
2057
- segmentation_id: import("zod").ZodOptional<import("zod").ZodString>;
2058
- segment_id: import("zod").ZodOptional<import("zod").ZodString>;
2059
- }, import("zod").ZodTypeAny, "passthrough">>, "many">;
2060
- }, import("zod").ZodTypeAny, "passthrough">>;
2061
- }
2062
- declare class EnhancedSearchApi {
2063
- private readonly api;
2064
- constructor(api: typeof SearchApi);
2065
- searchContent(params: SearchRequest): Promise<{
2066
- id: string;
2067
- object: "search";
2068
- query?: string | undefined;
2069
- scope: "file" | "segment" | "face";
2070
- group_by_key?: "file" | undefined;
2071
- group_count?: number | undefined;
2072
- search_modalities?: ("general_content" | "speech_lexical" | "ocr_lexical")[] | undefined;
2073
- results: Array<{
2074
- type: "file";
2075
- file_id: string;
2076
- collection_id: string;
2077
- id: string;
2078
- score: number;
2079
- filename?: (string | null) | undefined;
2080
- summary?: (string | null) | undefined;
2081
- generated_title?: (string | null) | undefined;
2082
- thumbnail_url?: string | undefined;
2083
- } | {
2084
- type: "segment";
2085
- file_id: string;
2086
- collection_id: string;
2087
- segment_id: string;
2088
- id: string;
2089
- score: number;
2090
- start_time: number;
2091
- end_time: number;
2092
- title?: (string | null) | undefined;
2093
- filename?: (string | null) | undefined;
2094
- visual_description?: Array<Partial<{
2095
- text: string;
2096
- start_time: number;
2097
- end_time: number;
2098
- }>> | undefined;
2099
- scene_text?: Array<Partial<{
2100
- text: string;
2101
- start_time: number;
2102
- end_time: number;
2103
- }>> | undefined;
2104
- speech?: Array<Partial<{
2105
- speaker: string;
2106
- text: string;
2107
- start_time: number;
2108
- end_time: number;
2109
- }>> | undefined;
2110
- thumbnail_url?: string | undefined;
2111
- } | {
2112
- type: "face";
2113
- file_id: string;
2114
- collection_id: string;
2115
- face_id: string;
2116
- frame_id: string;
2117
- score: number;
2118
- timestamp: number;
2119
- face_bounding_box?: {
2120
- height: number;
2121
- width: number;
2122
- top: number;
2123
- left: number;
2124
- } | undefined;
2125
- thumbnail_url?: string | undefined;
2126
- } | {
2127
- type: "segment_group";
2128
- matched_items: Array<{
2129
- type: "segment";
2130
- file_id: string;
2131
- collection_id: string;
2132
- segment_id: string;
2133
- id: string;
2134
- score: number;
2135
- start_time: number;
2136
- end_time: number;
2137
- title?: (string | null) | undefined;
2138
- filename?: (string | null) | undefined;
2139
- visual_description?: Array<Partial<{
2140
- text: string;
2141
- start_time: number;
2142
- end_time: number;
2143
- }>> | undefined;
2144
- scene_text?: Array<Partial<{
2145
- text: string;
2146
- start_time: number;
2147
- end_time: number;
2148
- }>> | undefined;
2149
- speech?: Array<Partial<{
2150
- speaker: string;
2151
- text: string;
2152
- start_time: number;
2153
- end_time: number;
2154
- }>> | undefined;
2155
- thumbnail_url?: string | undefined;
2156
- }>;
2157
- file_id: string;
2158
- item_count: number;
2159
- best_score: number;
2160
- } | {
2161
- type: "face_group";
2162
- matched_items: Array<{
2163
- type: "face";
2164
- file_id: string;
2165
- collection_id: string;
2166
- face_id: string;
2167
- frame_id: string;
2168
- score: number;
2169
- timestamp: number;
2170
- face_bounding_box?: {
2171
- height: number;
2172
- width: number;
2173
- top: number;
2174
- left: number;
2175
- } | undefined;
2176
- thumbnail_url?: string | undefined;
2177
- }>;
2178
- file_id: string;
2179
- item_count: number;
2180
- best_score: number;
2181
- }>;
2182
- total: number;
2183
- limit: number;
2184
- }>;
2185
- }
2186
- declare class EnhancedDescribeApi {
2187
- private readonly api;
2188
- constructor(api: typeof DescribeApi);
2189
- createDescribe(url: string, options?: {
2190
- enable_summary?: boolean;
2191
- enable_speech?: boolean;
2192
- enable_scene_text?: boolean;
2193
- enable_visual_scene_description?: boolean;
2194
- enable_audio_description?: boolean;
2195
- segmentation_config?: SegmentationConfig;
2196
- segmentation_id?: string;
2197
- thumbnail_config?: ThumbnailsConfig;
2198
- }): Promise<{
2199
- job_id: string;
2200
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
2201
- url?: string | undefined;
2202
- duration_seconds?: number | undefined;
2203
- created_at?: number | undefined;
2204
- describe_config?: Partial<{
2205
- enable_summary: boolean;
2206
- enable_speech: boolean;
2207
- enable_visual_scene_description: boolean;
2208
- enable_scene_text: boolean;
2209
- enable_audio_description: boolean;
2210
- }> | undefined;
2211
- data?: (Partial<{
2212
- content: string;
2213
- title: string;
2214
- summary: string;
2215
- segment_summary: Array<Partial<{
2216
- title: string;
2217
- summary: string;
2218
- start_time: number;
2219
- end_time: number;
2220
- }>>;
2221
- }> & import("../generated/common").DescribeOutput) | undefined;
2222
- error?: string | undefined;
2223
- }>;
2224
- getDescribe(jobId: string, options?: {
2225
- response_format?: "json" | "markdown";
2226
- start_time_seconds?: number;
2227
- end_time_seconds?: number;
2228
- }): Promise<{
2229
- job_id: string;
2230
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
2231
- url?: string | undefined;
2232
- duration_seconds?: number | undefined;
2233
- created_at?: number | undefined;
2234
- describe_config?: Partial<{
2235
- enable_summary: boolean;
2236
- enable_speech: boolean;
2237
- enable_visual_scene_description: boolean;
2238
- enable_scene_text: boolean;
2239
- enable_audio_description: boolean;
2240
- }> | undefined;
2241
- data?: (Partial<{
2242
- content: string;
2243
- title: string;
2244
- summary: string;
2245
- segment_summary: Array<Partial<{
2246
- title: string;
2247
- summary: string;
2248
- start_time: number;
2249
- end_time: number;
2250
- }>>;
2251
- }> & import("../generated/common").DescribeOutput) | undefined;
2252
- error?: string | undefined;
2253
- }>;
2254
- listDescribes(params?: {
2255
- limit?: number;
2256
- offset?: number;
2257
- status?: "pending" | "processing" | "completed" | "failed" | "not_applicable";
2258
- created_before?: string;
2259
- created_after?: string;
2260
- url?: string;
2261
- response_format?: "json" | "markdown";
2262
- include_data?: boolean;
2263
- }): Promise<{
2264
- object: "list";
2265
- data: Array<{
2266
- job_id: string;
2267
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
2268
- url?: string | undefined;
2269
- duration_seconds?: number | undefined;
2270
- created_at?: number | undefined;
2271
- describe_config?: Partial<{
2272
- enable_summary: boolean;
2273
- enable_speech: boolean;
2274
- enable_visual_scene_description: boolean;
2275
- enable_scene_text: boolean;
2276
- enable_audio_description: boolean;
2277
- }> | undefined;
2278
- data?: (Partial<{
2279
- content: string;
2280
- title: string;
2281
- summary: string;
2282
- segment_summary: Array<Partial<{
2283
- title: string;
2284
- summary: string;
2285
- start_time: number;
2286
- end_time: number;
2287
- }>>;
2288
- }> & import("../generated/common").DescribeOutput) | undefined;
2289
- error?: string | undefined;
2290
- }>;
2291
- total: number;
2292
- limit: number;
2293
- }>;
2294
- deleteDescribe(jobId: string): Promise<import("zod").objectOutputType<{
2295
- id: import("zod").ZodString;
2296
- }, import("zod").ZodTypeAny, "passthrough">>;
2297
- /**
2298
- * Waits for a description job to be ready by polling the getDescribe endpoint until
2299
- * the job reaches a terminal state (completed, failed, or not_applicable) or until maxAttempts is reached.
2300
- *
2301
- * @param jobId - The ID of the description job to wait for
2302
- * @param options - Optional configuration for polling behavior and response format
2303
- * @returns The final description job object
2304
- * @throws {CloudGlueError} If the job fails to process or maxAttempts is reached
2305
- */
2306
- waitForReady(jobId: string, options?: WaitForReadyOptions & {
2307
- response_format?: "json" | "markdown";
2308
- }): Promise<{
2309
- job_id: string;
2310
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
2311
- url?: string | undefined;
2312
- duration_seconds?: number | undefined;
2313
- created_at?: number | undefined;
2314
- describe_config?: Partial<{
2315
- enable_summary: boolean;
2316
- enable_speech: boolean;
2317
- enable_visual_scene_description: boolean;
2318
- enable_scene_text: boolean;
2319
- enable_audio_description: boolean;
2320
- }> | undefined;
2321
- data?: (Partial<{
2322
- content: string;
2323
- title: string;
2324
- summary: string;
2325
- segment_summary: Array<Partial<{
2326
- title: string;
2327
- summary: string;
2328
- start_time: number;
2329
- end_time: number;
2330
- }>>;
2331
- }> & import("../generated/common").DescribeOutput) | undefined;
2332
- error?: string | undefined;
2333
- }>;
2334
- }
2335
- declare class EnhancedSegmentsApi {
2336
- private readonly api;
2337
- constructor(api: typeof SegmentsApi);
2338
- listSegmentJobs(data: {
2339
- criteria?: "shot" | "narrative";
2340
- url?: string;
2341
- status?: "pending" | "processing" | "completed" | "failed";
2342
- limit?: number;
2343
- offset?: number;
2344
- created_before?: string;
2345
- created_after?: string;
2346
- order?: "created_at";
2347
- sort?: "asc" | "desc";
2348
- }): Promise<{
2349
- object: "list";
2350
- data: Array<{
2351
- job_id: string;
2352
- file_id: string;
2353
- object: "segments";
2354
- status: "pending" | "processing" | "completed" | "failed";
2355
- criteria: "shot" | "narrative";
2356
- created_at: number;
2357
- shot_config?: Partial<{
2358
- detector: "content" | "adaptive";
2359
- max_duration_seconds: number;
2360
- min_duration_seconds: number;
2361
- }> | undefined;
2362
- narrative_config?: Partial<{
2363
- prompt: string;
2364
- strategy: "comprehensive" | "balanced";
2365
- number_of_chapters: number;
2366
- min_chapters: number;
2367
- max_chapters: number;
2368
- }> | undefined;
2369
- }>;
2370
- total: number;
2371
- limit: number;
2372
- offset: number;
2373
- }>;
2374
- getSegmentJob(jobId: string): Promise<{
2375
- job_id: string;
2376
- file_id: string;
2377
- object: "segments";
2378
- status: "pending" | "processing" | "completed" | "failed";
2379
- criteria: "shot" | "narrative";
2380
- created_at: number;
2381
- shot_config?: Partial<{
2382
- detector: "content" | "adaptive";
2383
- max_duration_seconds: number;
2384
- min_duration_seconds: number;
2385
- }> | undefined;
2386
- narrative_config?: Partial<{
2387
- prompt: string;
2388
- strategy: "comprehensive" | "balanced";
2389
- number_of_chapters: number;
2390
- min_chapters: number;
2391
- max_chapters: number;
2392
- }> | undefined;
2393
- total_segments?: number | undefined;
2394
- total_shots?: number | undefined;
2395
- segments?: Array<{
2396
- start_time: number;
2397
- end_time: number;
2398
- description?: string | undefined;
2399
- thumbnail_url?: string | undefined;
2400
- shot_index?: number | undefined;
2401
- }> | undefined;
2402
- shots?: Array<import("../generated/common").Shot> | undefined;
2403
- }>;
2404
- createSegmentJob(params: {
2405
- url: string;
2406
- criteria: "shot" | "narrative";
2407
- shot_config?: ShotConfig;
2408
- narrative_config?: NarrativeConfig;
2409
- }): Promise<{
2410
- job_id: string;
2411
- file_id: string;
2412
- object: "segments";
2413
- status: "pending" | "processing" | "completed" | "failed";
2414
- criteria: "shot" | "narrative";
2415
- created_at: number;
2416
- shot_config?: Partial<{
2417
- detector: "content" | "adaptive";
2418
- max_duration_seconds: number;
2419
- min_duration_seconds: number;
2420
- }> | undefined;
2421
- narrative_config?: Partial<{
2422
- prompt: string;
2423
- strategy: "comprehensive" | "balanced";
2424
- number_of_chapters: number;
2425
- min_chapters: number;
2426
- max_chapters: number;
2427
- }> | undefined;
2428
- total_segments?: number | undefined;
2429
- total_shots?: number | undefined;
2430
- segments?: Array<{
2431
- start_time: number;
2432
- end_time: number;
2433
- description?: string | undefined;
2434
- thumbnail_url?: string | undefined;
2435
- shot_index?: number | undefined;
2436
- }> | undefined;
2437
- shots?: Array<import("../generated/common").Shot> | undefined;
2438
- }>;
2439
- deleteSegmentJob(jobId: string): Promise<import("zod").objectOutputType<{
2440
- id: import("zod").ZodString;
2441
- }, import("zod").ZodTypeAny, "passthrough">>;
2442
- waitForReady(jobId: string, options?: WaitForReadyOptions): Promise<{
2443
- job_id: string;
2444
- file_id: string;
2445
- object: "segments";
2446
- status: "pending" | "processing" | "completed" | "failed";
2447
- criteria: "shot" | "narrative";
2448
- created_at: number;
2449
- shot_config?: Partial<{
2450
- detector: "content" | "adaptive";
2451
- max_duration_seconds: number;
2452
- min_duration_seconds: number;
2453
- }> | undefined;
2454
- narrative_config?: Partial<{
2455
- prompt: string;
2456
- strategy: "comprehensive" | "balanced";
2457
- number_of_chapters: number;
2458
- min_chapters: number;
2459
- max_chapters: number;
2460
- }> | undefined;
2461
- total_segments?: number | undefined;
2462
- total_shots?: number | undefined;
2463
- segments?: Array<{
2464
- start_time: number;
2465
- end_time: number;
2466
- description?: string | undefined;
2467
- thumbnail_url?: string | undefined;
2468
- shot_index?: number | undefined;
2469
- }> | undefined;
2470
- shots?: Array<import("../generated/common").Shot> | undefined;
2471
- }>;
2472
- }
2473
- declare class EnhancedWebhooksApi {
2474
- private readonly api;
2475
- constructor(api: typeof WebhooksApi);
2476
- listWebhooks(params?: {
2477
- limit?: number;
2478
- offset?: number;
2479
- sort?: "asc" | "desc";
2480
- }): Promise<{
2481
- object: "list";
2482
- data: Array<{
2483
- id: string;
2484
- object: "webhook";
2485
- created_at: number;
2486
- webhook_secret: string;
2487
- endpoint: string;
2488
- active: boolean;
2489
- description?: string | undefined;
2490
- subscribed_events: Array<"describe.job.processing" | "describe.job.completed" | "describe.job.failed" | "extract.job.processing" | "extract.job.completed" | "extract.job.failed" | "file.job.processing" | "file.job.completed" | "file.job.failed" | "file.job.deleted" | "collection.file.job.processing" | "collection.file.job.completed" | "collection.file.job.failed" | "collection.file.job.deleted" | "segment.job.processing" | "segment.job.completed" | "segment.job.failed">;
2491
- }>;
2492
- total: number;
2493
- limit: number;
2494
- offset: number;
2495
- }>;
2496
- getWebhook(webhookId: string): Promise<{
2497
- id: string;
2498
- object: "webhook";
2499
- created_at: number;
2500
- webhook_secret: string;
2501
- endpoint: string;
2502
- active: boolean;
2503
- description?: string | undefined;
2504
- subscribed_events: Array<"describe.job.processing" | "describe.job.completed" | "describe.job.failed" | "extract.job.processing" | "extract.job.completed" | "extract.job.failed" | "file.job.processing" | "file.job.completed" | "file.job.failed" | "file.job.deleted" | "collection.file.job.processing" | "collection.file.job.completed" | "collection.file.job.failed" | "collection.file.job.deleted" | "segment.job.processing" | "segment.job.completed" | "segment.job.failed">;
2505
- }>;
2506
- createWebhook(params: {
2507
- endpoint: string;
2508
- description?: string;
2509
- subscribed_events?: WebhookEvents[];
2510
- }): Promise<{
2511
- id: string;
2512
- object: "webhook";
2513
- created_at: number;
2514
- webhook_secret: string;
2515
- endpoint: string;
2516
- active: boolean;
2517
- description?: string | undefined;
2518
- subscribed_events: Array<"describe.job.processing" | "describe.job.completed" | "describe.job.failed" | "extract.job.processing" | "extract.job.completed" | "extract.job.failed" | "file.job.processing" | "file.job.completed" | "file.job.failed" | "file.job.deleted" | "collection.file.job.processing" | "collection.file.job.completed" | "collection.file.job.failed" | "collection.file.job.deleted" | "segment.job.processing" | "segment.job.completed" | "segment.job.failed">;
2519
- }>;
2520
- updateWebhook(webhookId: string, params: {
2521
- endpoint: string;
2522
- description?: string;
2523
- subscribed_events?: WebhookEvents[];
2524
- active?: boolean;
2525
- }): Promise<{
2526
- id: string;
2527
- object: "webhook";
2528
- created_at: number;
2529
- webhook_secret: string;
2530
- endpoint: string;
2531
- active: boolean;
2532
- description?: string | undefined;
2533
- subscribed_events: Array<"describe.job.processing" | "describe.job.completed" | "describe.job.failed" | "extract.job.processing" | "extract.job.completed" | "extract.job.failed" | "file.job.processing" | "file.job.completed" | "file.job.failed" | "file.job.deleted" | "collection.file.job.processing" | "collection.file.job.completed" | "collection.file.job.failed" | "collection.file.job.deleted" | "segment.job.processing" | "segment.job.completed" | "segment.job.failed">;
2534
- }>;
2535
- deleteWebhook(webhookId: string): Promise<import("zod").objectOutputType<{
2536
- id: import("zod").ZodString;
2537
- object: import("zod").ZodLiteral<"webhook">;
2538
- }, import("zod").ZodTypeAny, "passthrough">>;
2539
- }
2540
- declare class EnhancedFramesApi {
2541
- private readonly api;
2542
- constructor(api: typeof FramesApi);
2543
- getFrameExtraction(frameExtractionId: string, params?: {
2544
- limit?: number;
2545
- offset?: number;
2546
- }): Promise<import("zod").objectOutputType<{
2547
- frame_extraction_id: import("zod").ZodString;
2548
- status: import("zod").ZodEnum<["pending", "processing", "completed", "failed"]>;
2549
- created_at: import("zod").ZodNumber;
2550
- file_id: import("zod").ZodString;
2551
- frame_extraction_config: import("zod").ZodObject<{
2552
- strategy: import("zod").ZodLiteral<"uniform">;
2553
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
2554
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2555
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2556
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2557
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2558
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2559
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2560
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2561
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2562
- }, import("zod").ZodTypeAny, "passthrough">>>;
2563
- thumbnails_config: import("zod").ZodOptional<import("zod").ZodObject<{
2564
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2565
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2566
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2567
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2568
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2569
- }, import("zod").ZodTypeAny, "passthrough">>>;
2570
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2571
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2572
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2573
- strategy: import("zod").ZodLiteral<"uniform">;
2574
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
2575
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2576
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2577
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2578
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2579
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2580
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2581
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2582
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2583
- }, import("zod").ZodTypeAny, "passthrough">>>;
2584
- thumbnails_config: import("zod").ZodOptional<import("zod").ZodObject<{
2585
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2586
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2587
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2588
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2589
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2590
- }, import("zod").ZodTypeAny, "passthrough">>>;
2591
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2592
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2593
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2594
- strategy: import("zod").ZodLiteral<"uniform">;
2595
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
2596
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2597
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2598
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2599
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2600
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2601
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2602
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2603
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2604
- }, import("zod").ZodTypeAny, "passthrough">>>;
2605
- thumbnails_config: import("zod").ZodOptional<import("zod").ZodObject<{
2606
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2607
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2608
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2609
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2610
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2611
- }, import("zod").ZodTypeAny, "passthrough">>>;
2612
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2613
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2614
- }, import("zod").ZodTypeAny, "passthrough">>;
2615
- frame_count: import("zod").ZodOptional<import("zod").ZodNumber>;
2616
- data: import("zod").ZodOptional<import("zod").ZodObject<{
2617
- object: import("zod").ZodLiteral<"list">;
2618
- frames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2619
- id: import("zod").ZodString;
2620
- timestamp: import("zod").ZodNumber;
2621
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2622
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2623
- id: import("zod").ZodString;
2624
- timestamp: import("zod").ZodNumber;
2625
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2626
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2627
- id: import("zod").ZodString;
2628
- timestamp: import("zod").ZodNumber;
2629
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2630
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
2631
- total: import("zod").ZodNumber;
2632
- limit: import("zod").ZodNumber;
2633
- offset: import("zod").ZodNumber;
2634
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2635
- object: import("zod").ZodLiteral<"list">;
2636
- frames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2637
- id: import("zod").ZodString;
2638
- timestamp: import("zod").ZodNumber;
2639
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2640
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2641
- id: import("zod").ZodString;
2642
- timestamp: import("zod").ZodNumber;
2643
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2644
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2645
- id: import("zod").ZodString;
2646
- timestamp: import("zod").ZodNumber;
2647
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2648
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
2649
- total: import("zod").ZodNumber;
2650
- limit: import("zod").ZodNumber;
2651
- offset: import("zod").ZodNumber;
2652
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2653
- object: import("zod").ZodLiteral<"list">;
2654
- frames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2655
- id: import("zod").ZodString;
2656
- timestamp: import("zod").ZodNumber;
2657
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2658
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2659
- id: import("zod").ZodString;
2660
- timestamp: import("zod").ZodNumber;
2661
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2662
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2663
- id: import("zod").ZodString;
2664
- timestamp: import("zod").ZodNumber;
2665
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2666
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
2667
- total: import("zod").ZodNumber;
2668
- limit: import("zod").ZodNumber;
2669
- offset: import("zod").ZodNumber;
2670
- }, import("zod").ZodTypeAny, "passthrough">>>;
2671
- }, import("zod").ZodTypeAny, "passthrough">>;
2672
- deleteFrameExtraction(frameExtractionId: string): Promise<import("zod").objectOutputType<{
2673
- id: import("zod").ZodString;
2674
- }, import("zod").ZodTypeAny, "passthrough">>;
2675
- waitForReady(frameExtractionId: string, options?: WaitForReadyOptions): Promise<import("zod").objectOutputType<{
2676
- frame_extraction_id: import("zod").ZodString;
2677
- status: import("zod").ZodEnum<["pending", "processing", "completed", "failed"]>;
2678
- created_at: import("zod").ZodNumber;
2679
- file_id: import("zod").ZodString;
2680
- frame_extraction_config: import("zod").ZodObject<{
2681
- strategy: import("zod").ZodLiteral<"uniform">;
2682
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
2683
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2684
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2685
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2686
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2687
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2688
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2689
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2690
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2691
- }, import("zod").ZodTypeAny, "passthrough">>>;
2692
- thumbnails_config: import("zod").ZodOptional<import("zod").ZodObject<{
2693
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2694
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2695
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2696
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2697
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2698
- }, import("zod").ZodTypeAny, "passthrough">>>;
2699
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2700
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2701
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2702
- strategy: import("zod").ZodLiteral<"uniform">;
2703
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
2704
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2705
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2706
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2707
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2708
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2709
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2710
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2711
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2712
- }, import("zod").ZodTypeAny, "passthrough">>>;
2713
- thumbnails_config: import("zod").ZodOptional<import("zod").ZodObject<{
2714
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2715
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2716
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2717
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2718
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2719
- }, import("zod").ZodTypeAny, "passthrough">>>;
2720
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2721
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2722
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2723
- strategy: import("zod").ZodLiteral<"uniform">;
2724
- uniform_config: import("zod").ZodOptional<import("zod").ZodObject<{
2725
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2726
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2727
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2728
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2729
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2730
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2731
- frames_per_second: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2732
- max_width: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
2733
- }, import("zod").ZodTypeAny, "passthrough">>>;
2734
- thumbnails_config: import("zod").ZodOptional<import("zod").ZodObject<{
2735
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2736
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2737
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2738
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2739
- enable_frame_thumbnails: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
2740
- }, import("zod").ZodTypeAny, "passthrough">>>;
2741
- start_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2742
- end_time_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
2743
- }, import("zod").ZodTypeAny, "passthrough">>;
2744
- frame_count: import("zod").ZodOptional<import("zod").ZodNumber>;
2745
- data: import("zod").ZodOptional<import("zod").ZodObject<{
2746
- object: import("zod").ZodLiteral<"list">;
2747
- frames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2748
- id: import("zod").ZodString;
2749
- timestamp: import("zod").ZodNumber;
2750
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2751
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2752
- id: import("zod").ZodString;
2753
- timestamp: import("zod").ZodNumber;
2754
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2755
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2756
- id: import("zod").ZodString;
2757
- timestamp: import("zod").ZodNumber;
2758
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2759
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
2760
- total: import("zod").ZodNumber;
2761
- limit: import("zod").ZodNumber;
2762
- offset: import("zod").ZodNumber;
2763
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2764
- object: import("zod").ZodLiteral<"list">;
2765
- frames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2766
- id: import("zod").ZodString;
2767
- timestamp: import("zod").ZodNumber;
2768
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2769
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2770
- id: import("zod").ZodString;
2771
- timestamp: import("zod").ZodNumber;
2772
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2773
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2774
- id: import("zod").ZodString;
2775
- timestamp: import("zod").ZodNumber;
2776
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2777
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
2778
- total: import("zod").ZodNumber;
2779
- limit: import("zod").ZodNumber;
2780
- offset: import("zod").ZodNumber;
2781
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2782
- object: import("zod").ZodLiteral<"list">;
2783
- frames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2784
- id: import("zod").ZodString;
2785
- timestamp: import("zod").ZodNumber;
2786
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2787
- }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
2788
- id: import("zod").ZodString;
2789
- timestamp: import("zod").ZodNumber;
2790
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2791
- }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
2792
- id: import("zod").ZodString;
2793
- timestamp: import("zod").ZodNumber;
2794
- thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
2795
- }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
2796
- total: import("zod").ZodNumber;
2797
- limit: import("zod").ZodNumber;
2798
- offset: import("zod").ZodNumber;
2799
- }, import("zod").ZodTypeAny, "passthrough">>>;
2800
- }, import("zod").ZodTypeAny, "passthrough">>;
2801
- }
2802
- declare class EnhancedFaceDetectionApi {
2803
- private readonly api;
2804
- constructor(api: typeof Face_DetectionApi);
2805
- createFaceDetection(params: {
2806
- url: string;
2807
- frame_extraction_id?: string;
2808
- frame_extraction_config?: FrameExtractionConfig;
2809
- }): Promise<{
2810
- face_detection_id: string;
2811
- frame_extraction_id?: string | undefined;
2812
- file_id?: string | undefined;
2813
- status: "pending" | "processing" | "completed" | "failed";
2814
- created_at: number;
2815
- data?: Partial<{
2816
- object: "list";
2817
- total: number;
2818
- limit: number;
2819
- offset: number;
2820
- faces: Array<{
2821
- id: string;
2822
- face_bounding_box: import("../generated/common").FaceBoundingBox;
2823
- frame_id: string;
2824
- timestamp: number;
2825
- thumbnail_url?: string | undefined;
2826
- }>;
2827
- }> | undefined;
2828
- }>;
2829
- getFaceDetection(faceDetectionId: string, params?: {
2830
- limit?: number;
2831
- offset?: number;
2832
- }): Promise<{
2833
- face_detection_id: string;
2834
- frame_extraction_id?: string | undefined;
2835
- file_id?: string | undefined;
2836
- status: "pending" | "processing" | "completed" | "failed";
2837
- created_at: number;
2838
- data?: Partial<{
2839
- object: "list";
2840
- total: number;
2841
- limit: number;
2842
- offset: number;
2843
- faces: Array<{
2844
- id: string;
2845
- face_bounding_box: import("../generated/common").FaceBoundingBox;
2846
- frame_id: string;
2847
- timestamp: number;
2848
- thumbnail_url?: string | undefined;
2849
- }>;
2850
- }> | undefined;
2851
- }>;
2852
- deleteFaceDetection(faceDetectionId: string): Promise<import("zod").objectOutputType<{
2853
- id: import("zod").ZodString;
2854
- }, import("zod").ZodTypeAny, "passthrough">>;
2855
- waitForReady(faceDetectionId: string, options?: WaitForReadyOptions): Promise<{
2856
- face_detection_id: string;
2857
- frame_extraction_id?: string | undefined;
2858
- file_id?: string | undefined;
2859
- status: "pending" | "processing" | "completed" | "failed";
2860
- created_at: number;
2861
- data?: Partial<{
2862
- object: "list";
2863
- total: number;
2864
- limit: number;
2865
- offset: number;
2866
- faces: Array<{
2867
- id: string;
2868
- face_bounding_box: import("../generated/common").FaceBoundingBox;
2869
- frame_id: string;
2870
- timestamp: number;
2871
- thumbnail_url?: string | undefined;
2872
- }>;
2873
- }> | undefined;
2874
- }>;
2875
- }
2876
- declare class EnhancedFaceMatchApi {
2877
- private readonly api;
2878
- constructor(api: typeof Face_MatchApi);
2879
- createFaceMatch(params: {
2880
- source_image: {
2881
- url?: string;
2882
- base64_image?: string;
2883
- file_path?: string;
2884
- };
2885
- target_video_url: string;
2886
- max_faces?: number;
2887
- face_detection_id?: string;
2888
- frame_extraction_id?: string;
2889
- frame_extraction_config?: FrameExtractionConfig;
2890
- }): Promise<{
2891
- face_match_id: string;
2892
- face_detection_id?: string | undefined;
2893
- frame_extraction_id?: string | undefined;
2894
- file_id?: string | undefined;
2895
- status: "pending" | "processing" | "completed" | "failed";
2896
- created_at: number;
2897
- source_face_bounding_box?: (import("../generated/common").FaceBoundingBox | null) | undefined;
2898
- data?: Partial<{
2899
- object: "list";
2900
- total: number;
2901
- limit: number;
2902
- offset: number;
2903
- faces_matches: Array<{
2904
- id: string;
2905
- face_bounding_box: import("../generated/common").FaceBoundingBox;
2906
- similarity: number;
2907
- frame_id: string;
2908
- timestamp: number;
2909
- thumbnail_url?: string | undefined;
2910
- }>;
2911
- }> | undefined;
2912
- }>;
2913
- getFaceMatch(faceMatchId: string, params?: {
2914
- limit?: number;
2915
- offset?: number;
2916
- }): Promise<{
2917
- face_match_id: string;
2918
- face_detection_id?: string | undefined;
2919
- frame_extraction_id?: string | undefined;
2920
- file_id?: string | undefined;
2921
- status: "pending" | "processing" | "completed" | "failed";
2922
- created_at: number;
2923
- source_face_bounding_box?: (import("../generated/common").FaceBoundingBox | null) | undefined;
2924
- data?: Partial<{
2925
- object: "list";
2926
- total: number;
2927
- limit: number;
2928
- offset: number;
2929
- faces_matches: Array<{
2930
- id: string;
2931
- face_bounding_box: import("../generated/common").FaceBoundingBox;
2932
- similarity: number;
2933
- frame_id: string;
2934
- timestamp: number;
2935
- thumbnail_url?: string | undefined;
2936
- }>;
2937
- }> | undefined;
2938
- }>;
2939
- deleteFaceMatch(faceMatchId: string): Promise<import("zod").objectOutputType<{
2940
- face_match_id: import("zod").ZodString;
2941
- object: import("zod").ZodLiteral<"face_match">;
2942
- }, import("zod").ZodTypeAny, "passthrough">>;
2943
- waitForReady(faceMatchId: string, options?: WaitForReadyOptions): Promise<{
2944
- face_match_id: string;
2945
- face_detection_id?: string | undefined;
2946
- frame_extraction_id?: string | undefined;
2947
- file_id?: string | undefined;
2948
- status: "pending" | "processing" | "completed" | "failed";
2949
- created_at: number;
2950
- source_face_bounding_box?: (import("../generated/common").FaceBoundingBox | null) | undefined;
2951
- data?: Partial<{
2952
- object: "list";
2953
- total: number;
2954
- limit: number;
2955
- offset: number;
2956
- faces_matches: Array<{
2957
- id: string;
2958
- face_bounding_box: import("../generated/common").FaceBoundingBox;
2959
- similarity: number;
2960
- frame_id: string;
2961
- timestamp: number;
2962
- thumbnail_url?: string | undefined;
2963
- }>;
2964
- }> | undefined;
2965
- }>;
2966
- }
1
+ import type { CloudGlueConfig } from './types';
2
+ import { EnhancedWebhooksApi } from './api/webhooks.api';
3
+ import { EnhancedTagsApi } from './api/tags.api';
4
+ import { EnhancedFilesApi } from './api/files.api';
5
+ import { EnhancedDescribeApi } from './api/describe.api';
6
+ import { EnhancedExtractApi } from './api/extract.api';
7
+ import { EnhancedFaceDetectionApi } from './api/face-detection.api';
8
+ import { EnhancedFaceMatchApi } from './api/face-match.api';
9
+ import { EnhancedFramesApi } from './api/frame-extraction.api';
10
+ import { EnhancedSearchApi } from './api/search.api';
11
+ import { EnhancedSegmentationsApi } from './api/segmentations.api';
12
+ import { EnhancedSegmentsApi } from './api/segments.api';
13
+ import { EnhancedTranscribeApi } from './api/transcribe.api';
14
+ import { EnhancedChatApi } from './api/chat-completion.api';
15
+ import { EnhancedCollectionsApi } from './api/collections.api';
2967
16
  /**
2968
17
  * Main CloudGlue client class that provides access to all API functionality
2969
18
  * through enhanced, user-friendly interfaces
@@ -3033,6 +82,10 @@ export declare class CloudGlue {
3033
82
  * Provides methods for creating and managing webhooks
3034
83
  */
3035
84
  readonly webhooks: EnhancedWebhooksApi;
85
+ /**
86
+ * Tags API for managing tags
87
+ * Provides methods for creating and managing tags
88
+ */
89
+ readonly tags: EnhancedTagsApi;
3036
90
  constructor(config?: CloudGlueConfig);
3037
91
  }
3038
- export {};