ugcinc 2.99.4 → 2.99.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +15 -10
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -825,7 +825,7 @@ export interface NodeControlConfig {
825
825
  */
826
826
  isInitializer?: boolean;
827
827
  }
828
- export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'social-audio' | 'text' | 'media' | 'image-editor' | 'video-editor' | 'image-generation' | 'llm' | 'output' | 'manual-trigger' | 'recurrence' | 'workflow' | 'account' | 'post-video' | 'post-slideshow' | 'save-to-media';
828
+ export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'social-audio' | 'text' | 'media' | 'image-editor' | 'video-editor' | 'image-generation' | 'video-generation' | 'llm' | 'output' | 'manual-trigger' | 'recurrence' | 'workflow' | 'account' | 'post-video' | 'post-slideshow' | 'save-to-media' | 'deduplicate';
829
829
  export interface OutputSchemaProperty {
830
830
  type: 'string' | 'number' | 'boolean' | 'array' | 'object';
831
831
  items?: 'string' | 'number' | 'boolean';
@@ -1092,20 +1092,25 @@ export interface DeduplicateNodeConfig {
1092
1092
  /** Deduplication settings - preset level or custom config */
1093
1093
  deduplication: DeduplicationInput;
1094
1094
  }
1095
+ /**
1096
+ * Video Generation Model IDs
1097
+ * Text-to-video models take just a prompt, image-to-video models require an image input
1098
+ */
1099
+ export type VideoGenerationTextToVideoModel = 'fal-ai/veo3.1' | 'fal-ai/veo3' | 'fal-ai/veo3/fast' | 'fal-ai/kling-video/v2.6/pro/text-to-video' | 'fal-ai/kling-video/v2.5/pro/text-to-video' | 'fal-ai/luma-dream-machine/ray-2' | 'fal-ai/luma-dream-machine/ray-2-flash' | 'fal-ai/minimax/hailuo-2.3/pro/text-to-video' | 'wan/v2.6/text-to-video' | 'fal-ai/sora-2/text-to-video';
1100
+ export type VideoGenerationImageToVideoModel = 'fal-ai/veo3.1/image-to-video' | 'fal-ai/veo3/image-to-video' | 'fal-ai/kling-video/v2.6/pro/image-to-video' | 'fal-ai/kling-video/v2.5/pro/image-to-video' | 'fal-ai/luma-dream-machine/ray-2/image-to-video' | 'fal-ai/luma-dream-machine/ray-2-flash/image-to-video' | 'fal-ai/minimax/hailuo-2.3/pro/image-to-video' | 'wan/v2.6/image-to-video' | 'fal-ai/sora-2/image-to-video/pro';
1101
+ export type VideoGenerationModel = VideoGenerationTextToVideoModel | VideoGenerationImageToVideoModel;
1095
1102
  /**
1096
1103
  * Video Generation node configuration - AI video generation
1097
1104
  */
1098
1105
  export interface VideoGenerationNodeConfig {
1099
- /** AI model provider */
1100
- provider: 'fal';
1101
- /** Model to use (e.g., 'kling', 'runway') */
1102
- model: string;
1103
- /** Generation mode: text-to-video or image-to-video */
1104
- mode: 'text' | 'image';
1105
- /** Video duration in seconds */
1106
- duration?: number;
1107
- /** Aspect ratio (e.g., '16:9', '9:16') */
1106
+ /** Selected model ID */
1107
+ model: VideoGenerationModel;
1108
+ /** Custom fal.ai API key (optional - uses platform key if not provided) */
1109
+ apiKey?: string;
1110
+ /** Video aspect ratio (e.g., "16:9", "9:16", "1:1") */
1108
1111
  aspectRatio?: string;
1112
+ /** Video duration in seconds (model-dependent) */
1113
+ duration?: number;
1109
1114
  }
1110
1115
  export interface CanvasState {
1111
1116
  zoom: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.99.4",
3
+ "version": "2.99.5",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",