@aviaryhq/cloudglue-js 0.4.3 → 0.4.5
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 +945 -27
- package/dist/generated/Search.d.ts +39 -2
- package/dist/generated/Search.js +35 -3
- package/dist/generated/Segmentations.d.ts +630 -18
- package/dist/generated/Segments.d.ts +5 -5
- package/dist/generated/Segments.js +4 -7
- package/dist/generated/common.d.ts +777 -22
- package/dist/generated/common.js +13 -2
- package/dist/src/client.d.ts +274 -11
- package/dist/src/client.js +5 -2
- package/dist/src/types.d.ts +8 -0
- package/package.json +1 -1
|
@@ -25,7 +25,7 @@ type ShotConfig = Partial<{
|
|
|
25
25
|
}>;
|
|
26
26
|
type NarrativeConfig = Partial<{
|
|
27
27
|
prompt: string;
|
|
28
|
-
strategy: "
|
|
28
|
+
strategy: "comprehensive" | "balanced";
|
|
29
29
|
number_of_chapters: number;
|
|
30
30
|
}>;
|
|
31
31
|
type Segment = {
|
|
@@ -70,11 +70,11 @@ export declare const schemas: {
|
|
|
70
70
|
}>>;
|
|
71
71
|
NarrativeConfig: z.ZodType<Partial<{
|
|
72
72
|
prompt: string;
|
|
73
|
-
strategy: "
|
|
73
|
+
strategy: "comprehensive" | "balanced";
|
|
74
74
|
number_of_chapters: number;
|
|
75
75
|
}>, z.ZodTypeDef, Partial<{
|
|
76
76
|
prompt: string;
|
|
77
|
-
strategy: "
|
|
77
|
+
strategy: "comprehensive" | "balanced";
|
|
78
78
|
number_of_chapters: number;
|
|
79
79
|
}>>;
|
|
80
80
|
NewSegments: z.ZodType<NewSegments, z.ZodTypeDef, NewSegments>;
|
|
@@ -87,7 +87,7 @@ export declare const SegmentsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
87
87
|
method: "post";
|
|
88
88
|
path: "/segments";
|
|
89
89
|
alias: "createSegments";
|
|
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):
|
|
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): Balanced analysis approach using multiple modalities.\n Recommended for most videos. Supports YouTube URLs.\n\n• **comprehensive**: Uses a VLM to deeply analyze logical segments of video.\n Only available for non-YouTube videos.\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.";
|
|
91
91
|
requestFormat: "json";
|
|
92
92
|
parameters: [{
|
|
93
93
|
name: "body";
|
|
@@ -271,7 +271,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
271
271
|
method: "post";
|
|
272
272
|
path: "/segments";
|
|
273
273
|
alias: "createSegments";
|
|
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):
|
|
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): Balanced analysis approach using multiple modalities.\n Recommended for most videos. Supports YouTube URLs.\n\n• **comprehensive**: Uses a VLM to deeply analyze logical segments of video.\n Only available for non-YouTube videos.\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.";
|
|
275
275
|
requestFormat: "json";
|
|
276
276
|
parameters: [{
|
|
277
277
|
name: "body";
|
|
@@ -16,7 +16,7 @@ const ShotConfig = zod_1.z
|
|
|
16
16
|
const NarrativeConfig = zod_1.z
|
|
17
17
|
.object({
|
|
18
18
|
prompt: zod_1.z.string(),
|
|
19
|
-
strategy: zod_1.z.enum(["
|
|
19
|
+
strategy: zod_1.z.enum(["comprehensive", "balanced"]).default("balanced"),
|
|
20
20
|
number_of_chapters: zod_1.z.number().int().gte(1),
|
|
21
21
|
})
|
|
22
22
|
.partial()
|
|
@@ -98,14 +98,11 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
98
98
|
|
|
99
99
|
**Narrative Segmentation Strategies:**
|
|
100
100
|
|
|
101
|
-
• **balanced** (default):
|
|
101
|
+
• **balanced** (default): Balanced analysis approach using multiple modalities.
|
|
102
102
|
Recommended for most videos. Supports YouTube URLs.
|
|
103
103
|
|
|
104
|
-
• **
|
|
105
|
-
|
|
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.
|
|
104
|
+
• **comprehensive**: Uses a VLM to deeply analyze logical segments of video.
|
|
105
|
+
Only available for non-YouTube videos.
|
|
109
106
|
|
|
110
107
|
**YouTube URLs**: Automatically use the 'balanced' strategy. The strategy field is ignored for YouTube URLs, and other strategies will be rejected with an error.`,
|
|
111
108
|
requestFormat: "json",
|