UNPKG

cerevox

Version:

TypeScript SDK for browser automation and secure command execution in highly available and scalable micro computer environments

304 lines (303 loc) 10.3 kB
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "title": "Storyboard Schema", "description": "Schema for video storyboard configuration", "properties": { "audience": { "type": "string", "description": "Target audience description" }, "creative_guideline": { "type": "string", "description": "Creative style and visual guidelines" }, "orientation": { "type": "string", "enum": ["portrait", "landscape"], "description": "Video orientation" }, "main_characters": { "type": "array", "description": "Main characters in the story", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Character name" }, "gender": { "type": "string", "description": "Character gender" }, "age": { "type": "string", "description": "Character age" }, "appearance": { "type": "string", "description": "Physical appearance description" }, "clothing": { "type": "string", "description": "Clothing and costume description" }, "personality": { "type": "string", "description": "Personality traits and characteristics" }, "detail_features": { "type": "string", "description": "Detailed features and traits of the character" }, "reference_image": { "type": "string", "description": "Local image file path for character turnaround reference" } }, "required": [ "name", "gender", "age", "appearance", "clothing", "personality" ], "additionalProperties": false } }, "reference_objects": { "type": "array", "description": "Reference objects for image generation, such as characters, props, etc.", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Object name" }, "image": { "type": "string", "description": "Image file name" }, "type": { "type": "string", "enum": ["object", "background"], "description": "Object type: object for props/items, background for environment elements" }, "description": { "type": "string", "description": "Optional detailed description of the reference object" } }, "required": ["name", "image", "type"], "additionalProperties": false } }, "scenes": { "type": "array", "description": "Array of scene configurations", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^scene_\\d+$", "description": "Unique scene identifier" }, "script": { "type": "string", "description": "Scene dialogue or narration" }, "script_translation": { "type": "string", "description": "Translation of the scene dialogue or narration for subtitle purposes" }, "dialog": { "type": "array", "description": "Multi-character dialogue for the scene", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Character name speaking the dialogue" }, "script": { "type": "string", "description": "The dialogue text spoken by the character" }, "voice_id": { "type": "string", "description": "Voice ID for text-to-speech for this character" }, "inMs": { "type": "number", "description": "Start time of the dialogue in milliseconds" } }, "required": ["name", "script", "voice_id"], "additionalProperties": false } }, "voice_id": { "type": "string", "description": "Voice ID for text-to-speech" }, "stage_atmosphere": { "type": "object", "properties": { "style": { "type": "string", "description": "Visual style description" }, "characters": { "type": "array", "description": "Characters present in this scene", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "Character name" }, "gender": { "type": "string", "description": "Character gender" }, "age": { "type": "string", "description": "Character age" }, "features": { "type": "string", "description": "Character features in this scene" }, "clothing": { "type": "string", "description": "Character clothing in this scene" }, "apply_reference_image": { "type": "boolean", "default": false, "description": "Whether to apply reference image for this character" } }, "required": ["name", "gender", "age", "features", "clothing"], "additionalProperties": false } }, "stage_environment": { "type": "string", "description": "Environment and setting description" }, "lighting": { "type": "string", "description": "Lighting setup and mood" }, "mood": { "type": "string", "description": "Emotional mood and atmosphere" }, "camera": { "type": "string", "description": "Camera movement and framing" } }, "required": [ "style", "stage_environment", "lighting", "mood", "camera" ], "additionalProperties": false }, "highlight_frame": { "type": "string", "description": "当前场景的高光帧状态描述,视频运动的最终目标状态" }, "onscreen_movement": { "type": "string", "description": "当前场景中的运动,视频通常由场景运动最终达到 highlight_frame 状态" }, "start_frame": { "type": "string", "description": "Detailed description of the starting frame" }, "end_frame": { "type": "string", "description": "Detailed description of the ending frame (optional)" }, "video_type": { "type": "string", "enum": ["start_frame", "start_end_frame", "references"], "description": "Video generation type: start_frame for single frame, start_end_frame for frame-to-frame, references for reference-based generation" }, "video_prompt": { "type": "string", "description": "Video generation prompt describing motion and transitions" }, "is_continuous": { "type": "boolean", "description": "Whether this scene is continuous with the next scene, requiring the next scene's start_frame as this scene's end_frame" }, "references": { "type": "array", "description": "Reference images to be used in video generation. For start_frame/start_end_frame video types, these serve as start_frame references. For references video type, these serve as video_prompt references. Names must match main_characters or reference_objects.", "items": { "type": "string", "description": "Name of character from main_characters or object/background from reference_objects" } }, "use_video_model": { "type": "string", "description": "Suggested video model to use for this scene generation" }, "scene_line_art_prompt": { "type": "string", "description": "Prompt for generating line art sketch of this scene" }, "scene_line_art_file": { "type": "string", "description": "File path to the generated line art sketch for this scene" }, "audio_mode": { "type": "string", "description": "音频模式", "enum": ["vo_sync", "dialog", "silent"] }, "duration": { "type": "number", "description": "场景时长,单位为秒" }, "lipsync": { "type": "boolean", "description": "是否进行唇形同步" } }, "required": [ "id", "script", "stage_atmosphere", "highlight_frame", "onscreen_movement", "video_prompt", "audio_mode", "duration" ], "additionalProperties": false }, "minItems": 1 } }, "required": [ "audience", "narrations", "creative_guideline", "orientation", "scenes" ], "additionalProperties": false }