{"openapi":"3.1.0","info":{"title":"UseMO API","description":"UseMo REST API for brand-grounded video, image, headshot, face-swap, ad-campaign, social-post, SEO-article, and PPTX presentation generation. Authenticate with `X-API-Key: usm_...` or `Authorization: Bearer ...`, pass `X-Idempotency-Key` on paid writes, and poll `/api/v1/jobs/{job_id}` or subscribe to `/api/v1/webhooks`. Agent & MCP integration guide: https://usemo.com/agents.md (`https://api.usemo.com/mcp`).","version":"0.1.0"},"servers":[{"url":"https://api.usemo.com","description":"UseMo API"}],"paths":{"/api/health":{"get":{"tags":["health"],"summary":"Healthcheck","operationId":"healthcheck_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health/deep":{"get":{"tags":["health"],"summary":"Deep Healthcheck","operationId":"deep_healthcheck_api_health_deep_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/whoami":{"get":{"tags":["auth"],"summary":"Whoami","operationId":"whoami_api_auth_whoami_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/api-keys":{"get":{"tags":["auth"],"summary":"List Api Keys","operationId":"list_api_keys_api_auth_api_keys_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/APIKeyResponse"},"title":"Response List Api Keys Api Auth Api Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["auth"],"summary":"Create Api Key","operationId":"create_api_key_api_auth_api_keys_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/api-keys/{api_key_id}":{"delete":{"tags":["auth"],"summary":"Revoke Api Key","operationId":"revoke_api_key_api_auth_api_keys__api_key_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/api-keys/{api_key_id}/rotate":{"post":{"tags":["auth"],"summary":"Rotate Api Key","operationId":"rotate_api_key_api_auth_api_keys__api_key_id__rotate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/bootstrap-dev":{"post":{"tags":["auth"],"summary":"Bootstrap Dev","operationId":"bootstrap_dev_api_auth_bootstrap_dev_post","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}},{"name":"account_name","in":"query","required":true,"schema":{"type":"string","title":"Account Name"}},{"name":"workspace_name","in":"query","required":true,"schema":{"type":"string","title":"Workspace Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_api_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"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/google":{"post":{"tags":["auth"],"summary":"Google Auth","operationId":"google_auth_api_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthRequest"}}},"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/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"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/refresh":{"post":{"tags":["auth"],"summary":"Refresh","operationId":"refresh_api_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"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/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_api_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Logout Api Auth Logout Post"}}}},"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","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["auth"],"summary":"Update Me","operationId":"update_me_api_auth_me_put","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","operationId":"forgot_password_api_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"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/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_api_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"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/change-password":{"put":{"tags":["auth"],"summary":"Change Password","operationId":"change_password_api_auth_change_password_put","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/send-verification":{"post":{"tags":["auth"],"summary":"Send Verification","operationId":"send_verification_api_auth_send_verification_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/verify-email":{"post":{"tags":["auth"],"summary":"Verify Email","operationId":"verify_email_api_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequest"}}},"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/magic-link":{"post":{"tags":["auth"],"summary":"Magic Link","description":"Passwordless sign-in AND sign-up: existing emails get a sign-in link;\nnew emails get an account provisioned (unusable random password — login is\nGoogle/magic-link only) and the same link. Clicking the link is the email\nverification, so no separate verify mail is sent.","operationId":"magic_link_api_auth_magic_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkRequest"}}},"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/verify-magic-link":{"post":{"tags":["auth"],"summary":"Verify Magic Link","operationId":"verify_magic_link_api_auth_verify_magic_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequest"}}},"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/change-email":{"put":{"tags":["auth"],"summary":"Change Email","operationId":"change_email_api_auth_change_email_put","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeEmailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/verify-email-change":{"post":{"tags":["auth"],"summary":"Verify Email Change","operationId":"verify_email_change_api_auth_verify_email_change_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequest"}}},"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/check-domain-access":{"post":{"tags":["auth"],"summary":"Check Domain Access","description":"Whether an email's domain auto-grants membership to a workspace.\nMinimal v1: returns hasAccess=false (no domain-allowlist table in schema yet).\nExtend later by joining a future ``account_domains`` table.","operationId":"check_domain_access_api_auth_check_domain_access_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckDomainAccessRequest"}}},"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/register-with-domain":{"post":{"tags":["auth"],"summary":"Register With Domain","description":"Same as /register today; a domain-join path will fork here once domain allowlists land.\n\nNB: must forward the real Request — the old 2-arg delegation bound the db session\nto register()'s `request` parameter and 500'd on every call (audit finding #4).","operationId":"register_with_domain_api_auth_register_with_domain_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"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/invite":{"post":{"tags":["auth"],"summary":"Invite","operationId":"invite_api_auth_invite_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/accept-invite":{"post":{"tags":["auth"],"summary":"Accept Invite","operationId":"accept_invite_api_auth_accept_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInviteRequest"}}},"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/mcp-consent":{"get":{"tags":["auth"],"summary":"Get Mcp Consent Session","description":"Return safe display metadata and authorized workspaces for a pending MCP OAuth request.","operationId":"get_mcp_consent_session_api_auth_mcp_consent_get","parameters":[{"name":"txn","in":"query","required":true,"schema":{"type":"string","title":"Txn"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/mcp-consent/authorize":{"post":{"tags":["auth"],"summary":"Authorize Mcp Consent Session","description":"Approve a pending MCP OAuth request using the caller's native/Google session.","operationId":"authorize_mcp_consent_session_api_auth_mcp_consent_authorize_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpConsentAuthorizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/free-tools/logo-pop/access":{"post":{"tags":["free-tools"],"summary":"Request Logo Pop Access","description":"Capture a lead and email a tool-scoped verification link.","operationId":"request_logo_pop_access_api_free_tools_logo_pop_access_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoPopAccessRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/free-tools/logo-pop/verify":{"post":{"tags":["free-tools"],"summary":"Verify Logo Pop Access","description":"Verify mailbox control and return a tool-only access grant.","operationId":"verify_logo_pop_access_api_free_tools_logo_pop_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/free-tools/logo-pop/check":{"post":{"tags":["free-tools"],"summary":"Check Logo Pop Access","operationId":"check_logo_pop_access_api_free_tools_logo_pop_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/free-tools/logo-pop/events":{"post":{"tags":["free-tools"],"summary":"Record Logo Pop Event","description":"Store an allow-listed event. Unknown metadata, including pixels, is dropped.","operationId":"record_logo_pop_event_api_free_tools_logo_pop_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoPopEventBody"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/free-tools/events":{"post":{"tags":["free-tools"],"summary":"Record Free Tool Event","description":"Record one strictly allow-listed, content-free anonymous funnel event.","operationId":"record_free_tool_event_api_free_tools_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreeToolEventBody"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/free-tools/ugc-ad-script/plan":{"post":{"tags":["free-tools"],"summary":"Create Ugc Ad Plan","description":"Write hooks, a verbatim script, and a shot list. Never spends GPU.","operationId":"create_ugc_ad_plan_api_free_tools_ugc_ad_script_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__ugc_ad_planner__PlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/track":{"post":{"tags":["analytics"],"summary":"Track Event","operationId":"track_event_api_analytics_track_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/product-events":{"post":{"tags":["analytics"],"summary":"Product Event","operationId":"product_event_api_analytics_product_events_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductEventRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/individual-performance":{"get":{"tags":["analytics"],"summary":"Get Individual Performance","operationId":"get_individual_performance_api_analytics_individual_performance_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"userId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/predict-engagement":{"post":{"tags":["analytics"],"summary":"Predict Engagement","operationId":"predict_engagement_api_analytics_predict_engagement_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/usage":{"get":{"tags":["analytics"],"summary":"Get Usage Analytics","operationId":"get_usage_analytics_api_analytics_usage_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/storage":{"get":{"tags":["analytics"],"summary":"Get Storage Analytics","operationId":"get_storage_analytics_api_analytics_storage_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/team-activity":{"get":{"tags":["analytics"],"summary":"Get Team Activity Analytics","operationId":"get_team_activity_analytics_api_analytics_team_activity_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsTeamActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/costs":{"get":{"tags":["analytics"],"summary":"Get Cost Analytics","description":"Estimated COGS and accept-rate per provider/model — the margin dashboard.\n\nSums the per-asset cost estimates stamped at finalize time and joins them\nwith review outcomes so cost_per_accepted_asset is a first-class number.","operationId":"get_cost_analytics_api_analytics_costs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets":{"get":{"tags":["assets"],"summary":"List Assets","operationId":"list_assets_api_assets_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"review_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Status"}},{"name":"is_favorite","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Favorite"}},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"}},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Before"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort By"}},{"name":"sort_direction","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Direction"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetResponse"},"title":"Response List Assets Api Assets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/signed":{"get":{"tags":["assets"],"summary":"Signed Asset Path","operationId":"signed_asset_path_api_assets_signed_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"raw","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Raw"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/search":{"get":{"tags":["assets"],"summary":"Semantic Search Assets","description":"TurboVec semantic search: embed the query text, coarse hamming scan over\nthe workspace's quantized codes, exact cosine rerank.","operationId":"semantic_search_assets_api_assets_search_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":2000,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetResponse"},"title":"Response Semantic Search Assets Api Assets Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/{asset_id}/similar":{"get":{"tags":["assets"],"summary":"Similar Assets","description":"Nearest neighbors of an already-indexed asset (dedup / variations).","operationId":"similar_assets_api_assets__asset_id__similar_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetResponse"},"title":"Response Similar Assets Api Assets  Asset Id  Similar Get"}}}},"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","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["assets"],"summary":"Update Asset","operationId":"update_asset_api_assets__asset_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"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","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"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}/quality":{"get":{"tags":["assets"],"summary":"Get Asset Quality","operationId":"get_asset_quality_api_assets__asset_id__quality_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/bulk-update":{"post":{"tags":["assets"],"summary":"Bulk Update Assets","operationId":"bulk_update_assets_api_assets_bulk_update_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBulkUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetResponse"},"title":"Response Bulk Update Assets Api Assets Bulk Update Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/bulk-delete":{"post":{"tags":["assets"],"summary":"Bulk Delete Assets","operationId":"bulk_delete_assets_api_assets_bulk_delete_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBulkDeleteRequest"}}}},"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}/download":{"post":{"tags":["assets"],"summary":"Signed Download Url","operationId":"signed_download_url_api_assets__asset_id__download_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SignedDownloadRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/upload":{"post":{"tags":["assets"],"summary":"Upload Asset","operationId":"upload_asset_api_assets_upload_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_asset_api_assets_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assets/{asset_id}/share-links":{"post":{"tags":["assets"],"summary":"Create Asset Share Link","operationId":"create_asset_share_link_api_assets__asset_id__share_links_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetShareLinkCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetShareLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/assets/{token}":{"get":{"tags":["assets"],"summary":"Get Shared Asset","operationId":"get_shared_asset_api_share_assets__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"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}/lineage":{"get":{"tags":["assets"],"summary":"Get Asset Lineage","operationId":"get_asset_lineage_api_assets__asset_id__lineage_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLineageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/credits/balance":{"get":{"tags":["dashboard-compat"],"summary":"Credits Balance","description":"FE shape: CreditsBalance {available, used, limit, resetsAt, plan, generations?}.","operationId":"credits_balance_api_credits_balance_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/usage/stats":{"get":{"tags":["dashboard-compat"],"summary":"Usage Stats","description":"FE shape: UsageStats {total_operations, week_operations, avg_generation_time, streak, activity_dates}.","operationId":"usage_stats_api_usage_stats_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"timeframe","in":"query","required":false,"schema":{"type":"string","default":"month","title":"Timeframe"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/dashboard-stats":{"get":{"tags":["dashboard-compat"],"summary":"Dashboard Stats","description":"FE shape: DashboardStats {totalCreations, thisWeek, avgTime, streak}.","operationId":"dashboard_stats_api_analytics_dashboard_stats_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/artifacts":{"get":{"tags":["dashboard-compat"],"summary":"Artifacts Feed","description":"FE shape: { artifacts: Artifact[], total, limit, offset }.\n\n'Artifacts' in the dashboard sense are the workspace's ready Assets (the\nuser's recent creations), newest first.","operationId":"artifacts_feed_api_artifacts_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":24,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/digital-twins":{"get":{"tags":["frontend-compat"],"summary":"Compat List Digital Twins","operationId":"compat_list_digital_twins_api_digital_twins_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["frontend-compat"],"summary":"Compat Create Digital Twin","operationId":"compat_create_digital_twin_api_digital_twins_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/digital-twins/{twin_id}":{"patch":{"tags":["frontend-compat"],"summary":"Compat Update Digital Twin","operationId":"compat_update_digital_twin_api_digital_twins__twin_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatTwinUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["frontend-compat"],"summary":"Compat Delete Digital Twin","operationId":"compat_delete_digital_twin_api_digital_twins__twin_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/text/generate":{"post":{"tags":["frontend-compat"],"summary":"Compat Generate Text","operationId":"compat_generate_text_api_text_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatTextGenerateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/packs/preview":{"post":{"tags":["frontend-compat"],"summary":"Compat Pack Preview","operationId":"compat_pack_preview_api_packs_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatPackBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/image/generate-from-pack":{"post":{"tags":["frontend-compat"],"summary":"Compat Image Generate From Pack","operationId":"compat_image_generate_from_pack_api_image_generate_from_pack_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatPackBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/generate-from-pack":{"post":{"tags":["frontend-compat"],"summary":"Compat Video Generate From Pack","operationId":"compat_video_generate_from_pack_api_video_generate_from_pack_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatPackBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/config":{"get":{"tags":["frontend-compat"],"summary":"Compat Files Config","description":"Static config in the FilestackConfig shape services/filestackService.ts\nreads. There is no Filestack account — uploads go through the native\n/assets/upload (aliased below as /files/upload).","operationId":"compat_files_config_api_files_config_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/upload":{"post":{"tags":["frontend-compat"],"summary":"Compat Files Upload","operationId":"compat_files_upload_api_files_upload_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_compat_files_upload_api_files_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations":{"post":{"tags":["frontend-compat"],"summary":"Compat Create Organization","operationId":"compat_create_organization_api_organizations_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatOrgCreateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads":{"post":{"tags":["frontend-compat"],"summary":"Capture Lead","description":"Deliberately pre-auth (public email-capture modal on the marketing hero).\nThrottled per IP AND per email so it can't be used to spam rows.","operationId":"capture_lead_api_leads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCaptureBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/items/{item_id}":{"get":{"tags":["frontend-compat"],"summary":"Compat Get Content Item","description":"SharePage passes the /share/:type/:shareId path id here. That id is a\nshare-link TOKEN on links minted by the share machinery, so try the public\ntoken lookup first (identical posture to GET /share/assets/{token}). If it\nis not a token, fall back to an AUTHENTICATED workspace-scoped asset fetch.\nAn unauthenticated caller can only ever see what the share machinery would\nserve — private assets stay private.","operationId":"compat_get_content_item_api_content_items__item_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batches":{"get":{"tags":["batches"],"summary":"List Batches","operationId":"list_batches_api_batches_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batches/generate":{"post":{"tags":["batches"],"summary":"Create Generation Batch","operationId":"create_generation_batch_api_batches_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batches/{batch_id}":{"get":{"tags":["batches"],"summary":"Get Batch","operationId":"get_batch_api_batches__batch_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batches/{batch_id}/jobs":{"get":{"tags":["batches"],"summary":"List Batch Jobs","operationId":"list_batch_jobs_api_batches__batch_id__jobs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchJobsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batches/{batch_id}/cancel":{"post":{"tags":["batches"],"summary":"Cancel Batch","operationId":"cancel_batch_api_batches__batch_id__cancel_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batches/{batch_id}/retry-failed":{"post":{"tags":["batches"],"summary":"Retry Failed Batch Jobs","operationId":"retry_failed_batch_jobs_api_batches__batch_id__retry_failed_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batches/{batch_id}/manifest":{"get":{"tags":["batches"],"summary":"Get Batch Manifest","operationId":"get_batch_manifest_api_batches__batch_id__manifest_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchManifestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brands":{"get":{"tags":["brands"],"summary":"List Brand Kits","operationId":"list_brand_kits_api_brands_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BrandKitResponse"},"title":"Response List Brand Kits Api Brands Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["brands"],"summary":"Create Brand Kit","operationId":"create_brand_kit_api_brands_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandKitCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandKitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brands/{brand_id}":{"patch":{"tags":["brands"],"summary":"Update Brand Kit","operationId":"update_brand_kit_api_brands__brand_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","title":"Brand Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandKitUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandKitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["brands"],"summary":"Delete Brand Kit","operationId":"delete_brand_kit_api_brands__brand_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","title":"Brand Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/capabilities/generation":{"get":{"tags":["capabilities"],"summary":"Generation Capabilities","operationId":"generation_capabilities_api_capabilities_generation_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whoami":{"get":{"tags":["capabilities"],"summary":"Whoami","description":"Safe, secret-free caller identity, workspace, billing balance, and plan limits.","operationId":"whoami_api_whoami_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/capability-canary/jobs/{job_id}/terminal":{"get":{"tags":["internal"],"summary":"Get Capability Canary Terminal","description":"Read one redacted terminal receipt; never expose the public job payload.","operationId":"get_capability_canary_terminal_api_internal_capability_canary_jobs__job_id__terminal_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"x-capability-canary-grant","in":"header","required":true,"schema":{"type":"string","minLength":64,"title":"X-Capability-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/capability-canary/teardown":{"post":{"tags":["internal"],"summary":"Teardown Capability Canary","description":"Cancel tickets and prove the dedicated GPU footprint is zero.","operationId":"teardown_capability_canary_api_internal_capability_canary_teardown_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-capability-canary-grant","in":"header","required":true,"schema":{"type":"string","minLength":64,"title":"X-Capability-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/capability-canary/preflight":{"get":{"tags":["internal"],"summary":"Capability Canary Preflight","description":"Issue one opaque run grant after all zero-generation checks pass.","operationId":"capability_canary_preflight_api_internal_capability_canary_preflight_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"manifest_digest","in":"query","required":true,"schema":{"type":"string","minLength":64,"maxLength":64,"title":"Manifest Digest"}},{"name":"expected_sha","in":"query","required":true,"schema":{"type":"string","minLength":40,"maxLength":40,"title":"Expected Sha"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/capability-canary/h3-max/preflight":{"get":{"tags":["internal"],"summary":"H3 Max Canary Preflight","description":"Issue a hosted H3 Max grant after zero-inference checks pass.","operationId":"h3_max_canary_preflight_api_internal_capability_canary_h3_max_preflight_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"manifest_digest","in":"query","required":true,"schema":{"type":"string","minLength":64,"maxLength":64,"title":"Manifest Digest"}},{"name":"prompt_manifest_digest","in":"query","required":true,"schema":{"type":"string","minLength":71,"maxLength":71,"title":"Prompt Manifest Digest"}},{"name":"expected_sha","in":"query","required":true,"schema":{"type":"string","minLength":40,"maxLength":40,"title":"Expected Sha"}},{"name":"run_nonce","in":"query","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"title":"Run Nonce"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/capability-canary/h3-avatar/preflight":{"get":{"tags":["internal"],"summary":"H3 Avatar Canary Preflight","description":"Run exact-revision/node checks without generation or resource actions.","operationId":"h3_avatar_canary_preflight_api_internal_capability_canary_h3_avatar_preflight_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"expected_sha","in":"query","required":true,"schema":{"type":"string","minLength":40,"maxLength":40,"title":"Expected Sha"}},{"name":"contract_profile","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64,"default":"production","title":"Contract Profile"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/capability-canary/h3-avatar/research/prestart":{"post":{"tags":["internal"],"summary":"Authorize H3 Avatar Research Prestart","description":"Durably reserve the matched A/B before H100 start.","operationId":"authorize_h3_avatar_research_prestart_api_internal_capability_canary_h3_avatar_research_prestart_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-H3-Research-Pregen-Claim","in":"header","required":true,"schema":{"type":"string","minLength":32,"maxLength":512,"title":"X-H3-Research-Pregen-Claim"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/capability-canary/h3-avatar/research/grant":{"post":{"tags":["internal"],"summary":"Issue H3 Avatar Research Execution Grant","description":"Bind one consumable dispatch grant to off/fuse/release evidence.","operationId":"issue_h3_avatar_research_execution_grant_api_internal_capability_canary_h3_avatar_research_grant_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-H3-Research-Execution-Grant","in":"header","required":true,"schema":{"type":"string","minLength":32,"maxLength":512,"title":"X-H3-Research-Execution-Grant"}},{"name":"X-GitHub-OIDC-Token","in":"header","required":true,"schema":{"type":"string","minLength":128,"maxLength":16384,"title":"X-Github-Oidc-Token"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/capability-canary/h3-avatar/dispatch":{"post":{"tags":["internal"],"summary":"Dispatch H3 Avatar Canary","description":"Dispatch one zero-customer-billing synthetic canary after live preflight.","operationId":"dispatch_h3_avatar_canary_api_internal_capability_canary_h3_avatar_dispatch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":200,"title":"X-Idempotency-Key"}},{"name":"X-H3-Research-Execution-Grant","in":"header","required":false,"schema":{"type":"string","maxLength":512,"default":"","title":"X-H3-Research-Execution-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/capability-canary/h3-avatar/jobs/{job_id}/terminal":{"get":{"tags":["internal"],"summary":"Get H3 Avatar Canary Terminal","description":"Independently re-hash stored output and replay its qualification receipt.","operationId":"get_h3_avatar_canary_terminal_api_internal_capability_canary_h3_avatar_jobs__job_id__terminal_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/recipes":{"get":{"tags":["internal"],"summary":"List Model Qualification Recipes","operationId":"list_model_qualification_recipes_api_internal_model_qualifications_recipes_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications":{"post":{"tags":["internal"],"summary":"Create Model Qualification","operationId":"create_model_qualification_api_internal_model_qualifications_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateQualificationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/wan-motion-fixtures":{"get":{"tags":["internal"],"summary":"Get Wan Motion Fixtures","operationId":"get_wan_motion_fixtures_api_internal_model_qualifications_wan_motion_fixtures_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["internal"],"summary":"Prepare Wan Motion Fixture","operationId":"prepare_wan_motion_fixture_api_internal_model_qualifications_wan_motion_fixtures_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareWanMotionFixtureRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/wan-motion-fixtures/{fixture_id}/disable":{"post":{"tags":["internal"],"summary":"Disable Wan Motion Fixture Route","operationId":"disable_wan_motion_fixture_route_api_internal_model_qualifications_wan_motion_fixtures__fixture_id__disable_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"fixture_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Fixture Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/wan-cases/prepare":{"post":{"tags":["internal"],"summary":"Prepare Wan Case","operationId":"prepare_wan_case_api_internal_model_qualifications_wan_cases_prepare_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareWanQualificationCaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/wan-cases":{"get":{"tags":["internal"],"summary":"Get Wan Cases","operationId":"get_wan_cases_api_internal_model_qualifications_wan_cases_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/wan-cases/{prepared_case_id}/disable":{"post":{"tags":["internal"],"summary":"Disable Wan Case","operationId":"disable_wan_case_api_internal_model_qualifications_wan_cases__prepared_case_id__disable_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"prepared_case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prepared Case Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/wan-activations":{"post":{"tags":["internal"],"summary":"Activate Wan","operationId":"activate_wan_api_internal_model_qualifications_wan_activations_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateWanQualificationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/h3-cases/prepare":{"post":{"tags":["internal"],"summary":"Prepare H3 Case","operationId":"prepare_h3_case_api_internal_model_qualifications_h3_cases_prepare_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareH3QualificationCaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/h3-activations":{"post":{"tags":["internal"],"summary":"Activate H3","operationId":"activate_h3_api_internal_model_qualifications_h3_activations_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateH3QualificationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/{run_id}":{"get":{"tags":["internal"],"summary":"Get Model Qualification","operationId":"get_model_qualification_api_internal_model_qualifications__run_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/{run_id}/stop":{"post":{"tags":["internal"],"summary":"Stop Model Qualification","operationId":"stop_model_qualification_api_internal_model_qualifications__run_id__stop_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/{run_id}/resume":{"post":{"tags":["internal"],"summary":"Resume Model Qualification","operationId":"resume_model_qualification_api_internal_model_qualifications__run_id__resume_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/model-qualifications/{run_id}/tick":{"post":{"tags":["internal"],"summary":"Tick Model Qualification","operationId":"tick_model_qualification_api_internal_model_qualifications__run_id__tick_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/clip-studio/capabilities":{"get":{"tags":["creator-clip-studio"],"summary":"Clip Capabilities","operationId":"clip_capabilities_api_creator_clip_studio_capabilities_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/clip-studio/plans":{"post":{"tags":["creator-clip-studio"],"summary":"Create Clip Plan","operationId":"create_clip_plan_api_creator_clip_studio_plans_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipPlanCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/clip-studio/plans/{plan_id}":{"get":{"tags":["creator-clip-studio"],"summary":"Get Clip Plan","operationId":"get_clip_plan_api_creator_clip_studio_plans__plan_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["creator-clip-studio"],"summary":"Delete Clip Plan","operationId":"delete_clip_plan_api_creator_clip_studio_plans__plan_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/clip-studio/plans/{plan_id}/render":{"post":{"tags":["creator-clip-studio"],"summary":"Render Clip Plan","operationId":"render_clip_plan_api_creator_clip_studio_plans__plan_id__render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipRenderDispatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/video-reframer/capabilities":{"get":{"tags":["creator-video-reframer"],"summary":"Capabilities","operationId":"capabilities_api_creator_video_reframer_capabilities_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/video-reframer/projects":{"post":{"tags":["creator-video-reframer"],"summary":"Create Project","operationId":"create_project_api_creator_video_reframer_projects_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoReframeProjectCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoReframeProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["creator-video-reframer"],"summary":"List Projects","operationId":"list_projects_api_creator_video_reframer_projects_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VideoReframeProjectResponse"},"title":"Response List Projects Api Creator Video Reframer Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/video-reframer/projects/{project_id}":{"get":{"tags":["creator-video-reframer"],"summary":"Get Project","operationId":"get_project_api_creator_video_reframer_projects__project_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoReframeProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["creator-video-reframer"],"summary":"Delete Project","operationId":"delete_project_api_creator_video_reframer_projects__project_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/video-reframer/projects/{project_id}/render":{"post":{"tags":["creator-video-reframer"],"summary":"Render Project","operationId":"render_project_api_creator_video_reframer_projects__project_id__render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoReframeRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoReframeDispatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/subtitle-studio/capabilities":{"get":{"tags":["creator-subtitle-studio"],"summary":"Capabilities","operationId":"capabilities_api_creator_subtitle_studio_capabilities_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/subtitle-studio/transcription/agreement":{"get":{"tags":["creator-subtitle-studio"],"summary":"Get Transcription Agreement","operationId":"get_transcription_agreement_api_creator_subtitle_studio_transcription_agreement_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/subtitle-studio/transcription/consents":{"post":{"tags":["creator-subtitle-studio"],"summary":"Create Transcription Consent","operationId":"create_transcription_consent_api_creator_subtitle_studio_transcription_consents_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttConsentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/subtitle-studio/transcription/consents/{consent_id}/withdraw":{"post":{"tags":["creator-subtitle-studio"],"summary":"Withdraw Transcription Consent","operationId":"withdraw_transcription_consent_api_creator_subtitle_studio_transcription_consents__consent_id__withdraw_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"consent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Consent Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttConsentWithdrawal"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/subtitle-studio/transcription/jobs":{"post":{"tags":["creator-subtitle-studio"],"summary":"Create Transcription Job","operationId":"create_transcription_job_api_creator_subtitle_studio_transcription_jobs_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttTranscriptionJobCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/subtitle-studio/projects":{"post":{"tags":["creator-subtitle-studio"],"summary":"Create Project","operationId":"create_project_api_creator_subtitle_studio_projects_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubtitleProjectCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["creator-subtitle-studio"],"summary":"List Projects","operationId":"list_projects_api_creator_subtitle_studio_projects_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/subtitle-studio/projects/{project_id}":{"get":{"tags":["creator-subtitle-studio"],"summary":"Get Project","operationId":"get_project_api_creator_subtitle_studio_projects__project_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["creator-subtitle-studio"],"summary":"Delete Project","operationId":"delete_project_api_creator_subtitle_studio_projects__project_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/subtitle-studio/projects/{project_id}/render":{"post":{"tags":["creator-subtitle-studio"],"summary":"Render Project","operationId":"render_project_api_creator_subtitle_studio_projects__project_id__render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubtitleRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/subtitle-studio/templates":{"get":{"tags":["creator-subtitle-studio"],"summary":"List Caption Templates","operationId":"list_caption_templates_api_creator_subtitle_studio_templates_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["creator-subtitle-studio"],"summary":"Create Caption Template","operationId":"create_caption_template_api_creator_subtitle_studio_templates_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubtitleTemplateCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator/subtitle-studio/templates/{template_id}":{"patch":{"tags":["creator-subtitle-studio"],"summary":"Update Caption Template","operationId":"update_caption_template_api_creator_subtitle_studio_templates__template_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubtitleTemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["creator-subtitle-studio"],"summary":"Delete Caption Template","operationId":"delete_caption_template_api_creator_subtitle_studio_templates__template_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collateral/social-post":{"post":{"tags":["collateral"],"summary":"Compose Social Post","operationId":"compose_social_post_api_collateral_social_post_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostComposeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/seo-article":{"post":{"tags":["collateral"],"summary":"Compose Seo Article","operationId":"compose_seo_article_api_content_seo_article_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeoArticleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/script-to-video":{"post":{"tags":["collateral"],"summary":"Compose Script Video","operationId":"compose_script_video_api_video_script_to_video_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptToVideoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collateral/deck":{"post":{"tags":["collateral"],"summary":"Compose Deck","operationId":"compose_deck_api_collateral_deck_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeckComposeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context":{"get":{"tags":["context"],"summary":"List Legacy Context","description":"Compatibility contract for the Brand Hub's structured context editors.","operationId":"list_legacy_context_api_context_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Types"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["context"],"summary":"Save Legacy Context","description":"Persist Brand Hub fields and make their values available to generation.","operationId":"save_legacy_context_api_context_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyContextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/compiled":{"get":{"tags":["context"],"summary":"Get Legacy Compiled Context","description":"Compatibility response backed by the canonical Context Engine profile.","operationId":"get_legacy_compiled_context_api_context_compiled_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Types"}},{"name":"kbLimit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Kblimit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/profile":{"get":{"tags":["context"],"summary":"Get Context Profile","operationId":"get_context_profile_api_context_profile_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"scope","in":"query","required":false,"schema":{"enum":["company","account","contact","user","product"],"type":"string","default":"company","title":"Scope"}},{"name":"scope_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Ref"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/health":{"get":{"tags":["context"],"summary":"Get Context Health","operationId":"get_context_health_api_context_health_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/conflicts":{"get":{"tags":["context"],"summary":"Get Context Conflicts","description":"Surface contradictory learned facts (same topic, opposite valence).\n\nFeedback that disagrees (\"too corporate\" vs \"love the corporate look\") must\nNOT be silently averaged into mush — it's surfaced here so a human can\nresolve it. Compares active learned facts pairwise via the feedback\nconflict heuristic. Sentiment is inferred from the fact's phrasing\n(avoid/reject/too/don't → negative; prefer/love/great → positive).\n\nReturns: {\"conflicts\": [{\"a\": {...}, \"b\": {...}}], \"count\": N}","operationId":"get_context_conflicts_api_context_conflicts_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/facts":{"post":{"tags":["context"],"summary":"Create Context Fact","operationId":"create_context_fact_api_context_facts_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextFactCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/facts/{fact_id}":{"delete":{"tags":["context"],"summary":"Deactivate Context Fact","operationId":"deactivate_context_fact_api_context_facts__fact_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"fact_id","in":"path","required":true,"schema":{"type":"string","title":"Fact Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/documents":{"post":{"tags":["context"],"summary":"Create Context Document","operationId":"create_context_document_api_context_documents_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDocumentCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["context"],"summary":"List Context Documents","operationId":"list_context_documents_api_context_documents_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/sources/hubspot":{"post":{"tags":["context"],"summary":"Register Hubspot Source","operationId":"register_hubspot_source_api_context_sources_hubspot_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSpotSourceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/sources/website":{"post":{"tags":["context"],"summary":"Ingest Website Source","operationId":"ingest_website_source_api_context_sources_website_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsiteSourceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/sources/document":{"post":{"tags":["context"],"summary":"Ingest Document Source","description":"Upload a document or image to teach the context engine.\n\nSupported:\n- Documents: PDF / Word / PowerPoint / text / spreadsheet\n- Images: JPEG / PNG / WebP (analyzed via Claude vision → brand colors/style)\n\nFiles are stored, then a worker:\n1. For documents: extracts text, distils business facts, embeds\n2. For images: analyzes via Claude vision → extracts design metadata\nContext synthesis is triggered automatically.","operationId":"ingest_document_source_api_context_sources_document_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"intent","in":"query","required":false,"schema":{"type":"string","default":"this_is_us","title":"Intent"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_ingest_document_source_api_context_sources_document_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/rebrand":{"post":{"tags":["context"],"summary":"Supersede Brand","description":"Rebrand: retire the workspace's prior VISUAL brand facts in one move.\n\nA rebrand is a regime change, not gradual drift — time-decay would bleed the\ndead look for months. This deactivates old visual_style facts so the next\nupload's kit becomes the brand cleanly. Verbal/positioning facts are kept.","operationId":"supersede_brand_api_context_rebrand_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RebrandRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/knowledge-base":{"get":{"tags":["context"],"summary":"List Knowledge Base","description":"List the workspace's ingested brand documents (so uploads show up in the UI).","operationId":"list_knowledge_base_api_context_knowledge_base_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["context"],"summary":"Ingest Knowledge Base","description":"Add a KB doc: paste text (stored immediately) or a URL to fetch (enqueued).","operationId":"ingest_knowledge_base_api_context_knowledge_base_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseIngestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/knowledge-base/{doc_id}":{"get":{"tags":["context"],"summary":"Get Knowledge Base Doc","operationId":"get_knowledge_base_doc_api_context_knowledge_base__doc_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["context"],"summary":"Delete Knowledge Base Doc","operationId":"delete_knowledge_base_doc_api_context_knowledge_base__doc_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/sources/document-link":{"post":{"tags":["context"],"summary":"Ingest Document Link","description":"Ingest a shared Google Doc/Slides/Sheet link, or a direct link to a\ndocument (e.g. a hosted PDF). Google links must be set to 'anyone with the\nlink'. Non-Google links are SSRF-validated before fetch.","operationId":"ingest_document_link_api_context_sources_document_link_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/synthesis":{"get":{"tags":["context"],"summary":"Get Context Synthesis","description":"Get the compiled workspace brand DNA.\n\nCustomer-facing: returns the brand guide + generation directives (brand\ninfo), but NEVER cost/COGS data. Cost tracking is internal via /admin/costs.\n\nReturns: {\n    \"context_markdown\": \"# Brand Context...\",        # human-readable guide\n    \"generation_directives\": {...},                  # prompt fragments, color roles, do/don't\n    \"confidence\": 0.82,                              # how sure we are of the DNA\n    \"last_synthesized_at\": \"2026-06-23T12:34:56Z\",\n    \"image_analyses_count\": 5,\n}\n\ngeneration_directives feed image/video/copy generation so output matches\nthe brand — exact hex roles, prompt suffix, negative prompt, signature moves.","operationId":"get_context_synthesis_api_context_synthesis_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/brand-iq":{"get":{"tags":["context"],"summary":"Get Brand Iq","description":"Brand IQ — structured intelligence score + Brand Card.\n\nAggregates synthesis confidence, fact count, and image count into a 0-100\nBrand IQ score with a structured Brand Card parsed from generation_directives.\nUsed by the BrandIQWizard and BrandHub to show users what the system knows.","operationId":"get_brand_iq_api_context_brand_iq_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/{context_type}/{context_key}":{"delete":{"tags":["context"],"summary":"Delete Legacy Context","description":"Delete a structured Brand Hub entry without shadowing specific context routes.","operationId":"delete_legacy_context_api_context__context_type___context_key__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"context_type","in":"path","required":true,"schema":{"enum":["brand","persona","visual","compliance","text"],"type":"string","title":"Context Type"}},{"name":"context_key","in":"path","required":true,"schema":{"type":"string","title":"Context Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/costs/summary":{"get":{"tags":["costs"],"summary":"Get Costs Summary","description":"Get workspace cost summary for the last N days.\n\nReturns: {\n    \"total_cost_usd\": 123.45,\n    \"by_operation\": {\"image_generation\": 50.0, ...},\n    \"by_provider\": {\"fal\": 60.0, ...},\n    \"entry_count\": 1234,\n    \"period_days\": 30,\n}","operationId":"get_costs_summary_api_costs_summary_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/costs/ledger":{"get":{"tags":["costs"],"summary":"Get Costs Ledger","description":"Get recent cost ledger entries (detailed view).\n\nQuery parameters:\n- operation: Filter by operation (e.g., \"image_generation\")\n- provider: Filter by provider (e.g., \"fal\")\n- days: How many days back? (1-365, default 30)\n- limit: Max entries to return (1-1000, default 100)\n\nReturns: [\n    {\n        \"id\": \"...\",\n        \"operation\": \"image_generation\",\n        \"provider\": \"fal\",\n        \"unit\": \"image\",\n        \"quantity\": 1,\n        \"unit_cost_usd\": 0.003,\n        \"total_cost_usd\": 0.003,\n        \"model_variant\": \"flux-schnell\",\n        \"status\": \"success\",\n        \"attributed_to\": [\"feature:image_gen\", \"user:...\"],\n        \"created_at\": \"2026-06-23T...\",\n    },\n    ...\n]","operationId":"get_costs_ledger_api_costs_ledger_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"operation","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operation"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/costs/by-job/{job_id}":{"get":{"tags":["costs"],"summary":"Get Job Costs","description":"Get all costs for a specific job (full audit trail).\n\nReturns: {\n    \"job_id\": \"...\",\n    \"total_cost_usd\": 1.23,\n    \"entries\": [\n        {\"operation\": \"image_generation\", \"cost_usd\": 0.5, ...},\n        {\"operation\": \"llm_call\", \"cost_usd\": 0.03, ...},\n        ...\n    ]\n}","operationId":"get_job_costs_api_costs_by_job__job_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/quality/accept-rate":{"get":{"tags":["costs"],"summary":"Get Accept Rate","description":"First-shot accept-rate — THE moat metric (\"one-shot gold, reroll free\").\n\nAggregates the terminal job-outcome trace rows (stage='job_outcome', written\nby app/services/accept_rate.record_job_outcome at the workers' ship/fail\ndecision points) into per-operation rates. Gated to trace-admin emails like\n/costs/trace; aggregates PLATFORM-WIDE by default (this is the beta\nearly-warning surface for gate false positives across real users), with an\noptional workspace_id filter.\n\nQuery parameters:\n- window: lookback like '7d' (default) or '24h'; max 90d\n- workspace_id: optional filter to one workspace\n\nReturns: {\n    \"window\": \"7d\",\n    \"since\": \"...iso...\",\n    \"operations\": {\n        \"generate_image\": {\n            \"jobs\": 120, \"shipped\": 108, \"failed\": 12,\n            \"first_shot_accept_rate\": 0.78,\n            \"retry_ship_rate\": 0.12,\n            \"fail_rate\": 0.10,\n            \"escalation_rate\": 0.05,\n            \"top_blocking_gates\": [{\"gate\": \"vlm_realism\", \"count\": 6}, ...],\n        }, ...\n    },\n    \"totals\": {...same shape...},\n}","operationId":"get_accept_rate_api_quality_accept_rate_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"window","in":"query","required":false,"schema":{"type":"string","default":"7d","title":"Window"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/costs/accept-rate-report":{"get":{"tags":["costs"],"summary":"Get Accept Rate Report","description":"Production accept-rate telemetry report — the accept-battery's successor.\n\nThe full standing-metric report (app/services/accept_rate_report.build_report):\ngated first-shot accept-rate + overall accept + attempts-per-ship, gate-class\nfailure tallies, unavailable-gate (fail-open) ships, terminal-rung\n(repanel/text_repair) telemetry, cost_ledger spend + cost-per-ship, human\nverdict tallies, and the per-model split. Platform-wide by default with an\noptional workspace_id filter; ``text`` carries the battery-style render the\nCLI and the daily ops-Slack beat task print.\n\nCOGS on board → gated to trace-admin emails, the /quality/accept-rate and\n/costs/trace precedent.\n\nQuery parameters:\n- hours: lookback window in hours (1 to 2160, default 24)\n- workspace_id: optional filter to one workspace","operationId":"get_accept_rate_report_api_costs_accept_rate_report_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Hours"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/costs/trace/{job_id}":{"get":{"tags":["costs"],"summary":"Get Job Trace","description":"Full generation trace + itemized cost for a job — the 'review everything'\nsurface. Gated to trace-admin emails (settings.trace_admin_emails).\n\nReturns the ordered pipeline steps (agents/judges/gates/models with their\ndecisions, scores, reasons, thinking) plus the linked cost ledger entries and\na per-operation cost breakdown.","operationId":"get_job_trace_api_costs_trace__job_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/corpus/stats":{"get":{"tags":["corpus"],"summary":"Corpus Stats","description":"Corpus size + gold-slice counts by modality. Trace-admin only.","operationId":"corpus_stats_api_corpus_stats_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/corpus/export":{"get":{"tags":["corpus"],"summary":"Corpus Export","description":"Stream the dataset as JSONL (one training example per line). Trace-admin only.\n\nDefaults to the gold slice (accepted + gate-passed). Filter by modality\n(image/video/edit/audio), model_variant, or split (train/eval/holdout).","operationId":"corpus_export_api_corpus_export_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"modality","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modality"}},{"name":"model_variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Variant"}},{"name":"gold_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Gold Only"}},{"name":"split","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Split"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5000,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/corpus/jobs/{job_id}/records":{"get":{"tags":["corpus"],"summary":"Corpus Job Records","description":"Trace-admin stage receipts for one known generation job.","operationId":"corpus_job_records_api_corpus_jobs__job_id__records_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plan":{"post":{"tags":["creative"],"summary":"Create Creative Plan","description":"One sentence in -> a reviewable, grounded, credit-priced plan out.\n\nCheap by construction (LLM-only, no GPU): fail/refine here costs cents; a bad\nrender costs dollars. Returns the exact payload approval should POST to the\nexisting generate endpoint — this route never dispatches a job itself.","operationId":"create_creative_plan_api_creative_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreativePlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans":{"post":{"tags":["creative"],"summary":"Create Plan","operationId":"create_plan_api_creative_plans_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}":{"get":{"tags":["creative"],"summary":"Get Plan","operationId":"get_plan_api_creative_plans__plan_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/versions":{"get":{"tags":["creative"],"summary":"List Plan Versions","operationId":"list_plan_versions_api_creative_plans__plan_id__versions_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/diff":{"get":{"tags":["creative"],"summary":"Diff Plan Versions","operationId":"diff_plan_versions_api_creative_plans__plan_id__diff_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"from_version","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"From Version"}},{"name":"to_version","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"To Version"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/revise":{"post":{"tags":["creative"],"summary":"Revise Plan","description":"One revision cycle: apply the change, RE-RUN the plan-gate stack, append\nthe next immutable version. The returned version carries the fresh gate\nverdict — a plan is dispatchable only gate-passed AND approved.","operationId":"revise_plan_api_creative_plans__plan_id__revise_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanReviseRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/approve":{"post":{"tags":["creative"],"summary":"Approve Plan","operationId":"approve_plan_api_creative_plans__plan_id__approve_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanApproveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/dispatch":{"post":{"tags":["creative"],"summary":"Dispatch Plan","description":"Approve-then-dispatch: submits the approved version's shots through the\nexisting ``dispatch_job`` door. The worker skips re-planning (shots present)\nbut every post-generation gate still runs — the plan is the contract, the\ngates are still the law.","operationId":"dispatch_plan_api_creative_plans__plan_id__dispatch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/keyframes":{"post":{"tags":["creative"],"summary":"Generate Plan Keyframes","description":"Dispatch one keyframe still per shot through the EXISTING gated image\ndoor (realism_system -> art_director -> final_prompt_writer sharpen inside\nthe door; post-gen gates run there). Async: the returned version carries\nthe shots' keyframe blocks QUEUED — poll /keyframes/collect to land them.\nThe stills-in-flight version is deliberately NOT gate-passed, so a plan\ncan never dispatch video while its locked frames are still rendering.","operationId":"generate_plan_keyframes_api_creative_plans__plan_id__keyframes_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanKeyframesRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/keyframes/collect":{"post":{"tags":["creative"],"summary":"Collect Plan Keyframes","description":"Fold finished image jobs onto their shots: completed -> READY (asset id\n+ url persisted, expert-critic review verdict stamped by the re-run gate\nstack), failed/cancelled -> FAILED. Idempotent: a poll with no transitions\nappends no version and returns the current one.","operationId":"collect_plan_keyframes_api_creative_plans__plan_id__keyframes_collect_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/keyframes/regenerate":{"post":{"tags":["creative"],"summary":"Regenerate Plan Keyframe","description":"Re-still ONE shot (optionally with an edited still prompt) through the\nimage door. Every other shot's keyframe rides the new version untouched;\nthe regenerated still re-earns its review (prior verdict/waiver reset).","operationId":"regenerate_plan_keyframe_api_creative_plans__plan_id__keyframes_regenerate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanKeyframeRegenerateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/keyframes/waive":{"post":{"tags":["creative"],"summary":"Waive Plan Keyframe","description":"Explicitly ship one shot WITHOUT its still (the only way a failed or\nreview-killed keyframe stops blocking dispatch short of regenerating).\nThe waiver — who/why/when — is recorded in version provenance; the shot\nrenders T2V at dispatch.","operationId":"waive_plan_keyframe_api_creative_plans__plan_id__keyframes_waive_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanKeyframeWaiveRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/audio":{"post":{"tags":["creative"],"summary":"Generate Plan Audio","description":"Dispatch one audio take per shot through the EXISTING gated audio door\n(the fal music/SFX provider + per-second ledger stamps run inside the\nworker task). Async: the returned version carries the shots' audio blocks\nQUEUED — poll /audio/collect to land them. Takes in flight are deliberately\nNOT gate-passed, so a plan never dispatches video while its planned audio\nis still rendering.","operationId":"generate_plan_audio_api_creative_plans__plan_id__audio_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAudioRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/audio/collect":{"post":{"tags":["creative"],"summary":"Collect Plan Audio","description":"Fold finished audio jobs onto their shots: completed -> READY (asset id\n+ url persisted, the deterministic take review stamped by the re-run gate\nstack), failed/cancelled -> FAILED. Idempotent: a poll with no transitions\nappends no version and returns the current one.","operationId":"collect_plan_audio_api_creative_plans__plan_id__audio_collect_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/audio/regenerate":{"post":{"tags":["creative"],"summary":"Regenerate Plan Audio","description":"Re-render ONE shot's audio take (optionally with an edited style/prompt)\nthrough the audio door. Every other shot's take rides the new version\nuntouched; the regenerated take re-earns its review (prior verdict/waiver\nreset).","operationId":"regenerate_plan_audio_api_creative_plans__plan_id__audio_regenerate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAudioRegenerateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/audio/waive":{"post":{"tags":["creative"],"summary":"Waive Plan Audio","description":"Explicitly ship one shot WITHOUT its audio take (the only way a failed\nor review-rejected take stops blocking dispatch short of regenerating).\nThe waiver — who/why/when — is recorded in version provenance; the shot\ndispatches with the reel's default sound.","operationId":"waive_plan_audio_api_creative_plans__plan_id__audio_waive_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAudioWaiveRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/captions/preview":{"post":{"tags":["creative"],"summary":"Preview Plan Captions","description":"Render a still preview of the plan's caption spec (or a what-if\noverride): one representative frame, the preset + safe-zone-aware placement\nresolved, so the customer sees the kinetic caption read BEFORE dispatch.\nPure PIL — no GPU, no generation spend.","operationId":"preview_plan_captions_api_creative_plans__plan_id__captions_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCaptionPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creative/plans/{plan_id}/graphics/preview":{"post":{"tags":["creative"],"summary":"Preview Plan Graphic","description":"Render the REST frame of a shot's graphic spec (or a what-if override):\nthe exact card the procedural renderer will ship, so titles/stats/data\nscenes are reviewed BEFORE dispatch. Pure PIL — no GPU, no generation\nspend.","operationId":"preview_plan_graphic_api_creative_plans__plan_id__graphics_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanGraphicPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates":{"get":{"tags":["templates"],"summary":"List Templates","operationId":"list_templates_api_templates_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TemplateResponse"},"title":"Response List Templates Api Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["templates"],"summary":"Create Template","operationId":"create_template_api_templates_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/{template_id}":{"patch":{"tags":["templates"],"summary":"Update Template","operationId":"update_template_api_templates__template_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["templates"],"summary":"Delete Template","operationId":"delete_template_api_templates__template_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/{template_id}/render-batch":{"post":{"tags":["templates"],"summary":"Render Template Batch","operationId":"render_template_batch_api_templates__template_id__render_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBatchRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/{template_id}/render":{"post":{"tags":["templates"],"summary":"Render Template","operationId":"render_template_api_templates__template_id__render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBatchRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces":{"get":{"tags":["workspaces"],"summary":"List Workspaces","operationId":"list_workspaces_api_workspaces_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceResponse"},"title":"Response List Workspaces Api Workspaces Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspaces"],"summary":"Create Workspace","operationId":"create_workspace_api_workspaces_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}":{"get":{"tags":["workspaces"],"summary":"Get Workspace","operationId":"get_workspace_api_workspaces__workspace_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspaces"],"summary":"Update Workspace","operationId":"update_workspace_api_workspaces__workspace_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete Workspace","operationId":"delete_workspace_api_workspaces__workspace_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/clients":{"get":{"tags":["workspaces"],"summary":"List Client Workspaces","description":"List all client sub-workspaces under a parent workspace. Agency accounts only.","operationId":"list_client_workspaces_api_workspaces__workspace_id__clients_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceResponse"},"title":"Response List Client Workspaces Api Workspaces  Workspace Id  Clients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/members":{"get":{"tags":["members"],"summary":"List Members","operationId":"list_members_api_members_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/members/invite":{"post":{"tags":["members"],"summary":"Invite Member","operationId":"invite_member_api_members_invite_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/members/{member_id}":{"patch":{"tags":["members"],"summary":"Update Member","operationId":"update_member_api_members__member_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["members"],"summary":"Remove Member","operationId":"remove_member_api_members__member_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","operationId":"list_notifications_api_notifications_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/read-all":{"put":{"tags":["notifications"],"summary":"Mark All Read","operationId":"mark_all_read_api_notifications_read_all_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/{notification_id}/read":{"put":{"tags":["notifications"],"summary":"Mark Read","operationId":"mark_read_api_notifications__notification_id__read_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/{notification_id}":{"delete":{"tags":["notifications"],"summary":"Delete Notification","operationId":"delete_notification_api_notifications__notification_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/organization":{"get":{"tags":["organizations"],"summary":"Get User Organization","description":"The caller's primary organization (= their workspace) + their membership.","operationId":"get_user_organization_api_users_organization_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/leave-organization":{"put":{"tags":["organizations"],"summary":"Leave Organization","description":"Self-removal from the caller's workspace(s). Refuses if they are the sole\nowner (that would orphan the org — transfer ownership or delete it instead).","operationId":"leave_organization_api_users_leave_organization_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/{org_id}/members":{"get":{"tags":["organizations"],"summary":"List Org Members","operationId":"list_org_members_api_organizations__org_id__members_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/{org_id}/members/invite":{"post":{"tags":["organizations"],"summary":"Invite Org Member","operationId":"invite_org_member_api_organizations__org_id__members_invite_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/{org_id}/members/{user_id}":{"put":{"tags":["organizations"],"summary":"Update Org Member Role","operationId":"update_org_member_role_api_organizations__org_id__members__user_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organizations"],"summary":"Remove Org Member","operationId":"remove_org_member_api_organizations__org_id__members__user_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/{org_id}":{"put":{"tags":["organizations"],"summary":"Update Organization","description":"Rename the organization (the account display name).","operationId":"update_organization_api_organizations__org_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/{org_id}/domains":{"put":{"tags":["organizations"],"summary":"Update Organization Domains","description":"Persist the allowed-email-domain list on the workspace settings.","operationId":"update_organization_domains_api_organizations__org_id__domains_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/outreach/batch":{"post":{"tags":["outreach"],"summary":"Create Outreach Batch","operationId":"create_outreach_batch_api_outreach_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/packs":{"get":{"tags":["packs"],"summary":"List Packs","operationId":"list_packs_api_packs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PackListResponse"},"title":"Response List Packs Api Packs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/packs/categories":{"get":{"tags":["packs"],"summary":"List Pack Categories","operationId":"list_pack_categories_api_packs_categories_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Pack Categories Api Packs Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/packs/{pack_id}":{"get":{"tags":["packs"],"summary":"Get Pack Details","operationId":"get_pack_details_api_packs__pack_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/packs/{pack_id}/generate":{"post":{"tags":["packs"],"summary":"Generate Pack","operationId":"generate_pack_api_packs__pack_id__generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackGenerateQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/packs/{pack_id}/generate-preview":{"post":{"tags":["packs"],"summary":"Generate Pack Preview","operationId":"generate_pack_preview_api_packs__pack_id__generate_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackGenerateQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/packs/generations/{generation_id}":{"get":{"tags":["packs"],"summary":"Get Pack Generation Status","operationId":"get_pack_generation_status_api_packs_generations__generation_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Generation Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackGenerationStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{ws_id}/packs":{"post":{"tags":["packs"],"summary":"Create Custom Pack","operationId":"create_custom_pack_api_workspaces__ws_id__packs_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ws_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ws Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomPackCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{ws_id}/packs/{pack_id}":{"put":{"tags":["packs"],"summary":"Update Custom Pack","operationId":"update_custom_pack_api_workspaces__ws_id__packs__pack_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ws_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ws Id"}},{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomPackUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["packs"],"summary":"Delete Custom Pack","operationId":"delete_custom_pack_api_workspaces__ws_id__packs__pack_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ws_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ws Id"}},{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/packs/{pack_id}/rate":{"post":{"tags":["packs"],"summary":"Rate Pack","operationId":"rate_pack_api_packs__pack_id__rate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackRateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/preferences":{"get":{"tags":["preferences"],"summary":"Get User Preferences","operationId":"get_user_preferences_api_users_preferences_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get User Preferences Api Users Preferences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["preferences"],"summary":"Update User Preferences","operationId":"update_user_preferences_api_users_preferences_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Preferences"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update User Preferences Api Users Preferences Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/preferences":{"get":{"tags":["preferences"],"summary":"Get Context Preferences","operationId":"get_context_preferences_api_context_preferences_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Context Preferences Api Context Preferences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["preferences"],"summary":"Set Context Preferences","operationId":"set_context_preferences_api_context_preferences_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Set Context Preferences Api Context Preferences Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/actions/reset":{"post":{"tags":["preferences"],"summary":"Reset Context","operationId":"reset_context_api_context_actions_reset_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Reset Context Api Context Actions Reset Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/onboarding/progress":{"get":{"tags":["preferences"],"summary":"Onboarding Progress","operationId":"onboarding_progress_api_onboarding_progress_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Onboarding Progress Api Onboarding Progress Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["preferences"],"summary":"Onboarding Update","operationId":"onboarding_update_api_onboarding_progress_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Onboarding Update Api Onboarding Progress Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/onboarding/initialize":{"post":{"tags":["preferences"],"summary":"Onboarding Initialize","operationId":"onboarding_initialize_api_onboarding_initialize_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Onboarding Initialize Api Onboarding Initialize Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brand-feedback":{"post":{"tags":["preferences"],"summary":"Submit Brand Feedback","operationId":"submit_brand_feedback_api_brand_feedback_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Submit Brand Feedback Api Brand Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/favorites":{"get":{"tags":["preferences"],"summary":"List Favorites","operationId":"list_favorites_api_content_favorites_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Favorites Api Content Favorites Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["preferences"],"summary":"Add Favorite","operationId":"add_favorite_api_content_favorites_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Add Favorite Api Content Favorites Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/content/favorites/{content_id}":{"delete":{"tags":["preferences"],"summary":"Remove Favorite","operationId":"remove_favorite_api_content_favorites__content_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"content_id","in":"path","required":true,"schema":{"type":"string","title":"Content Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Remove Favorite Api Content Favorites  Content Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills":{"get":{"tags":["skills"],"summary":"List Skills","operationId":"list_skills_api_skills_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Skills Api Skills Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["skills"],"summary":"Create Skill","operationId":"create_skill_api_skills_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Skill Api Skills Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/default":{"get":{"tags":["skills"],"summary":"Get Default Skill","operationId":"get_default_skill_api_skills_default_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Default Skill Api Skills Default Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/gallery":{"get":{"tags":["skills"],"summary":"List Skill Gallery","operationId":"list_skill_gallery_api_skills_gallery_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Skill Gallery Api Skills Gallery Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/gallery/{template_id}":{"get":{"tags":["skills"],"summary":"Get Skill Gallery Template","operationId":"get_skill_gallery_template_api_skills_gallery__template_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Skill Gallery Template Api Skills Gallery  Template Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/gallery/{template_id}/adopt":{"post":{"tags":["skills"],"summary":"Adopt Skill Gallery Template","operationId":"adopt_skill_gallery_template_api_skills_gallery__template_id__adopt_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Adopt Skill Gallery Template Api Skills Gallery  Template Id  Adopt Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/{skill_id}":{"get":{"tags":["skills"],"summary":"Get Skill","operationId":"get_skill_api_skills__skill_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Skill Api Skills  Skill Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["skills"],"summary":"Update Skill","operationId":"update_skill_api_skills__skill_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Skill Api Skills  Skill Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["skills"],"summary":"Delete Skill","operationId":"delete_skill_api_skills__skill_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Skill Api Skills  Skill Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/{skill_id}/compiled":{"get":{"tags":["skills"],"summary":"Get Compiled","operationId":"get_compiled_api_skills__skill_id__compiled_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Compiled Api Skills  Skill Id  Compiled Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/scrape":{"post":{"tags":["skills"],"summary":"Scrape Website","operationId":"scrape_website_api_skills_scrape_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Scrape Website Api Skills Scrape Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/build":{"post":{"tags":["skills"],"summary":"Build Skill","operationId":"build_skill_api_skills_build_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Build Skill Api Skills Build Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/{skill_id}/refine":{"post":{"tags":["skills"],"summary":"Refine Skill","operationId":"refine_skill_api_skills__skill_id__refine_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Refine Skill Api Skills  Skill Id  Refine Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/usage":{"get":{"tags":["billing"],"summary":"Get Usage","operationId":"get_usage_api_billing_usage_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/state":{"get":{"tags":["billing"],"summary":"Get Billing State","operationId":"get_billing_state_api_billing_state_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/credits/history":{"get":{"tags":["billing"],"summary":"Credit History","operationId":"credit_history_api_billing_credits_history_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreditTransactionResponse"},"title":"Response Credit History Api Billing Credits History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/customers/bootstrap":{"post":{"tags":["billing"],"summary":"Bootstrap Billing Customer","operationId":"bootstrap_billing_customer_api_billing_customers_bootstrap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/workspaces/{workspace_id}/customer/bootstrap":{"post":{"tags":["billing"],"summary":"Bootstrap Workspace Billing Customer","operationId":"bootstrap_workspace_billing_customer_api_billing_workspaces__workspace_id__customer_bootstrap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/workspaces/{workspace_id}/billing-mode":{"post":{"tags":["billing"],"summary":"Update Workspace Billing Mode","operationId":"update_workspace_billing_mode_api_billing_workspaces__workspace_id__billing_mode_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingModeUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/portal":{"post":{"tags":["billing"],"summary":"Create Billing Portal","operationId":"create_billing_portal_api_billing_portal_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPortalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/checkout":{"post":{"tags":["billing"],"summary":"Create Checkout","operationId":"create_checkout_api_billing_checkout_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/webhook":{"post":{"tags":["billing"],"summary":"Stripe Webhook","operationId":"stripe_webhook_api_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/face-profiles/my-profiles":{"get":{"tags":["profile-compat"],"summary":"List Face Profiles","operationId":"list_face_profiles_api_face_profiles_my_profiles_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/face-profiles/create":{"post":{"tags":["profile-compat"],"summary":"Create Face Profile","operationId":"create_face_profile_api_face_profiles_create_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFaceProfileBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/face-profiles/{profile_id}":{"get":{"tags":["profile-compat"],"summary":"Get Face Profile","operationId":"get_face_profile_api_face_profiles__profile_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["profile-compat"],"summary":"Update Face Profile","operationId":"update_face_profile_api_face_profiles__profile_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileNameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["profile-compat"],"summary":"Update Face Profile","operationId":"update_face_profile_api_face_profiles__profile_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileNameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["profile-compat"],"summary":"Delete Face Profile","operationId":"delete_face_profile_api_face_profiles__profile_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice-profiles/validate-audio":{"post":{"tags":["profile-compat"],"summary":"Validate Audio","operationId":"validate_audio_api_voice_profiles_validate_audio_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateAudioBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice-profiles/create":{"post":{"tags":["profile-compat"],"summary":"Create Voice Profile","operationId":"create_voice_profile_api_voice_profiles_create_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVoiceProfileBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice-profiles/generate-speech":{"post":{"tags":["profile-compat"],"summary":"Generate Speech","operationId":"generate_speech_api_voice_profiles_generate_speech_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateSpeechBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice-profiles/my-profiles":{"get":{"tags":["profile-compat"],"summary":"List Voice Profiles","operationId":"list_voice_profiles_api_voice_profiles_my_profiles_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice-profiles/{profile_id}":{"get":{"tags":["profile-compat"],"summary":"Get Voice Profile","operationId":"get_voice_profile_api_voice_profiles__profile_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["profile-compat"],"summary":"Update Voice Profile","operationId":"update_voice_profile_api_voice_profiles__profile_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileNameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["profile-compat"],"summary":"Update Voice Profile","operationId":"update_voice_profile_api_voice_profiles__profile_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileNameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["profile-compat"],"summary":"Delete Voice Profile","operationId":"delete_voice_profile_api_voice_profiles__profile_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice-profiles/{profile_id}/test":{"post":{"tags":["profile-compat"],"summary":"Test Voice","operationId":"test_voice_api_voice_profiles__profile_id__test_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestVoiceBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/enroll":{"post":{"tags":["digital_twins"],"summary":"Enroll Twin Unified","operationId":"enroll_twin_unified_api_twins_enroll_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnifiedEnrollRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/one-shot-enroll":{"post":{"tags":["digital_twins"],"summary":"One Shot Enroll Twin","operationId":"one_shot_enroll_twin_api_twins_one_shot_enroll_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OneShotEnrollRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/enrollment/precheck":{"post":{"tags":["digital_twins"],"summary":"Enrollment Precheck","operationId":"enrollment_precheck_api_twins_enrollment_precheck_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentPrecheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins":{"get":{"tags":["digital_twins"],"summary":"List Digital Twins","operationId":"list_digital_twins_api_twins_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DigitalTwinResponse"},"title":"Response List Digital Twins Api Twins Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["digital_twins"],"summary":"Create Digital Twin","operationId":"create_digital_twin_api_twins_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/quick-enroll":{"post":{"tags":["digital_twins"],"summary":"Quick Enroll Twin","operationId":"quick_enroll_twin_api_twins_quick_enroll_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinQuickEnrollRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinQuickEnrollResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}":{"get":{"tags":["digital_twins"],"summary":"Get Digital Twin","operationId":"get_digital_twin_api_twins__twin_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["digital_twins"],"summary":"Update Digital Twin","operationId":"update_digital_twin_api_twins__twin_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/upgrade-enrollment":{"post":{"tags":["digital_twins"],"summary":"Upgrade Twin Enrollment","operationId":"upgrade_twin_enrollment_api_twins__twin_id__upgrade_enrollment_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinUpgradeEnrollmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinUpgradeEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/consents":{"get":{"tags":["digital_twins"],"summary":"List Twin Consents","operationId":"list_twin_consents_api_twins__twin_id__consents_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TwinConsentResponse"},"title":"Response List Twin Consents Api Twins  Twin Id  Consents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/consent":{"post":{"tags":["digital_twins"],"summary":"Create Twin Consent","operationId":"create_twin_consent_api_twins__twin_id__consent_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinConsentCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinConsentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/face-profiles":{"get":{"tags":["digital_twins"],"summary":"List Twin Face Profiles","operationId":"list_twin_face_profiles_api_twins__twin_id__face_profiles_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TwinFaceProfileResponse"},"title":"Response List Twin Face Profiles Api Twins  Twin Id  Face Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/face-enrollment":{"post":{"tags":["digital_twins"],"summary":"Enroll Twin Face","operationId":"enroll_twin_face_api_twins__twin_id__face_enrollment_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinFaceEnrollmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinFaceProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/voice-profiles":{"get":{"tags":["digital_twins"],"summary":"List Twin Voice Profiles","operationId":"list_twin_voice_profiles_api_twins__twin_id__voice_profiles_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TwinVoiceProfileResponse"},"title":"Response List Twin Voice Profiles Api Twins  Twin Id  Voice Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/voice-enrollment":{"post":{"tags":["digital_twins"],"summary":"Enroll Twin Voice","operationId":"enroll_twin_voice_api_twins__twin_id__voice_enrollment_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinVoiceEnrollmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinVoiceProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/style-profile":{"get":{"tags":["digital_twins"],"summary":"Get Twin Style Profile","operationId":"get_twin_style_profile_api_twins__twin_id__style_profile_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinStyleProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["digital_twins"],"summary":"Upsert Twin Style Profile","operationId":"upsert_twin_style_profile_api_twins__twin_id__style_profile_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinStyleProfileUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinStyleProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/voice/synthesize":{"post":{"tags":["digital_twins"],"summary":"Synthesize Twin Voice","operationId":"synthesize_twin_voice_api_twins__twin_id__voice_synthesize_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinVoiceSynthesizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/avatar/render":{"post":{"tags":["digital_twins"],"summary":"Render Twin Avatar","operationId":"render_twin_avatar_api_twins__twin_id__avatar_render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinAvatarRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/content/render":{"post":{"tags":["digital_twins"],"summary":"Render Twin Content","operationId":"render_twin_content_api_twins__twin_id__content_render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinContentRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/train-lora":{"post":{"tags":["digital_twins"],"summary":"Train Twin Lora","operationId":"train_twin_lora_api_twins__twin_id__train_lora_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinLoRATrainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinLoRATrainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/lora-status":{"get":{"tags":["digital_twins"],"summary":"Twin Lora Status","operationId":"twin_lora_status_api_twins__twin_id__lora_status_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinLoRAStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/retrain-lora":{"post":{"tags":["digital_twins"],"summary":"Retrain Twin Lora","operationId":"retrain_twin_lora_api_twins__twin_id__retrain_lora_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinLoRATrainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinLoRATrainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/renders":{"get":{"tags":["digital_twins"],"summary":"List Twin Renders","operationId":"list_twin_renders_api_twins__twin_id__renders_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TwinRenderResponse"},"title":"Response List Twin Renders Api Twins  Twin Id  Renders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/audit":{"get":{"tags":["digital_twins"],"summary":"Get Twin Audit Log","operationId":"get_twin_audit_log_api_twins__twin_id__audit_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditLogResponse"},"title":"Response Get Twin Audit Log Api Twins  Twin Id  Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/twins/{twin_id}/revoke":{"post":{"tags":["digital_twins"],"summary":"Revoke Digital Twin","operationId":"revoke_digital_twin_api_twins__twin_id__revoke_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/personas":{"get":{"tags":["personas"],"summary":"List Personas","operationId":"list_personas_api_personas_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"speaking_ready_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Speaking Ready Only"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PersonaResponse"},"title":"Response List Personas Api Personas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["personas"],"summary":"Create Persona","operationId":"create_persona_api_personas_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/personas/clone-from-photo":{"post":{"tags":["personas"],"summary":"Clone Persona From Photo","description":"Photo-clone: one consented photo becomes a ready Persona.\n\nThe route validates + records consent (a real TwinConsent row, like the twin\nenrollment paths) and dispatches ``persona_photo_clone``, which runs the\ncapture-quality precheck and computes the identity embedding SERVER-SIDE on\nthe license-resolved AuraFace pack (Apache-2.0). A client-supplied embedding\nis never accepted anywhere on this path — see docs/FACE-STACK-LICENSE.md.","operationId":"clone_persona_from_photo_api_personas_clone_from_photo_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaPhotoCloneRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/personas/{persona_id}/shots":{"post":{"tags":["personas"],"summary":"Persona Shots","description":"Full-body v1: render the persona in a briefed scene, identity locked.\n\nRequires a trained identity LoRA — without one there is nothing locking the\npersona's full-body likeness, so the route refuses (409 + train pointer)\ninstead of shipping a lookalike. With a ready LoRA the request rides the\nEXISTING identity-led /generate door (``twin_id`` -> ``twin_lora_url``\nhydration, identity queue, gates) — reuse, not a parallel render path.","operationId":"persona_shots_api_personas__persona_id__shots_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaShotsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/personas/{persona_id}/train":{"post":{"tags":["personas"],"summary":"Persona Train","description":"Train the persona's identity LoRA — thin wrapper over the EXISTING\n``/twins/{id}/train-lora`` door (plan entitlement, input-quality gate,\n``train_twin_lora`` dispatch, twin_lora metadata), keyed on the persona.\n\nDataset seeding: ``train_twin_lora`` consumes ``params[\"images\"]`` (asset\ninputs) via the LoRATrainer/DatasetPrep contract — there is no separate\nsynthetic-persona dataset builder — so when the caller sends no\n``image_asset_ids`` we seed from the persona's own stored references\n(enrollment frames, face-profile refs, avatar asset), image assets only.","operationId":"persona_train_api_personas__persona_id__train_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaTrainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/personas/{persona_id}/pitch":{"post":{"tags":["personas"],"summary":"Persona Pitch","description":"One pitch: the clone speaks the lines, then both logos are placed on the video.\n\nRides the registered talking-head job (``generate_video`` / ``talking_chain``).\nLogos are workspace image assets, overlaid after the render, never generated.","operationId":"persona_pitch_api_personas__persona_id__pitch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaPitchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/personas/{persona_id}/speak":{"post":{"tags":["personas"],"summary":"Persona Speak","description":"Make a persona speak a script — the server hydrates everything the render\nneeds FROM the persona (seed image, voice, persona prompt), then routes through\nthe same gated ``generate_influencer`` door as ``POST /video/influencer``\n(identical validation, per-video cost cap, and job-queued response shape).\n\nHydration ladder:\n  * seed image — persona ``avatar_asset_id`` -> face-profile thumbnail ->\n    first face-profile reference; 422 when the persona has no usable portrait.\n  * voice — a ready TwinVoiceProfile carrying a renderer voice id wins; else a\n    gender-matched roster voice via ``persona_voices.resolve_voice`` (cheapest\n    signal first; never a blind Rachel default).\n  * persona prompt — the persona's stored description (synthetic_mint), else a\n    neutral presenter framing of its name.","operationId":"persona_speak_api_personas__persona_id__speak_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaSpeakRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/generate":{"post":{"tags":["generate"],"summary":"Generate Image","operationId":"generate_image_api_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/generate/text":{"post":{"tags":["generate"],"summary":"Generate Text","operationId":"generate_text_api_generate_text_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextGenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TextGenSyncResponse"},{"$ref":"#/components/schemas/TextGenQueuedResponse"}],"title":"Response Generate Text Api Generate Text Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/edit/inpaint":{"post":{"tags":["edit"],"summary":"Inpaint","operationId":"inpaint_api_edit_inpaint_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InpaintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/edit/outpaint":{"post":{"tags":["edit"],"summary":"Outpaint","operationId":"outpaint_api_edit_outpaint_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutpaintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/edit/remove-bg":{"post":{"tags":["edit"],"summary":"Remove Background","operationId":"remove_background_api_edit_remove_bg_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveBackgroundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/edit/remove-object":{"post":{"tags":["edit"],"summary":"Remove Object","operationId":"remove_object_api_edit_remove_object_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveObjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/edit/instruct":{"post":{"tags":["edit"],"summary":"Instruct Edit","operationId":"instruct_edit_api_edit_instruct_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-UseMo-Canary-Grant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Usemo-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/edit/face-swap":{"post":{"tags":["edit"],"summary":"Face Swap","operationId":"face_swap_api_edit_face_swap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaceSwapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/edit/try-on":{"post":{"tags":["edit"],"summary":"Try On","operationId":"try_on_api_edit_try_on_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TryOnRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/try-on":{"post":{"tags":["edit"],"summary":"Try On Alias","operationId":"try_on_alias_api_try_on_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TryOnRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/try-on/batch":{"post":{"tags":["edit"],"summary":"Try On Batch","operationId":"try_on_batch_api_try_on_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TryOnBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enhance/upscale":{"post":{"tags":["enhance"],"summary":"Upscale","operationId":"upscale_api_enhance_upscale_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpscaleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enhance/restore-face":{"post":{"tags":["enhance"],"summary":"Restore Face","operationId":"restore_face_api_enhance_restore_face_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreFaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enhance/colorize":{"post":{"tags":["enhance"],"summary":"Colorize","operationId":"colorize_api_enhance_colorize_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/enhance/auto":{"post":{"tags":["enhance"],"summary":"Auto Enhance","operationId":"auto_enhance_api_enhance_auto_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoEnhanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/loras":{"get":{"tags":["train"],"summary":"List Loras","operationId":"list_loras_api_train_loras_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"base_model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LoRAResponse"},"title":"Response List Loras Api Train Loras Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/loras/{lora_id}":{"get":{"tags":["train"],"summary":"Get Lora","operationId":"get_lora_api_train_loras__lora_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"lora_id","in":"path","required":true,"schema":{"type":"string","title":"Lora Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoRAResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["train"],"summary":"Delete Lora","operationId":"delete_lora_api_train_loras__lora_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"lora_id","in":"path","required":true,"schema":{"type":"string","title":"Lora Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/loras/{lora_id}/archive":{"patch":{"tags":["train"],"summary":"Archive Lora","operationId":"archive_lora_api_train_loras__lora_id__archive_patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"lora_id","in":"path","required":true,"schema":{"type":"string","title":"Lora Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoRAResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/runs":{"get":{"tags":["train"],"summary":"List Training Runs","operationId":"list_training_runs_api_train_runs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrainingRunResponse"},"title":"Response List Training Runs Api Train Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/runs/{job_id}":{"get":{"tags":["train"],"summary":"Get Training Run","operationId":"get_training_run_api_train_runs__job_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/lora":{"post":{"tags":["train"],"summary":"Train Lora","operationId":"train_lora_api_train_lora_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainLoRARequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/train/dreambooth":{"post":{"tags":["train"],"summary":"Train Dreambooth","operationId":"train_dreambooth_api_train_dreambooth_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainDreamBoothRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs":{"get":{"tags":["jobs"],"summary":"List Jobs","operationId":"list_jobs_api_jobs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"}},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Before"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort By"}},{"name":"sort_direction","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Direction"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobResponse"},"title":"Response List Jobs Api Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["jobs"],"summary":"Create Job","operationId":"create_job_api_jobs_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/GenerateImageJobCreate"},{"$ref":"#/components/schemas/GenerateTextJobCreate"},{"$ref":"#/components/schemas/EditInpaintJobCreate"},{"$ref":"#/components/schemas/EditOutpaintJobCreate"},{"$ref":"#/components/schemas/EditRemoveBackgroundJobCreate"},{"$ref":"#/components/schemas/EditRemoveObjectJobCreate"},{"$ref":"#/components/schemas/EditFaceSwapJobCreate"},{"$ref":"#/components/schemas/EditTryOnJobCreate"},{"$ref":"#/components/schemas/EnhanceUpscaleJobCreate"},{"$ref":"#/components/schemas/EnhanceRestoreFaceJobCreate"},{"$ref":"#/components/schemas/EnhanceColorizeJobCreate"},{"$ref":"#/components/schemas/EnhanceAutoJobCreate"},{"$ref":"#/components/schemas/GenerateVideoJobCreate"},{"$ref":"#/components/schemas/VideoStitchJobCreate"},{"$ref":"#/components/schemas/VideoPostprocessJobCreate"},{"$ref":"#/components/schemas/VideoFaceSwapJobCreate"},{"$ref":"#/components/schemas/VideoFaceSwapPreviewJobCreate"},{"$ref":"#/components/schemas/VideoFaceTracksJobCreate"},{"$ref":"#/components/schemas/VideoFaceSwapBatchJobCreate"},{"$ref":"#/components/schemas/TrainLoRAJobCreate"},{"$ref":"#/components/schemas/TrainDreamBoothJobCreate"}],"discriminator":{"propertyName":"type","mapping":{"generate_image":"#/components/schemas/GenerateImageJobCreate","generate_text":"#/components/schemas/GenerateTextJobCreate","edit_inpaint":"#/components/schemas/EditInpaintJobCreate","edit_outpaint":"#/components/schemas/EditOutpaintJobCreate","edit_remove_bg":"#/components/schemas/EditRemoveBackgroundJobCreate","edit_remove_object":"#/components/schemas/EditRemoveObjectJobCreate","edit_face_swap":"#/components/schemas/EditFaceSwapJobCreate","edit_try_on":"#/components/schemas/EditTryOnJobCreate","enhance_upscale":"#/components/schemas/EnhanceUpscaleJobCreate","enhance_restore_face":"#/components/schemas/EnhanceRestoreFaceJobCreate","enhance_colorize":"#/components/schemas/EnhanceColorizeJobCreate","enhance_auto":"#/components/schemas/EnhanceAutoJobCreate","generate_video":"#/components/schemas/GenerateVideoJobCreate","video_stitch":"#/components/schemas/VideoStitchJobCreate","video_postprocess":"#/components/schemas/VideoPostprocessJobCreate","video_face_swap":"#/components/schemas/VideoFaceSwapJobCreate","video_face_swap_preview":"#/components/schemas/VideoFaceSwapPreviewJobCreate","video_face_tracks":"#/components/schemas/VideoFaceTracksJobCreate","video_face_swap_batch":"#/components/schemas/VideoFaceSwapBatchJobCreate","train_lora":"#/components/schemas/TrainLoRAJobCreate","train_dreambooth":"#/components/schemas/TrainDreamBoothJobCreate"}},"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"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","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDetailResponse"}}}},"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","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-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}/cancel":{"post":{"tags":["jobs"],"summary":"Cancel Job","operationId":"cancel_job_api_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-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 Job","operationId":"retry_job_api_jobs__job_id__retry_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audit/logs":{"get":{"tags":["audit"],"summary":"List Audit Logs","operationId":"list_audit_logs_api_audit_logs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditLogResponse"},"title":"Response List Audit Logs Api Audit Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects":{"get":{"tags":["projects"],"summary":"List Projects","operationId":"list_projects_api_projects_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectResponse"},"title":"Response List Projects Api Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["projects"],"summary":"Create Project","operationId":"create_project_api_projects_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}":{"get":{"tags":["projects"],"summary":"Get Project","operationId":"get_project_api_projects__project_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["projects"],"summary":"Update Project","operationId":"update_project_api_projects__project_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Project","operationId":"delete_project_api_projects__project_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/activity":{"get":{"tags":["projects"],"summary":"Get Project Activity","operationId":"get_project_activity_api_projects__project_id__activity_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/brain":{"get":{"tags":["projects"],"summary":"Get Project Brain","operationId":"get_project_brain_api_projects__project_id__brain_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["projects"],"summary":"Patch Project Brain","operationId":"patch_project_brain_api_projects__project_id__brain_patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/image/profile-pic":{"post":{"tags":["quickstart"],"summary":"Generate Profile Pic","description":"Generate an AI professional headshot from an uploaded photo.\n\nUses the source photo as a face reference and generates a polished\nstudio/outdoor/corporate headshot. Single-call wrapper around\n/generate with identity mode.","operationId":"generate_profile_pic_api_image_profile_pic_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePicRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/image/profile-pic-pack":{"post":{"tags":["quickstart"],"summary":"Generate Profile Pic Pack","description":"Generate a PhotoAI-style pack of identity-locked headshots — one per style,\nrendered in parallel. Each job is identity-gated (off-identity outputs are\nrejected) and brand-aware. Poll each job_id; assets arrive as styles complete.\n\nReturns: {\"pack_id\": \"...\", \"jobs\": {\"studio\": JobQueuedResponse, ...}}","operationId":"generate_profile_pic_pack_api_image_profile_pic_pack_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePicPackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Generate Profile Pic Pack Api Image Profile Pic Pack Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/image/profile-studio/styles":{"get":{"tags":["quickstart"],"summary":"Profile Studio Styles","description":"The preset style catalog for Profile Studio (holiday, professional, fun, …).","operationId":"profile_studio_styles_api_image_profile_studio_styles_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Profile Studio Styles Api Image Profile Studio Styles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/image/profile-studio/pack":{"post":{"tags":["quickstart"],"summary":"Profile Studio Pack","description":"Generate a pack of beautiful, on-identity profile pics from a TRAINED persona.\n\nUpload-a-few-photos → train a persona (POST /personas / /twins/{id}/lora-train) →\nthen this renders the user in any style: holiday, professional, fun, or a free-text\nscene. Identity is carried by the persona's LoRA (high fidelity, clears the identity\ngate), not a single reference photo — that's the difference vs /image/profile-pic-pack.","operationId":"profile_studio_pack_api_image_profile_studio_pack_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileStudioPackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Profile Studio Pack Api Image Profile Studio Pack Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collateral/ads-campaign":{"post":{"tags":["quickstart"],"summary":"Generate Ads Campaign","description":"Generate a multi-format ad campaign in one call.\n\nDispatches one job per requested format (default: Instagram 1:1, Stories 9:16,\nYouTube 16:9, LinkedIn 1:1) and returns all job IDs. Poll each job_id\nindependently; subscribe to the ``asset.created`` webhook to receive assets\nas they complete (formats finish at different times).\n\nReturns: {\"jobs\": {\"instagram_square\": JobQueuedResponse, ...}}","operationId":"generate_ads_campaign_api_collateral_ads_campaign_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdsCampaignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Generate Ads Campaign Api Collateral Ads Campaign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/image/meme-face-swap":{"post":{"tags":["quickstart"],"summary":"Meme Face Swap","description":"Swap a face into a meme template image.\n\nThin wrapper around the image edit face-swap operation. Outputs a\nsingle image with the source face composited onto the meme.","operationId":"meme_face_swap_api_image_meme_face_swap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemeSwapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/gif-face-swap":{"post":{"tags":["quickstart"],"summary":"Gif Face Swap","description":"Swap a face into a GIF.\n\nThe worker converts GIF→MP4, runs video face-swap, then converts\nthe result back to GIF. Output asset type is ``video`` (MP4); if you\nneed a GIF output, re-encode via the /video/postprocess endpoint.","operationId":"gif_face_swap_api_video_gif_face_swap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GifFaceSwapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/comments":{"get":{"tags":["reviews"],"summary":"List Comments","operationId":"list_comments_api_projects__project_id__comments_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommentResponse"},"title":"Response List Comments Api Projects  Project Id  Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["reviews"],"summary":"Create Comment","operationId":"create_comment_api_projects__project_id__comments_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"body","in":"query","required":true,"schema":{"type":"string","title":"Body"}},{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/approval-workflows":{"get":{"tags":["reviews"],"summary":"List Approval Workflows","operationId":"list_approval_workflows_api_projects__project_id__approval_workflows_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalWorkflowResponse"},"title":"Response List Approval Workflows Api Projects  Project Id  Approval Workflows Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["reviews"],"summary":"Create Approval Workflow","operationId":"create_approval_workflow_api_projects__project_id__approval_workflows_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Stages"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/review-links":{"get":{"tags":["reviews"],"summary":"List Review Links","operationId":"list_review_links_api_projects__project_id__review_links_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReviewLinkResponse"},"title":"Response List Review Links Api Projects  Project Id  Review Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["reviews"],"summary":"Create Review Link","operationId":"create_review_link_api_projects__project_id__review_links_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"reviewer_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Name"}},{"name":"reviewer_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Email"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/review/{token}":{"get":{"tags":["reviews"],"summary":"Get Review Link","operationId":"get_review_link_api_review__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/review/{token}/approve":{"post":{"tags":["reviews"],"summary":"Approve Review Link","operationId":"approve_review_link_api_review__token__approve_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/slack/commands":{"post":{"tags":["slack"],"summary":"Slack Commands","operationId":"slack_commands_api_integrations_slack_commands_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/slack/events":{"post":{"tags":["slack"],"summary":"Slack Events","operationId":"slack_events_api_integrations_slack_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/slack/interactivity":{"post":{"tags":["slack"],"summary":"Slack Interactivity","operationId":"slack_interactivity_api_integrations_slack_interactivity_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/slack/install-link":{"post":{"tags":["slack"],"summary":"Slack Install Link","description":"Return a Slack 'Add to Slack' URL bound to the caller's current UseMo workspace.\n\nThe UseMo app calls this (authenticated) and opens the returned URL so the user installs the\napp into their Slack workspace; the resulting team is mapped to this UseMo workspace.","operationId":"slack_install_link_api_integrations_slack_install_link_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/slack/oauth/callback":{"get":{"tags":["slack"],"summary":"Slack Oauth Callback","description":"Slack redirects the browser here after authorization. Public (verified by state).","operationId":"slack_oauth_callback_api_integrations_slack_oauth_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/slack/installations":{"get":{"tags":["slack"],"summary":"List Slack Installations","description":"List the Slack workspaces connected to the current UseMo workspace.\n\nLets the app show \"Connected ✓\" and which team(s). Returns only safe fields — never the\nbot token.","operationId":"list_slack_installations_api_integrations_slack_installations_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/slack/installations/{installation_id}":{"delete":{"tags":["slack"],"summary":"Disconnect Slack Installation","description":"Disconnect a Slack workspace (soft-deactivate). Slash commands/events from that team then\nfall through to the not-installed path. Scoped to the caller's workspace.","operationId":"disconnect_slack_installation_api_integrations_slack_installations__installation_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Installation Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/image/generate":{"post":{"tags":["studio-compat","studio-compat"],"summary":"Studio Image Generate","operationId":"studio_image_generate","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/generate-ai":{"post":{"tags":["studio-compat","studio-compat"],"summary":"Studio Video Generate Ai","operationId":"studio_video_generate_ai","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-UseMo-Canary-Grant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Usemo-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/image/remove-object":{"post":{"tags":["studio-compat","studio-compat"],"summary":"Studio Image Remove Object","operationId":"studio_image_remove_object","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveObjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/image/enhance":{"post":{"tags":["studio-compat","studio-compat"],"summary":"Studio Image Enhance","operationId":"studio_image_enhance","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoEnhanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/image/edit":{"post":{"tags":["studio-compat"],"summary":"Studio Image Edit","description":"Translates Create.tsx /image/edit payload -> /edit/instruct semantics.","operationId":"studio_image_edit_api_image_edit_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ImageEditBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/spokesperson":{"post":{"tags":["studio-compat"],"summary":"Studio Video Spokesperson","description":"SpokespersonWizard payload -> /video/create semantics.\n\n``script`` is the customer's EXACT words, so it rides as ``script_segments``\n(verbatim mode, F5) — the director must never paraphrase a spokesperson script.\n``options.prompt`` becomes the scene/ask description; when absent we synthesize a\nminimal presenter ask so the grounded-storyboard path still has a brief to work\nfrom. Profile ids pass through for the render to resolve.","operationId":"studio_video_spokesperson_api_video_spokesperson_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SpokespersonBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks":{"get":{"tags":["webhooks"],"summary":"List Webhooks","operationId":"list_webhooks_api_webhooks_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpointResponse"},"title":"Response List Webhooks Api Webhooks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["webhooks"],"summary":"Create Webhook","operationId":"create_webhook_api_webhooks_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/{endpoint_id}":{"patch":{"tags":["webhooks"],"summary":"Update Webhook","operationId":"update_webhook_api_webhooks__endpoint_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["webhooks"],"summary":"Disable Webhook","operationId":"disable_webhook_api_webhooks__endpoint_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/deliveries":{"get":{"tags":["webhooks"],"summary":"List Webhook Deliveries","operationId":"list_webhook_deliveries_api_webhooks_deliveries_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryResponse"},"title":"Response List Webhook Deliveries Api Webhooks Deliveries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/deliveries/{delivery_id}/replay":{"post":{"tags":["webhooks"],"summary":"Replay Webhook Delivery","operationId":"replay_webhook_delivery_api_webhooks_deliveries__delivery_id__replay_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/storyboard":{"post":{"tags":["video"],"summary":"Generate Storyboard","description":"Agentic director (the moat): a one-line ask -> a grounded, fact-checked\nstoryboard built from THIS workspace's context. Synchronous + cheap (LLM only,\nno GPU) so the user previews and the critic gate blocks ungrounded claims\nbefore committing a render. ``shippable`` is false when the critic flags\nungrounded claims; ``verdict.issues`` explains why.","operationId":"generate_storyboard_api_video_storyboard_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/scene-video/quote":{"post":{"tags":["video"],"summary":"Scene Video Quote","description":"Price/quality selector (the 1/10th-price story as a live API): given a storyboard,\nreturn COGS at every tier (draft/standard/premium) + per-shot model routing. Cheap,\nsynchronous, no GPU — this is what the UI calls before committing a render.","operationId":"scene_video_quote_api_video_scene_video_quote_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/influencer":{"post":{"tags":["video"],"summary":"Generate Influencer","description":"In-product entry for the AI-influencer pillar (#56): persona prompt + script segments\n-> dispatches an async render job (persona seed -> RealVisXL de-plasticize -> Veo3\ni2v-from-seed native talking -> assemble) on a GPU worker. Billed as a reel render\n(twin_generate_content). Poll /video/runs for completion.","operationId":"generate_influencer_api_video_influencer_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/create":{"post":{"tags":["video"],"summary":"Create Video","description":"One-shot \"brief -> finished video\", end to end through the quality harness.\n\nA single call that (1) builds a GROUNDED storyboard with the critic gate on (``harness=True``)\nso ungrounded claims are blocked before any GPU spend, then (2) dispatches the GATED influencer\nrender (per-shot ArcFace identity + persona realism gates with bounded aimed retry). Where\n``/video/generate`` gates a single render, this path additionally gates the PLAN (storyboard\ncritic before spend), so every surface (app, Claude, ChatGPT, Slack) gets the best output we\ncan produce from one brief.\n\nReturns ``{shippable: false, storyboard, verdict}`` if the plan fails the grounding gate (no\nspend), else ``{shippable: true, storyboard, job, estimated_cost_usd}`` — poll ``job`` for the\nfinished video.\n\n``async_plan: true`` (PR #76 LB-502 fix): the storyboard phase (multi-call LLM plan +\ncritic gate) can exceed the GCLB timeout when run synchronously in-request — the LB\n502s the client while the handler keeps running, the job still dispatches and SPENDS\nafter the client saw a failure (retry -> double spend). With the flag, this returns\n``{job, planning: true, shippable: null}`` immediately; the plan runs as the first\nphase of the async job. A blocked plan terminally fails the job with\n``error_code=storyboard_gate_failed`` and ZERO GPU spend (charge refunded), and every\njob event / poll carries ``storyboard = {shippable, storyboard, verdict, reasons,\nretry_hint}`` once planning resolves.","operationId":"create_video_api_video_create_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-UseMo-Canary-Grant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Usemo-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/campaign/plan":{"post":{"tags":["video"],"summary":"Campaign Plan","description":"Agentic campaign costing: given video concepts (one per format/pillar), return the\nper-video + campaign-total COGS. The 'one brief -> a whole priced campaign' surface\n(InVideo-but-context-native). Concepts can come from the ideation step or be passed in.","operationId":"campaign_plan_api_video_campaign_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/campaign":{"post":{"tags":["video"],"summary":"Generate Campaign","description":"SELF-SERVE CAMPAIGN: one brief -> all 3 pillars (influencer + clone + business)\ndispatched as 3 decomposed renders. Returns campaign_id + 3 job_ids. The customer-facing\n\"default product\" wedge — one POST gets you a full priced campaign across the formats\nInVideo-class tools split into different SKUs.\n\npayload: {persona_prompt, script_segments, brief?, pillars?} where pillars defaults to\n[\"influencer\",\"clone\",\"business\"]. Each pillar dispatches a generate_influencer job with\n`pillar` + `campaign_id` stamped into the job params for grouping in GET /video/campaign/{id}.","operationId":"generate_campaign_api_video_campaign_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/campaign/{campaign_id}":{"get":{"tags":["video"],"summary":"Get Campaign","description":"Gallery view of a campaign: aggregates all jobs tagged with `campaign_id` in params,\nreturns per-pillar status + artifact URL + COGS. The 'customer sees the gallery' endpoint.","operationId":"get_campaign_api_video_campaign__campaign_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/talking-video/quote":{"post":{"tags":["video"],"summary":"Talking Video Quote","description":"Amortized COGS for a talking video (AI influencer / clone / business). One face base\nre-synced to the full script via LatentSync — the sub-$1/video primitive.","operationId":"talking_video_quote_api_video_talking_video_quote_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/talking-head/quote":{"post":{"tags":["video"],"summary":"Talking Head Quote","description":"Up-front cost for a talking-head scene aligned with Ark Seedance 2.5 + lip-sync rates.","operationId":"talking_head_quote_api_video_talking_head_quote_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/talking-head":{"post":{"tags":["video"],"summary":"Generate Talking Head","description":"Chained talking-head scene: script lines -> gated Seedance 2.5 + lip-sync scene.\n\nArk Seedance 2.5 body (single take up to 30s, or chained last-frame to\nfirst-frame with dissolve joins), identity-gated with enrollment re-anchor,\nowned LatentSync mouth when configured (Sync.so fallback otherwise; SyncNet\nscored when the self-hosted scorer is online and marked n/a when parked).\nFail-closed per shot with bounded retries; poll /video/runs for completion.","operationId":"generate_talking_head_api_video_talking_head_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/runs":{"get":{"tags":["video"],"summary":"List Video Runs","operationId":"list_video_runs_api_video_runs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VideoRunResponse"},"title":"Response List Video Runs Api Video Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/runs/{job_id}":{"get":{"tags":["video"],"summary":"Get Video Run","operationId":"get_video_run_api_video_runs__job_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/generate":{"post":{"tags":["video"],"summary":"Generate Video","operationId":"generate_video_api_video_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-UseMo-Canary-Grant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Usemo-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/preview/generate":{"post":{"tags":["video"],"summary":"Generate Video Preview","operationId":"generate_video_preview_api_video_preview_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/production/generate":{"post":{"tags":["video"],"summary":"Generate Video Production","operationId":"generate_video_production_api_video_production_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/stitch":{"post":{"tags":["video"],"summary":"Stitch Video","operationId":"stitch_video_api_video_stitch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoStitchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/postprocess":{"post":{"tags":["video"],"summary":"Postprocess Video","operationId":"postprocess_video_api_video_postprocess_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoPostProcessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/face-swap":{"post":{"tags":["video"],"summary":"Video Face Swap","operationId":"video_face_swap_api_video_face_swap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceSwapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/animate":{"post":{"tags":["video"],"summary":"Video Animate","description":"Motion-driven character replacement: the character still performs the driving clip.\n\nOne door: pre-generation refusals → paint frame-0 → warm Viggle propagate → motion +\ncharacter critics + full video suite, fail-closed. Priced 2 credits / 5 s (~$0.20) at\nvolume 480p; HQ resolutions add one credit block. Renderable length is capped to the\nwarm Viggle frame budget (~5.17 s) until multi-chunk ships.","operationId":"video_animate_api_video_animate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoAnimateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/{video_asset_id}/face-swap":{"post":{"tags":["video"],"summary":"Video Face Swap For Asset","operationId":"video_face_swap_for_asset_api_video__video_asset_id__face_swap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"video_asset_id","in":"path","required":true,"schema":{"type":"string","title":"Video Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceSwapForAssetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/face-swap/preview":{"post":{"tags":["video"],"summary":"Video Face Swap Preview","operationId":"video_face_swap_preview_api_video_face_swap_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceSwapPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/{video_asset_id}/face-swap/preview":{"post":{"tags":["video"],"summary":"Video Face Swap Preview For Asset","operationId":"video_face_swap_preview_for_asset_api_video__video_asset_id__face_swap_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"video_asset_id","in":"path","required":true,"schema":{"type":"string","title":"Video Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceSwapPreviewForAssetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/face-tracks":{"post":{"tags":["video"],"summary":"Video Face Tracks","operationId":"video_face_tracks_api_video_face_tracks_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceTracksRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/{video_asset_id}/tracks":{"post":{"tags":["video"],"summary":"Video Face Tracks For Asset","operationId":"video_face_tracks_for_asset_api_video__video_asset_id__tracks_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"video_asset_id","in":"path","required":true,"schema":{"type":"string","title":"Video Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceTracksForAssetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/face-swap/batch":{"post":{"tags":["video"],"summary":"Video Face Swap Batch","operationId":"video_face_swap_batch_api_video_face_swap_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceSwapBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/longform":{"post":{"tags":["video"],"summary":"Create Longform Project","description":"Script/brief + character registry + budget → a longform_project job.\n\nThe response always carries a cost projection (Hanriver-density heuristic;\nthe orchestrator re-projects from the REAL shot plan before any GPU spend\nand aborts cleanly if it exceeds budget_usd). ``dry_run=true`` returns the\nprojection without dispatching anything.\n\n``look_warnings`` (advisory, never blocking) flags known-bad patterns in\n``look_fragments`` — which is pasted into EVERY shot's prompt, so a bad look\nanchor is a whole-film defect, not a one-shot one. ADVISORY BY DESIGN: this\nis a pure deterministic lint (no infra to fail open on), and rejecting would\nbreak existing callers over prose style. It is a VISIBLE FLAG, never a silent\npass — and it is returned on ``dry_run`` too, which is where a caller checks\nbefore spending a GPU-second. See app/services/look_book.py.","operationId":"create_longform_project_api_video_longform_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongformCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/longform/{job_id}":{"get":{"tags":["video"],"summary":"Get Longform Project","description":"Parent status + the live per-shot state machine.","operationId":"get_longform_project_api_video_longform__job_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/longform/{job_id}/resume":{"post":{"tags":["video"],"summary":"Resume Longform Project","description":"Re-arm the orchestrator tick for a stalled or budget-aborted project.\n\nAccepted shots are never re-rendered — the tick continues from the\npersistent shot plan. A budget-aborted project can be resumed with a\nhigher ``budget_usd``. (Credits are not re-charged in the scaffold.)","operationId":"resume_longform_project_api_video_longform__job_id__resume_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LongformResumeRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series":{"post":{"tags":["cartoon"],"summary":"Create Series","description":"A new series in its own project. With ``bible`` the customer's bible is checked\nand used as written; otherwise ``brief`` is drafted into one (a paid job).","operationId":"create_series_api_cartoon_series_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cartoon"],"summary":"List Series","operationId":"list_series_api_cartoon_series_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}":{"get":{"tags":["cartoon"],"summary":"Get Series","operationId":"get_series_api_cartoon_series__series_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["cartoon"],"summary":"Update Series","description":"Edit the bible (checked again), change the brief, or approve the bible: an\napproved bible's drafted parts become the customer's.","operationId":"update_series_api_cartoon_series__series_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/bible":{"post":{"tags":["cartoon"],"summary":"Redraft Bible","operationId":"redraft_bible_api_cartoon_series__series_id__bible_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/characters":{"post":{"tags":["cartoon"],"summary":"Add Character","description":"A new cast member from the customer's description (and, optionally, their own\nart), designed into the series and drawn as a full character pack (a paid job).","operationId":"add_character_api_cartoon_series__series_id__characters_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharacterCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/characters/{character_id}/pack":{"post":{"tags":["cartoon"],"summary":"Make Pack","description":"Make the character's pack again (a paid job). A failed or partial pack asked for\nagain with nothing changed continues from its kept sheet and the boards that passed.","operationId":"make_pack_api_cartoon_series__series_id__characters__character_id__pack_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Character Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PackRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/characters/{character_id}/pack/approve":{"post":{"tags":["cartoon"],"summary":"Approve Held Pack","description":"Use a design the final review held back on quality: its drafts stay drafts, marked\nas approved by the customer, and episodes draw from them. A pack held by the preschool\nsafety check, or whose checks could not run, can only be made again.","operationId":"approve_held_pack_api_cartoon_series__series_id__characters__character_id__pack_approve_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Character Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/characters/{character_id}/lora":{"post":{"tags":["cartoon"],"summary":"Train Character Lora","description":"Train the character's own LoRA on its pack drawings (about half an hour, part of\nthe pack's price); then the shots it has to itself are drawn on open weights.","operationId":"train_character_lora_api_cartoon_series__series_id__characters__character_id__lora_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Character Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/characters/{character_id}/voice/design":{"post":{"tags":["cartoon"],"summary":"Design Character Voice","operationId":"design_character_voice_api_cartoon_series__series_id__characters__character_id__voice_design_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Character Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/narrator/voice/design":{"post":{"tags":["cartoon"],"summary":"Design Narrator Voice","operationId":"design_narrator_voice_api_cartoon_series__series_id__narrator_voice_design_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/characters/{character_id}/voice":{"put":{"tags":["cartoon"],"summary":"Choose Character Voice","operationId":"choose_character_voice_api_cartoon_series__series_id__characters__character_id__voice_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Character Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/narrator/voice":{"put":{"tags":["cartoon"],"summary":"Choose Narrator Voice","operationId":"choose_narrator_voice_api_cartoon_series__series_id__narrator_voice_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/voices":{"get":{"tags":["cartoon"],"summary":"Stock Voices","description":"Stock voices for a character or the narrator that speak ``language`` (English by\ndefault); en-GB, en-US and the other English accents are all English.","operationId":"stock_voices_api_cartoon_voices_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Language"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/episodes":{"post":{"tags":["cartoon"],"summary":"Create Episode","description":"A new episode: the customer's own script laid out as shots (every spoken word\nkept), or a script written from a premise and learning goal. The script comes back\nfor approval before anything is rendered.","operationId":"create_episode_api_cartoon_series__series_id__episodes_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EpisodeCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/episodes/{episode_id}":{"get":{"tags":["cartoon"],"summary":"Get Episode","operationId":"get_episode_api_cartoon_series__series_id__episodes__episode_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/episodes/{episode_id}/script":{"put":{"tags":["cartoon"],"summary":"Edit Script","description":"The customer's edits to the script, checked like a drafted one.","operationId":"edit_script_api_cartoon_series__series_id__episodes__episode_id__script_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/episodes/{episode_id}/render":{"post":{"tags":["cartoon"],"summary":"Render Episode","description":"Make the approved script into the episode (a paid job, priced per second).","operationId":"render_episode_api_cartoon_series__series_id__episodes__episode_id__render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/episodes/{episode_id}/dub":{"post":{"tags":["cartoon"],"summary":"Dub Episode","description":"Dub a made episode into another language with PyAI (a paid job, priced per second):\nthe picture is kept and the speech is voiced again in that language, keeping each\nspeaker's voice and the music (not lip sync). A draft episode's dub is a draft too.","operationId":"dub_episode_api_cartoon_series__series_id__episodes__episode_id__dub_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DubRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/episodes/{episode_id}/shots/redo":{"post":{"tags":["cartoon"],"summary":"Redo Shots","description":"Redo named shots of a made episode (``reclip`` keeps a shot's picture and\nanimates it again; ``pins`` choose another keyframe take), then assemble and review\nthe episode again. Priced per second of the shots redone.","operationId":"redo_shots_api_cartoon_series__series_id__episodes__episode_id__shots_redo_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShotRedoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/plan":{"post":{"tags":["cartoon"],"summary":"Plan Episodes","description":"The series' next episodes as premises the product can make, unlike the ones it has.\nWritten in the background (about a minute); read them from GET .../plan/{plan_id}.","operationId":"plan_episodes_api_cartoon_series__series_id__plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__cartoon__PlanRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cartoon/series/{series_id}/plan/{plan_id}":{"get":{"tags":["cartoon"],"summary":"Episode Plan","operationId":"episode_plan_api_cartoon_series__series_id__plan__plan_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companion/suggest":{"post":{"tags":["companion"],"summary":"Companion Suggest","description":"Proactive ideation: workspace context -> N ready-to-make video concepts (one per pillar),\neach grounded + costed. The \"what should I make today?\" moment, answered before the user asks.\n\nBody (all optional): {\"brief\": \"...\"} to steer the ideas; omit for the proactive default.\nReturns {ideas:[{title,hook,angle,pillar,format,duration_sec, ...}], plan:{per_step,total},\ngrounded:bool, context:{fact_count,coverage}}. 409 if the workspace has no context yet (the\ncompanion needs facts to ground against — the moat).","operationId":"companion_suggest_api_companion_suggest_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companion/plan":{"post":{"tags":["companion"],"summary":"Companion Plan","description":"The agentic step: the companion turns a brief into a concrete, grounded plan you can act on —\na fact-checked storyboard (built from THIS brand's context) plus suggested next actions. Set\n``iterate:true`` for the \"make it best\" loop (score -> aimed improve -> re-score, with a visible\ntrajectory). Reuses the grounded director — the model is the commodity, the harness is the product.\n\nBody: {\"brief\"|\"message\": \"...\", \"iterate\"?: bool, \"brand_voice\"?: str}. 422 if no brief; 409 if\nthe workspace has no brand context yet; 503 if no LLM provider is configured.","operationId":"companion_plan_api_companion_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companion/run":{"post":{"tags":["companion"],"summary":"Companion Run","description":"Default Dashboard Prompt-to-Outcome Harness: drop a photo/video/logo + one sentence.\n\nInspects any attached portrait (AuraFace mouth state, aspect ratio, voice gender),\nextracts verbatim spoken scripts and product/prospect brands, resolves verified\ntransparent PNG logos (or industry defaults like 'any random HVAC company' -> Carrier),\nsizes the single-take shot to the spoken audio, and returns the live agent trace +\nready-to-execute harness contract. When ``execute=True`` is passed, dispatches the\ngated job immediately and streams the initial agent trace steps to ``/ws/jobs``.","operationId":"companion_run_api_companion_run_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companion/sheet":{"post":{"tags":["companion"],"summary":"Companion Sheet","description":"Build or post-process a 10-view Seedance Character Sheet or Object Sheet.\n\nSupports both:\n  - ``mode=\"character\"`` (AI influencers, recurring microdrama cast: master spec,\n    asymmetry key, bracket-free identity string, A1/A2 anchors, C1/C2/C3 turntable\n    prompts, and 10-view timestamp frame map). Binds user Clone (`twin_id`/`clone_id`)\n    automatically when provided.\n  - ``mode=\"object\"`` (360° product/object turnaround: dimensions L×W×H, orthographic\n    proportion ratios W/H & L/H, material lighting class, H1/H2/H3 anchors, T1/T2\n    clips, S1–S3 stills, and 10-view frame map)\n  - Optional turnaround video extraction (`turnaround_video_path` + `out_dir`) and\n    orthographic silhouette measurement (`measure_image_path` + `expected_w_over_h`).","operationId":"companion_sheet_api_companion_sheet_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companion/copilot":{"post":{"tags":["companion"],"summary":"Companion Copilot","description":"Real-time As-You-Type Prompt Copilot for the UseMo Composer.\n\nScores the user's draft prompt across 6 cinematic axes (temporal windows,\npace-carrier/anchor, precursor micro-physics, camera choreography, sound design,\nand continuity/optics locks) and returns clickable Effect & Grammar Chips plus\nan instant preview upgrade.","operationId":"companion_copilot_api_companion_copilot_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companion/blueprint":{"post":{"tags":["companion"],"summary":"Companion Blueprint","description":"Turn a 1-sentence concept into a complete 15s–60s Cinematic Blueprint + model-native prompts.\n\nSupports:\n  - ``one_take_disaster_chase`` (Examples 1 & 2: coastal tsunami / urban sinkhole)\n  - ``one_take_gauntlet_escape`` (Example 4: rally truck escaping redwood mega-wildfire)\n  - ``multi_shot_mystery_reversal`` (Example 3: 7-shot cosmic horror enclosure & shadow twist)\n  - ``commercial_product_proof_ladder`` (Product launch proof film)\nAlso binds user Clone (`twin_id` / `clone_id`) when provided so the clone stars in the blueprint.","operationId":"companion_blueprint_api_companion_blueprint_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companion/batch-pitch":{"post":{"tags":["companion"],"summary":"Companion Batch Pitch","description":"Batch Sales Prospect Personalizer: 1 base talking video -> N prospect-branded MP4s.\n\nSupports both Option-2 modes:\n  - ``personalization_mode=\"logo_and_visual_pill\"`` ($0.00 marginal GPU cost/prospect)\n  - ``personalization_mode=\"spoken_name_splice\"`` (~$0.12 marginal GPU cost/prospect via 1.5s OmniHuman 2.0 splice)\nBinds user Clone (`twin_id` / `clone_id`) automatically for face, voice, and rep name.","operationId":"companion_batch_pitch_api_companion_batch_pitch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/companion/multi-rep-campaign":{"post":{"tags":["companion"],"summary":"Companion Multi Rep Campaign","description":"Option 2 Multi-Rep × Multi-Prospect OmniHuman 2.0 Campaign Endpoint.\n\nRenders (or reuses) 1 native OmniHuman 2.0 base video per sales rep or user Clone\n(~$0.66/rep once), and fans each rep's base video out across N prospects with either:\n  - ``personalization_mode=\"logo_and_visual_pill\"`` ($0.00/prospect -> $0.013/video at 5x50)\n  - ``personalization_mode=\"spoken_name_splice\"`` ($0.12/prospect -> $0.133/video at 5x50)\n\nEach entry in ``reps`` may be a full rep dict OR simply ``{\"twin_id\": \"<uuid>\"}`` /\n``{\"clone_id\": \"<uuid>\"}`` — or callers can pass top-level ``twin_id`` / ``clone_ids``\nto bind their workspace Clones directly.","operationId":"companion_multi_rep_campaign_api_companion_multi_rep_campaign_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/catalog":{"get":{"tags":["micro-drama"],"summary":"Micro Drama Catalog","operationId":"micro_drama_catalog_api_micro_drama_catalog_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/projects":{"post":{"tags":["micro-drama"],"summary":"Create Micro Drama Project","operationId":"create_micro_drama_project_api_micro_drama_projects_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/projects/{project_id}/bind-cast":{"post":{"tags":["micro-drama"],"summary":"Bind Cast","description":"Bind each character: clone | influencer | mint_sheet (10-view Seedance Character Sheet).","operationId":"bind_cast_api_micro_drama_projects__project_id__bind_cast_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/location-plate":{"post":{"tags":["micro-drama"],"summary":"Location Plate","operationId":"location_plate_api_micro_drama_location_plate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/props/extract":{"post":{"tags":["micro-drama"],"summary":"Extract Props","operationId":"extract_props_api_micro_drama_props_extract_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/episodes/generate":{"post":{"tags":["micro-drama"],"summary":"Generate Episode","description":"Run the full micro-drama harness (write -> format + SEAM + PACE + Studio Ledger gates -> H3 Ref2VA containers + SRT).","operationId":"generate_episode_api_micro_drama_episodes_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/episodes/generate-batch":{"post":{"tags":["micro-drama"],"summary":"Generate Episode Batch","description":"Generate a contiguous multi-episode arc (e.g., First-3-Episodes Beat Card) with A-I reversal rotation.","operationId":"generate_episode_batch_api_micro_drama_episodes_generate_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/episodes/check-ledger":{"post":{"tags":["micro-drama"],"summary":"Check Ledger","operationId":"check_ledger_api_micro_drama_episodes_check_ledger_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/locks/verify":{"post":{"tags":["micro-drama"],"summary":"Verify Locks","operationId":"verify_locks_api_micro_drama_locks_verify_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/keyframes":{"post":{"tags":["micro-drama"],"summary":"Keyframes","description":"Keyframe contact sheet: start_boundary prompts per shot (rejects completed actions).","operationId":"keyframes_api_micro_drama_keyframes_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/render/compile":{"post":{"tags":["micro-drama"],"summary":"Compile Render","description":"Compile + validate H3 Ref2VA prompt(s). Multi-shot when 2-3 shots supplied.","operationId":"compile_render_api_micro_drama_render_compile_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/action-split":{"post":{"tags":["micro-drama"],"summary":"Action Split","description":"H3 Slap (1 shot) vs Shove (2 shots at contact boundary) planner.","operationId":"action_split_api_micro_drama_action_split_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/audio/cast-plan":{"post":{"tags":["micro-drama"],"summary":"Cast Audio Plan","description":"Build PyAI Cast emotional speech plan + PyAI Dub 11-language localization spec for an episode.","operationId":"cast_audio_plan_api_micro_drama_audio_cast_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/ua-hook":{"post":{"tags":["micro-drama"],"summary":"Ua Hook","description":"TikTok/Reels UA hook slice plan from gated episode.","operationId":"ua_hook_api_micro_drama_ua_hook_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/moral-parable/blueprint":{"post":{"tags":["micro-drama"],"summary":"Moral Parable Blueprint","description":"Build + validate a standalone `Moral Micro-Drama` (5-Act Dignity Parable with Sacred Object Motif,\nJ/L-cut Audio Bridges, Off-Screen Voiceover over Macro B-Roll, Symmetric Callback, and Closing Moral Card).","operationId":"moral_parable_blueprint_api_micro_drama_moral_parable_blueprint_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/moral-parable/validate":{"post":{"tags":["micro-drama"],"summary":"Moral Parable Validate","description":"Validate an episode against the 6 structural laws of a `Moral Micro-Drama`.","operationId":"moral_parable_validate_api_micro_drama_moral_parable_validate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/spatial-direction/plan":{"post":{"tags":["micro-drama"],"summary":"Spatial Direction Plan","description":"Prompt-Driven Floor Plan & 8-Law Shot-Direction Planner (with aimed retry).\n\nPlans the caller's brief with the live director. ``use_live_llm: false`` returns the fixed\nWatchmaker reference plan instead, labelled ``source=\"deterministic_reference\"``.","operationId":"spatial_direction_plan_api_micro_drama_spatial_direction_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/blocking/plan":{"post":{"tags":["micro-drama"],"summary":"Blocking Direction Plan","description":"Compile a script into a simulated world/blocking/coverage plan before generation spend.","operationId":"blocking_direction_plan_api_micro_drama_blocking_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/spatial-direction/validate":{"post":{"tags":["micro-drama"],"summary":"Spatial Direction Validate","description":"Validate a spatial shot-direction plan against the 8 Floor-Plan & Shot-Direction Laws.","operationId":"spatial_direction_validate_api_micro_drama_spatial_direction_validate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/moral-film/plan":{"post":{"tags":["micro-drama"],"summary":"Moral Film Plan","description":"Stage-1 Productized Moral Micro-Drama Film Compiler: turns a customer brief into a\nvalidated FilmScript, timeline, cost estimate, 8-law spatial audit, and blocking plan.","operationId":"moral_film_plan_api_micro_drama_moral_film_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/moral-film/render":{"post":{"tags":["micro-drama"],"summary":"Moral Film Render","description":"One-door Moral Micro-Drama Film pipeline (supports plan_only, stop_after_keyframes, or full render).","operationId":"moral_film_render_api_micro_drama_moral_film_render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/moral-film/jobs":{"post":{"tags":["micro-drama"],"summary":"Moral Film Enqueue Job","description":"Queue an async Moral Micro-Drama Film job on the Celery video lane (returns `JobQueuedResponse`\nand fires `job.completed` + `asset.created` webhooks on completion).","operationId":"moral_film_enqueue_job_api_micro_drama_moral_film_jobs_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/moral-film/jobs/batch":{"post":{"tags":["micro-drama"],"summary":"Moral Film Enqueue Batch","description":"Batch-queue 1..50 Moral Micro-Drama episodes onto the Celery video lane in one call.","operationId":"moral_film_enqueue_batch_api_micro_drama_moral_film_jobs_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/moral-film/scene-mesh/plan":{"post":{"tags":["micro-drama"],"summary":"Moral Film Scene Mesh Plan","description":"Compile a dynamic Scene & Gaze-Handoff Map plus a 2x2 / 2x3 / 3x3 Multi-Angle Scene\nCoverage Contact Sheet Mesh prompt for any scene in a FilmScript.","operationId":"moral_film_scene_mesh_plan_api_micro_drama_moral_film_scene_mesh_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/micro-drama/moral-film/turnaround-2x2/prompt":{"post":{"tags":["micro-drama"],"summary":"Moral Film Turnaround 2X2 Prompt","description":"Build a 2x2 Photographer's Contact Sheet Character Turnaround prompt (front_0,\nthree_quarter_left, three_quarter_right, profile_right) with off-lens horizontal gaze\nand hands below frame.","operationId":"moral_film_turnaround_2x2_prompt_api_micro_drama_moral_film_turnaround_2x2_prompt_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/chatgpt/openapi.json":{"get":{"tags":["integrations"],"summary":"Chatgpt Action Openapi","description":"Curated OpenAPI document for the UseMo ChatGPT Custom GPT Action.\n\nPoint a Custom GPT's Action at this URL and set API-key auth (header ``X-API-Key``).","operationId":"chatgpt_action_openapi_api_integrations_chatgpt_openapi_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Chatgpt Action Openapi Api Integrations Chatgpt Openapi Json Get"}}}}}}},"/api/ghl/webhook/{workspace_id}":{"post":{"tags":["ghl"],"summary":"Ghl Webhook","description":"Receive GHL events and auto-trigger video generation.\n\nGHL requires a 200 response within 5s — heavy work runs in background.\nConfigure webhook URL in GHL: {api_base}/ghl/webhook/{workspace_id}\nSignature verification uses workspace.settings.ghl_webhook_secret.","operationId":"ghl_webhook_api_ghl_webhook__workspace_id__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ghl/outreach":{"post":{"tags":["ghl"],"summary":"Ghl Outreach","description":"Run a batch personalized-video campaign pulled from a GHL contact segment.\n\nIf ghl_tag is set, contacts are pulled live from GHL API using workspace.settings.ghl_api_key.\nOtherwise, use the inline contacts list.\nRequires Agency plan.","operationId":"ghl_outreach_api_ghl_outreach_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GHLOutreachRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ghl/contacts/{ghl_contact_id}/deliver":{"post":{"tags":["ghl"],"summary":"Deliver Video To Ghl","description":"Push a completed UseMo video URL into GHL as a contact note (and optional custom field).\n\nRequires Agency plan. The job must belong to this workspace and must be completed.","operationId":"deliver_video_to_ghl_api_ghl_contacts__ghl_contact_id__deliver_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ghl_contact_id","in":"path","required":true,"schema":{"type":"string","title":"Ghl Contact Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GHLDeliverRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gifs/search":{"get":{"tags":["gifs"],"summary":"Search Gifs","description":"Search the configured GIF provider (or trending when q is empty), with a\n1h result cache and a global hourly cap protecting the shared provider key.\n\nReturns: {\"results\": [...], \"provider\": \"giphy|tenor\", \"cached\": bool, \"rate_limited\": bool}","operationId":"search_gifs_api_gifs_search_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search query. Empty returns trending GIFs.","default":"","title":"Q"},"description":"Search query. Empty returns trending GIFs."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":24,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/influencers/mint":{"post":{"tags":["influencers"],"summary":"Mint Influencer","description":"Generate a realistic influencer face from a free-text description.\n\nThe prompt is composed from the canonical anti-plastic realism recipe so every\nminted human clears the no-plastic bar regardless of how the user phrases it.","operationId":"mint_influencer_api_influencers_mint_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MintInfluencerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/search":{"get":{"tags":["library"],"summary":"Search Library","description":"Return reusable assets of a kind, best (most-reused, highest-score) first.\nEmpty list if the library has nothing (or is not yet migrated).","operationId":"search_library_api_library_search_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"kind","in":"query","required":true,"schema":{"type":"string","description":"Asset kind: face | meme | persona | broll | ...","title":"Kind"},"description":"Asset kind: face | meme | persona | broll | ..."},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by tag overlap (repeatable).","title":"Tag"},"description":"Filter by tag overlap (repeatable)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["library"],"summary":"Search Library Semantic","description":"Type-anything search: LLM query understanding -> dense (TurboVec) + sparse\n(Postgres FTS) -> RRF. `weak` flags a poor match so the client can offer\ngenerate-on-miss instead of mediocre results.\n\nPUBLIC + global-only: browsing the template gallery needs no login, and\nglobal_only=True guarantees a workspace's promoted-private assets are never\nexposed to anonymous or cross-workspace callers.","operationId":"search_library_semantic_api_library_search_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/animals":{"get":{"tags":["library"],"summary":"Animal Shelf","description":"Pilot picker shelf: curated animal keyframes grouped in species order.\n\nUnstocked species report `count: 0` (UI renders \"coming soon\"). Unknown\nspecies 422s against the pilot allowlist instead of returning a confusing\nempty shelf.","operationId":"animal_shelf_api_library_animals_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to one pilot species.","title":"Species"},"description":"Filter to one pilot species."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":60,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/animals/render":{"post":{"tags":["library"],"summary":"Render Animal","description":"Pick → materialize → render: one call from shelf choice to queued video.\n\nA thin adapter, not a new pipeline (same pattern as the studio-compat\nspokesperson adapter): validation + keyframe pick + workspace materialize\nhappen here, then the render itself is delegated to video `generate_video`\n— identical quotas, contracts, credit debit and dispatch as any other\nrender. The pose advisory rides along in the envelope, never a block.\nRetry-safe: materialize is idempotent, so the same `X-Idempotency-Key`\nreplays the original job instead of charging again.","operationId":"render_animal_api_library_animals_render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnimalRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/catalog":{"get":{"tags":["library"],"summary":"Library Catalog","description":"PUBLIC browse of the global template catalog — no query, no login. Lets the\ngallery show real content on page load instead of an empty search box. Returns\nplatform (workspace_id IS NULL) assets. Only enriched assets (with a search\ncaption) are shown — they're the finished, thumbnail-able catalog.\n\nWithout a `kind` filter the result is INTERLEAVED across kinds (persona, broll,\nmeme, image, gif, face) so the gallery shows a varied mix — otherwise the newest\nbatch (e.g. a run of stills) would bury all the video content below the fold.","operationId":"library_catalog_api_library_catalog_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to one kind (persona|broll|meme|gif|face). None = all.","title":"Kind"},"description":"Filter to one kind (persona|broll|meme|gif|face). None = all."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":60,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page offset for 'load more' pagination.","default":0,"title":"Offset"},"description":"Page offset for 'load more' pagination."},{"name":"original_only","in":"query","required":false,"schema":{"type":"boolean","description":"Exclude recognizable IP (celebrity/character/brand). Unclassified assets are KEPT (only known-IP is filtered). Use for owned-template / marketing surfaces; leave off for the user-initiated remix browse.","default":false,"title":"Original Only"},"description":"Exclude recognizable IP (celebrity/character/brand). Unclassified assets are KEPT (only known-IP is filtered). Use for owned-template / marketing surfaces; leave off for the user-initiated remix browse."},{"name":"caption_safe","in":"query","required":false,"schema":{"type":"boolean","description":"Return only owned/licensed UseMo-CDN assets with a positive provenance receipt.","default":false,"title":"Caption Safe"},"description":"Return only owned/licensed UseMo-CDN assets with a positive provenance receipt."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}],"description":"Bounded lexical search over the enriched catalog text.","title":"Q"},"description":"Bounded lexical search over the enriched catalog text."},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}],"title":"Category"}},{"name":"intent","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}],"title":"Intent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/item/{asset_id}":{"get":{"tags":["library"],"summary":"Get Library Asset","description":"Public — platform (global) assets only; workspace-private assets 404 here so\nthey're never exposed by id.","operationId":"get_library_asset_api_library_item__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"}}}}}}},"/api/library/remix-options":{"get":{"tags":["library"],"summary":"Remix Options","description":"PUBLIC — the curated controls for the remix modal: voices, dub languages, caption styles.\nLets the frontend render real dropdowns without hardcoding the lists.","operationId":"remix_options_api_library_remix_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/library/remix":{"post":{"tags":["library"],"summary":"Remix Library","description":"Apply an EditSpec (face / new speech+lipsync / captions / length) to a base\nlibrary video. Heavy (GPU) -> dispatched; the response is a queued-job handle.","operationId":"remix_library_api_library_remix_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemixRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/seed":{"post":{"tags":["library"],"summary":"Seed Library","description":"Seed the platform library with the curated cold-start manifest.\n\nIdempotent by URL — re-running skips assets already seeded. Enqueues background\nenrichment on each new asset so it becomes searchable within a few minutes.\n\nOperator-only (global_role = account_owner).","operationId":"seed_library_api_library_seed_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SeedRequest"}],"default":{},"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/quality":{"get":{"tags":["public-quality"],"summary":"Public Quality","operationId":"public_quality_api_public_quality_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"type":"string","default":"7d","title":"Window"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Public Quality Api Public Quality Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/health":{"get":{"tags":["health"],"summary":"Healthcheck","operationId":"healthcheck_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/health/deep":{"get":{"tags":["health"],"summary":"Deep Healthcheck","operationId":"deep_healthcheck_api_v1_health_deep_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/whoami":{"get":{"tags":["auth"],"summary":"Whoami","operationId":"whoami_api_v1_auth_whoami_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/api-keys":{"get":{"tags":["auth"],"summary":"List Api Keys","operationId":"list_api_keys_api_v1_auth_api_keys_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/APIKeyResponse"},"title":"Response List Api Keys Api V1 Auth Api Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["auth"],"summary":"Create Api Key","operationId":"create_api_key_api_v1_auth_api_keys_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/api-keys/{api_key_id}":{"delete":{"tags":["auth"],"summary":"Revoke Api Key","operationId":"revoke_api_key_api_v1_auth_api_keys__api_key_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/api-keys/{api_key_id}/rotate":{"post":{"tags":["auth"],"summary":"Rotate Api Key","operationId":"rotate_api_key_api_v1_auth_api_keys__api_key_id__rotate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/bootstrap-dev":{"post":{"tags":["auth"],"summary":"Bootstrap Dev","operationId":"bootstrap_dev_api_v1_auth_bootstrap_dev_post","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}},{"name":"account_name","in":"query","required":true,"schema":{"type":"string","title":"Account Name"}},{"name":"workspace_name","in":"query","required":true,"schema":{"type":"string","title":"Workspace Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/google":{"post":{"tags":["auth"],"summary":"Google Auth","operationId":"google_auth_api_v1_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","operationId":"refresh_api_v1_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_api_v1_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Logout Api V1 Auth Logout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_api_v1_auth_me_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["auth"],"summary":"Update Me","operationId":"update_me_api_v1_auth_me_put","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","operationId":"forgot_password_api_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_api_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/change-password":{"put":{"tags":["auth"],"summary":"Change Password","operationId":"change_password_api_v1_auth_change_password_put","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/send-verification":{"post":{"tags":["auth"],"summary":"Send Verification","operationId":"send_verification_api_v1_auth_send_verification_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify-email":{"post":{"tags":["auth"],"summary":"Verify Email","operationId":"verify_email_api_v1_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/magic-link":{"post":{"tags":["auth"],"summary":"Magic Link","description":"Passwordless sign-in AND sign-up: existing emails get a sign-in link;\nnew emails get an account provisioned (unusable random password — login is\nGoogle/magic-link only) and the same link. Clicking the link is the email\nverification, so no separate verify mail is sent.","operationId":"magic_link_api_v1_auth_magic_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify-magic-link":{"post":{"tags":["auth"],"summary":"Verify Magic Link","operationId":"verify_magic_link_api_v1_auth_verify_magic_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/change-email":{"put":{"tags":["auth"],"summary":"Change Email","operationId":"change_email_api_v1_auth_change_email_put","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeEmailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify-email-change":{"post":{"tags":["auth"],"summary":"Verify Email Change","operationId":"verify_email_change_api_v1_auth_verify_email_change_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/check-domain-access":{"post":{"tags":["auth"],"summary":"Check Domain Access","description":"Whether an email's domain auto-grants membership to a workspace.\nMinimal v1: returns hasAccess=false (no domain-allowlist table in schema yet).\nExtend later by joining a future ``account_domains`` table.","operationId":"check_domain_access_api_v1_auth_check_domain_access_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckDomainAccessRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/register-with-domain":{"post":{"tags":["auth"],"summary":"Register With Domain","description":"Same as /register today; a domain-join path will fork here once domain allowlists land.\n\nNB: must forward the real Request — the old 2-arg delegation bound the db session\nto register()'s `request` parameter and 500'd on every call (audit finding #4).","operationId":"register_with_domain_api_v1_auth_register_with_domain_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/invite":{"post":{"tags":["auth"],"summary":"Invite","operationId":"invite_api_v1_auth_invite_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/accept-invite":{"post":{"tags":["auth"],"summary":"Accept Invite","operationId":"accept_invite_api_v1_auth_accept_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInviteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mcp-consent":{"get":{"tags":["auth"],"summary":"Get Mcp Consent Session","description":"Return safe display metadata and authorized workspaces for a pending MCP OAuth request.","operationId":"get_mcp_consent_session_api_v1_auth_mcp_consent_get","parameters":[{"name":"txn","in":"query","required":true,"schema":{"type":"string","title":"Txn"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mcp-consent/authorize":{"post":{"tags":["auth"],"summary":"Authorize Mcp Consent Session","description":"Approve a pending MCP OAuth request using the caller's native/Google session.","operationId":"authorize_mcp_consent_session_api_v1_auth_mcp_consent_authorize_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpConsentAuthorizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/free-tools/logo-pop/access":{"post":{"tags":["free-tools"],"summary":"Request Logo Pop Access","description":"Capture a lead and email a tool-scoped verification link.","operationId":"request_logo_pop_access_api_v1_free_tools_logo_pop_access_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoPopAccessRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/free-tools/logo-pop/verify":{"post":{"tags":["free-tools"],"summary":"Verify Logo Pop Access","description":"Verify mailbox control and return a tool-only access grant.","operationId":"verify_logo_pop_access_api_v1_free_tools_logo_pop_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/free-tools/logo-pop/check":{"post":{"tags":["free-tools"],"summary":"Check Logo Pop Access","operationId":"check_logo_pop_access_api_v1_free_tools_logo_pop_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/free-tools/logo-pop/events":{"post":{"tags":["free-tools"],"summary":"Record Logo Pop Event","description":"Store an allow-listed event. Unknown metadata, including pixels, is dropped.","operationId":"record_logo_pop_event_api_v1_free_tools_logo_pop_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoPopEventBody"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/free-tools/events":{"post":{"tags":["free-tools"],"summary":"Record Free Tool Event","description":"Record one strictly allow-listed, content-free anonymous funnel event.","operationId":"record_free_tool_event_api_v1_free_tools_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreeToolEventBody"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/free-tools/ugc-ad-script/plan":{"post":{"tags":["free-tools"],"summary":"Create Ugc Ad Plan","description":"Write hooks, a verbatim script, and a shot list. Never spends GPU.","operationId":"create_ugc_ad_plan_api_v1_free_tools_ugc_ad_script_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__ugc_ad_planner__PlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/track":{"post":{"tags":["analytics"],"summary":"Track Event","operationId":"track_event_api_v1_analytics_track_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/product-events":{"post":{"tags":["analytics"],"summary":"Product Event","operationId":"product_event_api_v1_analytics_product_events_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductEventRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/individual-performance":{"get":{"tags":["analytics"],"summary":"Get Individual Performance","operationId":"get_individual_performance_api_v1_analytics_individual_performance_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"userId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/predict-engagement":{"post":{"tags":["analytics"],"summary":"Predict Engagement","operationId":"predict_engagement_api_v1_analytics_predict_engagement_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/usage":{"get":{"tags":["analytics"],"summary":"Get Usage Analytics","operationId":"get_usage_analytics_api_v1_analytics_usage_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/storage":{"get":{"tags":["analytics"],"summary":"Get Storage Analytics","operationId":"get_storage_analytics_api_v1_analytics_storage_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/team-activity":{"get":{"tags":["analytics"],"summary":"Get Team Activity Analytics","operationId":"get_team_activity_analytics_api_v1_analytics_team_activity_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsTeamActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/costs":{"get":{"tags":["analytics"],"summary":"Get Cost Analytics","description":"Estimated COGS and accept-rate per provider/model — the margin dashboard.\n\nSums the per-asset cost estimates stamped at finalize time and joins them\nwith review outcomes so cost_per_accepted_asset is a first-class number.","operationId":"get_cost_analytics_api_v1_analytics_costs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets":{"get":{"tags":["assets"],"summary":"List Assets","operationId":"list_assets_api_v1_assets_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"review_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Status"}},{"name":"is_favorite","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Favorite"}},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"}},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Before"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort By"}},{"name":"sort_direction","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Direction"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetResponse"},"title":"Response List Assets Api V1 Assets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/signed":{"get":{"tags":["assets"],"summary":"Signed Asset Path","operationId":"signed_asset_path_api_v1_assets_signed_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"raw","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Raw"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/search":{"get":{"tags":["assets"],"summary":"Semantic Search Assets","description":"TurboVec semantic search: embed the query text, coarse hamming scan over\nthe workspace's quantized codes, exact cosine rerank.","operationId":"semantic_search_assets_api_v1_assets_search_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":2000,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetResponse"},"title":"Response Semantic Search Assets Api V1 Assets Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/{asset_id}/similar":{"get":{"tags":["assets"],"summary":"Similar Assets","description":"Nearest neighbors of an already-indexed asset (dedup / variations).","operationId":"similar_assets_api_v1_assets__asset_id__similar_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetResponse"},"title":"Response Similar Assets Api V1 Assets  Asset Id  Similar Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/{asset_id}":{"get":{"tags":["assets"],"summary":"Get Asset","operationId":"get_asset_api_v1_assets__asset_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["assets"],"summary":"Update Asset","operationId":"update_asset_api_v1_assets__asset_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["assets"],"summary":"Delete Asset","operationId":"delete_asset_api_v1_assets__asset_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/{asset_id}/quality":{"get":{"tags":["assets"],"summary":"Get Asset Quality","operationId":"get_asset_quality_api_v1_assets__asset_id__quality_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/bulk-update":{"post":{"tags":["assets"],"summary":"Bulk Update Assets","operationId":"bulk_update_assets_api_v1_assets_bulk_update_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBulkUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetResponse"},"title":"Response Bulk Update Assets Api V1 Assets Bulk Update Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/bulk-delete":{"post":{"tags":["assets"],"summary":"Bulk Delete Assets","operationId":"bulk_delete_assets_api_v1_assets_bulk_delete_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetBulkDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/{asset_id}/download":{"post":{"tags":["assets"],"summary":"Signed Download Url","operationId":"signed_download_url_api_v1_assets__asset_id__download_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SignedDownloadRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/upload":{"post":{"tags":["assets"],"summary":"Upload Asset","operationId":"upload_asset_api_v1_assets_upload_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_asset_api_v1_assets_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/{asset_id}/share-links":{"post":{"tags":["assets"],"summary":"Create Asset Share Link","operationId":"create_asset_share_link_api_v1_assets__asset_id__share_links_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetShareLinkCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetShareLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/share/assets/{token}":{"get":{"tags":["assets"],"summary":"Get Shared Asset","operationId":"get_shared_asset_api_v1_share_assets__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/assets/{asset_id}/lineage":{"get":{"tags":["assets"],"summary":"Get Asset Lineage","operationId":"get_asset_lineage_api_v1_assets__asset_id__lineage_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLineageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/credits/balance":{"get":{"tags":["dashboard-compat"],"summary":"Credits Balance","description":"FE shape: CreditsBalance {available, used, limit, resetsAt, plan, generations?}.","operationId":"credits_balance_api_v1_credits_balance_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/usage/stats":{"get":{"tags":["dashboard-compat"],"summary":"Usage Stats","description":"FE shape: UsageStats {total_operations, week_operations, avg_generation_time, streak, activity_dates}.","operationId":"usage_stats_api_v1_usage_stats_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"timeframe","in":"query","required":false,"schema":{"type":"string","default":"month","title":"Timeframe"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/analytics/dashboard-stats":{"get":{"tags":["dashboard-compat"],"summary":"Dashboard Stats","description":"FE shape: DashboardStats {totalCreations, thisWeek, avgTime, streak}.","operationId":"dashboard_stats_api_v1_analytics_dashboard_stats_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artifacts":{"get":{"tags":["dashboard-compat"],"summary":"Artifacts Feed","description":"FE shape: { artifacts: Artifact[], total, limit, offset }.\n\n'Artifacts' in the dashboard sense are the workspace's ready Assets (the\nuser's recent creations), newest first.","operationId":"artifacts_feed_api_v1_artifacts_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":24,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/digital-twins":{"get":{"tags":["frontend-compat"],"summary":"Compat List Digital Twins","operationId":"compat_list_digital_twins_api_v1_digital_twins_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["frontend-compat"],"summary":"Compat Create Digital Twin","operationId":"compat_create_digital_twin_api_v1_digital_twins_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/digital-twins/{twin_id}":{"patch":{"tags":["frontend-compat"],"summary":"Compat Update Digital Twin","operationId":"compat_update_digital_twin_api_v1_digital_twins__twin_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatTwinUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["frontend-compat"],"summary":"Compat Delete Digital Twin","operationId":"compat_delete_digital_twin_api_v1_digital_twins__twin_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/text/generate":{"post":{"tags":["frontend-compat"],"summary":"Compat Generate Text","operationId":"compat_generate_text_api_v1_text_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatTextGenerateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/packs/preview":{"post":{"tags":["frontend-compat"],"summary":"Compat Pack Preview","operationId":"compat_pack_preview_api_v1_packs_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatPackBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/image/generate-from-pack":{"post":{"tags":["frontend-compat"],"summary":"Compat Image Generate From Pack","operationId":"compat_image_generate_from_pack_api_v1_image_generate_from_pack_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatPackBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/generate-from-pack":{"post":{"tags":["frontend-compat"],"summary":"Compat Video Generate From Pack","operationId":"compat_video_generate_from_pack_api_v1_video_generate_from_pack_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatPackBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/config":{"get":{"tags":["frontend-compat"],"summary":"Compat Files Config","description":"Static config in the FilestackConfig shape services/filestackService.ts\nreads. There is no Filestack account — uploads go through the native\n/assets/upload (aliased below as /files/upload).","operationId":"compat_files_config_api_v1_files_config_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/upload":{"post":{"tags":["frontend-compat"],"summary":"Compat Files Upload","operationId":"compat_files_upload_api_v1_files_upload_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_compat_files_upload_api_v1_files_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organizations":{"post":{"tags":["frontend-compat"],"summary":"Compat Create Organization","operationId":"compat_create_organization_api_v1_organizations_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatOrgCreateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/leads":{"post":{"tags":["frontend-compat"],"summary":"Capture Lead","description":"Deliberately pre-auth (public email-capture modal on the marketing hero).\nThrottled per IP AND per email so it can't be used to spam rows.","operationId":"capture_lead_api_v1_leads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCaptureBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/content/items/{item_id}":{"get":{"tags":["frontend-compat"],"summary":"Compat Get Content Item","description":"SharePage passes the /share/:type/:shareId path id here. That id is a\nshare-link TOKEN on links minted by the share machinery, so try the public\ntoken lookup first (identical posture to GET /share/assets/{token}). If it\nis not a token, fall back to an AUTHENTICATED workspace-scoped asset fetch.\nAn unauthenticated caller can only ever see what the share machinery would\nserve — private assets stay private.","operationId":"compat_get_content_item_api_v1_content_items__item_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batches":{"get":{"tags":["batches"],"summary":"List Batches","operationId":"list_batches_api_v1_batches_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batches/generate":{"post":{"tags":["batches"],"summary":"Create Generation Batch","operationId":"create_generation_batch_api_v1_batches_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batches/{batch_id}":{"get":{"tags":["batches"],"summary":"Get Batch","operationId":"get_batch_api_v1_batches__batch_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batches/{batch_id}/jobs":{"get":{"tags":["batches"],"summary":"List Batch Jobs","operationId":"list_batch_jobs_api_v1_batches__batch_id__jobs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchJobsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batches/{batch_id}/cancel":{"post":{"tags":["batches"],"summary":"Cancel Batch","operationId":"cancel_batch_api_v1_batches__batch_id__cancel_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batches/{batch_id}/retry-failed":{"post":{"tags":["batches"],"summary":"Retry Failed Batch Jobs","operationId":"retry_failed_batch_jobs_api_v1_batches__batch_id__retry_failed_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/batches/{batch_id}/manifest":{"get":{"tags":["batches"],"summary":"Get Batch Manifest","operationId":"get_batch_manifest_api_v1_batches__batch_id__manifest_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchManifestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/brands":{"get":{"tags":["brands"],"summary":"List Brand Kits","operationId":"list_brand_kits_api_v1_brands_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BrandKitResponse"},"title":"Response List Brand Kits Api V1 Brands Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["brands"],"summary":"Create Brand Kit","operationId":"create_brand_kit_api_v1_brands_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandKitCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandKitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/brands/{brand_id}":{"patch":{"tags":["brands"],"summary":"Update Brand Kit","operationId":"update_brand_kit_api_v1_brands__brand_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","title":"Brand Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandKitUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandKitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["brands"],"summary":"Delete Brand Kit","operationId":"delete_brand_kit_api_v1_brands__brand_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","title":"Brand Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capabilities/generation":{"get":{"tags":["capabilities"],"summary":"Generation Capabilities","operationId":"generation_capabilities_api_v1_capabilities_generation_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/whoami":{"get":{"tags":["capabilities"],"summary":"Whoami","description":"Safe, secret-free caller identity, workspace, billing balance, and plan limits.","operationId":"whoami_api_v1_whoami_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/capability-canary/jobs/{job_id}/terminal":{"get":{"tags":["internal"],"summary":"Get Capability Canary Terminal","description":"Read one redacted terminal receipt; never expose the public job payload.","operationId":"get_capability_canary_terminal_api_v1_internal_capability_canary_jobs__job_id__terminal_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"x-capability-canary-grant","in":"header","required":true,"schema":{"type":"string","minLength":64,"title":"X-Capability-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/capability-canary/teardown":{"post":{"tags":["internal"],"summary":"Teardown Capability Canary","description":"Cancel tickets and prove the dedicated GPU footprint is zero.","operationId":"teardown_capability_canary_api_v1_internal_capability_canary_teardown_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-capability-canary-grant","in":"header","required":true,"schema":{"type":"string","minLength":64,"title":"X-Capability-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/capability-canary/preflight":{"get":{"tags":["internal"],"summary":"Capability Canary Preflight","description":"Issue one opaque run grant after all zero-generation checks pass.","operationId":"capability_canary_preflight_api_v1_internal_capability_canary_preflight_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"manifest_digest","in":"query","required":true,"schema":{"type":"string","minLength":64,"maxLength":64,"title":"Manifest Digest"}},{"name":"expected_sha","in":"query","required":true,"schema":{"type":"string","minLength":40,"maxLength":40,"title":"Expected Sha"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/capability-canary/h3-max/preflight":{"get":{"tags":["internal"],"summary":"H3 Max Canary Preflight","description":"Issue a hosted H3 Max grant after zero-inference checks pass.","operationId":"h3_max_canary_preflight_api_v1_internal_capability_canary_h3_max_preflight_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"manifest_digest","in":"query","required":true,"schema":{"type":"string","minLength":64,"maxLength":64,"title":"Manifest Digest"}},{"name":"prompt_manifest_digest","in":"query","required":true,"schema":{"type":"string","minLength":71,"maxLength":71,"title":"Prompt Manifest Digest"}},{"name":"expected_sha","in":"query","required":true,"schema":{"type":"string","minLength":40,"maxLength":40,"title":"Expected Sha"}},{"name":"run_nonce","in":"query","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"title":"Run Nonce"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/capability-canary/h3-avatar/preflight":{"get":{"tags":["internal"],"summary":"H3 Avatar Canary Preflight","description":"Run exact-revision/node checks without generation or resource actions.","operationId":"h3_avatar_canary_preflight_api_v1_internal_capability_canary_h3_avatar_preflight_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"expected_sha","in":"query","required":true,"schema":{"type":"string","minLength":40,"maxLength":40,"title":"Expected Sha"}},{"name":"contract_profile","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64,"default":"production","title":"Contract Profile"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/capability-canary/h3-avatar/research/prestart":{"post":{"tags":["internal"],"summary":"Authorize H3 Avatar Research Prestart","description":"Durably reserve the matched A/B before H100 start.","operationId":"authorize_h3_avatar_research_prestart_api_v1_internal_capability_canary_h3_avatar_research_prestart_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-H3-Research-Pregen-Claim","in":"header","required":true,"schema":{"type":"string","minLength":32,"maxLength":512,"title":"X-H3-Research-Pregen-Claim"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/capability-canary/h3-avatar/research/grant":{"post":{"tags":["internal"],"summary":"Issue H3 Avatar Research Execution Grant","description":"Bind one consumable dispatch grant to off/fuse/release evidence.","operationId":"issue_h3_avatar_research_execution_grant_api_v1_internal_capability_canary_h3_avatar_research_grant_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-H3-Research-Execution-Grant","in":"header","required":true,"schema":{"type":"string","minLength":32,"maxLength":512,"title":"X-H3-Research-Execution-Grant"}},{"name":"X-GitHub-OIDC-Token","in":"header","required":true,"schema":{"type":"string","minLength":128,"maxLength":16384,"title":"X-Github-Oidc-Token"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/capability-canary/h3-avatar/dispatch":{"post":{"tags":["internal"],"summary":"Dispatch H3 Avatar Canary","description":"Dispatch one zero-customer-billing synthetic canary after live preflight.","operationId":"dispatch_h3_avatar_canary_api_v1_internal_capability_canary_h3_avatar_dispatch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":200,"title":"X-Idempotency-Key"}},{"name":"X-H3-Research-Execution-Grant","in":"header","required":false,"schema":{"type":"string","maxLength":512,"default":"","title":"X-H3-Research-Execution-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/capability-canary/h3-avatar/jobs/{job_id}/terminal":{"get":{"tags":["internal"],"summary":"Get H3 Avatar Canary Terminal","description":"Independently re-hash stored output and replay its qualification receipt.","operationId":"get_h3_avatar_canary_terminal_api_v1_internal_capability_canary_h3_avatar_jobs__job_id__terminal_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/recipes":{"get":{"tags":["internal"],"summary":"List Model Qualification Recipes","operationId":"list_model_qualification_recipes_api_v1_internal_model_qualifications_recipes_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications":{"post":{"tags":["internal"],"summary":"Create Model Qualification","operationId":"create_model_qualification_api_v1_internal_model_qualifications_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateQualificationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/wan-motion-fixtures":{"get":{"tags":["internal"],"summary":"Get Wan Motion Fixtures","operationId":"get_wan_motion_fixtures_api_v1_internal_model_qualifications_wan_motion_fixtures_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["internal"],"summary":"Prepare Wan Motion Fixture","operationId":"prepare_wan_motion_fixture_api_v1_internal_model_qualifications_wan_motion_fixtures_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareWanMotionFixtureRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/wan-motion-fixtures/{fixture_id}/disable":{"post":{"tags":["internal"],"summary":"Disable Wan Motion Fixture Route","operationId":"disable_wan_motion_fixture_route_api_v1_internal_model_qualifications_wan_motion_fixtures__fixture_id__disable_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"fixture_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Fixture Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/wan-cases/prepare":{"post":{"tags":["internal"],"summary":"Prepare Wan Case","operationId":"prepare_wan_case_api_v1_internal_model_qualifications_wan_cases_prepare_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareWanQualificationCaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/wan-cases":{"get":{"tags":["internal"],"summary":"Get Wan Cases","operationId":"get_wan_cases_api_v1_internal_model_qualifications_wan_cases_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/wan-cases/{prepared_case_id}/disable":{"post":{"tags":["internal"],"summary":"Disable Wan Case","operationId":"disable_wan_case_api_v1_internal_model_qualifications_wan_cases__prepared_case_id__disable_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"prepared_case_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Prepared Case Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/wan-activations":{"post":{"tags":["internal"],"summary":"Activate Wan","operationId":"activate_wan_api_v1_internal_model_qualifications_wan_activations_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateWanQualificationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/h3-cases/prepare":{"post":{"tags":["internal"],"summary":"Prepare H3 Case","operationId":"prepare_h3_case_api_v1_internal_model_qualifications_h3_cases_prepare_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareH3QualificationCaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/h3-activations":{"post":{"tags":["internal"],"summary":"Activate H3","operationId":"activate_h3_api_v1_internal_model_qualifications_h3_activations_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateH3QualificationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/{run_id}":{"get":{"tags":["internal"],"summary":"Get Model Qualification","operationId":"get_model_qualification_api_v1_internal_model_qualifications__run_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/{run_id}/stop":{"post":{"tags":["internal"],"summary":"Stop Model Qualification","operationId":"stop_model_qualification_api_v1_internal_model_qualifications__run_id__stop_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/{run_id}/resume":{"post":{"tags":["internal"],"summary":"Resume Model Qualification","operationId":"resume_model_qualification_api_v1_internal_model_qualifications__run_id__resume_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/model-qualifications/{run_id}/tick":{"post":{"tags":["internal"],"summary":"Tick Model Qualification","operationId":"tick_model_qualification_api_v1_internal_model_qualifications__run_id__tick_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/clip-studio/capabilities":{"get":{"tags":["creator-clip-studio"],"summary":"Clip Capabilities","operationId":"clip_capabilities_api_v1_creator_clip_studio_capabilities_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/clip-studio/plans":{"post":{"tags":["creator-clip-studio"],"summary":"Create Clip Plan","operationId":"create_clip_plan_api_v1_creator_clip_studio_plans_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipPlanCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/clip-studio/plans/{plan_id}":{"get":{"tags":["creator-clip-studio"],"summary":"Get Clip Plan","operationId":"get_clip_plan_api_v1_creator_clip_studio_plans__plan_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["creator-clip-studio"],"summary":"Delete Clip Plan","operationId":"delete_clip_plan_api_v1_creator_clip_studio_plans__plan_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/clip-studio/plans/{plan_id}/render":{"post":{"tags":["creator-clip-studio"],"summary":"Render Clip Plan","operationId":"render_clip_plan_api_v1_creator_clip_studio_plans__plan_id__render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipRenderDispatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/video-reframer/capabilities":{"get":{"tags":["creator-video-reframer"],"summary":"Capabilities","operationId":"capabilities_api_v1_creator_video_reframer_capabilities_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/video-reframer/projects":{"post":{"tags":["creator-video-reframer"],"summary":"Create Project","operationId":"create_project_api_v1_creator_video_reframer_projects_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoReframeProjectCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoReframeProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["creator-video-reframer"],"summary":"List Projects","operationId":"list_projects_api_v1_creator_video_reframer_projects_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VideoReframeProjectResponse"},"title":"Response List Projects Api V1 Creator Video Reframer Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/video-reframer/projects/{project_id}":{"get":{"tags":["creator-video-reframer"],"summary":"Get Project","operationId":"get_project_api_v1_creator_video_reframer_projects__project_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoReframeProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["creator-video-reframer"],"summary":"Delete Project","operationId":"delete_project_api_v1_creator_video_reframer_projects__project_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/video-reframer/projects/{project_id}/render":{"post":{"tags":["creator-video-reframer"],"summary":"Render Project","operationId":"render_project_api_v1_creator_video_reframer_projects__project_id__render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoReframeRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoReframeDispatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/subtitle-studio/capabilities":{"get":{"tags":["creator-subtitle-studio"],"summary":"Capabilities","operationId":"capabilities_api_v1_creator_subtitle_studio_capabilities_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/subtitle-studio/transcription/agreement":{"get":{"tags":["creator-subtitle-studio"],"summary":"Get Transcription Agreement","operationId":"get_transcription_agreement_api_v1_creator_subtitle_studio_transcription_agreement_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/subtitle-studio/transcription/consents":{"post":{"tags":["creator-subtitle-studio"],"summary":"Create Transcription Consent","operationId":"create_transcription_consent_api_v1_creator_subtitle_studio_transcription_consents_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttConsentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/subtitle-studio/transcription/consents/{consent_id}/withdraw":{"post":{"tags":["creator-subtitle-studio"],"summary":"Withdraw Transcription Consent","operationId":"withdraw_transcription_consent_api_v1_creator_subtitle_studio_transcription_consents__consent_id__withdraw_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"consent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Consent Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttConsentWithdrawal"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/subtitle-studio/transcription/jobs":{"post":{"tags":["creator-subtitle-studio"],"summary":"Create Transcription Job","operationId":"create_transcription_job_api_v1_creator_subtitle_studio_transcription_jobs_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SttTranscriptionJobCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/subtitle-studio/projects":{"post":{"tags":["creator-subtitle-studio"],"summary":"Create Project","operationId":"create_project_api_v1_creator_subtitle_studio_projects_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubtitleProjectCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["creator-subtitle-studio"],"summary":"List Projects","operationId":"list_projects_api_v1_creator_subtitle_studio_projects_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/subtitle-studio/projects/{project_id}":{"get":{"tags":["creator-subtitle-studio"],"summary":"Get Project","operationId":"get_project_api_v1_creator_subtitle_studio_projects__project_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["creator-subtitle-studio"],"summary":"Delete Project","operationId":"delete_project_api_v1_creator_subtitle_studio_projects__project_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/subtitle-studio/projects/{project_id}/render":{"post":{"tags":["creator-subtitle-studio"],"summary":"Render Project","operationId":"render_project_api_v1_creator_subtitle_studio_projects__project_id__render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubtitleRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/subtitle-studio/templates":{"get":{"tags":["creator-subtitle-studio"],"summary":"List Caption Templates","operationId":"list_caption_templates_api_v1_creator_subtitle_studio_templates_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["creator-subtitle-studio"],"summary":"Create Caption Template","operationId":"create_caption_template_api_v1_creator_subtitle_studio_templates_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubtitleTemplateCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creator/subtitle-studio/templates/{template_id}":{"patch":{"tags":["creator-subtitle-studio"],"summary":"Update Caption Template","operationId":"update_caption_template_api_v1_creator_subtitle_studio_templates__template_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubtitleTemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["creator-subtitle-studio"],"summary":"Delete Caption Template","operationId":"delete_caption_template_api_v1_creator_subtitle_studio_templates__template_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/collateral/social-post":{"post":{"tags":["collateral"],"summary":"Compose Social Post","operationId":"compose_social_post_api_v1_collateral_social_post_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostComposeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/content/seo-article":{"post":{"tags":["collateral"],"summary":"Compose Seo Article","operationId":"compose_seo_article_api_v1_content_seo_article_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeoArticleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/script-to-video":{"post":{"tags":["collateral"],"summary":"Compose Script Video","operationId":"compose_script_video_api_v1_video_script_to_video_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptToVideoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/collateral/deck":{"post":{"tags":["collateral"],"summary":"Compose Deck","operationId":"compose_deck_api_v1_collateral_deck_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeckComposeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context":{"get":{"tags":["context"],"summary":"List Legacy Context","description":"Compatibility contract for the Brand Hub's structured context editors.","operationId":"list_legacy_context_api_v1_context_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Types"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["context"],"summary":"Save Legacy Context","description":"Persist Brand Hub fields and make their values available to generation.","operationId":"save_legacy_context_api_v1_context_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyContextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/compiled":{"get":{"tags":["context"],"summary":"Get Legacy Compiled Context","description":"Compatibility response backed by the canonical Context Engine profile.","operationId":"get_legacy_compiled_context_api_v1_context_compiled_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Types"}},{"name":"kbLimit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Kblimit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/profile":{"get":{"tags":["context"],"summary":"Get Context Profile","operationId":"get_context_profile_api_v1_context_profile_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"scope","in":"query","required":false,"schema":{"enum":["company","account","contact","user","product"],"type":"string","default":"company","title":"Scope"}},{"name":"scope_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Ref"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/health":{"get":{"tags":["context"],"summary":"Get Context Health","operationId":"get_context_health_api_v1_context_health_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/conflicts":{"get":{"tags":["context"],"summary":"Get Context Conflicts","description":"Surface contradictory learned facts (same topic, opposite valence).\n\nFeedback that disagrees (\"too corporate\" vs \"love the corporate look\") must\nNOT be silently averaged into mush — it's surfaced here so a human can\nresolve it. Compares active learned facts pairwise via the feedback\nconflict heuristic. Sentiment is inferred from the fact's phrasing\n(avoid/reject/too/don't → negative; prefer/love/great → positive).\n\nReturns: {\"conflicts\": [{\"a\": {...}, \"b\": {...}}], \"count\": N}","operationId":"get_context_conflicts_api_v1_context_conflicts_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/facts":{"post":{"tags":["context"],"summary":"Create Context Fact","operationId":"create_context_fact_api_v1_context_facts_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextFactCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/facts/{fact_id}":{"delete":{"tags":["context"],"summary":"Deactivate Context Fact","operationId":"deactivate_context_fact_api_v1_context_facts__fact_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"fact_id","in":"path","required":true,"schema":{"type":"string","title":"Fact Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/documents":{"post":{"tags":["context"],"summary":"Create Context Document","operationId":"create_context_document_api_v1_context_documents_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDocumentCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["context"],"summary":"List Context Documents","operationId":"list_context_documents_api_v1_context_documents_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/sources/hubspot":{"post":{"tags":["context"],"summary":"Register Hubspot Source","operationId":"register_hubspot_source_api_v1_context_sources_hubspot_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HubSpotSourceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/sources/website":{"post":{"tags":["context"],"summary":"Ingest Website Source","operationId":"ingest_website_source_api_v1_context_sources_website_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsiteSourceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/sources/document":{"post":{"tags":["context"],"summary":"Ingest Document Source","description":"Upload a document or image to teach the context engine.\n\nSupported:\n- Documents: PDF / Word / PowerPoint / text / spreadsheet\n- Images: JPEG / PNG / WebP (analyzed via Claude vision → brand colors/style)\n\nFiles are stored, then a worker:\n1. For documents: extracts text, distils business facts, embeds\n2. For images: analyzes via Claude vision → extracts design metadata\nContext synthesis is triggered automatically.","operationId":"ingest_document_source_api_v1_context_sources_document_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"intent","in":"query","required":false,"schema":{"type":"string","default":"this_is_us","title":"Intent"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_ingest_document_source_api_v1_context_sources_document_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/rebrand":{"post":{"tags":["context"],"summary":"Supersede Brand","description":"Rebrand: retire the workspace's prior VISUAL brand facts in one move.\n\nA rebrand is a regime change, not gradual drift — time-decay would bleed the\ndead look for months. This deactivates old visual_style facts so the next\nupload's kit becomes the brand cleanly. Verbal/positioning facts are kept.","operationId":"supersede_brand_api_v1_context_rebrand_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RebrandRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/knowledge-base":{"get":{"tags":["context"],"summary":"List Knowledge Base","description":"List the workspace's ingested brand documents (so uploads show up in the UI).","operationId":"list_knowledge_base_api_v1_context_knowledge_base_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["context"],"summary":"Ingest Knowledge Base","description":"Add a KB doc: paste text (stored immediately) or a URL to fetch (enqueued).","operationId":"ingest_knowledge_base_api_v1_context_knowledge_base_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseIngestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/knowledge-base/{doc_id}":{"get":{"tags":["context"],"summary":"Get Knowledge Base Doc","operationId":"get_knowledge_base_doc_api_v1_context_knowledge_base__doc_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["context"],"summary":"Delete Knowledge Base Doc","operationId":"delete_knowledge_base_doc_api_v1_context_knowledge_base__doc_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/sources/document-link":{"post":{"tags":["context"],"summary":"Ingest Document Link","description":"Ingest a shared Google Doc/Slides/Sheet link, or a direct link to a\ndocument (e.g. a hosted PDF). Google links must be set to 'anyone with the\nlink'. Non-Google links are SSRF-validated before fetch.","operationId":"ingest_document_link_api_v1_context_sources_document_link_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/synthesis":{"get":{"tags":["context"],"summary":"Get Context Synthesis","description":"Get the compiled workspace brand DNA.\n\nCustomer-facing: returns the brand guide + generation directives (brand\ninfo), but NEVER cost/COGS data. Cost tracking is internal via /admin/costs.\n\nReturns: {\n    \"context_markdown\": \"# Brand Context...\",        # human-readable guide\n    \"generation_directives\": {...},                  # prompt fragments, color roles, do/don't\n    \"confidence\": 0.82,                              # how sure we are of the DNA\n    \"last_synthesized_at\": \"2026-06-23T12:34:56Z\",\n    \"image_analyses_count\": 5,\n}\n\ngeneration_directives feed image/video/copy generation so output matches\nthe brand — exact hex roles, prompt suffix, negative prompt, signature moves.","operationId":"get_context_synthesis_api_v1_context_synthesis_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/brand-iq":{"get":{"tags":["context"],"summary":"Get Brand Iq","description":"Brand IQ — structured intelligence score + Brand Card.\n\nAggregates synthesis confidence, fact count, and image count into a 0-100\nBrand IQ score with a structured Brand Card parsed from generation_directives.\nUsed by the BrandIQWizard and BrandHub to show users what the system knows.","operationId":"get_brand_iq_api_v1_context_brand_iq_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/{context_type}/{context_key}":{"delete":{"tags":["context"],"summary":"Delete Legacy Context","description":"Delete a structured Brand Hub entry without shadowing specific context routes.","operationId":"delete_legacy_context_api_v1_context__context_type___context_key__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"context_type","in":"path","required":true,"schema":{"enum":["brand","persona","visual","compliance","text"],"type":"string","title":"Context Type"}},{"name":"context_key","in":"path","required":true,"schema":{"type":"string","title":"Context Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/costs/summary":{"get":{"tags":["costs"],"summary":"Get Costs Summary","description":"Get workspace cost summary for the last N days.\n\nReturns: {\n    \"total_cost_usd\": 123.45,\n    \"by_operation\": {\"image_generation\": 50.0, ...},\n    \"by_provider\": {\"fal\": 60.0, ...},\n    \"entry_count\": 1234,\n    \"period_days\": 30,\n}","operationId":"get_costs_summary_api_v1_costs_summary_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/costs/ledger":{"get":{"tags":["costs"],"summary":"Get Costs Ledger","description":"Get recent cost ledger entries (detailed view).\n\nQuery parameters:\n- operation: Filter by operation (e.g., \"image_generation\")\n- provider: Filter by provider (e.g., \"fal\")\n- days: How many days back? (1-365, default 30)\n- limit: Max entries to return (1-1000, default 100)\n\nReturns: [\n    {\n        \"id\": \"...\",\n        \"operation\": \"image_generation\",\n        \"provider\": \"fal\",\n        \"unit\": \"image\",\n        \"quantity\": 1,\n        \"unit_cost_usd\": 0.003,\n        \"total_cost_usd\": 0.003,\n        \"model_variant\": \"flux-schnell\",\n        \"status\": \"success\",\n        \"attributed_to\": [\"feature:image_gen\", \"user:...\"],\n        \"created_at\": \"2026-06-23T...\",\n    },\n    ...\n]","operationId":"get_costs_ledger_api_v1_costs_ledger_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"operation","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operation"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/costs/by-job/{job_id}":{"get":{"tags":["costs"],"summary":"Get Job Costs","description":"Get all costs for a specific job (full audit trail).\n\nReturns: {\n    \"job_id\": \"...\",\n    \"total_cost_usd\": 1.23,\n    \"entries\": [\n        {\"operation\": \"image_generation\", \"cost_usd\": 0.5, ...},\n        {\"operation\": \"llm_call\", \"cost_usd\": 0.03, ...},\n        ...\n    ]\n}","operationId":"get_job_costs_api_v1_costs_by_job__job_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality/accept-rate":{"get":{"tags":["costs"],"summary":"Get Accept Rate","description":"First-shot accept-rate — THE moat metric (\"one-shot gold, reroll free\").\n\nAggregates the terminal job-outcome trace rows (stage='job_outcome', written\nby app/services/accept_rate.record_job_outcome at the workers' ship/fail\ndecision points) into per-operation rates. Gated to trace-admin emails like\n/costs/trace; aggregates PLATFORM-WIDE by default (this is the beta\nearly-warning surface for gate false positives across real users), with an\noptional workspace_id filter.\n\nQuery parameters:\n- window: lookback like '7d' (default) or '24h'; max 90d\n- workspace_id: optional filter to one workspace\n\nReturns: {\n    \"window\": \"7d\",\n    \"since\": \"...iso...\",\n    \"operations\": {\n        \"generate_image\": {\n            \"jobs\": 120, \"shipped\": 108, \"failed\": 12,\n            \"first_shot_accept_rate\": 0.78,\n            \"retry_ship_rate\": 0.12,\n            \"fail_rate\": 0.10,\n            \"escalation_rate\": 0.05,\n            \"top_blocking_gates\": [{\"gate\": \"vlm_realism\", \"count\": 6}, ...],\n        }, ...\n    },\n    \"totals\": {...same shape...},\n}","operationId":"get_accept_rate_api_v1_quality_accept_rate_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"window","in":"query","required":false,"schema":{"type":"string","default":"7d","title":"Window"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/costs/accept-rate-report":{"get":{"tags":["costs"],"summary":"Get Accept Rate Report","description":"Production accept-rate telemetry report — the accept-battery's successor.\n\nThe full standing-metric report (app/services/accept_rate_report.build_report):\ngated first-shot accept-rate + overall accept + attempts-per-ship, gate-class\nfailure tallies, unavailable-gate (fail-open) ships, terminal-rung\n(repanel/text_repair) telemetry, cost_ledger spend + cost-per-ship, human\nverdict tallies, and the per-model split. Platform-wide by default with an\noptional workspace_id filter; ``text`` carries the battery-style render the\nCLI and the daily ops-Slack beat task print.\n\nCOGS on board → gated to trace-admin emails, the /quality/accept-rate and\n/costs/trace precedent.\n\nQuery parameters:\n- hours: lookback window in hours (1 to 2160, default 24)\n- workspace_id: optional filter to one workspace","operationId":"get_accept_rate_report_api_v1_costs_accept_rate_report_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Hours"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/costs/trace/{job_id}":{"get":{"tags":["costs"],"summary":"Get Job Trace","description":"Full generation trace + itemized cost for a job — the 'review everything'\nsurface. Gated to trace-admin emails (settings.trace_admin_emails).\n\nReturns the ordered pipeline steps (agents/judges/gates/models with their\ndecisions, scores, reasons, thinking) plus the linked cost ledger entries and\na per-operation cost breakdown.","operationId":"get_job_trace_api_v1_costs_trace__job_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/corpus/stats":{"get":{"tags":["corpus"],"summary":"Corpus Stats","description":"Corpus size + gold-slice counts by modality. Trace-admin only.","operationId":"corpus_stats_api_v1_corpus_stats_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/corpus/export":{"get":{"tags":["corpus"],"summary":"Corpus Export","description":"Stream the dataset as JSONL (one training example per line). Trace-admin only.\n\nDefaults to the gold slice (accepted + gate-passed). Filter by modality\n(image/video/edit/audio), model_variant, or split (train/eval/holdout).","operationId":"corpus_export_api_v1_corpus_export_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"modality","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modality"}},{"name":"model_variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Variant"}},{"name":"gold_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Gold Only"}},{"name":"split","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Split"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5000,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/corpus/jobs/{job_id}/records":{"get":{"tags":["corpus"],"summary":"Corpus Job Records","description":"Trace-admin stage receipts for one known generation job.","operationId":"corpus_job_records_api_v1_corpus_jobs__job_id__records_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plan":{"post":{"tags":["creative"],"summary":"Create Creative Plan","description":"One sentence in -> a reviewable, grounded, credit-priced plan out.\n\nCheap by construction (LLM-only, no GPU): fail/refine here costs cents; a bad\nrender costs dollars. Returns the exact payload approval should POST to the\nexisting generate endpoint — this route never dispatches a job itself.","operationId":"create_creative_plan_api_v1_creative_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreativePlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans":{"post":{"tags":["creative"],"summary":"Create Plan","operationId":"create_plan_api_v1_creative_plans_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}":{"get":{"tags":["creative"],"summary":"Get Plan","operationId":"get_plan_api_v1_creative_plans__plan_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/versions":{"get":{"tags":["creative"],"summary":"List Plan Versions","operationId":"list_plan_versions_api_v1_creative_plans__plan_id__versions_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/diff":{"get":{"tags":["creative"],"summary":"Diff Plan Versions","operationId":"diff_plan_versions_api_v1_creative_plans__plan_id__diff_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"from_version","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"From Version"}},{"name":"to_version","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"To Version"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/revise":{"post":{"tags":["creative"],"summary":"Revise Plan","description":"One revision cycle: apply the change, RE-RUN the plan-gate stack, append\nthe next immutable version. The returned version carries the fresh gate\nverdict — a plan is dispatchable only gate-passed AND approved.","operationId":"revise_plan_api_v1_creative_plans__plan_id__revise_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanReviseRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/approve":{"post":{"tags":["creative"],"summary":"Approve Plan","operationId":"approve_plan_api_v1_creative_plans__plan_id__approve_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanApproveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/dispatch":{"post":{"tags":["creative"],"summary":"Dispatch Plan","description":"Approve-then-dispatch: submits the approved version's shots through the\nexisting ``dispatch_job`` door. The worker skips re-planning (shots present)\nbut every post-generation gate still runs — the plan is the contract, the\ngates are still the law.","operationId":"dispatch_plan_api_v1_creative_plans__plan_id__dispatch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/keyframes":{"post":{"tags":["creative"],"summary":"Generate Plan Keyframes","description":"Dispatch one keyframe still per shot through the EXISTING gated image\ndoor (realism_system -> art_director -> final_prompt_writer sharpen inside\nthe door; post-gen gates run there). Async: the returned version carries\nthe shots' keyframe blocks QUEUED — poll /keyframes/collect to land them.\nThe stills-in-flight version is deliberately NOT gate-passed, so a plan\ncan never dispatch video while its locked frames are still rendering.","operationId":"generate_plan_keyframes_api_v1_creative_plans__plan_id__keyframes_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanKeyframesRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/keyframes/collect":{"post":{"tags":["creative"],"summary":"Collect Plan Keyframes","description":"Fold finished image jobs onto their shots: completed -> READY (asset id\n+ url persisted, expert-critic review verdict stamped by the re-run gate\nstack), failed/cancelled -> FAILED. Idempotent: a poll with no transitions\nappends no version and returns the current one.","operationId":"collect_plan_keyframes_api_v1_creative_plans__plan_id__keyframes_collect_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/keyframes/regenerate":{"post":{"tags":["creative"],"summary":"Regenerate Plan Keyframe","description":"Re-still ONE shot (optionally with an edited still prompt) through the\nimage door. Every other shot's keyframe rides the new version untouched;\nthe regenerated still re-earns its review (prior verdict/waiver reset).","operationId":"regenerate_plan_keyframe_api_v1_creative_plans__plan_id__keyframes_regenerate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanKeyframeRegenerateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/keyframes/waive":{"post":{"tags":["creative"],"summary":"Waive Plan Keyframe","description":"Explicitly ship one shot WITHOUT its still (the only way a failed or\nreview-killed keyframe stops blocking dispatch short of regenerating).\nThe waiver — who/why/when — is recorded in version provenance; the shot\nrenders T2V at dispatch.","operationId":"waive_plan_keyframe_api_v1_creative_plans__plan_id__keyframes_waive_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanKeyframeWaiveRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/audio":{"post":{"tags":["creative"],"summary":"Generate Plan Audio","description":"Dispatch one audio take per shot through the EXISTING gated audio door\n(the fal music/SFX provider + per-second ledger stamps run inside the\nworker task). Async: the returned version carries the shots' audio blocks\nQUEUED — poll /audio/collect to land them. Takes in flight are deliberately\nNOT gate-passed, so a plan never dispatches video while its planned audio\nis still rendering.","operationId":"generate_plan_audio_api_v1_creative_plans__plan_id__audio_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAudioRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/audio/collect":{"post":{"tags":["creative"],"summary":"Collect Plan Audio","description":"Fold finished audio jobs onto their shots: completed -> READY (asset id\n+ url persisted, the deterministic take review stamped by the re-run gate\nstack), failed/cancelled -> FAILED. Idempotent: a poll with no transitions\nappends no version and returns the current one.","operationId":"collect_plan_audio_api_v1_creative_plans__plan_id__audio_collect_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/audio/regenerate":{"post":{"tags":["creative"],"summary":"Regenerate Plan Audio","description":"Re-render ONE shot's audio take (optionally with an edited style/prompt)\nthrough the audio door. Every other shot's take rides the new version\nuntouched; the regenerated take re-earns its review (prior verdict/waiver\nreset).","operationId":"regenerate_plan_audio_api_v1_creative_plans__plan_id__audio_regenerate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAudioRegenerateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/audio/waive":{"post":{"tags":["creative"],"summary":"Waive Plan Audio","description":"Explicitly ship one shot WITHOUT its audio take (the only way a failed\nor review-rejected take stops blocking dispatch short of regenerating).\nThe waiver — who/why/when — is recorded in version provenance; the shot\ndispatches with the reel's default sound.","operationId":"waive_plan_audio_api_v1_creative_plans__plan_id__audio_waive_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAudioWaiveRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/captions/preview":{"post":{"tags":["creative"],"summary":"Preview Plan Captions","description":"Render a still preview of the plan's caption spec (or a what-if\noverride): one representative frame, the preset + safe-zone-aware placement\nresolved, so the customer sees the kinetic caption read BEFORE dispatch.\nPure PIL — no GPU, no generation spend.","operationId":"preview_plan_captions_api_v1_creative_plans__plan_id__captions_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCaptionPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/creative/plans/{plan_id}/graphics/preview":{"post":{"tags":["creative"],"summary":"Preview Plan Graphic","description":"Render the REST frame of a shot's graphic spec (or a what-if override):\nthe exact card the procedural renderer will ship, so titles/stats/data\nscenes are reviewed BEFORE dispatch. Pure PIL — no GPU, no generation\nspend.","operationId":"preview_plan_graphic_api_v1_creative_plans__plan_id__graphics_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanGraphicPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/templates":{"get":{"tags":["templates"],"summary":"List Templates","operationId":"list_templates_api_v1_templates_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TemplateResponse"},"title":"Response List Templates Api V1 Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["templates"],"summary":"Create Template","operationId":"create_template_api_v1_templates_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/templates/{template_id}":{"patch":{"tags":["templates"],"summary":"Update Template","operationId":"update_template_api_v1_templates__template_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["templates"],"summary":"Delete Template","operationId":"delete_template_api_v1_templates__template_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/templates/{template_id}/render-batch":{"post":{"tags":["templates"],"summary":"Render Template Batch","operationId":"render_template_batch_api_v1_templates__template_id__render_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBatchRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/templates/{template_id}/render":{"post":{"tags":["templates"],"summary":"Render Template","operationId":"render_template_api_v1_templates__template_id__render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBatchRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces":{"get":{"tags":["workspaces"],"summary":"List Workspaces","operationId":"list_workspaces_api_v1_workspaces_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceResponse"},"title":"Response List Workspaces Api V1 Workspaces Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspaces"],"summary":"Create Workspace","operationId":"create_workspace_api_v1_workspaces_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}":{"get":{"tags":["workspaces"],"summary":"Get Workspace","operationId":"get_workspace_api_v1_workspaces__workspace_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspaces"],"summary":"Update Workspace","operationId":"update_workspace_api_v1_workspaces__workspace_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete Workspace","operationId":"delete_workspace_api_v1_workspaces__workspace_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/clients":{"get":{"tags":["workspaces"],"summary":"List Client Workspaces","description":"List all client sub-workspaces under a parent workspace. Agency accounts only.","operationId":"list_client_workspaces_api_v1_workspaces__workspace_id__clients_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceResponse"},"title":"Response List Client Workspaces Api V1 Workspaces  Workspace Id  Clients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/members":{"get":{"tags":["members"],"summary":"List Members","operationId":"list_members_api_v1_members_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/members/invite":{"post":{"tags":["members"],"summary":"Invite Member","operationId":"invite_member_api_v1_members_invite_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/members/{member_id}":{"patch":{"tags":["members"],"summary":"Update Member","operationId":"update_member_api_v1_members__member_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["members"],"summary":"Remove Member","operationId":"remove_member_api_v1_members__member_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","operationId":"list_notifications_api_v1_notifications_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/read-all":{"put":{"tags":["notifications"],"summary":"Mark All Read","operationId":"mark_all_read_api_v1_notifications_read_all_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/{notification_id}/read":{"put":{"tags":["notifications"],"summary":"Mark Read","operationId":"mark_read_api_v1_notifications__notification_id__read_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/{notification_id}":{"delete":{"tags":["notifications"],"summary":"Delete Notification","operationId":"delete_notification_api_v1_notifications__notification_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/organization":{"get":{"tags":["organizations"],"summary":"Get User Organization","description":"The caller's primary organization (= their workspace) + their membership.","operationId":"get_user_organization_api_v1_users_organization_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/leave-organization":{"put":{"tags":["organizations"],"summary":"Leave Organization","description":"Self-removal from the caller's workspace(s). Refuses if they are the sole\nowner (that would orphan the org — transfer ownership or delete it instead).","operationId":"leave_organization_api_v1_users_leave_organization_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organizations/{org_id}/members":{"get":{"tags":["organizations"],"summary":"List Org Members","operationId":"list_org_members_api_v1_organizations__org_id__members_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organizations/{org_id}/members/invite":{"post":{"tags":["organizations"],"summary":"Invite Org Member","operationId":"invite_org_member_api_v1_organizations__org_id__members_invite_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organizations/{org_id}/members/{user_id}":{"put":{"tags":["organizations"],"summary":"Update Org Member Role","operationId":"update_org_member_role_api_v1_organizations__org_id__members__user_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organizations"],"summary":"Remove Org Member","operationId":"remove_org_member_api_v1_organizations__org_id__members__user_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organizations/{org_id}":{"put":{"tags":["organizations"],"summary":"Update Organization","description":"Rename the organization (the account display name).","operationId":"update_organization_api_v1_organizations__org_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organizations/{org_id}/domains":{"put":{"tags":["organizations"],"summary":"Update Organization Domains","description":"Persist the allowed-email-domain list on the workspace settings.","operationId":"update_organization_domains_api_v1_organizations__org_id__domains_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/outreach/batch":{"post":{"tags":["outreach"],"summary":"Create Outreach Batch","operationId":"create_outreach_batch_api_v1_outreach_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/packs":{"get":{"tags":["packs"],"summary":"List Packs","operationId":"list_packs_api_v1_packs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PackListResponse"},"title":"Response List Packs Api V1 Packs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/packs/categories":{"get":{"tags":["packs"],"summary":"List Pack Categories","operationId":"list_pack_categories_api_v1_packs_categories_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Pack Categories Api V1 Packs Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/packs/{pack_id}":{"get":{"tags":["packs"],"summary":"Get Pack Details","operationId":"get_pack_details_api_v1_packs__pack_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/packs/{pack_id}/generate":{"post":{"tags":["packs"],"summary":"Generate Pack","operationId":"generate_pack_api_v1_packs__pack_id__generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackGenerateQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/packs/{pack_id}/generate-preview":{"post":{"tags":["packs"],"summary":"Generate Pack Preview","operationId":"generate_pack_preview_api_v1_packs__pack_id__generate_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackGenerateQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/packs/generations/{generation_id}":{"get":{"tags":["packs"],"summary":"Get Pack Generation Status","operationId":"get_pack_generation_status_api_v1_packs_generations__generation_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Generation Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackGenerationStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{ws_id}/packs":{"post":{"tags":["packs"],"summary":"Create Custom Pack","operationId":"create_custom_pack_api_v1_workspaces__ws_id__packs_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ws_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ws Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomPackCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{ws_id}/packs/{pack_id}":{"put":{"tags":["packs"],"summary":"Update Custom Pack","operationId":"update_custom_pack_api_v1_workspaces__ws_id__packs__pack_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ws_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ws Id"}},{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomPackUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["packs"],"summary":"Delete Custom Pack","operationId":"delete_custom_pack_api_v1_workspaces__ws_id__packs__pack_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ws_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ws Id"}},{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/packs/{pack_id}/rate":{"post":{"tags":["packs"],"summary":"Rate Pack","operationId":"rate_pack_api_v1_packs__pack_id__rate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pack Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackRateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/preferences":{"get":{"tags":["preferences"],"summary":"Get User Preferences","operationId":"get_user_preferences_api_v1_users_preferences_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get User Preferences Api V1 Users Preferences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["preferences"],"summary":"Update User Preferences","operationId":"update_user_preferences_api_v1_users_preferences_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Preferences"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update User Preferences Api V1 Users Preferences Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/preferences":{"get":{"tags":["preferences"],"summary":"Get Context Preferences","operationId":"get_context_preferences_api_v1_context_preferences_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Context Preferences Api V1 Context Preferences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["preferences"],"summary":"Set Context Preferences","operationId":"set_context_preferences_api_v1_context_preferences_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Set Context Preferences Api V1 Context Preferences Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/context/actions/reset":{"post":{"tags":["preferences"],"summary":"Reset Context","operationId":"reset_context_api_v1_context_actions_reset_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Reset Context Api V1 Context Actions Reset Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onboarding/progress":{"get":{"tags":["preferences"],"summary":"Onboarding Progress","operationId":"onboarding_progress_api_v1_onboarding_progress_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Onboarding Progress Api V1 Onboarding Progress Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["preferences"],"summary":"Onboarding Update","operationId":"onboarding_update_api_v1_onboarding_progress_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Onboarding Update Api V1 Onboarding Progress Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/onboarding/initialize":{"post":{"tags":["preferences"],"summary":"Onboarding Initialize","operationId":"onboarding_initialize_api_v1_onboarding_initialize_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Onboarding Initialize Api V1 Onboarding Initialize Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/brand-feedback":{"post":{"tags":["preferences"],"summary":"Submit Brand Feedback","operationId":"submit_brand_feedback_api_v1_brand_feedback_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Submit Brand Feedback Api V1 Brand Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/content/favorites":{"get":{"tags":["preferences"],"summary":"List Favorites","operationId":"list_favorites_api_v1_content_favorites_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Favorites Api V1 Content Favorites Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["preferences"],"summary":"Add Favorite","operationId":"add_favorite_api_v1_content_favorites_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Add Favorite Api V1 Content Favorites Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/content/favorites/{content_id}":{"delete":{"tags":["preferences"],"summary":"Remove Favorite","operationId":"remove_favorite_api_v1_content_favorites__content_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"content_id","in":"path","required":true,"schema":{"type":"string","title":"Content Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Remove Favorite Api V1 Content Favorites  Content Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/skills":{"get":{"tags":["skills"],"summary":"List Skills","operationId":"list_skills_api_v1_skills_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Skills Api V1 Skills Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["skills"],"summary":"Create Skill","operationId":"create_skill_api_v1_skills_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Skill Api V1 Skills Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/skills/default":{"get":{"tags":["skills"],"summary":"Get Default Skill","operationId":"get_default_skill_api_v1_skills_default_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Default Skill Api V1 Skills Default Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/skills/gallery":{"get":{"tags":["skills"],"summary":"List Skill Gallery","operationId":"list_skill_gallery_api_v1_skills_gallery_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Skill Gallery Api V1 Skills Gallery Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/skills/gallery/{template_id}":{"get":{"tags":["skills"],"summary":"Get Skill Gallery Template","operationId":"get_skill_gallery_template_api_v1_skills_gallery__template_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Skill Gallery Template Api V1 Skills Gallery  Template Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/skills/gallery/{template_id}/adopt":{"post":{"tags":["skills"],"summary":"Adopt Skill Gallery Template","operationId":"adopt_skill_gallery_template_api_v1_skills_gallery__template_id__adopt_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Adopt Skill Gallery Template Api V1 Skills Gallery  Template Id  Adopt Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/skills/{skill_id}":{"get":{"tags":["skills"],"summary":"Get Skill","operationId":"get_skill_api_v1_skills__skill_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Skill Api V1 Skills  Skill Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["skills"],"summary":"Update Skill","operationId":"update_skill_api_v1_skills__skill_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Skill Api V1 Skills  Skill Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["skills"],"summary":"Delete Skill","operationId":"delete_skill_api_v1_skills__skill_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Skill Api V1 Skills  Skill Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/skills/{skill_id}/compiled":{"get":{"tags":["skills"],"summary":"Get Compiled","operationId":"get_compiled_api_v1_skills__skill_id__compiled_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Compiled Api V1 Skills  Skill Id  Compiled Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/skills/scrape":{"post":{"tags":["skills"],"summary":"Scrape Website","operationId":"scrape_website_api_v1_skills_scrape_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Scrape Website Api V1 Skills Scrape Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/skills/build":{"post":{"tags":["skills"],"summary":"Build Skill","operationId":"build_skill_api_v1_skills_build_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Build Skill Api V1 Skills Build Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/skills/{skill_id}/refine":{"post":{"tags":["skills"],"summary":"Refine Skill","operationId":"refine_skill_api_v1_skills__skill_id__refine_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Refine Skill Api V1 Skills  Skill Id  Refine Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/usage":{"get":{"tags":["billing"],"summary":"Get Usage","operationId":"get_usage_api_v1_billing_usage_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/state":{"get":{"tags":["billing"],"summary":"Get Billing State","operationId":"get_billing_state_api_v1_billing_state_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/credits/history":{"get":{"tags":["billing"],"summary":"Credit History","operationId":"credit_history_api_v1_billing_credits_history_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreditTransactionResponse"},"title":"Response Credit History Api V1 Billing Credits History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/customers/bootstrap":{"post":{"tags":["billing"],"summary":"Bootstrap Billing Customer","operationId":"bootstrap_billing_customer_api_v1_billing_customers_bootstrap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/workspaces/{workspace_id}/customer/bootstrap":{"post":{"tags":["billing"],"summary":"Bootstrap Workspace Billing Customer","operationId":"bootstrap_workspace_billing_customer_api_v1_billing_workspaces__workspace_id__customer_bootstrap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/workspaces/{workspace_id}/billing-mode":{"post":{"tags":["billing"],"summary":"Update Workspace Billing Mode","operationId":"update_workspace_billing_mode_api_v1_billing_workspaces__workspace_id__billing_mode_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingModeUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/portal":{"post":{"tags":["billing"],"summary":"Create Billing Portal","operationId":"create_billing_portal_api_v1_billing_portal_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPortalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/checkout":{"post":{"tags":["billing"],"summary":"Create Checkout","operationId":"create_checkout_api_v1_billing_checkout_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/webhook":{"post":{"tags":["billing"],"summary":"Stripe Webhook","operationId":"stripe_webhook_api_v1_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/face-profiles/my-profiles":{"get":{"tags":["profile-compat"],"summary":"List Face Profiles","operationId":"list_face_profiles_api_v1_face_profiles_my_profiles_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/face-profiles/create":{"post":{"tags":["profile-compat"],"summary":"Create Face Profile","operationId":"create_face_profile_api_v1_face_profiles_create_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFaceProfileBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/face-profiles/{profile_id}":{"get":{"tags":["profile-compat"],"summary":"Get Face Profile","operationId":"get_face_profile_api_v1_face_profiles__profile_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["profile-compat"],"summary":"Update Face Profile","operationId":"update_face_profile_api_v1_face_profiles__profile_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileNameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["profile-compat"],"summary":"Update Face Profile","operationId":"update_face_profile_api_v1_face_profiles__profile_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileNameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["profile-compat"],"summary":"Delete Face Profile","operationId":"delete_face_profile_api_v1_face_profiles__profile_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-profiles/validate-audio":{"post":{"tags":["profile-compat"],"summary":"Validate Audio","operationId":"validate_audio_api_v1_voice_profiles_validate_audio_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateAudioBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-profiles/create":{"post":{"tags":["profile-compat"],"summary":"Create Voice Profile","operationId":"create_voice_profile_api_v1_voice_profiles_create_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVoiceProfileBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-profiles/generate-speech":{"post":{"tags":["profile-compat"],"summary":"Generate Speech","operationId":"generate_speech_api_v1_voice_profiles_generate_speech_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateSpeechBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-profiles/my-profiles":{"get":{"tags":["profile-compat"],"summary":"List Voice Profiles","operationId":"list_voice_profiles_api_v1_voice_profiles_my_profiles_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-profiles/{profile_id}":{"get":{"tags":["profile-compat"],"summary":"Get Voice Profile","operationId":"get_voice_profile_api_v1_voice_profiles__profile_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["profile-compat"],"summary":"Update Voice Profile","operationId":"update_voice_profile_api_v1_voice_profiles__profile_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileNameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["profile-compat"],"summary":"Update Voice Profile","operationId":"update_voice_profile_api_v1_voice_profiles__profile_id__put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileNameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["profile-compat"],"summary":"Delete Voice Profile","operationId":"delete_voice_profile_api_v1_voice_profiles__profile_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/voice-profiles/{profile_id}/test":{"post":{"tags":["profile-compat"],"summary":"Test Voice","operationId":"test_voice_api_v1_voice_profiles__profile_id__test_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestVoiceBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/enroll":{"post":{"tags":["digital_twins"],"summary":"Enroll Twin Unified","operationId":"enroll_twin_unified_api_v1_twins_enroll_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnifiedEnrollRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/one-shot-enroll":{"post":{"tags":["digital_twins"],"summary":"One Shot Enroll Twin","operationId":"one_shot_enroll_twin_api_v1_twins_one_shot_enroll_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OneShotEnrollRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/enrollment/precheck":{"post":{"tags":["digital_twins"],"summary":"Enrollment Precheck","operationId":"enrollment_precheck_api_v1_twins_enrollment_precheck_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentPrecheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins":{"get":{"tags":["digital_twins"],"summary":"List Digital Twins","operationId":"list_digital_twins_api_v1_twins_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DigitalTwinResponse"},"title":"Response List Digital Twins Api V1 Twins Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["digital_twins"],"summary":"Create Digital Twin","operationId":"create_digital_twin_api_v1_twins_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/quick-enroll":{"post":{"tags":["digital_twins"],"summary":"Quick Enroll Twin","operationId":"quick_enroll_twin_api_v1_twins_quick_enroll_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinQuickEnrollRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinQuickEnrollResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}":{"get":{"tags":["digital_twins"],"summary":"Get Digital Twin","operationId":"get_digital_twin_api_v1_twins__twin_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["digital_twins"],"summary":"Update Digital Twin","operationId":"update_digital_twin_api_v1_twins__twin_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/upgrade-enrollment":{"post":{"tags":["digital_twins"],"summary":"Upgrade Twin Enrollment","operationId":"upgrade_twin_enrollment_api_v1_twins__twin_id__upgrade_enrollment_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinUpgradeEnrollmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinUpgradeEnrollmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/consents":{"get":{"tags":["digital_twins"],"summary":"List Twin Consents","operationId":"list_twin_consents_api_v1_twins__twin_id__consents_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TwinConsentResponse"},"title":"Response List Twin Consents Api V1 Twins  Twin Id  Consents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/consent":{"post":{"tags":["digital_twins"],"summary":"Create Twin Consent","operationId":"create_twin_consent_api_v1_twins__twin_id__consent_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinConsentCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinConsentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/face-profiles":{"get":{"tags":["digital_twins"],"summary":"List Twin Face Profiles","operationId":"list_twin_face_profiles_api_v1_twins__twin_id__face_profiles_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TwinFaceProfileResponse"},"title":"Response List Twin Face Profiles Api V1 Twins  Twin Id  Face Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/face-enrollment":{"post":{"tags":["digital_twins"],"summary":"Enroll Twin Face","operationId":"enroll_twin_face_api_v1_twins__twin_id__face_enrollment_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinFaceEnrollmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinFaceProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/voice-profiles":{"get":{"tags":["digital_twins"],"summary":"List Twin Voice Profiles","operationId":"list_twin_voice_profiles_api_v1_twins__twin_id__voice_profiles_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TwinVoiceProfileResponse"},"title":"Response List Twin Voice Profiles Api V1 Twins  Twin Id  Voice Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/voice-enrollment":{"post":{"tags":["digital_twins"],"summary":"Enroll Twin Voice","operationId":"enroll_twin_voice_api_v1_twins__twin_id__voice_enrollment_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinVoiceEnrollmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinVoiceProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/style-profile":{"get":{"tags":["digital_twins"],"summary":"Get Twin Style Profile","operationId":"get_twin_style_profile_api_v1_twins__twin_id__style_profile_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinStyleProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["digital_twins"],"summary":"Upsert Twin Style Profile","operationId":"upsert_twin_style_profile_api_v1_twins__twin_id__style_profile_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinStyleProfileUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinStyleProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/voice/synthesize":{"post":{"tags":["digital_twins"],"summary":"Synthesize Twin Voice","operationId":"synthesize_twin_voice_api_v1_twins__twin_id__voice_synthesize_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinVoiceSynthesizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/avatar/render":{"post":{"tags":["digital_twins"],"summary":"Render Twin Avatar","operationId":"render_twin_avatar_api_v1_twins__twin_id__avatar_render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinAvatarRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/content/render":{"post":{"tags":["digital_twins"],"summary":"Render Twin Content","operationId":"render_twin_content_api_v1_twins__twin_id__content_render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinContentRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/train-lora":{"post":{"tags":["digital_twins"],"summary":"Train Twin Lora","operationId":"train_twin_lora_api_v1_twins__twin_id__train_lora_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinLoRATrainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinLoRATrainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/lora-status":{"get":{"tags":["digital_twins"],"summary":"Twin Lora Status","operationId":"twin_lora_status_api_v1_twins__twin_id__lora_status_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinLoRAStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/retrain-lora":{"post":{"tags":["digital_twins"],"summary":"Retrain Twin Lora","operationId":"retrain_twin_lora_api_v1_twins__twin_id__retrain_lora_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinLoRATrainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwinLoRATrainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/renders":{"get":{"tags":["digital_twins"],"summary":"List Twin Renders","operationId":"list_twin_renders_api_v1_twins__twin_id__renders_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TwinRenderResponse"},"title":"Response List Twin Renders Api V1 Twins  Twin Id  Renders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/audit":{"get":{"tags":["digital_twins"],"summary":"Get Twin Audit Log","operationId":"get_twin_audit_log_api_v1_twins__twin_id__audit_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditLogResponse"},"title":"Response Get Twin Audit Log Api V1 Twins  Twin Id  Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/twins/{twin_id}/revoke":{"post":{"tags":["digital_twins"],"summary":"Revoke Digital Twin","operationId":"revoke_digital_twin_api_v1_twins__twin_id__revoke_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"twin_id","in":"path","required":true,"schema":{"type":"string","title":"Twin Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigitalTwinResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/personas":{"get":{"tags":["personas"],"summary":"List Personas","operationId":"list_personas_api_v1_personas_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"speaking_ready_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Speaking Ready Only"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PersonaResponse"},"title":"Response List Personas Api V1 Personas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["personas"],"summary":"Create Persona","operationId":"create_persona_api_v1_personas_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/personas/clone-from-photo":{"post":{"tags":["personas"],"summary":"Clone Persona From Photo","description":"Photo-clone: one consented photo becomes a ready Persona.\n\nThe route validates + records consent (a real TwinConsent row, like the twin\nenrollment paths) and dispatches ``persona_photo_clone``, which runs the\ncapture-quality precheck and computes the identity embedding SERVER-SIDE on\nthe license-resolved AuraFace pack (Apache-2.0). A client-supplied embedding\nis never accepted anywhere on this path — see docs/FACE-STACK-LICENSE.md.","operationId":"clone_persona_from_photo_api_v1_personas_clone_from_photo_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaPhotoCloneRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/personas/{persona_id}/shots":{"post":{"tags":["personas"],"summary":"Persona Shots","description":"Full-body v1: render the persona in a briefed scene, identity locked.\n\nRequires a trained identity LoRA — without one there is nothing locking the\npersona's full-body likeness, so the route refuses (409 + train pointer)\ninstead of shipping a lookalike. With a ready LoRA the request rides the\nEXISTING identity-led /generate door (``twin_id`` -> ``twin_lora_url``\nhydration, identity queue, gates) — reuse, not a parallel render path.","operationId":"persona_shots_api_v1_personas__persona_id__shots_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaShotsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/personas/{persona_id}/train":{"post":{"tags":["personas"],"summary":"Persona Train","description":"Train the persona's identity LoRA — thin wrapper over the EXISTING\n``/twins/{id}/train-lora`` door (plan entitlement, input-quality gate,\n``train_twin_lora`` dispatch, twin_lora metadata), keyed on the persona.\n\nDataset seeding: ``train_twin_lora`` consumes ``params[\"images\"]`` (asset\ninputs) via the LoRATrainer/DatasetPrep contract — there is no separate\nsynthetic-persona dataset builder — so when the caller sends no\n``image_asset_ids`` we seed from the persona's own stored references\n(enrollment frames, face-profile refs, avatar asset), image assets only.","operationId":"persona_train_api_v1_personas__persona_id__train_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaTrainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/personas/{persona_id}/pitch":{"post":{"tags":["personas"],"summary":"Persona Pitch","description":"One pitch: the clone speaks the lines, then both logos are placed on the video.\n\nRides the registered talking-head job (``generate_video`` / ``talking_chain``).\nLogos are workspace image assets, overlaid after the render, never generated.","operationId":"persona_pitch_api_v1_personas__persona_id__pitch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaPitchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/personas/{persona_id}/speak":{"post":{"tags":["personas"],"summary":"Persona Speak","description":"Make a persona speak a script — the server hydrates everything the render\nneeds FROM the persona (seed image, voice, persona prompt), then routes through\nthe same gated ``generate_influencer`` door as ``POST /video/influencer``\n(identical validation, per-video cost cap, and job-queued response shape).\n\nHydration ladder:\n  * seed image — persona ``avatar_asset_id`` -> face-profile thumbnail ->\n    first face-profile reference; 422 when the persona has no usable portrait.\n  * voice — a ready TwinVoiceProfile carrying a renderer voice id wins; else a\n    gender-matched roster voice via ``persona_voices.resolve_voice`` (cheapest\n    signal first; never a blind Rachel default).\n  * persona prompt — the persona's stored description (synthetic_mint), else a\n    neutral presenter framing of its name.","operationId":"persona_speak_api_v1_personas__persona_id__speak_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaSpeakRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/generate":{"post":{"tags":["generate"],"summary":"Generate Image","operationId":"generate_image_api_v1_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/generate/text":{"post":{"tags":["generate"],"summary":"Generate Text","operationId":"generate_text_api_v1_generate_text_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextGenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TextGenSyncResponse"},{"$ref":"#/components/schemas/TextGenQueuedResponse"}],"title":"Response Generate Text Api V1 Generate Text Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/edit/inpaint":{"post":{"tags":["edit"],"summary":"Inpaint","operationId":"inpaint_api_v1_edit_inpaint_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InpaintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/edit/outpaint":{"post":{"tags":["edit"],"summary":"Outpaint","operationId":"outpaint_api_v1_edit_outpaint_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutpaintRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/edit/remove-bg":{"post":{"tags":["edit"],"summary":"Remove Background","operationId":"remove_background_api_v1_edit_remove_bg_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveBackgroundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/edit/remove-object":{"post":{"tags":["edit"],"summary":"Remove Object","operationId":"remove_object_api_v1_edit_remove_object_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveObjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/edit/instruct":{"post":{"tags":["edit"],"summary":"Instruct Edit","operationId":"instruct_edit_api_v1_edit_instruct_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-UseMo-Canary-Grant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Usemo-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/edit/face-swap":{"post":{"tags":["edit"],"summary":"Face Swap","operationId":"face_swap_api_v1_edit_face_swap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaceSwapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/edit/try-on":{"post":{"tags":["edit"],"summary":"Try On","operationId":"try_on_api_v1_edit_try_on_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TryOnRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/try-on":{"post":{"tags":["edit"],"summary":"Try On Alias","operationId":"try_on_alias_api_v1_try_on_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TryOnRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/try-on/batch":{"post":{"tags":["edit"],"summary":"Try On Batch","operationId":"try_on_batch_api_v1_try_on_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TryOnBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/enhance/upscale":{"post":{"tags":["enhance"],"summary":"Upscale","operationId":"upscale_api_v1_enhance_upscale_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpscaleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/enhance/restore-face":{"post":{"tags":["enhance"],"summary":"Restore Face","operationId":"restore_face_api_v1_enhance_restore_face_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreFaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/enhance/colorize":{"post":{"tags":["enhance"],"summary":"Colorize","operationId":"colorize_api_v1_enhance_colorize_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/enhance/auto":{"post":{"tags":["enhance"],"summary":"Auto Enhance","operationId":"auto_enhance_api_v1_enhance_auto_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoEnhanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/train/loras":{"get":{"tags":["train"],"summary":"List Loras","operationId":"list_loras_api_v1_train_loras_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"base_model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LoRAResponse"},"title":"Response List Loras Api V1 Train Loras Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/train/loras/{lora_id}":{"get":{"tags":["train"],"summary":"Get Lora","operationId":"get_lora_api_v1_train_loras__lora_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"lora_id","in":"path","required":true,"schema":{"type":"string","title":"Lora Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoRAResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["train"],"summary":"Delete Lora","operationId":"delete_lora_api_v1_train_loras__lora_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"lora_id","in":"path","required":true,"schema":{"type":"string","title":"Lora Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/train/loras/{lora_id}/archive":{"patch":{"tags":["train"],"summary":"Archive Lora","operationId":"archive_lora_api_v1_train_loras__lora_id__archive_patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"lora_id","in":"path","required":true,"schema":{"type":"string","title":"Lora Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoRAResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/train/runs":{"get":{"tags":["train"],"summary":"List Training Runs","operationId":"list_training_runs_api_v1_train_runs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrainingRunResponse"},"title":"Response List Training Runs Api V1 Train Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/train/runs/{job_id}":{"get":{"tags":["train"],"summary":"Get Training Run","operationId":"get_training_run_api_v1_train_runs__job_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/train/lora":{"post":{"tags":["train"],"summary":"Train Lora","operationId":"train_lora_api_v1_train_lora_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainLoRARequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/train/dreambooth":{"post":{"tags":["train"],"summary":"Train Dreambooth","operationId":"train_dreambooth_api_v1_train_dreambooth_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainDreamBoothRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs":{"get":{"tags":["jobs"],"summary":"List Jobs","operationId":"list_jobs_api_v1_jobs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"}},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Before"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort By"}},{"name":"sort_direction","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Direction"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobResponse"},"title":"Response List Jobs Api V1 Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["jobs"],"summary":"Create Job","operationId":"create_job_api_v1_jobs_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/GenerateImageJobCreate"},{"$ref":"#/components/schemas/GenerateTextJobCreate"},{"$ref":"#/components/schemas/EditInpaintJobCreate"},{"$ref":"#/components/schemas/EditOutpaintJobCreate"},{"$ref":"#/components/schemas/EditRemoveBackgroundJobCreate"},{"$ref":"#/components/schemas/EditRemoveObjectJobCreate"},{"$ref":"#/components/schemas/EditFaceSwapJobCreate"},{"$ref":"#/components/schemas/EditTryOnJobCreate"},{"$ref":"#/components/schemas/EnhanceUpscaleJobCreate"},{"$ref":"#/components/schemas/EnhanceRestoreFaceJobCreate"},{"$ref":"#/components/schemas/EnhanceColorizeJobCreate"},{"$ref":"#/components/schemas/EnhanceAutoJobCreate"},{"$ref":"#/components/schemas/GenerateVideoJobCreate"},{"$ref":"#/components/schemas/VideoStitchJobCreate"},{"$ref":"#/components/schemas/VideoPostprocessJobCreate"},{"$ref":"#/components/schemas/VideoFaceSwapJobCreate"},{"$ref":"#/components/schemas/VideoFaceSwapPreviewJobCreate"},{"$ref":"#/components/schemas/VideoFaceTracksJobCreate"},{"$ref":"#/components/schemas/VideoFaceSwapBatchJobCreate"},{"$ref":"#/components/schemas/TrainLoRAJobCreate"},{"$ref":"#/components/schemas/TrainDreamBoothJobCreate"}],"discriminator":{"propertyName":"type","mapping":{"generate_image":"#/components/schemas/GenerateImageJobCreate","generate_text":"#/components/schemas/GenerateTextJobCreate","edit_inpaint":"#/components/schemas/EditInpaintJobCreate","edit_outpaint":"#/components/schemas/EditOutpaintJobCreate","edit_remove_bg":"#/components/schemas/EditRemoveBackgroundJobCreate","edit_remove_object":"#/components/schemas/EditRemoveObjectJobCreate","edit_face_swap":"#/components/schemas/EditFaceSwapJobCreate","edit_try_on":"#/components/schemas/EditTryOnJobCreate","enhance_upscale":"#/components/schemas/EnhanceUpscaleJobCreate","enhance_restore_face":"#/components/schemas/EnhanceRestoreFaceJobCreate","enhance_colorize":"#/components/schemas/EnhanceColorizeJobCreate","enhance_auto":"#/components/schemas/EnhanceAutoJobCreate","generate_video":"#/components/schemas/GenerateVideoJobCreate","video_stitch":"#/components/schemas/VideoStitchJobCreate","video_postprocess":"#/components/schemas/VideoPostprocessJobCreate","video_face_swap":"#/components/schemas/VideoFaceSwapJobCreate","video_face_swap_preview":"#/components/schemas/VideoFaceSwapPreviewJobCreate","video_face_tracks":"#/components/schemas/VideoFaceTracksJobCreate","video_face_swap_batch":"#/components/schemas/VideoFaceSwapBatchJobCreate","train_lora":"#/components/schemas/TrainLoRAJobCreate","train_dreambooth":"#/components/schemas/TrainDreamBoothJobCreate"}},"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}":{"get":{"tags":["jobs"],"summary":"Get Job","operationId":"get_job_api_v1_jobs__job_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["jobs"],"summary":"Delete Job","operationId":"delete_job_api_v1_jobs__job_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/cancel":{"post":{"tags":["jobs"],"summary":"Cancel Job","operationId":"cancel_job_api_v1_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jobs/{job_id}/retry":{"post":{"tags":["jobs"],"summary":"Retry Job","operationId":"retry_job_api_v1_jobs__job_id__retry_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/audit/logs":{"get":{"tags":["audit"],"summary":"List Audit Logs","operationId":"list_audit_logs_api_v1_audit_logs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditLogResponse"},"title":"Response List Audit Logs Api V1 Audit Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects":{"get":{"tags":["projects"],"summary":"List Projects","operationId":"list_projects_api_v1_projects_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectResponse"},"title":"Response List Projects Api V1 Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["projects"],"summary":"Create Project","operationId":"create_project_api_v1_projects_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}":{"get":{"tags":["projects"],"summary":"Get Project","operationId":"get_project_api_v1_projects__project_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["projects"],"summary":"Update Project","operationId":"update_project_api_v1_projects__project_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Project","operationId":"delete_project_api_v1_projects__project_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/activity":{"get":{"tags":["projects"],"summary":"Get Project Activity","operationId":"get_project_activity_api_v1_projects__project_id__activity_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/brain":{"get":{"tags":["projects"],"summary":"Get Project Brain","operationId":"get_project_brain_api_v1_projects__project_id__brain_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["projects"],"summary":"Patch Project Brain","operationId":"patch_project_brain_api_v1_projects__project_id__brain_patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrainPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/image/profile-pic":{"post":{"tags":["quickstart"],"summary":"Generate Profile Pic","description":"Generate an AI professional headshot from an uploaded photo.\n\nUses the source photo as a face reference and generates a polished\nstudio/outdoor/corporate headshot. Single-call wrapper around\n/generate with identity mode.","operationId":"generate_profile_pic_api_v1_image_profile_pic_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePicRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/image/profile-pic-pack":{"post":{"tags":["quickstart"],"summary":"Generate Profile Pic Pack","description":"Generate a PhotoAI-style pack of identity-locked headshots — one per style,\nrendered in parallel. Each job is identity-gated (off-identity outputs are\nrejected) and brand-aware. Poll each job_id; assets arrive as styles complete.\n\nReturns: {\"pack_id\": \"...\", \"jobs\": {\"studio\": JobQueuedResponse, ...}}","operationId":"generate_profile_pic_pack_api_v1_image_profile_pic_pack_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePicPackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Generate Profile Pic Pack Api V1 Image Profile Pic Pack Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/image/profile-studio/styles":{"get":{"tags":["quickstart"],"summary":"Profile Studio Styles","description":"The preset style catalog for Profile Studio (holiday, professional, fun, …).","operationId":"profile_studio_styles_api_v1_image_profile_studio_styles_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Profile Studio Styles Api V1 Image Profile Studio Styles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/image/profile-studio/pack":{"post":{"tags":["quickstart"],"summary":"Profile Studio Pack","description":"Generate a pack of beautiful, on-identity profile pics from a TRAINED persona.\n\nUpload-a-few-photos → train a persona (POST /personas / /twins/{id}/lora-train) →\nthen this renders the user in any style: holiday, professional, fun, or a free-text\nscene. Identity is carried by the persona's LoRA (high fidelity, clears the identity\ngate), not a single reference photo — that's the difference vs /image/profile-pic-pack.","operationId":"profile_studio_pack_api_v1_image_profile_studio_pack_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileStudioPackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Profile Studio Pack Api V1 Image Profile Studio Pack Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/collateral/ads-campaign":{"post":{"tags":["quickstart"],"summary":"Generate Ads Campaign","description":"Generate a multi-format ad campaign in one call.\n\nDispatches one job per requested format (default: Instagram 1:1, Stories 9:16,\nYouTube 16:9, LinkedIn 1:1) and returns all job IDs. Poll each job_id\nindependently; subscribe to the ``asset.created`` webhook to receive assets\nas they complete (formats finish at different times).\n\nReturns: {\"jobs\": {\"instagram_square\": JobQueuedResponse, ...}}","operationId":"generate_ads_campaign_api_v1_collateral_ads_campaign_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdsCampaignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Generate Ads Campaign Api V1 Collateral Ads Campaign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/image/meme-face-swap":{"post":{"tags":["quickstart"],"summary":"Meme Face Swap","description":"Swap a face into a meme template image.\n\nThin wrapper around the image edit face-swap operation. Outputs a\nsingle image with the source face composited onto the meme.","operationId":"meme_face_swap_api_v1_image_meme_face_swap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemeSwapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/gif-face-swap":{"post":{"tags":["quickstart"],"summary":"Gif Face Swap","description":"Swap a face into a GIF.\n\nThe worker converts GIF→MP4, runs video face-swap, then converts\nthe result back to GIF. Output asset type is ``video`` (MP4); if you\nneed a GIF output, re-encode via the /video/postprocess endpoint.","operationId":"gif_face_swap_api_v1_video_gif_face_swap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GifFaceSwapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/comments":{"get":{"tags":["reviews"],"summary":"List Comments","operationId":"list_comments_api_v1_projects__project_id__comments_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommentResponse"},"title":"Response List Comments Api V1 Projects  Project Id  Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["reviews"],"summary":"Create Comment","operationId":"create_comment_api_v1_projects__project_id__comments_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"body","in":"query","required":true,"schema":{"type":"string","title":"Body"}},{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/approval-workflows":{"get":{"tags":["reviews"],"summary":"List Approval Workflows","operationId":"list_approval_workflows_api_v1_projects__project_id__approval_workflows_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalWorkflowResponse"},"title":"Response List Approval Workflows Api V1 Projects  Project Id  Approval Workflows Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["reviews"],"summary":"Create Approval Workflow","operationId":"create_approval_workflow_api_v1_projects__project_id__approval_workflows_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object"},"title":"Stages"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/review-links":{"get":{"tags":["reviews"],"summary":"List Review Links","operationId":"list_review_links_api_v1_projects__project_id__review_links_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReviewLinkResponse"},"title":"Response List Review Links Api V1 Projects  Project Id  Review Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["reviews"],"summary":"Create Review Link","operationId":"create_review_link_api_v1_projects__project_id__review_links_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"reviewer_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Name"}},{"name":"reviewer_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Email"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/review/{token}":{"get":{"tags":["reviews"],"summary":"Get Review Link","operationId":"get_review_link_api_v1_review__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/review/{token}/approve":{"post":{"tags":["reviews"],"summary":"Approve Review Link","operationId":"approve_review_link_api_v1_review__token__approve_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/slack/commands":{"post":{"tags":["slack"],"summary":"Slack Commands","operationId":"slack_commands_api_v1_integrations_slack_commands_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/integrations/slack/events":{"post":{"tags":["slack"],"summary":"Slack Events","operationId":"slack_events_api_v1_integrations_slack_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/integrations/slack/interactivity":{"post":{"tags":["slack"],"summary":"Slack Interactivity","operationId":"slack_interactivity_api_v1_integrations_slack_interactivity_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/integrations/slack/install-link":{"post":{"tags":["slack"],"summary":"Slack Install Link","description":"Return a Slack 'Add to Slack' URL bound to the caller's current UseMo workspace.\n\nThe UseMo app calls this (authenticated) and opens the returned URL so the user installs the\napp into their Slack workspace; the resulting team is mapped to this UseMo workspace.","operationId":"slack_install_link_api_v1_integrations_slack_install_link_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/slack/oauth/callback":{"get":{"tags":["slack"],"summary":"Slack Oauth Callback","description":"Slack redirects the browser here after authorization. Public (verified by state).","operationId":"slack_oauth_callback_api_v1_integrations_slack_oauth_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/integrations/slack/installations":{"get":{"tags":["slack"],"summary":"List Slack Installations","description":"List the Slack workspaces connected to the current UseMo workspace.\n\nLets the app show \"Connected ✓\" and which team(s). Returns only safe fields — never the\nbot token.","operationId":"list_slack_installations_api_v1_integrations_slack_installations_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/slack/installations/{installation_id}":{"delete":{"tags":["slack"],"summary":"Disconnect Slack Installation","description":"Disconnect a Slack workspace (soft-deactivate). Slash commands/events from that team then\nfall through to the not-installed path. Scoped to the caller's workspace.","operationId":"disconnect_slack_installation_api_v1_integrations_slack_installations__installation_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Installation Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/image/generate":{"post":{"tags":["studio-compat","studio-compat"],"summary":"Studio Image Generate","operationId":"studio_image_generate","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/generate-ai":{"post":{"tags":["studio-compat","studio-compat"],"summary":"Studio Video Generate Ai","operationId":"studio_video_generate_ai","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-UseMo-Canary-Grant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Usemo-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/image/remove-object":{"post":{"tags":["studio-compat","studio-compat"],"summary":"Studio Image Remove Object","operationId":"studio_image_remove_object","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveObjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/image/enhance":{"post":{"tags":["studio-compat","studio-compat"],"summary":"Studio Image Enhance","operationId":"studio_image_enhance","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoEnhanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/image/edit":{"post":{"tags":["studio-compat"],"summary":"Studio Image Edit","description":"Translates Create.tsx /image/edit payload -> /edit/instruct semantics.","operationId":"studio_image_edit_api_v1_image_edit_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ImageEditBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/spokesperson":{"post":{"tags":["studio-compat"],"summary":"Studio Video Spokesperson","description":"SpokespersonWizard payload -> /video/create semantics.\n\n``script`` is the customer's EXACT words, so it rides as ``script_segments``\n(verbatim mode, F5) — the director must never paraphrase a spokesperson script.\n``options.prompt`` becomes the scene/ask description; when absent we synthesize a\nminimal presenter ask so the grounded-storyboard path still has a brief to work\nfrom. Profile ids pass through for the render to resolve.","operationId":"studio_video_spokesperson_api_v1_video_spokesperson_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_SpokespersonBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks":{"get":{"tags":["webhooks"],"summary":"List Webhooks","operationId":"list_webhooks_api_v1_webhooks_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpointResponse"},"title":"Response List Webhooks Api V1 Webhooks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["webhooks"],"summary":"Create Webhook","operationId":"create_webhook_api_v1_webhooks_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/{endpoint_id}":{"patch":{"tags":["webhooks"],"summary":"Update Webhook","operationId":"update_webhook_api_v1_webhooks__endpoint_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["webhooks"],"summary":"Disable Webhook","operationId":"disable_webhook_api_v1_webhooks__endpoint_id__delete","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/deliveries":{"get":{"tags":["webhooks"],"summary":"List Webhook Deliveries","operationId":"list_webhook_deliveries_api_v1_webhooks_deliveries_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryResponse"},"title":"Response List Webhook Deliveries Api V1 Webhooks Deliveries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/deliveries/{delivery_id}/replay":{"post":{"tags":["webhooks"],"summary":"Replay Webhook Delivery","operationId":"replay_webhook_delivery_api_v1_webhooks_deliveries__delivery_id__replay_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/storyboard":{"post":{"tags":["video"],"summary":"Generate Storyboard","description":"Agentic director (the moat): a one-line ask -> a grounded, fact-checked\nstoryboard built from THIS workspace's context. Synchronous + cheap (LLM only,\nno GPU) so the user previews and the critic gate blocks ungrounded claims\nbefore committing a render. ``shippable`` is false when the critic flags\nungrounded claims; ``verdict.issues`` explains why.","operationId":"generate_storyboard_api_v1_video_storyboard_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/scene-video/quote":{"post":{"tags":["video"],"summary":"Scene Video Quote","description":"Price/quality selector (the 1/10th-price story as a live API): given a storyboard,\nreturn COGS at every tier (draft/standard/premium) + per-shot model routing. Cheap,\nsynchronous, no GPU — this is what the UI calls before committing a render.","operationId":"scene_video_quote_api_v1_video_scene_video_quote_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/influencer":{"post":{"tags":["video"],"summary":"Generate Influencer","description":"In-product entry for the AI-influencer pillar (#56): persona prompt + script segments\n-> dispatches an async render job (persona seed -> RealVisXL de-plasticize -> Veo3\ni2v-from-seed native talking -> assemble) on a GPU worker. Billed as a reel render\n(twin_generate_content). Poll /video/runs for completion.","operationId":"generate_influencer_api_v1_video_influencer_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/create":{"post":{"tags":["video"],"summary":"Create Video","description":"One-shot \"brief -> finished video\", end to end through the quality harness.\n\nA single call that (1) builds a GROUNDED storyboard with the critic gate on (``harness=True``)\nso ungrounded claims are blocked before any GPU spend, then (2) dispatches the GATED influencer\nrender (per-shot ArcFace identity + persona realism gates with bounded aimed retry). Where\n``/video/generate`` gates a single render, this path additionally gates the PLAN (storyboard\ncritic before spend), so every surface (app, Claude, ChatGPT, Slack) gets the best output we\ncan produce from one brief.\n\nReturns ``{shippable: false, storyboard, verdict}`` if the plan fails the grounding gate (no\nspend), else ``{shippable: true, storyboard, job, estimated_cost_usd}`` — poll ``job`` for the\nfinished video.\n\n``async_plan: true`` (PR #76 LB-502 fix): the storyboard phase (multi-call LLM plan +\ncritic gate) can exceed the GCLB timeout when run synchronously in-request — the LB\n502s the client while the handler keeps running, the job still dispatches and SPENDS\nafter the client saw a failure (retry -> double spend). With the flag, this returns\n``{job, planning: true, shippable: null}`` immediately; the plan runs as the first\nphase of the async job. A blocked plan terminally fails the job with\n``error_code=storyboard_gate_failed`` and ZERO GPU spend (charge refunded), and every\njob event / poll carries ``storyboard = {shippable, storyboard, verdict, reasons,\nretry_hint}`` once planning resolves.","operationId":"create_video_api_v1_video_create_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-UseMo-Canary-Grant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Usemo-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/campaign/plan":{"post":{"tags":["video"],"summary":"Campaign Plan","description":"Agentic campaign costing: given video concepts (one per format/pillar), return the\nper-video + campaign-total COGS. The 'one brief -> a whole priced campaign' surface\n(InVideo-but-context-native). Concepts can come from the ideation step or be passed in.","operationId":"campaign_plan_api_v1_video_campaign_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/campaign":{"post":{"tags":["video"],"summary":"Generate Campaign","description":"SELF-SERVE CAMPAIGN: one brief -> all 3 pillars (influencer + clone + business)\ndispatched as 3 decomposed renders. Returns campaign_id + 3 job_ids. The customer-facing\n\"default product\" wedge — one POST gets you a full priced campaign across the formats\nInVideo-class tools split into different SKUs.\n\npayload: {persona_prompt, script_segments, brief?, pillars?} where pillars defaults to\n[\"influencer\",\"clone\",\"business\"]. Each pillar dispatches a generate_influencer job with\n`pillar` + `campaign_id` stamped into the job params for grouping in GET /video/campaign/{id}.","operationId":"generate_campaign_api_v1_video_campaign_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/campaign/{campaign_id}":{"get":{"tags":["video"],"summary":"Get Campaign","description":"Gallery view of a campaign: aggregates all jobs tagged with `campaign_id` in params,\nreturns per-pillar status + artifact URL + COGS. The 'customer sees the gallery' endpoint.","operationId":"get_campaign_api_v1_video_campaign__campaign_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/talking-video/quote":{"post":{"tags":["video"],"summary":"Talking Video Quote","description":"Amortized COGS for a talking video (AI influencer / clone / business). One face base\nre-synced to the full script via LatentSync — the sub-$1/video primitive.","operationId":"talking_video_quote_api_v1_video_talking_video_quote_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/talking-head/quote":{"post":{"tags":["video"],"summary":"Talking Head Quote","description":"Up-front cost for a talking-head scene aligned with Ark Seedance 2.5 + lip-sync rates.","operationId":"talking_head_quote_api_v1_video_talking_head_quote_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/talking-head":{"post":{"tags":["video"],"summary":"Generate Talking Head","description":"Chained talking-head scene: script lines -> gated Seedance 2.5 + lip-sync scene.\n\nArk Seedance 2.5 body (single take up to 30s, or chained last-frame to\nfirst-frame with dissolve joins), identity-gated with enrollment re-anchor,\nowned LatentSync mouth when configured (Sync.so fallback otherwise; SyncNet\nscored when the self-hosted scorer is online and marked n/a when parked).\nFail-closed per shot with bounded retries; poll /video/runs for completion.","operationId":"generate_talking_head_api_v1_video_talking_head_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/runs":{"get":{"tags":["video"],"summary":"List Video Runs","operationId":"list_video_runs_api_v1_video_runs_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VideoRunResponse"},"title":"Response List Video Runs Api V1 Video Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/runs/{job_id}":{"get":{"tags":["video"],"summary":"Get Video Run","operationId":"get_video_run_api_v1_video_runs__job_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/generate":{"post":{"tags":["video"],"summary":"Generate Video","operationId":"generate_video_api_v1_video_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-UseMo-Canary-Grant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Usemo-Canary-Grant"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/preview/generate":{"post":{"tags":["video"],"summary":"Generate Video Preview","operationId":"generate_video_preview_api_v1_video_preview_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/production/generate":{"post":{"tags":["video"],"summary":"Generate Video Production","operationId":"generate_video_production_api_v1_video_production_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/stitch":{"post":{"tags":["video"],"summary":"Stitch Video","operationId":"stitch_video_api_v1_video_stitch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoStitchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/postprocess":{"post":{"tags":["video"],"summary":"Postprocess Video","operationId":"postprocess_video_api_v1_video_postprocess_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoPostProcessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/face-swap":{"post":{"tags":["video"],"summary":"Video Face Swap","operationId":"video_face_swap_api_v1_video_face_swap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceSwapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/animate":{"post":{"tags":["video"],"summary":"Video Animate","description":"Motion-driven character replacement: the character still performs the driving clip.\n\nOne door: pre-generation refusals → paint frame-0 → warm Viggle propagate → motion +\ncharacter critics + full video suite, fail-closed. Priced 2 credits / 5 s (~$0.20) at\nvolume 480p; HQ resolutions add one credit block. Renderable length is capped to the\nwarm Viggle frame budget (~5.17 s) until multi-chunk ships.","operationId":"video_animate_api_v1_video_animate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoAnimateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/{video_asset_id}/face-swap":{"post":{"tags":["video"],"summary":"Video Face Swap For Asset","operationId":"video_face_swap_for_asset_api_v1_video__video_asset_id__face_swap_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"video_asset_id","in":"path","required":true,"schema":{"type":"string","title":"Video Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceSwapForAssetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/face-swap/preview":{"post":{"tags":["video"],"summary":"Video Face Swap Preview","operationId":"video_face_swap_preview_api_v1_video_face_swap_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceSwapPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/{video_asset_id}/face-swap/preview":{"post":{"tags":["video"],"summary":"Video Face Swap Preview For Asset","operationId":"video_face_swap_preview_for_asset_api_v1_video__video_asset_id__face_swap_preview_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"video_asset_id","in":"path","required":true,"schema":{"type":"string","title":"Video Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceSwapPreviewForAssetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/face-tracks":{"post":{"tags":["video"],"summary":"Video Face Tracks","operationId":"video_face_tracks_api_v1_video_face_tracks_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceTracksRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/{video_asset_id}/tracks":{"post":{"tags":["video"],"summary":"Video Face Tracks For Asset","operationId":"video_face_tracks_for_asset_api_v1_video__video_asset_id__tracks_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"video_asset_id","in":"path","required":true,"schema":{"type":"string","title":"Video Asset Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceTracksForAssetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/face-swap/batch":{"post":{"tags":["video"],"summary":"Video Face Swap Batch","operationId":"video_face_swap_batch_api_v1_video_face_swap_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFaceSwapBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/longform":{"post":{"tags":["video"],"summary":"Create Longform Project","description":"Script/brief + character registry + budget → a longform_project job.\n\nThe response always carries a cost projection (Hanriver-density heuristic;\nthe orchestrator re-projects from the REAL shot plan before any GPU spend\nand aborts cleanly if it exceeds budget_usd). ``dry_run=true`` returns the\nprojection without dispatching anything.\n\n``look_warnings`` (advisory, never blocking) flags known-bad patterns in\n``look_fragments`` — which is pasted into EVERY shot's prompt, so a bad look\nanchor is a whole-film defect, not a one-shot one. ADVISORY BY DESIGN: this\nis a pure deterministic lint (no infra to fail open on), and rejecting would\nbreak existing callers over prose style. It is a VISIBLE FLAG, never a silent\npass — and it is returned on ``dry_run`` too, which is where a caller checks\nbefore spending a GPU-second. See app/services/look_book.py.","operationId":"create_longform_project_api_v1_video_longform_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongformCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/longform/{job_id}":{"get":{"tags":["video"],"summary":"Get Longform Project","description":"Parent status + the live per-shot state machine.","operationId":"get_longform_project_api_v1_video_longform__job_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/video/longform/{job_id}/resume":{"post":{"tags":["video"],"summary":"Resume Longform Project","description":"Re-arm the orchestrator tick for a stalled or budget-aborted project.\n\nAccepted shots are never re-rendered — the tick continues from the\npersistent shot plan. A budget-aborted project can be resumed with a\nhigher ``budget_usd``. (Credits are not re-charged in the scaffold.)","operationId":"resume_longform_project_api_v1_video_longform__job_id__resume_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LongformResumeRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series":{"post":{"tags":["cartoon"],"summary":"Create Series","description":"A new series in its own project. With ``bible`` the customer's bible is checked\nand used as written; otherwise ``brief`` is drafted into one (a paid job).","operationId":"create_series_api_v1_cartoon_series_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cartoon"],"summary":"List Series","operationId":"list_series_api_v1_cartoon_series_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}":{"get":{"tags":["cartoon"],"summary":"Get Series","operationId":"get_series_api_v1_cartoon_series__series_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["cartoon"],"summary":"Update Series","description":"Edit the bible (checked again), change the brief, or approve the bible: an\napproved bible's drafted parts become the customer's.","operationId":"update_series_api_v1_cartoon_series__series_id__patch","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/bible":{"post":{"tags":["cartoon"],"summary":"Redraft Bible","operationId":"redraft_bible_api_v1_cartoon_series__series_id__bible_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/characters":{"post":{"tags":["cartoon"],"summary":"Add Character","description":"A new cast member from the customer's description (and, optionally, their own\nart), designed into the series and drawn as a full character pack (a paid job).","operationId":"add_character_api_v1_cartoon_series__series_id__characters_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharacterCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/characters/{character_id}/pack":{"post":{"tags":["cartoon"],"summary":"Make Pack","description":"Make the character's pack again (a paid job). A failed or partial pack asked for\nagain with nothing changed continues from its kept sheet and the boards that passed.","operationId":"make_pack_api_v1_cartoon_series__series_id__characters__character_id__pack_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Character Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PackRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/characters/{character_id}/pack/approve":{"post":{"tags":["cartoon"],"summary":"Approve Held Pack","description":"Use a design the final review held back on quality: its drafts stay drafts, marked\nas approved by the customer, and episodes draw from them. A pack held by the preschool\nsafety check, or whose checks could not run, can only be made again.","operationId":"approve_held_pack_api_v1_cartoon_series__series_id__characters__character_id__pack_approve_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Character Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/characters/{character_id}/lora":{"post":{"tags":["cartoon"],"summary":"Train Character Lora","description":"Train the character's own LoRA on its pack drawings (about half an hour, part of\nthe pack's price); then the shots it has to itself are drawn on open weights.","operationId":"train_character_lora_api_v1_cartoon_series__series_id__characters__character_id__lora_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Character Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/characters/{character_id}/voice/design":{"post":{"tags":["cartoon"],"summary":"Design Character Voice","operationId":"design_character_voice_api_v1_cartoon_series__series_id__characters__character_id__voice_design_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Character Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/narrator/voice/design":{"post":{"tags":["cartoon"],"summary":"Design Narrator Voice","operationId":"design_narrator_voice_api_v1_cartoon_series__series_id__narrator_voice_design_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/characters/{character_id}/voice":{"put":{"tags":["cartoon"],"summary":"Choose Character Voice","operationId":"choose_character_voice_api_v1_cartoon_series__series_id__characters__character_id__voice_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"character_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Character Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/narrator/voice":{"put":{"tags":["cartoon"],"summary":"Choose Narrator Voice","operationId":"choose_narrator_voice_api_v1_cartoon_series__series_id__narrator_voice_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/voices":{"get":{"tags":["cartoon"],"summary":"Stock Voices","description":"Stock voices for a character or the narrator that speak ``language`` (English by\ndefault); en-GB, en-US and the other English accents are all English.","operationId":"stock_voices_api_v1_cartoon_voices_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Language"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/episodes":{"post":{"tags":["cartoon"],"summary":"Create Episode","description":"A new episode: the customer's own script laid out as shots (every spoken word\nkept), or a script written from a premise and learning goal. The script comes back\nfor approval before anything is rendered.","operationId":"create_episode_api_v1_cartoon_series__series_id__episodes_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EpisodeCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/episodes/{episode_id}":{"get":{"tags":["cartoon"],"summary":"Get Episode","operationId":"get_episode_api_v1_cartoon_series__series_id__episodes__episode_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/episodes/{episode_id}/script":{"put":{"tags":["cartoon"],"summary":"Edit Script","description":"The customer's edits to the script, checked like a drafted one.","operationId":"edit_script_api_v1_cartoon_series__series_id__episodes__episode_id__script_put","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/episodes/{episode_id}/render":{"post":{"tags":["cartoon"],"summary":"Render Episode","description":"Make the approved script into the episode (a paid job, priced per second).","operationId":"render_episode_api_v1_cartoon_series__series_id__episodes__episode_id__render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/episodes/{episode_id}/dub":{"post":{"tags":["cartoon"],"summary":"Dub Episode","description":"Dub a made episode into another language with PyAI (a paid job, priced per second):\nthe picture is kept and the speech is voiced again in that language, keeping each\nspeaker's voice and the music (not lip sync). A draft episode's dub is a draft too.","operationId":"dub_episode_api_v1_cartoon_series__series_id__episodes__episode_id__dub_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DubRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/episodes/{episode_id}/shots/redo":{"post":{"tags":["cartoon"],"summary":"Redo Shots","description":"Redo named shots of a made episode (``reclip`` keeps a shot's picture and\nanimates it again; ``pins`` choose another keyframe take), then assemble and review\nthe episode again. Priced per second of the shots redone.","operationId":"redo_shots_api_v1_cartoon_series__series_id__episodes__episode_id__shots_redo_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Episode Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShotRedoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/plan":{"post":{"tags":["cartoon"],"summary":"Plan Episodes","description":"The series' next episodes as premises the product can make, unlike the ones it has.\nWritten in the background (about a minute); read them from GET .../plan/{plan_id}.","operationId":"plan_episodes_api_v1_cartoon_series__series_id__plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__routes__cartoon__PlanRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cartoon/series/{series_id}/plan/{plan_id}":{"get":{"tags":["cartoon"],"summary":"Episode Plan","operationId":"episode_plan_api_v1_cartoon_series__series_id__plan__plan_id__get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/companion/suggest":{"post":{"tags":["companion"],"summary":"Companion Suggest","description":"Proactive ideation: workspace context -> N ready-to-make video concepts (one per pillar),\neach grounded + costed. The \"what should I make today?\" moment, answered before the user asks.\n\nBody (all optional): {\"brief\": \"...\"} to steer the ideas; omit for the proactive default.\nReturns {ideas:[{title,hook,angle,pillar,format,duration_sec, ...}], plan:{per_step,total},\ngrounded:bool, context:{fact_count,coverage}}. 409 if the workspace has no context yet (the\ncompanion needs facts to ground against — the moat).","operationId":"companion_suggest_api_v1_companion_suggest_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/companion/plan":{"post":{"tags":["companion"],"summary":"Companion Plan","description":"The agentic step: the companion turns a brief into a concrete, grounded plan you can act on —\na fact-checked storyboard (built from THIS brand's context) plus suggested next actions. Set\n``iterate:true`` for the \"make it best\" loop (score -> aimed improve -> re-score, with a visible\ntrajectory). Reuses the grounded director — the model is the commodity, the harness is the product.\n\nBody: {\"brief\"|\"message\": \"...\", \"iterate\"?: bool, \"brand_voice\"?: str}. 422 if no brief; 409 if\nthe workspace has no brand context yet; 503 if no LLM provider is configured.","operationId":"companion_plan_api_v1_companion_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/companion/run":{"post":{"tags":["companion"],"summary":"Companion Run","description":"Default Dashboard Prompt-to-Outcome Harness: drop a photo/video/logo + one sentence.\n\nInspects any attached portrait (AuraFace mouth state, aspect ratio, voice gender),\nextracts verbatim spoken scripts and product/prospect brands, resolves verified\ntransparent PNG logos (or industry defaults like 'any random HVAC company' -> Carrier),\nsizes the single-take shot to the spoken audio, and returns the live agent trace +\nready-to-execute harness contract. When ``execute=True`` is passed, dispatches the\ngated job immediately and streams the initial agent trace steps to ``/ws/jobs``.","operationId":"companion_run_api_v1_companion_run_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/companion/sheet":{"post":{"tags":["companion"],"summary":"Companion Sheet","description":"Build or post-process a 10-view Seedance Character Sheet or Object Sheet.\n\nSupports both:\n  - ``mode=\"character\"`` (AI influencers, recurring microdrama cast: master spec,\n    asymmetry key, bracket-free identity string, A1/A2 anchors, C1/C2/C3 turntable\n    prompts, and 10-view timestamp frame map). Binds user Clone (`twin_id`/`clone_id`)\n    automatically when provided.\n  - ``mode=\"object\"`` (360° product/object turnaround: dimensions L×W×H, orthographic\n    proportion ratios W/H & L/H, material lighting class, H1/H2/H3 anchors, T1/T2\n    clips, S1–S3 stills, and 10-view frame map)\n  - Optional turnaround video extraction (`turnaround_video_path` + `out_dir`) and\n    orthographic silhouette measurement (`measure_image_path` + `expected_w_over_h`).","operationId":"companion_sheet_api_v1_companion_sheet_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/companion/copilot":{"post":{"tags":["companion"],"summary":"Companion Copilot","description":"Real-time As-You-Type Prompt Copilot for the UseMo Composer.\n\nScores the user's draft prompt across 6 cinematic axes (temporal windows,\npace-carrier/anchor, precursor micro-physics, camera choreography, sound design,\nand continuity/optics locks) and returns clickable Effect & Grammar Chips plus\nan instant preview upgrade.","operationId":"companion_copilot_api_v1_companion_copilot_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/companion/blueprint":{"post":{"tags":["companion"],"summary":"Companion Blueprint","description":"Turn a 1-sentence concept into a complete 15s–60s Cinematic Blueprint + model-native prompts.\n\nSupports:\n  - ``one_take_disaster_chase`` (Examples 1 & 2: coastal tsunami / urban sinkhole)\n  - ``one_take_gauntlet_escape`` (Example 4: rally truck escaping redwood mega-wildfire)\n  - ``multi_shot_mystery_reversal`` (Example 3: 7-shot cosmic horror enclosure & shadow twist)\n  - ``commercial_product_proof_ladder`` (Product launch proof film)\nAlso binds user Clone (`twin_id` / `clone_id`) when provided so the clone stars in the blueprint.","operationId":"companion_blueprint_api_v1_companion_blueprint_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/companion/batch-pitch":{"post":{"tags":["companion"],"summary":"Companion Batch Pitch","description":"Batch Sales Prospect Personalizer: 1 base talking video -> N prospect-branded MP4s.\n\nSupports both Option-2 modes:\n  - ``personalization_mode=\"logo_and_visual_pill\"`` ($0.00 marginal GPU cost/prospect)\n  - ``personalization_mode=\"spoken_name_splice\"`` (~$0.12 marginal GPU cost/prospect via 1.5s OmniHuman 2.0 splice)\nBinds user Clone (`twin_id` / `clone_id`) automatically for face, voice, and rep name.","operationId":"companion_batch_pitch_api_v1_companion_batch_pitch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/companion/multi-rep-campaign":{"post":{"tags":["companion"],"summary":"Companion Multi Rep Campaign","description":"Option 2 Multi-Rep × Multi-Prospect OmniHuman 2.0 Campaign Endpoint.\n\nRenders (or reuses) 1 native OmniHuman 2.0 base video per sales rep or user Clone\n(~$0.66/rep once), and fans each rep's base video out across N prospects with either:\n  - ``personalization_mode=\"logo_and_visual_pill\"`` ($0.00/prospect -> $0.013/video at 5x50)\n  - ``personalization_mode=\"spoken_name_splice\"`` ($0.12/prospect -> $0.133/video at 5x50)\n\nEach entry in ``reps`` may be a full rep dict OR simply ``{\"twin_id\": \"<uuid>\"}`` /\n``{\"clone_id\": \"<uuid>\"}`` — or callers can pass top-level ``twin_id`` / ``clone_ids``\nto bind their workspace Clones directly.","operationId":"companion_multi_rep_campaign_api_v1_companion_multi_rep_campaign_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/catalog":{"get":{"tags":["micro-drama"],"summary":"Micro Drama Catalog","operationId":"micro_drama_catalog_api_v1_micro_drama_catalog_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/projects":{"post":{"tags":["micro-drama"],"summary":"Create Micro Drama Project","operationId":"create_micro_drama_project_api_v1_micro_drama_projects_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/projects/{project_id}/bind-cast":{"post":{"tags":["micro-drama"],"summary":"Bind Cast","description":"Bind each character: clone | influencer | mint_sheet (10-view Seedance Character Sheet).","operationId":"bind_cast_api_v1_micro_drama_projects__project_id__bind_cast_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/location-plate":{"post":{"tags":["micro-drama"],"summary":"Location Plate","operationId":"location_plate_api_v1_micro_drama_location_plate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/props/extract":{"post":{"tags":["micro-drama"],"summary":"Extract Props","operationId":"extract_props_api_v1_micro_drama_props_extract_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/episodes/generate":{"post":{"tags":["micro-drama"],"summary":"Generate Episode","description":"Run the full micro-drama harness (write -> format + SEAM + PACE + Studio Ledger gates -> H3 Ref2VA containers + SRT).","operationId":"generate_episode_api_v1_micro_drama_episodes_generate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/episodes/generate-batch":{"post":{"tags":["micro-drama"],"summary":"Generate Episode Batch","description":"Generate a contiguous multi-episode arc (e.g., First-3-Episodes Beat Card) with A-I reversal rotation.","operationId":"generate_episode_batch_api_v1_micro_drama_episodes_generate_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/episodes/check-ledger":{"post":{"tags":["micro-drama"],"summary":"Check Ledger","operationId":"check_ledger_api_v1_micro_drama_episodes_check_ledger_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/locks/verify":{"post":{"tags":["micro-drama"],"summary":"Verify Locks","operationId":"verify_locks_api_v1_micro_drama_locks_verify_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/keyframes":{"post":{"tags":["micro-drama"],"summary":"Keyframes","description":"Keyframe contact sheet: start_boundary prompts per shot (rejects completed actions).","operationId":"keyframes_api_v1_micro_drama_keyframes_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/render/compile":{"post":{"tags":["micro-drama"],"summary":"Compile Render","description":"Compile + validate H3 Ref2VA prompt(s). Multi-shot when 2-3 shots supplied.","operationId":"compile_render_api_v1_micro_drama_render_compile_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/action-split":{"post":{"tags":["micro-drama"],"summary":"Action Split","description":"H3 Slap (1 shot) vs Shove (2 shots at contact boundary) planner.","operationId":"action_split_api_v1_micro_drama_action_split_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/audio/cast-plan":{"post":{"tags":["micro-drama"],"summary":"Cast Audio Plan","description":"Build PyAI Cast emotional speech plan + PyAI Dub 11-language localization spec for an episode.","operationId":"cast_audio_plan_api_v1_micro_drama_audio_cast_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/ua-hook":{"post":{"tags":["micro-drama"],"summary":"Ua Hook","description":"TikTok/Reels UA hook slice plan from gated episode.","operationId":"ua_hook_api_v1_micro_drama_ua_hook_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/moral-parable/blueprint":{"post":{"tags":["micro-drama"],"summary":"Moral Parable Blueprint","description":"Build + validate a standalone `Moral Micro-Drama` (5-Act Dignity Parable with Sacred Object Motif,\nJ/L-cut Audio Bridges, Off-Screen Voiceover over Macro B-Roll, Symmetric Callback, and Closing Moral Card).","operationId":"moral_parable_blueprint_api_v1_micro_drama_moral_parable_blueprint_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/moral-parable/validate":{"post":{"tags":["micro-drama"],"summary":"Moral Parable Validate","description":"Validate an episode against the 6 structural laws of a `Moral Micro-Drama`.","operationId":"moral_parable_validate_api_v1_micro_drama_moral_parable_validate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/spatial-direction/plan":{"post":{"tags":["micro-drama"],"summary":"Spatial Direction Plan","description":"Prompt-Driven Floor Plan & 8-Law Shot-Direction Planner (with aimed retry).\n\nPlans the caller's brief with the live director. ``use_live_llm: false`` returns the fixed\nWatchmaker reference plan instead, labelled ``source=\"deterministic_reference\"``.","operationId":"spatial_direction_plan_api_v1_micro_drama_spatial_direction_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/blocking/plan":{"post":{"tags":["micro-drama"],"summary":"Blocking Direction Plan","description":"Compile a script into a simulated world/blocking/coverage plan before generation spend.","operationId":"blocking_direction_plan_api_v1_micro_drama_blocking_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/spatial-direction/validate":{"post":{"tags":["micro-drama"],"summary":"Spatial Direction Validate","description":"Validate a spatial shot-direction plan against the 8 Floor-Plan & Shot-Direction Laws.","operationId":"spatial_direction_validate_api_v1_micro_drama_spatial_direction_validate_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/moral-film/plan":{"post":{"tags":["micro-drama"],"summary":"Moral Film Plan","description":"Stage-1 Productized Moral Micro-Drama Film Compiler: turns a customer brief into a\nvalidated FilmScript, timeline, cost estimate, 8-law spatial audit, and blocking plan.","operationId":"moral_film_plan_api_v1_micro_drama_moral_film_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/moral-film/render":{"post":{"tags":["micro-drama"],"summary":"Moral Film Render","description":"One-door Moral Micro-Drama Film pipeline (supports plan_only, stop_after_keyframes, or full render).","operationId":"moral_film_render_api_v1_micro_drama_moral_film_render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/moral-film/jobs":{"post":{"tags":["micro-drama"],"summary":"Moral Film Enqueue Job","description":"Queue an async Moral Micro-Drama Film job on the Celery video lane (returns `JobQueuedResponse`\nand fires `job.completed` + `asset.created` webhooks on completion).","operationId":"moral_film_enqueue_job_api_v1_micro_drama_moral_film_jobs_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/moral-film/jobs/batch":{"post":{"tags":["micro-drama"],"summary":"Moral Film Enqueue Batch","description":"Batch-queue 1..50 Moral Micro-Drama episodes onto the Celery video lane in one call.","operationId":"moral_film_enqueue_batch_api_v1_micro_drama_moral_film_jobs_batch_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/moral-film/scene-mesh/plan":{"post":{"tags":["micro-drama"],"summary":"Moral Film Scene Mesh Plan","description":"Compile a dynamic Scene & Gaze-Handoff Map plus a 2x2 / 2x3 / 3x3 Multi-Angle Scene\nCoverage Contact Sheet Mesh prompt for any scene in a FilmScript.","operationId":"moral_film_scene_mesh_plan_api_v1_micro_drama_moral_film_scene_mesh_plan_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/micro-drama/moral-film/turnaround-2x2/prompt":{"post":{"tags":["micro-drama"],"summary":"Moral Film Turnaround 2X2 Prompt","description":"Build a 2x2 Photographer's Contact Sheet Character Turnaround prompt (front_0,\nthree_quarter_left, three_quarter_right, profile_right) with off-lens horizontal gaze\nand hands below frame.","operationId":"moral_film_turnaround_2x2_prompt_api_v1_micro_drama_moral_film_turnaround_2x2_prompt_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/chatgpt/openapi.json":{"get":{"tags":["integrations"],"summary":"Chatgpt Action Openapi","description":"Curated OpenAPI document for the UseMo ChatGPT Custom GPT Action.\n\nPoint a Custom GPT's Action at this URL and set API-key auth (header ``X-API-Key``).","operationId":"chatgpt_action_openapi_api_v1_integrations_chatgpt_openapi_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Chatgpt Action Openapi Api V1 Integrations Chatgpt Openapi Json Get"}}}}}}},"/api/v1/ghl/webhook/{workspace_id}":{"post":{"tags":["ghl"],"summary":"Ghl Webhook","description":"Receive GHL events and auto-trigger video generation.\n\nGHL requires a 200 response within 5s — heavy work runs in background.\nConfigure webhook URL in GHL: {api_base}/ghl/webhook/{workspace_id}\nSignature verification uses workspace.settings.ghl_webhook_secret.","operationId":"ghl_webhook_api_v1_ghl_webhook__workspace_id__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ghl/outreach":{"post":{"tags":["ghl"],"summary":"Ghl Outreach","description":"Run a batch personalized-video campaign pulled from a GHL contact segment.\n\nIf ghl_tag is set, contacts are pulled live from GHL API using workspace.settings.ghl_api_key.\nOtherwise, use the inline contacts list.\nRequires Agency plan.","operationId":"ghl_outreach_api_v1_ghl_outreach_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GHLOutreachRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ghl/contacts/{ghl_contact_id}/deliver":{"post":{"tags":["ghl"],"summary":"Deliver Video To Ghl","description":"Push a completed UseMo video URL into GHL as a contact note (and optional custom field).\n\nRequires Agency plan. The job must belong to this workspace and must be completed.","operationId":"deliver_video_to_ghl_api_v1_ghl_contacts__ghl_contact_id__deliver_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"ghl_contact_id","in":"path","required":true,"schema":{"type":"string","title":"Ghl Contact Id"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GHLDeliverRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/gifs/search":{"get":{"tags":["gifs"],"summary":"Search Gifs","description":"Search the configured GIF provider (or trending when q is empty), with a\n1h result cache and a global hourly cap protecting the shared provider key.\n\nReturns: {\"results\": [...], \"provider\": \"giphy|tenor\", \"cached\": bool, \"rate_limited\": bool}","operationId":"search_gifs_api_v1_gifs_search_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search query. Empty returns trending GIFs.","default":"","title":"Q"},"description":"Search query. Empty returns trending GIFs."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":24,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/influencers/mint":{"post":{"tags":["influencers"],"summary":"Mint Influencer","description":"Generate a realistic influencer face from a free-text description.\n\nThe prompt is composed from the canonical anti-plastic realism recipe so every\nminted human clears the no-plastic bar regardless of how the user phrases it.","operationId":"mint_influencer_api_v1_influencers_mint_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"x-idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MintInfluencerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueuedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/search":{"get":{"tags":["library"],"summary":"Search Library","description":"Return reusable assets of a kind, best (most-reused, highest-score) first.\nEmpty list if the library has nothing (or is not yet migrated).","operationId":"search_library_api_v1_library_search_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"kind","in":"query","required":true,"schema":{"type":"string","description":"Asset kind: face | meme | persona | broll | ...","title":"Kind"},"description":"Asset kind: face | meme | persona | broll | ..."},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by tag overlap (repeatable).","title":"Tag"},"description":"Filter by tag overlap (repeatable)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["library"],"summary":"Search Library Semantic","description":"Type-anything search: LLM query understanding -> dense (TurboVec) + sparse\n(Postgres FTS) -> RRF. `weak` flags a poor match so the client can offer\ngenerate-on-miss instead of mediocre results.\n\nPUBLIC + global-only: browsing the template gallery needs no login, and\nglobal_only=True guarantees a workspace's promoted-private assets are never\nexposed to anonymous or cross-workspace callers.","operationId":"search_library_semantic_api_v1_library_search_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/animals":{"get":{"tags":["library"],"summary":"Animal Shelf","description":"Pilot picker shelf: curated animal keyframes grouped in species order.\n\nUnstocked species report `count: 0` (UI renders \"coming soon\"). Unknown\nspecies 422s against the pilot allowlist instead of returning a confusing\nempty shelf.","operationId":"animal_shelf_api_v1_library_animals_get","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"species","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to one pilot species.","title":"Species"},"description":"Filter to one pilot species."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":60,"title":"Limit"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/animals/render":{"post":{"tags":["library"],"summary":"Render Animal","description":"Pick → materialize → render: one call from shelf choice to queued video.\n\nA thin adapter, not a new pipeline (same pattern as the studio-compat\nspokesperson adapter): validation + keyframe pick + workspace materialize\nhappen here, then the render itself is delegated to video `generate_video`\n— identical quotas, contracts, credit debit and dispatch as any other\nrender. The pose advisory rides along in the envelope, never a block.\nRetry-safe: materialize is idempotent, so the same `X-Idempotency-Key`\nreplays the original job instead of charging again.","operationId":"render_animal_api_v1_library_animals_render_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Idempotency-Key"}},{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnimalRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/catalog":{"get":{"tags":["library"],"summary":"Library Catalog","description":"PUBLIC browse of the global template catalog — no query, no login. Lets the\ngallery show real content on page load instead of an empty search box. Returns\nplatform (workspace_id IS NULL) assets. Only enriched assets (with a search\ncaption) are shown — they're the finished, thumbnail-able catalog.\n\nWithout a `kind` filter the result is INTERLEAVED across kinds (persona, broll,\nmeme, image, gif, face) so the gallery shows a varied mix — otherwise the newest\nbatch (e.g. a run of stills) would bury all the video content below the fold.","operationId":"library_catalog_api_v1_library_catalog_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to one kind (persona|broll|meme|gif|face). None = all.","title":"Kind"},"description":"Filter to one kind (persona|broll|meme|gif|face). None = all."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":60,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page offset for 'load more' pagination.","default":0,"title":"Offset"},"description":"Page offset for 'load more' pagination."},{"name":"original_only","in":"query","required":false,"schema":{"type":"boolean","description":"Exclude recognizable IP (celebrity/character/brand). Unclassified assets are KEPT (only known-IP is filtered). Use for owned-template / marketing surfaces; leave off for the user-initiated remix browse.","default":false,"title":"Original Only"},"description":"Exclude recognizable IP (celebrity/character/brand). Unclassified assets are KEPT (only known-IP is filtered). Use for owned-template / marketing surfaces; leave off for the user-initiated remix browse."},{"name":"caption_safe","in":"query","required":false,"schema":{"type":"boolean","description":"Return only owned/licensed UseMo-CDN assets with a positive provenance receipt.","default":false,"title":"Caption Safe"},"description":"Return only owned/licensed UseMo-CDN assets with a positive provenance receipt."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}],"description":"Bounded lexical search over the enriched catalog text.","title":"Q"},"description":"Bounded lexical search over the enriched catalog text."},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}],"title":"Category"}},{"name":"intent","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}],"title":"Intent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/item/{asset_id}":{"get":{"tags":["library"],"summary":"Get Library Asset","description":"Public — platform (global) assets only; workspace-private assets 404 here so\nthey're never exposed by id.","operationId":"get_library_asset_api_v1_library_item__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"}}}}}}},"/api/v1/library/remix-options":{"get":{"tags":["library"],"summary":"Remix Options","description":"PUBLIC — the curated controls for the remix modal: voices, dub languages, caption styles.\nLets the frontend render real dropdowns without hardcoding the lists.","operationId":"remix_options_api_v1_library_remix_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/library/remix":{"post":{"tags":["library"],"summary":"Remix Library","description":"Apply an EditSpec (face / new speech+lipsync / captions / length) to a base\nlibrary video. Heavy (GPU) -> dispatched; the response is a queued-job handle.","operationId":"remix_library_api_v1_library_remix_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemixRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/library/seed":{"post":{"tags":["library"],"summary":"Seed Library","description":"Seed the platform library with the curated cold-start manifest.\n\nIdempotent by URL — re-running skips assets already seeded. Enqueues background\nenrichment on each new asset so it becomes searchable within a few minutes.\n\nOperator-only (global_role = account_owner).","operationId":"seed_library_api_v1_library_seed_post","security":[{"HTTPBearer":[]},{"APIKeyHeader":[]}],"parameters":[{"name":"X-Workspace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Workspace-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SeedRequest"}],"default":{},"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/quality":{"get":{"tags":["public-quality"],"summary":"Public Quality","operationId":"public_quality_api_v1_public_quality_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"type":"string","default":"7d","title":"Window"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Public Quality Api V1 Public Quality Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics":{"get":{"summary":"Metrics","description":"Endpoint that serves Prometheus metrics.","operationId":"metrics_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"APIKeyCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","default":[]}},"type":"object","required":["name"],"title":"APIKeyCreateRequest"},"APIKeyCreateResponse":{"properties":{"api_key":{"type":"string","title":"Api Key"},"name":{"type":"string","title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["api_key","name","scopes"],"title":"APIKeyCreateResponse"},"APIKeyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"is_active":{"type":"boolean","title":"Is Active"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","name","key_prefix","scopes","is_active","created_at"],"title":"APIKeyResponse"},"AcceptInviteRequest":{"properties":{"token":{"type":"string","title":"Token"},"password":{"anyOf":[{"type":"string","maxLength":128,"minLength":8},{"type":"null"}],"title":"Password"},"fullName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fullname"}},"type":"object","required":["token"],"title":"AcceptInviteRequest"},"ActivateH3QualificationRequest":{"properties":{"prepared_case_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10,"minItems":1,"title":"Prepared Case Ids"},"deployment_receipt":{"type":"object","title":"Deployment Receipt"},"commercial_license_receipt":{"type":"object","title":"Commercial License Receipt"},"territory":{"type":"string","pattern":"^[A-Za-z]{2}$|^WORLDWIDE$","title":"Territory"},"source_git_sha":{"type":"string","pattern":"^[0-9a-f]{40}$","title":"Source Git Sha"},"hard_budget_usd":{"type":"string","maxLength":32,"minLength":1,"title":"Hard Budget Usd"}},"type":"object","required":["prepared_case_ids","deployment_receipt","commercial_license_receipt","territory","source_git_sha","hard_budget_usd"],"title":"ActivateH3QualificationRequest"},"ActivateWanQualificationRequest":{"properties":{"recipe_id":{"type":"string","enum":["wan-animate2-human-720-v1","wan-animate2-animal-720-v1"],"title":"Recipe Id"},"prepared_case_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10,"minItems":1,"title":"Prepared Case Ids"},"deployment_receipt":{"type":"object","title":"Deployment Receipt"},"source_git_sha":{"type":"string","pattern":"^[0-9a-f]{40}$","title":"Source Git Sha"},"hard_budget_usd":{"type":"string","maxLength":32,"minLength":1,"title":"Hard Budget Usd"}},"type":"object","required":["recipe_id","prepared_case_ids","deployment_receipt","source_git_sha","hard_budget_usd"],"title":"ActivateWanQualificationRequest"},"AdsCampaignRequest":{"properties":{"hook":{"type":"string","title":"Hook","description":"Primary headline / hook text for the ad."},"cta":{"type":"string","title":"Cta","description":"Call-to-action button text.","default":"Learn more"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"visual_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visual Context","description":"Brief description of what the ad visual should show (product, lifestyle, etc.)."},"formats":{"items":{"type":"string","enum":["instagram_square","stories","youtube","linkedin"]},"type":"array","title":"Formats","default":["instagram_square","stories","youtube","linkedin"]}},"type":"object","required":["hook"],"title":"AdsCampaignRequest"},"AnalyticsTeamActivityResponse":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"members":{"items":{"$ref":"#/components/schemas/TeamActivitySummary"},"type":"array","title":"Members"}},"type":"object","required":["workspace_id"],"title":"AnalyticsTeamActivityResponse"},"AnalyticsUsageResponse":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"range_days":{"type":"integer","title":"Range Days"},"series":{"items":{"$ref":"#/components/schemas/UsageTimeseriesPoint"},"type":"array","title":"Series"},"by_job_type":{"items":{"$ref":"#/components/schemas/JobTypeUsageSummary"},"type":"array","title":"By Job Type"}},"type":"object","required":["workspace_id","range_days"],"title":"AnalyticsUsageResponse"},"AnimalRenderRequest":{"properties":{"species":{"type":"string","title":"Species","description":"Pilot species id (hen, dog, tiger, cat, horse, parrot)."},"motion":{"type":"string","maxLength":2000,"minLength":1,"title":"Motion","description":"Free-text motion description."},"library_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Asset Id","description":"Shelf keyframe id; defaults to the top pick for the species."},"duration_sec":{"type":"integer","title":"Duration Sec","description":"Clip length; one of 5/10/15/30/60.","default":5}},"type":"object","required":["species","motion"],"title":"AnimalRenderRequest"},"ApprovalWorkflowResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"name":{"type":"string","title":"Name"},"stages":{"items":{},"type":"array","title":"Stages"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","project_id","name","stages","status","created_at","updated_at"],"title":"ApprovalWorkflowResponse"},"ApprovedClip":{"properties":{"clip_id":{"type":"string","maxLength":80,"minLength":1,"title":"Clip Id"},"start":{"type":"number","minimum":0.0,"title":"Start"},"end":{"type":"number","exclusiveMinimum":0.0,"title":"End"},"transcript":{"type":"string","maxLength":20000,"minLength":1,"title":"Transcript"},"output_format":{"type":"string","enum":["9:16","1:1","16:9"],"title":"Output Format","default":"9:16"},"caption_style":{"type":"string","enum":["clean","bold","minimal"],"title":"Caption Style","default":"clean"},"focal_x":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Focal X","default":0.5},"focal_y":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Focal Y","default":0.5}},"type":"object","required":["clip_id","start","end","transcript"],"title":"ApprovedClip"},"AssetBulkDeleteRequest":{"properties":{"asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"minItems":1,"title":"Asset Ids"}},"type":"object","required":["asset_ids"],"title":"AssetBulkDeleteRequest"},"AssetBulkUpdateRequest":{"properties":{"asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"minItems":1,"title":"Asset Ids"},"tags":{"anyOf":[{"$ref":"#/components/schemas/AssetBulkUpdateTags"},{"type":"null"}]},"is_favorite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Favorite"},"review_status":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Review Status"}},"type":"object","required":["asset_ids"],"title":"AssetBulkUpdateRequest"},"AssetBulkUpdateTags":{"properties":{"add":{"items":{"type":"string"},"type":"array","title":"Add"},"remove":{"items":{"type":"string"},"type":"array","title":"Remove"},"set":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Set"}},"type":"object","title":"AssetBulkUpdateTags"},"AssetInput":{"properties":{"asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Asset Id"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"base64_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base64 Data"}},"type":"object","title":"AssetInput"},"AssetKind":{"type":"string","enum":["character","character_state","location","prop","voice","style_look","plate_reference"],"title":"AssetKind"},"AssetLineageResponse":{"properties":{"asset_id":{"type":"string","format":"uuid","title":"Asset Id"},"lineage_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lineage Group Id"},"parent_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Asset Id"},"parent_asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Parent Asset Ids"},"child_asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Child Asset Ids"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["asset_id"],"title":"AssetLineageResponse"},"AssetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"parent_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Asset Id"},"lineage_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lineage Group Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"type":{"type":"string","title":"Type"},"status":{"type":"string","title":"Status"},"url":{"type":"string","title":"Url"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"metadata_json":{"type":"object","title":"Metadata Json"},"tags":{"items":{},"type":"array","title":"Tags"},"is_favorite":{"type":"boolean","title":"Is Favorite"},"review_status":{"type":"string","title":"Review Status"},"prompt_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Text"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"duration_sec":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"title":"Duration Sec"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"provider_chain":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Provider Chain"},"postprocess_summary":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Postprocess Summary"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","type","status","url","metadata_json","tags","is_favorite","review_status","created_at"],"title":"AssetResponse"},"AssetShareLinkCreateRequest":{"properties":{"expires_in_seconds":{"anyOf":[{"type":"integer","maximum":604800.0,"minimum":60.0},{"type":"null"}],"title":"Expires In Seconds","default":86400},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","title":"AssetShareLinkCreateRequest"},"AssetShareLinkResponse":{"properties":{"share_id":{"type":"string","format":"uuid","title":"Share Id"},"asset_id":{"type":"string","format":"uuid","title":"Asset Id"},"token":{"type":"string","title":"Token"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"share_url":{"type":"string","title":"Share Url"}},"type":"object","required":["share_id","asset_id","token","permissions","share_url"],"title":"AssetShareLinkResponse"},"AssetUpdateRequest":{"properties":{"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"is_favorite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Favorite"},"review_status":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Review Status"}},"type":"object","title":"AssetUpdateRequest"},"AuditLogResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"actor_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor User Id"},"action":{"type":"string","title":"Action"},"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"},"metadata_json":{"type":"object","title":"Metadata Json"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","action","resource_type","metadata_json","created_at","updated_at"],"title":"AuditLogResponse"},"AutoEnhanceRequest":{"properties":{"image":{"$ref":"#/components/schemas/AssetInput"},"force":{"type":"boolean","title":"Force","default":false},"skip_if_score_above":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Skip If Score Above","default":85.0}},"type":"object","required":["image"],"title":"AutoEnhanceRequest"},"BatchCounts":{"properties":{"total":{"type":"integer","title":"Total","default":0},"queued":{"type":"integer","title":"Queued","default":0},"processing":{"type":"integer","title":"Processing","default":0},"completed":{"type":"integer","title":"Completed","default":0},"failed":{"type":"integer","title":"Failed","default":0},"cancelled":{"type":"integer","title":"Cancelled","default":0}},"type":"object","title":"BatchCounts"},"BatchGenerateRequest":{"properties":{"template_id":{"type":"string","format":"uuid","title":"Template Id"},"model":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Model"},"aspect_ratio":{"anyOf":[{"type":"string","pattern":"^\\d+:\\d+$"},{"type":"null"}],"title":"Aspect Ratio"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"platform_variants":{"type":"boolean","title":"Platform Variants","default":false},"items":{"items":{"$ref":"#/components/schemas/TemplateBatchItemRequest"},"type":"array","maxItems":50,"minItems":1,"title":"Items"}},"type":"object","required":["template_id","items"],"title":"BatchGenerateRequest"},"BatchJobsResponse":{"properties":{"batch":{"$ref":"#/components/schemas/BatchResponse"},"jobs":{"items":{"$ref":"#/components/schemas/JobResponse"},"type":"array","title":"Jobs"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["batch","jobs","total","limit","offset"],"title":"BatchJobsResponse"},"BatchListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BatchResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"BatchListResponse"},"BatchManifestItem":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"status":{"type":"string","title":"Status"},"result_urls":{"items":{"type":"string"},"type":"array","title":"Result Urls"},"asset_ids":{"items":{"type":"string"},"type":"array","title":"Asset Ids"},"download_urls":{"items":{"type":"string"},"type":"array","title":"Download Urls"},"preview_urls":{"items":{"type":"string"},"type":"array","title":"Preview Urls"},"thumbnail_urls":{"items":{"type":"string"},"type":"array","title":"Thumbnail Urls"}},"type":"object","required":["job_id","status"],"title":"BatchManifestItem"},"BatchManifestResponse":{"properties":{"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"status":{"type":"string","title":"Status"},"item_count":{"type":"integer","title":"Item Count"},"items":{"items":{"$ref":"#/components/schemas/BatchManifestItem"},"type":"array","title":"Items"}},"type":"object","required":["batch_id","status","item_count","items"],"title":"BatchManifestResponse"},"BatchQueuedResponse":{"properties":{"batch":{"$ref":"#/components/schemas/BatchResponse"},"jobs":{"items":{"$ref":"#/components/schemas/JobQueuedResponse"},"type":"array","title":"Jobs"}},"type":"object","required":["batch","jobs"],"title":"BatchQueuedResponse"},"BatchResponse":{"properties":{"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"template_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Template Id"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"metadata_json":{"type":"object","title":"Metadata Json"},"counts":{"$ref":"#/components/schemas/BatchCounts"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["batch_id","workspace_id","kind","status","metadata_json","counts","created_at","updated_at"],"title":"BatchResponse"},"BillingModeUpdateRequest":{"properties":{"direct_billing_enabled":{"type":"boolean","title":"Direct Billing Enabled"}},"type":"object","required":["direct_billing_enabled"],"title":"BillingModeUpdateRequest"},"BillingPortalRequest":{"properties":{"return_url":{"type":"string","title":"Return Url"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},"type":"object","required":["return_url"],"title":"BillingPortalRequest"},"BillingStateResponse":{"properties":{"account_plan":{"type":"string","title":"Account Plan"},"account_agency_mode":{"type":"boolean","title":"Account Agency Mode"},"account_stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Stripe Customer Id"},"account_stripe_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Stripe Subscription Id"},"effective_plan":{"type":"string","title":"Effective Plan"},"effective_credits_balance":{"type":"number","title":"Effective Credits Balance"},"effective_credits_monthly_quota":{"type":"number","title":"Effective Credits Monthly Quota"},"credits_remaining":{"type":"number","title":"Credits Remaining"},"workspace_billing_scope":{"type":"string","title":"Workspace Billing Scope"},"workspace_billing_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Billing Plan"},"workspace_direct_billing_enabled":{"type":"boolean","title":"Workspace Direct Billing Enabled"},"workspace_stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Stripe Customer Id"},"workspace_stripe_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Stripe Subscription Id"},"credits_balance":{"type":"number","title":"Credits Balance"},"credits_monthly_quota":{"type":"number","title":"Credits Monthly Quota"},"usage_limits":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Usage Limits"}},"type":"object","required":["account_plan","account_agency_mode","effective_plan","effective_credits_balance","effective_credits_monthly_quota","credits_remaining","workspace_billing_scope","workspace_direct_billing_enabled","credits_balance","credits_monthly_quota"],"title":"BillingStateResponse"},"Body_compat_files_upload_api_files_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"fileType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filetype"},"metadata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["file"],"title":"Body_compat_files_upload_api_files_upload_post"},"Body_compat_files_upload_api_v1_files_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"fileType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filetype"},"metadata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["file"],"title":"Body_compat_files_upload_api_v1_files_upload_post"},"Body_ingest_document_source_api_context_sources_document_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_ingest_document_source_api_context_sources_document_post"},"Body_ingest_document_source_api_v1_context_sources_document_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_ingest_document_source_api_v1_context_sources_document_post"},"Body_upload_asset_api_assets_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"type":{"type":"string","title":"Type"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"prompt_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Text"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"}},"type":"object","required":["file","type"],"title":"Body_upload_asset_api_assets_upload_post"},"Body_upload_asset_api_v1_assets_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"type":{"type":"string","title":"Type"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"prompt_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Text"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"}},"type":"object","required":["file","type"],"title":"Body_upload_asset_api_v1_assets_upload_post"},"BrainCharacterPatch":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"cast_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cast Asset Id"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"visual_rules":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Visual Rules"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"remove":{"type":"boolean","title":"Remove","default":false}},"type":"object","required":["name"],"title":"BrainCharacterPatch"},"BrainPatchRequest":{"properties":{"brain":{"type":"object","title":"Brain"},"characters":{"items":{"$ref":"#/components/schemas/BrainCharacterPatch"},"type":"array","maxItems":24,"title":"Characters"},"facts":{"items":{"type":"string"},"type":"array","maxItems":24,"title":"Facts"}},"type":"object","title":"BrainPatchRequest"},"BrandKitCreateRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"colors":{"type":"object","title":"Colors"},"fonts":{"items":{"type":"string"},"type":"array","title":"Fonts"},"tone_keywords":{"items":{"type":"string"},"type":"array","title":"Tone Keywords"},"negative_keywords":{"items":{"type":"string"},"type":"array","title":"Negative Keywords"},"default_prompt_suffix":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Default Prompt Suffix"},"platform_ratios":{"type":"object","title":"Platform Ratios"},"style_lora_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Style Lora Id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"logo_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Logo Url"}},"type":"object","required":["name"],"title":"BrandKitCreateRequest"},"BrandKitResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"colors":{"type":"object","title":"Colors"},"fonts":{"items":{"type":"string"},"type":"array","title":"Fonts"},"tone_keywords":{"items":{"type":"string"},"type":"array","title":"Tone Keywords"},"negative_keywords":{"items":{"type":"string"},"type":"array","title":"Negative Keywords"},"default_prompt_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Prompt Suffix"},"platform_ratios":{"type":"object","title":"Platform Ratios"},"style_lora_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Style Lora Id"},"is_default":{"type":"boolean","title":"Is Default"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","colors","fonts","tone_keywords","negative_keywords","platform_ratios","is_default","created_at","updated_at"],"title":"BrandKitResponse"},"BrandKitUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"colors":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Colors"},"fonts":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Fonts"},"tone_keywords":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tone Keywords"},"negative_keywords":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Negative Keywords"},"default_prompt_suffix":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Default Prompt Suffix"},"platform_ratios":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Platform Ratios"},"style_lora_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Style Lora Id"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"logo_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Logo Url"}},"type":"object","title":"BrandKitUpdateRequest"},"BrollCutawayRequest":{"properties":{"asset_id":{"type":"string","format":"uuid","title":"Asset Id"},"timeline_start":{"anyOf":[{"type":"number","maximum":3600.0,"minimum":0.0},{"type":"null"}],"title":"Timeline Start"},"duration":{"type":"number","maximum":600.0,"minimum":0.3,"title":"Duration","default":2.5},"source_offset":{"type":"number","maximum":3600.0,"minimum":0.0,"title":"Source Offset","default":0.0}},"type":"object","required":["asset_id"],"title":"BrollCutawayRequest","description":"A b-roll clip shown full-frame over the talking-head spine during a window;\nthe VO keeps playing underneath (the message is not truncated)."},"BrowserCapabilities":{"properties":{"canvas":{"type":"boolean","title":"Canvas"},"offscreen_canvas":{"type":"boolean","title":"Offscreen Canvas"},"create_image_bitmap":{"type":"boolean","title":"Create Image Bitmap"},"fullscreen":{"type":"boolean","title":"Fullscreen"},"wake_lock":{"type":"boolean","title":"Wake Lock"},"webassembly":{"type":"boolean","title":"Webassembly"}},"additionalProperties":false,"type":"object","required":["canvas","offscreen_canvas","create_image_bitmap","fullscreen","wake_lock","webassembly"],"title":"BrowserCapabilities","description":"Small, explicit capability set; never accept a user agent or device identity."},"ChangeEmailRequest":{"properties":{"newEmail":{"type":"string","format":"email","title":"Newemail"},"currentPassword":{"type":"string","title":"Currentpassword"}},"type":"object","required":["newEmail","currentPassword"],"title":"ChangeEmailRequest"},"ChangePasswordRequest":{"properties":{"currentPassword":{"type":"string","title":"Currentpassword"},"newPassword":{"type":"string","maxLength":128,"minLength":8,"title":"Newpassword"}},"type":"object","required":["currentPassword","newPassword"],"title":"ChangePasswordRequest"},"CharacterCreateRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":4000,"minLength":10,"title":"Description"},"reference_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Asset Id"}},"additionalProperties":false,"type":"object","required":["name","description"],"title":"CharacterCreateRequest"},"CheckDomainAccessRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"CheckDomainAccessRequest"},"CheckoutRequest":{"properties":{"target":{"type":"string","title":"Target"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"credit_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Amount"},"success_url":{"type":"string","title":"Success Url"},"cancel_url":{"type":"string","title":"Cancel Url"}},"type":"object","required":["target","success_url","cancel_url"],"title":"CheckoutRequest"},"ClipPlanCreateRequest":{"properties":{"source_asset_id":{"type":"string","format":"uuid","title":"Source Asset Id"},"transcript_segments":{"anyOf":[{"items":{"$ref":"#/components/schemas/ClipTranscriptSegment"},"type":"array","maxItems":10000},{"type":"null"}],"title":"Transcript Segments"},"subtitle_text":{"anyOf":[{"type":"string","maxLength":1000000},{"type":"null"}],"title":"Subtitle Text"},"use_ai_transcription":{"type":"boolean","title":"Use Ai Transcription","default":false},"min_clip_duration_sec":{"type":"number","maximum":90.0,"minimum":5.0,"title":"Min Clip Duration Sec","default":15},"max_clip_duration_sec":{"type":"number","maximum":90.0,"minimum":10.0,"title":"Max Clip Duration Sec","default":60},"max_candidates":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Max Candidates","default":6},"output_format":{"type":"string","enum":["9:16","1:1","16:9"],"title":"Output Format","default":"9:16"},"platform":{"type":"string","enum":["instagram reels","tiktok","youtube shorts","generic"],"title":"Platform","default":"instagram reels"},"caption_style":{"type":"string","enum":["clean","bold","minimal"],"title":"Caption Style","default":"clean"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"}},"type":"object","required":["source_asset_id"],"title":"ClipPlanCreateRequest"},"ClipPlanResponse":{"properties":{"plan_id":{"type":"string","format":"uuid","title":"Plan Id"},"terminal":{"type":"string","title":"Terminal"},"source_asset_id":{"type":"string","format":"uuid","title":"Source Asset Id"},"source":{"type":"object","title":"Source"},"transcript":{"type":"object","title":"Transcript"},"candidates":{"items":{"type":"object"},"type":"array","title":"Candidates"},"capability_snapshot":{"type":"object","title":"Capability Snapshot"},"quote":{"type":"object","title":"Quote"},"privacy":{"type":"object","title":"Privacy"}},"type":"object","required":["plan_id","terminal","source_asset_id","source","transcript","candidates","capability_snapshot","quote","privacy"],"title":"ClipPlanResponse"},"ClipRenderDispatchResponse":{"properties":{"plan_id":{"type":"string","format":"uuid","title":"Plan Id"},"quote_credits":{"type":"integer","title":"Quote Credits"},"dispatches":{"items":{"type":"object"},"type":"array","title":"Dispatches"}},"type":"object","required":["plan_id","quote_credits","dispatches"],"title":"ClipRenderDispatchResponse"},"ClipRenderRequest":{"properties":{"clips":{"items":{"$ref":"#/components/schemas/ApprovedClip"},"type":"array","maxItems":6,"minItems":1,"title":"Clips"},"accept_quote_credits":{"type":"integer","minimum":1.0,"title":"Accept Quote Credits"},"idempotency_key":{"type":"string","maxLength":180,"minLength":8,"title":"Idempotency Key"}},"type":"object","required":["clips","accept_quote_credits","idempotency_key"],"title":"ClipRenderRequest"},"ClipTranscriptSegment":{"properties":{"start":{"type":"number","minimum":0.0,"title":"Start"},"end":{"type":"number","exclusiveMinimum":0.0,"title":"End"},"text":{"type":"string","maxLength":2000,"minLength":1,"title":"Text"},"speaker":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Speaker"}},"type":"object","required":["start","end","text"],"title":"ClipTranscriptSegment"},"ColorizeRequest":{"properties":{"image":{"$ref":"#/components/schemas/AssetInput"}},"type":"object","required":["image"],"title":"ColorizeRequest"},"CommentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Asset Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"parent_comment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Comment Id"},"body":{"type":"string","title":"Body"},"status":{"type":"string","title":"Status"},"pin_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pin Data"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","body","status","created_at","updated_at"],"title":"CommentResponse"},"CompatOrgCreateBody":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","default":"My Organization"}},"type":"object","title":"CompatOrgCreateBody"},"CompatPackBody":{"properties":{"packId":{"type":"string","title":"Packid"},"variables":{"additionalProperties":{"type":"string"},"type":"object","title":"Variables"},"overrides":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Overrides"},"requestId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requestid"}},"additionalProperties":true,"type":"object","required":["packId"],"title":"CompatPackBody","description":"packsService payloads: {packId, variables, overrides?, ...extras}. The\nextras (identity / voiceProfileId / faceProfileId / script / options /\nrequestId) are folded into the generation's overrides so nothing is lost."},"CompatTextGenerateBody":{"properties":{"prompt":{"type":"string","maxLength":12000,"minLength":1,"title":"Prompt"},"tone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Tone"},"length":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Length"}},"type":"object","required":["prompt"],"title":"CompatTextGenerateBody","description":"pages/Create.tsx posts {prompt, tone, length} and reads response.text."},"CompatTwinUpdateBody":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"isDefault":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isdefault"}},"type":"object","title":"CompatTwinUpdateBody","description":"profilesService.updateDigitalTwin sends {name?, isDefault?}. isDefault has\nno backend column; it is accepted and ignored (never clobber metadata_json)."},"ConsentAttestation":{"properties":{"agreed":{"type":"boolean","title":"Agreed","description":"The depicted person consents to this AI likeness."},"consent_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Text","description":"The exact text the user agreed to."}},"type":"object","required":["agreed"],"title":"ConsentAttestation"},"ContextDocumentCreateRequest":{"properties":{"title":{"type":"string","maxLength":500,"minLength":1,"title":"Title"},"body":{"type":"string","maxLength":60000,"minLength":1,"title":"Body"},"scope":{"type":"string","enum":["company","account","contact","user","product"],"title":"Scope","default":"company"},"scope_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Ref"},"source":{"type":"string","enum":["manual","website","upload","crm","slack","research","learned"],"title":"Source","default":"manual"},"source_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ref"},"structured":{"type":"object","title":"Structured"}},"type":"object","required":["title","body"],"title":"ContextDocumentCreateRequest"},"ContextFactCreateRequest":{"properties":{"fact":{"type":"string","maxLength":2000,"minLength":3,"title":"Fact"},"category":{"type":"string","enum":["positioning","icp","product","tone","visual_style","preference","competitor","general"],"title":"Category","default":"general"},"scope":{"type":"string","enum":["company","account","contact","user","product"],"title":"Scope","default":"company"},"scope_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Ref"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence","default":0.8}},"type":"object","required":["fact"],"title":"ContextFactCreateRequest"},"CreateFaceProfileBody":{"properties":{"name":{"type":"string","title":"Name"},"faceImage":{"type":"string","title":"Faceimage"}},"type":"object","required":["name","faceImage"],"title":"CreateFaceProfileBody"},"CreateQualificationRequest":{"properties":{"recipe_id":{"type":"string","maxLength":96,"minLength":8,"title":"Recipe Id"},"source_git_sha":{"type":"string","maxLength":40,"minLength":40,"title":"Source Git Sha"},"hard_budget_usd":{"type":"string","maxLength":32,"minLength":1,"title":"Hard Budget Usd"},"cases":{"items":{"$ref":"#/components/schemas/QualificationCaseRequest"},"type":"array","maxItems":100,"minItems":1,"title":"Cases"}},"type":"object","required":["recipe_id","source_git_sha","hard_budget_usd","cases"],"title":"CreateQualificationRequest"},"CreateVoiceProfileBody":{"properties":{"name":{"type":"string","title":"Name"},"voiceSample":{"type":"string","title":"Voicesample"},"sampleDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sampleduration"}},"type":"object","required":["name","voiceSample"],"title":"CreateVoiceProfileBody"},"CreativePlanRequest":{"properties":{"brief":{"type":"string","maxLength":2000,"minLength":1,"title":"Brief"},"attachments":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Attachments"},"target":{"type":"string","enum":["image","video","auto"],"title":"Target","default":"auto"},"twin_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twin Id"},"clone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clone Id"},"persona_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Id"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"use_clone":{"type":"boolean","title":"Use Clone","default":false}},"type":"object","required":["brief"],"title":"CreativePlanRequest"},"CreditTransactionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"type":{"type":"string","title":"Type"},"amount":{"type":"number","title":"Amount"},"balance_after":{"type":"number","title":"Balance After"},"description":{"type":"string","title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","account_id","type","amount","balance_after","description","created_at","updated_at"],"title":"CreditTransactionResponse"},"CustomPackCreateRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"slug":{"type":"string","maxLength":100,"minLength":3,"title":"Slug"},"description":{"type":"string","maxLength":4000,"minLength":1,"title":"Description"},"category":{"type":"string","maxLength":50,"minLength":2,"title":"Category"},"scenes":{"items":{"$ref":"#/components/schemas/PackSceneDefinition"},"type":"array","maxItems":24,"minItems":1,"title":"Scenes"},"plan_minimum":{"type":"string","maxLength":50,"title":"Plan Minimum","default":"pro"},"thumbnail_url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Thumbnail Url"},"preview_urls":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Preview Urls"},"tags":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Tags"},"credit_cost":{"type":"integer","maximum":500.0,"minimum":0.0,"title":"Credit Cost","default":0}},"type":"object","required":["name","slug","description","category","scenes"],"title":"CustomPackCreateRequest"},"CustomPackUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":4000,"minLength":1},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string","maxLength":50,"minLength":2},{"type":"null"}],"title":"Category"},"scenes":{"anyOf":[{"items":{"$ref":"#/components/schemas/PackSceneDefinition"},"type":"array","maxItems":24,"minItems":1},{"type":"null"}],"title":"Scenes"},"plan_minimum":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Plan Minimum"},"thumbnail_url":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Thumbnail Url"},"preview_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":8},{"type":"null"}],"title":"Preview Urls"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Tags"},"credit_cost":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":0.0},{"type":"null"}],"title":"Credit Cost"},"is_featured":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Featured"}},"type":"object","title":"CustomPackUpdateRequest"},"DeckComposeRequest":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"brief":{"type":"string","maxLength":8000,"minLength":1,"title":"Brief"},"subtitle":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Subtitle"},"slide_count":{"type":"integer","maximum":12.0,"minimum":3.0,"title":"Slide Count","default":6},"slide_images":{"items":{"$ref":"#/components/schemas/AssetInput"},"type":"array","maxItems":8,"title":"Slide Images"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["title","brief"],"title":"DeckComposeRequest"},"DigitalTwinCreateRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"default_language":{"type":"string","maxLength":50,"minLength":1,"title":"Default Language","default":"English"},"avatar_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Avatar Asset Id"},"metadata_json":{"type":"object","title":"Metadata Json"},"faceProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Faceprofileid"},"voiceProfileId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Voiceprofileid"},"isDefault":{"type":"boolean","title":"Isdefault","default":false}},"type":"object","required":["name"],"title":"DigitalTwinCreateRequest"},"DigitalTwinResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"default_language":{"type":"string","title":"Default Language"},"enrollment_type":{"type":"string","title":"Enrollment Type","default":"standard"},"avatar_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Avatar Asset Id"},"lora_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lora Url"},"lora_base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lora Base Model"},"lora_training_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lora Training Steps"},"lora_validation_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lora Validation Score"},"lora_trained_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lora Trained At"},"quick_enrolled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Quick Enrolled At"},"upgraded_to_standard_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Upgraded To Standard At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"metadata_json":{"type":"object","title":"Metadata Json"},"upgraded_to_hd_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Upgraded To Hd At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"face_profile_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Face Profile Id"},"voice_profile_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Voice Profile Id"}},"type":"object","required":["id","workspace_id","name","status","default_language","metadata_json","created_at","updated_at"],"title":"DigitalTwinResponse"},"DigitalTwinUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"status":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Status"},"default_language":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Default Language"},"enrollment_type":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Enrollment Type"},"avatar_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Avatar Asset Id"},"metadata_json":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metadata Json"}},"type":"object","title":"DigitalTwinUpdateRequest"},"DocumentLinkRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":8,"title":"Url"}},"type":"object","required":["url"],"title":"DocumentLinkRequest"},"DomainsBody":{"properties":{"domains":{"items":{"type":"string"},"type":"array","title":"Domains"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"DomainsBody"},"DubRequest":{"properties":{"language":{"type":"string","pattern":"^(en|hi|es|fr|de|bn|gu|kn|pa|te|ur|ja|it|pt|ko|ru|zh)$","title":"Language","description":"The language to dub into."}},"additionalProperties":false,"type":"object","required":["language"],"title":"DubRequest"},"EditFaceSwapJobCreate":{"properties":{"type":{"type":"string","enum":["edit_face_swap"],"const":"edit_face_swap","title":"Type","default":"edit_face_swap"},"params":{"$ref":"#/components/schemas/FaceSwapRequest"}},"type":"object","required":["params"],"title":"EditFaceSwapJobCreate"},"EditInpaintJobCreate":{"properties":{"type":{"type":"string","enum":["edit_inpaint"],"const":"edit_inpaint","title":"Type","default":"edit_inpaint"},"params":{"$ref":"#/components/schemas/InpaintRequest"}},"type":"object","required":["params"],"title":"EditInpaintJobCreate"},"EditOutpaintJobCreate":{"properties":{"type":{"type":"string","enum":["edit_outpaint"],"const":"edit_outpaint","title":"Type","default":"edit_outpaint"},"params":{"$ref":"#/components/schemas/OutpaintRequest"}},"type":"object","required":["params"],"title":"EditOutpaintJobCreate"},"EditRemoveBackgroundJobCreate":{"properties":{"type":{"type":"string","enum":["edit_remove_bg"],"const":"edit_remove_bg","title":"Type","default":"edit_remove_bg"},"params":{"$ref":"#/components/schemas/RemoveBackgroundRequest"}},"type":"object","required":["params"],"title":"EditRemoveBackgroundJobCreate"},"EditRemoveObjectJobCreate":{"properties":{"type":{"type":"string","enum":["edit_remove_object"],"const":"edit_remove_object","title":"Type","default":"edit_remove_object"},"params":{"$ref":"#/components/schemas/RemoveObjectRequest"}},"type":"object","required":["params"],"title":"EditRemoveObjectJobCreate"},"EditSpec":{"properties":{"new_face":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Face"},"persona":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona"},"new_script":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"New Script"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voiceover":{"type":"boolean","title":"Voiceover","default":false},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"captions":{"type":"boolean","title":"Captions","default":false},"caption_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption Style"},"brand":{"type":"boolean","title":"Brand","default":false},"target_length_sec":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Length Sec"}},"type":"object","title":"EditSpec","description":"What the user wants done to a library video. Every field is optional —\nonly the steps that are set run, so 'just add captions' is as valid as a full\nre-face + re-script."},"EditTryOnJobCreate":{"properties":{"type":{"type":"string","enum":["edit_try_on"],"const":"edit_try_on","title":"Type","default":"edit_try_on"},"params":{"$ref":"#/components/schemas/TryOnRequest"}},"type":"object","required":["params"],"title":"EditTryOnJobCreate"},"EnhanceAutoJobCreate":{"properties":{"type":{"type":"string","enum":["enhance_auto"],"const":"enhance_auto","title":"Type","default":"enhance_auto"},"params":{"$ref":"#/components/schemas/AutoEnhanceRequest"}},"type":"object","required":["params"],"title":"EnhanceAutoJobCreate"},"EnhanceColorizeJobCreate":{"properties":{"type":{"type":"string","enum":["enhance_colorize"],"const":"enhance_colorize","title":"Type","default":"enhance_colorize"},"params":{"$ref":"#/components/schemas/ColorizeRequest"}},"type":"object","required":["params"],"title":"EnhanceColorizeJobCreate"},"EnhanceRestoreFaceJobCreate":{"properties":{"type":{"type":"string","enum":["enhance_restore_face"],"const":"enhance_restore_face","title":"Type","default":"enhance_restore_face"},"params":{"$ref":"#/components/schemas/RestoreFaceRequest"}},"type":"object","required":["params"],"title":"EnhanceRestoreFaceJobCreate"},"EnhanceUpscaleJobCreate":{"properties":{"type":{"type":"string","enum":["enhance_upscale"],"const":"enhance_upscale","title":"Type","default":"enhance_upscale"},"params":{"$ref":"#/components/schemas/UpscaleRequest"}},"type":"object","required":["params"],"title":"EnhanceUpscaleJobCreate"},"EnrollmentPrecheckRequest":{"properties":{"frames":{"items":{"$ref":"#/components/schemas/AssetInput"},"type":"array","maxItems":16,"minItems":1,"title":"Frames"}},"type":"object","required":["frames"],"title":"EnrollmentPrecheckRequest","description":"Capture-time QC: send candidate frames before creating/training a twin."},"EpisodeCreateRequest":{"properties":{"premise":{"anyOf":[{"type":"string","maxLength":2000,"minLength":10},{"type":"null"}],"title":"Premise"},"learning_goal":{"anyOf":[{"type":"string","maxLength":500,"minLength":5},{"type":"null"}],"title":"Learning Goal"},"target_seconds":{"type":"integer","maximum":480.0,"minimum":30.0,"title":"Target Seconds","default":60},"script_text":{"anyOf":[{"type":"string","maxLength":20000,"minLength":40},{"type":"null"}],"title":"Script Text"},"template":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Template","description":"An episode template; the studio's own by default."}},"additionalProperties":false,"type":"object","title":"EpisodeCreateRequest"},"FaceSwapRequest":{"properties":{"source_face":{"$ref":"#/components/schemas/AssetInput"},"target_image":{"$ref":"#/components/schemas/AssetInput"},"candidate_source_faces":{"items":{"$ref":"#/components/schemas/AssetInput"},"type":"array","maxItems":5,"title":"Candidate Source Faces"},"swap_all_faces":{"type":"boolean","title":"Swap All Faces","default":false},"restore_face":{"type":"boolean","title":"Restore Face","default":true},"repair_hands":{"type":"boolean","title":"Repair Hands","default":false},"photoreal_required":{"type":"boolean","title":"Photoreal Required","default":true},"consent_confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent Confirmed"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["source_face","target_image"],"title":"FaceSwapRequest"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"FreeToolEventBody":{"properties":{"schema_version":{"type":"integer","enum":[1],"const":1,"title":"Schema Version"},"event_id":{"type":"string","format":"uuid","title":"Event Id"},"tool_id":{"type":"string","enum":["logo-pop","image-compressor","social-media-resizer","creator-teleprompter","thumbnail-visibility-checker","meme-gif-caption-maker","video-to-gif","video-compressor","gif-compressor","subtitle-fixer","ugc-ad-script"],"title":"Tool Id"},"event_name":{"type":"string","enum":["tool_view","upload_started","upload_completed","upload_rejected","result_completed","result_failed","download_started","download_completed","download_failed","email_opt_in_requested","email_opt_in_verified","invite_opt_in_requested","invite_opt_in_verified","source_mode_selected","catalog_search_used","catalog_page_loaded","catalog_select_started","catalog_select_completed","catalog_select_failed"],"title":"Event Name"},"metadata":{"$ref":"#/components/schemas/FreeToolEventMetadata"}},"additionalProperties":false,"type":"object","required":["schema_version","event_id","tool_id","event_name"],"title":"FreeToolEventBody","description":"Strict v1 envelope for all anonymous free-tool funnel events."},"FreeToolEventMetadata":{"properties":{"asset_category":{"anyOf":[{"type":"string","enum":["image","logo","social-image","script","media"]},{"type":"null"}],"title":"Asset Category"},"mime_type":{"anyOf":[{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif","image/svg+xml","video/mp4","video/webm","text/plain","text/markdown","application/zip","unknown"]},{"type":"null"}],"title":"Mime Type"},"format":{"anyOf":[{"type":"string","enum":["png","png-transparent","png-background","jpeg","jpeg-rec2100-pq","webp","gif","mp4","webm","svg","txt","md","zip","unknown"]},{"type":"null"}],"title":"Format"},"size_bucket":{"anyOf":[{"type":"string","enum":["empty","<64KB","64-256KB","256-500KB","500KB-2MB","2-5MB","5-10MB",">10MB"]},{"type":"null"}],"title":"Size Bucket"},"dimension_bucket":{"anyOf":[{"type":"string","enum":["vector","<1MP","1-4MP","4-12MP","12-16MP",">16MP"]},{"type":"null"}],"title":"Dimension Bucket"},"duration_bucket":{"anyOf":[{"type":"string","enum":["<30s","30-60s","1-3m","3-10m",">10m"]},{"type":"null"}],"title":"Duration Bucket"},"elapsed_bucket":{"anyOf":[{"type":"string","enum":["<100ms","100-500ms","500ms-1s","1-2s","2-5s","5-15s",">15s"]},{"type":"null"}],"title":"Elapsed Bucket"},"output_mode":{"anyOf":[{"type":"string","enum":["sdr","hdr","original-size","resize","fill","fit","auto-scroll","script-export","visibility-analysis","platform-crop","comparison-sheet","still","animated-gif","h264-mp4","vp9-webm","vp8-webm"]},{"type":"null"}],"title":"Output Mode"},"preset":{"anyOf":[{"type":"string","enum":["auto-pop","electric","neon","clean-vivid","oled","original"]},{"type":"null"}],"title":"Preset"},"platform_presets":{"anyOf":[{"items":{"type":"string","enum":["linkedin-square","linkedin-landscape","instagram-square","instagram-portrait","instagram-story","facebook-feed","facebook-story","tiktok-vertical","x-landscape"]},"type":"array","maxItems":9},{"type":"null"}],"title":"Platform Presets"},"result_count_bucket":{"anyOf":[{"type":"string","enum":["1","2-4","5-8","9+"]},{"type":"null"}],"title":"Result Count Bucket"},"error_stage":{"anyOf":[{"type":"string","enum":["upload-validation","decode","process","encode","package","download","catalog"]},{"type":"null"}],"title":"Error Stage"},"error_code":{"anyOf":[{"type":"string","enum":["empty-file","unsupported-type","type-mismatch","file-too-large","dimensions-too-large","decode-failed","capability-missing","memory-budget","processing-failed","encoding-failed","packaging-failed","download-failed","session-limit","catalog-unavailable","catalog-import-failed","unknown"]},{"type":"null"}],"title":"Error Code"},"capabilities":{"anyOf":[{"$ref":"#/components/schemas/BrowserCapabilities"},{"type":"null"}]},"media_capability":{"anyOf":[{"type":"string","enum":["canvas-unavailable","h264-mp4","vp9-webm","vp8-webm","gif-still-only"]},{"type":"null"}],"title":"Media Capability"},"fallback_mode":{"anyOf":[{"type":"string","enum":["none","vp9-webm","vp8-webm","animated-gif","still"]},{"type":"null"}],"title":"Fallback Mode"},"source_mode":{"anyOf":[{"type":"string","enum":["upload","meme","gif"]},{"type":"null"}],"title":"Source Mode"},"catalog_kind":{"anyOf":[{"type":"string","enum":["meme","gif"]},{"type":"null"}],"title":"Catalog Kind"},"catalog_category":{"anyOf":[{"type":"string","enum":["all","reaction","humor","celebration","positive","negative","surprise","other"]},{"type":"null"}],"title":"Catalog Category"},"catalog_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Catalog Id"},"page_bucket":{"anyOf":[{"type":"string","enum":["first","2-3","4-10","11+"]},{"type":"null"}],"title":"Page Bucket"},"load_state":{"anyOf":[{"type":"string","enum":["success","failure","empty"]},{"type":"null"}],"title":"Load State"}},"additionalProperties":false,"type":"object","title":"FreeToolEventMetadata","description":"The complete pixel-free vocabulary accepted by the free-tool event stream."},"GHLDeliverRequest":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Completed UseMo job whose output video to deliver."},"field_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Key","description":"GHL custom field key to also set (e.g. 'usemo_video_url'). Optional."},"note_template":{"type":"string","maxLength":2000,"title":"Note Template","description":"Note body. Use {video_url} and {contact_id} placeholders.","default":"🎬 Personalized video from UseMo: {video_url}\n\nGenerated by UseMo Agency."}},"type":"object","required":["job_id"],"title":"GHLDeliverRequest"},"GHLOutreachRequest":{"properties":{"twin_id":{"type":"string","format":"uuid","title":"Twin Id","description":"DigitalTwin UUID to use as presenter."},"script_template":{"type":"string","maxLength":4000,"minLength":10,"title":"Script Template","description":"Script with {{name}}, {{company}}, {{pain_point}} placeholders."},"aspect_ratio":{"type":"string","title":"Aspect Ratio","default":"9:16"},"ghl_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Tag","description":"GHL tag to filter contacts (e.g. 'cold-outreach'). Omit to use inline contacts."},"contacts":{"items":{"type":"object"},"type":"array","title":"Contacts","description":"Inline contacts list [{name, company, email, pain_point}]. Used when ghl_tag is not set."},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","default":50}},"type":"object","required":["twin_id","script_template"],"title":"GHLOutreachRequest"},"GenerateImageJobCreate":{"properties":{"type":{"type":"string","enum":["generate_image"],"const":"generate_image","title":"Type","default":"generate_image"},"params":{"$ref":"#/components/schemas/ImageGenRequest"}},"type":"object","required":["params"],"title":"GenerateImageJobCreate"},"GenerateSpeechBody":{"properties":{"voiceProfileId":{"type":"string","title":"Voiceprofileid"},"text":{"type":"string","title":"Text"},"options":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Options"}},"type":"object","required":["voiceProfileId","text"],"title":"GenerateSpeechBody"},"GenerateTextJobCreate":{"properties":{"type":{"type":"string","enum":["generate_text"],"const":"generate_text","title":"Type","default":"generate_text"},"params":{"$ref":"#/components/schemas/TextGenRequest"}},"type":"object","required":["params"],"title":"GenerateTextJobCreate"},"GenerateVideoJobCreate":{"properties":{"type":{"type":"string","enum":["generate_video"],"const":"generate_video","title":"Type","default":"generate_video"},"params":{"$ref":"#/components/schemas/VideoGenerateRequest"}},"type":"object","required":["params"],"title":"GenerateVideoJobCreate"},"GifFaceSwapRequest":{"properties":{"gif_url":{"type":"string","minLength":1,"format":"uri","title":"Gif Url","description":"GIF to swap face onto."},"source_face_url":{"type":"string","minLength":1,"format":"uri","title":"Source Face Url","description":"Photo with source face."},"consent_confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent Confirmed","description":"Confirm permission to use the depicted adult's likeness."}},"type":"object","required":["gif_url","source_face_url"],"title":"GifFaceSwapRequest"},"GoogleAuthRequest":{"properties":{"credential":{"type":"string","title":"Credential"}},"type":"object","required":["credential"],"title":"GoogleAuthRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HubSpotSourceRequest":{"properties":{"access_token":{"type":"string","maxLength":512,"minLength":20,"title":"Access Token","description":"HubSpot private app token"}},"type":"object","required":["access_token"],"title":"HubSpotSourceRequest"},"ImageGenRequest":{"properties":{"prompt":{"type":"string","maxLength":2000,"minLength":1,"title":"Prompt"},"original_prompt":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Original Prompt"},"negative_prompt":{"type":"string","maxLength":1000,"title":"Negative Prompt","default":"blurry, low quality, distorted, watermark, text"},"model":{"anyOf":[{"type":"string","enum":["flux-dev","sdxl","flux2_flex","flux2_pro"]},{"type":"null"}],"title":"Model"},"width":{"type":"integer","maximum":2048.0,"minimum":256.0,"title":"Width","default":1024},"height":{"type":"integer","maximum":2048.0,"minimum":256.0,"title":"Height","default":1024},"aspect_ratio":{"anyOf":[{"type":"string","pattern":"^\\d+:\\d+$"},{"type":"null"}],"title":"Aspect Ratio"},"num_inference_steps":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Num Inference Steps"},"guidance_scale":{"anyOf":[{"type":"number","maximum":20.0,"minimum":0.0},{"type":"null"}],"title":"Guidance Scale"},"num_images":{"type":"integer","maximum":4.0,"minimum":1.0,"title":"Num Images","default":1},"seed":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Seed"},"twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Twin Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"lora_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lora Id"},"trained_model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Trained Model Id"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"template_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Template Id"},"template_variables":{"type":"object","title":"Template Variables"},"style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style"},"photoreal_required":{"type":"boolean","title":"Photoreal Required","default":true},"allow_model_fallback":{"type":"boolean","title":"Allow Model Fallback","default":false},"reference_image":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}],"description":"General reference image used for SDXL IP-Adapter guidance."},"reference_strength":{"type":"number","maximum":1.0,"minimum":0.1,"title":"Reference Strength","default":0.7},"face_reference":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}],"description":"Reference face image — forces SDXL + IP-Adapter for face-consistent generation"},"control_image":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}],"description":"Optional control image for supported ControlNet modes."},"controlnet_mode":{"anyOf":[{"type":"string","enum":["identity"],"const":"identity"},{"type":"null"}],"title":"Controlnet Mode","description":"Currently supported ControlNet mode for public requests."},"controlnet_conditioning_scale":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.1},{"type":"null"}],"title":"Controlnet Conditioning Scale"},"text_overlay":{"anyOf":[{"$ref":"#/components/schemas/TextOverlaySpec"},{"type":"null"}],"description":"Optional deterministic caption/headline composited AFTER the gated render — the base image is generated text-free and the words are typeset in post, never gambled on legible in-pixel text."}},"type":"object","required":["prompt"],"title":"ImageGenRequest"},"InpaintRequest":{"properties":{"image":{"$ref":"#/components/schemas/AssetInput"},"mask_base64":{"type":"string","title":"Mask Base64"},"prompt":{"type":"string","maxLength":2000,"minLength":1,"title":"Prompt"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["image","mask_base64","prompt"],"title":"InpaintRequest"},"InstructEditRequest":{"properties":{"image":{"$ref":"#/components/schemas/AssetInput"},"instruction":{"type":"string","maxLength":2000,"minLength":3,"title":"Instruction"},"strength":{"type":"number","maximum":0.95,"minimum":0.2,"title":"Strength","default":0.7},"reference_images":{"items":{"$ref":"#/components/schemas/AssetInput"},"type":"array","maxItems":2,"title":"Reference Images"},"negative_prompt":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Negative Prompt"},"seed":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Seed"},"num_inference_steps":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Num Inference Steps"},"true_cfg_scale":{"anyOf":[{"type":"number","maximum":20.0,"exclusiveMinimum":1.0},{"type":"null"}],"title":"True Cfg Scale"},"max_sequence_length":{"anyOf":[{"type":"integer","maximum":1024.0,"minimum":1.0},{"type":"null"}],"title":"Max Sequence Length"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["image","instruction"],"title":"InstructEditRequest"},"InviteBody":{"properties":{"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role","default":"member"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["email"],"title":"InviteBody"},"InviteMemberRequest":{"properties":{"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role","default":"member"}},"type":"object","required":["email"],"title":"InviteMemberRequest"},"InviteRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"workspace_id":{"type":"string","title":"Workspace Id"},"role":{"type":"string","title":"Role","default":"member"}},"type":"object","required":["email","workspace_id"],"title":"InviteRequest"},"JobAssetSummary":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"type":{"type":"string","title":"Type"},"url":{"type":"string","title":"Url"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"duration_sec":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"title":"Duration Sec"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"provider_chain":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Provider Chain"},"postprocess_summary":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Postprocess Summary"},"metadata":{"type":"object","title":"Metadata"}},"type":"object","required":["asset_id","type","url","metadata"],"title":"JobAssetSummary"},"JobDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"type":{"type":"string","title":"Type"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"},"status":{"type":"string","title":"Status"},"progress":{"type":"integer","title":"Progress"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"queue_name":{"type":"string","title":"Queue Name"},"credits_cost":{"type":"number","title":"Credits Cost","default":0},"result_urls":{"items":{"type":"string"},"type":"array","title":"Result Urls","default":[]},"result_assets":{"items":{"$ref":"#/components/schemas/JobAssetSummary"},"type":"array","title":"Result Assets","default":[]},"pipeline_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Used"},"supported_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supported Mode"},"actual_model_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actual Model Used"},"identity_conditioning_applied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Identity Conditioning Applied"},"face_reference_loaded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Face Reference Loaded"},"identity_similarity_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Identity Similarity Score"},"identity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Identity Threshold"},"video_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Tier"},"source_portrait_quality_passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Source Portrait Quality Passed"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"stream":{"$ref":"#/components/schemas/JobStreamInfo"},"params":{"type":"object","title":"Params"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["id","job_id","workspace_id","type","status","progress","queue_name","created_at","updated_at","stream","params"],"title":"JobDetailResponse"},"JobQueuedResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"job_type":{"type":"string","title":"Job Type"},"operation":{"type":"string","title":"Operation"},"status":{"type":"string","title":"Status"},"credits_charged":{"type":"number","title":"Credits Charged"},"estimated_time_sec":{"type":"integer","title":"Estimated Time Sec"},"queue_name":{"type":"string","title":"Queue Name"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"pipeline_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Used"},"supported_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supported Mode"},"notices":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Notices"},"video_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Tier"},"content_routing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Routing"},"content_routing_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Routing Reason"},"subject_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Class"},"subject_class_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Class Reason"},"source_portrait_quality_passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Source Portrait Quality Passed"},"job_path":{"type":"string","title":"Job Path"},"stream":{"$ref":"#/components/schemas/JobStreamInfo"}},"type":"object","required":["job_id","job_type","operation","status","credits_charged","estimated_time_sec","queue_name","job_path","stream"],"title":"JobQueuedResponse"},"JobResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"type":{"type":"string","title":"Type"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"},"status":{"type":"string","title":"Status"},"progress":{"type":"integer","title":"Progress"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"queue_name":{"type":"string","title":"Queue Name"},"credits_cost":{"type":"number","title":"Credits Cost","default":0},"result_urls":{"items":{"type":"string"},"type":"array","title":"Result Urls","default":[]},"result_assets":{"items":{"$ref":"#/components/schemas/JobAssetSummary"},"type":"array","title":"Result Assets","default":[]},"pipeline_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Used"},"supported_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supported Mode"},"actual_model_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actual Model Used"},"identity_conditioning_applied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Identity Conditioning Applied"},"face_reference_loaded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Face Reference Loaded"},"identity_similarity_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Identity Similarity Score"},"identity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Identity Threshold"},"video_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Tier"},"source_portrait_quality_passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Source Portrait Quality Passed"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"stream":{"$ref":"#/components/schemas/JobStreamInfo"}},"type":"object","required":["id","job_id","workspace_id","type","status","progress","queue_name","created_at","updated_at","stream"],"title":"JobResponse"},"JobStreamInfo":{"properties":{"websocket_path":{"type":"string","title":"Websocket Path"},"workspace_channel":{"type":"string","title":"Workspace Channel"},"job_channel":{"type":"string","title":"Job Channel"},"subscribe":{"type":"object","title":"Subscribe"}},"type":"object","required":["websocket_path","workspace_channel","job_channel","subscribe"],"title":"JobStreamInfo"},"JobTypeUsageSummary":{"properties":{"type":{"type":"string","title":"Type"},"total":{"type":"integer","title":"Total"},"completed":{"type":"integer","title":"Completed"},"failed":{"type":"integer","title":"Failed"},"credits_spent":{"type":"number","title":"Credits Spent"}},"type":"object","required":["type","total","completed","failed","credits_spent"],"title":"JobTypeUsageSummary"},"KnowledgeBaseIngestRequest":{"properties":{"title":{"type":"string","maxLength":500,"minLength":1,"title":"Title"},"content":{"anyOf":[{"type":"string","maxLength":60000},{"type":"null"}],"title":"Content"},"sourceUrl":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Sourceurl"},"fetch":{"type":"boolean","title":"Fetch","default":false},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["title"],"title":"KnowledgeBaseIngestRequest"},"LeadCaptureBody":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"source":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Source"},"headline":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Headline"},"artifact_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Artifact Url"}},"additionalProperties":true,"type":"object","required":["email"],"title":"LeadCaptureBody","description":"EmailCaptureModal posts {email, artifact_url, headline, source}."},"LegacyContextRequest":{"properties":{"contextType":{"type":"string","enum":["brand","persona","visual","compliance","text"],"title":"Contexttype"},"contextKey":{"type":"string","maxLength":120,"minLength":1,"title":"Contextkey"},"contextValue":{"type":"object","title":"Contextvalue"},"isActive":{"type":"boolean","title":"Isactive","default":true}},"type":"object","required":["contextType","contextKey","contextValue"],"title":"LegacyContextRequest"},"LoRAResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"source_job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Job Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"base_model":{"type":"string","title":"Base Model"},"status":{"type":"string","title":"Status"},"file_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Path"},"metadata_json":{"type":"object","title":"Metadata Json"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"validation_preview_asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Validation Preview Asset Ids"},"validation_preview_urls":{"items":{"type":"string"},"type":"array","title":"Validation Preview Urls"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","type","base_model","status","metadata_json","created_at","updated_at"],"title":"LoRAResponse"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"},"rememberMe":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rememberme"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"LogoPopAccessRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"captcha_token":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Captcha Token"},"source":{"type":"string","enum":["logo-pop","ugc-ad-script"],"title":"Source","default":"logo-pop"},"attribution":{"anyOf":[{"$ref":"#/components/schemas/LogoPopAttribution"},{"type":"null"}]},"invite_list_opt_in":{"type":"boolean","title":"Invite List Opt In","default":false}},"additionalProperties":false,"type":"object","required":["email"],"title":"LogoPopAccessRequest"},"LogoPopAttribution":{"properties":{"utm_source":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Utm Campaign"},"referrer":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Referrer"}},"additionalProperties":false,"type":"object","title":"LogoPopAttribution"},"LogoPopEventBody":{"properties":{"event_name":{"type":"string","enum":["tool_view","image_uploaded","auto_pop_completed","preset_selected","output_mode_selected","manual_adjustment","social_preview_selected","pop_score_viewed","download_clicked","download_completed","continue_to_usemo_clicked","signup_after_logo_tool"],"title":"Event Name"},"metadata":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metadata"},"grant":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Grant"}},"additionalProperties":false,"type":"object","required":["event_name"],"title":"LogoPopEventBody"},"LongformCharacter":{"properties":{"slug":{"type":"string","pattern":"^[a-zA-Z][a-zA-Z0-9_-]{0,59}$","title":"Slug"},"name":{"type":"string","title":"Name","default":""},"subject_block":{"type":"string","maxLength":4000,"minLength":10,"title":"Subject Block"},"wardrobe_anchor":{"type":"string","maxLength":4000,"title":"Wardrobe Anchor","default":""},"face_detail_block":{"type":"string","maxLength":2000,"title":"Face Detail Block","default":""},"lora_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lora Id"},"lora_trigger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lora Trigger"},"lora_base_scale":{"type":"number","maximum":3.0,"minimum":0.1,"title":"Lora Base Scale","default":1.0}},"type":"object","required":["slug","subject_block"],"title":"LongformCharacter"},"LongformCreateRequest":{"properties":{"script":{"type":"string","maxLength":200000,"minLength":40,"title":"Script"},"characters":{"items":{"$ref":"#/components/schemas/LongformCharacter"},"type":"array","maxItems":12,"title":"Characters"},"budget_usd":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Budget Usd"},"tier_policy":{"type":"object","title":"Tier Policy"},"look_fragments":{"type":"string","maxLength":4000,"title":"Look Fragments","default":""},"dry_run":{"type":"boolean","title":"Dry Run","default":false},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"max_shot_attempts":{"anyOf":[{"type":"integer","maximum":4.0,"minimum":1.0},{"type":"null"}],"title":"Max Shot Attempts"},"target_shot_count":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Target Shot Count"},"min_accept_ratio":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Min Accept Ratio"},"production_registry":{"anyOf":[{"$ref":"#/components/schemas/LongformProductionRegistry"},{"type":"null"}]},"narrator_voice_stable_id":{"anyOf":[{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Narrator Voice Stable Id"},"narrator_twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Narrator Twin Id"},"language":{"anyOf":[{"type":"string","maxLength":32,"minLength":2},{"type":"null"}],"title":"Language"},"stage4_evaluation":{"type":"boolean","title":"Stage4 Evaluation","default":false},"stage4_twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Stage4 Twin Id"},"stage4_shot_count":{"anyOf":[{"type":"integer","maximum":4.0,"minimum":1.0},{"type":"null"}],"title":"Stage4 Shot Count"},"stage4_media_sha":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{40}$"},{"type":"null"}],"title":"Stage4 Media Sha"},"stage4_i2v_backend":{"anyOf":[{"type":"string","enum":["owned_wan22","seedance25"]},{"type":"null"}],"title":"Stage4 I2V Backend"},"qualification_execution_authority":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Qualification Execution Authority"}},"type":"object","required":["script","budget_usd"],"title":"LongformCreateRequest"},"LongformProductionRegistry":{"properties":{"schema_version":{"type":"integer","enum":[1],"const":1,"title":"Schema Version","default":1},"version":{"type":"string","maxLength":64,"minLength":1,"title":"Version"},"assets":{"items":{"$ref":"#/components/schemas/LongformRegisteredAsset"},"type":"array","maxItems":128,"minItems":1,"title":"Assets"}},"additionalProperties":false,"type":"object","required":["version","assets"],"title":"LongformProductionRegistry","description":"Optional immutable project snapshot; URLs are deliberately not fields."},"LongformRegisteredAsset":{"properties":{"stable_id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$","title":"Stable Id"},"kind":{"$ref":"#/components/schemas/AssetKind"},"asset_id":{"type":"string","format":"uuid","title":"Asset Id"},"label":{"type":"string","maxLength":160,"minLength":1,"title":"Label"},"description":{"type":"string","maxLength":1200,"title":"Description","default":""},"tags":{"items":{"type":"string"},"type":"array","maxItems":16,"title":"Tags"},"parent_id":{"anyOf":[{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},{"type":"null"}],"title":"Parent Id"},"character_slug":{"anyOf":[{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,59}$"},{"type":"null"}],"title":"Character Slug"}},"additionalProperties":false,"type":"object","required":["stable_id","kind","asset_id","label"],"title":"LongformRegisteredAsset","description":"Strict API projection of one frozen workspace Asset reference."},"LongformResumeRequest":{"properties":{"budget_usd":{"anyOf":[{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Budget Usd"}},"type":"object","title":"LongformResumeRequest"},"MagicLinkRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"captchaToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captchatoken"}},"type":"object","required":["email"],"title":"MagicLinkRequest"},"McpConsentAuthorizeRequest":{"properties":{"txn":{"type":"string","maxLength":256,"minLength":8,"title":"Txn"},"workspace_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Workspace Id"}},"type":"object","required":["txn"],"title":"McpConsentAuthorizeRequest"},"MemeSwapRequest":{"properties":{"source_face_url":{"type":"string","minLength":1,"format":"uri","title":"Source Face Url","description":"Photo with face to swap in."},"meme_template_url":{"type":"string","minLength":1,"format":"uri","title":"Meme Template Url","description":"Meme image to swap face onto."},"meme_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meme Name","description":"Known meme format (e.g. 'Drake Pointing') — enables brand-voiced auto-wit caption."},"face_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Face Identity","description":"Who the swapped-in face is (e.g. 'a SaaS founder') — sharpens the caption."},"caption":{"type":"boolean","title":"Caption","description":"Auto-generate a brand-voiced meme caption when meme_name is known.","default":true},"target_face_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Face Index","description":"For multi-face memes: which face to swap, ordered left-to-right (0-based). Default: the main face."},"swap_all_faces":{"type":"boolean","title":"Swap All Faces","description":"Swap every detected face with the source face.","default":false},"consent_confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent Confirmed","description":"Confirm permission to use the depicted adult's likeness."},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"}},"type":"object","required":["source_face_url","meme_template_url"],"title":"MemeSwapRequest"},"MintInfluencerRequest":{"properties":{"description":{"type":"string","maxLength":600,"minLength":4,"title":"Description","description":"Describe the influencer in plain words (age, look, vibe)."},"name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Name","description":"Optional display name."},"niche":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Niche","description":"Optional niche/topic."}},"type":"object","required":["description"],"title":"MintInfluencerRequest"},"OneShotEnrollRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"video":{"$ref":"#/components/schemas/AssetInput"},"default_language":{"type":"string","maxLength":10,"title":"Default Language","default":"en"}},"type":"object","required":["name","video"],"title":"OneShotEnrollRequest","description":"Single selfie video in, ready twin out (frames + voice reference)."},"OrgUpdateBody":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"}},"type":"object","title":"OrgUpdateBody"},"OutpaintRequest":{"properties":{"image":{"$ref":"#/components/schemas/AssetInput"},"prompt":{"type":"string","maxLength":2000,"minLength":1,"title":"Prompt"},"target_ratio":{"type":"string","pattern":"^\\d+:\\d+$","title":"Target Ratio"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["image","prompt","target_ratio"],"title":"OutpaintRequest"},"OutreachBatchRequest":{"properties":{"script_template":{"type":"string","maxLength":4000,"minLength":20,"title":"Script Template"},"contacts":{"items":{"$ref":"#/components/schemas/OutreachContact"},"type":"array","maxItems":50,"minItems":1,"title":"Contacts"},"twin_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twin Id"},"broll_prompts":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Broll Prompts"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"title":"Aspect Ratio","default":"16:9"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"use_context":{"type":"boolean","title":"Use Context","default":true}},"type":"object","required":["script_template","contacts"],"title":"OutreachBatchRequest"},"OutreachContact":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"company":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company"},"pain_point":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Pain Point"},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"}},"type":"object","required":["name"],"title":"OutreachContact"},"PackDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"category":{"type":"string","title":"Category"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"scene_count":{"type":"integer","title":"Scene Count"},"credit_cost":{"type":"integer","title":"Credit Cost"},"plan_minimum":{"type":"string","title":"Plan Minimum"},"avg_rating":{"type":"number","title":"Avg Rating"},"is_featured":{"type":"boolean","title":"Is Featured"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"description":{"type":"string","title":"Description"},"scenes":{"items":{"type":"object"},"type":"array","title":"Scenes"},"preview_urls":{"items":{"type":"string"},"type":"array","title":"Preview Urls"},"is_system":{"type":"boolean","title":"Is System"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}},"type":"object","required":["id","name","slug","category","scene_count","credit_cost","plan_minimum","avg_rating","is_featured","description","is_system"],"title":"PackDetailResponse"},"PackGenerateQueuedResponse":{"properties":{"generation_id":{"type":"string","format":"uuid","title":"Generation Id"},"job":{"$ref":"#/components/schemas/JobQueuedResponse"}},"type":"object","required":["generation_id","job"],"title":"PackGenerateQueuedResponse"},"PackGenerateRequest":{"properties":{"twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Twin Id"},"face_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Face Image Url"},"photoreal_required":{"type":"boolean","title":"Photoreal Required","default":true},"overrides":{"additionalProperties":{"type":"object"},"type":"object","title":"Overrides"}},"type":"object","title":"PackGenerateRequest"},"PackGenerationStatusResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"total_scenes":{"type":"integer","title":"Total Scenes"},"completed_scenes":{"type":"integer","title":"Completed Scenes"},"failed_scenes":{"type":"integer","title":"Failed Scenes"},"scene_results":{"items":{"type":"object"},"type":"array","title":"Scene Results"},"credits_charged":{"type":"integer","title":"Credits Charged"},"pack_id":{"type":"string","format":"uuid","title":"Pack Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Twin Id"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","status","total_scenes","completed_scenes","failed_scenes","credits_charged","pack_id","workspace_id","created_at"],"title":"PackGenerationStatusResponse"},"PackListResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"category":{"type":"string","title":"Category"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"scene_count":{"type":"integer","title":"Scene Count"},"credit_cost":{"type":"integer","title":"Credit Cost"},"plan_minimum":{"type":"string","title":"Plan Minimum"},"avg_rating":{"type":"number","title":"Avg Rating"},"is_featured":{"type":"boolean","title":"Is Featured"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["id","name","slug","category","scene_count","credit_cost","plan_minimum","avg_rating","is_featured"],"title":"PackListResponse"},"PackRateRequest":{"properties":{"rating":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Rating"}},"type":"object","required":["rating"],"title":"PackRateRequest"},"PackRequest":{"properties":{"description":{"anyOf":[{"type":"string","maxLength":4000,"minLength":10},{"type":"null"}],"title":"Description"},"reference_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reference Asset Id"}},"additionalProperties":false,"type":"object","title":"PackRequest"},"PackSceneDefinition":{"properties":{"scene_id":{"type":"string","maxLength":100,"minLength":1,"title":"Scene Id"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"prompt_template":{"type":"string","maxLength":4000,"minLength":1,"title":"Prompt Template"},"negative_prompt":{"type":"string","maxLength":2000,"title":"Negative Prompt","default":""},"style_preset":{"type":"string","maxLength":100,"title":"Style Preset","default":"photo_realistic"},"pose_reference":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Pose Reference"},"background":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Background"},"aspect_ratio":{"type":"string","pattern":"^\\d+:\\d+$","title":"Aspect Ratio","default":"1:1"},"cfg_scale":{"type":"number","maximum":9.0,"minimum":1.0,"title":"Cfg Scale","default":7.5},"steps":{"type":"integer","maximum":60.0,"minimum":30.0,"title":"Steps","default":45},"face_conditioning_weight":{"type":"number","maximum":0.9,"minimum":0.5,"title":"Face Conditioning Weight","default":0.7},"clothing_prompt":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Clothing Prompt"},"lighting":{"type":"string","maxLength":50,"title":"Lighting","default":"studio"}},"type":"object","required":["scene_id","name","prompt_template"],"title":"PackSceneDefinition"},"PersonaCreateRequest":{"properties":{"mode":{"type":"string","title":"Mode","description":"twin | synthetic"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"reference_asset_ids":{"items":{"type":"string"},"type":"array","title":"Reference Asset Ids","description":"10-20 source image asset ids"},"default_language":{"type":"string","title":"Default Language","default":"English"},"base_model":{"type":"string","title":"Base Model","default":"flux"},"consent":{"anyOf":[{"$ref":"#/components/schemas/ConsentAttestation"},{"type":"null"}]}},"type":"object","required":["mode","name"],"title":"PersonaCreateRequest"},"PersonaPhotoCloneRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"asset_id":{"type":"string","title":"Asset Id","description":"Primary front-facing portrait image asset ID."},"additional_asset_ids":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Additional Asset Ids","description":"Optional additional angle image asset IDs (left side, right side, chin up, etc.)."},"pose_assets":{"additionalProperties":{"type":"string"},"type":"object","title":"Pose Assets","description":"Optional angle map, e.g. {'front': id1, 'left_side': id2, 'right_side': id3, 'chin_up': id4}."},"consent":{"type":"boolean","title":"Consent","description":"The depicted person consents to this AI likeness (must be true)."},"gender":{"anyOf":[{"type":"string","enum":["female","male"]},{"type":"null"}],"title":"Gender","description":"Wardrobe for the premiere stills and clips. Omit to keep it unspecified."}},"type":"object","required":["name","asset_id","consent"],"title":"PersonaPhotoCloneRequest","description":"Clone a persona from one or more consented photos (Apple Face ID–style multi-angle onboarding).\n\nSupports both:\n  - 1-photo quick clone (`asset_id` = front portrait)\n  - 4-pose Face ID onboarding (`asset_id` = front portrait + `pose_assets` / `additional_asset_ids`\n    for `front`, `left_side`, `right_side`, and `chin_up` poses).\n\nThe face embedding is ALWAYS computed server-side by the license-resolved\nAuraFace embedder (Apache-2.0) inside the ``persona_photo_clone`` worker —\nthis request deliberately has no embedding field, and none would be accepted."},"PersonaPitchRequest":{"properties":{"prospect_name":{"type":"string","maxLength":120,"minLength":1,"title":"Prospect Name"},"lines":{"items":{"type":"string"},"type":"array","maxItems":6,"minItems":1,"title":"Lines"},"product_logo_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Logo Asset Id"},"prospect_logo_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Logo Asset Id"},"product_brand":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Product Brand"},"prospects":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":100},{"type":"null"}],"title":"Prospects"},"personalization_mode":{"type":"string","enum":["logo_and_visual_pill","spoken_name_splice"],"title":"Personalization Mode","default":"logo_and_visual_pill"},"layout_mode":{"type":"string","enum":["fullscreen_webcam","loom_website_bubble","loom_cutaway_hybrid"],"title":"Layout Mode","default":"fullscreen_webcam"},"apply_realism_pass":{"type":"boolean","title":"Apply Realism Pass","default":true},"aspect_ratio":{"type":"string","enum":["16:9","9:16"],"title":"Aspect Ratio","default":"16:9"}},"type":"object","required":["prospect_name","lines"],"title":"PersonaPitchRequest","description":"A prospect pitch from a ready clone: their name, the lines, and uploaded or auto-resolved logos."},"PersonaResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"mode":{"type":"string","title":"Mode"},"status":{"type":"string","title":"Status"},"lora_ready":{"type":"boolean","title":"Lora Ready"},"lora_validation_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lora Validation Score"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"avatar_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Asset Id"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"has_voice":{"type":"boolean","title":"Has Voice","default":false},"avatar_activation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Activation Status"},"avatar_product_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Product Status"},"can_speak":{"type":"boolean","title":"Can Speak","default":false}},"type":"object","required":["id","name","mode","status","lora_ready"],"title":"PersonaResponse"},"PersonaShotsRequest":{"properties":{"brief":{"type":"string","maxLength":2000,"minLength":1,"title":"Brief"},"n":{"type":"integer","maximum":4.0,"minimum":1.0,"title":"N","default":1},"aspect":{"anyOf":[{"type":"string","maxLength":10,"pattern":"^\\d+:\\d+$"},{"type":"null"}],"title":"Aspect"}},"type":"object","required":["brief"],"title":"PersonaShotsRequest","description":"Full-body v1: identity-locked stills of the persona in a briefed scene."},"PersonaSpeakRequest":{"properties":{"script_segments":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Script Segments"},"script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Script"},"aspect":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Aspect","description":"Advisory aspect hint (renderer default 9:16)."},"captions":{"type":"boolean","title":"Captions","default":true}},"type":"object","title":"PersonaSpeakRequest","description":"Make an existing persona speak. Either ``script_segments`` (one spoken line\nper shot) or a single ``script`` string is required."},"PersonaTrainRequest":{"properties":{"image_asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":40,"title":"Image Asset Ids"},"base_model_preference":{"type":"string","enum":["flux","sdxl","auto"],"title":"Base Model Preference","default":"auto"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","title":"PersonaTrainRequest","description":"Thin wrapper over the existing twin LoRA training door.\n\n``image_asset_ids`` optional — when omitted, the dataset is seeded from the\npersona's stored references (enrollment frames, face-profile refs, avatar)."},"PlanApproveRequest":{"properties":{"version_num":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Version Num"}},"type":"object","title":"PlanApproveRequest"},"PlanAudioRegenerateRequest":{"properties":{"shot_index":{"type":"integer","minimum":0.0,"title":"Shot Index"},"prompt":{"anyOf":[{"type":"string","maxLength":2000,"minLength":2},{"type":"null"}],"title":"Prompt"}},"type":"object","required":["shot_index"],"title":"PlanAudioRegenerateRequest"},"PlanAudioRequest":{"properties":{"shot_indices":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":100},{"type":"null"}],"title":"Shot Indices"},"kinds":{"anyOf":[{"additionalProperties":{"type":"string","enum":["music","sfx"]},"type":"object"},{"type":"null"}],"title":"Kinds"}},"type":"object","title":"PlanAudioRequest"},"PlanAudioWaiveRequest":{"properties":{"shot_index":{"type":"integer","minimum":0.0,"title":"Shot Index"},"reason":{"type":"string","maxLength":500,"title":"Reason","default":""}},"type":"object","required":["shot_index"],"title":"PlanAudioWaiveRequest"},"PlanCaptionPreviewRequest":{"properties":{"spec":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Spec"},"sample_text":{"type":"string","maxLength":200,"title":"Sample Text","default":""},"width":{"type":"integer","maximum":4096.0,"minimum":256.0,"title":"Width","default":1080},"height":{"type":"integer","maximum":4096.0,"minimum":256.0,"title":"Height","default":1920}},"type":"object","title":"PlanCaptionPreviewRequest"},"PlanCreateRequest":{"properties":{"brief":{"type":"string","maxLength":4000,"minLength":1,"title":"Brief"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"target":{"type":"string","enum":["video","image"],"title":"Target","default":"video"},"brand_voice":{"type":"string","maxLength":2000,"title":"Brand Voice","default":""}},"type":"object","required":["brief"],"title":"PlanCreateRequest"},"PlanGraphicPreviewRequest":{"properties":{"shot_index":{"type":"integer","minimum":0.0,"title":"Shot Index"},"spec":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Spec"},"width":{"type":"integer","maximum":4096.0,"minimum":256.0,"title":"Width","default":1080},"height":{"type":"integer","maximum":4096.0,"minimum":256.0,"title":"Height","default":1920}},"type":"object","required":["shot_index"],"title":"PlanGraphicPreviewRequest"},"PlanKeyframeRegenerateRequest":{"properties":{"shot_index":{"type":"integer","minimum":0.0,"title":"Shot Index"},"prompt":{"anyOf":[{"type":"string","maxLength":4000,"minLength":3},{"type":"null"}],"title":"Prompt"}},"type":"object","required":["shot_index"],"title":"PlanKeyframeRegenerateRequest"},"PlanKeyframeWaiveRequest":{"properties":{"shot_index":{"type":"integer","minimum":0.0,"title":"Shot Index"},"reason":{"type":"string","maxLength":500,"title":"Reason","default":""}},"type":"object","required":["shot_index"],"title":"PlanKeyframeWaiveRequest"},"PlanKeyframesRequest":{"properties":{"target":{"anyOf":[{"type":"string","enum":["video","image"]},{"type":"null"}],"title":"Target"},"shot_indices":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":100},{"type":"null"}],"title":"Shot Indices"}},"type":"object","title":"PlanKeyframesRequest"},"PlanReviseRequest":{"properties":{"edits":{"anyOf":[{"items":{"type":"object"},"type":"array","maxItems":50},{"type":"null"}],"title":"Edits"},"instruction":{"anyOf":[{"type":"string","maxLength":2000,"minLength":3},{"type":"null"}],"title":"Instruction"}},"type":"object","title":"PlanReviseRequest"},"PrepareH3QualificationCaseRequest":{"properties":{"source_image_asset_id":{"type":"string","format":"uuid","title":"Source Image Asset Id"},"source_audio_asset_id":{"type":"string","format":"uuid","title":"Source Audio Asset Id"},"case_id":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,95}$","title":"Case Id"},"source_prompt":{"type":"string","maxLength":4000,"minLength":1,"title":"Source Prompt"},"required_dialogue":{"type":"string","maxLength":1000,"minLength":1,"title":"Required Dialogue"},"source_origin":{"type":"string","enum":["usemo_synthetic_generation","licensed_synthetic_fixture"],"title":"Source Origin"},"license_reference":{"type":"string","maxLength":500,"minLength":1,"title":"License Reference"},"syncnet_authority":{"type":"object","title":"Syncnet Authority"}},"type":"object","required":["source_image_asset_id","source_audio_asset_id","case_id","source_prompt","required_dialogue","source_origin","license_reference","syncnet_authority"],"title":"PrepareH3QualificationCaseRequest"},"PrepareWanMotionFixtureRequest":{"properties":{"asset_id":{"type":"string","format":"uuid","title":"Asset Id"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"subject_class":{"type":"string","enum":["human","animal","character"],"title":"Subject Class"},"topology":{"type":"string","enum":["human","quadruped","bird"],"title":"Topology"},"source_origin":{"type":"string","maxLength":120,"minLength":1,"title":"Source Origin"},"license_reference":{"type":"string","maxLength":500,"minLength":1,"title":"License Reference"}},"type":"object","required":["asset_id","name","subject_class","topology","source_origin","license_reference"],"title":"PrepareWanMotionFixtureRequest"},"PrepareWanQualificationCaseRequest":{"properties":{"source_image_asset_id":{"type":"string","format":"uuid","title":"Source Image Asset Id"},"motion_fixture_id":{"type":"string","format":"uuid","title":"Motion Fixture Id"},"case_id":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,95}$","title":"Case Id"},"subject_class":{"type":"string","enum":["human","animal"],"title":"Subject Class"},"source_prompt":{"type":"string","maxLength":4000,"minLength":1,"title":"Source Prompt"},"source_origin":{"type":"string","enum":["usemo_synthetic_generation","licensed_synthetic_fixture"],"title":"Source Origin"},"license_reference":{"type":"string","maxLength":500,"minLength":1,"title":"License Reference"}},"type":"object","required":["source_image_asset_id","motion_fixture_id","case_id","subject_class","source_prompt","source_origin","license_reference"],"title":"PrepareWanQualificationCaseRequest"},"ProductEventMetadata":{"properties":{"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"result_count_bucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Count Bucket"},"focal_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Focal Mode"},"aspect":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aspect"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"additionalProperties":false,"type":"object","title":"ProductEventMetadata","description":"Content-free vocabulary for paid product surfaces."},"ProductEventRequest":{"properties":{"surface":{"type":"string","title":"Surface"},"event":{"type":"string","title":"Event"},"metadata":{"$ref":"#/components/schemas/ProductEventMetadata"}},"additionalProperties":false,"type":"object","required":["surface","event"],"title":"ProductEventRequest"},"ProfilePicPackRequest":{"properties":{"photo_url":{"type":"string","minLength":1,"format":"uri","title":"Photo Url","description":"Source photo to use as face reference."},"styles":{"items":{"type":"string","enum":["studio","outdoor","creative","corporate"]},"type":"array","title":"Styles","description":"Styles to render — one identity-locked headshot per style, in parallel.","default":["studio","outdoor","creative","corporate"]},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"}},"type":"object","required":["photo_url"],"title":"ProfilePicPackRequest"},"ProfilePicRequest":{"properties":{"photo_url":{"type":"string","minLength":1,"format":"uri","title":"Photo Url","description":"Source photo to use as face reference."},"style":{"type":"string","enum":["studio","outdoor","creative","corporate"],"title":"Style","default":"studio"},"background":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background","description":"Background description override (default per style)."},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"}},"type":"object","required":["photo_url"],"title":"ProfilePicRequest"},"ProfileStudioPackRequest":{"properties":{"persona_id":{"type":"string","title":"Persona Id","description":"A TRAINED persona id (from POST /personas with mode=twin+consent, or POST /twins/{id}/lora-train). Its LoRA carries the identity — no per-call photo needed; every style generates a new image that looks like the user."},"styles":{"items":{"type":"string"},"type":"array","title":"Styles","description":"Preset style keys (GET /image/profile-studio/styles lists them)."},"custom_prompts":{"items":{"type":"string"},"type":"array","title":"Custom Prompts","description":"Free-text scenes ('what you want'), e.g. 'sipping coffee in a Paris cafe'. Each becomes one styled portrait."},"images_per_style":{"type":"integer","maximum":8.0,"minimum":1.0,"title":"Images Per Style","description":"Candidates generated per style; the most on-identity one is shipped (best-of-N, capped by plan). Higher = better fidelity, more GPU.","default":4},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"}},"type":"object","required":["persona_id"],"title":"ProfileStudioPackRequest"},"ProjectActivityResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"project_name":{"type":"string","title":"Project Name"},"project_status":{"type":"string","title":"Project Status"},"asset_count":{"type":"integer","title":"Asset Count"},"comment_count":{"type":"integer","title":"Comment Count"},"review_link_count":{"type":"integer","title":"Review Link Count"},"latest_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Asset Id"},"latest_comment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Comment Id"},"latest_review_link_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Review Link Id"}},"type":"object","required":["project_id","project_name","project_status","asset_count","comment_count","review_link_count"],"title":"ProjectActivityResponse"},"ProjectCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"ProjectCreateRequest"},"ProjectResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","name","status","created_at"],"title":"ProjectResponse"},"ProjectUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"ProjectUpdateRequest"},"QualificationCaseRequest":{"properties":{"case_id":{"type":"string","maxLength":96,"minLength":1,"title":"Case Id"},"inputs":{"type":"object","title":"Inputs"}},"type":"object","required":["case_id"],"title":"QualificationCaseRequest"},"RebrandRequest":{"properties":{"scope":{"type":"string","enum":["company","account","contact","user","product"],"title":"Scope","default":"company"},"scope_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Ref"}},"type":"object","title":"RebrandRequest"},"ReelShotRequest":{"properties":{"shot_type":{"type":"string","enum":["avatar_hook","product_showcase","avatar_cta","talking_head"],"title":"Shot Type"},"asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Asset Id"},"timeline_start":{"anyOf":[{"type":"number","maximum":3600.0,"minimum":0.0},{"type":"null"}],"title":"Timeline Start"},"duration":{"type":"number","maximum":600.0,"minimum":1.0,"title":"Duration","default":2.5},"source_offset":{"anyOf":[{"type":"number","maximum":3600.0,"minimum":0.0},{"type":"null"}],"title":"Source Offset"}},"type":"object","required":["shot_type"],"title":"ReelShotRequest"},"RefreshRequest":{"properties":{"refreshToken":{"type":"string","maxLength":2048,"minLength":8,"title":"Refreshtoken"}},"type":"object","required":["refreshToken"],"title":"RefreshRequest"},"RegisterRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"fullName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fullname"},"organizationName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organizationname"},"captchaToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captchatoken"}},"type":"object","required":["email","password"],"title":"RegisterRequest"},"RemixRequest":{"properties":{"library_asset_id":{"type":"string","title":"Library Asset Id"},"edits":{"$ref":"#/components/schemas/EditSpec"}},"type":"object","required":["library_asset_id","edits"],"title":"RemixRequest"},"RemoveBackgroundRequest":{"properties":{"image":{"$ref":"#/components/schemas/AssetInput"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["image"],"title":"RemoveBackgroundRequest"},"RemoveObjectRequest":{"properties":{"image":{"$ref":"#/components/schemas/AssetInput"},"selection_prompt":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Selection Prompt"},"mask_base64":{"type":"string","minLength":8,"title":"Mask Base64"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["image","mask_base64"],"title":"RemoveObjectRequest"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","title":"Token"},"newPassword":{"type":"string","maxLength":128,"minLength":8,"title":"Newpassword"}},"type":"object","required":["token","newPassword"],"title":"ResetPasswordRequest"},"RestoreFaceRequest":{"properties":{"image":{"$ref":"#/components/schemas/AssetInput"}},"type":"object","required":["image"],"title":"RestoreFaceRequest"},"ReviewLinkResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"token":{"type":"string","title":"Token"},"reviewer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Name"},"reviewer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Email"},"permissions":{"type":"object","title":"Permissions"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","project_id","token","permissions","created_at","updated_at"],"title":"ReviewLinkResponse"},"RoleBody":{"properties":{"role":{"type":"string","title":"Role"}},"type":"object","required":["role"],"title":"RoleBody"},"ScriptToVideoRequest":{"properties":{"script":{"type":"string","maxLength":4000,"minLength":20,"title":"Script"},"broll_prompts":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Broll Prompts"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"title":"Aspect Ratio","default":"16:9"},"twin_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twin Id"},"clone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clone Id"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"use_context":{"type":"boolean","title":"Use Context","default":true},"mature_content_undertaking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mature Content Undertaking"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["script"],"title":"ScriptToVideoRequest"},"ScriptUpdateRequest":{"properties":{"script":{"type":"object","title":"Script"}},"additionalProperties":false,"type":"object","required":["script"],"title":"ScriptUpdateRequest"},"SearchRequest":{"properties":{"query":{"type":"string","maxLength":400,"minLength":1,"title":"Query"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"limit":{"type":"integer","maximum":60.0,"minimum":1.0,"title":"Limit","default":24},"original_only":{"type":"boolean","title":"Original Only","default":false},"caption_safe":{"type":"boolean","title":"Caption Safe","default":false}},"type":"object","required":["query"],"title":"SearchRequest"},"SeedRequest":{"properties":{"limit":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":1.0},{"type":"null"}],"title":"Limit","description":"Seed at most N items (None = all)."},"slugs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Slugs","description":"Seed only these slugs (None = all)."}},"type":"object","title":"SeedRequest"},"SeoArticleRequest":{"properties":{"topic":{"type":"string","maxLength":300,"minLength":3,"title":"Topic"},"target_keyword":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Target Keyword"},"audience":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Audience"},"word_count":{"type":"integer","maximum":3000.0,"minimum":400.0,"title":"Word Count","default":1200},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"use_context":{"type":"boolean","title":"Use Context","default":true},"idempotency_key":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["topic"],"title":"SeoArticleRequest"},"SeriesCreateRequest":{"properties":{"title":{"type":"string","maxLength":200,"minLength":2,"title":"Title"},"brief":{"anyOf":[{"type":"string","maxLength":6000,"minLength":20},{"type":"null"}],"title":"Brief"},"language":{"type":"string","pattern":"^(en|hi|es|fr|de|bn|gu|kn|pa|te|ur|ja|it|pt|ko|ru|zh)$","title":"Language","description":"The language the children hear: en, hi, es, fr, de, bn, gu, kn, pa, te, ur, ja, it, pt, ko, ru, zh.","default":"en"},"bible":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Bible"}},"additionalProperties":false,"type":"object","required":["title"],"title":"SeriesCreateRequest"},"SeriesUpdateRequest":{"properties":{"bible":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Bible"},"approve":{"type":"boolean","title":"Approve","default":false},"brief":{"anyOf":[{"type":"string","maxLength":6000,"minLength":20},{"type":"null"}],"title":"Brief"}},"additionalProperties":false,"type":"object","title":"SeriesUpdateRequest"},"ShotRedoRequest":{"properties":{"shots":{"items":{"type":"integer"},"type":"array","maxItems":60,"title":"Shots"},"mode":{"type":"string","enum":["redo","reclip"],"title":"Mode","default":"redo"},"pins":{"additionalProperties":{"type":"integer"},"type":"object","title":"Pins"}},"additionalProperties":false,"type":"object","title":"ShotRedoRequest"},"SignedDownloadRequest":{"properties":{"expected_artifact_digest":{"anyOf":[{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},{"type":"null"}],"title":"Expected Artifact Digest"},"qualification_execution_authority":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Qualification Execution Authority"}},"additionalProperties":false,"type":"object","title":"SignedDownloadRequest","description":"Optional exact-byte and internal qualification authority for export."},"SocialPostComposeRequest":{"properties":{"headline":{"type":"string","maxLength":200,"minLength":1,"title":"Headline"},"subtext":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Subtext"},"cta":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Cta"},"aspect_ratio":{"type":"string","enum":["1:1","16:9","9:16","4:5"],"title":"Aspect Ratio","default":"1:1"},"input_image":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}]},"twin_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twin Id"},"clone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clone Id"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["headline"],"title":"SocialPostComposeRequest"},"StorageUsageResponse":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"storage_used_bytes":{"type":"integer","title":"Storage Used Bytes"},"storage_limit_bytes":{"type":"integer","title":"Storage Limit Bytes"},"storage_used_percent":{"type":"number","title":"Storage Used Percent"},"account_storage_limit_bytes":{"type":"integer","title":"Account Storage Limit Bytes"}},"type":"object","required":["workspace_id","storage_used_bytes","storage_limit_bytes","storage_used_percent","account_storage_limit_bytes"],"title":"StorageUsageResponse"},"SttConsentCreate":{"properties":{"source_asset_id":{"type":"string","format":"uuid","title":"Source Asset Id"},"request_id":{"type":"string","maxLength":180,"minLength":12,"title":"Request Id"},"agreement_version":{"type":"string","maxLength":100,"minLength":1,"title":"Agreement Version"},"agreement_text_hash":{"type":"string","maxLength":64,"minLength":64,"title":"Agreement Text Hash"},"affirmative":{"type":"boolean","title":"Affirmative"},"adult_attested":{"type":"boolean","title":"Adult Attested"},"speaker_rights_attested":{"type":"boolean","title":"Speaker Rights Attested"},"minor_rights_attested":{"type":"boolean","title":"Minor Rights Attested"},"right_to_upload_attested":{"type":"boolean","title":"Right To Upload Attested"},"sensitive_content_acknowledged":{"type":"boolean","title":"Sensitive Content Acknowledged"}},"type":"object","required":["source_asset_id","request_id","agreement_version","agreement_text_hash","affirmative","adult_attested","speaker_rights_attested","minor_rights_attested","right_to_upload_attested","sensitive_content_acknowledged"],"title":"SttConsentCreate"},"SttConsentWithdrawal":{"properties":{"request_id":{"type":"string","maxLength":180,"minLength":12,"title":"Request Id"}},"type":"object","required":["request_id"],"title":"SttConsentWithdrawal"},"SttTranscriptionJobCreate":{"properties":{"source_asset_id":{"type":"string","format":"uuid","title":"Source Asset Id"},"consent_id":{"type":"string","format":"uuid","title":"Consent Id"},"request_id":{"type":"string","maxLength":180,"minLength":12,"title":"Request Id"},"stereo_channel_speakers":{"type":"boolean","title":"Stereo Channel Speakers","default":false},"mono_diarize":{"type":"boolean","title":"Mono Diarize","default":false}},"type":"object","required":["source_asset_id","consent_id","request_id"],"title":"SttTranscriptionJobCreate"},"SubtitleProjectCreate":{"properties":{"name":{"type":"string","maxLength":160,"minLength":1,"title":"Name"},"source_asset_id":{"type":"string","format":"uuid","title":"Source Asset Id"},"subtitle_text":{"type":"string","maxLength":1000000,"minLength":1,"title":"Subtitle Text"},"source_format":{"type":"string","enum":["srt","vtt"],"title":"Source Format"},"style":{"$ref":"#/components/schemas/SubtitleStyle"}},"type":"object","required":["name","source_asset_id","subtitle_text","source_format"],"title":"SubtitleProjectCreate"},"SubtitleRenderRequest":{"properties":{"formats":{"items":{"type":"string","enum":["9:16","1:1","16:9"]},"type":"array","maxItems":3,"minItems":1,"title":"Formats"},"accept_quote_credits":{"type":"integer","minimum":1.0,"title":"Accept Quote Credits"},"idempotency_key":{"type":"string","maxLength":180,"minLength":8,"title":"Idempotency Key"},"template_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Template Id"},"platform":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Platform"},"style":{"anyOf":[{"$ref":"#/components/schemas/SubtitleStyle"},{"type":"null"}]}},"type":"object","required":["formats","accept_quote_credits","idempotency_key"],"title":"SubtitleRenderRequest"},"SubtitleStyle":{"properties":{"font_id":{"type":"string","enum":["inter","ibm-plex-mono","dejavu-sans","noto-sans"],"title":"Font Id","default":"inter"},"font_size":{"type":"integer","maximum":96.0,"minimum":28.0,"title":"Font Size","default":54},"weight":{"type":"integer","enum":[400,700],"title":"Weight","default":700},"line_height":{"type":"number","maximum":1.8,"minimum":0.9,"title":"Line Height","default":1.15},"position":{"type":"string","enum":["top","center","bottom"],"title":"Position","default":"bottom"},"alignment":{"type":"string","enum":["left","center","right"],"title":"Alignment","default":"center"},"fill":{"type":"string","title":"Fill","default":"#ffffff"},"outline_color":{"type":"string","title":"Outline Color","default":"#111827"},"outline_width":{"type":"integer","maximum":8.0,"minimum":0.0,"title":"Outline Width","default":3},"shadow":{"type":"integer","maximum":5.0,"minimum":0.0,"title":"Shadow","default":1},"background_color":{"type":"string","title":"Background Color","default":"#111827"},"background_opacity":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Background Opacity","default":0.5},"margin_horizontal":{"type":"integer","maximum":240.0,"minimum":24.0,"title":"Margin Horizontal","default":80},"safe_zone_percent":{"type":"integer","maximum":15.0,"minimum":5.0,"title":"Safe Zone Percent","default":8}},"type":"object","title":"SubtitleStyle"},"SubtitleTemplateCreate":{"properties":{"name":{"type":"string","maxLength":160,"minLength":1,"title":"Name"},"style":{"$ref":"#/components/schemas/SubtitleStyle"}},"type":"object","required":["name","style"],"title":"SubtitleTemplateCreate"},"SubtitleTemplateUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":160,"minLength":1},{"type":"null"}],"title":"Name"},"style":{"anyOf":[{"$ref":"#/components/schemas/SubtitleStyle"},{"type":"null"}]}},"type":"object","title":"SubtitleTemplateUpdate"},"TeamActivitySummary":{"properties":{"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"jobs_created":{"type":"integer","title":"Jobs Created","default":0},"assets_created":{"type":"integer","title":"Assets Created","default":0},"comments_created":{"type":"integer","title":"Comments Created","default":0},"last_active_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Active At"}},"type":"object","title":"TeamActivitySummary"},"TemplateBatchItemRequest":{"properties":{"variables":{"type":"object","title":"Variables"},"prompt":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Prompt"},"negative_prompt":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Negative Prompt"},"input_image":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}]},"audio_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Audio Asset Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"num_images":{"type":"integer","maximum":8.0,"minimum":1.0,"title":"Num Images","default":1}},"type":"object","title":"TemplateBatchItemRequest"},"TemplateBatchRenderRequest":{"properties":{"model":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Model"},"aspect_ratio":{"anyOf":[{"type":"string","pattern":"^\\d+:\\d+$"},{"type":"null"}],"title":"Aspect Ratio"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"items":{"items":{"$ref":"#/components/schemas/TemplateBatchItemRequest"},"type":"array","maxItems":50,"minItems":1,"title":"Items"}},"type":"object","required":["items"],"title":"TemplateBatchRenderRequest"},"TemplateCreateRequest":{"properties":{"type":{"type":"string","enum":["image","video"],"title":"Type","default":"image"},"category":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Category"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"base_prompt":{"type":"string","minLength":1,"title":"Base Prompt"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt"},"model":{"type":"string","maxLength":50,"minLength":1,"title":"Model"},"aspect_ratio":{"type":"string","pattern":"^\\d+:\\d+$","title":"Aspect Ratio","default":"1:1"},"post_processing":{"items":{"type":"string"},"type":"array","title":"Post Processing"},"variables_schema":{"type":"object","title":"Variables Schema"}},"type":"object","required":["name","base_prompt","model"],"title":"TemplateCreateRequest"},"TemplateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"type":{"type":"string","title":"Type"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"base_prompt":{"type":"string","title":"Base Prompt"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt"},"model":{"type":"string","title":"Model"},"aspect_ratio":{"type":"string","title":"Aspect Ratio"},"post_processing":{"items":{"type":"string"},"type":"array","title":"Post Processing"},"variables_schema":{"type":"object","title":"Variables Schema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","type","name","base_prompt","model","aspect_ratio","post_processing","variables_schema","created_at","updated_at"],"title":"TemplateResponse"},"TemplateUpdateRequest":{"properties":{"type":{"anyOf":[{"type":"string","enum":["image","video"]},{"type":"null"}],"title":"Type"},"category":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Category"},"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"base_prompt":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Base Prompt"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt"},"model":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Model"},"aspect_ratio":{"anyOf":[{"type":"string","pattern":"^\\d+:\\d+$"},{"type":"null"}],"title":"Aspect Ratio"},"post_processing":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Post Processing"},"variables_schema":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Variables Schema"}},"type":"object","title":"TemplateUpdateRequest"},"TestVoiceBody":{"properties":{"testText":{"type":"string","title":"Testtext"}},"type":"object","required":["testText"],"title":"TestVoiceBody"},"TextGenQueuedResponse":{"properties":{"mode":{"type":"string","enum":["queued"],"const":"queued","title":"Mode","default":"queued"},"job":{"$ref":"#/components/schemas/JobQueuedResponse"}},"type":"object","required":["job"],"title":"TextGenQueuedResponse"},"TextGenRequest":{"properties":{"prompt":{"type":"string","maxLength":12000,"minLength":1,"title":"Prompt"},"system_prompt":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"System Prompt"},"max_tokens":{"type":"integer","maximum":4096.0,"minimum":64.0,"title":"Max Tokens","default":800},"temperature":{"type":"number","maximum":2.0,"minimum":0.0,"title":"Temperature","default":0.7},"response_format":{"type":"string","enum":["text","markdown","json"],"title":"Response Format","default":"markdown"},"use_case":{"type":"string","enum":["general","blog","email","deck"],"title":"Use Case","default":"general"},"delivery_mode":{"type":"string","enum":["auto","sync","async"],"title":"Delivery Mode","default":"auto"},"provider":{"type":"string","enum":["auto","groq","openai"],"title":"Provider","default":"auto"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["prompt"],"title":"TextGenRequest"},"TextGenSyncResponse":{"properties":{"mode":{"type":"string","enum":["sync"],"const":"sync","title":"Mode","default":"sync"},"status":{"type":"string","enum":["completed"],"const":"completed","title":"Status","default":"completed"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"asset_id":{"type":"string","format":"uuid","title":"Asset Id"},"asset_url":{"type":"string","title":"Asset Url"},"job_path":{"type":"string","title":"Job Path"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"use_case":{"type":"string","title":"Use Case"},"response_format":{"type":"string","title":"Response Format"},"model":{"type":"string","title":"Model"},"content":{"type":"string","title":"Content"},"usage":{"$ref":"#/components/schemas/TextGenerationUsage"}},"type":"object","required":["job_id","asset_id","asset_url","job_path","use_case","response_format","model","content"],"title":"TextGenSyncResponse"},"TextGenerationUsage":{"properties":{"prompt_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Tokens"},"completion_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Tokens"},"total_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Tokens"}},"type":"object","title":"TextGenerationUsage"},"TextOverlaySpec":{"properties":{"text":{"type":"string","maxLength":200,"minLength":1,"title":"Text"},"position":{"type":"string","enum":["top","bottom","center","top-left","top-right","bottom-left","bottom-right"],"title":"Position","default":"bottom"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","title":"Color","default":"#FFFFFF"},"background":{"type":"string","enum":["scrim","pill","none"],"title":"Background","default":"scrim"},"font_size_pct":{"type":"number","maximum":0.18,"minimum":0.02,"title":"Font Size Pct","default":0.06},"max_width_pct":{"type":"number","maximum":0.98,"minimum":0.3,"title":"Max Width Pct","default":0.86}},"type":"object","required":["text"],"title":"TextOverlaySpec","description":"Deterministic post-render typography — the 'generate clean, composite text\nafter' pattern video's on_screen_text already uses (app/services/library/\ncaptions.py), now available for static images. When set, the base render\nprompt gets an unconditional no-text negative-prompt addition (the model\nnever gambles on legible pixels for this) and the caption is composited\nserver-side onto the gate-passed winner before upload — zero reroll risk,\nzero garbled-text exposure for the words the customer actually cares about."},"TokenBody":{"properties":{"token":{"type":"string","maxLength":4096,"minLength":16,"title":"Token"}},"additionalProperties":false,"type":"object","required":["token"],"title":"TokenBody"},"TokenRequest":{"properties":{"token":{"type":"string","maxLength":256,"minLength":8,"title":"Token"}},"type":"object","required":["token"],"title":"TokenRequest"},"TrackEventRequest":{"properties":{"eventType":{"type":"string","title":"Eventtype","default":""},"eventName":{"type":"string","title":"Eventname","default":""},"metadata":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Metadata"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"}},"type":"object","title":"TrackEventRequest"},"TrainDreamBoothJobCreate":{"properties":{"type":{"type":"string","enum":["train_dreambooth"],"const":"train_dreambooth","title":"Type","default":"train_dreambooth"},"params":{"$ref":"#/components/schemas/TrainDreamBoothRequest"}},"type":"object","required":["params"],"title":"TrainDreamBoothJobCreate"},"TrainDreamBoothRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"base_model":{"type":"string","enum":["sdxl"],"const":"sdxl","title":"Base Model","default":"sdxl"},"images":{"items":{"$ref":"#/components/schemas/AssetInput"},"type":"array","maxItems":20,"minItems":5,"title":"Images"},"subject_token":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Subject Token"},"class_prompt":{"type":"string","maxLength":255,"minLength":1,"title":"Class Prompt","default":"person portrait"},"instance_prompt":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Instance Prompt"},"steps":{"type":"integer","maximum":5000.0,"minimum":200.0,"title":"Steps","default":1200},"learning_rate":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Learning Rate"},"rank":{"type":"integer","maximum":128.0,"minimum":4.0,"title":"Rank","default":16},"batch_size":{"type":"integer","maximum":4.0,"minimum":1.0,"title":"Batch Size","default":1},"guidance_scale":{"type":"number","maximum":20.0,"minimum":0.0,"title":"Guidance Scale","default":5.0},"prior_preservation":{"type":"boolean","title":"Prior Preservation","default":false},"prior_preservation_weight":{"type":"number","maximum":4.0,"minimum":0.0,"title":"Prior Preservation Weight","default":1.0},"class_images":{"anyOf":[{"items":{"$ref":"#/components/schemas/AssetInput"},"type":"array"},{"type":"null"}],"title":"Class Images","description":"Generic class images (no subject in frame). Required when prior_preservation is true."},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["name","images"],"title":"TrainDreamBoothRequest"},"TrainLoRAJobCreate":{"properties":{"type":{"type":"string","enum":["train_lora"],"const":"train_lora","title":"Type","default":"train_lora"},"params":{"$ref":"#/components/schemas/TrainLoRARequest"}},"type":"object","required":["params"],"title":"TrainLoRAJobCreate"},"TrainLoRARequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"subject_type":{"type":"string","enum":["brand_style","person","product"],"title":"Subject Type","default":"brand_style"},"base_model":{"type":"string","enum":["flux","sdxl"],"title":"Base Model","default":"flux"},"images":{"items":{"$ref":"#/components/schemas/AssetInput"},"type":"array","maxItems":50,"title":"Images"},"videos":{"items":{"$ref":"#/components/schemas/AssetInput"},"type":"array","maxItems":10,"title":"Videos"},"video_frames_per_asset":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Video Frames Per Asset","default":6},"subject_token":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Subject Token"},"steps":{"type":"integer","maximum":5000.0,"minimum":100.0,"title":"Steps","default":600},"learning_rate":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Learning Rate"},"rank":{"type":"integer","maximum":128.0,"minimum":4.0,"title":"Rank","default":16},"batch_size":{"type":"integer","maximum":8.0,"minimum":1.0,"title":"Batch Size","default":1},"guidance_scale":{"type":"number","maximum":20.0,"minimum":0.0,"title":"Guidance Scale","default":3.5},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["name"],"title":"TrainLoRARequest"},"TrainingRunResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"type":{"type":"string","title":"Type"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"},"status":{"type":"string","title":"Status"},"progress":{"type":"integer","title":"Progress"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"queue_name":{"type":"string","title":"Queue Name"},"credits_cost":{"type":"number","title":"Credits Cost"},"result_urls":{"items":{"type":"string"},"type":"array","title":"Result Urls","default":[]},"result_assets":{"items":{"$ref":"#/components/schemas/JobAssetSummary"},"type":"array","title":"Result Assets","default":[]},"pipeline_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Used"},"supported_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supported Mode"},"actual_model_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actual Model Used"},"identity_conditioning_applied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Identity Conditioning Applied"},"face_reference_loaded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Face Reference Loaded"},"identity_similarity_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Identity Similarity Score"},"identity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Identity Threshold"},"video_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Tier"},"source_portrait_quality_passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Source Portrait Quality Passed"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"stream":{"$ref":"#/components/schemas/JobStreamInfo"},"params":{"type":"object","title":"Params"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["id","job_id","workspace_id","type","status","progress","queue_name","credits_cost","created_at","updated_at","stream","params"],"title":"TrainingRunResponse"},"TryOnBatchGarmentInput":{"properties":{"garment_image":{"$ref":"#/components/schemas/AssetInput"},"garment_type":{"type":"string","title":"Garment Type","default":"auto"}},"type":"object","required":["garment_image"],"title":"TryOnBatchGarmentInput"},"TryOnBatchRequest":{"properties":{"person_image":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}]},"twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Twin Id"},"garments":{"items":{"$ref":"#/components/schemas/TryOnBatchGarmentInput"},"type":"array","maxItems":12,"minItems":1,"title":"Garments"},"preserve_face":{"type":"boolean","title":"Preserve Face","default":true},"preserve_garment_details":{"type":"boolean","title":"Preserve Garment Details","default":true},"output_resolution":{"type":"string","title":"Output Resolution","default":"1024"},"style_prompt":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Style Prompt"},"seed":{"type":"integer","minimum":0.0,"title":"Seed","default":42},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","title":"TryOnBatchRequest"},"TryOnRequest":{"properties":{"person_image":{"$ref":"#/components/schemas/AssetInput"},"clothing_image":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}]},"garment_image":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}]},"twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Twin Id"},"garment_type":{"type":"string","title":"Garment Type","default":"auto"},"preserve_face":{"type":"boolean","title":"Preserve Face","default":true},"preserve_garment_details":{"type":"boolean","title":"Preserve Garment Details","default":true},"output_resolution":{"type":"string","title":"Output Resolution","default":"1024"},"style_prompt":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Style Prompt"},"seed":{"type":"integer","minimum":0.0,"title":"Seed","default":42},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["person_image"],"title":"TryOnRequest"},"TwinAvatarRenderRequest":{"properties":{"audio_asset_id":{"type":"string","format":"uuid","title":"Audio Asset Id"},"aspect_ratio":{"type":"string","enum":["9:16","1:1","16:9"],"title":"Aspect Ratio","default":"9:16"},"market_country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Market Country","description":"ISO 3166-1 alpha-2 destination market used for provider licensing."},"background_mode":{"type":"string","enum":["clean","transparent","brand"],"title":"Background Mode","default":"clean"},"style_prompt":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Style Prompt"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"motion_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Motion Asset Id"}},"type":"object","required":["audio_asset_id"],"title":"TwinAvatarRenderRequest"},"TwinConsentCreateRequest":{"properties":{"consent_type":{"type":"string","enum":["voice","voice_synthesis","face","avatar_render","content_render","full_twin","commercial_use","ugc_use","synthetic_company_owned"],"title":"Consent Type","default":"full_twin"},"asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Asset Id"},"consent_text":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Consent Text"},"metadata_json":{"type":"object","title":"Metadata Json"}},"type":"object","title":"TwinConsentCreateRequest"},"TwinConsentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"twin_id":{"type":"string","format":"uuid","title":"Twin Id"},"asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Asset Id"},"consent_type":{"type":"string","title":"Consent Type"},"consent_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Text"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"},"verified_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Verified By"},"metadata_json":{"type":"object","title":"Metadata Json"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","twin_id","consent_type","metadata_json","created_at","updated_at"],"title":"TwinConsentResponse"},"TwinContentRenderRequest":{"properties":{"content_type":{"type":"string","enum":["product_video","podcast_clip","reel","tiktok_video"],"title":"Content Type","default":"reel"},"avatar_video_asset_id":{"type":"string","format":"uuid","title":"Avatar Video Asset Id"},"script_text":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Script Text"},"aspect_ratio":{"type":"string","enum":["9:16","1:1","16:9"],"title":"Aspect Ratio","default":"9:16"},"product_asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":12,"title":"Product Asset Ids"},"reel_shots":{"items":{"$ref":"#/components/schemas/ReelShotRequest"},"type":"array","maxItems":8,"title":"Reel Shots"},"cta_text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Cta Text"},"style_prompt":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Style Prompt"},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"captions":{"type":"boolean","title":"Captions","default":true},"hook_text":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Hook Text"},"hook_punch_in":{"type":"boolean","title":"Hook Punch In","default":true},"broll_cutaways":{"items":{"$ref":"#/components/schemas/BrollCutawayRequest"},"type":"array","maxItems":8,"title":"Broll Cutaways"},"music_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Music Asset Id"},"music_gain":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Music Gain"}},"type":"object","required":["avatar_video_asset_id"],"title":"TwinContentRenderRequest"},"TwinFaceEnrollmentRequest":{"properties":{"reference_asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":25,"minItems":1,"title":"Reference Asset Ids"},"thumbnail_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Thumbnail Asset Id"},"embedding_uri":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Embedding Uri"},"quality_score":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Quality Score"},"liveness_score":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Liveness Score"},"strict_identity_validation":{"type":"boolean","title":"Strict Identity Validation","default":false},"metadata_json":{"type":"object","title":"Metadata Json"}},"type":"object","required":["reference_asset_ids"],"title":"TwinFaceEnrollmentRequest"},"TwinFaceProfileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"twin_id":{"type":"string","format":"uuid","title":"Twin Id"},"status":{"type":"string","title":"Status"},"embedding_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Embedding Uri"},"reference_asset_ids":{"items":{},"type":"array","title":"Reference Asset Ids"},"thumbnail_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Thumbnail Asset Id"},"quality_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quality Score"},"liveness_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Liveness Score"},"metadata_json":{"type":"object","title":"Metadata Json"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","twin_id","status","reference_asset_ids","metadata_json","created_at","updated_at"],"title":"TwinFaceProfileResponse"},"TwinLoRAStatusResponse":{"properties":{"status":{"type":"string","enum":["not_trained","training","trained","failed"],"title":"Status"},"lora_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lora Url"},"validation_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Validation Score"},"trained_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trained At"},"base_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model"}},"type":"object","required":["status"],"title":"TwinLoRAStatusResponse"},"TwinLoRATrainRequest":{"properties":{"base_model_preference":{"type":"string","enum":["flux","sdxl","auto"],"title":"Base Model Preference","default":"auto"},"image_asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":40,"title":"Image Asset Ids"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","title":"TwinLoRATrainRequest"},"TwinLoRATrainResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"estimated_minutes":{"type":"integer","title":"Estimated Minutes"},"plan_required":{"type":"string","title":"Plan Required","default":"pro"}},"type":"object","required":["job_id","estimated_minutes"],"title":"TwinLoRATrainResponse"},"TwinQuickEnrollRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"reference_asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":5,"minItems":3,"title":"Reference Asset Ids"},"default_language":{"type":"string","maxLength":50,"minLength":1,"title":"Default Language","default":"English"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"metadata_json":{"type":"object","title":"Metadata Json"}},"type":"object","required":["name","reference_asset_ids"],"title":"TwinQuickEnrollRequest"},"TwinQuickEnrollResponse":{"properties":{"twin_id":{"type":"string","format":"uuid","title":"Twin Id"},"enrollment_type":{"type":"string","enum":["quick"],"const":"quick","title":"Enrollment Type","default":"quick"},"accepted_photos":{"type":"integer","title":"Accepted Photos"},"quality_tier":{"type":"string","title":"Quality Tier"},"sample_job_id":{"type":"string","format":"uuid","title":"Sample Job Id"},"sample_job_path":{"type":"string","title":"Sample Job Path"},"estimated_first_photo_seconds":{"type":"integer","title":"Estimated First Photo Seconds"},"upgrade_recommendation":{"type":"string","title":"Upgrade Recommendation"}},"type":"object","required":["twin_id","accepted_photos","quality_tier","sample_job_id","sample_job_path","estimated_first_photo_seconds","upgrade_recommendation"],"title":"TwinQuickEnrollResponse"},"TwinRenderResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"type":{"type":"string","title":"Type"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"},"status":{"type":"string","title":"Status"},"progress":{"type":"integer","title":"Progress"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"queue_name":{"type":"string","title":"Queue Name"},"credits_cost":{"type":"number","title":"Credits Cost","default":0},"result_urls":{"items":{"type":"string"},"type":"array","title":"Result Urls","default":[]},"result_assets":{"items":{"$ref":"#/components/schemas/JobAssetSummary"},"type":"array","title":"Result Assets","default":[]},"pipeline_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Used"},"supported_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supported Mode"},"actual_model_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actual Model Used"},"identity_conditioning_applied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Identity Conditioning Applied"},"face_reference_loaded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Face Reference Loaded"},"identity_similarity_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Identity Similarity Score"},"identity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Identity Threshold"},"video_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Tier"},"source_portrait_quality_passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Source Portrait Quality Passed"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"stream":{"$ref":"#/components/schemas/JobStreamInfo"},"render_id":{"type":"string","format":"uuid","title":"Render Id"},"twin_id":{"type":"string","format":"uuid","title":"Twin Id"},"render_type":{"type":"string","title":"Render Type"},"metadata_json":{"type":"object","title":"Metadata Json"},"params":{"type":"object","title":"Params"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["id","job_id","workspace_id","type","status","progress","queue_name","created_at","updated_at","stream","render_id","twin_id","render_type","metadata_json","params"],"title":"TwinRenderResponse"},"TwinStyleProfileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"twin_id":{"type":"string","format":"uuid","title":"Twin Id"},"tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone"},"pace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pace"},"persona_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Prompt"},"brand_rules":{"type":"object","title":"Brand Rules"},"cta_rules":{"type":"object","title":"Cta Rules"},"safety_rules":{"type":"object","title":"Safety Rules"},"metadata_json":{"type":"object","title":"Metadata Json"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","twin_id","brand_rules","cta_rules","safety_rules","metadata_json","created_at","updated_at"],"title":"TwinStyleProfileResponse"},"TwinStyleProfileUpsertRequest":{"properties":{"tone":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Tone"},"pace":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Pace"},"persona_prompt":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Persona Prompt"},"brand_rules":{"type":"object","title":"Brand Rules"},"cta_rules":{"type":"object","title":"Cta Rules"},"safety_rules":{"type":"object","title":"Safety Rules"},"metadata_json":{"type":"object","title":"Metadata Json"}},"type":"object","title":"TwinStyleProfileUpsertRequest"},"TwinUpgradeEnrollmentRequest":{"properties":{"reference_asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":25,"minItems":3,"title":"Reference Asset Ids"},"thumbnail_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Thumbnail Asset Id"},"strict_identity_validation":{"type":"boolean","title":"Strict Identity Validation","default":false},"voice_reference_asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":25,"title":"Voice Reference Asset Ids"},"transcript_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transcript Asset Id"},"reference_text":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Reference Text"},"language":{"type":"string","maxLength":50,"minLength":1,"title":"Language","default":"English"},"metadata_json":{"type":"object","title":"Metadata Json"}},"type":"object","required":["reference_asset_ids"],"title":"TwinUpgradeEnrollmentRequest"},"TwinUpgradeEnrollmentResponse":{"properties":{"twin_id":{"type":"string","format":"uuid","title":"Twin Id"},"enrollment_type":{"type":"string","enum":["standard"],"const":"standard","title":"Enrollment Type","default":"standard"},"quality_improvement":{"type":"string","title":"Quality Improvement"},"face_quality_gate":{"type":"string","title":"Face Quality Gate"},"voice_quality_gate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Quality Gate"}},"type":"object","required":["twin_id","quality_improvement","face_quality_gate"],"title":"TwinUpgradeEnrollmentResponse"},"TwinVoiceEnrollmentRequest":{"properties":{"provider":{"type":"string","maxLength":50,"minLength":1,"title":"Provider","default":"qwen"},"model_name":{"type":"string","maxLength":255,"minLength":1,"title":"Model Name","default":"Qwen/Qwen3-TTS-12Hz-1.7B-Base"},"reference_asset_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":25,"minItems":1,"title":"Reference Asset Ids"},"transcript_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transcript Asset Id"},"reference_text":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Reference Text"},"prompt_artifact_uri":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Prompt Artifact Uri"},"quality_score":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Quality Score"},"language":{"type":"string","maxLength":50,"minLength":1,"title":"Language","default":"English"},"metadata_json":{"type":"object","title":"Metadata Json"}},"type":"object","required":["reference_asset_ids"],"title":"TwinVoiceEnrollmentRequest"},"TwinVoiceProfileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"twin_id":{"type":"string","format":"uuid","title":"Twin Id"},"provider":{"type":"string","title":"Provider"},"model_name":{"type":"string","title":"Model Name"},"prompt_artifact_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Artifact Uri"},"reference_asset_ids":{"items":{},"type":"array","title":"Reference Asset Ids"},"transcript_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Transcript Asset Id"},"reference_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Text"},"quality_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quality Score"},"language":{"type":"string","title":"Language"},"status":{"type":"string","title":"Status"},"metadata_json":{"type":"object","title":"Metadata Json"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","twin_id","provider","model_name","reference_asset_ids","language","status","metadata_json","created_at","updated_at"],"title":"TwinVoiceProfileResponse"},"TwinVoiceSynthesizeRequest":{"properties":{"script_text":{"type":"string","maxLength":20000,"minLength":1,"title":"Script Text"},"language":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Language"},"style_prompt":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Style Prompt"},"tone":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Tone"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["script_text"],"title":"TwinVoiceSynthesizeRequest"},"UnifiedEnrollRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"tier":{"type":"string","enum":["instant","standard","hd"],"title":"Tier"},"photo":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}]},"voice_sample":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}]},"video":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}]},"default_language":{"type":"string","maxLength":10,"title":"Default Language","default":"en"}},"type":"object","required":["name","tier"],"title":"UnifiedEnrollRequest","description":"Progressive enrollment: instant (photo + optional voice), standard\n(30-90s video), hd (2-min guided video + LoRA recommendation)."},"UpdateMeRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","title":"UpdateMeRequest"},"UpdateProfileNameBody":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"UpdateProfileNameBody"},"UpscaleRequest":{"properties":{"image":{"$ref":"#/components/schemas/AssetInput"},"factor":{"type":"integer","maximum":4.0,"minimum":2.0,"title":"Factor","default":4},"target_resolution":{"anyOf":[{"type":"integer","maximum":8192.0,"minimum":1024.0},{"type":"null"}],"title":"Target Resolution"},"face_aware":{"type":"boolean","title":"Face Aware","default":true}},"type":"object","required":["image"],"title":"UpscaleRequest"},"UsageResponse":{"properties":{"billing_scope":{"type":"string","title":"Billing Scope"},"credits_balance":{"type":"number","title":"Credits Balance"},"credits_used_this_period":{"type":"number","title":"Credits Used This Period"},"credits_quota":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Credits Quota"},"workspace_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Workspace Budget"},"workspace_used":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Workspace Used"},"twins_allowed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Twins Allowed"},"twins_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Twins Used"},"voice_generations_allowed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Voice Generations Allowed"},"voice_generations_used":{"type":"integer","title":"Voice Generations Used"},"avatar_renders_allowed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avatar Renders Allowed"},"avatar_renders_used":{"type":"integer","title":"Avatar Renders Used"},"reel_renders_allowed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reel Renders Allowed"},"reel_renders_used":{"type":"integer","title":"Reel Renders Used"},"pack_generations_allowed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pack Generations Allowed"},"pack_generations_used":{"type":"integer","title":"Pack Generations Used"},"video_face_swaps_allowed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Video Face Swaps Allowed"},"video_face_swaps_used":{"type":"integer","title":"Video Face Swaps Used"}},"type":"object","required":["billing_scope","credits_balance","credits_used_this_period","voice_generations_used","avatar_renders_used","reel_renders_used","pack_generations_used","video_face_swaps_used"],"title":"UsageResponse"},"UsageTimeseriesPoint":{"properties":{"bucket":{"type":"string","format":"date","title":"Bucket"},"jobs_total":{"type":"integer","title":"Jobs Total","default":0},"jobs_completed":{"type":"integer","title":"Jobs Completed","default":0},"jobs_failed":{"type":"integer","title":"Jobs Failed","default":0},"credits_spent":{"type":"number","title":"Credits Spent","default":0.0}},"type":"object","required":["bucket"],"title":"UsageTimeseriesPoint"},"ValidateAudioBody":{"properties":{"audioUrl":{"type":"string","title":"Audiourl"}},"type":"object","required":["audioUrl"],"title":"ValidateAudioBody"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VideoAnimateRequest":{"properties":{"driving_video":{"$ref":"#/components/schemas/AssetInput"},"character":{"$ref":"#/components/schemas/AssetInput"},"duration_sec":{"type":"number","maximum":5.0,"minimum":1.0,"title":"Duration Sec","default":5.0},"subject_class":{"type":"string","enum":["human","animal","character","object"],"title":"Subject Class","default":"human"},"keep_audio":{"type":"boolean","title":"Keep Audio","default":true},"resolution":{"anyOf":[{"type":"string","enum":["480p","580p","720p"]},{"type":"null"}],"title":"Resolution","default":"480p"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["driving_video","character"],"title":"VideoAnimateRequest","description":"Motion-driven character replacement: ``character`` performs ``driving_video``'s motion.\n\nHero path: paint the character into frame 0 of the driving clip, then Viggle-Animate\npropagates (replace-into-scene). ``subject_class`` selects the gates (a dog has no\nhuman hand count to fail) and is never a prompt. Priced at 2 credits per 5 s (~$0.20)\nof *renderable* length (current warm path caps at ~5.17 s / 124 frames). Default\ncanvas is short-edge 480 (volume); 580p/720p add one credit block (~+$0.20) for COGS."},"VideoFaceAssignmentInput":{"properties":{"source_face":{"$ref":"#/components/schemas/AssetInput"},"target_track_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Track Id"}},"type":"object","required":["source_face"],"title":"VideoFaceAssignmentInput"},"VideoFaceSwapBatchItem":{"properties":{"video":{"$ref":"#/components/schemas/AssetInput"},"duration_sec":{"type":"number","maximum":600.0,"minimum":1.0,"title":"Duration Sec","default":15.0}},"type":"object","required":["video"],"title":"VideoFaceSwapBatchItem"},"VideoFaceSwapBatchJobCreate":{"properties":{"type":{"type":"string","enum":["video_face_swap_batch"],"const":"video_face_swap_batch","title":"Type","default":"video_face_swap_batch"},"params":{"$ref":"#/components/schemas/VideoFaceSwapBatchRequest"}},"type":"object","required":["params"],"title":"VideoFaceSwapBatchJobCreate"},"VideoFaceSwapBatchRequest":{"properties":{"videos":{"items":{"$ref":"#/components/schemas/VideoFaceSwapBatchItem"},"type":"array","maxItems":32,"minItems":1,"title":"Videos"},"face_assignments":{"anyOf":[{"items":{"$ref":"#/components/schemas/VideoFaceAssignmentInput"},"type":"array"},{"type":"null"}],"title":"Face Assignments"},"twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Twin Id"},"options":{"anyOf":[{"$ref":"#/components/schemas/VideoSwapOptionsInput"},{"type":"null"}]},"consent_confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent Confirmed"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["videos"],"title":"VideoFaceSwapBatchRequest"},"VideoFaceSwapForAssetRequest":{"properties":{"duration_sec":{"type":"number","maximum":600.0,"minimum":1.0,"title":"Duration Sec"},"face_assignments":{"anyOf":[{"items":{"$ref":"#/components/schemas/VideoFaceAssignmentInput"},"type":"array"},{"type":"null"}],"title":"Face Assignments"},"twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Twin Id"},"options":{"anyOf":[{"$ref":"#/components/schemas/VideoSwapOptionsInput"},{"type":"null"}]},"consent_confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent Confirmed"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["duration_sec"],"title":"VideoFaceSwapForAssetRequest"},"VideoFaceSwapJobCreate":{"properties":{"type":{"type":"string","enum":["video_face_swap"],"const":"video_face_swap","title":"Type","default":"video_face_swap"},"params":{"$ref":"#/components/schemas/VideoFaceSwapRequest"}},"type":"object","required":["params"],"title":"VideoFaceSwapJobCreate"},"VideoFaceSwapPreviewForAssetRequest":{"properties":{"face_assignments":{"anyOf":[{"items":{"$ref":"#/components/schemas/VideoFaceAssignmentInput"},"type":"array"},{"type":"null"}],"title":"Face Assignments"},"twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Twin Id"},"options":{"anyOf":[{"$ref":"#/components/schemas/VideoSwapOptionsInput"},{"type":"null"}]},"consent_confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent Confirmed"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","title":"VideoFaceSwapPreviewForAssetRequest"},"VideoFaceSwapPreviewJobCreate":{"properties":{"type":{"type":"string","enum":["video_face_swap_preview"],"const":"video_face_swap_preview","title":"Type","default":"video_face_swap_preview"},"params":{"$ref":"#/components/schemas/VideoFaceSwapPreviewRequest"}},"type":"object","required":["params"],"title":"VideoFaceSwapPreviewJobCreate"},"VideoFaceSwapPreviewRequest":{"properties":{"video":{"$ref":"#/components/schemas/AssetInput"},"face_assignments":{"anyOf":[{"items":{"$ref":"#/components/schemas/VideoFaceAssignmentInput"},"type":"array"},{"type":"null"}],"title":"Face Assignments"},"twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Twin Id"},"options":{"anyOf":[{"$ref":"#/components/schemas/VideoSwapOptionsInput"},{"type":"null"}]},"consent_confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent Confirmed"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["video"],"title":"VideoFaceSwapPreviewRequest"},"VideoFaceSwapRequest":{"properties":{"video":{"$ref":"#/components/schemas/AssetInput"},"duration_sec":{"type":"number","maximum":600.0,"minimum":1.0,"title":"Duration Sec"},"face_assignments":{"anyOf":[{"items":{"$ref":"#/components/schemas/VideoFaceAssignmentInput"},"type":"array"},{"type":"null"}],"title":"Face Assignments"},"twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Twin Id"},"options":{"anyOf":[{"$ref":"#/components/schemas/VideoSwapOptionsInput"},{"type":"null"}]},"consent_confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent Confirmed"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["video","duration_sec"],"title":"VideoFaceSwapRequest"},"VideoFaceTracksForAssetRequest":{"properties":{"duration_sec":{"type":"number","maximum":600.0,"minimum":1.0,"title":"Duration Sec","default":60.0},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","title":"VideoFaceTracksForAssetRequest"},"VideoFaceTracksJobCreate":{"properties":{"type":{"type":"string","enum":["video_face_tracks"],"const":"video_face_tracks","title":"Type","default":"video_face_tracks"},"params":{"$ref":"#/components/schemas/VideoFaceTracksRequest"}},"type":"object","required":["params"],"title":"VideoFaceTracksJobCreate"},"VideoFaceTracksRequest":{"properties":{"video":{"$ref":"#/components/schemas/AssetInput"},"duration_sec":{"type":"number","maximum":600.0,"minimum":1.0,"title":"Duration Sec","default":60.0},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["video"],"title":"VideoFaceTracksRequest"},"VideoGenerateRequest":{"properties":{"input_image":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}]},"last_frame":{"anyOf":[{"$ref":"#/components/schemas/AssetInput"},{"type":"null"}]},"motion_prompt":{"type":"string","maxLength":2000,"minLength":1,"title":"Motion Prompt"},"model":{"anyOf":[{"type":"string","enum":["wan21-14b","wan21-480p","cogvideo-i2v","minimax_h3_selfhosted"]},{"type":"null"}],"title":"Model"},"video_tier":{"anyOf":[{"type":"string","enum":["preview","production"]},{"type":"null"}],"title":"Video Tier"},"duration_sec":{"type":"integer","enum":[5,10,15,30,60],"title":"Duration Sec","default":5},"quality":{"type":"string","enum":["fast","quality"],"title":"Quality","default":"quality"},"resolution":{"type":"string","enum":["480p","720p","768p","1080p"],"title":"Resolution","default":"720p"},"aspect_ratio":{"type":"string","enum":["16:9","9:16"],"title":"Aspect Ratio","default":"16:9"},"negative_prompt":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Negative Prompt"},"num_inference_steps":{"type":"integer","maximum":100.0,"minimum":4.0,"title":"Num Inference Steps","default":30},"guidance_scale":{"anyOf":[{"type":"number","maximum":20.0,"minimum":1.0},{"type":"null"}],"title":"Guidance Scale"},"guidance_scale_2":{"anyOf":[{"type":"number","maximum":20.0,"minimum":1.0},{"type":"null"}],"title":"Guidance Scale 2"},"fps":{"type":"integer","maximum":30.0,"minimum":8.0,"title":"Fps","default":16},"num_frames":{"anyOf":[{"type":"integer","maximum":961.0,"minimum":17.0},{"type":"null"}],"title":"Num Frames"},"flow_shift":{"anyOf":[{"type":"number","maximum":20.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Flow Shift"},"solver":{"type":"string","enum":["unipc"],"const":"unipc","title":"Solver","default":"unipc"},"seed":{"type":"integer","minimum":0.0,"title":"Seed","default":42},"allow_model_fallback":{"type":"boolean","title":"Allow Model Fallback","default":false},"audio_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Audio Asset Id"},"color_grade_preset":{"type":"string","enum":["none","cinematic","warm","cool","dramatic","mono"],"title":"Color Grade Preset","default":"none"},"mute_audio":{"type":"boolean","title":"Mute Audio","default":false},"brand_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Brand Id"},"template_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Template Id"},"template_variables":{"type":"object","title":"Template Variables"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"subject_class":{"anyOf":[{"type":"string","enum":["human","animal"]},{"type":"null"}],"title":"Subject Class"},"mature_content_undertaking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mature Content Undertaking"}},"type":"object","required":["motion_prompt"],"title":"VideoGenerateRequest"},"VideoPostProcessRequest":{"properties":{"input_asset_id":{"type":"string","format":"uuid","title":"Input Asset Id"},"audio_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Audio Asset Id"},"color_grade_preset":{"type":"string","enum":["none","cinematic","warm","cool","dramatic","mono"],"title":"Color Grade Preset","default":"none"},"fps":{"anyOf":[{"type":"integer","maximum":30.0,"minimum":8.0},{"type":"null"}],"title":"Fps"},"mute_audio":{"type":"boolean","title":"Mute Audio","default":false},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["input_asset_id"],"title":"VideoPostProcessRequest"},"VideoPostprocessJobCreate":{"properties":{"type":{"type":"string","enum":["video_postprocess"],"const":"video_postprocess","title":"Type","default":"video_postprocess"},"params":{"$ref":"#/components/schemas/VideoPostProcessRequest"}},"type":"object","required":["params"],"title":"VideoPostprocessJobCreate"},"VideoReframeDispatchResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"quote_credits":{"type":"integer","title":"Quote Credits"},"dispatches":{"items":{"type":"object"},"type":"array","title":"Dispatches"}},"type":"object","required":["project_id","quote_credits","dispatches"],"title":"VideoReframeDispatchResponse"},"VideoReframeProjectCreate":{"properties":{"source_asset_id":{"type":"string","format":"uuid","title":"Source Asset Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"retain_caption_streams":{"type":"boolean","title":"Retain Caption Streams","default":false}},"type":"object","required":["source_asset_id"],"title":"VideoReframeProjectCreate"},"VideoReframeProjectResponse":{"properties":{"project_id":{"type":"string","format":"uuid","title":"Project Id"},"terminal":{"type":"string","title":"Terminal"},"source_asset_id":{"type":"string","format":"uuid","title":"Source Asset Id"},"source":{"type":"object","title":"Source"},"tracking":{"type":"object","title":"Tracking"},"capability_snapshot":{"type":"object","title":"Capability Snapshot"},"quote":{"type":"object","title":"Quote"},"retain_caption_streams":{"type":"boolean","title":"Retain Caption Streams"},"privacy":{"type":"object","title":"Privacy"}},"type":"object","required":["project_id","terminal","source_asset_id","source","tracking","capability_snapshot","quote","retain_caption_streams","privacy"],"title":"VideoReframeProjectResponse"},"VideoReframeRenderRequest":{"properties":{"variants":{"items":{"$ref":"#/components/schemas/VideoReframeVariant"},"type":"array","maxItems":4,"minItems":1,"title":"Variants"},"accept_quote_credits":{"type":"integer","minimum":1.0,"title":"Accept Quote Credits"},"idempotency_key":{"type":"string","maxLength":180,"minLength":8,"title":"Idempotency Key"}},"type":"object","required":["variants","accept_quote_credits","idempotency_key"],"title":"VideoReframeRenderRequest"},"VideoReframeVariant":{"properties":{"aspect":{"type":"string","enum":["9:16","1:1","4:5","16:9"],"title":"Aspect"},"focal_mode":{"type":"string","enum":["face_track","manual","center"],"title":"Focal Mode","default":"center"},"track_id":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Track Id"},"focal_x":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Focal X","default":0.5},"focal_y":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Focal Y","default":0.5}},"type":"object","required":["aspect"],"title":"VideoReframeVariant"},"VideoRunResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"type":{"type":"string","title":"Type"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"},"status":{"type":"string","title":"Status"},"progress":{"type":"integer","title":"Progress"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"queue_name":{"type":"string","title":"Queue Name"},"credits_cost":{"type":"number","title":"Credits Cost"},"result_urls":{"items":{"type":"string"},"type":"array","title":"Result Urls","default":[]},"result_assets":{"items":{"$ref":"#/components/schemas/JobAssetSummary"},"type":"array","title":"Result Assets","default":[]},"pipeline_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Used"},"supported_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supported Mode"},"actual_model_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actual Model Used"},"identity_conditioning_applied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Identity Conditioning Applied"},"face_reference_loaded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Face Reference Loaded"},"identity_similarity_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Identity Similarity Score"},"identity_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Identity Threshold"},"video_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Tier"},"source_portrait_quality_passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Source Portrait Quality Passed"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"stream":{"$ref":"#/components/schemas/JobStreamInfo"},"params":{"type":"object","title":"Params"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["id","job_id","workspace_id","type","status","progress","queue_name","credits_cost","created_at","updated_at","stream","params"],"title":"VideoRunResponse"},"VideoStitchJobCreate":{"properties":{"type":{"type":"string","enum":["video_stitch"],"const":"video_stitch","title":"Type","default":"video_stitch"},"params":{"$ref":"#/components/schemas/VideoStitchRequest"}},"type":"object","required":["params"],"title":"VideoStitchJobCreate"},"VideoStitchRequest":{"properties":{"input_asset_ids":{"items":{"type":"string"},"type":"array","minItems":2,"title":"Input Asset Ids"},"add_crossfade":{"type":"boolean","title":"Add Crossfade","default":true},"crossfade_frames":{"type":"integer","maximum":48.0,"minimum":1.0,"title":"Crossfade Frames","default":8},"audio_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Audio Asset Id"},"color_grade_preset":{"type":"string","enum":["none","cinematic","warm","cool","dramatic","mono"],"title":"Color Grade Preset","default":"none"},"fps":{"type":"integer","maximum":30.0,"minimum":8.0,"title":"Fps","default":16},"mute_audio":{"type":"boolean","title":"Mute Audio","default":false},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["input_asset_ids"],"title":"VideoStitchRequest"},"VideoSwapOptionsInput":{"properties":{"temporal_window":{"type":"integer","maximum":21.0,"minimum":3.0,"title":"Temporal Window","default":7},"enhance_faces":{"type":"boolean","title":"Enhance Faces","default":false},"include_hair":{"type":"boolean","title":"Include Hair","default":false},"output_quality":{"type":"string","pattern":"^\\d{2}$","title":"Output Quality","default":"23"},"max_resolution":{"type":"integer","maximum":4096.0,"minimum":512.0,"title":"Max Resolution","default":1920},"preview_seconds":{"type":"number","maximum":10.0,"minimum":1.0,"title":"Preview Seconds","default":3.0}},"type":"object","title":"VideoSwapOptionsInput"},"VoiceChoice":{"properties":{"source":{"type":"string","enum":["stock","designed","twin"],"title":"Source"},"voice_id":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Voice Id"},"candidate_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Candidate Id"},"twin_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Twin Id"}},"additionalProperties":false,"type":"object","required":["source"],"title":"VoiceChoice"},"WebhookDeliveryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id"},"event_name":{"type":"string","title":"Event Name"},"status":{"type":"string","title":"Status"},"request_body":{"type":"object","title":"Request Body"},"response_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Response Status"},"response_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Body"},"last_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempt At"},"attempt_count":{"type":"integer","title":"Attempt Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","endpoint_id","event_name","status","request_body","attempt_count","created_at","updated_at"],"title":"WebhookDeliveryResponse"},"WebhookEndpointCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"target_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Target Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}},"type":"object","required":["name","target_url","events"],"title":"WebhookEndpointCreateRequest"},"WebhookEndpointResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"name":{"type":"string","title":"Name"},"target_url":{"type":"string","title":"Target Url"},"events":{"items":{},"type":"array","title":"Events"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","account_id","name","target_url","events","is_active"],"title":"WebhookEndpointResponse"},"WebhookEndpointUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"target_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Target Url"},"events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Events"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"WebhookEndpointUpdateRequest"},"WebsiteSourceRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":8,"title":"Url"}},"type":"object","required":["url"],"title":"WebsiteSourceRequest"},"WorkspaceCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"type":{"type":"string","title":"Type","default":"internal"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"client_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Email"},"client_industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Industry"},"credit_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Credit Budget"},"parent_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Workspace Id"}},"type":"object","required":["name","slug"],"title":"WorkspaceCreateRequest"},"WorkspaceMemberUpdateRequest":{"properties":{"role":{"type":"string","title":"Role"}},"type":"object","required":["role"],"title":"WorkspaceMemberUpdateRequest"},"WorkspaceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"parent_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Workspace Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"type":{"type":"string","title":"Type"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"client_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Email"},"client_industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Industry"},"credit_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Credit Budget"},"credits_used":{"type":"number","title":"Credits Used"},"storage_used_bytes":{"type":"integer","title":"Storage Used Bytes"},"storage_limit_bytes":{"type":"integer","title":"Storage Limit Bytes"},"hard_cap_enabled":{"type":"boolean","title":"Hard Cap Enabled"},"direct_billing_enabled":{"type":"boolean","title":"Direct Billing Enabled"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","account_id","name","slug","type","credits_used","storage_used_bytes","storage_limit_bytes","hard_cap_enabled","direct_billing_enabled","created_at"],"title":"WorkspaceResponse"},"WorkspaceUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"client_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Name"},"client_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Email"},"client_industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Industry"},"credit_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Credit Budget"},"direct_billing_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Direct Billing Enabled"},"hard_cap_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hard Cap Enabled"}},"type":"object","title":"WorkspaceUpdateRequest"},"_ImageEditBody":{"properties":{"prompt":{"type":"string","title":"Prompt"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imageurl"},"strength":{"type":"number","title":"Strength","default":0.7},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["prompt"],"title":"_ImageEditBody"},"_SpokespersonBody":{"properties":{"script":{"type":"string","title":"Script"},"requestId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requestid"},"voiceProfileId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voiceprofileid"},"faceProfileId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Faceprofileid"},"negativePrompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negativeprompt"},"options":{"anyOf":[{"$ref":"#/components/schemas/_SpokespersonOptions"},{"type":"null"}]}},"type":"object","required":["script"],"title":"_SpokespersonBody"},"_SpokespersonOptions":{"properties":{"duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"performance":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Performance"},"faceSwap":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Faceswap"},"multiBeat":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Multibeat"},"useDefaultNegativePrompt":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Usedefaultnegativeprompt"}},"type":"object","title":"_SpokespersonOptions"},"app__api__routes__cartoon__PlanRequest":{"properties":{"count":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Count","default":10}},"additionalProperties":false,"type":"object","title":"PlanRequest"},"app__api__routes__ugc_ad_planner__PlanRequest":{"properties":{"brief":{"type":"string","maxLength":4000,"title":"Brief","default":""},"productUrl":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Producturl"},"platform":{"type":"string","enum":["tiktok","instagram_reel","youtube_short","linkedin","facebook"],"title":"Platform","default":"tiktok"},"durationSec":{"type":"integer","enum":[15,30],"title":"Durationsec","default":15},"captchaToken":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Captchatoken"},"grant":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Grant"}},"additionalProperties":false,"type":"object","title":"PlanRequest"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"},"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}}}}