@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.
@@ -25,7 +25,7 @@ type ShotConfig = Partial<{
25
25
  }>;
26
26
  type NarrativeConfig = Partial<{
27
27
  prompt: string;
28
- strategy: "direct" | "long" | "balanced";
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: "direct" | "long" | "balanced";
73
+ strategy: "comprehensive" | "balanced";
74
74
  number_of_chapters: number;
75
75
  }>, z.ZodTypeDef, Partial<{
76
76
  prompt: string;
77
- strategy: "direct" | "long" | "balanced";
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): 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 &#x27;balanced&#x27; strategy. The strategy field is ignored for YouTube URLs, and other strategies will be rejected with an error.";
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 &#x27;balanced&#x27; 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): 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 &#x27;balanced&#x27; strategy. The strategy field is ignored for YouTube URLs, and other strategies will be rejected with an error.";
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 &#x27;balanced&#x27; 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(["direct", "long", "balanced"]).default("balanced"),
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): Uses multimodal describe job for comprehensive analysis.
101
+ • **balanced** (default): Balanced analysis approach using multiple modalities.
102
102
  Recommended for most videos. Supports YouTube URLs.
103
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.
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 &#x27;balanced&#x27; strategy. The strategy field is ignored for YouTube URLs, and other strategies will be rejected with an error.`,
111
108
  requestFormat: "json",