{"openapi":"3.1.0","info":{"title":"Vidoso","version":"0.2"},"paths":{"/text-to-contents/generate-social-post":{"post":{"tags":["Text-to-content generation for Organization, Videos, Clips, and Chapters"],"summary":"Text-To-Content:Generate-Social-Post","operationId":"text_to_content_generate_social_post_text_to_contents_generate_social_post_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcSocialPostRequestSchema"}}},"required":true},"responses":{"200":{"description":"Generate a social post from a specific source.","content":{"application/json":{"schema":{"properties":{"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"}},"type":"object","required":["title","content"],"title":"TtcSocialPostResponseSchema"}},"text/event-stream":{"example":"event: session.start\ndata: {}\n\nevent: content.delta\ndata: {\"content_delta\":\"🤔 February Feels: The Longest Short\"}\n\nevent: content.delta\ndata: {\"content_delta\":\" Month Ever!\n\nCaught in that weird February\"}\n\nevent: social_post.completed\ndata: {\"title\": \"<the title>\"}\n\nevent: session.end\ndata: {}"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/urls":{"get":{"tags":["Url contents"],"summary":"Url Contents:List","description":"List all Url contents.","operationId":"url_contents_list_urls_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_UrlContentListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Url contents"],"summary":"Url Contents:Create","description":"Create a new Url content.\n\nThis endpoint will return the created Url content or an existing\n    one if it already exists.","operationId":"url_contents_create_urls_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_url_contents_create_urls_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlContentDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/urls/{url_content_id}":{"get":{"tags":["Url contents"],"summary":"Url Contents:Detail","description":"Retrieve a single url content by ID.","operationId":"url_contents_detail_urls__url_content_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"url_content_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlContentDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Url contents"],"summary":"Url Contents:Delete","description":"Delete an existing url content.","operationId":"url_contents_delete_urls__url_content_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"url_content_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/collections":{"get":{"tags":["Collections"],"summary":"Collections:List","description":"List all collections.","operationId":"collections_list_collections_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"editable_only","in":"query","required":false,"schema":{"type":"boolean","description":"Show only collections that the user can edit","default":false,"title":"Editable Only"},"description":"Show only collections that the user can edit"},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"tags_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Tags Id"}},{"name":"tags_id__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags Id  In"}},{"name":"access_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CollectionAccessType"},{"type":"null"}],"title":"Access Type"}},{"name":"text_search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_CollectionListSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Collections"],"summary":"Collections:Create","description":"Create a new collection.","operationId":"collections_create_collections_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/collections/{collection_id}":{"get":{"tags":["Collections"],"summary":"Collections:Detail","description":"Get a collection.","operationId":"collections_detail_collections__collection_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Collections"],"summary":"Collections:Partial Update","description":"Update a collection.","operationId":"collections_partial_update_collections__collection_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionPartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Collections"],"summary":"Collections:Delete","description":"Delete a collection.","operationId":"collections_delete_collections__collection_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/collections/{collection_id}/add":{"post":{"tags":["Collections"],"summary":"Collections:Add","description":"Add an items to a collection.","operationId":"collections_add_collections__collection_id__add_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionItemsSchema"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/collections/{collection_id}/remove":{"post":{"tags":["Collections"],"summary":"Collections:Remove","description":"Remove an items from a collection.","operationId":"collections_remove_collections__collection_id__remove_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionItemsSchema"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos":{"post":{"tags":["Videos"],"summary":"Videos:Create","description":"Create a new video.","operationId":"videos_create_videos_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Videos"],"summary":"Videos:List","description":"Retrieve Videos from the database.","operationId":"videos_list_videos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"collections_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Collections Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/VideoStatus"},{"type":"null"}],"title":"Status"}},{"name":"text_search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_VideoListSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}":{"get":{"tags":["Videos"],"summary":"Videos:Get","description":"Retrieve single video.","operationId":"videos_get_videos__video_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Videos"],"summary":"Videos:Partial Update","description":"Update a video.","operationId":"videos_partial_update_videos__video_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartialUpdateVideoSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Videos"],"summary":"Videos:Delete","description":"Delete a video.","operationId":"videos_delete_videos__video_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/update-extension":{"post":{"tags":["Videos"],"summary":"Update Video Extension","operationId":"update_video_extension_videos__video_id__update_extension_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoExtensionSchema"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Update Video Extension Videos  Video Id  Update Extension Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/reprocess":{"post":{"tags":["Videos"],"summary":"Videos:Reprocess","description":"Reprocess a video.","operationId":"videos_reprocess_videos__video_id__reprocess_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/processing/set-duration":{"post":{"tags":["Videos"],"summary":"Videos:Set-Duration","description":"Set the duration of the video during processing.","operationId":"videos_set_duration_videos__video_id__processing_set_duration_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_videos_set_duration_videos__video_id__processing_set_duration_post"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/processing/complete":{"post":{"tags":["Videos"],"summary":"Videos:Processing-Complete","description":"Mark video processing as completed.","operationId":"videos_processing_complete_videos__video_id__processing_complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/processing/failed":{"post":{"tags":["Videos"],"summary":"Videos:Processing-Failed","description":"Mark video processing as failed.","operationId":"videos_processing_failed_videos__video_id__processing_failed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/processing/set-language":{"post":{"tags":["Videos"],"summary":"Videos:Set-Language","description":"Set the language of the video during processing.","operationId":"videos_set_language_videos__video_id__processing_set_language_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoUpdateLanguageSchema"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/generate-upload-url":{"post":{"tags":["Videos"],"summary":"Videos:Generate-Upload-Url","description":"Generate signed url for video upload to Google Cloud Storage.\n\n*Note: it requires setting all the x-goog-* headers!*\n\nGenerated URL for upload example:\n\n    curl -X PUT \\\n      -H 'Content-Type: video/mp4' \\\n      -H 'x-goog-content-length-range: 0,53687091200' \\\n      -H 'x-goog-meta-file_name: MyFile.mp4' \\\n      --upload-file my-video.mp4 \\\n      https://storage.googleapis.com/vidoso-video-storage/test.mp4?X-Goo...\n\n    Generated URL usage example:\n\nInitiate resumable upload with:\n\n    curl -X POST \\\n        -H 'Content-Type: video/mp4' \\\n        -H 'x-goog-content-length-range: 0,53687091200' \\\n        -H 'x-goog-meta-file_name: MyFile.mp4' \\\n        -H 'x-goog-resumable: start' \\\n        https://storage.googleapis.com/vidoso-video-storage/test.mp4?X-Goo...\n\n    Note: Content-Type here is a content type not of the payload of this request\n    (which may be JSON if any) but of the file being uploaded.\n\nUse response \"location\" header to upload the video in one or multiple chunks:\n\n    curl -X PUT \\\n        -H 'Content-Type: video/mp4'\n        -H \"Content-Length: CHUNK_SIZE\" \\\n        -H \"Content-Range: \\\n            bytes CHUNK_FIRST_BYTE-CHUNK_LAST_BYTE/TOTAL_OBJECT_SIZE\" \\\n        --upload-file my-video.mp4 \\\n        <location header from the previous response>\n\nSee: https://cloud.google.com/storage/docs/performing-resumable-uploads","operationId":"videos_generate_upload_url_videos_generate_upload_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_videos_generate_upload_url_videos_generate_upload_url_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateVideoUploadedUrlSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/videos/import-from-url":{"post":{"tags":["Videos"],"summary":"Videos:Import-From-Url","description":"Send video public url to pub/sub.","operationId":"videos_import_from_url_videos_import_from_url_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ImportVideoFromPublicUrlSchema"},{"$ref":"#/components/schemas/ImportVideoFromGoogleDriveUrlSchema"}],"title":"Payload"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Videos Import From Url Videos Import From Url Post"}}}},"422":{"description":"User does not have access to Google Drive API"}},"security":[{"HTTPBearer":[]}]}},"/videos/save-imported":{"post":{"tags":["Videos"],"summary":"Videos:Import","description":"Save video imported from an external source by the ingestion service.","operationId":"videos_import_videos_save_imported_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportVideoSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/videos/{video_id}/index":{"post":{"tags":["Videos"],"summary":"Videos:Index","description":"Index media for search.","operationId":"videos_index_videos__video_id__index_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"wait_for_completion","in":"query","required":false,"schema":{"type":"boolean","description":"If true, wait for indexing to complete before returning. If the wait times out, returns 202 Accepted.","default":false,"title":"Wait For Completion"},"description":"If true, wait for indexing to complete before returning. If the wait times out, returns 202 Accepted."}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/brand-profile-extraction-runs":{"post":{"tags":["Brand profile extraction runs"],"summary":"Brand-Profile-Extraction-Runs:Create","operationId":"brand_profile_extraction_runs_create_brand_profile_extraction_runs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandProfileExtractionRunCreatePayloadSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandProfileExtractionRunCreateResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/brand-profile-extraction-runs/{brand_profile_extraction_run_id}":{"get":{"tags":["Brand profile extraction runs"],"summary":"Brand-Profile-Extraction-Runs:Get","description":"Get brand profile extraction run by ID with optional long polling.\n\nIf timeout is provided and > 0, waits for completion.\nElse, returns immediately without waiting.","operationId":"brand_profile_extraction_runs_get_brand_profile_extraction_runs__brand_profile_extraction_run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"brand_profile_extraction_run_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"timeout","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":600.0,"minimum":1.0},{"type":"null"}],"description":"Maximum time to wait for completion (in seconds). If not provided, returns immediately without waiting.","title":"Timeout"},"description":"Maximum time to wait for completion (in seconds). If not provided, returns immediately without waiting."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandProfileExtractionRunReadSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/content-themes":{"get":{"tags":["Content Themes"],"summary":"Content Themes:List","operationId":"content_themes_list_content_themes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string","example":"68780a95a7d26cb75c9017c9,68780a95a7d26cb75c9017ca"},{"type":"null"}],"description":"Comma-separated list of ObjectIds","title":"Clip Id  In"},"description":"Comma-separated list of ObjectIds"},{"name":"chapter_id__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string","example":"68780a95a7d26cb75c9017c9,68780a95a7d26cb75c9017ca"},{"type":"null"}],"description":"Comma-separated list of ObjectIds","title":"Chapter Id  In"},"description":"Comma-separated list of ObjectIds"},{"name":"collection_id__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string","example":"68780a95a7d26cb75c9017c9,68780a95a7d26cb75c9017ca"},{"type":"null"}],"description":"Comma-separated list of ObjectIds","title":"Collection Id  In"},"description":"Comma-separated list of ObjectIds"},{"name":"top_only","in":"query","required":false,"schema":{"type":"boolean","description":"Return only themes that have 'social post', 'blog posts' and 'clips at the same time","default":false,"title":"Top Only"},"description":"Return only themes that have 'social post', 'blog posts' and 'clips at the same time"},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"video_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Video Id"}},{"name":"video_id__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string","example":"68780a95a7d26cb75c9017c9,68780a95a7d26cb75c9017ca"},{"type":"null"}],"title":"Video Id  In"},"example":{}},{"name":"media_audio_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Media Audio Id"}},{"name":"media_audio_id__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string","example":"68780a95a7d26cb75c9017c9,68780a95a7d26cb75c9017ca"},{"type":"null"}],"title":"Media Audio Id  In"},"example":{}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ContentThemeListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Content Themes"],"summary":"Content Themes:Create","operationId":"content_themes_create_content_themes_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentThemeCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentThemeDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users":{"post":{"tags":["Users"],"summary":"Users:Create","description":"Create a new User in the database.","operationId":"users_create_users_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Users"],"summary":"Users:List","description":"Retrieve Users from the database.","operationId":"users_list_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_UserSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/branding-elements":{"patch":{"tags":["Organizations branding"],"summary":"Branding:Create","description":"Create a new branding elements.","operationId":"branding_create_organizations__organization_id__branding_elements_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingElementsPartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingElementsDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Organizations branding"],"summary":"Branding:Detail","description":"Get the organization branding elements.","operationId":"branding_detail_organizations__organization_id__branding_elements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingElementsDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/vector-comparison/transcripts":{"post":{"tags":["Internal"],"summary":"Compare Transcript Vectors","operationId":"compare_transcript_vectors_internal_vector_comparison_transcripts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VectorComparisonRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VectorComparisonResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media-audios/upload":{"post":{"tags":["Media audios"],"summary":"Media Audios:Upload","operationId":"media_audios_upload_media_audios_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_media_audios_upload_media_audios_upload_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaAudioDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/media-audios/create-internal":{"post":{"tags":["Media audios"],"summary":"Media Audios:Create-Internal","operationId":"media_audios_create_internal_media_audios_create_internal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaAudioCreateSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaAudioDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/media-audios":{"get":{"tags":["Media audios"],"summary":"Media Audios:List","operationId":"media_audios_list_media_audios_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MediaAudioStatus"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_MediaAudioListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media-audios/{media_audio_id}":{"get":{"tags":["Media audios"],"summary":"Media Audios:Detail","operationId":"media_audios_detail_media_audios__media_audio_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"media_audio_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaAudioDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Media audios"],"summary":"Media Audios:Partial Update","operationId":"media_audios_partial_update_media_audios__media_audio_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"media_audio_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaAudioPartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaAudioDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Media audios"],"summary":"Media Audios:Delete","operationId":"media_audios_delete_media_audios__media_audio_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"media_audio_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media-audios/{media_audio_id}/processing/set-duration":{"post":{"tags":["Media audios"],"summary":"Media Audios:Set-Duration","description":"Set the duration of the media audio during processing.","operationId":"media_audios_set_duration_media_audios__media_audio_id__processing_set_duration_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"media_audio_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_media_audios_set_duration_media_audios__media_audio_id__processing_set_duration_post"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media-audios/{media_audio_id}/processing/started":{"post":{"tags":["Media audios"],"summary":"Media Audios:Processing-Started","description":"Mark media audio processing as started.","operationId":"media_audios_processing_started_media_audios__media_audio_id__processing_started_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"media_audio_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media-audios/{media_audio_id}/processing/complete":{"post":{"tags":["Media audios"],"summary":"Media Audios:Processing-Complete","description":"Mark media audio processing as completed.","operationId":"media_audios_processing_complete_media_audios__media_audio_id__processing_complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"media_audio_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media-audios/{media_audio_id}/processing/failed":{"post":{"tags":["Media audios"],"summary":"Media Audios:Processing-Failed","description":"Mark media audio processing as failed.","operationId":"media_audios_processing_failed_media_audios__media_audio_id__processing_failed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"media_audio_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media-audios/{media_audio_id}/processing/set-language":{"post":{"tags":["Media audios"],"summary":"Media Audios:Set-Language","description":"Set the language of the media audio during processing.","operationId":"media_audios_set_language_media_audios__media_audio_id__processing_set_language_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"media_audio_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaAudioUpdateLanguageSchema"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/youtube/oauth/exchange":{"post":{"tags":["Integrations/Youtube"],"summary":"Integrations:Youtube-Auth","operationId":"integrations_youtube_auth_integrations_youtube_oauth_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthExchangePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Integrations Youtube Auth Integrations Youtube Oauth Exchange Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/youtube/status":{"get":{"tags":["Integrations/Youtube"],"summary":"Integrations:Youtube-Status","operationId":"integrations_youtube_status_integrations_youtube_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationStatusResponseSchema"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/youtube/revoke":{"delete":{"tags":["Integrations/Youtube"],"summary":"Integrations:Youtube-Revoke","operationId":"integrations_youtube_revoke_integrations_youtube_revoke_delete","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/integrations/youtube/videos":{"get":{"tags":["Integrations/Youtube"],"summary":"Integrations:Youtube-Videos","operationId":"integrations_youtube_videos_integrations_youtube_videos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Page Size"}},{"name":"next_page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaylistItemListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Integrations/Youtube"],"summary":"Integrations:Youtube-Upload-Videos","operationId":"integrations_youtube_upload_videos_integrations_youtube_videos_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeUploadVideosSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Integrations Youtube Upload Videos Integrations Youtube Videos Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompt-enhancers":{"post":{"tags":["Prompt enhancers"],"summary":"Prompt Enhancers:Enhance-Recipe","operationId":"prompt_enhancers_enhance_recipe_prompt_enhancers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptEnhancerInputSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptEnhancerOutputSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/prompt-enhancers/campaign/{campaign_id}":{"post":{"tags":["Prompt enhancers"],"summary":"Prompt Enhancers:Enhance-Campaign","operationId":"prompt_enhancers_enhance_campaign_prompt_enhancers_campaign__campaign_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignBriefPromptEnhancerInputSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptEnhancerOutputSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recipe-runs":{"get":{"tags":["Recipe runs"],"summary":"Recipe Runs:List","description":"List all Recipe runs.","operationId":"recipe_runs_list_recipe_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"video_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Video Id"}},{"name":"collection_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Collection Id"}},{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Campaign Id"}},{"name":"file_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"File Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_RecipeRunListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Recipe runs"],"summary":"Recipe Runs:Create","description":"Create a new Recipe runs.","operationId":"recipe_runs_create_recipe_runs_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeRunCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeRunReadSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recipe-runs/{recipe_run_id}/{recipe_run_step_id}":{"get":{"tags":["Recipe runs"],"summary":"Recipe Runs:Detail","description":"Retrieve a single recipe runs by ID.","operationId":"recipe_runs_detail_recipe_runs__recipe_run_id___recipe_run_step_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_run_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"recipe_run_step_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeRunStepReadSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Recipe runs"],"summary":"Recipe Runs Step:Delete","description":"Delete a recipe run step, if it is the last step delete the run.","operationId":"recipe_runs_step_delete_recipe_runs__recipe_run_id___recipe_run_step_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_run_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"recipe_run_step_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recipe-runs/{recipe_run_id}":{"get":{"tags":["Recipe runs"],"summary":"Recipe Runs:Get","description":"Get a Recipe run by ID with its steps.","operationId":"recipe_runs_get_recipe_runs__recipe_run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_run_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeRunListItemSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Recipe runs"],"summary":"Recipe Runs:Delete","description":"Delete the recipe run and all children steps and assets.","operationId":"recipe_runs_delete_recipe_runs__recipe_run_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_run_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recipe-runs/suggestion":{"post":{"tags":["Recipe runs"],"summary":"Recipe Runs:Create From Suggestion","description":"Create a new Recipe and it's Recipe run.","operationId":"recipe_runs_create_from_suggestion_recipe_runs_suggestion_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeRunCreateFromSuggestionSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeRunReadSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/linkedin/oauth/exchange":{"post":{"tags":["Integrations/Linkedin"],"summary":"Integrations-Linkedin:Exchange","operationId":"integrations_linkedin_exchange_integrations_linkedin_oauth_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthExchangePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/linkedin/status":{"get":{"tags":["Integrations/Linkedin"],"summary":"Integrations-Linkedin:Status","operationId":"integrations_linkedin_status_integrations_linkedin_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationStatusResponseSchema"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/linkedin/revoke":{"delete":{"tags":["Integrations/Linkedin"],"summary":"Integrations-Linkedin:Revoke","operationId":"integrations_linkedin_revoke_integrations_linkedin_revoke_delete","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/integrations/linkedin/accounts":{"get":{"tags":["Integrations/Linkedin"],"summary":"Integrations-Linkedin:Accounts","operationId":"integrations_linkedin_accounts_integrations_linkedin_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedinAccountsResponseSchema"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/linkedin/selected-accounts":{"get":{"tags":["Integrations/Linkedin"],"summary":"Integrations-Linkedin:Selected-Accounts","operationId":"integrations_linkedin_selected_accounts_integrations_linkedin_selected_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedinSelectedAccountsSchema"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["Integrations/Linkedin"],"summary":"Integrations-Linkedin:Selected-Accounts","operationId":"integrations_linkedin_selected_accounts_integrations_linkedin_selected_accounts_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedinSelectedAccountsSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/videos/{video_id}/transcripts":{"put":{"tags":["Video Transcripts"],"summary":"Transcripts:Replace","description":"Create a new transcript.","operationId":"transcripts_replace_videos__video_id__transcripts_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"entity_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TranscriptableEntityType","default":"video"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TranscriptCreateSchema"},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_TranscriptListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Video Transcripts"],"summary":"Transcripts:List","description":"Get media transcripts.","operationId":"transcripts_list_videos__video_id__transcripts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_TranscriptListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/text-to-contents/ask-clip":{"post":{"tags":["Text-to-content generation for Organization, Videos, Clips, and Chapters"],"summary":"Text-To-Content:Generate-Clip","operationId":"text_to_content_generate_clip_text_to_contents_ask_clip_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcAskClipGenerateRequestSchema"}}},"required":true},"responses":{"200":{"description":"Generate a clip based on the provided prompt and source.\n\nThis endpoint it used in AskClip flow to generate a clip based on the provided prompt and sources.\nThe response is a stream of events that represent the state of the clip generation process in SSE format.\n\nSSE Events that can be sent in order. Take a look on client recommended \"Flow\":\n - **session.started** - The session has started.\n   ```\n   <no payload>\n   ```\n   Flow: create `clip_data = {\"chunks\": []}` structure to store the chunks.\n - **chunk.started** - A new chunk has started. Used source is known at this point.\n   ```json\n   {\"index\": 0, \"data\": {\"source\": {...}, \"text\": \"Gene\"}}\n   ```\n   Flow: use code like `clip_data.chunks.append(event_data)` to store the chunk.\n - **chunk.text_delta** - A new delta of the chunk text has been generated.\n   ```json\n   {\"index\": 0, \"text_delta\": \"rative.\"}\n   ```\n   Flow: `clip_data.chunks[event_data[\"index\"]][\"text\"] += event_data[\"delta\"]`\n - **chunk.completed** - The chunk has been completed. The final text is known.\n   **Note:** this event can be delayed (after other messages),\n        and text sent in the previous events may be updated here!\n   ```json\n   {\"index\": 0, \"data\": {\"source\": {...}, \"text\": \"Generative AI.\", \"playback\": {...}}}\n   ```\n   Playback contains all information needed to play this chunk:\n   ```json\n   \"playback\":{\n        \"speaker_name\":\"Sharad Verma\",\n        \"start_second\":213.06,\n        \"end_second\":276.785,\n        \"raw_transcripts\":[{\n            \"speaker\":\"SPEAKER_0\",\n            \"speaker_name\":\"Sharad Verma\",\n            \"word\":\"And\",\n            \"start_second\":213.06,\n            \"end_second\":213.22\n        }],\n        \"removed_parts\":[{\n            \"start_second\":217.36499,\n            \"end_second\":217.845\n        }],\n        \"playback_url\":\"https://video-storage.vidoso.ai/...\"\n    }\n   ```\n   Note: `raw_transcripts` contains selected words from the source plus 30 seconds before and after.\n   Flow: `clip_data.chunks[event_data[\"index\"]] = event_data[\"data\"]`\n   **Note:** in rare cases, the chunk may be removed from the final clip. In this case, \"data\" will be `null`.\n - **clip.info_generated** - The clip info has been generated.\n    This information should be used to create tha clip in the following request.\n    ```json\n    {\n        \"title\": \"Generative AI\",\n        \"video_id\": \"675f7269f81576783bf60f23\",\n        \"start_second\": 42.105003,\n        \"end_second\": 103.965004\n    }\n    ```\n    Flow: `clip_data.update(event_data)`\n - **session.completed** - The session has been completed.\n   At this point, the clip is ready to be created.\n\n   Please use `POST /videos/{clip_data[\"video_id\"]}/ai-edit` with next data:\n    ```json\n    {\n         \"title\": clip_data[\"title\"],\n         \"start_second\": clip_data[\"start_second\"],\n         \"end_second\": clip_data[\"end_second\"],\n         \"ai_studio\": {\n            \"ask_clip\": {\n                // please remove playback data to reduce the size of the request\n                \"chunks\": clip_data[\"chunks\"]\n            }\n        }\n    }\n    ```\n- **process.error** - Error event.\n    Means that the process has failed (no more events will be sent).\n    ```json\n    {\"message\": \"Error message\"}\n    ```\n","content":{"text/event-stream; charset=utf-8":{"example":"event: session.started\ndata: {}\n\nevent: chunk.started\ndata: {\"index\":0,\"data\":{\n    \"source\":{\n        \"type\":\"transcript\",\n        \"video_id\":\"6788169aca65245684c35328\",\n        \"start_second\":213.06,\n        \"end_second\":397.385\n    },\n    \"text\":\"And\"\n}}\n\nevent: chunk.text_delta\ndata: {\"index\":0,\"text_delta\":\" if\"}\n\nevent: chunk.text_delta\ndata: {\"index\":0,\"text_delta\":\" you\"}\n\nevent: chunk.text_delta\ndata: {\"index\":0,\"text_delta\":\" think\"}\n\n# more deltas\n\n# Note: this event can be sent later\nevent: chunk.completed\ndata: {\"index\":0,\"data\":{\n    \"source\":{\"type\":\"transcript\",\"video_id\":\"6788169aca65245684c35328\",\"start_second\":213.06,\"end_second\":397.385},\n    \"text\":\"And if you think ...\",\n    \"playback\":{\n        \"speaker_name\":\"Sharad Verma\",\n        \"start_second\":213.06,\n        \"end_second\":276.785,\n        \"raw_transcripts\":[{\n            \"speaker\":\"SPEAKER_0\",\n            \"speaker_name\":\"Sharad Verma\",\n            \"word\":\"And\",\n            \"start_second\":213.06,\n            \"end_second\":213.22\n        }],\n        \"removed_parts\":[{\n            \"start_second\":217.36499,\n            \"end_second\":217.845\n        }],\n        \"playback_url\":\"https://video-storage.vidoso.ai/...\"\n    }\n}}\n\n# more chunks\n\nevent: clip.info_generated\ndata: {\"title\":\"Unified Data...\",\"video_id\":\"6788169aca65245684c35328\",\"start_second\":65.159996,\"end_second\":397.385}\n\nevent: session.completed\ndata: {}\n\n# Final object\nevent: debug.final\ndata: {\"chunks\": \"...\",\"title\": \"...\",\"video_id\": \"...\",\"start_second\": \"...\",\"end_second\": \"...\"}\n"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tags":{"get":{"tags":["Tags"],"summary":"Tags:List","description":"List all tags.","operationId":"tags_list_tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TagSource"},{"type":"null"}],"title":"Source"}},{"name":"text_search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TagSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns":{"get":{"tags":["Campaigns"],"summary":"Campaigns:List","description":"List all Campaigns.","operationId":"campaigns_list_campaigns_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"text_search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_CampaignListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Campaigns"],"summary":"Campaigns:Create","description":"Create a new Campaign.","operationId":"campaigns_create_campaigns_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignListItemSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}":{"get":{"tags":["Campaigns"],"summary":"Campaigns:Detail","description":"Retrieve a single campaign by ID.","operationId":"campaigns_detail_campaigns__campaign_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Campaigns"],"summary":"Campaigns:Partial Update","description":"Update an existing campaign partially.","operationId":"campaigns_partial_update_campaigns__campaign_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignPartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Campaigns"],"summary":"Campaigns:Delete","description":"Delete an existing campaign.","operationId":"campaigns_delete_campaigns__campaign_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chapters":{"post":{"tags":["Chapters"],"summary":"Chapters:Create","description":"Create a new chapter.","operationId":"chapters_create_chapters_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Chapters"],"summary":"Chapters:List","description":"Get video recap.","operationId":"chapters_list_chapters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"start_second","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"video_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Video Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ChapterListSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chapters/{chapter_id}":{"get":{"tags":["Chapters"],"summary":"Chapters:Detail","description":"Get chapter detail.","operationId":"chapters_detail_chapters__chapter_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chapter_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChapterDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations":{"get":{"tags":["Organizations"],"summary":"Organizations:List","description":"Retrieve Organizations from the database.","operationId":"organizations_list_organizations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_OrganizationSchema_"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["Organizations"],"summary":"Organizations:Create","operationId":"organizations_create_organizations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCreateSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/organizations/{organization_id}":{"get":{"tags":["Organizations"],"summary":"Organizations:Get","description":"Retrieve Organizations from the database.","operationId":"organizations_get_organizations__organization_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/onboard":{"post":{"tags":["Organizations"],"summary":"Organizations:Onboard","operationId":"organizations_onboard_organizations__organization_id__onboard_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationOnboardSchema"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/onboarding-status":{"put":{"tags":["Organizations"],"summary":"Organizations:Update Onboarding Status","operationId":"organizations_update_onboarding_status_organizations__organization_id__onboarding_status_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_organizations_update_onboarding_status_organizations__organization_id__onboarding_status_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/branding-assets":{"get":{"tags":["Branding assets"],"summary":"Branding-Assets:List","description":"List all branding assets.","operationId":"branding_assets_list_branding_assets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"organization_id__isnull","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by `organization_id` is null. `true`: returns global content only. `false`: returns organization-specific content only. ","title":"Organization Id  Isnull"},"description":"Filter by `organization_id` is null. `true`: returns global content only. `false`: returns organization-specific content only. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"asset_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AssetType"},{"type":"null"}],"title":"Asset Type"}},{"name":"asset_type__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by multiple types separated by commas","title":"Asset Type  In"},"description":"Filter by multiple types separated by commas","example":{}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_BrandingAssetSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Branding assets"],"summary":"Branding-Assets:Create","description":"Create a new branding asset.\n\nFor custom transition videos, validates:\n- Duration: must be less than 10 seconds\n- Resolution: minimum 480p (both width and height must be at least 480px)\n\nReturns validation errors with specific error codes:\n- `video_too_long`: Video duration exceeds 10 seconds\n- `video_resolution_too_low`: Video resolution below 480p\n- `video_invalid_file`: File is not a valid video file\n- `video_no_stream`: No video stream found in file\n- `video_metadata_error`: Unable to read video metadata\n- `video_validation_error`: General video validation error","operationId":"branding_assets_create_branding_assets_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingAssetCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingAssetSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/branding-assets/generate-upload-url":{"post":{"tags":["Branding assets"],"summary":"Branding-Assets:Generate Upload Url","description":"Generate a signed URL for uploading a branding asset.\n\n*Note: it requires setting all the x-goog-* headers!*\n\nAsset type can be one of 4 values:\n- `logo`\n- `background_image`\n- `lower_third_background`\n- `intro`\n- `outro`\n- `font`\n\n`logo`, `background_image`, `lower_third_background` must have image extension\n`intro` and `outro` must have video extension\n`font` must have font extension\n\nGenerated URL for upload example:\n\n    curl -X PUT \\\n      -H 'Content-Type: image/png' \\\n      -H 'x-goog-content-length-range: 0,10737418240' \\\n      -H 'x-goog-meta-file_name: logo.png' \\\n      --upload-file logo.png \\\n      https://storage.googleapis.com/vidoso-video-storage/logo.png?X-Goo...","operationId":"branding_assets_generate_upload_url_branding_assets_generate_upload_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateUploadUrlSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateVideoUploadedUrlSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/branding-assets/{asset_id}":{"patch":{"tags":["Branding assets"],"summary":"Branding-Assets:Partial Update","description":"Update a branding asset's name and/or description.","operationId":"branding_assets_partial_update_branding_assets__asset_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingAssetPartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingAssetSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Branding assets"],"summary":"Branding-Assets:Delete","description":"Delete a branding asset.","operationId":"branding_assets_delete_branding_assets__asset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/image-runs":{"post":{"tags":["Image Runs"],"summary":"Image-Runs:Create","description":"Create a new image run and trigger generation of items.","operationId":"image_runs_create_image_runs_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageRunCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageRunResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Image Runs"],"summary":"Image-Runs:List","description":"List image runs with filtering by campaign_id (optional) and standard filters.","operationId":"image_runs_list_image_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"source__campaign_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Source  Campaign Id"}},{"name":"source__recipe_run_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Source  Recipe Run Id"}},{"name":"source__recipe_run_step_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Source  Recipe Run Step Id"}},{"name":"source__asset_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Source  Asset Id"}},{"name":"source__conversation_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Source  Conversation Id"}},{"name":"source__type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ImageRunSourceType"},{"type":"null"}],"title":"Source  Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ImageRunStatus"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ImageRunListSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/image-runs/suggestions":{"post":{"tags":["Image Runs"],"summary":"Image-Runs:Suggestions","description":"Return visual-generation strategy suggestions (preview before image run).","operationId":"image_runs_suggestions_image_runs_suggestions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageRunSuggestionsRequestSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageRunSuggestionsResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/image-runs/{image_run_id}/generate":{"post":{"tags":["Image Runs"],"summary":"Image-Runs:Generate","description":"Add image items to an existing image run by triggering generation.","operationId":"image_runs_generate_image_runs__image_run_id__generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_run_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageRunGenerateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageRunResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/image-runs/{image_run_id}":{"patch":{"tags":["Image Runs"],"summary":"Image-Runs:Partial Update","description":"Update an image run partially (e.g. name).","operationId":"image_runs_partial_update_image_runs__image_run_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_run_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageRunPartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageRunResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Image Runs"],"summary":"Image-Runs:Detail","description":"Get the status of an image run with its items.","operationId":"image_runs_detail_image_runs__image_run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_run_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"wait_for_completion","in":"query","required":false,"schema":{"type":"boolean","description":"If true, wait for the image run to complete or fail before returning","default":false,"title":"Wait For Completion"},"description":"If true, wait for the image run to complete or fail before returning"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageRunResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Image Runs"],"summary":"Image-Runs:Delete","description":"Delete an image run (soft delete).","operationId":"image_runs_delete_image_runs__image_run_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_run_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/image-items":{"get":{"tags":["Image Items"],"summary":"Image-Items:List","description":"Get all items generated by a run.","operationId":"image_items_list_image_items_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"image_run_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Image Run Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ImageItemResponseSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/image-items/{image_item_id}":{"get":{"tags":["Image Items"],"summary":"Image-Items:Detail","description":"Get a specific image item by ID.","operationId":"image_items_detail_image_items__image_item_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_item_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageItemResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Image Items"],"summary":"Image-Items:Update","description":"Update a specific item without re-generating (metadata only).","operationId":"image_items_update_image_items__image_item_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_item_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageItemPartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageItemResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Image Items"],"summary":"Image-Items:Delete","description":"Delete an image item (soft delete).","operationId":"image_items_delete_image_items__image_item_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_item_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/image-items/{image_item_id}/refine":{"post":{"tags":["Image Items"],"summary":"Image-Items:Refine","description":"Refine a specific item with a new prompt.","operationId":"image_items_refine_image_items__image_item_id__refine_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_item_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageItemRefineSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageItemResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/image-items/{image_item_id}/export":{"post":{"tags":["Image Items"],"summary":"Image-Items:Export","description":"Export a specific item.","operationId":"image_items_export_image_items__image_item_id__export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_item_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageItemExportSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageItemExportResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/ai-studio/generate":{"post":{"tags":["Video/Clip AI Edits"],"summary":"Clips:Ai-Studio-Generate","description":"Generate a new clip with AI Studio.","operationId":"clips_ai_studio_generate_clips__clip_id__ai_studio_generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiStudioGenerateWriteSchema"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/ai-studio/generate":{"post":{"tags":["Video/Clip AI Edits"],"summary":"Videos:Ai-Studio-Generate","description":"Generate a new clip with AI Studio from the full video.","operationId":"videos_ai_studio_generate_videos__video_id__ai_studio_generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiStudioGenerateWriteSchema"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/ai-studio/complete":{"post":{"tags":["Video/Clip AI Edits"],"summary":"Clips:Ai-Studio-Complete","description":"Mark the clip as completed by AI Studio.","operationId":"clips_ai_studio_complete_clips__clip_id__ai_studio_complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipAiStudioCompleteSchema","default":{"ai_studio_removed_parts":[]}}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/trim":{"post":{"tags":["Video/Clip AI Edits"],"summary":"Clips:Trim","description":"Trim the clip with branding.\n\nNote: the editing MUST be based on the editing_source values of the clip.\nE.g. if the edited clip editing_source contains some clip_id, this clip\n    MUST be used as a source, and all timestamps are relative to it.\n    While clip_id in the path remains to be the clip being edited.","operationId":"clips_trim_clips__clip_id__trim_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrimAndBrandSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/trim":{"post":{"tags":["Video/Clip AI Edits"],"summary":"Videos:Trim","description":"Trim the clip with branding.","operationId":"videos_trim_videos__video_id__trim_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrimAndBrandSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/ai-edit":{"post":{"tags":["Video/Clip AI Edits"],"summary":"Clips:Ai Edit","description":"AI-edit the clip.\n\nDeprecated. Use `/clips/{}/trim` or `/clips/{}/ai-studio/generate instead.","operationId":"clips_ai_edit_clips__clip_id__ai_edit_post","deprecated":true,"security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipAiEditSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/ai-edit":{"post":{"tags":["Video/Clip AI Edits"],"summary":"Videos:Ai Edit","description":"AI-edit the video.\n\nUse `/videos/{}/trim` for editing instead.\nKeep using this function for AskClip flow.","operationId":"videos_ai_edit_videos__video_id__ai_edit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoAiEditSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/zoom/oauth/exchange":{"post":{"tags":["Integrations/Zoom"],"summary":"Zoom Auth","operationId":"zoom_auth_integrations_zoom_oauth_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthExchangePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Zoom Auth Integrations Zoom Oauth Exchange Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/zoom/status":{"get":{"tags":["Integrations/Zoom"],"summary":"Integrations:Zoom-Status","operationId":"integrations_zoom_status_integrations_zoom_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationStatusResponseSchema"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/zoom/revoke":{"delete":{"tags":["Integrations/Zoom"],"summary":"Integrations:Zoom-Revoke","operationId":"integrations_zoom_revoke_integrations_zoom_revoke_delete","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/integrations/zoom/recordings":{"get":{"tags":["Integrations/Zoom"],"summary":"List User Recordings","operationId":"list_user_recordings_integrations_zoom_recordings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The start date in YYYY-MM-DD format","title":"Date From"},"description":"The start date in YYYY-MM-DD format"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The end date in YYYY-MM-DD format","title":"Date To"},"description":"The end date in YYYY-MM-DD format"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Page Size"}},{"name":"next_page_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Integrations/Zoom"],"summary":"Integrations:Zoom-Upload-Recordings","operationId":"integrations_zoom_upload_recordings_integrations_zoom_recordings_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__intgs_zoom__schemas__UploadRecordingsSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Integrations Zoom Upload Recordings Integrations Zoom Recordings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/zoom/deauthorize":{"post":{"tags":["Integrations/Zoom"],"summary":"Integrations:Zoom-Deauthorize","description":"Endpoint to handle Zoom deauthorization events.\n\nVerifies the incoming webhook by constructing a message string in the format:\n\"v0:{timestamp}:{raw_body}\"\nand computing its HMAC SHA256 signature.\n\nsee the actual docs here: https://developers.zoom.us/docs/api/webhooks/#verify-webhook-events","operationId":"integrations_zoom_deauthorize_integrations_zoom_deauthorize_post","parameters":[{"name":"x-zm-request-timestamp","in":"header","required":true,"schema":{"type":"string","title":"X-Zm-Request-Timestamp"}},{"name":"x-zm-signature","in":"header","required":true,"schema":{"type":"string","title":"X-Zm-Signature"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeauthorizationEvent"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Integrations Zoom Deauthorize Integrations Zoom Deauthorize Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/blog-posts":{"get":{"tags":["Blog outlines"],"summary":"Blog Posts:List","operationId":"blog_posts_list_blog_posts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"video_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Video Id"}},{"name":"theme_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Theme Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_BlogPostListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Blog outlines"],"summary":"Blog Posts:Create","operationId":"blog_posts_create_blog_posts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/webex/oauth/exchange":{"post":{"tags":["Integrations/Webex"],"summary":"Webex Auth","description":"Exchange OAuth code for access token.","operationId":"webex_auth_integrations_webex_oauth_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthExchangePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Webex Auth Integrations Webex Oauth Exchange Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/webex/status":{"get":{"tags":["Integrations/Webex"],"summary":"Integrations:Webex-Status","description":"Get Webex integration status.","operationId":"integrations_webex_status_integrations_webex_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationStatusResponseSchema"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/webex/recordings":{"get":{"tags":["Integrations/Webex"],"summary":"List All Recordings","description":"List all recordings for the user.","operationId":"list_all_recordings_integrations_webex_recordings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"max_results","in":"query","required":false,"schema":{"type":"integer","description":"Maximum number of results","default":100,"title":"Max Results"},"description":"Maximum number of results"},{"name":"from_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The start date in YYYY-MM-DD format","title":"From Date"},"description":"The start date in YYYY-MM-DD format"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The end date in YYYY-MM-DD format","title":"To Date"},"description":"The end date in YYYY-MM-DD format"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Integrations/Webex"],"summary":"Integrations:Webex-Upload-Recordings","description":"Upload Webex recordings for processing.","operationId":"integrations_webex_upload_recordings_integrations_webex_recordings_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__intgs_webex__schemas__UploadRecordingsSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Integrations Webex Upload Recordings Integrations Webex Recordings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/webex/recordings/{recording_id}":{"get":{"tags":["Integrations/Webex"],"summary":"Get Recording Details","description":"Get details for a specific recording.","operationId":"get_recording_details_integrations_webex_recordings__recording_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recording_id","in":"path","required":true,"schema":{"type":"string","title":"Recording Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordingDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/webex/revoke":{"post":{"tags":["Integrations/Webex"],"summary":"Integrations:Webex-Revoke","description":"Remove Webex token from our infra.","operationId":"integrations_webex_revoke_integrations_webex_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Integrations Webex Revoke Integrations Webex Revoke Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/personas":{"get":{"tags":["Personas"],"summary":"Personas:List","description":"Get all personas with pagination for the organization.","operationId":"personas_list_personas_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PromptEnhancementStatus"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_PersonaListAllResponseItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Personas"],"summary":"Personas:Create","description":"Create a new persona based on the provided sources.","operationId":"personas_create_personas_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaReadSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/personas/{persona_id}":{"get":{"tags":["Personas"],"summary":"Personas:Get","description":"Get a specific persona by ID.","operationId":"personas_get_personas__persona_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"wait_for_completion","in":"query","required":false,"schema":{"type":"boolean","description":"If true, wait for the persona to complete (status is not STARTED) before returning.","default":false,"title":"Wait For Completion"},"description":"If true, wait for the persona to complete (status is not STARTED) before returning."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaGetItemByIdSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Personas"],"summary":"Personas:Update","description":"Update an existing persona.","operationId":"personas_update_personas__persona_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaReadSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Personas"],"summary":"Personas:Delete","description":"Delete a persona.","operationId":"personas_delete_personas__persona_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/personas/{persona_id}/generate":{"post":{"tags":["Personas"],"summary":"Personas:Recreate","operationId":"personas_recreate_personas__persona_id__generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaReadSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/personas/{persona_id}/publish":{"post":{"tags":["Personas"],"summary":"Personas:Publish","description":"Update an existing persona.","operationId":"personas_publish_personas__persona_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/personas/{persona_id}/test":{"post":{"tags":["Personas"],"summary":"Personas:Test","description":"Test endpoint that receives a PersonaGeneratedSchema and returns the result.","operationId":"personas_test_personas__persona_id__test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestPersonaSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestPersonaResultSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/files/upload":{"post":{"tags":["Files"],"summary":"File:Upload-File","description":"Upload a file to the organization's vector store.","operationId":"file_upload_file_files_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"is_part_of_knowledge_base","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Is Part Of Knowledge Base"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_file_upload_file_files_upload_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/files":{"get":{"tags":["Files"],"summary":"File:List-Files","description":"List files for the organization.","operationId":"file_list_files_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-updated_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"id__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id  In"}},{"name":"file_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"}},{"name":"file_name__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name  In"}},{"name":"content_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"}},{"name":"content_type__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type  In"}},{"name":"is_part_of_knowledge_base","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Part Of Knowledge Base"}},{"name":"source_file_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Source File Id"}},{"name":"variant_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FileVariantType"},{"type":"null"}],"title":"Variant Type"}},{"name":"text_search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_FileListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/files/{file_id}":{"get":{"tags":["Files"],"summary":"File:Get-File","description":"Get a file by its ID.","operationId":"file_get_file_files__file_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Files"],"summary":"File:Delete-File","description":"Delete a file.","operationId":"file_delete_file_files__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/files/{file_id}/translate":{"post":{"tags":["Files"],"summary":"File:Translate-File","description":"Request translation of a file to multiple languages.","operationId":"file_translate_file_files__file_id__translate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslateFileSchema"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/files/{file_id}/personalize":{"post":{"tags":["Files"],"summary":"File:Personalize-File","description":"Request personalization of a file to multiple personas.","operationId":"file_personalize_file_files__file_id__personalize_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalizeFileSchema"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/speaker-mappings":{"put":{"tags":["Video SpeakerMappings"],"summary":"Speaker Mappings:Replace","description":"Create a new speaker_mapping.","operationId":"speaker_mappings_replace_videos__video_id__speaker_mappings_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"entity_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TranscriptableEntityType","default":"video"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpeakerMapping"},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_SpeakerMapping_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Video SpeakerMappings"],"summary":"Speaker Mappings:List","description":"Get video speaker_mappings.","operationId":"speaker_mappings_list_videos__video_id__speaker_mappings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_SpeakerMapping_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/speaker-mappings/upsert":{"post":{"tags":["Video SpeakerMappings"],"summary":"Speaker Mappings:Upsert","description":"Update a speaker_mapping.","operationId":"speaker_mappings_upsert_videos__video_id__speaker_mappings_upsert_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"entity_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TranscriptableEntityType","default":"video"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakerMapping"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakerMapping"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/outlook/oauth/exchange":{"post":{"tags":["Integrations/Outlook"],"summary":"Integrations-Outlook:Exchange","description":"Exchange OAuth code for access token.","operationId":"integrations_outlook_exchange_integrations_outlook_oauth_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthExchangePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/outlook/status":{"get":{"tags":["Integrations/Outlook"],"summary":"Integrations-Outlook:Status","description":"Get Outlook integration status.","operationId":"integrations_outlook_status_integrations_outlook_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationStatusResponseSchema"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/outlook/revoke":{"delete":{"tags":["Integrations/Outlook"],"summary":"Integrations-Outlook:Revoke","description":"Remove Outlook token from our infra.","operationId":"integrations_outlook_revoke_integrations_outlook_revoke_delete","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/integrations/outlook/picker-token":{"get":{"tags":["Integrations/Outlook"],"summary":"Integrations-Outlook:Picker-Token","description":"Return access token for Microsoft file picker.","operationId":"integrations_outlook_picker_token_integrations_outlook_picker_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickerTokenResponseSchema"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/outlook/sharepoint-sites":{"get":{"tags":["Integrations/Outlook"],"summary":"Integrations-Outlook:Sharepoint-Sites","description":"List SharePoint sites available for the user.","operationId":"integrations_outlook_sharepoint_sites_integrations_outlook_sharepoint_sites_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_SharepointSiteSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/outlook/publish/onedrive":{"post":{"tags":["Integrations/Outlook"],"summary":"Integrations-Outlook:Publish-Onedrive","description":"Publish a file, asset, message, or image item to OneDrive.","operationId":"integrations_outlook_publish_onedrive_integrations_outlook_publish_onedrive_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutlookPublishPayloadSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/outlook/publish/sharepoint":{"post":{"tags":["Integrations/Outlook"],"summary":"Integrations-Outlook:Publish-Sharepoint","description":"Publish a file, asset, message, or image item to SharePoint.","operationId":"integrations_outlook_publish_sharepoint_integrations_outlook_publish_sharepoint_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharepointPublishPayloadSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/outlook/files/import/onedrive":{"post":{"tags":["Integrations/Outlook"],"summary":"Integrations-Outlook:Import-Onedrive-File","operationId":"integrations_outlook_import_onedrive_file_integrations_outlook_files_import_onedrive_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutlookImportOnedrivePayload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationFileImportResponseSchema"},{"$ref":"#/components/schemas/IntegrationMediaAudioImportResponseSchema"}],"title":"Response Integrations Outlook Import Onedrive File Integrations Outlook Files Import Onedrive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/outlook/files/import/sharepoint":{"post":{"tags":["Integrations/Outlook"],"summary":"Integrations-Outlook:Import-Sharepoint-File","operationId":"integrations_outlook_import_sharepoint_file_integrations_outlook_files_import_sharepoint_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutlookImportSharepointPayload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationFileImportResponseSchema"},{"$ref":"#/components/schemas/IntegrationMediaAudioImportResponseSchema"}],"title":"Response Integrations Outlook Import Sharepoint File Integrations Outlook Files Import Sharepoint Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/text-to-contents/conversations":{"post":{"tags":["Text-to-content generation for Organization, Videos, Clips, and Chapters"],"summary":"Text-To-Content:Create-Conversation","description":"Create a new conversation.\n\nThis endpoint creates a new conversation from scratch.\n\n**Parameters:**\n- **text**: Required. User input text for the conversation.\n- **source**: Required. Source configuration.\n- **content_spec**: Required. Content specification.\n\n**SSE Events (front-end guidance)**\n\n- **session.started**\n  - `{\"type\":\"session.started\"}`\n  - A new SSE stream begins for **this** assistant response; reset per-response UI state.\n\n- **reasoning.started**\n  - `{\"type\":\"reasoning.started\",\"item_id\":<item_id>,\"text\":\"\"}`\n  - Assistant has begun planning; show a \"thinking…\" spinner.\n\n- **reasoning.delta**\n  - `{\"type\":\"reasoning.delta\",\"item_id\":<item_id>,\"delta\":<text>}`\n  - Stream chain-of-thought chunks.\n\n- **reasoning.completed**\n  - `{\"type\":\"reasoning.completed\",\"item_id\":<item_id>,\"text\":<summary>}`\n  - Hide spinner; surface `text` as a collapsible \"Why I answered this way\" summary.\n\n- **tool_call.started**\n  - `{\"type\":\"tool_call.started\",\"item_id\":<item_id>,\"call_id\":<call_id>,\"name\":<tool_name>,\"label\":<label>}`\n  - UI can overlay \"Running <label>…\" with a progress indicator.\n\n- **tool_call.arguments_completed**\n  - `{\"type\":\"tool_call.arguments_completed\",\"item_id\":<item_id>,\"call_id\":<call_id>,\"name\":<tool_name>,\"label\":<label>,\"parsed_arguments\":<args_object>}`\n  - Arguments validated; keep the progress overlay active. Optionally, show `parsed_arguments.query` in the UI.\n\n- **tool_call.completed**\n  - `{\"type\":\"tool_call.completed\",\"item_id\":<item_id>,\"call_id\":<call_id>,\"name\":<tool_name>,\"label\":<label>,\"parsed_arguments\":<args_object>}`\n  - Tool finished; dismiss the overlay. `parsed_arguments` will typically be present.\n\n- **search_vectara tool events**\n  - `{\"type\":\"tool_call.started\",\"item_id\":\"fc_2\",\"call_id\":\"call_2\",\"name\":\"search_vectara\",\"label\":\"Looking for information in your library\"}`\n  - `{\"type\":\"tool_call.arguments_completed\",\"item_id\":\"fc_2\",\"call_id\":\"call_2\",\"name\":\"search_vectara\",\"label\":\"Looking for information in your library\",\"parsed_arguments\":{\"query\":\"query1\"}}`\n  - `{\"type\":\"tool_call.completed\",\"item_id\":\"fc_2\",\"call_id\":\"call_2\",\"name\":\"search_vectara\",\"label\":\"Looking for information in your library\",\"parsed_arguments\":{\"query\":\"query1\"}}`\n  - Used for searching information in the user's library.\n\n- **search_web tool events**\n  - `{\"type\":\"tool_call.started\",\"item_id\":\"sw_1\",\"call_id\":\"call_3\",\"name\":\"search_web\",\"label\":\"Searching the web\"}`\n  - `{\"type\":\"tool_call.arguments_completed\",\"item_id\":\"sw_1\",\"call_id\":\"call_3\",\"name\":\"search_web\",\"label\":\"Searching the web\",\"parsed_arguments\":{\"query\":\"query1\"}}`\n  - `{\"type\":\"tool_call.completed\",\"item_id\":\"sw_1\",\"call_id\":\"call_3\",\"name\":\"search_web\",\"label\":\"Searching the web\",\"parsed_arguments\":{\"query\":\"query1\"}}`\n  - Used for performing a web search.\n\n- **message.started**\n  - `{\"type\":\"message.started\",\"item_id\":<item_id>,\"text\":\"\"}`\n  - Create an empty assistant bubble ready for streaming.\n\n- **message.delta**\n  - `{\"type\":\"message.delta\",\"item_id\":<item_id>,\"delta\":<text>}`\n  - Append `delta` to the bubble in real time.\n\n- **message.completed**\n  - `{\"type\":\"message.completed\",\"item_id\":<item_id>,\"text\":<full_text>}`\n  - Bubble finalised; re-enable user input.\n\n- **citation.started**\n  - `{\"type\":\"citation.started\"}`\n  - Citation generation has begun; display \"in progress\" indicator in references section.\n\n- **citation.item_added**\n  - `{\"type\":\"citation.item_added\",\"citation\":{\"type\":\"video\",\"id\":\"507f1f77bcf86cd799439011\",\"title\":\"Introduction to Machine Learning\",\"snippet\":\"Neural networks are composed of layers...\",\"citation_spans\":[{\"start_index\":145,\"end_index\":203}],\"start_second\":12.5,\"end_second\":24.8}}`\n  - A single citation reference was added. Each `citation_spans` entry contains `start_index` and `end_index` marking cited text in the content. Add to references list, enable hover highlighting.\n  - Citation types: `video` (with `start_second`/`end_second`), `audio` (with `start_second`/`end_second`), `clip`, `chapter` (with `start_second`/`end_second`), `file` (with `page`), `web` (with `url`).\n\n- **citation.item_spans_added**\n  - `{\"type\":\"citation.item_spans_added\",\"index\":0,\"citation_spans\":[{\"start_index\":20,\"end_index\":30}]}`\n  - A list of spans was added to a citation reference. Each span contains `start_index` and `end_index` marking cited text in the content.\n\n- **citation.citation_completed**\n  - `{\"type\":\"citation.citation_completed\",\"citations\":[<list_of_all_citations>]}`\n  - All citations generated; remove loading state from references block.\n\n- **session.completed**\n  - `{\"type\":\"session.completed\",\"conversation_id\":<conversation_id>,\"title\":<title>}`\n  - All chunks delivered; you may close or recycle the SSE connection.\n  - `conversation_id` should be persisted in FE state to continue the conversation.\n  - `title` contains the generated conversation title, if available.\n\n- **error**\n  - `{\"type\":\"error\",\"message\":<error_message>,\"code\":<error_code>,\"item_id\":<item_id>}`\n  - An error occurred; FE should allow the user to retry from the last state.","operationId":"text_to_content_create_conversation_text_to_contents_conversations_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcConversationCreateSchema"}}}},"responses":{"200":{"description":"New conversation created and response is being streamed.","content":{"text/event-stream; charset=utf-8":{"example":"event: session.started\ndata: {\"type\":\"session.started\"}\n\nevent: reasoning.started\ndata: {\"type\":\"reasoning.started\", \"item_id\":\"rs_abc123\", \"text\":\"\"}\n\nevent: reasoning.delta\ndata: {\"type\":\"reasoning.delta\", \"item_id\":\"rs_abc123\", \"delta\":\"The user's query is broad. I will check my internal library, the uploaded files, and the web.\"}\n\nevent: reasoning.completed\ndata: {\"type\":\"reasoning.completed\", \"item_id\":\"rs_abc123\", \"text\":\"The user's query is broad. I will check my internal library, the uploaded files, and the web.\"}\n\nevent: tool_call.started\ndata: {\"type\":\"tool_call.started\", \"item_id\":\"tc_vec456\", \"call_id\":\"call_vec789\", \"name\":\"search_vectara\", \"label\":\"Looking for information in your library\"}\n\nevent: tool_call.arguments_completed\ndata: {\"type\":\"tool_call.arguments_completed\", \"item_id\":\"tc_vec456\", \"call_id\":\"call_vec789\", \"name\":\"search_vectara\", \"label\":\"Looking for information in your library\", \"parsed_arguments\":{\"query\":\"uploader\"}}\n\nevent: tool_call.completed\ndata: {\"type\":\"tool_call.completed\", \"item_id\":\"tc_vec456\", \"call_id\":\"call_vec789\", \"name\":\"search_vectara\", \"label\":\"Looking for information in your library\", \"parsed_arguments\":{\"query\":\"uploader\"}}\n\nevent: tool_call.started\ndata: {\"type\":\"tool_call.started\", \"item_id\":\"tc_web222\", \"call_id\":\"call_web333\", \"name\":\"search_web\", \"label\":\"Searching the web\"}\n\nevent: tool_call.arguments_completed\ndata: {\"type\":\"tool_call.arguments_completed\", \"item_id\":\"tc_web222\", \"call_id\":\"call_web333\", \"name\":\"search_web\", \"label\":\"Searching the web\", \"parsed_arguments\":{\"query\":\"average number of videos uploaded per user\"}}\n\nevent: tool_call.completed\ndata: {\"type\":\"tool_call.completed\", \"item_id\":\"tc_web222\", \"call_id\":\"call_web333\", \"name\":\"search_web\", \"label\":\"Searching the web\", \"parsed_arguments\":{\"query\":\"average number of videos uploaded per user\"}}\n\nevent: reasoning.started\ndata: {\"type\":\"reasoning.started\", \"item_id\":\"rs_jkl012\", \"text\":\"\"}\n\nevent: reasoning.delta\ndata: {\"type\":\"reasoning.delta\", \"item_id\":\"rs_jkl012\", \"delta\":\"Combining data and preparing the final summary...\"}\n\nevent: reasoning.completed\ndata: {\"type\":\"reasoning.completed\", \"item_id\":\"rs_jkl012\", \"text\":\"Combining data from all sources and preparing the final summary.\"}\n\nevent: message.started\ndata: {\"type\":\"message.started\", \"item_id\":\"msg_mno345\", \"text\":\"\"}\n\nevent: message.delta\ndata: {\"type\":\"message.delta\", \"item_id\":\"msg_mno345\", \"delta\":\"### Video Upload Summary\n\n\"}\n\nevent: message.completed\ndata: {\"type\":\"message.completed\", \"item_id\":\"msg_mno345\", \"text\":\"### Video Upload Summary\n\n| Uploader | Videos Uploaded |\n|---|---|\n| Alice | 7 |\n| Bob | 4 |\n| **Total** | **36** |\n\nThe counts were derived from the upload log. For context, major platforms see millions of daily uploads.\"}\n\nevent: citation.started\ndata: {\"type\":\"citation.started\"}\n\nevent: citation.item_added\ndata: {\"type\":\"citation.item_added\", \"citation\": {\"type\": \"video\", \"title\": \"Video 1\", \"snippet\": \"Video 1 snippet\", \"citation_spans\": [{\"start_index\": 0, \"end_index\": 10}], \"id\": \"video_id_123\", \"start_second\": 12.0, \"end_second\": 24.0}}\n\nevent: citation.item_spans_added\ndata: {\"type\":\"citation.item_spans_added\", \"index\": 0, \"citation_spans\": [{\"start_index\": 20, \"end_index\": 30}]}\n\nevent: citation.citation_completed\ndata: {\"type\":\"citation.citation_completed\", \"citations\": [<list of all citations that were sent before>]}\n\nevent: session.completed\ndata: {\"type\":\"session.completed\",\"conversation_id\":\"conv_123\",\"title\":\"AI Discussion\"}\n"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Text-to-content generation for Organization, Videos, Clips, and Chapters"],"summary":"Text-To-Content:List-Conversations","description":"List all conversations for the authenticated user.\n\nThis endpoint retrieves all conversations.\nConversations are returned in reverse chronological order.","operationId":"text_to_content_list_conversations_text_to_contents_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"List of conversations retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TtcConversationListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/text-to-contents/conversations/{conversation_id}/messages":{"post":{"tags":["Text-to-content generation for Organization, Videos, Clips, and Chapters"],"summary":"Text-To-Content:Continue-Conversation","description":"Continue an existing conversation.\n\nThis endpoint adds a new message to an existing conversation.\n\n**Parameters:**\n- **conversation_id**: Required. The ID of the conversation to continue.\n- **text**: Required. User input text for the conversation.\n\n**SSE Events:**\nSame as the create conversation endpoint.","operationId":"text_to_content_continue_conversation_text_to_contents_conversations__conversation_id__messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcConversationMessageCreateSchema"}}}},"responses":{"200":{"description":"Message added to conversationand response is being streamed.","content":{"text/event-stream; charset=utf-8":{"example":"event: session.started\ndata: {\"type\":\"session.started\"}\n\nevent: reasoning.started\ndata: {\"type\":\"reasoning.started\", \"item_id\":\"rs_abc123\", \"text\":\"\"}\n\nevent: reasoning.delta\ndata: {\"type\":\"reasoning.delta\", \"item_id\":\"rs_abc123\", \"delta\":\"The user's query is broad. I will check my internal library, the uploaded files, and the web.\"}\n\nevent: reasoning.completed\ndata: {\"type\":\"reasoning.completed\", \"item_id\":\"rs_abc123\", \"text\":\"The user's query is broad. I will check my internal library, the uploaded files, and the web.\"}\n\nevent: tool_call.started\ndata: {\"type\":\"tool_call.started\", \"item_id\":\"tc_vec456\", \"call_id\":\"call_vec789\", \"name\":\"search_vectara\", \"label\":\"Looking for information in your library\"}\n\nevent: tool_call.arguments_completed\ndata: {\"type\":\"tool_call.arguments_completed\", \"item_id\":\"tc_vec456\", \"call_id\":\"call_vec789\", \"name\":\"search_vectara\", \"label\":\"Looking for information in your library\", \"parsed_arguments\":{\"query\":\"uploader\"}}\n\nevent: tool_call.completed\ndata: {\"type\":\"tool_call.completed\", \"item_id\":\"tc_vec456\", \"call_id\":\"call_vec789\", \"name\":\"search_vectara\", \"label\":\"Looking for information in your library\", \"parsed_arguments\":{\"query\":\"uploader\"}}\n\nevent: tool_call.started\ndata: {\"type\":\"tool_call.started\", \"item_id\":\"tc_web222\", \"call_id\":\"call_web333\", \"name\":\"search_web\", \"label\":\"Searching the web\"}\n\nevent: tool_call.arguments_completed\ndata: {\"type\":\"tool_call.arguments_completed\", \"item_id\":\"tc_web222\", \"call_id\":\"call_web333\", \"name\":\"search_web\", \"label\":\"Searching the web\", \"parsed_arguments\":{\"query\":\"average number of videos uploaded per user\"}}\n\nevent: tool_call.completed\ndata: {\"type\":\"tool_call.completed\", \"item_id\":\"tc_web222\", \"call_id\":\"call_web333\", \"name\":\"search_web\", \"label\":\"Searching the web\", \"parsed_arguments\":{\"query\":\"average number of videos uploaded per user\"}}\n\nevent: reasoning.started\ndata: {\"type\":\"reasoning.started\", \"item_id\":\"rs_jkl012\", \"text\":\"\"}\n\nevent: reasoning.delta\ndata: {\"type\":\"reasoning.delta\", \"item_id\":\"rs_jkl012\", \"delta\":\"Combining data and preparing the final summary...\"}\n\nevent: reasoning.completed\ndata: {\"type\":\"reasoning.completed\", \"item_id\":\"rs_jkl012\", \"text\":\"Combining data from all sources and preparing the final summary.\"}\n\nevent: message.started\ndata: {\"type\":\"message.started\", \"item_id\":\"msg_mno345\", \"text\":\"\"}\n\nevent: message.delta\ndata: {\"type\":\"message.delta\", \"item_id\":\"msg_mno345\", \"delta\":\"### Video Upload Summary\n\n\"}\n\nevent: message.completed\ndata: {\"type\":\"message.completed\", \"item_id\":\"msg_mno345\", \"text\":\"### Video Upload Summary\n\n| Uploader | Videos Uploaded |\n|---|---|\n| Alice | 7 |\n| Bob | 4 |\n| **Total** | **36** |\n\nThe counts were derived from the upload log. For context, major platforms see millions of daily uploads.\"}\n\nevent: citation.started\ndata: {\"type\":\"citation.started\"}\n\nevent: citation.item_added\ndata: {\"type\":\"citation.item_added\", \"citation\": {\"type\": \"video\", \"title\": \"Video 1\", \"snippet\": \"Video 1 snippet\", \"citation_spans\": [{\"start_index\": 0, \"end_index\": 10}], \"id\": \"video_id_123\", \"start_second\": 12.0, \"end_second\": 24.0}}\n\nevent: citation.item_spans_added\ndata: {\"type\":\"citation.item_spans_added\", \"index\": 0, \"citation_spans\": [{\"start_index\": 20, \"end_index\": 30}]}\n\nevent: citation.citation_completed\ndata: {\"type\":\"citation.citation_completed\", \"citations\": [<list of all citations that were sent before>]}\n\nevent: session.completed\ndata: {\"type\":\"session.completed\",\"conversation_id\":\"conv_123\",\"title\":\"AI Discussion\"}\n"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Text-to-content generation for Organization, Videos, Clips, and Chapters"],"summary":"Text-To-Content:Get-Conversation-Messages","description":"Get messages from the conversation by conversation ID.\n\nThis endpoint retrieves messages from a conversation stored in the database.\nMessages are returned in reverse chronological order (newest first).\n\n**Parameters:**\n- **conversation_id**: The ID of the conversation to retrieve messages from.","operationId":"text_to_content_get_conversation_messages_text_to_contents_conversations__conversation_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TtcConversationMessageListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/message-hierarchies":{"put":{"tags":["Message Hierarchy"],"summary":"Message Hierarchy:Replace","operationId":"message_hierarchy_replace_organizations__organization_id__message_hierarchies_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageHierarchyCreateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageHierarchyDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Message Hierarchy"],"summary":"Message Hierarchy:Retrieve","operationId":"message_hierarchy_retrieve_organizations__organization_id__message_hierarchies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageHierarchyDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/posts/":{"get":{"tags":["Posts for publishing"],"summary":"Posts:Get-Posts","operationId":"posts_get_posts_posts__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_PostListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/posts/bulk":{"post":{"tags":["Posts for publishing"],"summary":"Posts:Create-Post","operationId":"posts_create_post_posts_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCreateBulkSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PostListItemSchema"},"type":"array","title":"Response Posts Create Post Posts Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/posts/for_scheduling":{"get":{"tags":["Posts for publishing"],"summary":"Posts:Get-Posts-For-Scheduling","description":"Get posts for scheduling by the publishing-cron service.","operationId":"posts_get_posts_for_scheduling_posts_for_scheduling_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"scheduled_at","title":"Order By"}},{"name":"scheduled_at__gte","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At  Gte"}},{"name":"scheduled_at__lte","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At  Lte"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_PostScheduleSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/posts/{post_id}":{"get":{"tags":["Posts for publishing"],"summary":"Posts:Get-Post","operationId":"posts_get_post_posts__post_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostListItemSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Posts for publishing"],"summary":"Posts:Partial Update","description":"Get posts for scheduling by the publishing (worker and cron) services.\n\nIt mostly should be used for updating status.","operationId":"posts_partial_update_posts__post_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostPartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostListItemSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/vocabulary":{"get":{"tags":["Organizations Brand Vocabulary"],"summary":"Organization Vocabulary:List","operationId":"organization_vocabulary_list_organizations__organization_id__vocabulary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_BrandVocabulary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Organizations Brand Vocabulary"],"summary":"Organization Vocabulary:Replace","operationId":"organization_vocabulary_replace_organizations__organization_id__vocabulary_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationVocabularyUpdateAllSchema"},"title":"Payload"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/vocabulary/upsert":{"post":{"tags":["Organizations Brand Vocabulary"],"summary":"Organization Vocabulary:Upsert","operationId":"organization_vocabulary_upsert_organizations__organization_id__vocabulary_upsert_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationVocabularyUpdateOneSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/vocabulary/{word}":{"delete":{"tags":["Organizations Brand Vocabulary"],"summary":"Organization Vocabulary:Delete","operationId":"organization_vocabulary_delete_organizations__organization_id__vocabulary__word__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"word","in":"path","required":true,"schema":{"type":"string","title":"Word"}},{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recap-blogs":{"get":{"tags":["Recap blogs"],"summary":"Recap Blogs:List","operationId":"recap_blogs_list_recap_blogs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"video_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Video Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_RecapBlogListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Recap blogs"],"summary":"Recap Blogs:Create","operationId":"recap_blogs_create_recap_blogs_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecapBlogCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecapBlogDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/dev/refresh-access-token":{"post":{"tags":["Authentication"],"summary":"Refresh Access Token","description":"Obtain new access token using the refresh token.\n\nThis endpoint should be used for the development purpose only.\nUse Descope's /auth/refresh-token endpoint in production.","operationId":"refresh_access_token_auth_dev_refresh_access_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_refresh_access_token_auth_dev_refresh_access_token_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtTokenSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/exchange-access-key":{"post":{"tags":["Authentication"],"summary":"Exchange Access Key","description":"Obtain access token using the access key.","operationId":"exchange_access_key_auth_exchange_access_key_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_exchange_access_key_auth_exchange_access_key_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtTokenSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recipes":{"get":{"tags":["Recipes"],"summary":"Recipes:List","description":"List all Recipes.","operationId":"recipes_list_recipes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"is_created_from_suggested_asset","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Is Created From Suggested Asset"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_RecipeListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Recipes"],"summary":"Recipes:Create","description":"Create a new Recipes.","operationId":"recipes_create_recipes_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipesCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recipes/{recipe_id}":{"get":{"tags":["Recipes"],"summary":"Recipes:Detail","description":"Retrieve a single recipe by ID.","operationId":"recipes_detail_recipes__recipe_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Recipes"],"summary":"Recipes:Partial Update","description":"Update an existing recipe partially.","operationId":"recipes_partial_update_recipes__recipe_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipePartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Recipes"],"summary":"Recipes:Delete","operationId":"recipes_delete_recipes__recipe_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"recipe_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health_check":{"get":{"tags":["Health Check"],"summary":"Health:Check","operationId":"health_check_health_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthCheckResponse"}}}}}}},"/clips/{clip_id}/brand":{"post":{"tags":["Video/Clip Branding"],"summary":"Clips:Brand","description":"Brand a clip with the branding service.\n\nDeprecated: use /clips/{clip_id}/trim instead.","operationId":"clips_brand_clips__clip_id__brand_post","deprecated":true,"security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipBrandWriteSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/brand":{"post":{"tags":["Video/Clip Branding"],"summary":"Videos:Brand","description":"Brand a video with the branding service.\n\nDeprecated: use /clips/{clip_id}/trim instead.","operationId":"videos_brand_videos__video_id__brand_post","deprecated":true,"security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoBrandWriteSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/export":{"post":{"tags":["Video/Clip Branding"],"summary":"Clips:Export","description":"If clip is already exist in bucket we just return the signed url on it.\n\nOtherwise, send the clip to the further processing that created the clip with\n branding/template and send it via email.","operationId":"clips_export_clips__clip_id__export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportClipPayload"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportClipResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/export/complete":{"post":{"tags":["Video/Clip Branding"],"summary":"Clips:Export-Complete","description":"Mark clip as exported.","operationId":"clips_export_complete_clips__clip_id__export_complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-drive/oauth/exchange":{"post":{"tags":["Integrations/GoogleDrive"],"summary":"Integrations:Google-Drive-Auth","description":"Exchange authorization code for tokens.","operationId":"integrations_google_drive_auth_integrations_google_drive_oauth_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthExchangePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Integrations Google Drive Auth Integrations Google Drive Oauth Exchange Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/google-drive/status":{"get":{"tags":["Integrations/GoogleDrive"],"summary":"Integrations:Google-Drive-Status","description":"Get connection status.","operationId":"integrations_google_drive_status_integrations_google_drive_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationStatusResponseSchema"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/google-drive/revoke":{"delete":{"tags":["Integrations/GoogleDrive"],"summary":"Integrations:Google-Drive-Revoke","description":"Revoke OAuth token and disconnect.","operationId":"integrations_google_drive_revoke_integrations_google_drive_revoke_delete","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/integrations/google-drive/picker-token":{"get":{"tags":["Integrations/GoogleDrive"],"summary":"Integrations:Google-Drive-Picker-Token","description":"Get a read-only token for Google Drive Picker UI.","operationId":"integrations_google_drive_picker_token_integrations_google_drive_picker_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleDrivePickerTokenResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/google-drive/files/import":{"post":{"tags":["Integrations/GoogleDrive"],"summary":"Integrations:Google-Drive-Import-Files","description":"Import files from Google Drive by ID: download from Drive and upload to GCS.\n\nUI sends file IDs from the Google Drive picker; backend downloads each file\nto a temp path. If the file is audio (by MIME), a MediaAudio is created and\ntranscript processing is triggered; otherwise a File is created. Duplicates\n(by content hash) are skipped.","operationId":"integrations_google_drive_import_files_integrations_google_drive_files_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleDriveImportFilesPayload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationFileImportResponseSchema"},{"$ref":"#/components/schemas/IntegrationMediaAudioImportResponseSchema"}],"title":"Response Integrations Google Drive Import Files Integrations Google Drive Files Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/google-drive/publish":{"post":{"tags":["Integrations/GoogleDrive"],"summary":"Integrations:Google-Drive-Publish","description":"Publish to Google Drive (conversation asset, file, or image item).","operationId":"integrations_google_drive_publish_integrations_google_drive_publish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleDrivePublishPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleDriveImportFileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/videos/{video_id}/raw-transcripts":{"get":{"tags":["Video/Clip/Audio Raw Transcripts"],"summary":"Raw Transcripts:List","description":"Get video raw transcripts.","operationId":"raw_transcripts_list_videos__video_id__raw_transcripts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"start_second","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Start Second"}},{"name":"end_second","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"End Second"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_RawTranscriptSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/raw-transcripts/update-word":{"post":{"tags":["Video/Clip/Audio Raw Transcripts"],"summary":"Raw Transcripts:Update Word","description":"Update raw transcript word for video.","operationId":"raw_transcripts_update_word_videos__video_id__raw_transcripts_update_word_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRawTranscriptSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/raw-transcripts":{"get":{"tags":["Video/Clip/Audio Raw Transcripts"],"summary":"Raw Transcripts:List","description":"Get clip raw transcripts.","operationId":"raw_transcripts_list_clips__clip_id__raw_transcripts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"start_second","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Start Second"}},{"name":"end_second","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"End Second"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_RawTranscriptSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/raw-transcripts/update-word":{"post":{"tags":["Video/Clip/Audio Raw Transcripts"],"summary":"Raw Transcripts:Update Word","description":"Update raw transcript word for clip.","operationId":"raw_transcripts_update_word_clips__clip_id__raw_transcripts_update_word_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRawTranscriptSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/raw-transcripts/update-word-all":{"post":{"tags":["Video/Clip/Audio Raw Transcripts"],"summary":"Raw Transcripts:Update Word All","description":"This route may be removed at any time.","operationId":"raw_transcripts_update_word_all_clips__clip_id__raw_transcripts_update_word_all_post","deprecated":true,"security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAllRawTranscriptSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_UpdateWordAllDiffSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/videos/{video_id}/raw-transcripts/update-word-all":{"post":{"tags":["Video/Clip/Audio Raw Transcripts"],"summary":"Raw Transcripts:Update Word All","description":"Update word in transcripts for clip.\n\nVideo Raw Transcripts in AlloyDB.\nClips Original Transcript\n\nNote: this does not re-index the updated text in any search backend.","operationId":"raw_transcripts_update_word_all_videos__video_id__raw_transcripts_update_word_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAllRawTranscriptSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_UpdateWordAllDiffSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media-audios/{media_audio_id}/raw-transcripts":{"get":{"tags":["Video/Clip/Audio Raw Transcripts"],"summary":"Raw Transcripts:List","description":"Get media audio raw transcripts.","operationId":"raw_transcripts_list_media_audios__media_audio_id__raw_transcripts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"media_audio_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"start_second","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Start Second"}},{"name":"end_second","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"End Second"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_RawTranscriptSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates":{"get":{"tags":["Templates"],"summary":"Templates:List","description":"List all templates.","operationId":"templates_list_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-updated_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"organization_id__isnull","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by `organization_id` is null. `true`: returns global content only. `false`: returns organization-specific content only. ","title":"Organization Id  Isnull"},"description":"Filter by `organization_id` is null. `true`: returns global content only. `false`: returns organization-specific content only. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TemplateDetailSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Templates"],"summary":"Templates:Create","description":"Create a new template.","operationId":"templates_create_templates_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateCreateWithGlobalSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetailWithGlobalSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates/{template_id}":{"get":{"tags":["Templates"],"summary":"Templates:Get","description":"Get a template by ID.","operationId":"templates_get_templates__template_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Templates"],"summary":"Templates:Update","description":"Update a template.","operationId":"templates_update_templates__template_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Templates"],"summary":"Templates:Delete","description":"Delete a template.","operationId":"templates_delete_templates__template_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/writing-styles":{"get":{"tags":["Writing styles"],"summary":"Writing Style:List","description":"List all Writing styles.","operationId":"writing_style_list_writing_styles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PromptEnhancementStatus"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_WritingStyleListAllResponseItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Writing styles"],"summary":"Writing Style:Create","description":"Create a new Writing styles.","operationId":"writing_style_create_writing_styles_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritingStyleCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritingStyleReadSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/writing-styles/{writing_style_id}/generate":{"post":{"tags":["Writing styles"],"summary":"Writing Style:Recreate","description":"Recreate a new Writing styles.","operationId":"writing_style_recreate_writing_styles__writing_style_id__generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"writing_style_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritingStyleCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritingStyleReadSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/writing-styles/{writing_style_id}":{"get":{"tags":["Writing styles"],"summary":"Writing Style:Detail","description":"Get a specific writing style by ID.","operationId":"writing_style_detail_writing_styles__writing_style_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"writing_style_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}},{"name":"wait_for_completion","in":"query","required":false,"schema":{"type":"boolean","description":"If true, wait for the writing style to complete (status is not STARTED) before returning.","default":false,"title":"Wait For Completion"},"description":"If true, wait for the writing style to complete (status is not STARTED) before returning."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritingStyleGetItemByIdSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Writing styles"],"summary":"Writing Style:Delete","description":"Delete an existing writing styles.","operationId":"writing_style_delete_writing_styles__writing_style_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"writing_style_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Writing styles"],"summary":"Writing Style:Update","description":"Update an existing writing style.","operationId":"writing_style_update_writing_styles__writing_style_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"writing_style_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritingStyleUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritingStyleReadSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/writing-styles/{writing_style_id}/publish":{"post":{"tags":["Writing styles"],"summary":"Writing Style:Publish","description":"Update an existing writing style.","operationId":"writing_style_publish_writing_styles__writing_style_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"writing_style_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/writing-styles/{writing_style_id}/test":{"post":{"tags":["Writing styles"],"summary":"Writing Style:Test","description":"Test endpoint that receives generates an output for the prompt provided.","operationId":"writing_style_test_writing_styles__writing_style_id__test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"writing_style_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestWritingStyleSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestWritingStyleResultSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/text-to-contents/generate":{"post":{"tags":["Text-to-content generation for Organization, Videos, Clips, and Chapters"],"summary":"Text-To-Content:Generate","description":"Generate Social Media Content from Text.\n\n**SSE Events (front-end guidance)**\n\n- **session.started**\n  - `{\"type\":\"session.started\"}`\n  - A new SSE stream begins for **this** assistant response; reset per-response UI state.\n\n- **tool_call.started**\n  - `{\"type\":\"tool_call.started\",\"item_id\":<item_id>,\"call_id\":<call_id>,\"name\":<tool_name>,\"label\":<label>}`\n  - UI can overlay \"Running <label>…\" with a progress indicator.\n\n- **tool_call.arguments_completed**\n  - `{\"type\":\"tool_call.arguments_completed\",\"item_id\":<item_id>,\"call_id\":<call_id>,\"name\":<tool_name>,\"label\":<label>,\"parsed_arguments\":<args_object>}`\n  - Arguments validated; keep the progress overlay active. Optionally, show `parsed_arguments.query` in the UI.\n\n- **tool_call.completed**\n  - `{\"type\":\"tool_call.completed\",\"item_id\":<item_id>,\"call_id\":<call_id>,\"name\":<tool_name>,\"label\":<label>,\"parsed_arguments\":<args_object>}`\n  - Tool finished; dismiss the overlay. `parsed_arguments` will typically be present.\n\n- **search_vectara tool events**\n  - `{\"type\":\"tool_call.started\",\"item_id\":\"fc_2\",\"call_id\":\"call_2\",\"name\":\"search_vectara\",\"label\":\"Looking for information in your library\"}`\n  - `{\"type\":\"tool_call.arguments_completed\",\"item_id\":\"fc_2\",\"call_id\":\"call_2\",\"name\":\"search_vectara\",\"label\":\"Looking for information in your library\",\"parsed_arguments\":{\"query\":\"query1\"}}`\n  - `{\"type\":\"tool_call.completed\",\"item_id\":\"fc_2\",\"call_id\":\"call_2\",\"name\":\"search_vectara\",\"label\":\"Looking for information in your library\",\"parsed_arguments\":{\"query\":\"query1\"}}`\n  - Used for searching information in the user's library.\n\n- **search_web tool events**\n  - `{\"type\":\"tool_call.started\",\"item_id\":\"sw_1\",\"call_id\":\"call_3\",\"name\":\"search_web\",\"label\":\"Searching the web\"}`\n  - `{\"type\":\"tool_call.arguments_completed\",\"item_id\":\"sw_1\",\"call_id\":\"call_3\",\"name\":\"search_web\",\"label\":\"Searching the web\",\"parsed_arguments\":{\"query\":\"query1\"}}`\n  - `{\"type\":\"tool_call.completed\",\"item_id\":\"sw_1\",\"call_id\":\"call_3\",\"name\":\"search_web\",\"label\":\"Searching the web\",\"parsed_arguments\":{\"query\":\"query1\"}}`\n  - Used for performing a web search.\n\n- **message.started**\n  - `{\"type\":\"message.started\",\"item_id\":<item_id>,\"text\":\"\"}`\n  - Create an empty assistant bubble ready for streaming.\n\n- **message.delta**\n  - `{\"type\":\"message.delta\",\"item_id\":<item_id>,\"delta\":<text>}`\n  - Append `delta` to the bubble in real time.\n\n- **message.completed**\n  - `{\"type\":\"message.completed\",\"item_id\":<item_id>,\"text\":<full_text>}`\n  - Bubble finalised; re-enable user input.\n\n- **session.completed**\n  - `{\"type\":\"session.completed\",\"conversation_id\":<conversation_id>,\"title\":<title>}`\n  - All chunks delivered; you may close or recycle the SSE connection.\n  - `conversation_id` should be persisted in FE state to continue the conversation.\n  - `title` contains the generated conversation title, if available.\n\n- **error**\n  - `{\"type\":\"error\",\"message\":<error_message>,\"code\":<error_code>,\"item_id\":<item_id>}`\n  - An error occurred; FE should allow the user to retry from the last state.","operationId":"text_to_content_generate_text_to_contents_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextToContentRequest"}}},"required":true},"responses":{"200":{"description":"New conversation created and response is being streamed.","content":{"text/event-stream; charset=utf-8":{"example":"event: session.started\ndata: {\"type\":\"session.started\"}\n\nevent: tool_call.started\ndata: {\"type\":\"tool_call.started\",\"item_id\":\"0\",\"call_id\":\"toolu_01EWqDTfxeZk6wQchKafGPaw\",\"name\":\"search_vectara\",\"label\":\"Looking for information in your library\"}\n\nevent: tool_call.arguments_completed\ndata: {\"type\":\"tool_call.arguments_completed\",\"item_id\":\"0\",\"call_id\":\"toolu_01EWqDTfxeZk6wQchKafGPaw\",\"name\":\"search_vectara\",\"label\":\"Looking for information in your library\",\"parsed_arguments\":{\"query\":\"Vidoso AI tools features capabilities\"}}\n\nevent: tool_call.started\ndata: {\"type\":\"tool_call.started\",\"item_id\":\"1\",\"call_id\":\"toolu_0186NVASazTx1P3JU4BrkLNE\",\"name\":\"search_web\",\"label\":\"Searching the web\"}\n\nevent: tool_call.arguments_completed\ndata: {\"type\":\"tool_call.arguments_completed\",\"item_id\":\"1\",\"call_id\":\"toolu_0186NVASazTx1P3JU4BrkLNE\",\"name\":\"search_web\",\"label\":\"Searching the web\",\"parsed_arguments\":{\"query\":\"Vidoso AI video tools features capabilities 2024\",\"num_results\":5}}\n\nevent: tool_call.completed\ndata: {\"type\":\"tool_call.completed\",\"item_id\":\"0\",\"call_id\":\"toolu_01EWqDTfxeZk6wQchKafGPaw\",\"name\":\"search_vectara\",\"label\":\"Looking for information in your library\",\"parsed_arguments\":{\"query\":\"Vidoso AI tools features capabilities\"}}\n\nevent: tool_call.completed\ndata: {\"type\":\"tool_call.completed\",\"item_id\":\"1\",\"call_id\":\"toolu_0186NVASazTx1P3JU4BrkLNE\",\"name\":\"search_web\",\"label\":\"Searching the web\",\"parsed_arguments\":{\"query\":\"Vidoso AI video tools features capabilities 2024\",\"num_results\":5}}\n\n: ping - 2025-08-06 15:32:34.216637+00:00\n\nevent: message.started\ndata: {\"type\":\"message.started\",\"item_id\":\"0\",\"text\":\"\"}\n\nevent: message.delta\ndata: {\"type\":\"message.delta\",\"item_id\":\"0\",\"delta\":\"<html\"}\n\nevent: message.delta\ndata: {\"type\":\"message.delta\",\"item_id\":\"0\",\"delta\":\">\n<head>\n    \"}\n\nevent: message.completed\ndata: {\"type\":\"message.completed\",\"item_id\":\"0\",\"text\":\"<html>\n<head>\n    <title>Vidoso: Your Video Content Superpower</title>\n</head></body>\n</html>\"}\n\nevent: session.completed\ndata: {\"type\":\"session.completed\"}\n"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/organizations/{organization_id}/settings":{"patch":{"tags":["Organizations Settings"],"summary":"Organizations Settings:Create","description":"Create a new organization settings.","operationId":"organizations_settings_create_organizations__organization_id__settings_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettingsPartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettingsDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Organizations Settings"],"summary":"Organizations Settings:Detail","description":"Get the organization settings.","operationId":"organizations_settings_detail_organizations__organization_id__settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"}],"description":"Organization ID or 'me'","examples":["me"],"title":"Organization Id"},"description":"Organization ID or 'me'"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettingsDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/social-posts":{"get":{"tags":["Social posts"],"summary":"Social Posts:List","operationId":"social_posts_list_social_posts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"video_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Video Id"}},{"name":"theme_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Theme Id"}},{"name":"clip_id__isnull","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by whether `clip_id` is null. `true`: returns only social posts not linked to any clip (video-level). `false`: returns only social posts associated with clips (clip-level).","title":"Clip Id  Isnull"},"description":"Filter by whether `clip_id` is null. `true`: returns only social posts not linked to any clip (video-level). `false`: returns only social posts associated with clips (clip-level).","example":{}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SocialPostType"},{"type":"null"}],"title":"Type"}},{"name":"clip_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Clip Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_SocialPostListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Social posts"],"summary":"Social Posts:Create","operationId":"social_posts_create_social_posts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shared/{token}":{"get":{"tags":["Shared links"],"summary":"Shared Links:Resolve","description":"Resolve shared link by token. No auth. 404 if not found or expired.\n\nFor type=video, returns merged payload with video, branding_elements, chapters.\nFor type=clip, returns clip, branding_elements, and raw_transcripts.\nFor type=conversation_asset, returns conversation_asset.\nFor other types, returns only type, source_id, and expires_at.","operationId":"shared_links_resolve_shared__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedLinkResolveResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shared":{"post":{"tags":["Shared links"],"summary":"Shared Links:Create","description":"Create a shared link. Requires auth. Link expires in 72h (JWT).","operationId":"shared_links_create_shared_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedLinkCreateSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedLinkCreateResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/search":{"get":{"tags":["Search"],"summary":"Search:Global","description":"Global search endpoint.","operationId":"search_global_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"sources","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/SearchSource"},"default":["video","clip"],"title":"Sources"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"title":"Limit"}},{"name":"include_summary","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Summary"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-score","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}}],"responses":{"200":{"description":"Search results. Can be returned as JSON or as an event stream depending on the Accept header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponseSchema"}},"text/event-stream":{"example":"event: search_results\ndata: {\"items\": [{SearchResultSchema.json()}], \"total\": \"\"}\n\nevent: generation_end\ndata: summary text\n\nevent: error\ndata: [\"Error message\"]\n"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/collections/search":{"get":{"tags":["Search"],"summary":"Search:Collections","operationId":"search_collections_collections_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"collections_id__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string","example":"68780a95a7d26cb75c9017c9,68780a95a7d26cb75c9017ca"},{"type":"null"}],"description":"Comma-separated list of ObjectIds","title":"Collections Id  In"},"description":"Comma-separated list of ObjectIds"},{"name":"sources","in":"query","required":false,"schema":{"type":"array","items":{"enum":["video","clip"],"type":"string"},"default":["video","clip"],"title":"Sources"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"title":"Limit"}},{"name":"include_summary","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Summary"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-score","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}}],"responses":{"200":{"description":"Search results. Can be returned as JSON or as an event stream depending on the Accept header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionsSearchResponseSchema"}},"text/event-stream":{"example":"event: search_results\ndata: {\"items\": [{SearchResultSchema.json()}], \"total\": \"\"}\n\nevent: generation_end\ndata: summary text\n\nevent: error\ndata: [\"Error message\"]\n"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/asset-suggestions":{"post":{"tags":["Asset suggestions"],"summary":"Asset Suggestions:Create","description":"Create a new Asset suggestion.","operationId":"asset_suggestions_create_asset_suggestions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSuggestionCreateSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_AssetSuggestionDetailSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/clips":{"post":{"tags":["Clips"],"summary":"Clips:Create","description":"Create a new clip.","operationId":"clips_create_clips_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Clips"],"summary":"Clips:List","operationId":"clips_list_clips_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chapter_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Chapter Id"}},{"name":"variations_for_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Variations For Id"}},{"name":"latest_versions_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Latest Versions Only"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"collections_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Collections Id"}},{"name":"video_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Video Id"}},{"name":"theme_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Theme Id"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ClipType"},{"type":"null"}],"title":"Type"}},{"name":"type__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by multiple types separated by commas","title":"Type  In"},"description":"Filter by multiple types separated by commas","example":{}},{"name":"id__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by multiple IDs separated by commas","title":"Id  In"},"description":"Filter by multiple IDs separated by commas","example":{}},{"name":"parent_clip_ids","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"description":"Filter by the provided clip ID that exists in the `parent_clip_ids` field. This filter can be used to find children, including grandchildren, etc. **Note:** For better performance, please provide the `video_id` query parameter as well.","title":"Parent Clip Ids"},"description":"Filter by the provided clip ID that exists in the `parent_clip_ids` field. This filter can be used to find children, including grandchildren, etc. **Note:** For better performance, please provide the `video_id` query parameter as well.","example":{}},{"name":"text_search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ClipListSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}":{"get":{"tags":["Clips"],"summary":"Clips:Get","operationId":"clips_get_clips__clip_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Clips"],"summary":"Clips:Partial Update","operationId":"clips_partial_update_clips__clip_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipPartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Clips"],"summary":"Clips:Delete","operationId":"clips_delete_clips__clip_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/evaluation":{"put":{"tags":["Clips"],"summary":"Clips:Update-Evaluation","operationId":"clips_update_evaluation_clips__clip_id__evaluation_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClipEvaluation-Input"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/update-transcript":{"post":{"tags":["Clips"],"summary":"Clips:Update-Transcript","description":"Update clip transcript.\n\nDeprecated: use /clips/{clip_id}/raw-transcripts/update-word instead.","operationId":"clips_update_transcript_clips__clip_id__update_transcript_post","deprecated":true,"security":[{"HTTPBearer":[]}],"parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clips/{clip_id}/embed":{"get":{"tags":["Clips"],"summary":"Clips:Get-Embed-Clip","description":"Get the HTML content to embed the clip in an iframe.\n\nExample:\n```\n<iframe src=\"{BASE_BACKEND_URL}/clips/{clip_id}/embed\"\n    width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen>\n</iframe>\n```","operationId":"clips_get_embed_clip_clips__clip_id__embed_get","parameters":[{"name":"clip_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/localizations/target-locales":{"get":{"tags":["Localizations"],"summary":"Localizations:List","description":"Retrieve all supported languages.","operationId":"localizations_list_localizations_target_locales_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListResponse_LanguageLocalizationSchema_"}}}}},"security":[{"HTTPBearer":[]}]}},"/blog-outlines":{"get":{"tags":["Blog outlines"],"summary":"Blog Outlines:List","operationId":"blog_outlines_list_blog_outlines_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"video_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Video Id"}},{"name":"theme_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Theme Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_BlogOutlineListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Blog outlines"],"summary":"Blog Outlines:Create","operationId":"blog_outlines_create_blog_outlines_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogOutlineCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogOutlineDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"tags":["Home"],"summary":"Home:Get","operationId":"home_get__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Home Get  Get"}}}}}}},"/ttc-conversation-assets":{"get":{"tags":["Conversation Assets"],"summary":"Ttcs Conversation Assets:List","operationId":"ttcs_conversation_assets_list_ttc_conversation_assets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source__conversation_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Source  Conversation Id"}},{"name":"source__type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TtcAssetSourceType"},{"type":"null"}],"title":"Source  Type"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"enum":["me","global"],"type":"string"},{"type":"null"}],"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","title":"Organization Id"},"description":"Filter by `organization_id`. Use `me` to filter by the authenticated user's organization. ","example":{}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"const":"me","type":"string"},{"type":"null"}],"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","title":"Owner Id"},"description":"Filter by `owner_id`. Use `me` to filter by the authenticated user.","example":{}},{"name":"source_asset_id","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}],"title":"Source Asset Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":10000,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_TtcConversationAssetListItemSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Conversation Assets"],"summary":"Ttcs Conversation Assets:Create","description":"Create a new ttc conversation asset.","operationId":"ttcs_conversation_assets_create_ttc_conversation_assets_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcConversationAssetCreateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcConversationAssetDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ttc-conversation-assets/{ttc_conversation_asset_id}/translate":{"post":{"tags":["Conversation Assets"],"summary":"Ttcs Conversation Assets:Translation Upsert","description":"Create a new ttc conversation asset.","operationId":"ttcs_conversation_assets_translation_upsert_ttc_conversation_assets__ttc_conversation_asset_id__translate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ttc_conversation_asset_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcConversationAssetTranslateSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcConversationAssetDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ttc-conversation-assets/{ttc_conversation_asset_id}":{"get":{"tags":["Conversation Assets"],"summary":"Ttcs Conversation Assets:Detail","description":"Retrieve a single ttc conversation asset by ID.","operationId":"ttcs_conversation_assets_detail_ttc_conversation_assets__ttc_conversation_asset_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ttc_conversation_asset_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcConversationAssetDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Conversation Assets"],"summary":"Ttcs Conversation Assets:Partial Update","operationId":"ttcs_conversation_assets_partial_update_ttc_conversation_assets__ttc_conversation_asset_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ttc_conversation_asset_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcConversationAssetPartialUpdateSchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcConversationAssetDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Conversation Assets"],"summary":"Ttcs Conversation Assets:Delete","description":"Delete an existing ttc conversation asset.","operationId":"ttcs_conversation_assets_delete_ttc_conversation_assets__ttc_conversation_asset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ttc_conversation_asset_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ttc-conversation-assets/{ttc_conversation_asset_id}/save":{"post":{"tags":["Conversation Assets"],"summary":"Ttcs Conversation Assets:Save Copy","operationId":"ttcs_conversation_assets_save_copy_ttc_conversation_assets__ttc_conversation_asset_id__save_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ttc_conversation_asset_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PydanticObjectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcConversationAssetCopySchema"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtcConversationAssetDetailSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AiStudioActiveSpeakerEnhancement":{"properties":{"layout":{"$ref":"#/components/schemas/AiStudioActiveSpeakerLayout"},"active_speaker":{"type":"integer","title":"Active Speaker"},"screenshare":{"type":"boolean","title":"Screenshare","deprecated":true},"active_speaker_location":{"$ref":"#/components/schemas/AiStudioActiveSpeakerLocation","deprecated":true}},"type":"object","required":["layout","active_speaker","screenshare","active_speaker_location"],"title":"AiStudioActiveSpeakerEnhancement"},"AiStudioActiveSpeakerEnhancementReadSchema":{"properties":{"layout":{"$ref":"#/components/schemas/AiStudioActiveSpeakerLayout"},"active_speaker":{"type":"integer","title":"Active Speaker"},"screenshare":{"type":"boolean","title":"Screenshare"},"active_speaker_location":{"$ref":"#/components/schemas/AiStudioActiveSpeakerLocation"}},"type":"object","required":["layout","active_speaker","screenshare","active_speaker_location"],"title":"AiStudioActiveSpeakerEnhancementReadSchema"},"AiStudioActiveSpeakerEnhancementWriteSchema":{"properties":{"layout":{"$ref":"#/components/schemas/AiStudioActiveSpeakerLayout","default":"landscape"},"active_speaker":{"type":"integer","title":"Active Speaker","description":"The number of the active speaker","default":1,"examples":[1,2]},"screenshare":{"type":"boolean","title":"Screenshare","default":false,"deprecated":true},"active_speaker_location":{"$ref":"#/components/schemas/AiStudioActiveSpeakerLocation","default":"top","deprecated":true}},"type":"object","title":"AiStudioActiveSpeakerEnhancementWriteSchema"},"AiStudioActiveSpeakerLayout":{"type":"string","enum":["vertical","landscape"],"title":"AiStudioActiveSpeakerLayout"},"AiStudioActiveSpeakerLocation":{"type":"string","enum":["top","bottom"],"title":"AiStudioActiveSpeakerLocation"},"AiStudioAskClipChunk":{"properties":{"source":{"$ref":"#/components/schemas/AiStudioAskClipChunkSource"},"text":{"type":"string","title":"Text"},"edited":{"anyOf":[{"$ref":"#/components/schemas/AiStudioAskClipEditedChunk"},{"type":"null"}]}},"type":"object","required":["source","text"],"title":"AiStudioAskClipChunk"},"AiStudioAskClipChunkSource":{"properties":{"type":{"type":"string","const":"transcript","title":"Type","default":"transcript"},"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"}},"type":"object","required":["video_id","start_second","end_second"],"title":"AiStudioAskClipChunkSource","description":"Source chunk of that was used to generate the LLM chunk."},"AiStudioAskClipChunkWriteSchema":{"properties":{"source":{"$ref":"#/components/schemas/AiStudioAskClipChunkSource"},"text":{"type":"string","title":"Text"},"edited":{"anyOf":[{"$ref":"#/components/schemas/AiStudioAskClipEditedChunkWriteSchema"},{"type":"null"}]}},"type":"object","required":["source","text"],"title":"AiStudioAskClipChunkWriteSchema"},"AiStudioAskClipEditedChunk":{"properties":{"type":{"type":"string","const":"transcript","title":"Type","default":"transcript"},"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]},"text":{"type":"string","title":"Text"}},"type":"object","required":["video_id","start_second","end_second","text"],"title":"AiStudioAskClipEditedChunk"},"AiStudioAskClipEditedChunkWriteSchema":{"properties":{"start_second":{"type":"number","minimum":0.0,"title":"Start Second"},"end_second":{"type":"number","minimum":0.0,"title":"End Second"},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]},"multi_segment_clips":{"anyOf":[{"$ref":"#/components/schemas/MultiSegmentClipWriteSchema"},{"type":"null"}]},"type":{"type":"string","const":"transcript","title":"Type","default":"transcript"},"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"text":{"type":"string","title":"Text"}},"type":"object","required":["start_second","end_second","video_id","text"],"title":"AiStudioAskClipEditedChunkWriteSchema"},"AiStudioAskClipReadSchema":{"properties":{"chunks":{"items":{"$ref":"#/components/schemas/AiStudioAskClipChunk"},"type":"array","title":"Chunks"}},"type":"object","required":["chunks"],"title":"AiStudioAskClipReadSchema"},"AiStudioAskClipWriteSchema":{"properties":{"chunks":{"items":{"$ref":"#/components/schemas/AiStudioAskClipChunkWriteSchema"},"type":"array","minItems":1,"title":"Chunks"}},"type":"object","required":["chunks"],"title":"AiStudioAskClipWriteSchema"},"AiStudioCustomTransitionsReadSchema":{"properties":{"clean_speech":{"type":"boolean","title":"Clean Speech"},"transitions":{"anyOf":[{"$ref":"#/components/schemas/AiStudioCustomTransitionsTransitionsReadSchema"},{"type":"null"}]},"segments":{"anyOf":[{"$ref":"#/components/schemas/AiStudioCustomTransitionsSegmentsReadSchema"},{"type":"null"}]}},"type":"object","required":["clean_speech"],"title":"AiStudioCustomTransitionsReadSchema","description":"Read schema for custom transitions."},"AiStudioCustomTransitionsSegmentsReadSchema":{"properties":{"branding_asset":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]}},"type":"object","title":"AiStudioCustomTransitionsSegmentsReadSchema","description":"Read schema for segments."},"AiStudioCustomTransitionsSegmentsWriteSchema":{"properties":{"branding_asset_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","title":"AiStudioCustomTransitionsSegmentsWriteSchema","description":"Write schema for segments."},"AiStudioCustomTransitionsTransitionsReadSchema":{"properties":{"jump_cuts":{"type":"boolean","title":"Jump Cuts","default":false},"visual_morph":{"type":"boolean","title":"Visual Morph","default":false}},"type":"object","title":"AiStudioCustomTransitionsTransitionsReadSchema","description":"Read schema for transitions."},"AiStudioCustomTransitionsTransitionsWriteSchema":{"properties":{"jump_cuts":{"type":"boolean","title":"Jump Cuts","default":false},"visual_morph":{"type":"boolean","title":"Visual Morph","default":false}},"type":"object","title":"AiStudioCustomTransitionsTransitionsWriteSchema","description":"Write schema for transitions."},"AiStudioCustomTransitionsWriteSchema":{"properties":{"clean_speech":{"type":"boolean","title":"Clean Speech","default":false},"transitions":{"anyOf":[{"$ref":"#/components/schemas/AiStudioCustomTransitionsTransitionsWriteSchema"},{"type":"null"}]},"segments":{"anyOf":[{"$ref":"#/components/schemas/AiStudioCustomTransitionsSegmentsWriteSchema"},{"type":"null"}]}},"type":"object","title":"AiStudioCustomTransitionsWriteSchema","description":"Write schema for custom transitions."},"AiStudioEnhancementsReadSchema":{"properties":{"active_speaker":{"anyOf":[{"$ref":"#/components/schemas/AiStudioActiveSpeakerEnhancementReadSchema"},{"type":"null"}]},"background_blur":{"type":"boolean","title":"Background Blur"},"background_image":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]}},"type":"object","required":["background_blur"],"title":"AiStudioEnhancementsReadSchema"},"AiStudioEnhancementsWriteSchema":{"properties":{"active_speaker":{"anyOf":[{"$ref":"#/components/schemas/AiStudioActiveSpeakerEnhancementWriteSchema"},{"type":"null"}]},"background_blur":{"type":"boolean","title":"Background Blur","default":false},"background_image_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","title":"AiStudioEnhancementsWriteSchema"},"AiStudioGenerateWriteSchema":{"properties":{"enhancements":{"$ref":"#/components/schemas/AiStudioEnhancementsWriteSchema","default":{"background_blur":false}},"removals":{"$ref":"#/components/schemas/AiStudioRemovalsWriteSchema","default":{"remove_pauses":false,"remove_boilerplate":false,"remove_background_noise":false}},"variations":{"items":{"$ref":"#/components/schemas/ClipVariationAiStudioWriteSchema"},"type":"array","title":"Variations","default":[]},"custom_transitions":{"anyOf":[{"$ref":"#/components/schemas/AiStudioCustomTransitionsWriteSchema"},{"type":"null"}]}},"type":"object","title":"AiStudioGenerateWriteSchema"},"AiStudioMetadataReadSchema":{"properties":{"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"},"target_duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Duration"},"variation":{"type":"boolean","title":"Variation","default":false}},"type":"object","title":"AiStudioMetadataReadSchema"},"AiStudioRemovalsReadSchema":{"properties":{"remove_pauses":{"type":"boolean","title":"Remove Pauses"},"remove_boilerplate":{"type":"boolean","title":"Remove Boilerplate"},"remove_background_noise":{"type":"boolean","title":"Remove Background Noise"}},"type":"object","required":["remove_pauses","remove_boilerplate","remove_background_noise"],"title":"AiStudioRemovalsReadSchema"},"AiStudioRemovalsWriteSchema":{"properties":{"remove_pauses":{"type":"boolean","title":"Remove Pauses","default":false},"remove_boilerplate":{"type":"boolean","title":"Remove Boilerplate","default":false},"remove_background_noise":{"type":"boolean","title":"Remove Background Noise","default":false}},"type":"object","title":"AiStudioRemovalsWriteSchema"},"AiStudioSource":{"properties":{"type":{"$ref":"#/components/schemas/AiStudioSourceType"},"blob":{"$ref":"#/components/schemas/BlobSource"},"clip_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["type","blob"],"title":"AiStudioSource","description":"Source file that AI-Studio is using to generate the clip."},"AiStudioSourceType":{"type":"string","enum":["video","clip"],"title":"AiStudioSourceType"},"AiStudioStatus":{"type":"string","enum":["waiting_for_exporting","not_started","started","completed"],"title":"AiStudioStatus"},"AiStudioTrimmingReadSchema":{"properties":{"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"multi_segment_clips":{"anyOf":[{"$ref":"#/components/schemas/MultiSegmentClip"},{"type":"null"}]},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]}},"type":"object","required":["start_second","end_second"],"title":"AiStudioTrimmingReadSchema"},"AiStudioTrimmingWriteSchema":{"properties":{"start_second":{"type":"number","minimum":0.0,"title":"Start Second"},"end_second":{"type":"number","minimum":0.0,"title":"End Second"},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]},"multi_segment_clips":{"anyOf":[{"$ref":"#/components/schemas/MultiSegmentClipWriteSchema"},{"type":"null"}]}},"type":"object","required":["start_second","end_second"],"title":"AiStudioTrimmingWriteSchema"},"AiStudioVariationReadSchema":{"properties":{"active_speaker":{"anyOf":[{"$ref":"#/components/schemas/AiStudioActiveSpeakerEnhancement"},{"type":"null"}]},"duration":{"type":"number","title":"Duration"}},"type":"object","required":["duration"],"title":"AiStudioVariationReadSchema"},"Alignment":{"type":"string","enum":["left","center","right"],"title":"Alignment","description":"Text alignment options."},"AssetSuggestionCreateSchema":{"properties":{"campaign_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["campaign_id"],"title":"AssetSuggestionCreateSchema","description":"Schema for POST (create) endpoint."},"AssetSuggestionDetailSchema":{"properties":{"name":{"type":"string","title":"Name"},"prompt":{"type":"string","title":"Prompt"},"asset_type":{"$ref":"#/components/schemas/RecipeAssetsType","default":"text"},"writing_style_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["name","prompt"],"title":"AssetSuggestionDetailSchema"},"AssetType":{"type":"string","enum":["logo","background_image","lower_third_background","intro","outro","font","custom_transition_image","custom_transition_video","template_image","supporting_image"],"title":"AssetType"},"AudioCitationSchema":{"properties":{"type":{"type":"string","const":"audio","title":"Type","default":"audio"},"title":{"type":"string","title":"Title"},"snippet":{"type":"string","title":"Snippet","description":"Snippet of the used content"},"citation_spans":{"items":{"$ref":"#/components/schemas/CitationSpan"},"type":"array","title":"Citation Spans"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"start_second":{"type":"number","title":"Start Second","description":"Start second of the used chunk."},"end_second":{"type":"number","title":"End Second","description":"End second of the used chunk."}},"type":"object","required":["title","snippet","citation_spans","id","start_second","end_second"],"title":"AudioCitationSchema"},"Background":{"properties":{"id":{"type":"string","title":"Id","description":"Background identifier"},"src":{"type":"string","title":"Src","description":"Background image source URL"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption","description":"Background caption"}},"type":"object","required":["id","src"],"title":"Background","description":"Background schema."},"BackgroundOutput":{"properties":{"id":{"type":"string","title":"Id","description":"Background identifier"},"src":{"type":"string","title":"Src","description":"Background image source URL"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption","description":"Background caption"},"src_download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Src Download Url","description":"Presigned URL for background image (only if src starts with gs://)"}},"type":"object","required":["id","src"],"title":"BackgroundOutput","description":"Background schema with presigned download URL."},"BaseKnowledgeBasePartialUpdateSchema":{"properties":{"file_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"File Ids","default":[]},"video_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Video Ids","default":[]},"audio_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Audio Ids","default":[]},"url_content_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Url Content Ids","default":[]}},"type":"object","title":"BaseKnowledgeBasePartialUpdateSchema"},"BaseRecipeAssetsPartialUpdateSchema":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/RecipeAssetsType"},"prompt":{"type":"string","title":"Prompt"},"persona_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"writing_style_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["name","type","prompt"],"title":"BaseRecipeAssetsPartialUpdateSchema"},"BaseWritingStyleDetailsSchema":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"guidelines":{"$ref":"#/components/schemas/WritingStyleGuidelines"}},"type":"object","required":["guidelines"],"title":"BaseWritingStyleDetailsSchema"},"Bbox":{"properties":{"x":{"type":"integer","title":"X","description":"X coordinate in pixels"},"y":{"type":"integer","title":"Y","description":"Y coordinate in pixels"},"width":{"type":"integer","title":"Width","description":"Width in pixels"},"height":{"type":"integer","title":"Height","description":"Height in pixels"}},"type":"object","required":["x","y","width","height"],"title":"Bbox","description":"Bounding box schema."},"BlobSource":{"properties":{"bucket_name":{"type":"string","title":"Bucket Name"},"blob_name":{"type":"string","title":"Blob Name"}},"type":"object","required":["bucket_name","blob_name"],"title":"BlobSource"},"BlogOutlineCreateSchema":{"properties":{"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"theme_id":{"$ref":"#/components/schemas/PydanticObjectId"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["video_id","theme_id","title","content"],"title":"BlogOutlineCreateSchema"},"BlogOutlineDetailSchema":{"properties":{"theme_id":{"$ref":"#/components/schemas/PydanticObjectId"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["theme_id","title","content"],"title":"BlogOutlineDetailSchema"},"BlogOutlineListItemSchema":{"properties":{"theme_id":{"$ref":"#/components/schemas/PydanticObjectId"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["theme_id","title","content"],"title":"BlogOutlineListItemSchema"},"BlogPostCreateSchema":{"properties":{"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"theme_id":{"$ref":"#/components/schemas/PydanticObjectId"},"blog_outline_id":{"$ref":"#/components/schemas/PydanticObjectId"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["video_id","theme_id","blog_outline_id","title","content"],"title":"BlogPostCreateSchema"},"BlogPostDetailSchema":{"properties":{"theme_id":{"$ref":"#/components/schemas/PydanticObjectId"},"blog_outline_id":{"$ref":"#/components/schemas/PydanticObjectId"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["theme_id","blog_outline_id","title","content"],"title":"BlogPostDetailSchema"},"BlogPostListItemSchema":{"properties":{"theme_id":{"$ref":"#/components/schemas/PydanticObjectId"},"blog_outline_id":{"$ref":"#/components/schemas/PydanticObjectId"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["theme_id","blog_outline_id","title","content"],"title":"BlogPostListItemSchema"},"BlogPostSearchResultSchema":{"properties":{"source":{"type":"string","const":"blog_post","title":"Source","default":"blog_post"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"},"video_id":{"type":"string","title":"Video Id"},"id":{"type":"string","title":"Id","description":"The unique identifier of the entity of that type."},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"thumbnail_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Thumbnail Url"},"playback_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Playback Url"},"score":{"type":"number","title":"Score"}},"type":"object","required":["video_id","id","title","content","thumbnail_url","playback_url","score"],"title":"BlogPostSearchResultSchema"},"Body_exchange_access_key_auth_exchange_access_key_post":{"properties":{"access_key":{"type":"string","title":"Access Key"}},"type":"object","required":["access_key"],"title":"Body_exchange_access_key_auth_exchange_access_key_post"},"Body_file_upload_file_files_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_file_upload_file_files_upload_post"},"Body_media_audios_set_duration_media_audios__media_audio_id__processing_set_duration_post":{"properties":{"duration":{"type":"number","title":"Duration"}},"type":"object","required":["duration"],"title":"Body_media_audios_set_duration_media_audios__media_audio_id__processing_set_duration_post"},"Body_media_audios_upload_media_audios_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["file","name"],"title":"Body_media_audios_upload_media_audios_upload_post"},"Body_organizations_update_onboarding_status_organizations__organization_id__onboarding_status_put":{"properties":{"onboarding_status":{"$ref":"#/components/schemas/OnboardingStatus"}},"type":"object","required":["onboarding_status"],"title":"Body_organizations_update_onboarding_status_organizations__organization_id__onboarding_status_put"},"Body_refresh_access_token_auth_dev_refresh_access_token_post":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"Body_refresh_access_token_auth_dev_refresh_access_token_post"},"Body_url_contents_create_urls_post":{"properties":{"url":{"type":"string","minLength":1,"format":"uri","title":"Url"}},"type":"object","required":["url"],"title":"Body_url_contents_create_urls_post"},"Body_videos_generate_upload_url_videos_generate_upload_url_post":{"properties":{"file_name":{"type":"string","format":"path","title":"File Name"},"resumable":{"type":"boolean","title":"Resumable","default":false}},"type":"object","required":["file_name"],"title":"Body_videos_generate_upload_url_videos_generate_upload_url_post"},"Body_videos_set_duration_videos__video_id__processing_set_duration_post":{"properties":{"duration":{"type":"number","title":"Duration"}},"type":"object","required":["duration"],"title":"Body_videos_set_duration_videos__video_id__processing_set_duration_post"},"BrandProfileExtractionResult":{"properties":{"writing_styles":{"items":{"$ref":"#/components/schemas/ExtractedWritingStyleCandidate"},"type":"array","title":"Writing Styles","default":[]},"personas":{"items":{"$ref":"#/components/schemas/ExtractedPersonaCandidate"},"type":"array","title":"Personas","default":[]}},"type":"object","title":"BrandProfileExtractionResult"},"BrandProfileExtractionRunCreatePayloadSchema":{"properties":{"sources":{"$ref":"#/components/schemas/BrandProfileExtractionRunSourcesWriteSchema"}},"type":"object","required":["sources"],"title":"BrandProfileExtractionRunCreatePayloadSchema"},"BrandProfileExtractionRunCreateResponseSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"status":{"$ref":"#/components/schemas/BrandProfileExtractionRunStatus"}},"type":"object","required":["id","status"],"title":"BrandProfileExtractionRunCreateResponseSchema"},"BrandProfileExtractionRunReadSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"status":{"$ref":"#/components/schemas/BrandProfileExtractionRunStatus"},"result":{"anyOf":[{"$ref":"#/components/schemas/BrandProfileExtractionRunResultSchema"},{"type":"null"}]}},"type":"object","required":["id","status"],"title":"BrandProfileExtractionRunReadSchema"},"BrandProfileExtractionRunResultSchema":{"properties":{"extractions":{"$ref":"#/components/schemas/BrandProfileExtractionResult"},"side_effects":{"$ref":"#/components/schemas/BrandProfileExtractionSideEffectsSchema"}},"type":"object","title":"BrandProfileExtractionRunResultSchema"},"BrandProfileExtractionRunSourcesWriteSchema":{"properties":{"file_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"File Ids"},"url_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Url Ids"}},"type":"object","title":"BrandProfileExtractionRunSourcesWriteSchema"},"BrandProfileExtractionRunStatus":{"type":"string","enum":["pending","started","completed","failed"],"title":"BrandProfileExtractionRunStatus","description":"Enum for brand profile extraction run status."},"BrandProfileExtractionSideEffectsSchema":{"properties":{"personas":{"items":{"$ref":"#/components/schemas/PersonaReadSchema"},"type":"array","title":"Personas"},"writing_styles":{"items":{"$ref":"#/components/schemas/WritingStyleReadSchema"},"type":"array","title":"Writing Styles"}},"type":"object","title":"BrandProfileExtractionSideEffectsSchema"},"BrandVocabulary":{"properties":{"find":{"type":"string","title":"Find"},"replace":{"type":"string","title":"Replace"}},"type":"object","required":["find","replace"],"title":"BrandVocabulary"},"BrandingAssetCreateSchema":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"asset_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Asset Url"},"asset_type":{"$ref":"#/components/schemas/AssetType"}},"type":"object","required":["asset_url","asset_type"],"title":"BrandingAssetCreateSchema"},"BrandingAssetPartialUpdateSchema":{"properties":{"name":{"type":"string","title":"Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"BrandingAssetPartialUpdateSchema"},"BrandingAssetSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"type":{"$ref":"#/components/schemas/AssetType"},"name":{"type":"string","title":"Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"storage_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Storage Url"},"thumbnail_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Thumbnail Url"},"source":{"$ref":"#/components/schemas/BlobSource"}},"type":"object","required":["id","type","name","storage_url","source"],"title":"BrandingAssetSchema"},"BrandingElementsDetailSchema":{"properties":{"colors":{"items":{"type":"string"},"type":"array","title":"Colors","default":[]},"fonts":{"items":{"$ref":"#/components/schemas/BrandingElementsFontReadSchema"},"type":"array","title":"Fonts","default":[]}},"type":"object","title":"BrandingElementsDetailSchema"},"BrandingElementsFontReadSchema":{"properties":{"font":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"font_family":{"type":"string","title":"Font Family","description":"Only used when `font_id` is not provided. Otherwise, the value is always set to the default font family."},"size":{"type":"string","title":"Size"}},"type":"object","required":["font_family","size"],"title":"BrandingElementsFontReadSchema"},"BrandingElementsFontWriteSchema":{"properties":{"font_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"font_family":{"type":"string","title":"Font Family","description":"Only used when `font_id` is not provided. Otherwise, the value is always set to the default font family."},"size":{"type":"string","title":"Size"}},"type":"object","required":["font_family","size"],"title":"BrandingElementsFontWriteSchema"},"BrandingElementsPartialUpdateSchema":{"properties":{"colors":{"items":{"type":"string"},"type":"array","title":"Colors"},"fonts":{"items":{"$ref":"#/components/schemas/BrandingElementsFontWriteSchema"},"type":"array","title":"Fonts"}},"type":"object","title":"BrandingElementsPartialUpdateSchema"},"CampaignBriefPromptEnhancerInputSchema":{"properties":{"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"}},"type":"object","title":"CampaignBriefPromptEnhancerInputSchema"},"CampaignCreateSchema":{"properties":{"name":{"type":"string","title":"Name"},"brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief"},"recipe_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","maxItems":1,"title":"Recipe Ids"},"writing_style_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"persona_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"knowledge_base":{"$ref":"#/components/schemas/BaseKnowledgeBasePartialUpdateSchema"}},"type":"object","required":["name","recipe_ids","knowledge_base"],"title":"CampaignCreateSchema"},"CampaignDetailSchema":{"properties":{"name":{"type":"string","title":"Name"},"brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"knowledge_base":{"$ref":"#/components/schemas/KnowledgeBaseReadSchema"},"writing_style":{"anyOf":[{"$ref":"#/components/schemas/WritingStyleListItemSchema"},{"type":"null"}]},"persona":{"anyOf":[{"$ref":"#/components/schemas/PersonaListItemSchema"},{"type":"null"}]},"recipes":{"items":{"$ref":"#/components/schemas/RecipeListItemSchema"},"type":"array","title":"Recipes"},"content_generation_status":{"$ref":"#/components/schemas/ContentGenerationReadinessStatus"}},"type":"object","required":["name","id","owner","created_at","updated_at","knowledge_base","recipes","content_generation_status"],"title":"CampaignDetailSchema"},"CampaignImageRunSourceCreate":{"properties":{"type":{"type":"string","const":"campaign","title":"Type","default":"campaign"},"campaign_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["campaign_id"],"title":"CampaignImageRunSourceCreate","description":"Campaign source for image run creation."},"CampaignImageRunSourceSchema":{"properties":{"type":{"type":"string","const":"campaign","title":"Type"},"campaign_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["type","campaign_id"],"title":"CampaignImageRunSourceSchema","description":"Campaign source schema for image run response."},"CampaignListItemSchema":{"properties":{"name":{"type":"string","title":"Name"},"brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","id","owner","created_at","updated_at"],"title":"CampaignListItemSchema"},"CampaignPartialUpdateSchema":{"properties":{"name":{"type":"string","title":"Name"},"brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief"},"recipe_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","maxItems":1,"title":"Recipe Ids"},"writing_style_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"persona_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"knowledge_base":{"anyOf":[{"$ref":"#/components/schemas/KnowledgeBasePartialUpdateSchema"},{"type":"null"}]}},"type":"object","title":"CampaignPartialUpdateSchema"},"CampaignRecipeRunContextSchema":{"properties":{"type":{"type":"string","const":"campaign","title":"Type","default":"campaign"},"campaign_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["campaign_id"],"title":"CampaignRecipeRunContextSchema"},"Canvas":{"properties":{"width":{"type":"integer","title":"Width","description":"Canvas width in pixels"},"height":{"type":"integer","title":"Height","description":"Canvas height in pixels"},"background_color":{"type":"string","title":"Background Color","description":"Background color as hex string (fallback if no background image)"}},"type":"object","required":["width","height","background_color"],"title":"Canvas","description":"Canvas schema."},"CaptionEffects":{"type":"string","enum":["bouncing"],"title":"CaptionEffects"},"CaptionShadow":{"properties":{"offset_x":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Offset X","default":0},"offset_y":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Offset Y","default":0},"blur":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Blur","description":"Blur radius","default":0},"color":{"type":"string","title":"Color","description":"Shadow color","default":"#000000"}},"type":"object","title":"CaptionShadow"},"CaptionStyleReadSchema":{"properties":{"font":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"font_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Family","description":"Only used when `font_id` is not provided. Otherwise, the value is always set to the default font family."},"main_color":{"type":"string","title":"Main Color"},"font_size":{"type":"number","title":"Font Size"},"text_align":{"$ref":"#/components/schemas/TextAlign"},"highlight_color":{"type":"string","title":"Highlight Color"},"background_color":{"type":"string","title":"Background Color"},"uppercase":{"type":"boolean","title":"Uppercase","default":true},"shadow":{"anyOf":[{"$ref":"#/components/schemas/CaptionShadow"},{"type":"null"}]},"stroke":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stroke","description":"Stroke color"},"stroke_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stroke Width","description":"Stroke width"},"effects":{"anyOf":[{"$ref":"#/components/schemas/CaptionEffects"},{"type":"null"}]},"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}]},"caption_lines":{"type":"integer","title":"Caption Lines","default":1},"text_pill":{"type":"boolean","title":"Text Pill","default":false},"pill_background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pill Background Color","description":"Background color for the text pill. If not set, use `highlight_color` with %60 opacity."}},"type":"object","required":["main_color","font_size","text_align","highlight_color","background_color"],"title":"CaptionStyleReadSchema"},"CaptionStyleWriteSchema":{"properties":{"font_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"font_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Family","description":"Only used when `font_id` is not provided. Otherwise, the value is always set to the default font family."},"main_color":{"type":"string","title":"Main Color"},"font_size":{"type":"number","title":"Font Size"},"text_align":{"$ref":"#/components/schemas/TextAlign"},"highlight_color":{"type":"string","title":"Highlight Color"},"background_color":{"type":"string","title":"Background Color"},"uppercase":{"type":"boolean","title":"Uppercase","default":true},"shadow":{"anyOf":[{"$ref":"#/components/schemas/CaptionShadow"},{"type":"null"}]},"stroke":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stroke","description":"Stroke color"},"stroke_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stroke Width","description":"Stroke width"},"effects":{"anyOf":[{"$ref":"#/components/schemas/CaptionEffects"},{"type":"null"}]},"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}]},"caption_lines":{"type":"integer","title":"Caption Lines","default":1},"text_pill":{"type":"boolean","title":"Text Pill","default":false},"pill_background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pill Background Color","description":"Background color for the text pill. If not set, use `highlight_color` with %60 opacity."}},"type":"object","required":["main_color","font_size","text_align","highlight_color","background_color"],"title":"CaptionStyleWriteSchema"},"ChapterCitationSchema":{"properties":{"type":{"type":"string","const":"chapter","title":"Type","default":"chapter"},"title":{"type":"string","title":"Title"},"snippet":{"type":"string","title":"Snippet","description":"Snippet of the used content"},"citation_spans":{"items":{"$ref":"#/components/schemas/CitationSpan"},"type":"array","title":"Citation Spans"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"start_second":{"type":"number","title":"Start Second","description":"Start second in the video."},"end_second":{"type":"number","title":"End Second","description":"End second in the video."}},"type":"object","required":["title","snippet","citation_spans","id","start_second","end_second"],"title":"ChapterCitationSchema"},"ChapterCreateSchema":{"properties":{"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"chapter_name":{"type":"string","title":"Chapter Name"},"summary":{"type":"string","title":"Summary"},"soundbites":{"items":{"$ref":"#/components/schemas/Soundbite"},"type":"array","title":"Soundbites"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"original_transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Transcript"}},"type":"object","required":["video_id","chapter_name","summary","soundbites","start_second","end_second"],"title":"ChapterCreateSchema"},"ChapterDetailSchema":{"properties":{"chapter_name":{"type":"string","title":"Chapter Name"},"summary":{"type":"string","title":"Summary"},"soundbites":{"items":{"$ref":"#/components/schemas/Soundbite"},"type":"array","title":"Soundbites"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["chapter_name","summary","soundbites","start_second","end_second","id","video_id","owner_id"],"title":"ChapterDetailSchema"},"ChapterListSchema":{"properties":{"chapter_name":{"type":"string","title":"Chapter Name"},"summary":{"type":"string","title":"Summary"},"soundbites":{"items":{"$ref":"#/components/schemas/Soundbite"},"type":"array","title":"Soundbites"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["chapter_name","summary","soundbites","start_second","end_second","id","video_id","owner_id"],"title":"ChapterListSchema"},"ChapterSearchResultSchema":{"properties":{"source":{"type":"string","const":"chapter","title":"Source","default":"chapter"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"},"video_id":{"type":"string","title":"Video Id"},"id":{"type":"string","title":"Id","description":"The unique identifier of the entity of that type."},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"thumbnail_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Thumbnail Url"},"playback_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Playback Url"},"score":{"type":"number","title":"Score"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"speaker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker Name"}},"type":"object","required":["video_id","id","title","content","thumbnail_url","playback_url","score","start_second","end_second"],"title":"ChapterSearchResultSchema"},"CitationSpan":{"properties":{"start_index":{"type":"integer","title":"Start Index","description":"Start index in the response text"},"end_index":{"type":"integer","title":"End Index","description":"Exclusive end index in the response text"}},"type":"object","required":["start_index","end_index"],"title":"CitationSpan"},"ClipAIStudioDetailSchema":{"properties":{"status":{"$ref":"#/components/schemas/AiStudioStatus"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/AiStudioMetadataReadSchema"},{"type":"null"}]},"ignore_timestamps":{"type":"boolean","title":"Ignore Timestamps"},"ask_clip":{"anyOf":[{"$ref":"#/components/schemas/AiStudioAskClipReadSchema"},{"type":"null"}]},"source":{"anyOf":[{"$ref":"#/components/schemas/AiStudioSource"},{"type":"null"}],"description":"Source clip/video for the AI Studio editing."},"trimming":{"anyOf":[{"$ref":"#/components/schemas/AiStudioTrimmingReadSchema"},{"type":"null"}]},"enhancements":{"anyOf":[{"$ref":"#/components/schemas/AiStudioEnhancementsReadSchema"},{"type":"null"}]},"removals":{"anyOf":[{"$ref":"#/components/schemas/AiStudioRemovalsReadSchema"},{"type":"null"}]},"variations":{"items":{"$ref":"#/components/schemas/AiStudioVariationReadSchema"},"type":"array","title":"Variations","default":[]},"custom_transitions":{"anyOf":[{"$ref":"#/components/schemas/AiStudioCustomTransitionsReadSchema"},{"type":"null"}]},"processed_blob":{"anyOf":[{"$ref":"#/components/schemas/BlobSource"},{"type":"null"}]}},"type":"object","required":["status","ignore_timestamps"],"title":"ClipAIStudioDetailSchema"},"ClipAIStudioListSchema":{"properties":{"status":{"$ref":"#/components/schemas/AiStudioStatus"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/AiStudioMetadataReadSchema"},{"type":"null"}]},"ignore_timestamps":{"type":"boolean","title":"Ignore Timestamps"}},"type":"object","required":["status","ignore_timestamps"],"title":"ClipAIStudioListSchema"},"ClipAiEditAiStudioWriteSchema":{"properties":{"enhancements":{"$ref":"#/components/schemas/AiStudioEnhancementsWriteSchema","default":{"background_blur":false}},"removals":{"$ref":"#/components/schemas/AiStudioRemovalsWriteSchema","default":{"remove_pauses":false,"remove_boilerplate":false,"remove_background_noise":false}},"variations":{"items":{"$ref":"#/components/schemas/ClipVariationAiStudioWriteSchema"},"type":"array","title":"Variations","default":[]},"custom_transitions":{"anyOf":[{"$ref":"#/components/schemas/AiStudioCustomTransitionsWriteSchema"},{"type":"null"}]},"trimming":{"anyOf":[{"$ref":"#/components/schemas/AiStudioTrimmingWriteSchema"},{"type":"null"}]}},"type":"object","title":"ClipAiEditAiStudioWriteSchema"},"ClipAiEditSchema":{"properties":{"start_second":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Start Second"},"end_second":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"End Second"},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]},"multi_segment_clips":{"anyOf":[{"$ref":"#/components/schemas/MultiSegmentClipWriteSchema"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"ai_studio":{"$ref":"#/components/schemas/ClipAiEditAiStudioWriteSchema","default":{"enhancements":{"background_blur":false},"removals":{"remove_background_noise":false,"remove_boilerplate":false,"remove_pauses":false},"variations":[]}}},"type":"object","title":"ClipAiEditSchema"},"ClipAiStudioCompleteSchema":{"properties":{"ai_studio_removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Ai Studio Removed Parts","default":[]},"original_transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Transcript"},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"},"processed_blob":{"anyOf":[{"$ref":"#/components/schemas/BlobSource"},{"type":"null"}]}},"type":"object","title":"ClipAiStudioCompleteSchema"},"ClipBrandWriteSchema":{"properties":{"template_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"thumbnail":{"anyOf":[{"type":"string","format":"base64","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Thumbnail"},"branding":{"$ref":"#/components/schemas/ClipBrandingWriteSchema","default":{}},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","title":"ClipBrandWriteSchema"},"ClipBrandingReadSchema":{"properties":{"lower_third":{"anyOf":[{"$ref":"#/components/schemas/ClipLowerThird"},{"type":"null"}]},"logo":{"anyOf":[{"$ref":"#/components/schemas/ClipLogo"},{"type":"null"}]},"captions_style":{"anyOf":[{"$ref":"#/components/schemas/ClipCaptionStyleReadSchema"},{"type":"null"}]},"header":{"anyOf":[{"$ref":"#/components/schemas/ClipHeaderStyle"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/ClipBrandingStatus","default":"export_not_started"}},"type":"object","title":"ClipBrandingReadSchema"},"ClipBrandingStatus":{"type":"string","enum":["export_not_started","export_started","export_completed"],"title":"ClipBrandingStatus","description":"Clip branding status."},"ClipBrandingWriteSchema":{"properties":{"lower_third":{"anyOf":[{"$ref":"#/components/schemas/ClipLowerThird"},{"type":"null"}]},"logo":{"anyOf":[{"$ref":"#/components/schemas/ClipLogo"},{"type":"null"}]},"captions_style":{"anyOf":[{"$ref":"#/components/schemas/ClipCaptionStyleWriteSchema"},{"type":"null"}]},"header":{"anyOf":[{"$ref":"#/components/schemas/ClipHeaderStyleBaseSchema"},{"type":"null"}]}},"type":"object","title":"ClipBrandingWriteSchema"},"ClipCaptionStyleReadSchema":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","deprecated":true},"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}]}},"type":"object","title":"ClipCaptionStyleReadSchema"},"ClipCaptionStyleWriteSchema":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","deprecated":true},"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}]},"font_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","title":"ClipCaptionStyleWriteSchema"},"ClipCitationSchema":{"properties":{"type":{"type":"string","const":"clip","title":"Type","default":"clip"},"title":{"type":"string","title":"Title"},"snippet":{"type":"string","title":"Snippet","description":"Snippet of the used content"},"citation_spans":{"items":{"$ref":"#/components/schemas/CitationSpan"},"type":"array","title":"Citation Spans"},"id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["title","snippet","citation_spans","id"],"title":"ClipCitationSchema"},"ClipCollectionSearchResultSchema":{"properties":{"source":{"type":"string","const":"clip","title":"Source","default":"clip"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"},"video_id":{"type":"string","title":"Video Id"},"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"thumbnail_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Thumbnail Url"},"playback_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Playback Url"},"score":{"type":"number","title":"Score"},"collection_id":{"type":"string","title":"Collection Id"},"collection":{"$ref":"#/components/schemas/CollectionPartialReadSchema"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"clip_id":{"type":"string","title":"Clip Id","description":"Use 'id' instead.","deprecated":true,"readOnly":true}},"type":"object","required":["video_id","id","title","content","thumbnail_url","playback_url","score","collection_id","collection","start_second","end_second","clip_id"],"title":"ClipCollectionSearchResultSchema"},"ClipCreateSchema":{"properties":{"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"ranking":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ranking"},"original_transcript":{"type":"string","title":"Original Transcript"},"start_second":{"type":"number","minimum":0.0,"title":"Start Second"},"end_second":{"type":"number","minimum":0.0,"title":"End Second"},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"theme_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["video_id","title","summary","original_transcript","start_second","end_second"],"title":"ClipCreateSchema"},"ClipDetailSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"ranking":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ranking"},"original_transcript":{"type":"string","title":"Original Transcript"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]},"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"theme_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"type":{"$ref":"#/components/schemas/ClipType"},"multi_segment_clips":{"anyOf":[{"$ref":"#/components/schemas/MultiSegmentClip"},{"type":"null"}]},"playback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Playback Url","description":"Fully processed clip playback URL. **Note:** This field is only populated for ai_generated, and ai_studio_generated clips. "},"thumbnail_url":{"type":"string","title":"Thumbnail Url"},"source_playback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Playback Url","description":"Unbranded clip playback URL. **Note:** This field is only populated for user_branded clips, and should be used a source clip for applying branding."},"source_duration":{"type":"number","title":"Source Duration","description":"The duration of the unbranded version of the clip. (without any intro/outro)"},"video_playback_url":{"type":"string","title":"Video Playback Url"},"editing_source":{"anyOf":[{"$ref":"#/components/schemas/EditingSourceSchema"},{"type":"null"}]},"parent_clip_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Parent Clip Ids","default":[]},"evaluation":{"anyOf":[{"$ref":"#/components/schemas/ClipEvaluation-Output"},{"type":"null"}]},"branding":{"anyOf":[{"$ref":"#/components/schemas/ClipBrandingReadSchema"},{"type":"null"}]},"template":{"anyOf":[{"$ref":"#/components/schemas/TemplateDetailSchema"},{"type":"null"}]},"ai_studio":{"anyOf":[{"$ref":"#/components/schemas/ClipAIStudioDetailSchema"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"exporting_options":{"anyOf":[{"$ref":"#/components/schemas/ClipExportingOptionsSchema"},{"type":"null"}]},"source":{"anyOf":[{"$ref":"#/components/schemas/BlobSource"},{"type":"null"}],"description":"Blob source for the clip if available."}},"type":"object","required":["organization_id","owner_id","owner","title","summary","original_transcript","start_second","end_second","video_id","id","type","thumbnail_url","source_duration","video_playback_url","created_at"],"title":"ClipDetailSchema"},"ClipEvaluation-Input":{"properties":{"content_quality":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"audio_energy":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"starting_point":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"ending_point":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"narrative":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"social_media_suitability":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"aggregate_score":{"$ref":"#/components/schemas/ClipEvaluationAggregateScore-Input"},"overall_feedback":{"type":"string","title":"Overall Feedback"}},"type":"object","required":["content_quality","audio_energy","starting_point","ending_point","narrative","social_media_suitability","aggregate_score","overall_feedback"],"title":"ClipEvaluation"},"ClipEvaluation-Output":{"properties":{"content_quality":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"audio_energy":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"starting_point":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"ending_point":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"narrative":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"social_media_suitability":{"$ref":"#/components/schemas/ClipEvaluationAttribute"},"aggregate_score":{"$ref":"#/components/schemas/ClipEvaluationAggregateScore-Output"},"overall_feedback":{"type":"string","title":"Overall Feedback"}},"type":"object","required":["content_quality","audio_energy","starting_point","ending_point","narrative","social_media_suitability","aggregate_score","overall_feedback"],"title":"ClipEvaluation"},"ClipEvaluationAggregateScore-Input":{"properties":{"score":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Score"},"out_of":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Out Of"}},"type":"object","required":["score","out_of"],"title":"ClipEvaluationAggregateScore"},"ClipEvaluationAggregateScore-Output":{"properties":{"score":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Score"},"out_of":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Out Of"},"normalized_score":{"type":"integer","title":"Normalized Score","readOnly":true},"normalized_out_of":{"type":"integer","title":"Normalized Out Of","readOnly":true}},"type":"object","required":["score","out_of","normalized_score","normalized_out_of"],"title":"ClipEvaluationAggregateScore"},"ClipEvaluationAttribute":{"properties":{"score":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Score"},"out_of":{"type":"integer","maximum":5.0,"minimum":5.0,"title":"Out Of","default":5},"reason":{"type":"string","title":"Reason"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]}},"type":"object","required":["score","reason"],"title":"ClipEvaluationAttribute"},"ClipExportingOptionsSchema":{"properties":{"silent":{"type":"boolean","title":"Silent"},"exported_by":{"anyOf":[{"$ref":"#/components/schemas/UserSchema"},{"type":"null"}]}},"type":"object","required":["silent"],"title":"ClipExportingOptionsSchema"},"ClipHeaderStyle":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}]}},"type":"object","title":"ClipHeaderStyle"},"ClipHeaderStyleBaseSchema":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}]}},"type":"object","title":"ClipHeaderStyleBaseSchema"},"ClipListSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"ranking":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ranking"},"original_transcript":{"type":"string","title":"Original Transcript"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]},"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"theme_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"type":{"$ref":"#/components/schemas/ClipType"},"multi_segment_clips":{"anyOf":[{"$ref":"#/components/schemas/MultiSegmentClip"},{"type":"null"}]},"playback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Playback Url","description":"Fully processed clip playback URL. **Note:** This field is only populated for ai_generated, and ai_studio_generated clips. "},"thumbnail_url":{"type":"string","title":"Thumbnail Url"},"source_playback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Playback Url","description":"Unbranded clip playback URL. **Note:** This field is only populated for user_branded clips, and should be used a source clip for applying branding."},"source_duration":{"type":"number","title":"Source Duration","description":"The duration of the unbranded version of the clip. (without any intro/outro)"},"video_playback_url":{"type":"string","title":"Video Playback Url"},"editing_source":{"anyOf":[{"$ref":"#/components/schemas/EditingSourceSchema"},{"type":"null"}]},"parent_clip_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Parent Clip Ids","default":[]},"evaluation":{"anyOf":[{"$ref":"#/components/schemas/ClipEvaluation-Output"},{"type":"null"}]},"branding":{"anyOf":[{"$ref":"#/components/schemas/ClipBrandingReadSchema"},{"type":"null"}]},"template":{"anyOf":[{"$ref":"#/components/schemas/TemplateDetailSchema"},{"type":"null"}]},"ai_studio":{"anyOf":[{"$ref":"#/components/schemas/ClipAIStudioListSchema"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["organization_id","owner_id","owner","title","summary","original_transcript","start_second","end_second","video_id","id","type","thumbnail_url","source_duration","video_playback_url","created_at"],"title":"ClipListSchema"},"ClipLogo":{"properties":{"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}]}},"type":"object","title":"ClipLogo"},"ClipLowerThird":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","deprecated":true},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","deprecated":true},"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}]},"speaker_name":{"anyOf":[{"$ref":"#/components/schemas/app__clips_brandings__models__SpeakerText"},{"type":"null"}]},"speaker_title":{"anyOf":[{"$ref":"#/components/schemas/app__clips_brandings__models__SpeakerText"},{"type":"null"}]}},"type":"object","title":"ClipLowerThird"},"ClipPartialUpdateSchema":{"properties":{"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"}},"type":"object","title":"ClipPartialUpdateSchema"},"ClipRecipeRunContextSchema":{"properties":{"type":{"type":"string","const":"clip","title":"Type","default":"clip"},"clip_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["clip_id"],"title":"ClipRecipeRunContextSchema"},"ClipRemovedPart":{"properties":{"start_second":{"type":"number","minimum":0.0,"title":"Start Second"},"end_second":{"type":"number","minimum":0.0,"title":"End Second"}},"type":"object","required":["start_second","end_second"],"title":"ClipRemovedPart","description":"A removed part of a clip with start and end times."},"ClipSearchResultSchema":{"properties":{"source":{"type":"string","const":"clip","title":"Source","default":"clip"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"},"video_id":{"type":"string","title":"Video Id"},"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"thumbnail_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Thumbnail Url"},"playback_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Playback Url"},"score":{"type":"number","title":"Score"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"clip_id":{"type":"string","title":"Clip Id","description":"Use 'id' instead.","deprecated":true,"readOnly":true}},"type":"object","required":["video_id","id","title","content","thumbnail_url","playback_url","score","start_second","end_second","clip_id"],"title":"ClipSearchResultSchema"},"ClipSegment":{"properties":{"start_second":{"type":"number","minimum":0.0,"title":"Start Second"},"end_second":{"type":"number","minimum":0.0,"title":"End Second"},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]}},"type":"object","required":["start_second","end_second"],"title":"ClipSegment","description":"A segment of a clip with start, end times and removed parts."},"ClipType":{"type":"string","enum":["ai_generated","ai_studio_generated","user_edited","user_branded"],"title":"ClipType","description":"Clip Type.\n\nProperties per each clip type:\nuser_branded               ---------------------------↴\nuser_edited                -----------------↴         |\nai_studio_generated        --------↴        |         |\nai_generated               --↴     |        |         |\n                             ↓     ↓        ↓         ↓\nHas own blob?              | yes | yes**  | no/yes** | no/yes** |\nHas own RawTranscript?     | no  | yes*   | no/yes*  | no/yes*  |\nHas ai_studio?             | no  | yes    | yes/no   | yes/no   |\nHas branding?              | no  | yes/no | yes/no   | yes      |\nCan RawTranscript be       |     |        |          |          |\n    calculated from parent?| yes | no     | yes      | yes      |\n\nLegend:\n    * - only when ai_studio.status is completed\n    ** - only when ai_studio (if any) and branding (if any) are completed\n\n**Note:** legacy user_branded clips may not have own RT/Blob even when\n    ai_studio.status is completed!\n\nai_studio_generated: clips must be processed by AI-Backend and they cannot\n    be rendered by FE, as well, as it is not possible to provide precise\n    raw-transcript for them without processing."},"ClipVariationAiStudioWriteSchema":{"properties":{"active_speaker":{"anyOf":[{"$ref":"#/components/schemas/AiStudioActiveSpeakerEnhancementWriteSchema"},{"type":"null"}]},"duration":{"type":"number","title":"Duration"}},"type":"object","required":["duration"],"title":"ClipVariationAiStudioWriteSchema"},"CollectionAccessType":{"type":"string","enum":["team","private"],"title":"CollectionAccessType","description":"Collection access type."},"CollectionCreateSchema":{"properties":{"tag_names":{"items":{"type":"string"},"type":"array","title":"Tag Names","default":[]},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"access_type":{"$ref":"#/components/schemas/CollectionAccessType","default":"team"}},"type":"object","required":["name"],"title":"CollectionCreateSchema"},"CollectionDetailSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"tags":{"items":{"$ref":"#/components/schemas/TagSchema"},"type":"array","title":"Tags","default":[]},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"access_type":{"$ref":"#/components/schemas/CollectionAccessType"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"last_recipe_run_status":{"anyOf":[{"$ref":"#/components/schemas/RecipeRunStatus"},{"type":"null"}]},"videos_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Videos Count"},"clips_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Clips Count"}},"type":"object","required":["organization_id","owner_id","owner","id","name","access_type","created_at","updated_at"],"title":"CollectionDetailSchema"},"CollectionItemsSchema":{"properties":{"clip_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","maxItems":20,"title":"Clip Ids","default":[]},"video_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","maxItems":20,"title":"Video Ids","default":[]},"chapter_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","maxItems":20,"title":"Chapter Ids","default":[]}},"type":"object","title":"CollectionItemsSchema"},"CollectionListSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"tags":{"items":{"$ref":"#/components/schemas/TagSchema"},"type":"array","title":"Tags","default":[]},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"access_type":{"$ref":"#/components/schemas/CollectionAccessType"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"last_recipe_run_status":{"anyOf":[{"$ref":"#/components/schemas/RecipeRunStatus"},{"type":"null"}]}},"type":"object","required":["organization_id","owner_id","owner","id","name","access_type","created_at","updated_at"],"title":"CollectionListSchema"},"CollectionPartialReadSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"CollectionPartialReadSchema"},"CollectionPartialUpdateSchema":{"properties":{"tag_names":{"items":{"type":"string"},"type":"array","title":"Tag Names"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"access_type":{"$ref":"#/components/schemas/CollectionAccessType"}},"type":"object","title":"CollectionPartialUpdateSchema"},"CollectionRecipeRunContextSchema":{"properties":{"type":{"type":"string","const":"collection","title":"Type","default":"collection"},"collection_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["collection_id"],"title":"CollectionRecipeRunContextSchema"},"CollectionsSearchResponseSchema":{"properties":{"items":{"items":{"oneOf":[{"$ref":"#/components/schemas/VideoCollectionSearchResultSchema"},{"$ref":"#/components/schemas/ClipCollectionSearchResultSchema"}],"discriminator":{"propertyName":"source","mapping":{"clip":"#/components/schemas/ClipCollectionSearchResultSchema","video":"#/components/schemas/VideoCollectionSearchResultSchema"}}},"type":"array","title":"Items"},"summary_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Text"},"total":{"type":"integer","title":"Total","description":"Total number of items.","readOnly":true}},"type":"object","required":["items","total"],"title":"CollectionsSearchResponseSchema"},"Company":{"properties":{"extracted_from":{"items":{"type":"string"},"type":"array","title":"Extracted From"},"category_level":{"$ref":"#/components/schemas/PointOfViews"},"brand_positioning":{"type":"string","title":"Brand Positioning"},"use_cases":{"items":{"type":"string"},"type":"array","title":"Use Cases"},"benefits":{"items":{"type":"string"},"type":"array","title":"Benefits"},"pain_points":{"items":{"type":"string"},"type":"array","title":"Pain Points"},"general_positioning_statements":{"items":{"type":"string"},"type":"array","title":"General Positioning Statements"},"competitive_positioning_statements":{"items":{"type":"string"},"type":"array","title":"Competitive Positioning Statements"}},"type":"object","required":["extracted_from","category_level","brand_positioning","use_cases","benefits","pain_points","general_positioning_statements","competitive_positioning_statements"],"title":"Company"},"Competitor":{"properties":{"competitor_name":{"type":"string","title":"Competitor Name"},"products":{"items":{"$ref":"#/components/schemas/ProductComparison"},"type":"array","title":"Products"}},"type":"object","required":["competitor_name","products"],"title":"Competitor"},"ContentCreationErrorCode":{"type":"string","enum":["context_not_found","input_validation_error","timeout","llm_error","internal_error","agent_error","llm_provider_error"],"title":"ContentCreationErrorCode"},"ContentDetails":{"properties":{"videoId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Videoid"},"videoPublishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Videopublishedat"}},"type":"object","title":"ContentDetails"},"ContentGenerationReadinessStatus":{"type":"string","enum":["ready","processing"],"title":"ContentGenerationReadinessStatus","description":"Campaign status based on knowledge base readiness."},"ContentThemeCreateSchema":{"properties":{"name":{"type":"string","title":"Name"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"video_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"media_audio_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["name","title","description"],"title":"ContentThemeCreateSchema"},"ContentThemeDetailSchema":{"properties":{"name":{"type":"string","title":"Name"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["name","title","description"],"title":"ContentThemeDetailSchema"},"ContentThemeListItemSchema":{"properties":{"name":{"type":"string","title":"Name"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["name","title","description"],"title":"ContentThemeListItemSchema"},"ContextTag":{"type":"string","enum":["marketing","technical","general"],"title":"ContextTag"},"ConversationMetadataSchema":{"properties":{"openai":{"$ref":"#/components/schemas/OpenAIMetadataSchema"},"source":{"oneOf":[{"$ref":"#/components/schemas/TextToContentOrganizationSource"},{"$ref":"#/components/schemas/TextToContentNonOrganizationSource"},{"$ref":"#/components/schemas/TextToContentCampaignSource"},{"$ref":"#/components/schemas/TextToContentConversationAssetSource"},{"$ref":"#/components/schemas/TextToContentFileSource"}],"title":"Source","discriminator":{"propertyName":"type","mapping":{"campaign":"#/components/schemas/TextToContentCampaignSource","chapter":"#/components/schemas/TextToContentNonOrganizationSource","clip":"#/components/schemas/TextToContentNonOrganizationSource","collection":"#/components/schemas/TextToContentNonOrganizationSource","conversation_asset":"#/components/schemas/TextToContentConversationAssetSource","file":"#/components/schemas/TextToContentFileSource","organization":"#/components/schemas/TextToContentOrganizationSource","video":"#/components/schemas/TextToContentNonOrganizationSource"}}},"content_spec":{"$ref":"#/components/schemas/TopicBasedInput"}},"type":"object","required":["openai","source","content_spec"],"title":"ConversationMetadataSchema"},"ConversationTtcAssetSourceReadSchema":{"properties":{"type":{"anyOf":[{"type":"string","const":"conversation_message"},{"type":"null"}],"title":"Type"},"message_id":{"$ref":"#/components/schemas/PydanticObjectId"},"conversation_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["message_id","conversation_id"],"title":"ConversationTtcAssetSourceReadSchema"},"DeauthorizationEvent":{"properties":{"event":{"type":"string","title":"Event"},"payload":{"$ref":"#/components/schemas/DeauthorizationPayload"}},"type":"object","required":["event","payload"],"title":"DeauthorizationEvent"},"DeauthorizationPayload":{"properties":{"account_id":{"type":"string","title":"Account Id"},"user_id":{"type":"string","title":"User Id"},"signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature"},"deauthorization_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deauthorization Time"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"event_ts":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Event Ts"}},"type":"object","required":["account_id","user_id"],"title":"DeauthorizationPayload"},"DetectedLanguageMetadata":{"properties":{"language":{"type":"string","title":"Language"},"confidence":{"type":"number","title":"Confidence"}},"type":"object","required":["language","confidence"],"title":"DetectedLanguageMetadata"},"DocumentId":{"properties":{"type":{"type":"string","enum":["file","url","text"],"title":"Type"},"id":{"type":"string","title":"Id"}},"type":"object","required":["type","id"],"title":"DocumentId"},"EBookOutlineContentInput":{"properties":{"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"type":{"type":"string","const":"ebook_outline","title":"Type"},"tone":{"type":"string","title":"Tone"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"chapter_count":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Chapter Count"}},"type":"object","required":["type","tone","chapter_count"],"title":"EBookOutlineContentInput"},"EditingSourceSchema":{"properties":{"type":{"$ref":"#/components/schemas/AiStudioSourceType"},"blob":{"$ref":"#/components/schemas/BlobSource"},"clip_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"multi_segment_clips":{"anyOf":[{"$ref":"#/components/schemas/MultiSegmentClip"},{"type":"null"}]},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]},"playback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Playback Url"},"duration":{"type":"number","title":"Duration","description":"Get the duration of the clip.\n\nCalculates the duration based on the start and end seconds,\n    and subtracts the duration of removed parts.","readOnly":true}},"type":"object","required":["type","blob","start_second","end_second","duration"],"title":"EditingSourceSchema"},"EmailSequenceContentInput":{"properties":{"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"type":{"type":"string","const":"email_sequence","title":"Type"},"tone":{"type":"string","title":"Tone"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"email_count":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Email Count"}},"type":"object","required":["type","tone","email_count"],"title":"EmailSequenceContentInput"},"ErrorReason":{"properties":{"reason":{"type":"string","title":"Reason"},"code":{"$ref":"#/components/schemas/ContentCreationErrorCode"}},"type":"object","required":["reason","code"],"title":"ErrorReason","description":"Schema for error reason in recipe runs."},"ExportClipPayload":{"properties":{"branding_canvas_json":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branding Canvas Json","deprecated":true},"silent":{"type":"boolean","title":"Silent","default":false}},"type":"object","title":"ExportClipPayload"},"ExportClipResponse":{"properties":{"clip_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Clip Url"}},"type":"object","title":"ExportClipResponse"},"ExtractedPersona":{"properties":{"name":{"type":"string","title":"Name"},"summary":{"type":"string","title":"Summary"},"demographics":{"$ref":"#/components/schemas/Section","default":{"items":[],"source_snippets":[]}},"psychographics":{"$ref":"#/components/schemas/Section","default":{"items":[],"source_snippets":[]}},"goals":{"$ref":"#/components/schemas/Section","default":{"items":[],"source_snippets":[]}},"pain_points":{"$ref":"#/components/schemas/Section","default":{"items":[],"source_snippets":[]}},"preferred_channels":{"$ref":"#/components/schemas/Section","default":{"items":[],"source_snippets":[]}},"messaging_notes":{"$ref":"#/components/schemas/Section","default":{"items":[],"source_snippets":[]}},"rules":{"items":{"$ref":"#/components/schemas/PersonaValidationRule"},"type":"array","title":"Rules","description":"List of rules generated for the writing style."}},"type":"object","required":["name","summary"],"title":"ExtractedPersona"},"ExtractedPersonaCandidate":{"properties":{"persona":{"$ref":"#/components/schemas/ExtractedPersona"},"confidence":{"type":"number","title":"Confidence"}},"type":"object","required":["persona","confidence"],"title":"ExtractedPersonaCandidate"},"ExtractedWritingStyle":{"properties":{"name":{"type":"string","title":"Name"},"summary":{"type":"string","title":"Summary"},"voice_and_tone":{"$ref":"#/components/schemas/Section","default":{"items":[],"source_snippets":[]}},"dos":{"$ref":"#/components/schemas/Section","default":{"items":[],"source_snippets":[]}},"donts":{"$ref":"#/components/schemas/Section","default":{"items":[],"source_snippets":[]}},"good_examples":{"$ref":"#/components/schemas/Section","default":{"items":[],"source_snippets":[]}},"bad_examples":{"$ref":"#/components/schemas/Section","default":{"items":[],"source_snippets":[]}},"rules":{"items":{"$ref":"#/components/schemas/WritingRule"},"type":"array","title":"Rules","description":"List of rules generated for the writing style."}},"type":"object","required":["name","summary"],"title":"ExtractedWritingStyle"},"ExtractedWritingStyleCandidate":{"properties":{"writing_style":{"$ref":"#/components/schemas/ExtractedWritingStyle"},"confidence":{"type":"number","title":"Confidence"}},"type":"object","required":["writing_style","confidence"],"title":"ExtractedWritingStyleCandidate"},"FAQContentInput":{"properties":{"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"type":{"type":"string","const":"faq","title":"Type"},"tone":{"type":"string","title":"Tone"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"question_count":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Question Count"}},"type":"object","required":["type","tone","question_count"],"title":"FAQContentInput"},"Feature":{"properties":{"use_cases":{"items":{"type":"string"},"type":"array","title":"Use Cases"},"benefits":{"items":{"type":"string"},"type":"array","title":"Benefits"},"pain_points":{"items":{"type":"string"},"type":"array","title":"Pain Points"},"general_positioning_statements":{"items":{"type":"string"},"type":"array","title":"General Positioning Statements"},"competitive_positioning_statements":{"items":{"type":"string"},"type":"array","title":"Competitive Positioning Statements"},"product_name":{"type":"string","title":"Product Name"},"feature_name":{"type":"string","title":"Feature Name"}},"type":"object","required":["use_cases","benefits","pain_points","general_positioning_statements","competitive_positioning_statements","product_name","feature_name"],"title":"Feature"},"FileActionsSchema":{"properties":{"personalization":{"type":"boolean","title":"Personalization"},"translation":{"type":"boolean","title":"Translation"}},"type":"object","required":["personalization","translation"],"title":"FileActionsSchema","description":"Schema for file actions availability."},"FileCitationSchema":{"properties":{"type":{"type":"string","const":"file","title":"Type","default":"file"},"title":{"type":"string","title":"Title"},"snippet":{"type":"string","title":"Snippet","description":"Snippet of the used content"},"citation_spans":{"items":{"$ref":"#/components/schemas/CitationSpan"},"type":"array","title":"Citation Spans"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"page":{"type":"integer","title":"Page"}},"type":"object","required":["title","snippet","citation_spans","id","page"],"title":"FileCitationSchema"},"FileDetailSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"file_name":{"type":"string","title":"File Name"},"metadata":{"$ref":"#/components/schemas/FileMetadata"},"file_size":{"type":"integer","title":"File Size"},"content_type":{"type":"string","title":"Content Type"},"source":{"anyOf":[{"$ref":"#/components/schemas/BlobSource"},{"type":"null"}]},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"variant_info":{"anyOf":[{"$ref":"#/components/schemas/VariationInfoSchema"},{"type":"null"}]},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"processing_status":{"anyOf":[{"$ref":"#/components/schemas/FileProcessingStatus"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/FileUIStatus"},{"type":"null"}]},"actions":{"anyOf":[{"$ref":"#/components/schemas/FileActionsSchema"},{"type":"null"}]}},"type":"object","required":["organization_id","owner_id","owner","id","file_name","metadata","file_size","content_type","created_at","updated_at"],"title":"FileDetailSchema"},"FileExtension":{"type":"string","enum":["MP4","M4A","TXT","VTT","CSV","JSON","JPG"],"title":"FileExtension"},"FileListItemSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"file_name":{"type":"string","title":"File Name"},"metadata":{"$ref":"#/components/schemas/FileMetadata"},"file_size":{"type":"integer","title":"File Size"},"content_type":{"type":"string","title":"Content Type"},"source":{"anyOf":[{"$ref":"#/components/schemas/BlobSource"},{"type":"null"}]},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"variant_info":{"anyOf":[{"$ref":"#/components/schemas/VariationInfoSchema"},{"type":"null"}]},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"processing_status":{"anyOf":[{"$ref":"#/components/schemas/FileProcessingStatus"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/FileUIStatus"},{"type":"null"}]},"actions":{"anyOf":[{"$ref":"#/components/schemas/FileActionsSchema"},{"type":"null"}]}},"type":"object","required":["organization_id","owner_id","owner","id","file_name","metadata","file_size","content_type","created_at","updated_at"],"title":"FileListItemSchema"},"FileMetadata":{"properties":{"openai":{"anyOf":[{"$ref":"#/components/schemas/app__files__models__OpenAIMetadata"},{"type":"null"}]}},"type":"object","title":"FileMetadata"},"FileMinimalReadSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"file_name":{"type":"string","title":"File Name"}},"type":"object","required":["id","file_name"],"title":"FileMinimalReadSchema"},"FileProcessingStatus":{"type":"string","enum":["pending","started","reducto_parsing_started","reducto_parsing_done","reducto_parsing_failed","file_details_management_started","file_details_management_save_to_db_done","file_details_management_save_to_db_failed","file_details_management_vectara_indexing_started","file_details_management_vectara_indexing_done","file_details_management_vectara_indexing_failed","file_details_management_done","file_assets_management_started","file_assets_management_save_to_db_done","file_assets_management_save_to_db_failed","file_assets_management_vectara_indexing_done","file_assets_management_vectara_indexing_failed","file_assets_management_done","file_themes_creation_started","file_themes_creation_done","file_themes_creation_failed","translation_failed","personalization_failed","completed"],"title":"FileProcessingStatus","description":"File status enum with string values with comparison capabilities.\n\nStatus progression (ordered by definition):\n- PENDING, STARTED\n- REDUCTO_PARSING_* stages\n- FILE_DETAILS_MANAGEMENT_* stages\n- FILE_ASSETS_MANAGEMENT_* stages\n- FILE_THEMES_CREATION_* stages\n- COMPLETED\n\nFailed statuses can occur at various stages and are handled separately.\n\nUse comparison operators for order checking:\nstatus >= FileProcessingStatus.COMPLETED\n\nThe order is determined by the definition order in this class."},"FileRecipeRunContextSchema":{"properties":{"type":{"type":"string","const":"file","title":"Type","default":"file"},"file_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["file_id"],"title":"FileRecipeRunContextSchema"},"FileType":{"type":"string","enum":["MP4","M4A","CHAT","TRANSCRIPT","CSV","TB","CC","CHAT_MESSAGE","SUMMARY","TIMELINE"],"title":"FileType"},"FileUIStatus":{"type":"string","enum":["processing","completed","failed"],"title":"FileUIStatus"},"FileVariantGenerationStatus":{"type":"string","enum":["pending","processing","completed","failed"],"title":"FileVariantGenerationStatus"},"FileVariantType":{"type":"string","enum":["translated","personalized"],"title":"FileVariantType"},"FontStyle":{"type":"string","enum":["italic","underline"],"title":"FontStyle","description":"Text decoration styles."},"GenerateUploadUrlSchema":{"properties":{"file_name":{"type":"string","format":"path","title":"File Name"},"asset_type":{"$ref":"#/components/schemas/AssetType"}},"type":"object","required":["file_name","asset_type"],"title":"GenerateUploadUrlSchema"},"GenerateVideoUploadedUrlSchema":{"properties":{"upload_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Upload Url"}},"type":"object","required":["upload_url"],"title":"GenerateVideoUploadedUrlSchema"},"GoogleDriveImportFileResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"web_view_link":{"type":"string","title":"Web View Link"},"mime_type":{"type":"string","title":"Mime Type"},"created_time":{"type":"string","title":"Created Time"}},"type":"object","required":["id","name","web_view_link","mime_type","created_time"],"title":"GoogleDriveImportFileResponse","description":"Response after importing a file to Google Drive."},"GoogleDriveImportFilesPayload":{"properties":{"file_id":{"type":"string","title":"File Id"},"resource_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Key"},"is_part_of_knowledge_base":{"type":"boolean","title":"Is Part Of Knowledge Base","default":true}},"type":"object","required":["file_id"],"title":"GoogleDriveImportFilesPayload","description":"Request payload for importing files from Google Drive by ID into GCS."},"GoogleDrivePickerTokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["access_token","expires_at"],"title":"GoogleDrivePickerTokenResponse","description":"Token response for Google Drive Picker UI."},"GoogleDrivePublishContextConversationAsset":{"properties":{"type":{"type":"string","const":"conversation_asset","title":"Type","default":"conversation_asset"},"conversation_asset_id":{"type":"string","title":"Conversation Asset Id"}},"type":"object","required":["conversation_asset_id"],"title":"GoogleDrivePublishContextConversationAsset","description":"Publish context for a conversation asset (export as file to Google Drive)."},"GoogleDrivePublishContextConversationMessage":{"properties":{"type":{"type":"string","const":"conversation_message","title":"Type","default":"conversation_message"},"conversation_message_id":{"type":"string","title":"Conversation Message Id"}},"type":"object","required":["conversation_message_id"],"title":"GoogleDrivePublishContextConversationMessage","description":"Publish context for a conversation message (export as file to Google Drive)."},"GoogleDrivePublishContextFile":{"properties":{"type":{"type":"string","const":"file","title":"Type","default":"file"},"file_id":{"type":"string","title":"File Id"}},"type":"object","required":["file_id"],"title":"GoogleDrivePublishContextFile","description":"Publish context for a file (export as file to Google Drive)."},"GoogleDrivePublishContextImageItem":{"properties":{"format":{"$ref":"#/components/schemas/ImageExportFormat"},"upscale":{"type":"boolean","title":"Upscale","description":"Whether to upscale the image","default":false},"type":{"type":"string","const":"image_item","title":"Type","default":"image_item"},"image_item_id":{"type":"string","title":"Image Item Id"}},"type":"object","required":["format","image_item_id"],"title":"GoogleDrivePublishContextImageItem","description":"Publish context for a image item (export as image item to Google Drive)."},"GoogleDrivePublishPayload":{"properties":{"context":{"oneOf":[{"$ref":"#/components/schemas/GoogleDrivePublishContextConversationAsset"},{"$ref":"#/components/schemas/GoogleDrivePublishContextConversationMessage"},{"$ref":"#/components/schemas/GoogleDrivePublishContextFile"},{"$ref":"#/components/schemas/GoogleDrivePublishContextImageItem"}],"title":"Context","discriminator":{"propertyName":"type","mapping":{"conversation_asset":"#/components/schemas/GoogleDrivePublishContextConversationAsset","conversation_message":"#/components/schemas/GoogleDrivePublishContextConversationMessage","file":"#/components/schemas/GoogleDrivePublishContextFile","image_item":"#/components/schemas/GoogleDrivePublishContextImageItem"}}}},"type":"object","required":["context"],"title":"GoogleDrivePublishPayload","description":"Request body for publishing a file to Google Drive."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeaderTemplateStyle":{"type":"string","enum":["header-1","header-2","header-3","header-4"],"title":"HeaderTemplateStyle"},"HealthCheckResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"HealthCheckResponse"},"ImageBlock":{"properties":{"id":{"type":"string","title":"Id","description":"Image block identifier"},"z_index":{"type":"integer","title":"Z Index","description":"Z-index for layering"},"bbox":{"$ref":"#/components/schemas/Bbox","description":"Bounding box"},"src":{"type":"string","title":"Src","description":"Image source URL"},"block_class":{"type":"string","title":"Block Class","description":"Image class (e.g., speaker, product, logo)"},"caption":{"type":"string","title":"Caption","description":"Image caption","default":""},"style":{"$ref":"#/components/schemas/ImageBlockStyle","description":"Image styling"}},"type":"object","required":["id","z_index","bbox","src","block_class","style"],"title":"ImageBlock","description":"Image block schema."},"ImageBlockOutput":{"properties":{"id":{"type":"string","title":"Id","description":"Image block identifier"},"z_index":{"type":"integer","title":"Z Index","description":"Z-index for layering"},"bbox":{"$ref":"#/components/schemas/Bbox","description":"Bounding box"},"src":{"type":"string","title":"Src","description":"Image source URL"},"block_class":{"type":"string","title":"Block Class","description":"Image class (e.g., speaker, product, logo)"},"caption":{"type":"string","title":"Caption","description":"Image caption","default":""},"style":{"$ref":"#/components/schemas/ImageBlockStyle","description":"Image styling"},"src_download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Src Download Url","description":"Presigned URL for image (only if src starts with gs://)"}},"type":"object","required":["id","z_index","bbox","src","block_class","style"],"title":"ImageBlockOutput","description":"Image block schema with presigned download URL."},"ImageBlockStyle":{"properties":{"shape":{"$ref":"#/components/schemas/ImageShape","description":"Image shape"},"border_radius":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Border Radius","description":"Border radius in pixels"},"border_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Border Width","description":"Border width in pixels"},"border_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Border Color","description":"Border color as hex string"}},"type":"object","required":["shape"],"title":"ImageBlockStyle","description":"Image block style schema."},"ImageContent":{"properties":{"version":{"type":"integer","title":"Version","description":"Schema version","default":1},"canvas":{"$ref":"#/components/schemas/Canvas","description":"Canvas configuration"},"background":{"anyOf":[{"$ref":"#/components/schemas/Background"},{"type":"null"}],"description":"Background configuration"},"visual_metadata":{"items":{"$ref":"#/components/schemas/VisualMetadata"},"type":"array","title":"Visual Metadata","description":"Visual metadata","default":[]},"text_blocks":{"items":{"$ref":"#/components/schemas/TextBlock"},"type":"array","title":"Text Blocks","description":"Text blocks","default":[]},"image_blocks":{"items":{"$ref":"#/components/schemas/ImageBlock"},"type":"array","title":"Image Blocks","description":"Image blocks","default":[]}},"type":"object","required":["canvas"],"title":"ImageContent","description":"Generated image content schema."},"ImageContentOutput":{"properties":{"version":{"type":"integer","title":"Version","description":"Schema version","default":1},"canvas":{"$ref":"#/components/schemas/Canvas","description":"Canvas configuration"},"background":{"anyOf":[{"$ref":"#/components/schemas/BackgroundOutput"},{"type":"null"}],"description":"Background configuration"},"visual_metadata":{"items":{"$ref":"#/components/schemas/VisualMetadata"},"type":"array","title":"Visual Metadata","description":"Visual metadata","default":[]},"text_blocks":{"items":{"$ref":"#/components/schemas/TextBlockOutput"},"type":"array","title":"Text Blocks","description":"Text blocks","default":[]},"image_blocks":{"items":{"$ref":"#/components/schemas/ImageBlockOutput"},"type":"array","title":"Image Blocks","description":"Image blocks","default":[]}},"type":"object","required":["canvas"],"title":"ImageContentOutput","description":"Generated image content schema with presigned download URLs."},"ImageExportFormat":{"type":"string","enum":["png","jpg","svg"],"title":"ImageExportFormat","description":"Enum for image export formats."},"ImageItemExportResponseSchema":{"properties":{"download_url":{"type":"string","title":"Download Url"}},"type":"object","required":["download_url"],"title":"ImageItemExportResponseSchema","description":"Schema for image item export response."},"ImageItemExportSchema":{"properties":{"format":{"$ref":"#/components/schemas/ImageExportFormat"},"upscale":{"type":"boolean","title":"Upscale","description":"Whether to upscale the image","default":false}},"type":"object","required":["format"],"title":"ImageItemExportSchema","description":"Schema for exporting an image item."},"ImageItemPartialUpdateSchema":{"properties":{"content":{"$ref":"#/components/schemas/ImageContent"}},"type":"object","title":"ImageItemPartialUpdateSchema","description":"Schema for partial updating an image item (metadata only)."},"ImageItemRefineSchema":{"properties":{"prompt":{"type":"string","title":"Prompt"},"visual_metadata_ids":{"items":{"type":"string"},"type":"array","maxItems":1,"title":"Visual Metadata Ids","description":"List of visual metadata IDs to refine"},"manual_bbox":{"anyOf":[{"$ref":"#/components/schemas/Bbox"},{"type":"null"}],"description":"Manual bbox to refine (exclusive with visual_metadata_ids)"}},"type":"object","required":["prompt"],"title":"ImageItemRefineSchema","description":"Schema for refining an image item."},"ImageItemResponseSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"image_run_id":{"$ref":"#/components/schemas/PydanticObjectId"},"generation_batch_id":{"$ref":"#/components/schemas/PydanticObjectId"},"status":{"$ref":"#/components/schemas/ImageItemStatus"},"parent_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Parent Ids"},"content":{"anyOf":[{"$ref":"#/components/schemas/ImageContentOutput"},{"type":"null"}]},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"visual_metadata_ids":{"items":{"type":"string"},"type":"array","title":"Visual Metadata Ids"},"manual_bbox":{"anyOf":[{"$ref":"#/components/schemas/Bbox"},{"type":"null"}]}},"type":"object","required":["id","image_run_id","generation_batch_id","status"],"title":"ImageItemResponseSchema","description":"Schema for image item response."},"ImageItemStatus":{"type":"string","enum":["pending","in_progress","completed","failed"],"title":"ImageItemStatus","description":"Enum for image item status."},"ImageRunCreateSchema":{"properties":{"source":{"oneOf":[{"$ref":"#/components/schemas/OrganizationImageRunSourceCreate"},{"$ref":"#/components/schemas/CampaignImageRunSourceCreate"},{"$ref":"#/components/schemas/RecipeAssetImageRunSourceCreate"},{"$ref":"#/components/schemas/RecipeMessageImageRunSourceCreate"}],"title":"Source","discriminator":{"propertyName":"type","mapping":{"campaign":"#/components/schemas/CampaignImageRunSourceCreate","organization":"#/components/schemas/OrganizationImageRunSourceCreate","recipe_asset":"#/components/schemas/RecipeAssetImageRunSourceCreate","recipe_message":"#/components/schemas/RecipeMessageImageRunSourceCreate"}}},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"template_image_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"supporting_image_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Supporting Image Ids","default":[]}},"type":"object","title":"ImageRunCreateSchema","description":"Schema for creating an image run."},"ImageRunGenerateSchema":{"properties":{"prompt":{"type":"string","title":"Prompt"},"template_image_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"supporting_image_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Supporting Image Ids","default":[]}},"type":"object","required":["prompt"],"title":"ImageRunGenerateSchema","description":"Schema for generating image items for an existing image run."},"ImageRunListSchema":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/ImageRunStatus"},"source":{"oneOf":[{"$ref":"#/components/schemas/OrganizationImageRunSourceSchema"},{"$ref":"#/components/schemas/CampaignImageRunSourceSchema"},{"$ref":"#/components/schemas/RecipeAssetImageRunSourceSchema"},{"$ref":"#/components/schemas/RecipeMessageImageRunSourceSchema"}],"title":"Source","discriminator":{"propertyName":"type","mapping":{"campaign":"#/components/schemas/CampaignImageRunSourceSchema","organization":"#/components/schemas/OrganizationImageRunSourceSchema","recipe_asset":"#/components/schemas/RecipeAssetImageRunSourceSchema","recipe_message":"#/components/schemas/RecipeMessageImageRunSourceSchema"}}}},"type":"object","required":["created_at","updated_at","organization_id","owner_id","owner","id","name","status","source"],"title":"ImageRunListSchema","description":"Schema for image run list item."},"ImageRunPartialUpdateSchema":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","title":"ImageRunPartialUpdateSchema","description":"Schema for partial update of image run (e.g. name)."},"ImageRunResponseSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/ImageRunStatus"},"source":{"oneOf":[{"$ref":"#/components/schemas/OrganizationImageRunSourceSchema"},{"$ref":"#/components/schemas/CampaignImageRunSourceSchema"},{"$ref":"#/components/schemas/RecipeAssetImageRunSourceSchema"},{"$ref":"#/components/schemas/RecipeMessageImageRunSourceSchema"}],"title":"Source","discriminator":{"propertyName":"type","mapping":{"campaign":"#/components/schemas/CampaignImageRunSourceSchema","organization":"#/components/schemas/OrganizationImageRunSourceSchema","recipe_asset":"#/components/schemas/RecipeAssetImageRunSourceSchema","recipe_message":"#/components/schemas/RecipeMessageImageRunSourceSchema"}}},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Latest user input prompt (generated for recipe-based sources if not provided)"},"items":{"items":{"$ref":"#/components/schemas/ImageItemResponseSchema"},"type":"array","title":"Items","default":[]},"template_image":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}],"description":"Latest user input template image"},"supporting_images":{"items":{"$ref":"#/components/schemas/BrandingAssetSchema"},"type":"array","title":"Supporting Images","description":"Latest user input supporting images"}},"type":"object","required":["id","name","status","source"],"title":"ImageRunResponseSchema","description":"Schema for image run response."},"ImageRunSourceType":{"type":"string","enum":["organization","campaign","recipe_asset","recipe_message"],"title":"ImageRunSourceType","description":"Enum for image run source types."},"ImageRunStatus":{"type":"string","enum":["pending","in_progress","completed","failed"],"title":"ImageRunStatus","description":"Enum for image run status."},"ImageRunSuggestionItemSchema":{"properties":{"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["title","description","prompt"],"title":"ImageRunSuggestionItemSchema","description":"Single suggestion item (title, description, prompt) for image generation."},"ImageRunSuggestionsRequestSchema":{"properties":{"template_image_id":{"$ref":"#/components/schemas/PydanticObjectId"},"asset_text":{"type":"string","title":"Asset Text"},"asset_type_hint":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Asset Type Hint"}},"type":"object","required":["template_image_id","asset_text"],"title":"ImageRunSuggestionsRequestSchema","description":"Request schema for image run strategy suggestions."},"ImageRunSuggestionsResponseSchema":{"properties":{"suggestions":{"items":{"$ref":"#/components/schemas/ImageRunSuggestionItemSchema"},"type":"array","title":"Suggestions"}},"type":"object","required":["suggestions"],"title":"ImageRunSuggestionsResponseSchema","description":"Response schema for image run strategy suggestions."},"ImageShape":{"type":"string","enum":["rect","rounded_rect","circle"],"title":"ImageShape","description":"Image shape options."},"ImportSourceTypeEnum":{"type":"string","enum":["public_url","google_drive","youtube","zoom","webex"],"title":"ImportSourceTypeEnum"},"ImportVideoFromGoogleDriveUrlSchema":{"properties":{"type":{"type":"string","const":"google_drive","title":"Type"},"file_ids":{"items":{"type":"string"},"type":"array","title":"File Ids"},"access_token":{"type":"string","title":"Access Token"},"access_token_expires_at":{"type":"string","format":"date-time","title":"Access Token Expires At"},"refresh_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","default":["https://www.googleapis.com/auth/drive.readonly"]}},"type":"object","required":["type","file_ids","access_token","access_token_expires_at"],"title":"ImportVideoFromGoogleDriveUrlSchema"},"ImportVideoFromPublicUrlSchema":{"properties":{"type":{"type":"string","const":"public_url","title":"Type","default":"public_url"},"video_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Video Url"}},"type":"object","required":["video_url"],"title":"ImportVideoFromPublicUrlSchema"},"ImportVideoSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"user_id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"imported_from":{"$ref":"#/components/schemas/ImportedFrom"},"source":{"$ref":"#/components/schemas/BlobSource"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]}},"type":"object","required":["id","organization_id","user_id","name","imported_from","source"],"title":"ImportVideoSchema"},"ImportedFrom":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"type":{"anyOf":[{"$ref":"#/components/schemas/ImportSourceTypeEnum"},{"type":"null"}]}},"type":"object","required":["url"],"title":"ImportedFrom"},"IntegrationFileImportResponseSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"file_name":{"type":"string","title":"File Name"},"metadata":{"$ref":"#/components/schemas/FileMetadata"},"file_size":{"type":"integer","title":"File Size"},"content_type":{"type":"string","title":"Content Type"},"source":{"anyOf":[{"$ref":"#/components/schemas/BlobSource"},{"type":"null"}]},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"variant_info":{"anyOf":[{"$ref":"#/components/schemas/VariationInfoSchema"},{"type":"null"}]},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"processing_status":{"anyOf":[{"$ref":"#/components/schemas/FileProcessingStatus"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/FileUIStatus"},{"type":"null"}]},"actions":{"anyOf":[{"$ref":"#/components/schemas/FileActionsSchema"},{"type":"null"}]},"entity_type":{"type":"string","const":"file","title":"Entity Type","default":"file"}},"type":"object","required":["organization_id","owner_id","owner","id","file_name","metadata","file_size","content_type","created_at","updated_at"],"title":"IntegrationFileImportResponseSchema"},"IntegrationMediaAudioImportResponseSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source":{"$ref":"#/components/schemas/BlobSource"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"sha256_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256 Hash"},"file_size":{"type":"integer","title":"File Size"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"status":{"$ref":"#/components/schemas/MediaAudioStatus"},"metadata":{"$ref":"#/components/schemas/MediaAudioMetadata","default":{}},"playback_url":{"type":"string","title":"Playback Url"},"entity_type":{"type":"string","const":"media_audio","title":"Entity Type","default":"media_audio"}},"type":"object","required":["organization_id","owner_id","owner","name","source","file_size","id","created_at","updated_at","status","playback_url"],"title":"IntegrationMediaAudioImportResponseSchema"},"IntegrationStatus":{"type":"string","enum":["connected","not_connected","failed"],"title":"IntegrationStatus"},"IntegrationStatusResponseSchema":{"properties":{"status":{"$ref":"#/components/schemas/IntegrationStatus"}},"type":"object","required":["status"],"title":"IntegrationStatusResponseSchema"},"JudgedDetailsDeviationsAndReasonsSchema":{"properties":{"deviation":{"type":"string","title":"Deviation"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["deviation","reason"],"title":"JudgedDetailsDeviationsAndReasonsSchema"},"JudgmentCheckResultSchema":{"properties":{"type":{"$ref":"#/components/schemas/TtcAssetJudgmentCheckType"},"score":{"type":"integer","title":"Score"},"target_description":{"type":"string","title":"Target Description"},"overall_assessment":{"type":"string","title":"Overall Assessment"},"adherence":{"items":{"type":"string"},"type":"array","title":"Adherence"},"elements_respected":{"items":{"type":"string"},"type":"array","title":"Elements Respected"},"deviations_and_reasons":{"items":{"$ref":"#/components/schemas/JudgedDetailsDeviationsAndReasonsSchema"},"type":"array","title":"Deviations And Reasons"}},"type":"object","required":["type","score","target_description","overall_assessment","adherence","elements_respected","deviations_and_reasons"],"title":"JudgmentCheckResultSchema"},"JudgmentResultSchema":{"properties":{"score":{"type":"integer","title":"Score"},"checks":{"items":{"$ref":"#/components/schemas/JudgmentCheckResultSchema"},"type":"array","title":"Checks"}},"type":"object","required":["score","checks"],"title":"JudgmentResultSchema"},"JwtTokenSchema":{"properties":{"access_token":{"type":"string","title":"Access Token"}},"type":"object","required":["access_token"],"title":"JwtTokenSchema"},"KnowledgeBasePartialUpdateSchema":{"properties":{"file_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"File Ids"},"video_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Video Ids"},"audio_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Audio Ids"},"url_content_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Url Content Ids"}},"type":"object","title":"KnowledgeBasePartialUpdateSchema"},"KnowledgeBaseReadSchema":{"properties":{"files":{"items":{"$ref":"#/components/schemas/FileMinimalReadSchema"},"type":"array","title":"Files","default":[]},"videos":{"items":{"$ref":"#/components/schemas/VideoMinimalReadSchema"},"type":"array","title":"Videos","default":[]},"audios":{"items":{"$ref":"#/components/schemas/MediaAudioMinimalReadSchema"},"type":"array","title":"Audios","default":[]},"url_contents":{"items":{"$ref":"#/components/schemas/UrlContentMinimalReadSchema"},"type":"array","title":"Url Contents","default":[]}},"type":"object","title":"KnowledgeBaseReadSchema"},"LanguageLocalizationSchema":{"properties":{"name":{"type":"string","title":"Name"},"tag":{"type":"string","title":"Tag"}},"type":"object","required":["name","tag"],"title":"LanguageLocalizationSchema"},"Layout":{"properties":{"channel":{"type":"string","title":"Channel"},"ratio":{"type":"string","title":"Ratio"},"width":{"type":"number","title":"Width"},"height":{"type":"number","title":"Height"}},"type":"object","required":["channel","ratio","width","height"],"title":"Layout"},"LinkedinAccountSchema":{"properties":{"urn":{"type":"string","title":"Urn"},"name":{"type":"string","title":"Name"}},"type":"object","required":["urn","name"],"title":"LinkedinAccountSchema"},"LinkedinAccountsResponseSchema":{"properties":{"member_urn":{"type":"string","title":"Member Urn"},"organizations":{"items":{"$ref":"#/components/schemas/LinkedinOrganizationSchema"},"type":"array","title":"Organizations"}},"type":"object","required":["member_urn","organizations"],"title":"LinkedinAccountsResponseSchema"},"LinkedinOrganizationSchema":{"properties":{"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"organization_urn":{"type":"string","title":"Organization Urn"}},"type":"object","required":["name","role","organization_urn"],"title":"LinkedinOrganizationSchema"},"LinkedinSelectedAccountsSchema":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LinkedinAccountSchema"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"LinkedinSelectedAccountsSchema"},"ListResponse_AssetSuggestionDetailSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AssetSuggestionDetailSchema"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","description":"Total number of items.","readOnly":true}},"type":"object","required":["items","total"],"title":"ListResponse[AssetSuggestionDetailSchema]"},"ListResponse_BrandVocabulary_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BrandVocabulary"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","description":"Total number of items.","readOnly":true}},"type":"object","required":["items","total"],"title":"ListResponse[BrandVocabulary]"},"ListResponse_LanguageLocalizationSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LanguageLocalizationSchema"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","description":"Total number of items.","readOnly":true}},"type":"object","required":["items","total"],"title":"ListResponse[LanguageLocalizationSchema]"},"ListResponse_OrganizationSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OrganizationSchema"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","description":"Total number of items.","readOnly":true}},"type":"object","required":["items","total"],"title":"ListResponse[OrganizationSchema]"},"ListResponse_RawTranscriptSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RawTranscriptSchema"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","description":"Total number of items.","readOnly":true}},"type":"object","required":["items","total"],"title":"ListResponse[RawTranscriptSchema]"},"ListResponse_SpeakerMapping_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SpeakerMapping"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","description":"Total number of items.","readOnly":true}},"type":"object","required":["items","total"],"title":"ListResponse[SpeakerMapping]"},"ListResponse_TranscriptListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TranscriptListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","description":"Total number of items.","readOnly":true}},"type":"object","required":["items","total"],"title":"ListResponse[TranscriptListItemSchema]"},"ListResponse_UpdateWordAllDiffSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UpdateWordAllDiffSchema"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","description":"Total number of items.","readOnly":true}},"type":"object","required":["items","total"],"title":"ListResponse[UpdateWordAllDiffSchema]"},"LogoPosition":{"type":"string","enum":["top_left","top_right","bottom_left","bottom_right"],"title":"LogoPosition"},"LowerThirdReadSchema":{"properties":{"font":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"font_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Family","description":"Only used when `font_id` is not provided. Otherwise, the value is always set to the default font family."},"style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Timeout"},"font_color":{"type":"string","title":"Font Color"},"background_color":{"type":"string","title":"Background Color"},"uppercase":{"type":"boolean","title":"Uppercase","default":false},"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}]},"speaker_title":{"anyOf":[{"$ref":"#/components/schemas/app__templates__models__lower_thirds__SpeakerText"},{"type":"null"}]},"speaker_name":{"anyOf":[{"$ref":"#/components/schemas/app__templates__models__lower_thirds__SpeakerText"},{"type":"null"}]},"version":{"type":"integer","title":"Version"},"background":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]}},"type":"object","required":["font_color","background_color","version"],"title":"LowerThirdReadSchema"},"LowerThirdWriteSchema":{"properties":{"font_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"font_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Family","description":"Only used when `font_id` is not provided. Otherwise, the value is always set to the default font family."},"style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Timeout"},"font_color":{"type":"string","title":"Font Color"},"background_color":{"type":"string","title":"Background Color"},"uppercase":{"type":"boolean","title":"Uppercase","default":false},"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}]},"speaker_title":{"anyOf":[{"$ref":"#/components/schemas/app__templates__models__lower_thirds__SpeakerText"},{"type":"null"}]},"speaker_name":{"anyOf":[{"$ref":"#/components/schemas/app__templates__models__lower_thirds__SpeakerText"},{"type":"null"}]},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"background_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["font_color","background_color"],"title":"LowerThirdWriteSchema"},"MediaAudioCreateSchema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source":{"$ref":"#/components/schemas/BlobSource"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"sha256_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256 Hash"},"file_size":{"type":"integer","title":"File Size"}},"type":"object","required":["name","source","file_size"],"title":"MediaAudioCreateSchema"},"MediaAudioDetailSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source":{"$ref":"#/components/schemas/BlobSource"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"sha256_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256 Hash"},"file_size":{"type":"integer","title":"File Size"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"status":{"$ref":"#/components/schemas/MediaAudioStatus"},"metadata":{"$ref":"#/components/schemas/MediaAudioMetadata","default":{}},"playback_url":{"type":"string","title":"Playback Url"}},"type":"object","required":["organization_id","owner_id","owner","name","source","file_size","id","created_at","updated_at","status","playback_url"],"title":"MediaAudioDetailSchema"},"MediaAudioListItemSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source":{"$ref":"#/components/schemas/BlobSource"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"sha256_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256 Hash"},"file_size":{"type":"integer","title":"File Size"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"status":{"$ref":"#/components/schemas/MediaAudioStatus"},"metadata":{"$ref":"#/components/schemas/MediaAudioMetadata","default":{}},"playback_url":{"type":"string","title":"Playback Url"}},"type":"object","required":["organization_id","owner_id","owner","name","source","file_size","id","created_at","updated_at","status","playback_url"],"title":"MediaAudioListItemSchema"},"MediaAudioMetadata":{"properties":{"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"},"detected_language":{"anyOf":[{"$ref":"#/components/schemas/DetectedLanguageMetadata"},{"type":"null"}]}},"type":"object","title":"MediaAudioMetadata"},"MediaAudioMinimalReadSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"MediaAudioMinimalReadSchema"},"MediaAudioPartialUpdateSchema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"MediaAudioPartialUpdateSchema","description":"Schema for PATCH (partial update) endpoint."},"MediaAudioStatus":{"type":"string","enum":["processing_pending","processing_started","processing_completed","processing_failed"],"title":"MediaAudioStatus"},"MediaAudioUpdateLanguageSchema":{"properties":{"language":{"type":"string","title":"Language"},"confidence":{"type":"number","title":"Confidence"}},"type":"object","required":["language","confidence"],"title":"MediaAudioUpdateLanguageSchema"},"Meeting":{"properties":{"account_id":{"type":"string","title":"Account Id"},"duration":{"type":"integer","title":"Duration"},"host_id":{"type":"string","title":"Host Id"},"id":{"type":"integer","title":"Id"},"recording_count":{"type":"integer","title":"Recording Count"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"topic":{"type":"string","title":"Topic"},"total_size":{"type":"integer","title":"Total Size"},"type":{"$ref":"#/components/schemas/MeetingType"},"uuid":{"type":"string","title":"Uuid"},"recording_play_passcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Play Passcode"},"auto_delete":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Delete"},"auto_delete_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Auto Delete Date"},"recording_files":{"items":{"$ref":"#/components/schemas/RecordingFile"},"type":"array","title":"Recording Files"}},"type":"object","required":["account_id","duration","host_id","id","recording_count","start_time","topic","total_size","type","uuid","recording_files"],"title":"Meeting"},"MeetingResponse":{"properties":{"from_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"},"to_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"},"next_page_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Token"},"page_count":{"type":"integer","title":"Page Count"},"page_size":{"type":"integer","title":"Page Size"},"total_records":{"type":"integer","title":"Total Records"},"meetings":{"items":{"$ref":"#/components/schemas/Meeting"},"type":"array","title":"Meetings"}},"type":"object","required":["page_count","page_size","total_records","meetings"],"title":"MeetingResponse"},"MeetingType":{"type":"integer","enum":[1,2,3,4,5,6,7,8,9,99],"title":"MeetingType"},"MessageHierarchyCreateSchema":{"properties":{"company":{"$ref":"#/components/schemas/Company","description":"Company information"},"product_level":{"items":{"$ref":"#/components/schemas/Product"},"type":"array","title":"Product Level","description":"Product level information"},"feature_level":{"items":{"$ref":"#/components/schemas/Feature"},"type":"array","title":"Feature Level","description":"Feature level information"},"competitor_level":{"items":{"$ref":"#/components/schemas/Competitor"},"type":"array","title":"Competitor Level","description":"Competitor level information"}},"type":"object","required":["company","product_level","feature_level","competitor_level"],"title":"MessageHierarchyCreateSchema","description":"Message hierarchy schema."},"MessageHierarchyDetailSchema":{"properties":{"company":{"$ref":"#/components/schemas/Company","description":"Company information"},"product_level":{"items":{"$ref":"#/components/schemas/Product"},"type":"array","title":"Product Level","description":"Product level information"},"feature_level":{"items":{"$ref":"#/components/schemas/Feature"},"type":"array","title":"Feature Level","description":"Feature level information"},"competitor_level":{"items":{"$ref":"#/components/schemas/Competitor"},"type":"array","title":"Competitor Level","description":"Competitor level information"}},"type":"object","required":["company","product_level","feature_level","competitor_level"],"title":"MessageHierarchyDetailSchema","description":"Message hierarchy schema."},"MessageMetadata":{"properties":{"openai":{"anyOf":[{"$ref":"#/components/schemas/app__ttcs_conversations__models__message__OpenAIMetadata"},{"type":"null"}]}},"type":"object","title":"MessageMetadata"},"MessageRole":{"type":"string","enum":["user","assistant"],"title":"MessageRole"},"MultiSegmentClip":{"properties":{"segments":{"items":{"$ref":"#/components/schemas/ClipSegment"},"type":"array","minItems":1,"title":"Segments"}},"type":"object","required":["segments"],"title":"MultiSegmentClip","description":"A multi-segment clip containing multiple segments with validation.\n\nThis model represents a clip that can be split into multiple segments,\neach with their own time ranges and removed parts."},"MultiSegmentClipWriteSchema":{"properties":{"segments":{"items":{"$ref":"#/components/schemas/ClipSegment"},"type":"array","minItems":1,"title":"Segments"}},"type":"object","required":["segments"],"title":"MultiSegmentClipWriteSchema","description":"Write schema for multi-segment clips with additional validation."},"OAuthExchangePayload":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"OAuthExchangePayload"},"OnboardingStatus":{"type":"string","enum":["started","company_info_submitted","crawling_completed","completed"],"title":"OnboardingStatus"},"OpenAIMetadataSchema":{"properties":{"latest_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Response Id"},"vector_store_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vector Store Id"}},"type":"object","title":"OpenAIMetadataSchema"},"OpenAiVectorStoreFileStatus":{"type":"string","enum":["in_progress","completed","cancelled","failed"],"title":"OpenAiVectorStoreFileStatus","description":"OpenAI Vector Store File Status Enum.\n\nTaken from: VectorStoreFile.status\nhttps://platform.openai.com/docs/api-reference/vector-stores-files/file-object\n\nNote: this status is not about the file upload status, but rather the\nstatus of the file in the OpenAI vector store."},"OrganizationCreateSchema":{"properties":{"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"email_domain":{"type":"string","title":"Email Domain"},"descope_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Descope Id"}},"type":"object","required":["email_domain"],"title":"OrganizationCreateSchema"},"OrganizationImageRunSourceCreate":{"properties":{"type":{"type":"string","const":"organization","title":"Type","default":"organization"}},"type":"object","title":"OrganizationImageRunSourceCreate","description":"Organization source for image run creation."},"OrganizationImageRunSourceSchema":{"properties":{"type":{"type":"string","const":"organization","title":"Type"}},"type":"object","required":["type"],"title":"OrganizationImageRunSourceSchema","description":"Organization source schema for image run response."},"OrganizationOnboardSchema":{"properties":{"homepage_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Homepage Url"},"blog_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Blog Url"}},"type":"object","required":["homepage_url","blog_url"],"title":"OrganizationOnboardSchema"},"OrganizationSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"email_domain":{"type":"string","title":"Email Domain"},"trial":{"anyOf":[{"$ref":"#/components/schemas/TrialOutSchema"},{"type":"null"}]},"homepage_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Homepage Url"},"blog_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Blog Url"},"onboarding_status":{"anyOf":[{"$ref":"#/components/schemas/OnboardingStatus"},{"type":"null"}]},"brand_vocabulary":{"items":{"$ref":"#/components/schemas/BrandVocabulary"},"type":"array","title":"Brand Vocabulary","default":[]}},"type":"object","required":["id","name","email_domain"],"title":"OrganizationSchema"},"OrganizationSettingsDetailSchema":{"properties":{"elastic_index_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Elastic Index Name"},"pinecone_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pinecone Namespace"},"openai_vector_store_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openai Vector Store Id"}},"type":"object","title":"OrganizationSettingsDetailSchema"},"OrganizationSettingsPartialUpdateSchema":{"properties":{"elastic_index_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Elastic Index Name"},"pinecone_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pinecone Namespace"},"openai_vector_store_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openai Vector Store Id"}},"type":"object","title":"OrganizationSettingsPartialUpdateSchema"},"OrganizationVocabularyUpdateAllSchema":{"properties":{"find":{"type":"string","title":"Find","description":"Word to find, case insensitive."},"replace":{"type":"string","title":"Replace","description":"Word to replace, case sensitive."}},"type":"object","required":["find","replace"],"title":"OrganizationVocabularyUpdateAllSchema","example":{"find":"test","replace":"TEST"}},"OrganizationVocabularyUpdateOneSchema":{"properties":{"find":{"type":"string","title":"Find","description":"Word to find, case insensitive."},"replace":{"type":"string","title":"Replace","description":"Word to replace, case sensitive."}},"type":"object","required":["find","replace"],"title":"OrganizationVocabularyUpdateOneSchema","example":{"find":"test","replace":"TEST"}},"OutlookImportOnedrivePayload":{"properties":{"file_id":{"type":"string","title":"File Id"},"drive_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drive Id"},"share_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Url"},"is_part_of_knowledge_base":{"type":"boolean","title":"Is Part Of Knowledge Base","default":true}},"type":"object","required":["file_id"],"title":"OutlookImportOnedrivePayload"},"OutlookImportSharepointPayload":{"properties":{"file_id":{"type":"string","title":"File Id"},"drive_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drive Id"},"share_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Url"},"is_part_of_knowledge_base":{"type":"boolean","title":"Is Part Of Knowledge Base","default":true},"site_id":{"type":"string","title":"Site Id"}},"type":"object","required":["file_id","site_id"],"title":"OutlookImportSharepointPayload"},"OutlookPublishContextConversationAsset":{"properties":{"type":{"type":"string","const":"conversation_asset","title":"Type","default":"conversation_asset"},"conversation_asset_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["conversation_asset_id"],"title":"OutlookPublishContextConversationAsset"},"OutlookPublishContextConversationMessage":{"properties":{"type":{"type":"string","const":"conversation_message","title":"Type","default":"conversation_message"},"conversation_message_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["conversation_message_id"],"title":"OutlookPublishContextConversationMessage"},"OutlookPublishContextFile":{"properties":{"type":{"type":"string","const":"file","title":"Type","default":"file"},"file_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["file_id"],"title":"OutlookPublishContextFile"},"OutlookPublishContextImageItem":{"properties":{"format":{"$ref":"#/components/schemas/ImageExportFormat"},"upscale":{"type":"boolean","title":"Upscale","description":"Whether to upscale the image","default":false},"type":{"type":"string","const":"image_item","title":"Type","default":"image_item"},"image_item_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["format","image_item_id"],"title":"OutlookPublishContextImageItem"},"OutlookPublishPayloadSchema":{"properties":{"context":{"oneOf":[{"$ref":"#/components/schemas/OutlookPublishContextConversationAsset"},{"$ref":"#/components/schemas/OutlookPublishContextConversationMessage"},{"$ref":"#/components/schemas/OutlookPublishContextFile"},{"$ref":"#/components/schemas/OutlookPublishContextImageItem"}],"title":"Context","discriminator":{"propertyName":"type","mapping":{"conversation_asset":"#/components/schemas/OutlookPublishContextConversationAsset","conversation_message":"#/components/schemas/OutlookPublishContextConversationMessage","file":"#/components/schemas/OutlookPublishContextFile","image_item":"#/components/schemas/OutlookPublishContextImageItem"}}}},"type":"object","required":["context"],"title":"OutlookPublishPayloadSchema"},"PageInfo":{"properties":{"totalResults":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Totalresults"},"resultsPerPage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resultsperpage"}},"type":"object","title":"PageInfo"},"PaginatedResponse_BlogOutlineListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BlogOutlineListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[BlogOutlineListItemSchema]"},"PaginatedResponse_BlogPostListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BlogPostListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[BlogPostListItemSchema]"},"PaginatedResponse_BrandingAssetSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BrandingAssetSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[BrandingAssetSchema]"},"PaginatedResponse_CampaignListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CampaignListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[CampaignListItemSchema]"},"PaginatedResponse_ChapterListSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChapterListSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[ChapterListSchema]"},"PaginatedResponse_ClipListSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ClipListSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[ClipListSchema]"},"PaginatedResponse_CollectionListSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CollectionListSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[CollectionListSchema]"},"PaginatedResponse_ContentThemeListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContentThemeListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[ContentThemeListItemSchema]"},"PaginatedResponse_FileListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FileListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[FileListItemSchema]"},"PaginatedResponse_ImageItemResponseSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ImageItemResponseSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[ImageItemResponseSchema]"},"PaginatedResponse_ImageRunListSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ImageRunListSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[ImageRunListSchema]"},"PaginatedResponse_MediaAudioListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MediaAudioListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[MediaAudioListItemSchema]"},"PaginatedResponse_PersonaListAllResponseItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PersonaListAllResponseItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[PersonaListAllResponseItemSchema]"},"PaginatedResponse_PostListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PostListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[PostListItemSchema]"},"PaginatedResponse_PostScheduleSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PostScheduleSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[PostScheduleSchema]"},"PaginatedResponse_RecapBlogListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RecapBlogListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[RecapBlogListItemSchema]"},"PaginatedResponse_RecipeListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RecipeListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[RecipeListItemSchema]"},"PaginatedResponse_RecipeRunListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RecipeRunListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[RecipeRunListItemSchema]"},"PaginatedResponse_SharepointSiteSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SharepointSiteSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[SharepointSiteSchema]"},"PaginatedResponse_SocialPostListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SocialPostListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[SocialPostListItemSchema]"},"PaginatedResponse_TagSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TagSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[TagSchema]"},"PaginatedResponse_TemplateDetailSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TemplateDetailSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[TemplateDetailSchema]"},"PaginatedResponse_TtcConversationAssetListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TtcConversationAssetListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[TtcConversationAssetListItemSchema]"},"PaginatedResponse_TtcConversationListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TtcConversationListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[TtcConversationListItemSchema]"},"PaginatedResponse_TtcConversationMessageListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TtcConversationMessageListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[TtcConversationMessageListItemSchema]"},"PaginatedResponse_UrlContentListItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UrlContentListItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[UrlContentListItemSchema]"},"PaginatedResponse_UserSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[UserSchema]"},"PaginatedResponse_VideoListSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/VideoListSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[VideoListSchema]"},"PaginatedResponse_WritingStyleListAllResponseItemSchema_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WritingStyleListAllResponseItemSchema"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"PaginatedResponse[WritingStyleListAllResponseItemSchema]"},"PartialUpdateVideoSchema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","title":"PartialUpdateVideoSchema"},"PersonaCoreMessaging":{"properties":{"positioning_statement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Positioning Statement"},"value_propositions":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Value Propositions"}},"type":"object","title":"PersonaCoreMessaging","description":"Core messaging strategy for a persona."},"PersonaCreateSchema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"messaging_hierarchy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messaging Hierarchy"},"examples":{"anyOf":[{"$ref":"#/components/schemas/PersonaSourcesWriteSchema"},{"type":"null"}]},"training_data":{"anyOf":[{"$ref":"#/components/schemas/PersonaSourcesWriteSchema"},{"type":"null"}]}},"type":"object","required":["name"],"title":"PersonaCreateSchema"},"PersonaDetails":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"roles":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Roles"},"key_challenges":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Key Challenges"},"use_case_requirements":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Use Case Requirements"},"key_success_indicators":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Key Success Indicators"},"buying_triggers":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Buying Triggers"},"objections_and_responses":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Objections And Responses"},"core_messaging":{"$ref":"#/components/schemas/PersonaCoreMessaging"},"messaging_guidelines":{"$ref":"#/components/schemas/PersonaMessagingGuidelines"},"proof_points":{"$ref":"#/components/schemas/PersonaProofPoints"}},"type":"object","required":["core_messaging","messaging_guidelines","proof_points"],"title":"PersonaDetails","description":"Complete persona data including all messaging and audience information.\n\nNote: this model is also used as the LLM response model."},"PersonaGetItemByIdSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/PersonaStatus","default":"started"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"details":{"anyOf":[{"$ref":"#/components/schemas/PersonaDetails"},{"type":"null"}]},"user_inputs":{"anyOf":[{"$ref":"#/components/schemas/PersonaUserInputsReadSchema"},{"type":"null"}]},"text_blob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Blob"},"citations_blob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citations Blob"},"reference_materials":{"anyOf":[{"$ref":"#/components/schemas/PromptEnhancementReferenceMaterialsReadSchema"},{"type":"null"}]},"coextracted_personas":{"items":{"$ref":"#/components/schemas/PersonaReadSchema"},"type":"array","title":"Coextracted Personas"}},"type":"object","required":["organization_id","owner_id","owner","created_at","updated_at","name","id"],"title":"PersonaGetItemByIdSchema"},"PersonaLanguageGuidelines":{"properties":{"dos":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Dos"},"donts":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Donts"},"power_phrases":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Power Phrases"},"power_words":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Power Words"}},"type":"object","title":"PersonaLanguageGuidelines","description":"Language guidelines for messaging to a persona."},"PersonaListAllResponseItemSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/PersonaStatus","default":"started"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["organization_id","owner_id","owner","created_at","updated_at","name","id"],"title":"PersonaListAllResponseItemSchema"},"PersonaListItemSchema":{"properties":{"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/PersonaStatus","default":"started"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name","id"],"title":"PersonaListItemSchema","description":"Lightweight schema for persona list endpoints."},"PersonaMessagingGuidelines":{"properties":{"engagement_triggers":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Engagement Triggers"},"attention_hooks":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Attention Hooks"},"language":{"$ref":"#/components/schemas/PersonaLanguageGuidelines"}},"type":"object","required":["language"],"title":"PersonaMessagingGuidelines","description":"Messaging guidelines for engaging with a persona."},"PersonaMinimalSchema":{"properties":{"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/PromptEnhancementStatus","default":"started"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name","id"],"title":"PersonaMinimalSchema","description":"Lightweight schema for persona (duplicated to avoid circular import)."},"PersonaProofPoints":{"properties":{"case_studies":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Case Studies"},"data_analytics":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Data Analytics"},"customer_testimonials":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Customer Testimonials"}},"type":"object","title":"PersonaProofPoints","description":"Proof points to support messaging to a persona."},"PersonaReadSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/PersonaStatus","default":"started"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"details":{"anyOf":[{"$ref":"#/components/schemas/PersonaDetails"},{"type":"null"}]},"user_inputs":{"anyOf":[{"$ref":"#/components/schemas/PersonaUserInputsReadSchema"},{"type":"null"}]},"text_blob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Blob"},"citations_blob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citations Blob"},"reference_materials":{"anyOf":[{"$ref":"#/components/schemas/PromptEnhancementReferenceMaterialsReadSchema"},{"type":"null"}]}},"type":"object","required":["organization_id","owner_id","owner","created_at","updated_at","name","id"],"title":"PersonaReadSchema"},"PersonaSourcesReadSchema":{"properties":{"files":{"items":{"$ref":"#/components/schemas/FileMinimalReadSchema"},"type":"array","title":"Files","default":[]},"urls":{"items":{"$ref":"#/components/schemas/UrlContentMinimalReadSchema"},"type":"array","title":"Urls","default":[]},"texts":{"items":{"type":"string"},"type":"array","title":"Texts","default":[]}},"type":"object","title":"PersonaSourcesReadSchema","description":"Sources used to generate the persona."},"PersonaSourcesWriteSchema":{"properties":{"file_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"File Ids","default":[]},"url_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Url Ids","default":[]},"texts":{"items":{"type":"string"},"type":"array","title":"Texts","default":[]}},"type":"object","title":"PersonaSourcesWriteSchema"},"PersonaStatus":{"type":"string","enum":["started","draft","published","failed"],"title":"PersonaStatus"},"PersonaUpdateSchema":{"properties":{"name":{"type":"string","title":"Name"},"text_blob":{"type":"string","title":"Text Blob"}},"type":"object","required":["name","text_blob"],"title":"PersonaUpdateSchema"},"PersonaUserInputsReadSchema":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"messaging_hierarchy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messaging Hierarchy"},"examples":{"anyOf":[{"$ref":"#/components/schemas/PersonaSourcesReadSchema"},{"type":"null"}]},"training_data":{"anyOf":[{"$ref":"#/components/schemas/PersonaSourcesReadSchema"},{"type":"null"}]}},"type":"object","title":"PersonaUserInputsReadSchema","description":"User inputs used to generate the persona."},"PersonaValidationRule":{"properties":{"name":{"type":"string","title":"Name","description":"Stable rule identifier in lowercase snake_case. Must match ^[a-z][a-z0-9_]+$. Use a short verb-phrase describing the requirement."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Short human-readable title for UI. Use Title Case."},"instructions":{"type":"string","title":"Instructions","description":"Single, enforceable instruction for a generator or evaluator. Write as an imperative requirement (Do/Do not). Keep it atomic (one rule only). The instruction should be directly usable to enforce or validate content."},"dos":{"items":{"type":"string"},"type":"array","title":"Dos","description":"Actions or phrasings to use when writing for this persona."},"donts":{"items":{"type":"string"},"type":"array","title":"Donts","description":"Actions or phrasings to avoid when writing for this persona."},"good_examples":{"items":{"type":"string"},"type":"array","title":"Good Examples","description":"Example content that follows this rule well."},"bad_examples":{"items":{"type":"string"},"type":"array","title":"Bad Examples","description":"Example content that violates this rule."},"category":{"$ref":"#/components/schemas/RuleCategory"},"severity":{"$ref":"#/components/schemas/Severity","description":"How critical a violation is for audience alignment.","default":"major"},"validation_context":{"type":"string","title":"Validation Context","description":"Additional context explaining WHY this matters for this persona. Helps the validator understand the audience motivation."},"detection_hints":{"items":{"type":"string"},"type":"array","title":"Detection Hints","description":"Specific patterns or signals to look for when validating. Example: ['mentions cost savings', 'quantifies ROI']"},"rule_origin":{"type":"string","title":"Rule Origin","description":"Describes the origin of the rule, such as the specific section or table in the style guide it was extracted from. Helps with traceability and context. Use references from where the rule was derived."}},"type":"object","required":["name","instructions","category","validation_context","rule_origin"],"title":"PersonaValidationRule","description":"A validation rule derived from a Persona.\n\nEnriched with persona-specific context to help validators understand\nwhy the rule matters for this audience."},"PersonalizationInfoSchema":{"properties":{"persona":{"$ref":"#/components/schemas/PersonaMinimalSchema"}},"type":"object","required":["persona"],"title":"PersonalizationInfoSchema"},"PersonalizeFileSchema":{"properties":{"persona_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Persona Ids"}},"type":"object","required":["persona_ids"],"title":"PersonalizeFileSchema","description":"Schema for personalization request from API."},"PickerTokenResponseSchema":{"properties":{"access_token":{"type":"string","title":"Access Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["access_token","expires_at"],"title":"PickerTokenResponseSchema"},"PlatformType":{"type":"string","enum":["youtube","linkedin","linkedin-page"],"title":"PlatformType","description":"Platform type."},"PlaylistItem":{"properties":{"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind","default":"youtube#playlistItem"},"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"snippet":{"anyOf":[{"$ref":"#/components/schemas/PlaylistItemSnippet"},{"type":"null"}]},"contentDetails":{"anyOf":[{"$ref":"#/components/schemas/ContentDetails"},{"type":"null"}]}},"type":"object","title":"PlaylistItem"},"PlaylistItemListResponse":{"properties":{"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind","default":"youtube#playlistItemListResponse"},"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag"},"items":{"anyOf":[{"items":{"$ref":"#/components/schemas/PlaylistItem"},"type":"array"},{"type":"null"}],"title":"Items"},"pageInfo":{"anyOf":[{"$ref":"#/components/schemas/PageInfo"},{"type":"null"}]},"nextPageToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextpagetoken"}},"type":"object","title":"PlaylistItemListResponse"},"PlaylistItemSnippet":{"properties":{"publishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Publishedat"},"channelId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channelid"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"thumbnails":{"anyOf":[{"$ref":"#/components/schemas/Thumbnails"},{"type":"null"}]},"channelTitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channeltitle"},"playlistId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Playlistid"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"},"resourceId":{"anyOf":[{"$ref":"#/components/schemas/ResourceId"},{"type":"null"}]},"videoOwnerChannelTitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Videoownerchanneltitle"},"videoOwnerChannelId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Videoownerchannelid"}},"type":"object","title":"PlaylistItemSnippet"},"PointOfViews":{"properties":{"point_of_views":{"items":{"type":"string"},"type":"array","title":"Point Of Views"}},"type":"object","required":["point_of_views"],"title":"PointOfViews"},"PostCreateBulkSchema":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PostCreateSchema"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"PostCreateBulkSchema"},"PostCreateSchema":{"properties":{"platform":{"$ref":"#/components/schemas/PlatformType"},"clip_id":{"$ref":"#/components/schemas/PydanticObjectId"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"owner_urn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Urn"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"}},"type":"object","required":["platform","clip_id"],"title":"PostCreateSchema"},"PostListItemSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"platform":{"$ref":"#/components/schemas/PlatformType"},"clip_id":{"$ref":"#/components/schemas/PydanticObjectId"},"status":{"$ref":"#/components/schemas/PostStatus"},"owner_urn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Urn"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"}},"type":"object","required":["id","organization_id","owner_id","platform","clip_id","status"],"title":"PostListItemSchema"},"PostPartialUpdateSchema":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/PostStatus"},{"type":"null"}]},"fail_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fail Reason"},"fail_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fail Details"}},"type":"object","title":"PostPartialUpdateSchema"},"PostScheduleSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"status":{"$ref":"#/components/schemas/PostStatus"},"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"}},"type":"object","required":["id","status","scheduled_at"],"title":"PostScheduleSchema"},"PostStatus":{"type":"string","enum":["draft","waiting_for_exporting","published","failed"],"title":"PostStatus"},"Product":{"properties":{"use_cases":{"items":{"type":"string"},"type":"array","title":"Use Cases"},"benefits":{"items":{"type":"string"},"type":"array","title":"Benefits"},"pain_points":{"items":{"type":"string"},"type":"array","title":"Pain Points"},"general_positioning_statements":{"items":{"type":"string"},"type":"array","title":"General Positioning Statements"},"competitive_positioning_statements":{"items":{"type":"string"},"type":"array","title":"Competitive Positioning Statements"},"product_name":{"type":"string","title":"Product Name"},"key_features":{"items":{"type":"string"},"type":"array","title":"Key Features"}},"type":"object","required":["use_cases","benefits","pain_points","general_positioning_statements","competitive_positioning_statements","product_name","key_features"],"title":"Product"},"ProductComparison":{"properties":{"product_name":{"type":"string","title":"Product Name"},"comparison":{"type":"string","title":"Comparison"}},"type":"object","required":["product_name","comparison"],"title":"ProductComparison"},"PromptEnhancementReferenceMaterialsReadSchema":{"properties":{"files":{"items":{"$ref":"#/components/schemas/FileMinimalReadSchema"},"type":"array","title":"Files","default":[]},"urls":{"items":{"$ref":"#/components/schemas/UrlContentMinimalReadSchema"},"type":"array","title":"Urls","default":[]}},"type":"object","title":"PromptEnhancementReferenceMaterialsReadSchema"},"PromptEnhancementStatus":{"type":"string","enum":["started","draft","published","failed"],"title":"PromptEnhancementStatus","description":"Status of the Prompt Enhancement."},"PromptEnhancerInputSchema":{"properties":{"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["prompt"],"title":"PromptEnhancerInputSchema"},"PromptEnhancerOutputSchema":{"properties":{"output":{"type":"string","title":"Output"}},"type":"object","required":["output"],"title":"PromptEnhancerOutputSchema"},"PublishResponseSchema":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"PublishResponseSchema"},"PydanticObjectId":{"type":"string","maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","example":"5eb7cf5a86d9755df3a6c593"},"RawTranscriptSchema":{"properties":{"speaker":{"type":"string","title":"Speaker","default":"Unknown"},"speaker_name":{"type":"string","title":"Speaker Name","default":"Unknown"},"word":{"type":"string","title":"Word"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"}},"type":"object","required":["word","start_second","end_second"],"title":"RawTranscriptSchema"},"RecapBlogCreateSchema":{"properties":{"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["video_id","title","content"],"title":"RecapBlogCreateSchema"},"RecapBlogDetailSchema":{"properties":{"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["title","content"],"title":"RecapBlogDetailSchema"},"RecapBlogListItemSchema":{"properties":{"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["title","content"],"title":"RecapBlogListItemSchema"},"RecipRunTtcAssetSourceReadSchema":{"properties":{"type":{"type":"string","const":"recipe_run_step","title":"Type"},"recipe_run_step_id":{"$ref":"#/components/schemas/PydanticObjectId"},"recipe_run_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["type","recipe_run_step_id","recipe_run_id"],"title":"RecipRunTtcAssetSourceReadSchema"},"RecipeAssetImageRunSourceCreate":{"properties":{"type":{"type":"string","const":"recipe_asset","title":"Type","default":"recipe_asset"},"asset_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["asset_id"],"title":"RecipeAssetImageRunSourceCreate","description":"Recipe asset source for image run creation.\n\nOnly asset_id needed - campaign, recipe_run, recipe_run_step derived from asset."},"RecipeAssetImageRunSourceSchema":{"properties":{"type":{"type":"string","const":"recipe_asset","title":"Type"},"campaign_id":{"$ref":"#/components/schemas/PydanticObjectId"},"recipe_run_id":{"$ref":"#/components/schemas/PydanticObjectId"},"recipe_run_step_id":{"$ref":"#/components/schemas/PydanticObjectId"},"asset_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["type","campaign_id","recipe_run_id","recipe_run_step_id","asset_id"],"title":"RecipeAssetImageRunSourceSchema","description":"Recipe asset source schema for image run response."},"RecipeAssetsReadSchema":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/RecipeAssetsType"},"prompt":{"type":"string","title":"Prompt"},"persona":{"anyOf":[{"$ref":"#/components/schemas/PersonaListItemSchema"},{"type":"null"}]},"writing_style":{"anyOf":[{"$ref":"#/components/schemas/WritingStyleListItemSchema"},{"type":"null"}]}},"type":"object","required":["name","type","prompt"],"title":"RecipeAssetsReadSchema","description":"Schema for reading recipe assets."},"RecipeAssetsType":{"type":"string","enum":["text"],"title":"RecipeAssetsType","description":"Enum for recipe asset types."},"RecipeDetailSchema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"assets":{"items":{"$ref":"#/components/schemas/RecipeAssetsReadSchema"},"type":"array","title":"Assets"}},"type":"object","required":["name","id","assets"],"title":"RecipeDetailSchema"},"RecipeListItemSchema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_created_from_suggested_asset":{"type":"boolean","title":"Is Created From Suggested Asset","default":false},"id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["name","id"],"title":"RecipeListItemSchema"},"RecipeMessageImageRunSourceCreate":{"properties":{"type":{"type":"string","const":"recipe_message","title":"Type","default":"recipe_message"},"message_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["message_id"],"title":"RecipeMessageImageRunSourceCreate","description":"Recipe message source for image run creation.\n\nOnly message_id needed - all other fields derived from message\nand its relationships."},"RecipeMessageImageRunSourceSchema":{"properties":{"type":{"type":"string","const":"recipe_message","title":"Type"},"campaign_id":{"$ref":"#/components/schemas/PydanticObjectId"},"recipe_run_id":{"$ref":"#/components/schemas/PydanticObjectId"},"recipe_run_step_id":{"$ref":"#/components/schemas/PydanticObjectId"},"asset_id":{"$ref":"#/components/schemas/PydanticObjectId"},"conversation_id":{"$ref":"#/components/schemas/PydanticObjectId"},"message_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["type","campaign_id","recipe_run_id","recipe_run_step_id","asset_id","conversation_id","message_id"],"title":"RecipeMessageImageRunSourceSchema","description":"Recipe message source schema for image run response."},"RecipePartialUpdateSchema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_created_from_suggested_asset":{"type":"boolean","title":"Is Created From Suggested Asset","exclude":true},"assets":{"items":{"$ref":"#/components/schemas/BaseRecipeAssetsPartialUpdateSchema"},"type":"array","title":"Assets"}},"type":"object","title":"RecipePartialUpdateSchema","description":"Schema for PATCH (partial update) endpoint."},"RecipeRunCreateFromSuggestionSchema":{"properties":{"assets":{"items":{"$ref":"#/components/schemas/BaseRecipeAssetsPartialUpdateSchema"},"type":"array","title":"Assets"},"context":{"oneOf":[{"$ref":"#/components/schemas/VideoRecipeRunContextSchema"},{"$ref":"#/components/schemas/ClipRecipeRunContextSchema"},{"$ref":"#/components/schemas/CollectionRecipeRunContextSchema"},{"$ref":"#/components/schemas/CampaignRecipeRunContextSchema"},{"$ref":"#/components/schemas/FileRecipeRunContextSchema"}],"title":"Context","discriminator":{"propertyName":"type","mapping":{"campaign":"#/components/schemas/CampaignRecipeRunContextSchema","clip":"#/components/schemas/ClipRecipeRunContextSchema","collection":"#/components/schemas/CollectionRecipeRunContextSchema","file":"#/components/schemas/FileRecipeRunContextSchema","video":"#/components/schemas/VideoRecipeRunContextSchema"}}}},"type":"object","required":["assets","context"],"title":"RecipeRunCreateFromSuggestionSchema","description":"Schema for POST (create_from_suggestion) endpoint."},"RecipeRunCreateSchema":{"properties":{"recipe_id":{"$ref":"#/components/schemas/PydanticObjectId"},"context":{"oneOf":[{"$ref":"#/components/schemas/VideoRecipeRunContextSchema"},{"$ref":"#/components/schemas/ClipRecipeRunContextSchema"},{"$ref":"#/components/schemas/CollectionRecipeRunContextSchema"},{"$ref":"#/components/schemas/CampaignRecipeRunContextSchema"},{"$ref":"#/components/schemas/FileRecipeRunContextSchema"}],"title":"Context","discriminator":{"propertyName":"type","mapping":{"campaign":"#/components/schemas/CampaignRecipeRunContextSchema","clip":"#/components/schemas/ClipRecipeRunContextSchema","collection":"#/components/schemas/CollectionRecipeRunContextSchema","file":"#/components/schemas/FileRecipeRunContextSchema","video":"#/components/schemas/VideoRecipeRunContextSchema"}}}},"type":"object","required":["recipe_id","context"],"title":"RecipeRunCreateSchema","description":"Schema for POST (create) endpoint."},"RecipeRunListItemSchema":{"properties":{"status":{"$ref":"#/components/schemas/RecipeRunStatus"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"recipe":{"$ref":"#/components/schemas/RecipeListItemSchema"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorReason"},{"type":"null"}]},"steps":{"items":{"$ref":"#/components/schemas/RecipeRunStepListItemSchema"},"type":"array","title":"Steps","default":[]},"image_runs_count":{"type":"integer","title":"Image Runs Count","default":0}},"type":"object","required":["status","id","recipe","owner","created_at"],"title":"RecipeRunListItemSchema"},"RecipeRunReadSchema":{"properties":{"status":{"$ref":"#/components/schemas/RecipeRunStatus"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"recipe":{"$ref":"#/components/schemas/RecipeListItemSchema"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorReason"},{"type":"null"}]}},"type":"object","required":["status","id","recipe","owner","created_at"],"title":"RecipeRunReadSchema"},"RecipeRunStatus":{"type":"string","enum":["pending","in_progress","success","failure"],"title":"RecipeRunStatus","description":"Enum for recipe run status."},"RecipeRunStepListItemSchema":{"properties":{"status":{"$ref":"#/components/schemas/RecipeRunStepStatus","default":"pending"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/RecipeRunStepType"},"writing_style":{"anyOf":[{"$ref":"#/components/schemas/WritingStyleListItemSchema"},{"type":"null"}]},"persona":{"anyOf":[{"$ref":"#/components/schemas/PersonaListItemSchema"},{"type":"null"}]},"id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["name","type","id"],"title":"RecipeRunStepListItemSchema"},"RecipeRunStepReadSchema":{"properties":{"status":{"$ref":"#/components/schemas/RecipeRunStepStatus","default":"pending"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/RecipeRunStepType"},"writing_style":{"anyOf":[{"$ref":"#/components/schemas/WritingStyleListItemSchema"},{"type":"null"}]},"persona":{"anyOf":[{"$ref":"#/components/schemas/PersonaListItemSchema"},{"type":"null"}]},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"output":{"anyOf":[{"$ref":"#/components/schemas/TtcConversationAssetDetailSchema"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"error":{"anyOf":[{"$ref":"#/components/schemas/ErrorReason"},{"type":"null"}]}},"type":"object","required":["name","type","id"],"title":"RecipeRunStepReadSchema"},"RecipeRunStepStatus":{"type":"string","enum":["pending","in_progress","success","failure"],"title":"RecipeRunStepStatus","description":"Enum for recipe run step status."},"RecipeRunStepType":{"type":"string","enum":["text"],"title":"RecipeRunStepType","description":"Enum for recipe run step types."},"RecipesCreateSchema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_created_from_suggested_asset":{"type":"boolean","title":"Is Created From Suggested Asset","default":false,"exclude":true},"assets":{"items":{"$ref":"#/components/schemas/BaseRecipeAssetsPartialUpdateSchema"},"type":"array","title":"Assets"}},"type":"object","required":["name","assets"],"title":"RecipesCreateSchema","description":"Schema for POST (create) endpoint."},"RecordingDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"meeting_id":{"type":"string","title":"Meeting Id"},"scheduled_meeting_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Meeting Id"},"meeting_series_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Series Id"},"topic":{"type":"string","title":"Topic"},"create_time":{"type":"string","title":"Create Time"},"time_recorded":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Recorded"},"site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Url"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"playback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Playback Url"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"temporary_direct_download_links":{"anyOf":[{"$ref":"#/components/schemas/TemporaryDirectDownloadLinks"},{"type":"null"}]},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format"},"service_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Type"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"share_to_me":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Share To Me"},"integration_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Integration Tags"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id","meeting_id","topic","create_time"],"title":"RecordingDetailResponse","description":"Response schema for Webex recording details."},"RecordingFile":{"properties":{"deleted_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted Time"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"file_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Path"},"file_size":{"type":"integer","title":"File Size"},"file_type":{"anyOf":[{"$ref":"#/components/schemas/FileType"},{"type":"string"},{"type":"null"}],"title":"File Type"},"file_extension":{"anyOf":[{"$ref":"#/components/schemas/FileExtension"},{"type":"string"},{"type":"null"}],"title":"File Extension"},"id":{"type":"string","title":"Id"},"meeting_id":{"type":"string","title":"Meeting Id"},"play_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Play Url"},"recording_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Recording End"},"recording_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Recording Start"},"recording_type":{"anyOf":[{"$ref":"#/components/schemas/RecordingType"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Recording Type"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["file_size","id","meeting_id"],"title":"RecordingFile"},"RecordingItem":{"properties":{"id":{"type":"string","title":"Id"},"meeting_id":{"type":"string","title":"Meeting Id"},"scheduled_meeting_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Meeting Id"},"meeting_series_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Series Id"},"topic":{"type":"string","title":"Topic"},"create_time":{"type":"string","title":"Create Time"},"time_recorded":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Recorded"},"site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Url"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"playback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Playback Url"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format"},"service_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Type"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"share_to_me":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Share To Me"},"integration_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Integration Tags"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id","meeting_id","topic","create_time"],"title":"RecordingItem","description":"Schema for individual recording item in list response."},"RecordingResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RecordingItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"RecordingResponse","description":"Response schema for Webex recordings list."},"RecordingType":{"type":"string","enum":["shared_screen_with_speaker_view(CC)","shared_screen_with_speaker_view","shared_screen_with_gallery_view","active_speaker","gallery_view","shared_screen","audio_only","audio_transcript","chat_file","poll","host_video","closed_caption","timeline","thumbnail","audio_interpretation","summary","summary_next_steps","summary_smart_chapters","sign_interpretation","production_studio"],"title":"RecordingType"},"ResourceId":{"properties":{"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind","default":"youtube#video"},"videoId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Videoid"}},"type":"object","title":"ResourceId"},"RuleCategory":{"type":"string","enum":["tone","terminology","messaging","relevance","proof_points"],"title":"RuleCategory","description":"What aspect of the persona this rule validates."},"SearchResponseSchema":{"properties":{"items":{"items":{"oneOf":[{"$ref":"#/components/schemas/VideoSearchResultSchema"},{"$ref":"#/components/schemas/ClipSearchResultSchema"},{"$ref":"#/components/schemas/ChapterSearchResultSchema"},{"$ref":"#/components/schemas/SocialPostSearchResultSchema"},{"$ref":"#/components/schemas/BlogPostSearchResultSchema"}],"discriminator":{"propertyName":"source","mapping":{"blog_post":"#/components/schemas/BlogPostSearchResultSchema","chapter":"#/components/schemas/ChapterSearchResultSchema","clip":"#/components/schemas/ClipSearchResultSchema","social_post":"#/components/schemas/SocialPostSearchResultSchema","video":"#/components/schemas/VideoSearchResultSchema"}}},"type":"array","title":"Items"},"summary_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Text"},"total":{"type":"integer","title":"Total","description":"Total number of items.","readOnly":true}},"type":"object","required":["items","total"],"title":"SearchResponseSchema"},"SearchSource":{"type":"string","enum":["clip","video","chapter","social_post","blog_post"],"title":"SearchSource"},"Section":{"properties":{"items":{"items":{"type":"string"},"type":"array","title":"Items","default":[]},"source_snippets":{"items":{"$ref":"#/components/schemas/SourceSnippet"},"type":"array","title":"Source Snippets","default":[]}},"type":"object","title":"Section"},"Severity":{"type":"string","enum":["critical","major","minor"],"title":"Severity","description":"How critical a violation is."},"SharedLinkChapterSchema":{"properties":{"start_second":{"type":"number","title":"Start Second"},"chapter_name":{"type":"string","title":"Chapter Name"}},"type":"object","required":["start_second","chapter_name"],"title":"SharedLinkChapterSchema","description":"Chapter row for shared link. Only fields used by UI (Chapters.tsx)."},"SharedLinkClipContentSchema":{"properties":{"type":{"type":"string","const":"clip","title":"Type","default":"clip"},"clip":{"$ref":"#/components/schemas/SharedLinkClipSchema"},"branding_elements":{"$ref":"#/components/schemas/BrandingElementsDetailSchema"},"raw_transcripts":{"anyOf":[{"items":{"$ref":"#/components/schemas/RawTranscriptSchema"},"type":"array"},{"type":"null"}],"title":"Raw Transcripts"}},"type":"object","required":["clip","branding_elements"],"title":"SharedLinkClipContentSchema","description":"Content when type=clip."},"SharedLinkClipSchema":{"properties":{"title":{"type":"string","title":"Title"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"playback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Playback Url"},"thumbnail_url":{"type":"string","title":"Thumbnail Url"},"summary":{"type":"string","title":"Summary"},"template":{"anyOf":[{"$ref":"#/components/schemas/TemplateDetailSchema"},{"type":"null"}]},"branding":{"anyOf":[{"$ref":"#/components/schemas/ClipBrandingReadSchema"},{"type":"null"}]},"editing_source":{"anyOf":[{"$ref":"#/components/schemas/EditingSourceSchema"},{"type":"null"}]}},"type":"object","required":["title","created_at","thumbnail_url","summary"],"title":"SharedLinkClipSchema","description":"Clip for shared link resolve. Only fields needed by FE."},"SharedLinkConversationAssetContentSchema":{"properties":{"type":{"type":"string","const":"conversation_asset","title":"Type","default":"conversation_asset"},"conversation_asset":{"$ref":"#/components/schemas/SharedLinkConversationAssetSchema"}},"type":"object","required":["conversation_asset"],"title":"SharedLinkConversationAssetContentSchema","description":"Content when type=conversation_asset."},"SharedLinkConversationAssetSchema":{"properties":{"title":{"type":"string","title":"Title"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"content_text":{"type":"string","title":"Content Text"}},"type":"object","required":["title","created_at","content_text"],"title":"SharedLinkConversationAssetSchema","description":"Conversation asset for shared link. Only UI fields (ShareConversationAsset)."},"SharedLinkCreateResponseSchema":{"properties":{"token":{"type":"string","title":"Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"type":{"$ref":"#/components/schemas/SharedLinkType"},"source_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["token","expires_at","type","source_id"],"title":"SharedLinkCreateResponseSchema","description":"Response after creating a shared link."},"SharedLinkCreateSchema":{"properties":{"type":{"$ref":"#/components/schemas/SharedLinkType"},"source_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["type","source_id"],"title":"SharedLinkCreateSchema","description":"Request body for creating a shared link."},"SharedLinkImageRunContentSchema":{"properties":{"type":{"type":"string","const":"image_run","title":"Type","default":"image_run"},"image_run_id":{"$ref":"#/components/schemas/PydanticObjectId"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"supporting_images":{"items":{"$ref":"#/components/schemas/SharedLinkTemplateImageSchema"},"type":"array","title":"Supporting Images","default":[]},"template_image":{"anyOf":[{"$ref":"#/components/schemas/SharedLinkTemplateImageSchema"},{"type":"null"}]},"items":{"items":{"$ref":"#/components/schemas/SharedLinkImageRunItemSchema"},"type":"array","title":"Items","default":[]}},"type":"object","required":["image_run_id"],"title":"SharedLinkImageRunContentSchema","description":"Content when type=image_run."},"SharedLinkImageRunItemSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"image_run_id":{"$ref":"#/components/schemas/PydanticObjectId"},"generation_batch_id":{"$ref":"#/components/schemas/PydanticObjectId"},"status":{"$ref":"#/components/schemas/ImageItemStatus"},"content":{"anyOf":[{"$ref":"#/components/schemas/ImageContentOutput"},{"type":"null"}]},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"}},"type":"object","required":["id","image_run_id","generation_batch_id","status"],"title":"SharedLinkImageRunItemSchema","description":"Single item in shared link image run payload. UI-facing shape."},"SharedLinkResolveResponseSchema":{"properties":{"type":{"$ref":"#/components/schemas/SharedLinkType"},"source_id":{"$ref":"#/components/schemas/PydanticObjectId"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"content":{"oneOf":[{"$ref":"#/components/schemas/SharedLinkVideoContentSchema"},{"$ref":"#/components/schemas/SharedLinkClipContentSchema"},{"$ref":"#/components/schemas/SharedLinkConversationAssetContentSchema"},{"$ref":"#/components/schemas/SharedLinkImageRunContentSchema"}],"title":"Content","discriminator":{"propertyName":"type","mapping":{"clip":"#/components/schemas/SharedLinkClipContentSchema","conversation_asset":"#/components/schemas/SharedLinkConversationAssetContentSchema","image_run":"#/components/schemas/SharedLinkImageRunContentSchema","video":"#/components/schemas/SharedLinkVideoContentSchema"}}}},"type":"object","required":["type","source_id","expires_at","content"],"title":"SharedLinkResolveResponseSchema","description":"Response when resolving a shared link by token (GET).\n\ntype/source_id/expires_at always set. content is the type-specific payload\n(video+branding+chapters, clip+branding+raw_transcripts, or conversation_asset)."},"SharedLinkTemplateImageSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"storage_url":{"type":"string","title":"Storage Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","type","name","storage_url"],"title":"SharedLinkTemplateImageSchema","description":"Template or supporting image for shared link image run. UI-facing shape."},"SharedLinkType":{"type":"string","enum":["video","clip","conversation_asset","image_run"],"title":"SharedLinkType","description":"Supported source types for shared links."},"SharedLinkVideoContentSchema":{"properties":{"type":{"type":"string","const":"video","title":"Type","default":"video"},"video":{"$ref":"#/components/schemas/SharedLinkVideoSchema"},"branding_elements":{"$ref":"#/components/schemas/BrandingElementsDetailSchema"},"chapters":{"items":{"$ref":"#/components/schemas/SharedLinkChapterSchema"},"type":"array","title":"Chapters"}},"type":"object","required":["video","branding_elements","chapters"],"title":"SharedLinkVideoContentSchema","description":"Content when type=video."},"SharedLinkVideoSchema":{"properties":{"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"playback_url":{"type":"string","title":"Playback Url"}},"type":"object","required":["name","created_at","playback_url"],"title":"SharedLinkVideoSchema","description":"Video for shared link resolve. Only fields used by UI (SharedVideo, Player)."},"SharepointPublishPayloadSchema":{"properties":{"context":{"oneOf":[{"$ref":"#/components/schemas/OutlookPublishContextConversationAsset"},{"$ref":"#/components/schemas/OutlookPublishContextConversationMessage"},{"$ref":"#/components/schemas/OutlookPublishContextFile"},{"$ref":"#/components/schemas/OutlookPublishContextImageItem"}],"title":"Context","discriminator":{"propertyName":"type","mapping":{"conversation_asset":"#/components/schemas/OutlookPublishContextConversationAsset","conversation_message":"#/components/schemas/OutlookPublishContextConversationMessage","file":"#/components/schemas/OutlookPublishContextFile","image_item":"#/components/schemas/OutlookPublishContextImageItem"}}},"site_id":{"type":"string","title":"Site Id"}},"type":"object","required":["context","site_id"],"title":"SharepointPublishPayloadSchema"},"SharepointSiteSchema":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"web_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web Url"}},"type":"object","required":["id"],"title":"SharepointSiteSchema"},"SocialPostCreateSchema":{"properties":{"video_id":{"$ref":"#/components/schemas/PydanticObjectId"},"clip_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"theme_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"type":{"$ref":"#/components/schemas/SocialPostType"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"hashtags":{"items":{"type":"string"},"type":"array","title":"Hashtags"},"id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["video_id","type","title","content","hashtags"],"title":"SocialPostCreateSchema"},"SocialPostDetailSchema":{"properties":{"clip_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"theme_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"type":{"$ref":"#/components/schemas/SocialPostType"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"hashtags":{"items":{"type":"string"},"type":"array","title":"Hashtags"},"id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["type","title","content","hashtags","id"],"title":"SocialPostDetailSchema"},"SocialPostListItemSchema":{"properties":{"clip_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"theme_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"type":{"$ref":"#/components/schemas/SocialPostType"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"hashtags":{"items":{"type":"string"},"type":"array","title":"Hashtags"},"id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["type","title","content","hashtags","id"],"title":"SocialPostListItemSchema"},"SocialPostSearchResultSchema":{"properties":{"source":{"type":"string","const":"social_post","title":"Source","default":"social_post"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"},"video_id":{"type":"string","title":"Video Id"},"id":{"type":"string","title":"Id","description":"The unique identifier of the entity of that type."},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"thumbnail_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Thumbnail Url"},"playback_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Playback Url"},"score":{"type":"number","title":"Score"},"type":{"$ref":"#/components/schemas/SocialPostType","default":"company_post"}},"type":"object","required":["video_id","id","title","content","thumbnail_url","playback_url","score"],"title":"SocialPostSearchResultSchema"},"SocialPostType":{"type":"string","enum":["user_post","company_post"],"title":"SocialPostType"},"Soundbite":{"properties":{"speaker":{"type":"string","title":"Speaker"},"quote":{"type":"string","title":"Quote"}},"type":"object","required":["speaker","quote"],"title":"Soundbite"},"SourceSnippet":{"properties":{"document_id":{"$ref":"#/components/schemas/DocumentId"},"chunk_id":{"type":"string","title":"Chunk Id"},"snippet":{"type":"string","title":"Snippet"}},"type":"object","required":["document_id","chunk_id","snippet"],"title":"SourceSnippet"},"SpeakerMapping":{"properties":{"speaker":{"type":"string","title":"Speaker","description":"Speaker tag"},"speaker_name":{"type":"string","title":"Speaker Name"}},"type":"object","required":["speaker","speaker_name"],"title":"SpeakerMapping"},"TagSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"},"source":{"$ref":"#/components/schemas/TagSource"}},"type":"object","required":["id","name","source"],"title":"TagSchema"},"TagSource":{"type":"string","enum":["ai_generated","user_created"],"title":"TagSource"},"TemplateCreateWithGlobalSchema":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/TemplateType"},"style":{"$ref":"#/components/schemas/TemplateStyle"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"captions_enabled":{"type":"boolean","title":"Captions Enabled","default":true},"layout":{"$ref":"#/components/schemas/Layout"},"logo_position":{"anyOf":[{"$ref":"#/components/schemas/LogoPosition"},{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}],"title":"Logo Position"},"thumbnail":{"type":"string","format":"base64","contentMediaType":"application/octet-stream","title":"Thumbnail"},"logo_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"background_image_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"intro_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"outro_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"caption_style":{"$ref":"#/components/schemas/CaptionStyleWriteSchema"},"lower_third":{"$ref":"#/components/schemas/LowerThirdWriteSchema"},"header":{"anyOf":[{"$ref":"#/components/schemas/TemplateHeaderWriteSchema"},{"type":"null"}]},"is_global":{"type":"boolean","title":"Is Global","default":false}},"type":"object","required":["name","type","style","layout","thumbnail","caption_style","lower_third"],"title":"TemplateCreateWithGlobalSchema"},"TemplateDetailSchema":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/TemplateType"},"style":{"$ref":"#/components/schemas/TemplateStyle"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"captions_enabled":{"type":"boolean","title":"Captions Enabled","default":true},"layout":{"$ref":"#/components/schemas/Layout"},"logo_position":{"anyOf":[{"$ref":"#/components/schemas/LogoPosition"},{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}],"title":"Logo Position"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"thumbnail_url":{"type":"string","title":"Thumbnail Url"},"logo":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"background_image":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"intro":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"outro":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"caption_style":{"$ref":"#/components/schemas/CaptionStyleReadSchema"},"lower_third":{"$ref":"#/components/schemas/LowerThirdReadSchema"},"header":{"anyOf":[{"$ref":"#/components/schemas/TemplateHeaderReadSchema"},{"type":"null"}]}},"type":"object","required":["name","type","style","layout","id","thumbnail_url","caption_style","lower_third"],"title":"TemplateDetailSchema"},"TemplateDetailWithGlobalSchema":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/TemplateType"},"style":{"$ref":"#/components/schemas/TemplateStyle"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"captions_enabled":{"type":"boolean","title":"Captions Enabled","default":true},"layout":{"$ref":"#/components/schemas/Layout"},"logo_position":{"anyOf":[{"$ref":"#/components/schemas/LogoPosition"},{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}],"title":"Logo Position"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"thumbnail_url":{"type":"string","title":"Thumbnail Url"},"logo":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"background_image":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"intro":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"outro":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"caption_style":{"$ref":"#/components/schemas/CaptionStyleReadSchema"},"lower_third":{"$ref":"#/components/schemas/LowerThirdReadSchema"},"header":{"anyOf":[{"$ref":"#/components/schemas/TemplateHeaderReadSchema"},{"type":"null"}]},"is_global":{"type":"boolean","title":"Is Global","default":false}},"type":"object","required":["name","type","style","layout","id","thumbnail_url","caption_style","lower_third"],"title":"TemplateDetailWithGlobalSchema"},"TemplateElementProps":{"properties":{"left":{"type":"number","title":"Left"},"top":{"type":"number","title":"Top"},"scale":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Scale"},"width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Width"},"scale_y":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Scale Y"},"scale_x":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Scale X"}},"type":"object","required":["left","top"],"title":"TemplateElementProps"},"TemplateElementPropsWithoutWidth":{"properties":{"left":{"type":"number","title":"Left"},"top":{"type":"number","title":"Top"},"scale":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Scale"}},"type":"object","required":["left","top"],"title":"TemplateElementPropsWithoutWidth"},"TemplateHeaderReadSchema":{"properties":{"font":{"anyOf":[{"$ref":"#/components/schemas/BrandingAssetSchema"},{"type":"null"}]},"font_family":{"type":"string","title":"Font Family","description":"Only used when `font_id` is not provided. Otherwise, the value is always set to the default font family."},"title":{"type":"string","title":"Title"},"font_size":{"type":"number","title":"Font Size"},"font_color":{"type":"string","title":"Font Color"},"text_align":{"$ref":"#/components/schemas/TextAlign","default":"center"},"element_props":{"$ref":"#/components/schemas/TemplateElementProps"},"style":{"anyOf":[{"$ref":"#/components/schemas/HeaderTemplateStyle"},{"type":"null"}]},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Timeout"},"uppercase":{"type":"boolean","title":"Uppercase","default":false}},"type":"object","required":["font_family","title","font_size","font_color","element_props"],"title":"TemplateHeaderReadSchema"},"TemplateHeaderWriteSchema":{"properties":{"font_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"font_family":{"type":"string","title":"Font Family","description":"Only used when `font_id` is not provided. Otherwise, the value is always set to the default font family."},"title":{"type":"string","title":"Title"},"font_size":{"type":"number","title":"Font Size"},"font_color":{"type":"string","title":"Font Color"},"text_align":{"$ref":"#/components/schemas/TextAlign","default":"center"},"element_props":{"$ref":"#/components/schemas/TemplateElementProps"},"style":{"anyOf":[{"$ref":"#/components/schemas/HeaderTemplateStyle"},{"type":"null"}]},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Timeout"},"uppercase":{"type":"boolean","title":"Uppercase","default":false}},"type":"object","required":["font_family","title","font_size","font_color","element_props"],"title":"TemplateHeaderWriteSchema"},"TemplatePartialUpdateSchema":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/TemplateType"},"style":{"$ref":"#/components/schemas/TemplateStyle"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"captions_enabled":{"type":"boolean","title":"Captions Enabled"},"layout":{"$ref":"#/components/schemas/Layout"},"logo_position":{"anyOf":[{"$ref":"#/components/schemas/LogoPosition"},{"$ref":"#/components/schemas/TemplateElementProps"},{"type":"null"}],"title":"Logo Position"},"thumbnail":{"type":"string","format":"base64","contentMediaType":"application/octet-stream","title":"Thumbnail"},"logo_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"background_image_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"intro_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"outro_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"caption_style":{"$ref":"#/components/schemas/CaptionStyleWriteSchema"},"lower_third":{"$ref":"#/components/schemas/LowerThirdWriteSchema"},"header":{"anyOf":[{"$ref":"#/components/schemas/TemplateHeaderWriteSchema"},{"type":"null"}]}},"type":"object","title":"TemplatePartialUpdateSchema"},"TemplateStyle":{"type":"string","enum":["style-1","style-2","style-3","style-4"],"title":"TemplateStyle"},"TemplateType":{"type":"string","enum":["speaker-1","speaker-2","speaker-3","speaker-4","presentation","presentation-2"],"title":"TemplateType"},"TemporaryDirectDownloadLinks":{"properties":{"recording_download_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Download Link"},"audio_download_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Download Link"},"transcript_download_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Download Link"},"expiration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiration"}},"type":"object","title":"TemporaryDirectDownloadLinks","description":"Schema for temporary download links."},"TestPersonaResultSchema":{"properties":{"output":{"type":"string","title":"Output"}},"type":"object","required":["output"],"title":"TestPersonaResultSchema"},"TestPersonaSchema":{"properties":{"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["prompt"],"title":"TestPersonaSchema"},"TestWritingStyleResultSchema":{"properties":{"output":{"type":"string","title":"Output"}},"type":"object","required":["output"],"title":"TestWritingStyleResultSchema"},"TestWritingStyleSchema":{"properties":{"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["prompt"],"title":"TestWritingStyleSchema"},"TextAlign":{"type":"string","enum":["left","center","right"],"title":"TextAlign"},"TextBlock":{"properties":{"id":{"type":"string","title":"Id","description":"Text block identifier"},"z_index":{"type":"integer","title":"Z Index","description":"Z-index for layering","default":1},"bbox":{"$ref":"#/components/schemas/Bbox","description":"Bounding box"},"text_spans":{"items":{"$ref":"#/components/schemas/TextSpan"},"type":"array","title":"Text Spans","description":"Text spans with individual styling"},"line_spacing":{"type":"number","title":"Line Spacing","description":"Line spacing as unitless multiplier","default":1.2},"alignment":{"$ref":"#/components/schemas/Alignment","description":"Text alignment"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Arbitrary metadata for BE logic/analytics"}},"type":"object","required":["id","bbox","text_spans","alignment"],"title":"TextBlock","description":"Text block schema."},"TextBlockOutput":{"properties":{"id":{"type":"string","title":"Id","description":"Text block identifier"},"z_index":{"type":"integer","title":"Z Index","description":"Z-index for layering","default":1},"bbox":{"$ref":"#/components/schemas/Bbox","description":"Bounding box"},"text_spans":{"items":{"$ref":"#/components/schemas/TextSpanOutput"},"type":"array","title":"Text Spans","description":"Text spans with individual styling"},"line_spacing":{"type":"number","title":"Line Spacing","description":"Line spacing as unitless multiplier","default":1.2},"alignment":{"$ref":"#/components/schemas/Alignment","description":"Text alignment"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Arbitrary metadata for BE logic/analytics"}},"type":"object","required":["id","bbox","text_spans","alignment"],"title":"TextBlockOutput","description":"Text block schema with presigned URLs."},"TextSpan":{"properties":{"text":{"type":"string","title":"Text","description":"Text content"},"font_family":{"type":"string","title":"Font Family","description":"Font family name"},"font_size":{"type":"integer","title":"Font Size","description":"Font size in pixels"},"font_weight":{"type":"string","title":"Font Weight","description":"Font weight"},"font_styles":{"items":{"$ref":"#/components/schemas/FontStyle"},"type":"array","uniqueItems":true,"title":"Font Styles","description":"Font styles"},"font_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Url","description":"URL to font file"},"color":{"type":"string","title":"Color","description":"Text color as hex string"}},"type":"object","required":["text","font_family","font_size","font_weight","color"],"title":"TextSpan","description":"Text span schema with individual styling."},"TextSpanOutput":{"properties":{"text":{"type":"string","title":"Text","description":"Text content"},"font_family":{"type":"string","title":"Font Family","description":"Font family name"},"font_size":{"type":"integer","title":"Font Size","description":"Font size in pixels"},"font_weight":{"type":"string","title":"Font Weight","description":"Font weight"},"font_styles":{"items":{"$ref":"#/components/schemas/FontStyle"},"type":"array","uniqueItems":true,"title":"Font Styles","description":"Font styles"},"font_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Url","description":"URL to font file"},"color":{"type":"string","title":"Color","description":"Text color as hex string"},"font_download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Download Url","description":"Presigned URL for font file (only if font_url starts with gs://)"}},"type":"object","required":["text","font_family","font_size","font_weight","color"],"title":"TextSpanOutput","description":"Text span schema with presigned download URL."},"TextToContentCampaignSource":{"properties":{"type":{"type":"string","const":"campaign","title":"Type"},"ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","maxItems":1,"minItems":1,"title":"Ids"}},"type":"object","required":["type","ids"],"title":"TextToContentCampaignSource"},"TextToContentClipSource":{"properties":{"type":{"type":"string","const":"clip","title":"Type"},"ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","maxItems":1,"minItems":1,"title":"Ids"}},"type":"object","required":["type","ids"],"title":"TextToContentClipSource"},"TextToContentConversationAssetSource":{"properties":{"type":{"type":"string","const":"conversation_asset","title":"Type"},"ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","maxItems":1,"minItems":1,"title":"Ids"}},"type":"object","required":["type","ids"],"title":"TextToContentConversationAssetSource"},"TextToContentFileSource":{"properties":{"type":{"type":"string","const":"file","title":"Type"},"ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","maxItems":1,"minItems":1,"title":"Ids"}},"type":"object","required":["type","ids"],"title":"TextToContentFileSource"},"TextToContentNonOrganizationSource":{"properties":{"type":{"type":"string","enum":["video","clip","chapter","collection"],"title":"Type"},"ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","maxItems":1,"minItems":1,"title":"Ids"}},"type":"object","required":["type","ids"],"title":"TextToContentNonOrganizationSource"},"TextToContentOrganizationSource":{"properties":{"type":{"type":"string","const":"organization","title":"Type"}},"type":"object","required":["type"],"title":"TextToContentOrganizationSource"},"TextToContentRequest":{"properties":{"source":{"oneOf":[{"$ref":"#/components/schemas/TextToContentOrganizationSource"},{"$ref":"#/components/schemas/TextToContentNonOrganizationSource"}],"title":"Source","discriminator":{"propertyName":"type","mapping":{"chapter":"#/components/schemas/TextToContentNonOrganizationSource","clip":"#/components/schemas/TextToContentNonOrganizationSource","collection":"#/components/schemas/TextToContentNonOrganizationSource","organization":"#/components/schemas/TextToContentOrganizationSource","video":"#/components/schemas/TextToContentNonOrganizationSource"}}},"content_spec":{"oneOf":[{"$ref":"#/components/schemas/WordsContentInput"},{"$ref":"#/components/schemas/EBookOutlineContentInput"},{"$ref":"#/components/schemas/FAQContentInput"},{"$ref":"#/components/schemas/EmailSequenceContentInput"}],"title":"Content Spec","discriminator":{"propertyName":"type","mapping":{"blog_post":"#/components/schemas/WordsContentInput","case_study":"#/components/schemas/WordsContentInput","ebook_outline":"#/components/schemas/EBookOutlineContentInput","email_campaign":"#/components/schemas/WordsContentInput","email_sequence":"#/components/schemas/EmailSequenceContentInput","event_follow_up_email":"#/components/schemas/WordsContentInput","faq":"#/components/schemas/FAQContentInput","linkedin_post":"#/components/schemas/WordsContentInput","recap_blog":"#/components/schemas/WordsContentInput"}}},"persona_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"writing_style_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["source","content_spec"],"title":"TextToContentRequest"},"TextToContentVideoSource":{"properties":{"type":{"type":"string","const":"video","title":"Type"},"ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","maxItems":1,"minItems":1,"title":"Ids"}},"type":"object","required":["type","ids"],"title":"TextToContentVideoSource"},"ThumbnailDetails":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"}},"type":"object","title":"ThumbnailDetails"},"Thumbnails":{"properties":{"default":{"anyOf":[{"$ref":"#/components/schemas/ThumbnailDetails"},{"type":"null"}]},"medium":{"anyOf":[{"$ref":"#/components/schemas/ThumbnailDetails"},{"type":"null"}]},"high":{"anyOf":[{"$ref":"#/components/schemas/ThumbnailDetails"},{"type":"null"}]},"standard":{"anyOf":[{"$ref":"#/components/schemas/ThumbnailDetails"},{"type":"null"}]},"maxres":{"anyOf":[{"$ref":"#/components/schemas/ThumbnailDetails"},{"type":"null"}]}},"type":"object","title":"Thumbnails"},"ToolCall":{"properties":{"type":{"$ref":"#/components/schemas/ToolCallType"},"name":{"type":"string","title":"Name"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments"},"output":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Output"}},"type":"object","required":["type","name","arguments"],"title":"ToolCall"},"ToolCallType":{"type":"string","enum":["function","file_search"],"title":"ToolCallType"},"TopicBasedInput":{"properties":{"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"}},"type":"object","title":"TopicBasedInput"},"TranscriptCreateSchema":{"properties":{"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"text":{"type":"string","title":"Text"},"speaker":{"type":"string","title":"Speaker"},"speaker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker Name"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"theme_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["text","speaker","start_second","end_second"],"title":"TranscriptCreateSchema"},"TranscriptListItemSchema":{"properties":{"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"text":{"type":"string","title":"Text"},"speaker":{"type":"string","title":"Speaker"},"speaker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker Name"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"theme_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["text","speaker","start_second","end_second"],"title":"TranscriptListItemSchema"},"TranscriptableEntityType":{"type":"string","enum":["video","media_audio"],"title":"TranscriptableEntityType"},"TranslateFileSchema":{"properties":{"languages":{"items":{"type":"string"},"type":"array","title":"Languages"}},"type":"object","required":["languages"],"title":"TranslateFileSchema","description":"Schema for translation request from API."},"TranslationInfoSchema":{"properties":{"target_locale":{"type":"string","title":"Target Locale"}},"type":"object","required":["target_locale"],"title":"TranslationInfoSchema"},"TrialOutSchema":{"properties":{"status":{"$ref":"#/components/schemas/TrialStatus"},"days_left":{"type":"integer","title":"Days Left","readOnly":true}},"type":"object","required":["status","days_left"],"title":"TrialOutSchema"},"TrialStatus":{"type":"string","enum":["active","expired"],"title":"TrialStatus"},"TrimAiStudioSchema":{"properties":{"custom_transitions":{"anyOf":[{"$ref":"#/components/schemas/AiStudioCustomTransitionsWriteSchema"},{"type":"null"}]}},"type":"object","title":"TrimAiStudioSchema","description":"AI Studio configuration for trim operations."},"TrimAndBrandSchema":{"properties":{"start_second":{"type":"number","minimum":0.0,"title":"Start Second"},"end_second":{"type":"number","minimum":0.0,"title":"End Second"},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]},"multi_segment_clips":{"anyOf":[{"$ref":"#/components/schemas/MultiSegmentClipWriteSchema"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"},"branding":{"anyOf":[{"$ref":"#/components/schemas/ClipBrandingWriteSchema"},{"type":"null"}]},"thumbnail":{"anyOf":[{"type":"string","format":"base64","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Thumbnail"},"ai_studio":{"$ref":"#/components/schemas/TrimAiStudioSchema","default":{}}},"type":"object","required":["start_second","end_second"],"title":"TrimAndBrandSchema"},"TtcAskClipContentSpec":{"properties":{"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["prompt"],"title":"TtcAskClipContentSpec"},"TtcAskClipGenerateRequestSchema":{"properties":{"source":{"oneOf":[{"$ref":"#/components/schemas/TextToContentOrganizationSource"},{"$ref":"#/components/schemas/TextToContentVideoSource"}],"title":"Source","discriminator":{"propertyName":"type","mapping":{"organization":"#/components/schemas/TextToContentOrganizationSource","video":"#/components/schemas/TextToContentVideoSource"}}},"content_spec":{"$ref":"#/components/schemas/TtcAskClipContentSpec"},"clean_speech":{"type":"boolean","title":"Clean Speech","description":"Whether to apply boilerplate removal to clean the speech","default":true}},"type":"object","required":["source","content_spec"],"title":"TtcAskClipGenerateRequestSchema"},"TtcAssetJudgmentCheckType":{"type":"string","enum":["writing_style","persona"],"title":"TtcAssetJudgmentCheckType"},"TtcAssetSourceCreateSchema":{"properties":{"message_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["message_id"],"title":"TtcAssetSourceCreateSchema"},"TtcAssetSourceType":{"type":"string","enum":["conversation_message","recipe_run_step"],"title":"TtcAssetSourceType"},"TtcConversationAssetCopySchema":{"properties":{"content_text":{"type":"string","title":"Content Text"},"source":{"anyOf":[{"$ref":"#/components/schemas/TtcAssetSourceCreateSchema"},{"type":"null"}]}},"type":"object","required":["content_text"],"title":"TtcConversationAssetCopySchema"},"TtcConversationAssetCreateSchema":{"properties":{"title":{"type":"string","title":"Title"},"content_text":{"type":"string","title":"Content Text"},"citations":{"items":{"oneOf":[{"$ref":"#/components/schemas/VideoCitationSchema"},{"$ref":"#/components/schemas/AudioCitationSchema"},{"$ref":"#/components/schemas/ClipCitationSchema"},{"$ref":"#/components/schemas/ChapterCitationSchema"},{"$ref":"#/components/schemas/FileCitationSchema"},{"$ref":"#/components/schemas/WebCitationSchema"}],"description":"Type of the citation","discriminator":{"propertyName":"type","mapping":{"audio":"#/components/schemas/AudioCitationSchema","chapter":"#/components/schemas/ChapterCitationSchema","clip":"#/components/schemas/ClipCitationSchema","file":"#/components/schemas/FileCitationSchema","video":"#/components/schemas/VideoCitationSchema","web":"#/components/schemas/WebCitationSchema"}}},"type":"array","title":"Citations"},"source":{"anyOf":[{"$ref":"#/components/schemas/TtcAssetSourceCreateSchema"},{"type":"null"}]}},"type":"object","required":["title","content_text","citations"],"title":"TtcConversationAssetCreateSchema"},"TtcConversationAssetDetailSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"title":{"type":"string","title":"Title"},"content_text":{"type":"string","title":"Content Text"},"citations":{"items":{"oneOf":[{"$ref":"#/components/schemas/VideoCitationSchema"},{"$ref":"#/components/schemas/AudioCitationSchema"},{"$ref":"#/components/schemas/ClipCitationSchema"},{"$ref":"#/components/schemas/ChapterCitationSchema"},{"$ref":"#/components/schemas/FileCitationSchema"},{"$ref":"#/components/schemas/WebCitationSchema"}],"description":"Type of the citation","discriminator":{"propertyName":"type","mapping":{"audio":"#/components/schemas/AudioCitationSchema","chapter":"#/components/schemas/ChapterCitationSchema","clip":"#/components/schemas/ClipCitationSchema","file":"#/components/schemas/FileCitationSchema","video":"#/components/schemas/VideoCitationSchema","web":"#/components/schemas/WebCitationSchema"}}},"type":"array","title":"Citations"},"source":{"anyOf":[{"$ref":"#/components/schemas/ConversationTtcAssetSourceReadSchema"},{"type":"null"}]},"recipe_source":{"anyOf":[{"$ref":"#/components/schemas/RecipRunTtcAssetSourceReadSchema"},{"type":"null"}]},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale","default":"en-US"},"judgment_result":{"anyOf":[{"$ref":"#/components/schemas/JudgmentResultSchema"},{"type":"null"}]}},"type":"object","required":["organization_id","owner_id","owner","title","content_text","citations","id","created_at","updated_at"],"title":"TtcConversationAssetDetailSchema"},"TtcConversationAssetListItemSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"title":{"type":"string","title":"Title"},"content_text":{"type":"string","title":"Content Text"},"citations":{"items":{"oneOf":[{"$ref":"#/components/schemas/VideoCitationSchema"},{"$ref":"#/components/schemas/AudioCitationSchema"},{"$ref":"#/components/schemas/ClipCitationSchema"},{"$ref":"#/components/schemas/ChapterCitationSchema"},{"$ref":"#/components/schemas/FileCitationSchema"},{"$ref":"#/components/schemas/WebCitationSchema"}],"description":"Type of the citation","discriminator":{"propertyName":"type","mapping":{"audio":"#/components/schemas/AudioCitationSchema","chapter":"#/components/schemas/ChapterCitationSchema","clip":"#/components/schemas/ClipCitationSchema","file":"#/components/schemas/FileCitationSchema","video":"#/components/schemas/VideoCitationSchema","web":"#/components/schemas/WebCitationSchema"}}},"type":"array","title":"Citations"},"source":{"anyOf":[{"$ref":"#/components/schemas/ConversationTtcAssetSourceReadSchema"},{"type":"null"}]},"recipe_source":{"anyOf":[{"$ref":"#/components/schemas/RecipRunTtcAssetSourceReadSchema"},{"type":"null"}]},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale","default":"en-US"},"judgment_result":{"anyOf":[{"$ref":"#/components/schemas/JudgmentResultSchema"},{"type":"null"}]}},"type":"object","required":["organization_id","owner_id","owner","title","content_text","citations","id","created_at","updated_at"],"title":"TtcConversationAssetListItemSchema"},"TtcConversationAssetPartialUpdateSchema":{"properties":{"title":{"type":"string","title":"Title"},"content_text":{"type":"string","title":"Content Text"},"citations":{"items":{"oneOf":[{"$ref":"#/components/schemas/VideoCitationSchema"},{"$ref":"#/components/schemas/AudioCitationSchema"},{"$ref":"#/components/schemas/ClipCitationSchema"},{"$ref":"#/components/schemas/ChapterCitationSchema"},{"$ref":"#/components/schemas/FileCitationSchema"},{"$ref":"#/components/schemas/WebCitationSchema"}],"description":"Type of the citation","discriminator":{"propertyName":"type","mapping":{"audio":"#/components/schemas/AudioCitationSchema","chapter":"#/components/schemas/ChapterCitationSchema","clip":"#/components/schemas/ClipCitationSchema","file":"#/components/schemas/FileCitationSchema","video":"#/components/schemas/VideoCitationSchema","web":"#/components/schemas/WebCitationSchema"}}},"type":"array","title":"Citations"}},"type":"object","title":"TtcConversationAssetPartialUpdateSchema"},"TtcConversationAssetTranslateSchema":{"properties":{"target_locale":{"type":"string","title":"Target Locale"},"source_locale":{"type":"string","title":"Source Locale"},"content_text":{"type":"string","title":"Content Text"}},"type":"object","required":["target_locale","source_locale","content_text"],"title":"TtcConversationAssetTranslateSchema"},"TtcConversationCreateSchema":{"properties":{"text":{"type":"string","title":"Text","description":"User input text for the conversation"},"file_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"File Ids","description":"List of file IDs to include in the conversation. Use all files if null is provided.","default":[]},"persona_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"writing_style_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"source":{"oneOf":[{"$ref":"#/components/schemas/TextToContentOrganizationSource"},{"$ref":"#/components/schemas/TextToContentNonOrganizationSource"},{"$ref":"#/components/schemas/TextToContentCampaignSource"},{"$ref":"#/components/schemas/TextToContentConversationAssetSource"},{"$ref":"#/components/schemas/TextToContentFileSource"}],"title":"Source","discriminator":{"propertyName":"type","mapping":{"campaign":"#/components/schemas/TextToContentCampaignSource","chapter":"#/components/schemas/TextToContentNonOrganizationSource","clip":"#/components/schemas/TextToContentNonOrganizationSource","collection":"#/components/schemas/TextToContentNonOrganizationSource","conversation_asset":"#/components/schemas/TextToContentConversationAssetSource","file":"#/components/schemas/TextToContentFileSource","organization":"#/components/schemas/TextToContentOrganizationSource","video":"#/components/schemas/TextToContentNonOrganizationSource"}}},"content_spec":{"$ref":"#/components/schemas/TopicBasedInput","default":{}}},"type":"object","required":["text","source"],"title":"TtcConversationCreateSchema"},"TtcConversationListItemSchema":{"properties":{"title":{"type":"string","title":"Title"},"metadata":{"$ref":"#/components/schemas/ConversationMetadataSchema"},"last_message_index":{"type":"integer","title":"Last Message Index"},"last_opened_at":{"type":"string","format":"date-time","title":"Last Opened At"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["title","metadata","last_message_index","last_opened_at","id","created_at","updated_at"],"title":"TtcConversationListItemSchema"},"TtcConversationMessageCreateSchema":{"properties":{"text":{"type":"string","title":"Text","description":"User input text for the conversation"},"file_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"File Ids","description":"List of file IDs to include in the conversation. Use all files if null is provided.","default":[]},"persona_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"writing_style_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]}},"type":"object","required":["text"],"title":"TtcConversationMessageCreateSchema"},"TtcConversationMessageListItemSchema":{"properties":{"role":{"$ref":"#/components/schemas/MessageRole"},"content_text":{"type":"string","title":"Content Text"},"citations":{"items":{"oneOf":[{"$ref":"#/components/schemas/VideoCitationSchema"},{"$ref":"#/components/schemas/AudioCitationSchema"},{"$ref":"#/components/schemas/ClipCitationSchema"},{"$ref":"#/components/schemas/ChapterCitationSchema"},{"$ref":"#/components/schemas/FileCitationSchema"},{"$ref":"#/components/schemas/WebCitationSchema"}],"description":"Type of the citation","discriminator":{"propertyName":"type","mapping":{"audio":"#/components/schemas/AudioCitationSchema","chapter":"#/components/schemas/ChapterCitationSchema","clip":"#/components/schemas/ClipCitationSchema","file":"#/components/schemas/FileCitationSchema","video":"#/components/schemas/VideoCitationSchema","web":"#/components/schemas/WebCitationSchema"}}},"type":"array","title":"Citations","default":[]},"tool_calls":{"items":{"$ref":"#/components/schemas/ToolCall"},"type":"array","title":"Tool Calls"},"index_in_conversation":{"type":"integer","title":"Index In Conversation"},"metadata":{"$ref":"#/components/schemas/MessageMetadata"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["role","content_text","tool_calls","index_in_conversation","metadata","id","created_at","updated_at"],"title":"TtcConversationMessageListItemSchema"},"TtcSocialPostContentSpec":{"properties":{"type":{"$ref":"#/components/schemas/TtcSocialPostType"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"}},"type":"object","required":["type"],"title":"TtcSocialPostContentSpec"},"TtcSocialPostRequestSchema":{"properties":{"source":{"$ref":"#/components/schemas/TextToContentClipSource"},"content_spec":{"$ref":"#/components/schemas/TtcSocialPostContentSpec"}},"type":"object","required":["source","content_spec"],"title":"TtcSocialPostRequestSchema"},"TtcSocialPostType":{"type":"string","enum":["linkedin_post","youtube_video"],"title":"TtcSocialPostType"},"UpdateAllRawTranscriptSchema":{"properties":{"words":{"items":{"type":"string"},"type":"array","title":"Words"},"new_phrase":{"type":"string","title":"New Phrase"}},"type":"object","required":["words","new_phrase"],"title":"UpdateAllRawTranscriptSchema"},"UpdateRawTranscriptSchema":{"properties":{"word":{"type":"string","title":"Word"},"new_word":{"type":"string","title":"New Word"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"}},"type":"object","required":["word","new_word","start_second","end_second"],"title":"UpdateRawTranscriptSchema"},"UpdateWordAllDiffSchema":{"properties":{"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"words":{"items":{"type":"string"},"type":"array","title":"Words"},"new_phrase":{"type":"string","title":"New Phrase"}},"type":"object","required":["start_second","end_second","words","new_phrase"],"title":"UpdateWordAllDiffSchema"},"UrlContentDetailSchema":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"url":{"type":"string","title":"Url"}},"type":"object","required":["created_at","updated_at","id","url"],"title":"UrlContentDetailSchema"},"UrlContentListItemSchema":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"url":{"type":"string","title":"Url"}},"type":"object","required":["created_at","updated_at","id","url"],"title":"UrlContentListItemSchema"},"UrlContentMinimalReadSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"url":{"type":"string","title":"Url"}},"type":"object","required":["id","url"],"title":"UrlContentMinimalReadSchema"},"UsageIntent":{"type":"string","enum":["video_and_audio","audio_only"],"title":"UsageIntent"},"UserCreateSchema":{"properties":{"descope_id":{"type":"string","title":"Descope Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["descope_id","name","email"],"title":"UserCreateSchema"},"UserSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["id","name","email"],"title":"UserSchema"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VariationInfoSchema":{"properties":{"type":{"anyOf":[{"$ref":"#/components/schemas/FileVariantType"},{"type":"string"}],"title":"Type"},"source_file_id":{"$ref":"#/components/schemas/PydanticObjectId"},"translation_info":{"anyOf":[{"$ref":"#/components/schemas/TranslationInfoSchema"},{"type":"null"}]},"personalization_info":{"anyOf":[{"$ref":"#/components/schemas/PersonalizationInfoSchema"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/FileVariantGenerationStatus"},{"type":"string"}],"title":"Status"}},"type":"object","required":["type","source_file_id","status"],"title":"VariationInfoSchema"},"VectorComparisonRequest":{"properties":{"query":{"type":"string","title":"Query"},"video_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Id"},"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","default":10},"offset":{"type":"integer","minimum":0.0,"title":"Offset","default":0}},"type":"object","required":["query"],"title":"VectorComparisonRequest"},"VectorComparisonResponse":{"properties":{"vectara_results":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Vectara Results"},"vespa_results":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Vespa Results"},"vespa_timing":{"anyOf":[{"$ref":"#/components/schemas/VespaTranscriptsQueryResponseTimingInfo"},{"type":"null"}]}},"type":"object","required":["vectara_results","vespa_results"],"title":"VectorComparisonResponse"},"VespaTranscriptsQueryResponseTimingInfo":{"properties":{"query_embedding_time":{"type":"number","title":"Query Embedding Time"},"yql_prepare_time":{"type":"number","title":"Yql Prepare Time"},"vespa_time":{"type":"number","title":"Vespa Time"},"response_mapping_time":{"type":"number","title":"Response Mapping Time"},"total_time":{"type":"number","title":"Total Time"},"vespa_timing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Vespa Timing","description":"Vespa search response root.timing"}},"type":"object","required":["query_embedding_time","yql_prepare_time","vespa_time","response_mapping_time","total_time"],"title":"VespaTranscriptsQueryResponseTimingInfo"},"VideoAiEditAiStudioWriteSchema":{"properties":{"enhancements":{"$ref":"#/components/schemas/AiStudioEnhancementsWriteSchema","default":{"background_blur":false}},"removals":{"$ref":"#/components/schemas/AiStudioRemovalsWriteSchema","default":{"remove_pauses":false,"remove_boilerplate":false,"remove_background_noise":false}},"variations":{"items":{"$ref":"#/components/schemas/ClipVariationAiStudioWriteSchema"},"type":"array","title":"Variations","default":[]},"custom_transitions":{"anyOf":[{"$ref":"#/components/schemas/AiStudioCustomTransitionsWriteSchema"},{"type":"null"}]},"ask_clip":{"anyOf":[{"$ref":"#/components/schemas/AiStudioAskClipWriteSchema"},{"type":"null"}]}},"type":"object","title":"VideoAiEditAiStudioWriteSchema"},"VideoAiEditSchema":{"properties":{"start_second":{"type":"number","minimum":0.0,"title":"Start Second"},"end_second":{"type":"number","minimum":0.0,"title":"End Second"},"removed_parts":{"items":{"$ref":"#/components/schemas/ClipRemovedPart"},"type":"array","title":"Removed Parts","default":[]},"multi_segment_clips":{"anyOf":[{"$ref":"#/components/schemas/MultiSegmentClipWriteSchema"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"ai_studio":{"$ref":"#/components/schemas/VideoAiEditAiStudioWriteSchema","default":{"enhancements":{"background_blur":false},"removals":{"remove_background_noise":false,"remove_boilerplate":false,"remove_pauses":false},"variations":[]}}},"type":"object","required":["start_second","end_second"],"title":"VideoAiEditSchema"},"VideoBrandWriteSchema":{"properties":{"template_id":{"anyOf":[{"$ref":"#/components/schemas/PydanticObjectId"},{"type":"null"}]},"thumbnail":{"anyOf":[{"type":"string","format":"base64","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Thumbnail"},"branding":{"$ref":"#/components/schemas/ClipBrandingWriteSchema","default":{}},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"start_second":{"type":"integer","const":0,"title":"Start Second","default":0},"end_second":{"type":"number","exclusiveMinimum":0.0,"title":"End Second"}},"type":"object","required":["end_second"],"title":"VideoBrandWriteSchema"},"VideoCitationSchema":{"properties":{"type":{"type":"string","const":"video","title":"Type","default":"video"},"title":{"type":"string","title":"Title"},"snippet":{"type":"string","title":"Snippet","description":"Snippet of the used content"},"citation_spans":{"items":{"$ref":"#/components/schemas/CitationSpan"},"type":"array","title":"Citation Spans"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"start_second":{"type":"number","title":"Start Second","description":"Start second of the used chunk."},"end_second":{"type":"number","title":"End Second","description":"End second of the used chunk."}},"type":"object","required":["title","snippet","citation_spans","id","start_second","end_second"],"title":"VideoCitationSchema"},"VideoCollectionSearchResultSchema":{"properties":{"source":{"type":"string","const":"video","title":"Source","default":"video"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"},"video_id":{"type":"string","title":"Video Id"},"id":{"type":"string","title":"Id","description":"An alias for the video_id field."},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"thumbnail_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Thumbnail Url"},"playback_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Playback Url"},"score":{"type":"number","title":"Score"},"collection_id":{"type":"string","title":"Collection Id"},"collection":{"$ref":"#/components/schemas/CollectionPartialReadSchema"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"speaker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker Name"}},"type":"object","required":["video_id","id","title","content","thumbnail_url","playback_url","score","collection_id","collection","start_second","end_second"],"title":"VideoCollectionSearchResultSchema"},"VideoCreateSchema":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"video_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Video Url"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]}},"type":"object","required":["video_url"],"title":"VideoCreateSchema"},"VideoDetailSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"$ref":"#/components/schemas/VideoStatus"},"metadata":{"$ref":"#/components/schemas/VideoMetadata","default":{}},"playback_url":{"type":"string","title":"Playback Url"},"thumbnail_url":{"type":"string","title":"Thumbnail Url"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"source":{"$ref":"#/components/schemas/BlobSource"},"collections_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Collections Ids"},"last_recipe_run_status":{"anyOf":[{"$ref":"#/components/schemas/RecipeRunStatus"},{"type":"null"}]},"usage_intent":{"anyOf":[{"$ref":"#/components/schemas/UsageIntent"},{"type":"null"}]}},"type":"object","required":["organization_id","owner_id","owner","created_at","updated_at","id","name","status","playback_url","thumbnail_url","source","collections_ids"],"title":"VideoDetailSchema"},"VideoExtensionSchema":{"properties":{"extension":{"type":"string","const":".mp4","title":"Extension"}},"type":"object","required":["extension"],"title":"VideoExtensionSchema"},"VideoListSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"$ref":"#/components/schemas/VideoStatus"},"metadata":{"$ref":"#/components/schemas/VideoMetadata","default":{}},"playback_url":{"type":"string","title":"Playback Url"},"thumbnail_url":{"type":"string","title":"Thumbnail Url"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"source":{"$ref":"#/components/schemas/BlobSource"},"collections_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Collections Ids"},"last_recipe_run_status":{"anyOf":[{"$ref":"#/components/schemas/RecipeRunStatus"},{"type":"null"}]},"usage_intent":{"anyOf":[{"$ref":"#/components/schemas/UsageIntent"},{"type":"null"}]}},"type":"object","required":["organization_id","owner_id","owner","created_at","updated_at","id","name","status","playback_url","thumbnail_url","source","collections_ids"],"title":"VideoListSchema"},"VideoMetadata":{"properties":{"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"},"detected_language":{"anyOf":[{"$ref":"#/components/schemas/DetectedLanguageMetadata"},{"type":"null"}]}},"type":"object","title":"VideoMetadata"},"VideoMinimalReadSchema":{"properties":{"id":{"$ref":"#/components/schemas/PydanticObjectId"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"VideoMinimalReadSchema"},"VideoRecipeRunContextSchema":{"properties":{"type":{"type":"string","const":"video","title":"Type","default":"video"},"video_id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["video_id"],"title":"VideoRecipeRunContextSchema"},"VideoSearchResultSchema":{"properties":{"source":{"type":"string","const":"video","title":"Source","default":"video"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"},"video_id":{"type":"string","title":"Video Id"},"id":{"type":"string","title":"Id","description":"An alias for the video_id field."},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"thumbnail_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Thumbnail Url"},"playback_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Playback Url"},"score":{"type":"number","title":"Score"},"start_second":{"type":"number","title":"Start Second"},"end_second":{"type":"number","title":"End Second"},"speaker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker Name"}},"type":"object","required":["video_id","id","title","content","thumbnail_url","playback_url","score","start_second","end_second"],"title":"VideoSearchResultSchema"},"VideoStatus":{"type":"string","enum":["processing_started","processing_completed","processing_failed"],"title":"VideoStatus"},"VideoUpdateLanguageSchema":{"properties":{"language":{"type":"string","title":"Language"},"confidence":{"type":"number","title":"Confidence"}},"type":"object","required":["language","confidence"],"title":"VideoUpdateLanguageSchema"},"VisualMetadata":{"properties":{"id":{"type":"string","title":"Id","description":"Visual metadata identifier"},"bbox":{"$ref":"#/components/schemas/Bbox","description":"Bounding box"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption","description":"Visual metadata caption"},"type":{"type":"string","title":"Type","description":"Visual metadata type"}},"type":"object","required":["id","bbox","type"],"title":"VisualMetadata"},"WebCitationSchema":{"properties":{"type":{"type":"string","const":"web","title":"Type","default":"web"},"title":{"type":"string","title":"Title"},"snippet":{"type":"string","title":"Snippet","description":"Snippet of the used content"},"citation_spans":{"items":{"$ref":"#/components/schemas/CitationSpan"},"type":"array","title":"Citation Spans"},"url":{"type":"string","title":"Url","description":"URL of the web page"}},"type":"object","required":["title","snippet","citation_spans","url"],"title":"WebCitationSchema"},"WordsContentInput":{"properties":{"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"type":{"type":"string","enum":["linkedin_post","recap_blog","blog_post","event_follow_up_email","case_study","email_campaign"],"title":"Type"},"tone":{"type":"string","title":"Tone"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"word_count":{"type":"integer","maximum":5000.0,"minimum":1.0,"title":"Word Count"}},"type":"object","required":["type","tone","word_count"],"title":"WordsContentInput"},"WritingRule":{"properties":{"name":{"type":"string","title":"Name","description":"Stable rule identifier in lowercase snake_case. Must match ^[a-z][a-z0-9_]+$. Use a short verb-phrase describing the requirement, e.g. 'use_sentence_case_headers', 'use_active_voice', 'use_metric_units'. Do not include the brand name, document-specific wording, or suffixes like '_rule'. Prefer one canonical name for the same requirement across batches."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Short human-readable title for UI. Use Title Case. Keep it under ~6 words. Example: 'Header Capitalization', 'Active Voice', 'Units of Measure'."},"text":{"type":"string","title":"Text","description":"Verbatim excerpt from the style guide that states this rule. Do not paraphrase or summarize. Limit to a maximum of 50 words. Extract only the minimal text needed to unambiguously express the rule."},"section_path":{"items":{"type":"string"},"type":"array","title":"Section Path","description":"Ordered heading path locating the excerpt in the guide, from highest level to lowest. Must always be present. If the rule is stated outside any clear section or applies globally, use the default value ['Top level']. Example: ['Writing mechanics', 'Headings', 'Capitalization']."},"instructions":{"type":"string","title":"Instructions","description":"Single, enforceable instruction for a generator or evaluator. Must always be present. Write as an imperative requirement (Do/Do not). Keep it atomic (one rule only), with no rationale or explanation. The instruction should be directly usable to enforce or validate content. Example: 'Write headings in sentence case (capitalize only the first word and proper nouns).'"},"dos":{"items":{"type":"string"},"type":"array","title":"Dos","description":"Optional. Include only if the guide explicitly lists 'do' guidance for this rule. Each item should be a concise bullet, preferably verbatim or near-verbatim."},"donts":{"items":{"type":"string"},"type":"array","title":"Donts","description":"Optional. Include only if the guide explicitly lists 'don't' guidance for this rule. Each item should be a concise bullet, preferably verbatim or near-verbatim."},"good_examples":{"items":{"type":"string"},"type":"array","title":"Good Examples","description":"Optional. Good examples shown in the guide for this rule. Copy exactly as written (including punctuation/case)."},"bad_examples":{"items":{"type":"string"},"type":"array","title":"Bad Examples","description":"Optional. Bad/incorrect examples shown in the guide for this rule. Copy exactly as written."},"context_tag":{"$ref":"#/components/schemas/ContextTag","description":"Applicability context. Use exactly one of: 'marketing', 'technical', 'general'. Use 'general' if the guide does not scope the rule to a specific content type.","default":"general"},"rule_origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Origin","description":"Describes the origin of the rule, such as the specific section or table in the style guide it was extracted from. Helps with traceability and context. Use references from where the rule was derived."}},"type":"object","required":["name","text","instructions"],"title":"WritingRule"},"WritingStyleCreateSchema":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"examples":{"anyOf":[{"$ref":"#/components/schemas/WritingStyleSourcesWriteSchema"},{"type":"null"}]},"training_data":{"anyOf":[{"$ref":"#/components/schemas/WritingStyleSourcesWriteSchema"},{"type":"null"}]}},"type":"object","required":["name"],"title":"WritingStyleCreateSchema"},"WritingStyleGetItemByIdSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/WritingStyleStatus","default":"started"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"details":{"anyOf":[{"$ref":"#/components/schemas/BaseWritingStyleDetailsSchema"},{"type":"null"}]},"user_inputs":{"anyOf":[{"$ref":"#/components/schemas/WritingStyleUserInputsReadSchema"},{"type":"null"}]},"text_blob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Blob"},"citations_blob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citations Blob"},"reference_materials":{"anyOf":[{"$ref":"#/components/schemas/PromptEnhancementReferenceMaterialsReadSchema"},{"type":"null"}]},"coextracted_writing_styles":{"items":{"$ref":"#/components/schemas/WritingStyleReadSchema"},"type":"array","title":"Coextracted Writing Styles"}},"type":"object","required":["organization_id","owner_id","owner","created_at","updated_at","name","id"],"title":"WritingStyleGetItemByIdSchema"},"WritingStyleGuidelines":{"properties":{"dos":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Dos"},"donts":{"anyOf":[{"type":"string","description":"A string containing a list of items in Markdown format.","examples":["- Item 1\n- Item 2\n- Item 3","- First point\n- Second point"]},{"type":"null"}],"title":"Donts"}},"type":"object","title":"WritingStyleGuidelines"},"WritingStyleListAllResponseItemSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/WritingStyleStatus","default":"started"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["organization_id","owner_id","owner","created_at","updated_at","name","id"],"title":"WritingStyleListAllResponseItemSchema"},"WritingStyleListItemSchema":{"properties":{"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/WritingStyleStatus","default":"started"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"$ref":"#/components/schemas/PydanticObjectId"}},"type":"object","required":["name","id"],"title":"WritingStyleListItemSchema"},"WritingStyleReadSchema":{"properties":{"organization_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner_id":{"$ref":"#/components/schemas/PydanticObjectId"},"owner":{"$ref":"#/components/schemas/UserSchema"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/WritingStyleStatus","default":"started"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"$ref":"#/components/schemas/PydanticObjectId"},"details":{"anyOf":[{"$ref":"#/components/schemas/BaseWritingStyleDetailsSchema"},{"type":"null"}]},"user_inputs":{"anyOf":[{"$ref":"#/components/schemas/WritingStyleUserInputsReadSchema"},{"type":"null"}]},"text_blob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Blob"},"citations_blob":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citations Blob"},"reference_materials":{"anyOf":[{"$ref":"#/components/schemas/PromptEnhancementReferenceMaterialsReadSchema"},{"type":"null"}]}},"type":"object","required":["organization_id","owner_id","owner","created_at","updated_at","name","id"],"title":"WritingStyleReadSchema"},"WritingStyleSourcesReadSchema":{"properties":{"files":{"items":{"$ref":"#/components/schemas/FileMinimalReadSchema"},"type":"array","title":"Files","default":[]},"urls":{"items":{"$ref":"#/components/schemas/UrlContentMinimalReadSchema"},"type":"array","title":"Urls","default":[]},"texts":{"items":{"type":"string"},"type":"array","title":"Texts","default":[]}},"type":"object","title":"WritingStyleSourcesReadSchema","description":"Sources used to generate the writing style."},"WritingStyleSourcesWriteSchema":{"properties":{"file_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"File Ids","default":[]},"url_ids":{"items":{"$ref":"#/components/schemas/PydanticObjectId"},"type":"array","title":"Url Ids","default":[]},"texts":{"items":{"type":"string"},"type":"array","title":"Texts","default":[]}},"type":"object","title":"WritingStyleSourcesWriteSchema"},"WritingStyleStatus":{"type":"string","enum":["started","draft","published","failed"],"title":"WritingStyleStatus"},"WritingStyleUpdateSchema":{"properties":{"name":{"type":"string","title":"Name"},"text_blob":{"type":"string","title":"Text Blob"}},"type":"object","required":["name","text_blob"],"title":"WritingStyleUpdateSchema"},"WritingStyleUserInputsReadSchema":{"properties":{"examples":{"anyOf":[{"$ref":"#/components/schemas/WritingStyleSourcesReadSchema"},{"type":"null"}]},"training_data":{"anyOf":[{"$ref":"#/components/schemas/WritingStyleSourcesReadSchema"},{"type":"null"}]}},"type":"object","title":"WritingStyleUserInputsReadSchema"},"YoutubeUploadVideosSchema":{"properties":{"video_ids":{"items":{"type":"string"},"type":"array","title":"Video Ids"}},"type":"object","required":["video_ids"],"title":"YoutubeUploadVideosSchema"},"app__clips_brandings__models__SpeakerText":{"properties":{"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementPropsWithoutWidth"},{"type":"null"}]}},"type":"object","title":"SpeakerText"},"app__files__models__OpenAIMetadata":{"properties":{"file_id":{"type":"string","title":"File Id"},"vector_store_id":{"type":"string","title":"Vector Store Id"},"status":{"$ref":"#/components/schemas/OpenAiVectorStoreFileStatus"},"indexed_at":{"type":"string","format":"date-time","title":"Indexed At"}},"type":"object","required":["file_id","vector_store_id","status","indexed_at"],"title":"OpenAIMetadata"},"app__intgs_webex__schemas__UploadRecordingsSchema":{"properties":{"recording_ids":{"items":{"type":"string"},"type":"array","title":"Recording Ids"}},"type":"object","required":["recording_ids"],"title":"UploadRecordingsSchema","description":"Schema for uploading Webex recordings."},"app__intgs_zoom__schemas__UploadRecordingsSchema":{"properties":{"meeting_ids":{"items":{"type":"string"},"type":"array","title":"Meeting Ids"}},"type":"object","required":["meeting_ids"],"title":"UploadRecordingsSchema"},"app__templates__models__lower_thirds__SpeakerText":{"properties":{"font_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Color","description":"Overrides the font color for the speaker text, if provided."},"element_props":{"anyOf":[{"$ref":"#/components/schemas/TemplateElementPropsWithoutWidth"},{"type":"null"}]}},"type":"object","title":"SpeakerText"},"app__ttcs_conversations__models__message__OpenAIMetadata":{"properties":{"response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Id"}},"type":"object","title":"OpenAIMetadata"}},"securitySchemes":{"HTTPBearer":{"type":"http","description":"JWT token","scheme":"bearer"}}}}