{ "openapi": "3.1.0", "info": { "title": "CMVR Visual", "version": "0.1.0" }, "paths": { "/api/editors/{draft_id}/dialogue/fork-cuts": { "post": { "tags": [ "editors" ], "summary": "Fork Speaker Cuts", "operationId": "fork_speaker_cuts_api_editors__draft_id__dialogue_fork_cuts_post", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForkSpeakerCuts" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}/runs/{run_id}/turns/{shot_id}/review": { "post": { "tags": [ "editors" ], "summary": "Review Turns", "operationId": "review_turns_api_editors__draft_id__runs__run_id__turns__shot_id__review_post", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } }, { "name": "run_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Run Id" } }, { "name": "shot_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Shot Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReviewTurns" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}/captions/preview": { "post": { "tags": [ "editors" ], "summary": "Preview Captions", "operationId": "preview_captions_api_editors__draft_id__captions_preview_post", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreviewCaptions" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}/runs/{run_id}/captions.srt": { "get": { "tags": [ "editors" ], "summary": "Export Captions", "operationId": "export_captions_api_editors__draft_id__runs__run_id__captions_srt_get", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } }, { "name": "run_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Run Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "text/plain": { "schema": { "type": "string" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}/dialogue/fork-prepared": { "post": { "tags": [ "editors" ], "summary": "Fork Dialogue Prepared", "operationId": "fork_dialogue_prepared_api_editors__draft_id__dialogue_fork_prepared_post", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForkPrepared" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}/dialogue/enable": { "post": { "tags": [ "editors" ], "summary": "Enable Dialogue", "operationId": "enable_dialogue_api_editors__draft_id__dialogue_enable_post", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnableDialogue" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}": { "get": { "tags": [ "editors" ], "summary": "Get", "operationId": "get_api_editors__draft_id__get", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}/save": { "post": { "tags": [ "editors" ], "summary": "Save", "operationId": "save_api_editors__draft_id__save_post", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SaveEditor" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}/from-run": { "post": { "tags": [ "editors" ], "summary": "Restore", "operationId": "restore_api_editors__draft_id__from_run_post", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestoreEditor" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}/plan": { "post": { "tags": [ "editors" ], "summary": "Plan", "operationId": "plan_api_editors__draft_id__plan_post", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanEditor" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}/runs": { "post": { "tags": [ "editors" ], "summary": "Start", "operationId": "start_api_editors__draft_id__runs_post", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StartEditor" } } } }, "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}/apply": { "post": { "tags": [ "editors" ], "summary": "Apply", "operationId": "apply_api_editors__draft_id__apply_post", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestoreEditor" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/editors/{draft_id}/mode": { "post": { "tags": [ "editors" ], "summary": "Change Mode", "operationId": "change_mode_api_editors__draft_id__mode_post", "parameters": [ { "name": "draft_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Draft Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EditorMode" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/folders": { "get": { "tags": [ "folders" ], "summary": "List Folders", "operationId": "list_folders_api_folders_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } }, "post": { "tags": [ "folders" ], "summary": "Create", "operationId": "create_api_folders_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderCreate" } } }, "required": true }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/folders/assign": { "post": { "tags": [ "folders" ], "summary": "Assign", "operationId": "assign_api_folders_assign_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderAssign" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/folders/{folder_id}": { "patch": { "tags": [ "folders" ], "summary": "Patch", "operationId": "patch_api_folders__folder_id__patch", "parameters": [ { "name": "folder_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Folder Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderPatch" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "folders" ], "summary": "Remove", "operationId": "remove_api_folders__folder_id__delete", "parameters": [ { "name": "folder_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Folder Id" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/login": { "post": { "tags": [ "auth" ], "summary": "Login", "operationId": "login_api_auth_login_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Login" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/me": { "get": { "tags": [ "auth" ], "summary": "Me", "operationId": "me_api_auth_me_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/auth/logout": { "post": { "tags": [ "auth" ], "summary": "Logout", "operationId": "logout_api_auth_logout_post", "responses": { "204": { "description": "Successful Response" } } } }, "/api/auth/users": { "post": { "tags": [ "auth" ], "summary": "Create User", "operationId": "create_user_api_auth_users_post", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateUser" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "auth" ], "summary": "List Users", "operationId": "list_users_api_auth_users_get", "parameters": [ { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "default": 24, "title": "Page Size" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/users/{user_id}": { "patch": { "tags": [ "auth" ], "summary": "Patch User", "operationId": "patch_user_api_auth_users__user_id__patch", "parameters": [ { "name": "user_id", "in": "path", "required": true, "schema": { "type": "string", "title": "User Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserPatch" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "auth" ], "summary": "Delete User", "operationId": "delete_user_api_auth_users__user_id__delete", "parameters": [ { "name": "user_id", "in": "path", "required": true, "schema": { "type": "string", "title": "User Id" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/password": { "post": { "tags": [ "auth" ], "summary": "Change Password", "operationId": "change_password_api_auth_password_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PasswordChange" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/username": { "post": { "tags": [ "auth" ], "summary": "Change Username", "operationId": "change_username_api_auth_username_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UsernameChange" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/assets": { "post": { "tags": [ "assets" ], "summary": "Upload", "operationId": "upload_api_assets_post", "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Body_upload_api_assets_post" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "assets" ], "summary": "List Assets", "operationId": "list_assets_api_assets_get", "parameters": [ { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "default": 24, "title": "Page Size" } }, { "name": "folder_id", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Folder Id" } }, { "name": "kind", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Kind" } }, { "name": "q", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Q" } }, { "name": "tag", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Tag" } }, { "name": "favorite", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Favorite" } }, { "name": "origin", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Origin" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/assets/{asset_id}": { "get": { "tags": [ "assets" ], "summary": "Get Asset", "operationId": "get_asset_api_assets__asset_id__get", "parameters": [ { "name": "asset_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Asset Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "patch": { "tags": [ "assets" ], "summary": "Patch Asset", "operationId": "patch_asset_api_assets__asset_id__patch", "parameters": [ { "name": "asset_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Asset Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssetPatch" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "assets" ], "summary": "Delete Asset", "operationId": "delete_asset_api_assets__asset_id__delete", "parameters": [ { "name": "asset_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Asset Id" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/assets/{asset_id}/content": { "get": { "tags": [ "assets" ], "summary": "Content", "operationId": "content_api_assets__asset_id__content_get", "parameters": [ { "name": "asset_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Asset Id" } }, { "name": "download", "in": "query", "required": false, "schema": { "type": "boolean", "default": false, "title": "Download" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/assets/{asset_id}/thumbnail": { "get": { "tags": [ "assets" ], "summary": "Thumbnail", "operationId": "thumbnail_api_assets__asset_id__thumbnail_get", "parameters": [ { "name": "asset_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Asset Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/shared-assets": { "get": { "tags": [ "shared-assets" ], "summary": "List Shared Assets", "operationId": "list_shared_assets_api_shared_assets_get", "parameters": [ { "name": "q", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Q" } }, { "name": "kind", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Kind" } }, { "name": "tag", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Tag" } }, { "name": "mine", "in": "query", "required": false, "schema": { "type": "boolean", "default": false, "title": "Mine" } }, { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "default": 24, "title": "Page Size" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/shared-assets/{shared_id}": { "get": { "tags": [ "shared-assets" ], "summary": "Get Shared Asset", "operationId": "get_shared_asset_api_shared_assets__shared_id__get", "parameters": [ { "name": "shared_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Shared Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "shared-assets" ], "summary": "Withdraw Shared Asset", "operationId": "withdraw_shared_asset_api_shared_assets__shared_id__delete", "parameters": [ { "name": "shared_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Shared Id" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/shared-assets/{shared_id}/content": { "get": { "tags": [ "shared-assets" ], "summary": "Shared Content", "operationId": "shared_content_api_shared_assets__shared_id__content_get", "parameters": [ { "name": "shared_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Shared Id" } }, { "name": "download", "in": "query", "required": false, "schema": { "type": "boolean", "default": false, "title": "Download" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/shared-assets/{shared_id}/thumbnail": { "get": { "tags": [ "shared-assets" ], "summary": "Shared Thumbnail", "operationId": "shared_thumbnail_api_shared_assets__shared_id__thumbnail_get", "parameters": [ { "name": "shared_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Shared Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/shared-assets/{shared_id}/import": { "post": { "tags": [ "shared-assets" ], "summary": "Import Shared Asset", "operationId": "import_shared_asset_api_shared_assets__shared_id__import_post", "parameters": [ { "name": "shared_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Shared Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "content": { "application/json": { "schema": { "anyOf": [ { "$ref": "#/components/schemas/SharedImport" }, { "type": "null" } ], "title": "Body" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/assets/{asset_id}/publish": { "post": { "tags": [ "shared-assets" ], "summary": "Publish Asset", "operationId": "publish_asset_api_assets__asset_id__publish_post", "parameters": [ { "name": "asset_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Asset Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "content": { "application/json": { "schema": { "anyOf": [ { "$ref": "#/components/schemas/EmptyPayload" }, { "type": "null" } ], "title": "Body" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/jobs": { "post": { "tags": [ "jobs" ], "summary": "Submit", "operationId": "submit_api_jobs_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Submit" } } } }, "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "jobs" ], "summary": "List Jobs", "operationId": "list_jobs_api_jobs_get", "parameters": [ { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "default": 24, "title": "Page Size" } }, { "name": "folder_id", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Folder Id" } }, { "name": "task_type", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Task Type" } }, { "name": "state", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "State" } }, { "name": "root_only", "in": "query", "required": false, "schema": { "type": "boolean", "default": false, "title": "Root Only" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/jobs/{job_id}": { "get": { "tags": [ "jobs" ], "summary": "Get Job", "operationId": "get_job_api_jobs__job_id__get", "parameters": [ { "name": "job_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Job Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "jobs" ], "summary": "Delete Job", "operationId": "delete_job_api_jobs__job_id__delete", "parameters": [ { "name": "job_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Job Id" } }, { "name": "if-match", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "If-Match" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/jobs/{job_id}/cancel": { "post": { "tags": [ "jobs" ], "summary": "Cancel", "operationId": "cancel_api_jobs__job_id__cancel_post", "parameters": [ { "name": "job_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Job Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/jobs/{job_id}/retry": { "post": { "tags": [ "jobs" ], "summary": "Retry", "operationId": "retry_api_jobs__job_id__retry_post", "parameters": [ { "name": "job_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Job Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/events": { "get": { "tags": [ "events" ], "summary": "Events", "operationId": "events_api_events_get", "parameters": [ { "name": "after", "in": "query", "required": false, "schema": { "type": "integer", "default": 0, "title": "After" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/submissions/{key}": { "get": { "tags": [ "submissions" ], "summary": "Recover", "operationId": "recover_api_submissions__key__get", "parameters": [ { "name": "key", "in": "path", "required": true, "schema": { "type": "string", "title": "Key" } }, { "name": "operation", "in": "query", "required": true, "schema": { "type": "string", "title": "Operation" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/tokens": { "get": { "tags": [ "tokens" ], "summary": "List Tokens", "operationId": "list_tokens_api_auth_tokens_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } }, "post": { "tags": [ "tokens" ], "summary": "Create Token", "operationId": "create_token_api_auth_tokens_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenInput" } } }, "required": true }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/tokens/{token_id}": { "delete": { "tags": [ "tokens" ], "summary": "Revoke", "operationId": "revoke_api_auth_tokens__token_id__delete", "parameters": [ { "name": "token_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Token Id" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/workflows": { "post": { "tags": [ "workflows" ], "summary": "Post Draft", "operationId": "post_draft_api_workflows_post", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DraftCreate" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "workflows" ], "summary": "List Drafts", "operationId": "list_drafts_api_workflows_get", "parameters": [ { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "default": 24, "title": "Page Size" } }, { "name": "folder_id", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Folder Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/workflows/{id}": { "get": { "tags": [ "workflows" ], "summary": "Get Draft", "operationId": "get_draft_api_workflows__id__get", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "workflows" ], "summary": "Delete Draft", "operationId": "delete_draft_api_workflows__id__delete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "if-match", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "If-Match" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "patch": { "tags": [ "workflows" ], "summary": "Patch Draft", "operationId": "patch_draft_api_workflows__id__patch", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "if-match", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "If-Match" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DraftPatch" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/workflows/{id}/runs": { "post": { "tags": [ "workflows" ], "summary": "Post Run", "operationId": "post_run_api_workflows__id__runs_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunCreate" } } } }, "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/workflow-runs": { "get": { "tags": [ "workflows" ], "summary": "List Runs", "operationId": "list_runs_api_workflow_runs_get", "parameters": [ { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "default": 24, "title": "Page Size" } }, { "name": "folder_id", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Folder Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/workflow-runs/{id}": { "get": { "tags": [ "workflows" ], "summary": "Get Run", "operationId": "get_run_api_workflow_runs__id__get", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "workflows" ], "summary": "Delete Run", "operationId": "delete_run_api_workflow_runs__id__delete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "if-match", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "If-Match" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/workflow-runs/{id}/steps/{key}/retry": { "post": { "tags": [ "workflows" ], "summary": "Retry Step", "operationId": "retry_step_api_workflow_runs__id__steps__key__retry_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "key", "in": "path", "required": true, "schema": { "type": "string", "title": "Key" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Retry" } } } }, "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/workflow-runs/{id}/steps/{key}/restore-manual-frame": { "post": { "tags": [ "workflows" ], "summary": "Restore Manual Frame", "operationId": "restore_manual_frame_api_workflow_runs__id__steps__key__restore_manual_frame_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "key", "in": "path", "required": true, "schema": { "type": "string", "title": "Key" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RestoreManualFrame" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/workflow-runs/{id}/cancel": { "post": { "tags": [ "workflows" ], "summary": "Cancel Run", "operationId": "cancel_run_api_workflow_runs__id__cancel_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Control" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/workflow-runs/{id}/pause": { "post": { "tags": [ "workflows" ], "summary": "Pause Run", "operationId": "pause_run_api_workflow_runs__id__pause_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Control" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/workflow-runs/{id}/resume": { "post": { "tags": [ "workflows" ], "summary": "Resume Run", "operationId": "resume_run_api_workflow_runs__id__resume_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Control" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/batches": { "post": { "tags": [ "batches" ], "summary": "Post Batch", "operationId": "post_batch_api_batches_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BatchCreate" } } } }, "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "batches" ], "summary": "List Batches", "operationId": "list_batches_api_batches_get", "parameters": [ { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "default": 24, "title": "Page Size" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/batches/{id}": { "get": { "tags": [ "batches" ], "summary": "Get Batch", "operationId": "get_batch_api_batches__id__get", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "batches" ], "summary": "Delete Batch", "operationId": "delete_batch_api_batches__id__delete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "if-match", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "If-Match" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/batches/{id}/control": { "post": { "tags": [ "batches" ], "summary": "Batch Control", "operationId": "batch_control_api_batches__id__control_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BatchControl" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/health": { "get": { "summary": "Health", "operationId": "health_api_health_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/live": { "get": { "summary": "Live", "operationId": "live_api_live_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/ready": { "get": { "summary": "Ready", "operationId": "ready_api_ready_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/capabilities": { "get": { "summary": "Capabilities", "operationId": "capabilities_api_capabilities_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/system/status": { "get": { "summary": "Status", "operationId": "status_api_system_status_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/stories/capabilities": { "get": { "tags": [ "stories" ], "summary": "Get Capabilities", "operationId": "get_capabilities_api_stories_capabilities_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/stories": { "get": { "tags": [ "stories" ], "summary": "Listing", "operationId": "listing_api_stories_get", "parameters": [ { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "default": 24, "title": "Page Size" } }, { "name": "folder_id", "in": "query", "required": false, "schema": { "type": "string", "default": "", "title": "Folder Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "post": { "tags": [ "stories" ], "summary": "Create", "operationId": "create_api_stories_post", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StoryCreate" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}": { "get": { "tags": [ "stories" ], "summary": "Get", "operationId": "get_api_stories__id__get", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "patch": { "tags": [ "stories" ], "summary": "Patch", "operationId": "patch_api_stories__id__patch", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "if-match", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "If-Match" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StoryPatch" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "stories" ], "summary": "Delete Story", "operationId": "delete_story_api_stories__id__delete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "if-match", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "If-Match" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "202": { "description": "故事已隐藏,正在等待执行清理" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}/film": { "get": { "tags": [ "stories" ], "summary": "Latest Film", "operationId": "latest_film_api_stories__id__film_get", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}/preview": { "get": { "tags": [ "stories" ], "summary": "Preview", "operationId": "preview_api_stories__id__preview_get", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}/readiness": { "get": { "tags": [ "stories" ], "summary": "Readiness", "operationId": "readiness_api_stories__id__readiness_get", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}/candidates": { "get": { "tags": [ "stories" ], "summary": "Candidates", "operationId": "candidates_api_stories__id__candidates_get", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "shot_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Shot Id" } }, { "name": "kind", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Kind" } }, { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "default": 24, "title": "Page Size" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "post": { "tags": [ "stories" ], "summary": "Create Candidates", "operationId": "create_candidates_api_stories__id__candidates_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CandidateCreate" } } } }, "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}/candidate-batches": { "post": { "tags": [ "stories" ], "summary": "Create Batch", "operationId": "create_batch_api_stories__id__candidate_batches_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CandidateBatch" } } } }, "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}/candidates/{candidate_id}/retry": { "post": { "tags": [ "stories" ], "summary": "Retry", "operationId": "retry_api_stories__id__candidates__candidate_id__retry_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "candidate_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Candidate Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Version" } } } }, "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}/candidates/{candidate_id}": { "delete": { "tags": [ "stories" ], "summary": "Delete Candidate", "operationId": "delete_candidate_api_stories__id__candidates__candidate_id__delete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "candidate_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Candidate Id" } }, { "name": "if-match", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "If-Match" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}/selections": { "post": { "tags": [ "stories" ], "summary": "Selection", "operationId": "selection_api_stories__id__selections_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SelectionCreate" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}/selections/clear": { "post": { "tags": [ "stories" ], "summary": "Clear", "operationId": "clear_api_stories__id__selections_clear_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SelectionClear" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}/renders": { "post": { "tags": [ "stories" ], "summary": "Render", "operationId": "render_api_stories__id__renders_post", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RenderCreate" } } } }, "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/stories/{id}/runs": { "get": { "tags": [ "stories" ], "summary": "Runs", "operationId": "runs_api_stories__id__runs_get", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "title": "Id" } }, { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "page_size", "in": "query", "required": false, "schema": { "type": "integer", "default": 24, "title": "Page Size" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } } }, "components": { "schemas": { "AssetPatch": { "properties": { "folder_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array", "maxItems": 200 }, { "type": "null" } ], "title": "Folder Ids" }, "name": { "anyOf": [ { "type": "string", "maxLength": 255, "minLength": 1 }, { "type": "null" } ], "title": "Name" }, "tags": { "anyOf": [ { "items": { "type": "string" }, "type": "array", "maxItems": 30 }, { "type": "null" } ], "title": "Tags" }, "favorite": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Favorite" } }, "type": "object", "title": "AssetPatch" }, "Audio": { "properties": { "asset_id": { "type": "string", "maxLength": 64, "minLength": 1, "title": "Asset Id" }, "source_start_ms": { "type": "integer", "minimum": 0.0, "title": "Source Start Ms" }, "source_end_ms": { "type": "integer", "exclusiveMinimum": 0.0, "title": "Source End Ms" }, "offset_frame": { "type": "integer", "minimum": 0.0, "title": "Offset Frame", "default": 0 }, "short_policy": { "type": "string", "const": "silence", "title": "Short Policy", "default": "silence" } }, "additionalProperties": false, "type": "object", "required": [ "asset_id", "source_start_ms", "source_end_ms" ], "title": "Audio" }, "AudioLayerV2": { "properties": { "anchor": { "type": "string", "enum": [ "shot", "scene", "absolute" ], "title": "Anchor", "default": "shot" }, "shot_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Shot Id" }, "scene_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Scene Id" }, "offset_sample": { "type": "integer", "maximum": 720000000.0, "minimum": 0.0, "title": "Offset Sample", "default": 0 }, "source_start_sample": { "type": "integer", "maximum": 720000000.0, "minimum": 0.0, "title": "Source Start Sample", "default": 0 }, "source_end_sample": { "anyOf": [ { "type": "integer", "maximum": 720000000.0, "exclusiveMinimum": 0.0 }, { "type": "null" } ], "title": "Source End Sample" }, "gain_db": { "type": "number", "maximum": 12.0, "minimum": -60.0, "title": "Gain Db", "default": 0.0 }, "fade_in_samples": { "type": "integer", "maximum": 720000000.0, "minimum": 0.0, "title": "Fade In Samples", "default": 0 }, "fade_out_samples": { "type": "integer", "maximum": 720000000.0, "minimum": 0.0, "title": "Fade Out Samples", "default": 0 }, "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "role": { "type": "string", "enum": [ "bgm", "sfx" ], "title": "Role", "default": "bgm" }, "asset_id": { "type": "string", "maxLength": 64, "minLength": 1, "title": "Asset Id" } }, "additionalProperties": false, "type": "object", "required": [ "id", "asset_id" ], "title": "AudioLayerV2" }, "AudioSegment": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "shot_id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Shot Id" }, "text": { "type": "string", "maxLength": 2000, "title": "Text" }, "voice": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Voice" }, "speed": { "anyOf": [ { "type": "number", "maximum": 2.0, "minimum": 0.5 }, { "type": "null" } ], "title": "Speed" } }, "additionalProperties": false, "type": "object", "required": [ "id", "shot_id", "text" ], "title": "AudioSegment" }, "AudioSegmentV2": { "properties": { "anchor": { "type": "string", "enum": [ "shot", "scene", "absolute" ], "title": "Anchor", "default": "shot" }, "shot_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Shot Id" }, "scene_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Scene Id" }, "offset_sample": { "type": "integer", "maximum": 720000000.0, "minimum": 0.0, "title": "Offset Sample", "default": 0 }, "source_start_sample": { "type": "integer", "maximum": 720000000.0, "minimum": 0.0, "title": "Source Start Sample", "default": 0 }, "source_end_sample": { "anyOf": [ { "type": "integer", "maximum": 720000000.0, "exclusiveMinimum": 0.0 }, { "type": "null" } ], "title": "Source End Sample" }, "gain_db": { "type": "number", "maximum": 12.0, "minimum": -60.0, "title": "Gain Db", "default": 0.0 }, "fade_in_samples": { "type": "integer", "maximum": 720000000.0, "minimum": 0.0, "title": "Fade In Samples", "default": 0 }, "fade_out_samples": { "type": "integer", "maximum": 720000000.0, "minimum": 0.0, "title": "Fade Out Samples", "default": 0 }, "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "text": { "type": "string", "maxLength": 2000, "title": "Text", "default": "" }, "voice": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Voice" }, "speed": { "anyOf": [ { "type": "number", "maximum": 2.0, "minimum": 0.5 }, { "type": "null" } ], "title": "Speed" } }, "additionalProperties": false, "type": "object", "required": [ "id" ], "title": "AudioSegmentV2" }, "AudioSelectionV2": { "properties": { "asset_id": { "type": "string", "maxLength": 64, "minLength": 1, "title": "Asset Id" }, "source_start_sample": { "type": "integer", "maximum": 720000000.0, "minimum": 0.0, "title": "Source Start Sample", "default": 0 }, "source_end_sample": { "type": "integer", "maximum": 720000000.0, "exclusiveMinimum": 0.0, "title": "Source End Sample" }, "offset_sample": { "type": "integer", "maximum": 720000000.0, "minimum": 0.0, "title": "Offset Sample", "default": 0 }, "sample_rate": { "type": "integer", "const": 48000, "title": "Sample Rate", "default": 48000 }, "short_policy": { "type": "string", "const": "silence", "title": "Short Policy", "default": "silence" } }, "additionalProperties": false, "type": "object", "required": [ "asset_id", "source_end_sample" ], "title": "AudioSelectionV2" }, "BatchControl": { "properties": { "desired_state": { "type": "string", "enum": [ "run", "pause", "cancel" ], "title": "Desired State" }, "expected_version": { "anyOf": [ { "type": "integer", "minimum": 1.0 }, { "type": "null" } ], "title": "Expected Version" } }, "additionalProperties": false, "type": "object", "required": [ "desired_state" ], "title": "BatchControl" }, "BatchCreate": { "properties": { "name": { "type": "string", "maxLength": 255, "minLength": 1, "title": "Name", "default": "夜间批次" }, "items": { "items": { "anyOf": [ { "$ref": "#/components/schemas/BatchWorkflow" }, { "$ref": "#/components/schemas/BatchJob" } ] }, "type": "array", "maxItems": 100, "minItems": 1, "title": "Items" } }, "additionalProperties": false, "type": "object", "required": [ "items" ], "title": "BatchCreate" }, "BatchJob": { "properties": { "folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Folder Id" }, "output_folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Output Folder Id" }, "kind": { "type": "string", "const": "job", "title": "Kind" }, "task_type": { "type": "string", "title": "Task Type" }, "input": { "additionalProperties": true, "type": "object", "title": "Input" }, "parameters": { "additionalProperties": true, "type": "object", "title": "Parameters" }, "count": { "type": "integer", "maximum": 4.0, "minimum": 1.0, "title": "Count", "default": 1 } }, "additionalProperties": false, "type": "object", "required": [ "kind", "task_type" ], "title": "BatchJob" }, "BatchWorkflow": { "properties": { "output_folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Output Folder Id" }, "kind": { "type": "string", "const": "workflow", "title": "Kind" }, "draft_id": { "type": "string", "title": "Draft Id" }, "draft_revision": { "type": "integer", "minimum": 1.0, "title": "Draft Revision" }, "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" } }, "additionalProperties": false, "type": "object", "required": [ "kind", "draft_id", "draft_revision", "expected_version" ], "title": "BatchWorkflow" }, "Binding": { "properties": { "asset_id": { "type": "string", "maxLength": 64, "minLength": 1, "title": "Asset Id" }, "sha256": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{64}$" }, { "type": "null" } ], "title": "Sha256" }, "kind": { "type": "string", "enum": [ "image", "video", "audio", "text", "json" ], "title": "Kind" }, "input_hash": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Input Hash" }, "context_hash": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Context Hash" }, "source": { "type": "string", "enum": [ "generated", "manual", "reused" ], "title": "Source" }, "locked": { "type": "boolean", "title": "Locked", "default": false }, "source_run_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Source Run Id" }, "source_job_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Source Job Id" }, "generation_parameters": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Generation Parameters" }, "duration_seconds": { "anyOf": [ { "type": "number", "minimum": 0.0 }, { "type": "null" } ], "title": "Duration Seconds" }, "duration_frames": { "anyOf": [ { "type": "integer", "minimum": 0.0 }, { "type": "null" } ], "title": "Duration Frames" }, "sample_count": { "anyOf": [ { "type": "integer", "minimum": 0.0 }, { "type": "null" } ], "title": "Sample Count" } }, "additionalProperties": false, "type": "object", "required": [ "asset_id", "kind", "source" ], "title": "Binding" }, "BindingV2": { "properties": { "asset_id": { "type": "string", "maxLength": 64, "minLength": 1, "title": "Asset Id" }, "sha256": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{64}$" }, { "type": "null" } ], "title": "Sha256" }, "kind": { "type": "string", "enum": [ "image", "video", "audio", "text", "json" ], "title": "Kind" }, "input_hash": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Input Hash" }, "context_hash": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Context Hash" }, "source": { "type": "string", "enum": [ "generated", "manual", "reused" ], "title": "Source" }, "locked": { "type": "boolean", "title": "Locked", "default": false }, "source_run_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Source Run Id" }, "source_job_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Source Job Id" }, "generation_parameters": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Generation Parameters" }, "duration_seconds": { "anyOf": [ { "type": "number", "minimum": 0.0 }, { "type": "null" } ], "title": "Duration Seconds" }, "duration_frames": { "anyOf": [ { "type": "integer", "minimum": 0.0 }, { "type": "null" } ], "title": "Duration Frames" }, "sample_count": { "anyOf": [ { "type": "integer", "minimum": 0.0 }, { "type": "null" } ], "title": "Sample Count" }, "sample_rate": { "anyOf": [ { "type": "integer", "exclusiveMinimum": 0.0 }, { "type": "null" } ], "title": "Sample Rate" }, "provenance": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Provenance" } }, "additionalProperties": false, "type": "object", "required": [ "asset_id", "kind", "source" ], "title": "BindingV2" }, "Body_upload_api_assets_post": { "properties": { "file": { "type": "string", "contentMediaType": "application/octet-stream", "title": "File" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Folder Id" } }, "type": "object", "required": [ "file" ], "title": "Body_upload_api_assets_post" }, "CandidateBatch": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "output_folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Output Folder Id" }, "shot_ids": { "items": { "type": "string" }, "type": "array", "maxItems": 1000, "minItems": 1, "title": "Shot Ids" }, "kind": { "type": "string", "enum": [ "frame", "video", "end_frame" ], "title": "Kind" }, "count": { "type": "integer", "maximum": 4.0, "minimum": 1.0, "title": "Count", "default": 1 }, "execution_mode": { "type": "string", "enum": [ "interactive", "batch" ], "title": "Execution Mode", "default": "batch" }, "reference_mode": { "anyOf": [ { "type": "string", "enum": [ "text", "reference" ] }, { "type": "null" } ], "title": "Reference Mode" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version", "shot_ids", "kind" ], "title": "CandidateBatch" }, "CandidateCreate": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "output_folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Output Folder Id" }, "shot_id": { "type": "string", "title": "Shot Id" }, "kind": { "type": "string", "enum": [ "frame", "video", "end_frame" ], "title": "Kind" }, "count": { "type": "integer", "maximum": 4.0, "minimum": 1.0, "title": "Count", "default": 1 }, "source_kind": { "type": "string", "enum": [ "generated", "manual" ], "title": "Source Kind", "default": "generated" }, "asset_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Asset Id" }, "execution_mode": { "type": "string", "enum": [ "interactive", "batch" ], "title": "Execution Mode", "default": "interactive" }, "reference_mode": { "anyOf": [ { "type": "string", "enum": [ "text", "reference" ] }, { "type": "null" } ], "title": "Reference Mode" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version", "shot_id", "kind" ], "title": "CandidateCreate" }, "CaptionEdit": { "properties": { "audio_sha256": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{64}$" }, { "type": "null" } ], "title": "Audio Sha256" }, "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "utterance_id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Utterance Id" }, "source_text": { "type": "string", "maxLength": 2000, "minLength": 1, "title": "Source Text" }, "source_start": { "type": "integer", "minimum": 0.0, "title": "Source Start" }, "source_end": { "type": "integer", "exclusiveMinimum": 0.0, "title": "Source End" }, "deleted": { "type": "boolean", "title": "Deleted", "default": false }, "text_override": { "type": "boolean", "title": "Text Override", "default": false }, "timing_override": { "type": "boolean", "title": "Timing Override", "default": false }, "text": { "anyOf": [ { "type": "string", "maxLength": 2000 }, { "type": "null" } ], "title": "Text" }, "start_frame": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Start Frame" }, "end_frame": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "End Frame" } }, "additionalProperties": false, "type": "object", "required": [ "id", "utterance_id", "source_text", "source_start", "source_end" ], "title": "CaptionEdit" }, "CaptionPresentation": { "properties": { "punctuation": { "type": "string", "enum": [ "hide", "preserve" ], "title": "Punctuation" }, "pacing": { "type": "string", "enum": [ "rhythm", "sentence" ], "title": "Pacing" } }, "additionalProperties": false, "type": "object", "required": [ "punctuation", "pacing" ], "title": "CaptionPresentation" }, "Cast": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "entity_id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Entity Id" }, "form_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Form Id" }, "appearance_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Appearance Id" }, "position": { "type": "string", "title": "Position", "default": "" }, "action": { "type": "string", "title": "Action", "default": "" } }, "additionalProperties": false, "type": "object", "required": [ "id", "entity_id" ], "title": "Cast" }, "Context": { "properties": { "era": { "type": "string", "title": "Era", "default": "" }, "style": { "type": "string", "title": "Style", "default": "" }, "palette": { "type": "string", "title": "Palette", "default": "" }, "lighting": { "type": "string", "title": "Lighting", "default": "" }, "negative_prompt": { "type": "string", "title": "Negative Prompt", "default": "" } }, "additionalProperties": false, "type": "object", "title": "Context" }, "ContinuityState": { "properties": { "summary": { "type": "string", "title": "Summary", "default": "" }, "entities": { "additionalProperties": { "type": "string" }, "type": "object", "title": "Entities" }, "location": { "type": "string", "title": "Location", "default": "" }, "time": { "type": "string", "title": "Time", "default": "" }, "camera": { "type": "string", "title": "Camera", "default": "" }, "motion": { "type": "string", "title": "Motion", "default": "" } }, "additionalProperties": false, "type": "object", "title": "ContinuityState" }, "Control": { "properties": { "expected_version": { "anyOf": [ { "type": "integer", "minimum": 1.0 }, { "type": "null" } ], "title": "Expected Version" } }, "additionalProperties": false, "type": "object", "title": "Control" }, "CreateUser": { "properties": { "username": { "type": "string", "maxLength": 64, "minLength": 1, "title": "Username" }, "password": { "type": "string", "maxLength": 256, "minLength": 1, "title": "Password" }, "display_name": { "type": "string", "maxLength": 80, "title": "Display Name", "default": "" } }, "type": "object", "required": [ "username", "password" ], "title": "CreateUser" }, "Cue": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "anchor": { "type": "string", "enum": [ "absolute", "shot", "audio_segment" ], "title": "Anchor" }, "shot_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Shot Id" }, "segment_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Segment Id" }, "start_frame": { "type": "integer", "title": "Start Frame" }, "end_frame": { "type": "integer", "title": "End Frame" }, "text": { "type": "string", "maxLength": 2000, "title": "Text" }, "text_override": { "type": "boolean", "title": "Text Override", "default": false }, "timing_override": { "type": "boolean", "title": "Timing Override", "default": false } }, "additionalProperties": false, "type": "object", "required": [ "id", "anchor", "start_frame", "end_frame", "text" ], "title": "Cue" }, "CueV3": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "anchor": { "type": "string", "enum": [ "absolute", "shot", "audio_segment", "utterance" ], "title": "Anchor" }, "shot_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Shot Id" }, "segment_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Segment Id" }, "start_frame": { "type": "integer", "title": "Start Frame" }, "end_frame": { "type": "integer", "title": "End Frame" }, "text": { "type": "string", "maxLength": 2000, "title": "Text" }, "text_override": { "type": "boolean", "title": "Text Override", "default": false }, "timing_override": { "type": "boolean", "title": "Timing Override", "default": false }, "utterance_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Utterance Id" } }, "additionalProperties": false, "type": "object", "required": [ "id", "anchor", "start_frame", "end_frame", "text" ], "title": "CueV3" }, "DialogueSequence": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "scene_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Scene Id" }, "shot_ids": { "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "type": "array", "maxItems": 1000, "minItems": 1, "title": "Shot Ids" }, "utterance_ids": { "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "type": "array", "maxItems": 1000, "title": "Utterance Ids" }, "timing_mode": { "type": "string", "enum": [ "auto", "fixed" ], "title": "Timing Mode", "default": "auto" } }, "additionalProperties": false, "type": "object", "required": [ "id", "shot_ids" ], "title": "DialogueSequence" }, "DialogueSpeaker": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "entity_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Entity Id" }, "name": { "type": "string", "maxLength": 120, "minLength": 1, "title": "Name" }, "voice": { "$ref": "#/components/schemas/DialogueVoice" }, "native_voice": { "anyOf": [ { "type": "string", "maxLength": 500, "minLength": 1 }, { "type": "null" } ], "title": "Native Voice" } }, "additionalProperties": false, "type": "object", "required": [ "id", "name" ], "title": "DialogueSpeaker" }, "DialogueSpeakerV6": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "entity_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Entity Id" }, "name": { "type": "string", "maxLength": 120, "minLength": 1, "title": "Name" }, "voice": { "$ref": "#/components/schemas/DialogueVoice" }, "native_voice": { "anyOf": [ { "type": "string", "maxLength": 500, "minLength": 1 }, { "type": "null" } ], "title": "Native Voice" }, "model_speaker_number": { "anyOf": [ { "type": "integer", "maximum": 1000.0, "minimum": 1.0 }, { "type": "null" } ], "title": "Model Speaker Number" }, "face_reference_asset_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Face Reference Asset Id" }, "voice_reference_asset_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Voice Reference Asset Id" } }, "additionalProperties": false, "type": "object", "required": [ "id", "name" ], "title": "DialogueSpeakerV6" }, "DialogueSpec": { "properties": { "enabled": { "type": "boolean", "title": "Enabled", "default": true }, "generation": { "anyOf": [ { "type": "string", "const": "native_av" }, { "type": "null" } ], "title": "Generation" }, "language": { "anyOf": [ { "type": "string", "maxLength": 80, "minLength": 1 }, { "type": "null" } ], "title": "Language" }, "speakers": { "items": { "$ref": "#/components/schemas/DialogueSpeaker" }, "type": "array", "maxItems": 1000, "title": "Speakers" }, "utterances": { "items": { "$ref": "#/components/schemas/DialogueUtterance" }, "type": "array", "maxItems": 1000, "title": "Utterances" }, "sequences": { "items": { "$ref": "#/components/schemas/DialogueSequence" }, "type": "array", "maxItems": 1000, "title": "Sequences" } }, "additionalProperties": false, "type": "object", "title": "DialogueSpec" }, "DialogueSpecV6": { "properties": { "enabled": { "type": "boolean", "title": "Enabled", "default": true }, "generation": { "type": "string", "const": "native_av", "title": "Generation", "default": "native_av" }, "language": { "anyOf": [ { "type": "string", "maxLength": 80, "minLength": 1 }, { "type": "null" } ], "title": "Language" }, "speakers": { "items": { "$ref": "#/components/schemas/DialogueSpeakerV6" }, "type": "array", "maxItems": 1000, "title": "Speakers" }, "utterances": { "items": { "$ref": "#/components/schemas/DialogueUtterance" }, "type": "array", "maxItems": 1000, "title": "Utterances" }, "sequences": { "items": { "$ref": "#/components/schemas/DialogueSequence" }, "type": "array", "maxItems": 1000, "title": "Sequences" } }, "additionalProperties": false, "type": "object", "title": "DialogueSpecV6" }, "DialogueUtterance": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "speaker_id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Speaker Id" }, "text": { "type": "string", "maxLength": 2000, "minLength": 1, "title": "Text" }, "spoken_text": { "anyOf": [ { "type": "string", "maxLength": 2000, "minLength": 1 }, { "type": "null" } ], "title": "Spoken Text" }, "source": { "type": "string", "enum": [ "tts", "asset" ], "title": "Source", "default": "tts" }, "asset_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Asset Id" }, "source_start_sample": { "type": "integer", "minimum": 0.0, "title": "Source Start Sample", "default": 0 }, "source_end_sample": { "anyOf": [ { "type": "integer", "exclusiveMinimum": 0.0 }, { "type": "null" } ], "title": "Source End Sample" }, "gap_after_sample": { "type": "integer", "maximum": 14400000.0, "minimum": 0.0, "title": "Gap After Sample", "default": 9600 }, "delivery": { "type": "string", "maxLength": 500, "title": "Delivery", "default": "" }, "locked": { "type": "boolean", "title": "Locked", "default": false } }, "additionalProperties": false, "type": "object", "required": [ "id", "speaker_id", "text" ], "title": "DialogueUtterance" }, "DialogueVoice": { "properties": { "provider": { "type": "string", "enum": [ "kokoro", "voxcpm2" ], "title": "Provider", "default": "kokoro" }, "model": { "type": "string", "maxLength": 120, "minLength": 1, "pattern": "^[\\w. -]+$", "title": "Model", "default": "kokoro-82m" }, "voice": { "type": "string", "maxLength": 120, "pattern": "^[\\w. -]*$", "title": "Voice", "default": "zf_xiaobei" }, "reference_asset_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Reference Asset Id" }, "reference_text": { "type": "string", "maxLength": 2000, "title": "Reference Text", "default": "" }, "style": { "type": "string", "maxLength": 500, "title": "Style", "default": "" }, "speed": { "type": "number", "maximum": 2.0, "minimum": 0.5, "title": "Speed", "default": 1 }, "seed": { "type": "integer", "maximum": 4294967295.0, "minimum": 0.0, "title": "Seed", "default": 42 }, "revision": { "type": "integer", "minimum": 1.0, "title": "Revision", "default": 1 } }, "additionalProperties": false, "type": "object", "title": "DialogueVoice" }, "DraftCreate": { "properties": { "folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Folder Id" }, "name": { "type": "string", "maxLength": 255, "minLength": 1, "title": "Name", "default": "多镜头工作流" }, "kind": { "type": "string", "enum": [ "three_shot", "multi_shot" ], "title": "Kind", "default": "multi_shot" }, "spec": { "$ref": "#/components/schemas/WorkflowSpec" } }, "additionalProperties": false, "type": "object", "required": [ "spec" ], "title": "DraftCreate" }, "DraftPatch": { "properties": { "folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Folder Id" }, "name": { "anyOf": [ { "type": "string", "maxLength": 255, "minLength": 1 }, { "type": "null" } ], "title": "Name" }, "spec": { "anyOf": [ { "$ref": "#/components/schemas/WorkflowSpec" }, { "type": "null" } ] } }, "additionalProperties": false, "type": "object", "title": "DraftPatch" }, "Edit": { "properties": { "start_frame": { "type": "integer", "minimum": 0.0, "title": "Start Frame", "default": 0 }, "duration_frames": { "type": "integer", "maximum": 360.0, "minimum": 24.0, "title": "Duration Frames", "default": 120 } }, "additionalProperties": false, "type": "object", "title": "Edit" }, "EditV4": { "properties": { "start_frame": { "type": "integer", "minimum": 0.0, "title": "Start Frame", "default": 0 }, "duration_frames": { "type": "integer", "maximum": 360.0, "minimum": 24.0, "title": "Duration Frames", "default": 120 }, "dedup_frames": { "type": "integer", "enum": [ 0, 1 ], "title": "Dedup Frames", "default": 0 } }, "additionalProperties": false, "type": "object", "title": "EditV4" }, "EditorAudio": { "properties": { "mode": { "type": "string", "enum": [ "silent", "manual_track", "generated_narration" ], "title": "Mode", "default": "silent" }, "voice": { "type": "string", "title": "Voice", "default": "" }, "speed": { "type": "number", "maximum": 2.0, "minimum": 0.5, "title": "Speed", "default": 1.0 }, "track": { "anyOf": [ { "$ref": "#/components/schemas/Audio" }, { "type": "null" } ] }, "segments": { "items": { "$ref": "#/components/schemas/AudioSegment" }, "type": "array", "maxItems": 1000, "title": "Segments" } }, "additionalProperties": false, "type": "object", "title": "EditorAudio" }, "EditorAudioV2": { "properties": { "mode": { "type": "string", "enum": [ "silent", "manual_track", "generated_narration" ], "title": "Mode", "default": "silent" }, "voice": { "type": "string", "title": "Voice", "default": "" }, "speed": { "type": "number", "maximum": 2.0, "minimum": 0.5, "title": "Speed", "default": 1.0 }, "track": { "anyOf": [ { "$ref": "#/components/schemas/AudioSelectionV2" }, { "$ref": "#/components/schemas/Audio" }, { "type": "null" } ], "title": "Track" }, "segments": { "items": { "$ref": "#/components/schemas/AudioSegmentV2" }, "type": "array", "maxItems": 1000, "title": "Segments" }, "layers": { "items": { "$ref": "#/components/schemas/AudioLayerV2" }, "type": "array", "maxItems": 32, "title": "Layers" }, "ducking": { "type": "boolean", "title": "Ducking", "default": true } }, "additionalProperties": false, "type": "object", "title": "EditorAudioV2" }, "EditorAudioV3": { "properties": { "mode": { "type": "string", "enum": [ "silent", "manual_track", "generated_narration" ], "title": "Mode", "default": "silent" }, "voice": { "type": "string", "title": "Voice", "default": "" }, "speed": { "type": "number", "maximum": 2.0, "minimum": 0.5, "title": "Speed", "default": 1.0 }, "track": { "anyOf": [ { "$ref": "#/components/schemas/AudioSelectionV2" }, { "$ref": "#/components/schemas/Audio" }, { "type": "null" } ], "title": "Track" }, "segments": { "items": { "$ref": "#/components/schemas/AudioSegmentV2" }, "type": "array", "maxItems": 1000, "title": "Segments" }, "layers": { "items": { "$ref": "#/components/schemas/AudioLayerV2" }, "type": "array", "maxItems": 32, "title": "Layers" }, "ducking": { "type": "boolean", "title": "Ducking", "default": true }, "mix_mode": { "type": "string", "enum": [ "composed", "manual_mix" ], "title": "Mix Mode", "default": "composed" } }, "additionalProperties": false, "type": "object", "title": "EditorAudioV3" }, "EditorCaptions": { "properties": { "mode": { "type": "string", "enum": [ "none", "manual", "script", "ai_script" ], "title": "Mode", "default": "none" }, "cues": { "items": { "$ref": "#/components/schemas/Cue" }, "type": "array", "maxItems": 1000, "title": "Cues" } }, "additionalProperties": false, "type": "object", "title": "EditorCaptions" }, "EditorCaptionsV3": { "properties": { "mode": { "type": "string", "enum": [ "none", "manual", "script", "ai_script" ], "title": "Mode", "default": "none" }, "cues": { "items": { "$ref": "#/components/schemas/CueV3" }, "type": "array", "maxItems": 1000, "title": "Cues" } }, "additionalProperties": false, "type": "object", "title": "EditorCaptionsV3" }, "EditorCaptionsV4": { "properties": { "mode": { "type": "string", "enum": [ "none", "manual", "script", "ai_script" ], "title": "Mode", "default": "none" }, "cues": { "items": { "$ref": "#/components/schemas/CueV3" }, "type": "array", "maxItems": 1000, "title": "Cues" }, "presentation": { "anyOf": [ { "$ref": "#/components/schemas/CaptionPresentation" }, { "type": "null" } ] }, "edits": { "anyOf": [ { "items": { "$ref": "#/components/schemas/CaptionEdit" }, "type": "array", "maxItems": 3000 }, { "type": "null" } ], "title": "Edits" } }, "additionalProperties": false, "type": "object", "title": "EditorCaptionsV4" }, "EditorManifest": { "properties": { "editing_mode": { "type": "string", "enum": [ "auto", "manual" ], "title": "Editing Mode", "default": "auto" }, "base_run_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Base Run Id" }, "schema_version": { "type": "integer", "const": 1, "title": "Schema Version", "default": 1 }, "source_kind": { "type": "string", "enum": [ "story", "workflow" ], "title": "Source Kind" }, "spec": { "additionalProperties": true, "type": "object", "title": "Spec" }, "shot_ids": { "items": { "type": "string" }, "type": "array", "maxItems": 1000, "minItems": 1, "title": "Shot Ids" }, "bindings": { "additionalProperties": { "$ref": "#/components/schemas/Binding" }, "type": "object", "maxProperties": 3000, "title": "Bindings" }, "audio": { "$ref": "#/components/schemas/EditorAudio" }, "captions": { "$ref": "#/components/schemas/EditorCaptions" } }, "additionalProperties": false, "type": "object", "required": [ "source_kind", "spec", "shot_ids" ], "title": "EditorManifest" }, "EditorManifestV2": { "properties": { "editing_mode": { "type": "string", "enum": [ "auto", "manual" ], "title": "Editing Mode", "default": "auto" }, "base_run_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Base Run Id" }, "schema_version": { "type": "integer", "const": 2, "title": "Schema Version", "default": 2 }, "source_kind": { "type": "string", "enum": [ "story", "workflow" ], "title": "Source Kind" }, "spec": { "additionalProperties": true, "type": "object", "title": "Spec" }, "shot_ids": { "items": { "type": "string" }, "type": "array", "maxItems": 1000, "minItems": 1, "title": "Shot Ids" }, "bindings": { "additionalProperties": { "$ref": "#/components/schemas/BindingV2" }, "type": "object", "maxProperties": 5000, "title": "Bindings" }, "audio": { "$ref": "#/components/schemas/EditorAudioV2" }, "captions": { "$ref": "#/components/schemas/EditorCaptions" }, "production": { "$ref": "#/components/schemas/ProductionPolicy" } }, "additionalProperties": false, "type": "object", "required": [ "source_kind", "spec", "shot_ids" ], "title": "EditorManifestV2" }, "EditorManifestV3": { "properties": { "editing_mode": { "type": "string", "enum": [ "auto", "manual" ], "title": "Editing Mode", "default": "auto" }, "base_run_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Base Run Id" }, "schema_version": { "type": "integer", "const": 3, "title": "Schema Version", "default": 3 }, "source_kind": { "type": "string", "enum": [ "story", "workflow" ], "title": "Source Kind" }, "spec": { "additionalProperties": true, "type": "object", "title": "Spec" }, "shot_ids": { "items": { "type": "string" }, "type": "array", "maxItems": 1000, "minItems": 1, "title": "Shot Ids" }, "bindings": { "additionalProperties": { "$ref": "#/components/schemas/BindingV2" }, "type": "object", "maxProperties": 5000, "title": "Bindings" }, "audio": { "$ref": "#/components/schemas/EditorAudioV3" }, "captions": { "$ref": "#/components/schemas/EditorCaptionsV3" }, "production": { "$ref": "#/components/schemas/ProductionPolicy" } }, "additionalProperties": false, "type": "object", "required": [ "source_kind", "spec", "shot_ids" ], "title": "EditorManifestV3" }, "EditorManifestV4": { "properties": { "editing_mode": { "type": "string", "enum": [ "auto", "manual" ], "title": "Editing Mode", "default": "auto" }, "base_run_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Base Run Id" }, "schema_version": { "type": "integer", "const": 4, "title": "Schema Version", "default": 4 }, "source_kind": { "type": "string", "enum": [ "story", "workflow" ], "title": "Source Kind" }, "spec": { "additionalProperties": true, "type": "object", "title": "Spec" }, "shot_ids": { "items": { "type": "string" }, "type": "array", "maxItems": 1000, "minItems": 1, "title": "Shot Ids" }, "bindings": { "additionalProperties": { "$ref": "#/components/schemas/BindingV2" }, "type": "object", "maxProperties": 5000, "title": "Bindings" }, "audio": { "$ref": "#/components/schemas/EditorAudioV3" }, "captions": { "$ref": "#/components/schemas/EditorCaptionsV4" }, "production": { "$ref": "#/components/schemas/ProductionPolicy" } }, "additionalProperties": false, "type": "object", "required": [ "source_kind", "spec", "shot_ids" ], "title": "EditorManifestV4" }, "EditorMode": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "mode": { "type": "string", "enum": [ "auto", "manual" ], "title": "Mode" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version", "mode" ], "title": "EditorMode" }, "EmptyPayload": { "properties": {}, "additionalProperties": false, "type": "object", "title": "EmptyPayload" }, "EnableDialogue": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version" ], "title": "EnableDialogue" }, "Entity": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "name": { "type": "string", "title": "Name", "default": "" }, "description": { "type": "string", "title": "Description", "default": "" }, "reference_asset_ids": { "items": { "type": "string" }, "type": "array", "title": "Reference Asset Ids" }, "kind": { "type": "string", "enum": [ "person", "creature", "prop" ], "title": "Kind", "default": "person" }, "forms": { "items": { "$ref": "#/components/schemas/Variant" }, "type": "array", "title": "Forms" }, "appearances": { "items": { "$ref": "#/components/schemas/Variant" }, "type": "array", "title": "Appearances" } }, "additionalProperties": false, "type": "object", "required": [ "id" ], "title": "Entity" }, "FolderAssign": { "properties": { "kind": { "type": "string", "enum": [ "assets", "jobs", "drafts", "runs" ], "title": "Kind" }, "ids": { "items": { "type": "string" }, "type": "array", "maxItems": 200, "minItems": 1, "title": "Ids" }, "folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Folder Id" }, "mode": { "type": "string", "enum": [ "move", "add" ], "title": "Mode", "default": "move" } }, "type": "object", "required": [ "kind", "ids", "folder_id" ], "title": "FolderAssign" }, "FolderCreate": { "properties": { "name": { "type": "string", "maxLength": 255, "minLength": 1, "title": "Name" }, "parent_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Parent Id" } }, "type": "object", "required": [ "name" ], "title": "FolderCreate" }, "FolderPatch": { "properties": { "name": { "anyOf": [ { "type": "string", "maxLength": 255, "minLength": 1 }, { "type": "null" } ], "title": "Name" }, "parent_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Parent Id" } }, "type": "object", "title": "FolderPatch" }, "ForkPrepared": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "run_id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Run Id" }, "name": { "type": "string", "maxLength": 255, "minLength": 1, "title": "Name" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version", "run_id", "name" ], "title": "ForkPrepared" }, "ForkSpeakerCuts": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "shot_id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Shot Id" }, "confirm": { "type": "boolean", "title": "Confirm", "default": false }, "name": { "anyOf": [ { "type": "string", "maxLength": 120, "minLength": 1 }, { "type": "null" } ], "title": "Name" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version", "shot_id" ], "title": "ForkSpeakerCuts" }, "FrameParameters": { "properties": { "seed": { "type": "integer", "maximum": 4294967295.0, "minimum": 0.0, "title": "Seed", "default": 42 } }, "additionalProperties": false, "type": "object", "title": "FrameParameters" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "Login": { "properties": { "username": { "type": "string", "maxLength": 64, "minLength": 1, "title": "Username" }, "password": { "type": "string", "maxLength": 256, "minLength": 1, "title": "Password" } }, "type": "object", "required": [ "username", "password" ], "title": "Login" }, "NativeAvVideoParameters": { "properties": { "seed": { "type": "integer", "maximum": 4294967295.0, "minimum": 0.0, "title": "Seed", "default": 42 }, "profile": { "type": "string", "enum": [ "minimax-h3-fl2va-native-av-v1", "minimax-h3-fl2va-native-av-tp2-v1" ], "title": "Profile" }, "source_frames": { "type": "integer", "maximum": 345.0, "minimum": 124.0, "title": "Source Frames", "default": 124 }, "num_inference_steps": { "type": "integer", "maximum": 100.0, "minimum": 2.0, "title": "Num Inference Steps", "default": 50 }, "upscale": { "type": "boolean", "const": false, "title": "Upscale", "default": false } }, "additionalProperties": false, "type": "object", "required": [ "profile" ], "title": "NativeAvVideoParameters" }, "NativeVideoParameters": { "properties": { "seed": { "type": "integer", "maximum": 4294967295.0, "minimum": 0.0, "title": "Seed", "default": 42 }, "profile": { "type": "string", "const": "minimax-h3-fl2va-bf16-v2", "title": "Profile" }, "source_frames": { "type": "integer", "maximum": 345.0, "minimum": 124.0, "title": "Source Frames", "default": 124 }, "num_inference_steps": { "type": "integer", "maximum": 100.0, "minimum": 2.0, "title": "Num Inference Steps", "default": 50 }, "upscale": { "type": "boolean", "title": "Upscale", "default": false } }, "additionalProperties": false, "type": "object", "required": [ "profile" ], "title": "NativeVideoParameters" }, "Overrides": { "properties": { "time": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Time" }, "weather": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Weather" }, "lighting": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Lighting" }, "palette": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Palette" } }, "additionalProperties": false, "type": "object", "title": "Overrides" }, "PasswordChange": { "properties": { "current_password": { "type": "string", "maxLength": 256, "title": "Current Password" }, "new_password": { "type": "string", "maxLength": 256, "title": "New Password" } }, "type": "object", "required": [ "current_password", "new_password" ], "title": "PasswordChange" }, "PlanEditor": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "output_goal": { "type": "string", "enum": [ "media", "film", "caption_film", "caption_inspect", "mix_film" ], "title": "Output Goal", "default": "film" }, "targets": { "items": { "type": "string" }, "type": "array", "maxItems": 3002, "title": "Targets" }, "force": { "items": { "type": "string" }, "type": "array", "maxItems": 3002, "title": "Force" }, "execution_mode": { "type": "string", "enum": [ "interactive", "batch" ], "title": "Execution Mode", "default": "interactive" }, "output_folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Output Folder Id" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version" ], "title": "PlanEditor" }, "PreviewCaptions": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "utterance_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Utterance Id" }, "manifest": { "anyOf": [ { "$ref": "#/components/schemas/EditorManifest" }, { "$ref": "#/components/schemas/EditorManifestV2" }, { "$ref": "#/components/schemas/EditorManifestV3" }, { "$ref": "#/components/schemas/EditorManifestV4" }, { "type": "null" } ], "title": "Manifest" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version" ], "title": "PreviewCaptions" }, "ProductionPolicy": { "properties": { "max_shots": { "type": "integer", "maximum": 1000.0, "minimum": 1.0, "title": "Max Shots", "default": 60 }, "max_total_frames": { "type": "integer", "minimum": 1.0, "title": "Max Total Frames", "default": 7200 }, "max_repairs_per_shot": { "type": "integer", "maximum": 2.0, "minimum": 0.0, "title": "Max Repairs Per Shot", "default": 2 }, "max_total_repairs": { "type": "integer", "minimum": 0.0, "title": "Max Total Repairs", "default": 12 } }, "additionalProperties": false, "type": "object", "title": "ProductionPolicy" }, "Render": { "properties": { "fps": { "type": "integer", "const": 24, "title": "Fps", "default": 24 }, "total_frames": { "anyOf": [ { "type": "integer", "maximum": 360000.0, "minimum": 1.0 }, { "type": "null" } ], "title": "Total Frames" }, "fit": { "type": "string", "enum": [ "contain", "cover" ], "title": "Fit", "default": "contain" }, "audio": { "anyOf": [ { "$ref": "#/components/schemas/Audio" }, { "type": "null" } ] }, "subtitles": { "items": { "$ref": "#/components/schemas/Subtitle" }, "type": "array", "maxItems": 1000, "title": "Subtitles" }, "template_version": { "type": "string", "const": "plain-v1", "title": "Template Version", "default": "plain-v1" } }, "additionalProperties": false, "type": "object", "title": "Render" }, "RenderCreate": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "output_folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Output Folder Id" }, "execution_mode": { "type": "string", "enum": [ "interactive", "batch" ], "title": "Execution Mode", "default": "interactive" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version" ], "title": "RenderCreate" }, "RenderV4": { "properties": { "fps": { "type": "integer", "const": 24, "title": "Fps", "default": 24 }, "total_frames": { "anyOf": [ { "type": "integer", "maximum": 360000.0, "minimum": 1.0 }, { "type": "null" } ], "title": "Total Frames" }, "fit": { "type": "string", "enum": [ "contain", "cover" ], "title": "Fit", "default": "contain" }, "audio": { "anyOf": [ { "$ref": "#/components/schemas/AudioSelectionV2" }, { "$ref": "#/components/schemas/Audio" }, { "type": "null" } ], "title": "Audio" }, "subtitles": { "items": { "$ref": "#/components/schemas/Subtitle" }, "type": "array", "maxItems": 1000, "title": "Subtitles" }, "template_version": { "type": "string", "const": "plain-v1", "title": "Template Version", "default": "plain-v1" } }, "additionalProperties": false, "type": "object", "title": "RenderV4" }, "RestoreEditor": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "run_id": { "type": "string", "maxLength": 32, "minLength": 1, "title": "Run Id" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version", "run_id" ], "title": "RestoreEditor" }, "RestoreManualFrame": { "properties": { "expected_run_version": { "type": "integer", "minimum": 1.0, "title": "Expected Run Version" }, "target_job_id": { "type": "string", "title": "Target Job Id" }, "rejected_review_job_id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Rejected Review Job Id" }, "frame_asset_id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Frame Asset Id" }, "frame_sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$", "title": "Frame Sha256" } }, "additionalProperties": false, "type": "object", "required": [ "expected_run_version", "target_job_id", "rejected_review_job_id", "frame_asset_id", "frame_sha256" ], "title": "RestoreManualFrame" }, "Retry": { "properties": { "expected_run_version": { "type": "integer", "minimum": 1.0, "title": "Expected Run Version" }, "target_job_id": { "type": "string", "title": "Target Job Id" } }, "additionalProperties": false, "type": "object", "required": [ "expected_run_version", "target_job_id" ], "title": "Retry" }, "ReviewTurns": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "report_sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$", "title": "Report Sha256" }, "decision": { "type": "string", "const": "accept", "title": "Decision" }, "note": { "type": "string", "maxLength": 1000, "minLength": 1, "title": "Note" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version", "report_sha256", "decision", "note" ], "title": "ReviewTurns" }, "RunCreate": { "properties": { "output_folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Output Folder Id" }, "draft_revision": { "type": "integer", "minimum": 1.0, "title": "Draft Revision" }, "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "execution_mode": { "type": "string", "enum": [ "interactive", "batch" ], "title": "Execution Mode", "default": "interactive" }, "reuse_run_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Reuse Run Id" } }, "additionalProperties": false, "type": "object", "required": [ "draft_revision", "expected_version" ], "title": "RunCreate" }, "SaveEditor": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "manifest": { "anyOf": [ { "$ref": "#/components/schemas/EditorManifest" }, { "$ref": "#/components/schemas/EditorManifestV2" }, { "$ref": "#/components/schemas/EditorManifestV3" }, { "$ref": "#/components/schemas/EditorManifestV4" } ], "title": "Manifest" }, "name": { "anyOf": [ { "type": "string", "maxLength": 255, "minLength": 1 }, { "type": "null" } ], "title": "Name" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version", "manifest" ], "title": "SaveEditor" }, "Scene": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "name": { "type": "string", "title": "Name", "default": "" }, "description": { "type": "string", "title": "Description", "default": "" }, "reference_asset_ids": { "items": { "type": "string" }, "type": "array", "title": "Reference Asset Ids" }, "location": { "type": "string", "title": "Location", "default": "" }, "time": { "type": "string", "title": "Time", "default": "" }, "weather": { "type": "string", "title": "Weather", "default": "" }, "lighting": { "type": "string", "title": "Lighting", "default": "" } }, "additionalProperties": false, "type": "object", "required": [ "id" ], "title": "Scene" }, "SelectionClear": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "shot_id": { "type": "string", "title": "Shot Id" }, "kind": { "type": "string", "enum": [ "frame", "video", "end_frame" ], "title": "Kind" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version", "shot_id", "kind" ], "title": "SelectionClear" }, "SelectionCreate": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "shot_id": { "type": "string", "title": "Shot Id" }, "kind": { "type": "string", "enum": [ "frame", "video", "end_frame" ], "title": "Kind" }, "candidate_id": { "type": "string", "title": "Candidate Id" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version", "shot_id", "kind", "candidate_id" ], "title": "SelectionCreate" }, "SharedImport": { "properties": { "folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Folder Id" } }, "additionalProperties": false, "type": "object", "title": "SharedImport" }, "Shot": { "properties": { "key": { "type": "string", "pattern": "^shot_[1-9][0-9]{0,3}$", "title": "Key" }, "prompt": { "type": "string", "maxLength": 8000, "minLength": 1, "title": "Prompt" }, "duration_frames": { "type": "integer", "maximum": 360.0, "minimum": 24.0, "title": "Duration Frames", "default": 120 }, "image_asset_id": { "anyOf": [ { "type": "string", "maxLength": 64, "minLength": 1 }, { "type": "null" } ], "title": "Image Asset Id" }, "parameters": { "$ref": "#/components/schemas/ShotParameters" } }, "additionalProperties": false, "type": "object", "required": [ "key", "prompt" ], "title": "Shot" }, "ShotContinuity": { "properties": { "transition": { "type": "string", "enum": [ "cut", "continue", "scene_change" ], "title": "Transition", "default": "cut" }, "group_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Group Id" }, "state_in": { "$ref": "#/components/schemas/ContinuityState" }, "state_out": { "$ref": "#/components/schemas/ContinuityState" }, "end_prompt": { "type": "string", "title": "End Prompt", "default": "" }, "expected_motion": { "type": "boolean", "title": "Expected Motion", "default": true }, "endpoint_mode": { "type": "string", "enum": [ "first_frame", "first_last_frame" ], "title": "Endpoint Mode", "default": "first_frame" } }, "additionalProperties": false, "type": "object", "title": "ShotContinuity" }, "ShotParameters": { "properties": { "seed": { "type": "integer", "maximum": 4294967295.0, "minimum": 0.0, "title": "Seed", "default": 42 }, "profile": { "anyOf": [ { "type": "string", "enum": [ "minimax-h3-fl2va-bf16-v1", "minimax-h3-fl2va-bf16-tp2-v1", "wan2.2-ti2v-5b-v1" ] }, { "type": "null" } ], "title": "Profile" } }, "additionalProperties": false, "type": "object", "title": "ShotParameters" }, "ShotPerformance": { "properties": { "sequence_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Sequence Id" }, "native_utterance_ids": { "anyOf": [ { "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "type": "array", "maxItems": 1000 }, { "type": "null" } ], "title": "Native Utterance Ids" }, "visible_speaker_ids": { "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "type": "array", "maxItems": 2, "title": "Visible Speaker Ids" }, "lip_sync": { "type": "string", "enum": [ "auto", "required", "off" ], "title": "Lip Sync", "default": "auto" }, "audio_context_shift_frames": { "type": "integer", "maximum": 6.0, "minimum": -6.0, "title": "Audio Context Shift Frames", "default": 0 }, "duration_mode": { "type": "string", "enum": [ "auto", "fixed" ], "title": "Duration Mode", "default": "auto" }, "structure_locked": { "type": "boolean", "title": "Structure Locked", "default": false }, "original_audio": { "type": "string", "enum": [ "discard", "preserve" ], "title": "Original Audio", "default": "discard" } }, "additionalProperties": false, "type": "object", "title": "ShotPerformance" }, "ShotPerformanceV6": { "properties": { "sequence_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Sequence Id" }, "native_utterance_ids": { "anyOf": [ { "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "type": "array", "maxItems": 1000 }, { "type": "null" } ], "title": "Native Utterance Ids" }, "visible_speaker_ids": { "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "type": "array", "maxItems": 2, "title": "Visible Speaker Ids" }, "lip_sync": { "type": "string", "enum": [ "auto", "required", "off" ], "title": "Lip Sync", "default": "auto" }, "audio_context_shift_frames": { "type": "integer", "maximum": 6.0, "minimum": -6.0, "title": "Audio Context Shift Frames", "default": 0 }, "duration_mode": { "type": "string", "enum": [ "auto", "fixed" ], "title": "Duration Mode", "default": "auto" }, "structure_locked": { "type": "boolean", "title": "Structure Locked", "default": false }, "original_audio": { "type": "string", "enum": [ "discard", "preserve" ], "title": "Original Audio", "default": "discard" }, "dialogue_staging": { "anyOf": [ { "type": "string", "const": "two_person_turns" }, { "type": "null" } ], "title": "Dialogue Staging" }, "first_frame_sha256": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{64}$" }, { "type": "null" } ], "title": "First Frame Sha256" }, "listener_reactions": { "patternProperties": { "^[0-9a-f]{32}$": { "type": "string", "maxLength": 500 } }, "type": "object", "maxProperties": 1000, "title": "Listener Reactions" } }, "additionalProperties": false, "type": "object", "title": "ShotPerformanceV6" }, "StartEditor": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" }, "output_goal": { "type": "string", "enum": [ "media", "film", "caption_film", "caption_inspect", "mix_film" ], "title": "Output Goal", "default": "film" }, "targets": { "items": { "type": "string" }, "type": "array", "maxItems": 3002, "title": "Targets" }, "force": { "items": { "type": "string" }, "type": "array", "maxItems": 3002, "title": "Force" }, "execution_mode": { "type": "string", "enum": [ "interactive", "batch" ], "title": "Execution Mode", "default": "interactive" }, "output_folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Output Folder Id" }, "expected_plan_hash": { "type": "string", "pattern": "^[0-9a-f]{64}$", "title": "Expected Plan Hash" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version", "expected_plan_hash" ], "title": "StartEditor" }, "StoryCreate": { "properties": { "captions_mode": { "anyOf": [ { "type": "string", "enum": [ "none", "manual", "script", "ai_script" ] }, { "type": "null" } ], "title": "Captions Mode" }, "caption_presentation": { "anyOf": [ { "$ref": "#/components/schemas/CaptionPresentation" }, { "type": "null" } ] }, "create_folder": { "type": "boolean", "title": "Create Folder", "default": true }, "folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Folder Id" }, "name": { "type": "string", "maxLength": 255, "minLength": 1, "title": "Name" }, "spec": { "anyOf": [ { "$ref": "#/components/schemas/StorySpecV3" }, { "$ref": "#/components/schemas/StorySpecV4" }, { "$ref": "#/components/schemas/StorySpecV5" }, { "$ref": "#/components/schemas/StorySpecV6" } ], "title": "Spec" } }, "additionalProperties": false, "type": "object", "required": [ "name", "spec" ], "title": "StoryCreate" }, "StoryPatch": { "properties": { "folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Folder Id" }, "name": { "anyOf": [ { "type": "string", "maxLength": 255, "minLength": 1 }, { "type": "null" } ], "title": "Name" }, "spec": { "anyOf": [ { "$ref": "#/components/schemas/StorySpecV3" }, { "$ref": "#/components/schemas/StorySpecV4" }, { "$ref": "#/components/schemas/StorySpecV5" }, { "$ref": "#/components/schemas/StorySpecV6" }, { "type": "null" } ], "title": "Spec" } }, "additionalProperties": false, "type": "object", "title": "StoryPatch" }, "StoryShot": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "name": { "type": "string", "title": "Name", "default": "" }, "scene_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Scene Id" }, "cast": { "items": { "$ref": "#/components/schemas/Cast" }, "type": "array", "title": "Cast" }, "visual_prompt": { "type": "string", "maxLength": 8000, "title": "Visual Prompt", "default": "" }, "motion_prompt": { "type": "string", "maxLength": 8000, "title": "Motion Prompt", "default": "" }, "overrides": { "$ref": "#/components/schemas/Overrides" }, "frame_parameters": { "$ref": "#/components/schemas/FrameParameters" }, "video_parameters": { "$ref": "#/components/schemas/VideoParameters" }, "edit": { "$ref": "#/components/schemas/Edit" } }, "additionalProperties": false, "type": "object", "required": [ "id" ], "title": "StoryShot" }, "StoryShotV4": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "name": { "type": "string", "title": "Name", "default": "" }, "scene_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Scene Id" }, "cast": { "items": { "$ref": "#/components/schemas/Cast" }, "type": "array", "title": "Cast" }, "visual_prompt": { "type": "string", "maxLength": 8000, "title": "Visual Prompt", "default": "" }, "motion_prompt": { "type": "string", "maxLength": 8000, "title": "Motion Prompt", "default": "" }, "overrides": { "$ref": "#/components/schemas/Overrides" }, "frame_parameters": { "$ref": "#/components/schemas/FrameParameters" }, "video_parameters": { "anyOf": [ { "$ref": "#/components/schemas/NativeVideoParameters" }, { "$ref": "#/components/schemas/VideoParameters" } ], "title": "Video Parameters" }, "edit": { "$ref": "#/components/schemas/EditV4" }, "continuity": { "$ref": "#/components/schemas/ShotContinuity" } }, "additionalProperties": false, "type": "object", "required": [ "id" ], "title": "StoryShotV4" }, "StoryShotV5": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "name": { "type": "string", "title": "Name", "default": "" }, "scene_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Scene Id" }, "cast": { "items": { "$ref": "#/components/schemas/Cast" }, "type": "array", "title": "Cast" }, "visual_prompt": { "type": "string", "maxLength": 8000, "title": "Visual Prompt", "default": "" }, "motion_prompt": { "type": "string", "maxLength": 8000, "title": "Motion Prompt", "default": "" }, "overrides": { "$ref": "#/components/schemas/Overrides" }, "frame_parameters": { "$ref": "#/components/schemas/FrameParameters" }, "video_parameters": { "anyOf": [ { "$ref": "#/components/schemas/NativeAvVideoParameters" }, { "$ref": "#/components/schemas/NativeVideoParameters" }, { "$ref": "#/components/schemas/VideoParameters" } ], "title": "Video Parameters" }, "edit": { "$ref": "#/components/schemas/EditV4" }, "continuity": { "$ref": "#/components/schemas/ShotContinuity" }, "performance": { "$ref": "#/components/schemas/ShotPerformance" } }, "additionalProperties": false, "type": "object", "required": [ "id" ], "title": "StoryShotV5" }, "StoryShotV6": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "name": { "type": "string", "title": "Name", "default": "" }, "scene_id": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" } ], "title": "Scene Id" }, "cast": { "items": { "$ref": "#/components/schemas/Cast" }, "type": "array", "title": "Cast" }, "visual_prompt": { "type": "string", "maxLength": 8000, "title": "Visual Prompt", "default": "" }, "motion_prompt": { "type": "string", "maxLength": 8000, "title": "Motion Prompt", "default": "" }, "overrides": { "$ref": "#/components/schemas/Overrides" }, "frame_parameters": { "$ref": "#/components/schemas/FrameParameters" }, "video_parameters": { "anyOf": [ { "$ref": "#/components/schemas/NativeAvVideoParameters" }, { "$ref": "#/components/schemas/NativeVideoParameters" }, { "$ref": "#/components/schemas/VideoParameters" } ], "title": "Video Parameters" }, "edit": { "$ref": "#/components/schemas/EditV4" }, "continuity": { "$ref": "#/components/schemas/ShotContinuity" }, "performance": { "$ref": "#/components/schemas/ShotPerformanceV6" } }, "additionalProperties": false, "type": "object", "required": [ "id" ], "title": "StoryShotV6" }, "StorySpecV3": { "properties": { "schema_version": { "type": "integer", "const": 3, "title": "Schema Version", "default": 3 }, "profile": { "type": "string", "enum": [ "landscape_1080_v1", "portrait_1080_v1" ], "title": "Profile", "default": "landscape_1080_v1" }, "context": { "$ref": "#/components/schemas/Context" }, "scenes": { "items": { "$ref": "#/components/schemas/Scene" }, "type": "array", "title": "Scenes" }, "entities": { "items": { "$ref": "#/components/schemas/Entity" }, "type": "array", "title": "Entities" }, "shots": { "items": { "$ref": "#/components/schemas/StoryShot" }, "type": "array", "maxItems": 1000, "minItems": 1, "title": "Shots" }, "render": { "$ref": "#/components/schemas/Render" } }, "additionalProperties": false, "type": "object", "required": [ "shots" ], "title": "StorySpecV3" }, "StorySpecV4": { "properties": { "schema_version": { "type": "integer", "const": 4, "title": "Schema Version", "default": 4 }, "profile": { "type": "string", "enum": [ "landscape_1080_v1", "portrait_1080_v1" ], "title": "Profile", "default": "landscape_1080_v1" }, "context": { "$ref": "#/components/schemas/Context" }, "scenes": { "items": { "$ref": "#/components/schemas/Scene" }, "type": "array", "title": "Scenes" }, "entities": { "items": { "$ref": "#/components/schemas/Entity" }, "type": "array", "title": "Entities" }, "shots": { "items": { "$ref": "#/components/schemas/StoryShotV4" }, "type": "array", "maxItems": 1000, "minItems": 1, "title": "Shots" }, "render": { "$ref": "#/components/schemas/RenderV4" } }, "additionalProperties": false, "type": "object", "required": [ "shots" ], "title": "StorySpecV4" }, "StorySpecV5": { "properties": { "schema_version": { "type": "integer", "const": 5, "title": "Schema Version", "default": 5 }, "profile": { "type": "string", "enum": [ "landscape_1080_v1", "portrait_1080_v1" ], "title": "Profile", "default": "landscape_1080_v1" }, "context": { "$ref": "#/components/schemas/Context" }, "scenes": { "items": { "$ref": "#/components/schemas/Scene" }, "type": "array", "title": "Scenes" }, "entities": { "items": { "$ref": "#/components/schemas/Entity" }, "type": "array", "title": "Entities" }, "shots": { "items": { "$ref": "#/components/schemas/StoryShotV5" }, "type": "array", "maxItems": 1000, "minItems": 1, "title": "Shots" }, "render": { "$ref": "#/components/schemas/RenderV4" }, "dialogue": { "$ref": "#/components/schemas/DialogueSpec" } }, "additionalProperties": false, "type": "object", "required": [ "shots" ], "title": "StorySpecV5" }, "StorySpecV6": { "properties": { "schema_version": { "type": "integer", "const": 6, "title": "Schema Version", "default": 6 }, "profile": { "type": "string", "enum": [ "landscape_1080_v1", "portrait_1080_v1" ], "title": "Profile", "default": "landscape_1080_v1" }, "context": { "$ref": "#/components/schemas/Context" }, "scenes": { "items": { "$ref": "#/components/schemas/Scene" }, "type": "array", "title": "Scenes" }, "entities": { "items": { "$ref": "#/components/schemas/Entity" }, "type": "array", "title": "Entities" }, "shots": { "items": { "$ref": "#/components/schemas/StoryShotV6" }, "type": "array", "maxItems": 1000, "minItems": 1, "title": "Shots" }, "render": { "$ref": "#/components/schemas/RenderV4" }, "dialogue": { "$ref": "#/components/schemas/DialogueSpecV6" } }, "additionalProperties": false, "type": "object", "required": [ "shots" ], "title": "StorySpecV6" }, "Submit": { "properties": { "execution_mode": { "type": "string", "enum": [ "interactive", "batch" ], "title": "Execution Mode", "default": "interactive" }, "task_type": { "type": "string", "title": "Task Type" }, "input": { "additionalProperties": true, "type": "object", "title": "Input" }, "parameters": { "additionalProperties": true, "type": "object", "title": "Parameters" }, "count": { "type": "integer", "maximum": 4.0, "minimum": 1.0, "title": "Count", "default": 1 }, "scheduled_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Scheduled At" }, "folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Folder Id" }, "output_folder_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Output Folder Id" } }, "additionalProperties": false, "type": "object", "required": [ "task_type" ], "title": "Submit" }, "Subtitle": { "properties": { "start_frame": { "type": "integer", "minimum": 0.0, "title": "Start Frame" }, "end_frame": { "type": "integer", "exclusiveMinimum": 0.0, "title": "End Frame" }, "text": { "type": "string", "maxLength": 2000, "minLength": 1, "title": "Text" } }, "additionalProperties": false, "type": "object", "required": [ "start_frame", "end_frame", "text" ], "title": "Subtitle" }, "TokenInput": { "properties": { "name": { "type": "string", "maxLength": 128, "minLength": 1, "title": "Name" }, "scopes": { "items": { "type": "string" }, "type": "array", "maxItems": 20, "title": "Scopes" }, "expires_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Expires At" } }, "additionalProperties": false, "type": "object", "required": [ "name", "scopes" ], "title": "TokenInput" }, "UserPatch": { "properties": { "display_name": { "anyOf": [ { "type": "string", "maxLength": 80, "minLength": 1 }, { "type": "null" } ], "title": "Display Name" }, "disabled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Disabled" } }, "type": "object", "title": "UserPatch" }, "UsernameChange": { "properties": { "username": { "type": "string", "maxLength": 64, "minLength": 1, "title": "Username" }, "current_password": { "type": "string", "maxLength": 256, "title": "Current Password" } }, "type": "object", "required": [ "username", "current_password" ], "title": "UsernameChange" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" }, "input": { "title": "Input" }, "ctx": { "type": "object", "title": "Context" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" }, "Variant": { "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{32}$", "title": "Id" }, "name": { "type": "string", "title": "Name", "default": "" }, "description": { "type": "string", "title": "Description", "default": "" }, "reference_asset_ids": { "items": { "type": "string" }, "type": "array", "title": "Reference Asset Ids" } }, "additionalProperties": false, "type": "object", "required": [ "id" ], "title": "Variant" }, "Version": { "properties": { "expected_version": { "type": "integer", "minimum": 1.0, "title": "Expected Version" } }, "additionalProperties": false, "type": "object", "required": [ "expected_version" ], "title": "Version" }, "VideoParameters": { "properties": { "seed": { "type": "integer", "maximum": 4294967295.0, "minimum": 0.0, "title": "Seed", "default": 42 }, "profile": { "anyOf": [ { "type": "string", "enum": [ "minimax-h3-fl2va-bf16-v1", "minimax-h3-fl2va-bf16-tp2-v1", "wan2.2-ti2v-5b-v1" ] }, { "type": "null" } ], "title": "Profile" }, "source_seconds": { "type": "integer", "maximum": 15.0, "minimum": 1.0, "title": "Source Seconds", "default": 5 }, "num_inference_steps": { "type": "integer", "maximum": 100.0, "minimum": 1.0, "title": "Num Inference Steps", "default": 50 }, "guidance_scale": { "type": "number", "maximum": 20.0, "minimum": 1.0, "title": "Guidance Scale", "default": 5.0 }, "upscale": { "type": "boolean", "title": "Upscale", "default": true } }, "additionalProperties": false, "type": "object", "title": "VideoParameters" }, "WorkflowSpec": { "properties": { "schema_version": { "type": "integer", "enum": [ 1, 2 ], "title": "Schema Version", "default": 1 }, "shots": { "items": { "$ref": "#/components/schemas/Shot" }, "type": "array", "maxItems": 1000, "minItems": 1, "title": "Shots" }, "profile": { "type": "string", "enum": [ "landscape_1080_v1", "portrait_1080_v1" ], "title": "Profile", "default": "landscape_1080_v1" }, "render": { "$ref": "#/components/schemas/Render" } }, "additionalProperties": false, "type": "object", "required": [ "shots" ], "title": "WorkflowSpec" } } } }