@aviaryhq/cloudglue-js 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/Files.d.ts +18 -18
- package/dist/generated/Segments.d.ts +8 -2
- package/dist/generated/Segments.js +20 -3
- package/dist/generated/common.d.ts +4 -4
- package/dist/generated/common.js +1 -0
- package/dist/src/client.d.ts +11 -3
- package/dist/src/client.js +1 -1
- package/package.json +1 -1
|
@@ -278,7 +278,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
278
278
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
279
279
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
280
280
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
281
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
281
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
282
282
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
283
283
|
id: z.ZodString;
|
|
284
284
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -307,7 +307,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
307
307
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
308
308
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
309
309
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
310
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
310
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
311
311
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
312
312
|
id: z.ZodString;
|
|
313
313
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -336,7 +336,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
336
336
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
337
337
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
338
338
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
339
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
339
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
340
340
|
}, z.ZodTypeAny, "passthrough">>;
|
|
341
341
|
errors: [{
|
|
342
342
|
status: 400;
|
|
@@ -469,7 +469,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
469
469
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
470
470
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
471
471
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
472
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
472
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
473
473
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
474
474
|
id: z.ZodString;
|
|
475
475
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -498,7 +498,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
498
498
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
499
499
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
500
500
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
501
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
501
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
502
502
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
503
503
|
id: z.ZodString;
|
|
504
504
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -527,7 +527,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
527
527
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
528
528
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
529
529
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
530
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
530
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
531
531
|
}, z.ZodTypeAny, "passthrough">>;
|
|
532
532
|
errors: [{
|
|
533
533
|
status: 404;
|
|
@@ -645,7 +645,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
645
645
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
646
646
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
647
647
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
648
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
648
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
649
649
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
650
650
|
id: z.ZodString;
|
|
651
651
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -674,7 +674,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
674
674
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
675
675
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
676
676
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
677
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
677
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
678
678
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
679
679
|
id: z.ZodString;
|
|
680
680
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -703,7 +703,7 @@ export declare const FilesApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
703
703
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
704
704
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
705
705
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
706
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
706
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
707
707
|
}, z.ZodTypeAny, "passthrough">>;
|
|
708
708
|
errors: [{
|
|
709
709
|
status: 400;
|
|
@@ -2100,7 +2100,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2100
2100
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2101
2101
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2102
2102
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
2103
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
2103
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
2104
2104
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2105
2105
|
id: z.ZodString;
|
|
2106
2106
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -2129,7 +2129,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2129
2129
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2130
2130
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2131
2131
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
2132
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
2132
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
2133
2133
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2134
2134
|
id: z.ZodString;
|
|
2135
2135
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -2158,7 +2158,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2158
2158
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2159
2159
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2160
2160
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
2161
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
2161
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
2162
2162
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2163
2163
|
errors: [{
|
|
2164
2164
|
status: 400;
|
|
@@ -2291,7 +2291,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2291
2291
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2292
2292
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2293
2293
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
2294
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
2294
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
2295
2295
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2296
2296
|
id: z.ZodString;
|
|
2297
2297
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -2320,7 +2320,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2320
2320
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2321
2321
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2322
2322
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
2323
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
2323
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
2324
2324
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2325
2325
|
id: z.ZodString;
|
|
2326
2326
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -2349,7 +2349,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2349
2349
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2350
2350
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2351
2351
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
2352
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
2352
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
2353
2353
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2354
2354
|
errors: [{
|
|
2355
2355
|
status: 404;
|
|
@@ -2467,7 +2467,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2467
2467
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2468
2468
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2469
2469
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
2470
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
2470
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
2471
2471
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2472
2472
|
id: z.ZodString;
|
|
2473
2473
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -2496,7 +2496,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2496
2496
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2497
2497
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2498
2498
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
2499
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
2499
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
2500
2500
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2501
2501
|
id: z.ZodString;
|
|
2502
2502
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -2525,7 +2525,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
2525
2525
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2526
2526
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2527
2527
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
2528
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
2528
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
2529
2529
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2530
2530
|
errors: [{
|
|
2531
2531
|
status: 400;
|
|
@@ -25,6 +25,8 @@ type ShotConfig = Partial<{
|
|
|
25
25
|
}>;
|
|
26
26
|
type NarrativeConfig = Partial<{
|
|
27
27
|
prompt: string;
|
|
28
|
+
strategy: "direct" | "long" | "balanced";
|
|
29
|
+
number_of_chapters: number;
|
|
28
30
|
}>;
|
|
29
31
|
type Segment = {
|
|
30
32
|
start_time: number;
|
|
@@ -68,8 +70,12 @@ export declare const schemas: {
|
|
|
68
70
|
}>>;
|
|
69
71
|
NarrativeConfig: z.ZodType<Partial<{
|
|
70
72
|
prompt: string;
|
|
73
|
+
strategy: "direct" | "long" | "balanced";
|
|
74
|
+
number_of_chapters: number;
|
|
71
75
|
}>, z.ZodTypeDef, Partial<{
|
|
72
76
|
prompt: string;
|
|
77
|
+
strategy: "direct" | "long" | "balanced";
|
|
78
|
+
number_of_chapters: number;
|
|
73
79
|
}>>;
|
|
74
80
|
NewSegments: z.ZodType<NewSegments, z.ZodTypeDef, NewSegments>;
|
|
75
81
|
Segment: z.ZodType<Segment, z.ZodTypeDef, Segment>;
|
|
@@ -81,7 +87,7 @@ export declare const SegmentsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
81
87
|
method: "post";
|
|
82
88
|
path: "/segments";
|
|
83
89
|
alias: "createSegments";
|
|
84
|
-
description: "Create intelligent video segments based on shot detection or narrative analysis.\n\n**⚠️ Note: YouTube URLs are supported for narrative-based segmentation only.** Shot-based segmentation requires direct video file access. Use Cloudglue Files, HTTP URLs, or files from data connectors for shot-based segmentation.";
|
|
90
|
+
description: "Create intelligent video segments based on shot detection or narrative analysis.\n\n**⚠️ Note: YouTube URLs are supported for narrative-based segmentation only.** Shot-based segmentation requires direct video file access. Use Cloudglue Files, HTTP URLs, or files from data connectors for shot-based segmentation.\n\n**Narrative Segmentation Strategies:**\n\n• **balanced** (default): Uses multimodal describe job for comprehensive analysis.\n Recommended for most videos. Supports YouTube URLs.\n\n• **direct**: Directly analyzes the full video URL with AI.\n Ideal for videos less than 10 minutes long. Provides finer grain control and expressibility with direct integration of your prompt with the Video AI model.\n\n• **long**: Optimized for longer videos beyond 10 minutes.\n Provides finer grain control and expressibility with direct integration of your prompt with the Video AI model.\n\n**YouTube URLs**: Automatically use the 'balanced' strategy. The strategy field is ignored for YouTube URLs, and other strategies will be rejected with an error.";
|
|
85
91
|
requestFormat: "json";
|
|
86
92
|
parameters: [{
|
|
87
93
|
name: "body";
|
|
@@ -265,7 +271,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
265
271
|
method: "post";
|
|
266
272
|
path: "/segments";
|
|
267
273
|
alias: "createSegments";
|
|
268
|
-
description: "Create intelligent video segments based on shot detection or narrative analysis.\n\n**⚠️ Note: YouTube URLs are supported for narrative-based segmentation only.** Shot-based segmentation requires direct video file access. Use Cloudglue Files, HTTP URLs, or files from data connectors for shot-based segmentation.";
|
|
274
|
+
description: "Create intelligent video segments based on shot detection or narrative analysis.\n\n**⚠️ Note: YouTube URLs are supported for narrative-based segmentation only.** Shot-based segmentation requires direct video file access. Use Cloudglue Files, HTTP URLs, or files from data connectors for shot-based segmentation.\n\n**Narrative Segmentation Strategies:**\n\n• **balanced** (default): Uses multimodal describe job for comprehensive analysis.\n Recommended for most videos. Supports YouTube URLs.\n\n• **direct**: Directly analyzes the full video URL with AI.\n Ideal for videos less than 10 minutes long. Provides finer grain control and expressibility with direct integration of your prompt with the Video AI model.\n\n• **long**: Optimized for longer videos beyond 10 minutes.\n Provides finer grain control and expressibility with direct integration of your prompt with the Video AI model.\n\n**YouTube URLs**: Automatically use the 'balanced' strategy. The strategy field is ignored for YouTube URLs, and other strategies will be rejected with an error.";
|
|
269
275
|
requestFormat: "json";
|
|
270
276
|
parameters: [{
|
|
271
277
|
name: "body";
|
|
@@ -14,7 +14,11 @@ const ShotConfig = zod_1.z
|
|
|
14
14
|
.strict()
|
|
15
15
|
.passthrough();
|
|
16
16
|
const NarrativeConfig = zod_1.z
|
|
17
|
-
.object({
|
|
17
|
+
.object({
|
|
18
|
+
prompt: zod_1.z.string(),
|
|
19
|
+
strategy: zod_1.z.enum(["direct", "long", "balanced"]).default("balanced"),
|
|
20
|
+
number_of_chapters: zod_1.z.number().int().gte(1),
|
|
21
|
+
})
|
|
18
22
|
.partial()
|
|
19
23
|
.strict()
|
|
20
24
|
.passthrough();
|
|
@@ -90,7 +94,20 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
90
94
|
alias: "createSegments",
|
|
91
95
|
description: `Create intelligent video segments based on shot detection or narrative analysis.
|
|
92
96
|
|
|
93
|
-
**⚠️ Note: YouTube URLs are supported for narrative-based segmentation only.** Shot-based segmentation requires direct video file access. Use Cloudglue Files, HTTP URLs, or files from data connectors for shot-based segmentation
|
|
97
|
+
**⚠️ Note: YouTube URLs are supported for narrative-based segmentation only.** Shot-based segmentation requires direct video file access. Use Cloudglue Files, HTTP URLs, or files from data connectors for shot-based segmentation.
|
|
98
|
+
|
|
99
|
+
**Narrative Segmentation Strategies:**
|
|
100
|
+
|
|
101
|
+
• **balanced** (default): Uses multimodal describe job for comprehensive analysis.
|
|
102
|
+
Recommended for most videos. Supports YouTube URLs.
|
|
103
|
+
|
|
104
|
+
• **direct**: Directly analyzes the full video URL with AI.
|
|
105
|
+
Ideal for videos less than 10 minutes long. Provides finer grain control and expressibility with direct integration of your prompt with the Video AI model.
|
|
106
|
+
|
|
107
|
+
• **long**: Optimized for longer videos beyond 10 minutes.
|
|
108
|
+
Provides finer grain control and expressibility with direct integration of your prompt with the Video AI model.
|
|
109
|
+
|
|
110
|
+
**YouTube URLs**: Automatically use the 'balanced' strategy. The strategy field is ignored for YouTube URLs, and other strategies will be rejected with an error.`,
|
|
94
111
|
requestFormat: "json",
|
|
95
112
|
parameters: [
|
|
96
113
|
{
|
|
@@ -104,7 +121,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
104
121
|
errors: [
|
|
105
122
|
{
|
|
106
123
|
status: 400,
|
|
107
|
-
description: `Invalid request, missing required parameters,
|
|
124
|
+
description: `Invalid request, missing required parameters, unsupported URL type (e.g., YouTube URLs with shot-based segmentation), or unsupported strategy for YouTube URLs (YouTube URLs only support 'balanced' strategy)`,
|
|
108
125
|
schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
|
|
109
126
|
},
|
|
110
127
|
{
|
|
@@ -56,7 +56,7 @@ export type File = {
|
|
|
56
56
|
has_audio: boolean | null;
|
|
57
57
|
}> | undefined;
|
|
58
58
|
thumbnail_url?: string | undefined;
|
|
59
|
-
source?: ("video" | "youtube" | "s3" | "dropbox" | "http" | "upload" | "google-drive" | "zoom") | undefined;
|
|
59
|
+
source?: ("video" | "youtube" | "s3" | "dropbox" | "http" | "upload" | "google-drive" | "zoom" | "gong") | undefined;
|
|
60
60
|
};
|
|
61
61
|
export type Segmentation = {
|
|
62
62
|
segmentation_id: string;
|
|
@@ -564,7 +564,7 @@ export declare const File: z.ZodObject<{
|
|
|
564
564
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
565
565
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
566
566
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
567
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
567
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
568
568
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
569
569
|
id: z.ZodString;
|
|
570
570
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -593,7 +593,7 @@ export declare const File: z.ZodObject<{
|
|
|
593
593
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
594
594
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
595
595
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
596
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
596
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
597
597
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
598
598
|
id: z.ZodString;
|
|
599
599
|
status: z.ZodEnum<["pending", "processing", "completed", "failed", "not_applicable"]>;
|
|
@@ -622,7 +622,7 @@ export declare const File: z.ZodObject<{
|
|
|
622
622
|
has_audio: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
623
623
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
624
624
|
thumbnail_url: z.ZodOptional<z.ZodString>;
|
|
625
|
-
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
625
|
+
source: z.ZodOptional<z.ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
626
626
|
}, z.ZodTypeAny, "passthrough">>;
|
|
627
627
|
export declare const Segmentation: z.ZodObject<{
|
|
628
628
|
segmentation_id: z.ZodString;
|
package/dist/generated/common.js
CHANGED
package/dist/src/client.d.ts
CHANGED
|
@@ -228,7 +228,7 @@ declare class EnhancedFilesApi {
|
|
|
228
228
|
has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
|
|
229
229
|
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
230
230
|
thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
231
|
-
source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
231
|
+
source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
232
232
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
233
233
|
deleteFile(fileId: string): Promise<import("zod").objectOutputType<{
|
|
234
234
|
id: import("zod").ZodString;
|
|
@@ -262,7 +262,7 @@ declare class EnhancedFilesApi {
|
|
|
262
262
|
has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
|
|
263
263
|
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
264
264
|
thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
265
|
-
source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
265
|
+
source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
266
266
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
267
267
|
listFileSegmentations(fileId: string, params?: {
|
|
268
268
|
limit?: number;
|
|
@@ -642,7 +642,7 @@ declare class EnhancedFilesApi {
|
|
|
642
642
|
has_audio: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
|
|
643
643
|
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
644
644
|
thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
645
|
-
source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom"]>>;
|
|
645
|
+
source: import("zod").ZodOptional<import("zod").ZodEnum<["video", "youtube", "s3", "dropbox", "http", "upload", "google-drive", "zoom", "gong"]>>;
|
|
646
646
|
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
647
647
|
}
|
|
648
648
|
declare class EnhancedCollectionsApi {
|
|
@@ -2057,6 +2057,8 @@ declare class EnhancedSegmentsApi {
|
|
|
2057
2057
|
}> | undefined;
|
|
2058
2058
|
narrative_config?: Partial<{
|
|
2059
2059
|
prompt: string;
|
|
2060
|
+
strategy: "direct" | "long" | "balanced";
|
|
2061
|
+
number_of_chapters: number;
|
|
2060
2062
|
}> | undefined;
|
|
2061
2063
|
}>;
|
|
2062
2064
|
total: number;
|
|
@@ -2077,6 +2079,8 @@ declare class EnhancedSegmentsApi {
|
|
|
2077
2079
|
}> | undefined;
|
|
2078
2080
|
narrative_config?: Partial<{
|
|
2079
2081
|
prompt: string;
|
|
2082
|
+
strategy: "direct" | "long" | "balanced";
|
|
2083
|
+
number_of_chapters: number;
|
|
2080
2084
|
}> | undefined;
|
|
2081
2085
|
total_segments?: number | undefined;
|
|
2082
2086
|
segments?: Array<{
|
|
@@ -2105,6 +2109,8 @@ declare class EnhancedSegmentsApi {
|
|
|
2105
2109
|
}> | undefined;
|
|
2106
2110
|
narrative_config?: Partial<{
|
|
2107
2111
|
prompt: string;
|
|
2112
|
+
strategy: "direct" | "long" | "balanced";
|
|
2113
|
+
number_of_chapters: number;
|
|
2108
2114
|
}> | undefined;
|
|
2109
2115
|
total_segments?: number | undefined;
|
|
2110
2116
|
segments?: Array<{
|
|
@@ -2131,6 +2137,8 @@ declare class EnhancedSegmentsApi {
|
|
|
2131
2137
|
}> | undefined;
|
|
2132
2138
|
narrative_config?: Partial<{
|
|
2133
2139
|
prompt: string;
|
|
2140
|
+
strategy: "direct" | "long" | "balanced";
|
|
2141
|
+
number_of_chapters: number;
|
|
2134
2142
|
}> | undefined;
|
|
2135
2143
|
total_segments?: number | undefined;
|
|
2136
2144
|
segments?: Array<{
|
package/dist/src/client.js
CHANGED