{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/notify":{"post":{"tags":["notifiers"],"summary":"Push Notification","operationId":"push_notification_notify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notify/image-selection":{"post":{"tags":["notifiers"],"summary":"Notify Image Selection","operationId":"notify_image_selection_notify_image_selection_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageSelectionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/markets/p2p":{"get":{"tags":["markets"],"summary":"Get P2P Offers","description":"Get P2P offers filtered by amount and currency type.","operationId":"get_p2p_offers_markets_p2p_get","parameters":[{"name":"is_buy","in":"query","required":true,"schema":{"type":"boolean","title":"Is Buy"}},{"name":"amount","in":"query","required":true,"schema":{"type":"number","title":"Amount"}},{"name":"is_fiat","in":"query","required":true,"schema":{"type":"boolean","title":"Is Fiat"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/markets/forex/{base}/{quote}":{"get":{"tags":["markets"],"summary":"Get Forex Rates","description":"Get currency exchange rates from Alpha Vantage.","operationId":"get_forex_rates_markets_forex__base___quote__get","parameters":[{"name":"base","in":"path","required":true,"schema":{"type":"string","title":"Base"}},{"name":"quote","in":"path","required":true,"schema":{"type":"string","title":"Quote"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForexResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/markets/crypto/{symbol}":{"get":{"tags":["markets"],"summary":"Get Crypto Price","description":"Get cryptocurrency data from CoinMarketCap.","operationId":"get_crypto_price_markets_crypto__symbol__get","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","title":"Symbol"}},{"name":"amount","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoinmarketcapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/markets/crypto/whitelist":{"post":{"tags":["markets"],"summary":"Add To Whitelist","description":"Add a cryptocurrency to the whitelist.","operationId":"add_to_whitelist_markets_crypto_whitelist_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoinmarketcapWhitelistRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/markets/price/{symbol}":{"get":{"tags":["markets"],"summary":"Get Exchange Price","description":"Get cryptocurrency price from exchanges.","operationId":"get_exchange_price_markets_price__symbol__get","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","title":"Symbol"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/markets/cbr/rates":{"get":{"tags":["markets"],"summary":"Get Cbr Rates","description":"Get Central Bank of Russia exchange rates. If no date is provided, return the latest.","operationId":"get_cbr_rates_markets_cbr_rates_get","parameters":[{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CBRResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/markets/cbr/last-date":{"get":{"tags":["markets"],"summary":"Get Cbr Last Date","description":"Get the latest date for which CBR rates are available.","operationId":"get_cbr_last_date_markets_cbr_last_date_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/markets/cbr/key-rate":{"get":{"tags":["markets"],"summary":"Get Cbr Key Rate","description":"Get the latest CBR key rate.","operationId":"get_cbr_key_rate_markets_cbr_key_rate_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/horoscope/{zodiac_eng}":{"get":{"tags":["horoscope"],"summary":"Get Horoscope Mail Ru","operationId":"get_horoscope_mail_ru_horoscope__zodiac_eng__get","parameters":[{"name":"zodiac_eng","in":"path","required":true,"schema":{"type":"string","title":"Zodiac Eng"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HoroscopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worker/video-generation-pipeline":{"post":{"tags":["worker"],"summary":"Submit Image Task","operationId":"submit_image_task_worker_video_generation_pipeline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenerationPipelineTaskData"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Submit Image Task Worker Video Generation Pipeline Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worker/video-generation-from-scenario":{"post":{"tags":["worker"],"summary":"Submit video generation task from JSON scenario","description":"Принимает JSON-сценарий, генерирует промпты и ставит задачу\nгенерации видео в очередь.","operationId":"submit_scenario_task_worker_video_generation_from_scenario_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Submit Scenario Task Worker Video Generation From Scenario Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worker/upload":{"post":{"tags":["worker"],"summary":"Upload File","operationId":"upload_file_worker_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_worker_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worker/download-video/{filename}":{"get":{"tags":["worker"],"summary":"Download Video","operationId":"download_video_worker_download_video__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worker/upload-video":{"post":{"tags":["worker"],"summary":"Upload Video","operationId":"upload_video_worker_upload_video_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_video_worker_upload_video_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worker/cleanup":{"post":{"tags":["worker"],"summary":"Ручная очистка истёкших файлов/видео","operationId":"manual_cleanup_worker_cleanup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/worker/upload-archive":{"post":{"tags":["worker"],"summary":"Upload an archive from a worker","description":"Allows a worker to upload an archive file.\nThe file is saved to a dedicated worker archives directory.\nReturns a direct download URL for the archive.","operationId":"upload_worker_archive_worker_upload_archive_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_worker_archive_worker_upload_archive_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worker/download-archive/{filename}":{"get":{"tags":["worker"],"summary":"Download a worker-uploaded archive","description":"Allows downloading of an archive previously uploaded by a worker.","operationId":"download_worker_archive_worker_download_archive__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/worker/set-twitter-cookies":{"post":{"tags":["worker"],"summary":"Update Twitter auth cookies","description":"Update Twitter authentication cookies. Requires a valid Bearer token.","operationId":"set_twitter_cookies_worker_set_twitter_cookies_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterCookies"}}},"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":[]}]}},"/health/memory":{"get":{"summary":"Health Memory","operationId":"health_memory_health_memory_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_upload_file_worker_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_worker_upload_post"},"Body_upload_video_worker_upload_video_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_video_worker_upload_video_post"},"Body_upload_worker_archive_worker_upload_archive_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_worker_archive_worker_upload_archive_post"},"CBRResponse":{"properties":{"rates":{"items":{"$ref":"#/components/schemas/CBRValuteItem"},"type":"array","title":"Rates"}},"type":"object","required":["rates"],"title":"CBRResponse"},"CBRValuteItem":{"properties":{"rate":{"type":"number","title":"Rate"},"name":{"type":"string","title":"Name"},"char_code":{"type":"string","title":"Char Code"}},"type":"object","required":["rate","name","char_code"],"title":"CBRValuteItem"},"CoinData":{"properties":{"name":{"type":"string","title":"Name","default":"N/A"},"symbol":{"type":"string","title":"Symbol","default":"N/A"},"is_active":{"type":"integer","title":"Is Active"},"quote":{"additionalProperties":{"$ref":"#/components/schemas/QuoteData"},"type":"object","title":"Quote"}},"type":"object","required":["is_active","quote"],"title":"CoinData"},"CoinmarketcapResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CoinData"},"type":"array","title":"Data"},"html_output":{"type":"string","title":"Html Output"}},"type":"object","required":["data","html_output"],"title":"CoinmarketcapResponse"},"CoinmarketcapWhitelistRequest":{"properties":{"symbol":{"type":"string","title":"Symbol"},"name":{"type":"string","title":"Name"}},"type":"object","required":["symbol","name"],"title":"CoinmarketcapWhitelistRequest"},"FileUploadResponse":{"properties":{"filename":{"type":"string","title":"Filename","description":"Оригинальное имя","example":"example.jpg"},"filepath":{"type":"string","title":"Filepath","description":"Путь к файлу на сервере для эндпойнта","example":"backend_filename_to_router.jpg"},"size":{"type":"integer","title":"Size"},"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["filename","filepath","size","content_type"],"title":"FileUploadResponse"},"ForexChange":{"properties":{"absolute":{"type":"number","title":"Absolute"},"percent":{"type":"number","title":"Percent"}},"type":"object","required":["absolute","percent"],"title":"ForexChange"},"ForexChanges":{"properties":{"day1":{"anyOf":[{"$ref":"#/components/schemas/ForexChange"},{"type":"null"}]},"day7":{"anyOf":[{"$ref":"#/components/schemas/ForexChange"},{"type":"null"}]},"day30":{"anyOf":[{"$ref":"#/components/schemas/ForexChange"},{"type":"null"}]}},"type":"object","title":"ForexChanges"},"ForexResponse":{"properties":{"base":{"type":"string","title":"Base"},"quote":{"type":"string","title":"Quote"},"rate":{"type":"number","title":"Rate"},"changes":{"$ref":"#/components/schemas/ForexChanges"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["base","quote","rate","changes"],"title":"ForexResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HoroscopeResponse":{"properties":{"sign":{"type":"string","title":"Sign"},"emoji":{"type":"string","title":"Emoji"},"daily":{"type":"string","title":"Daily"},"finance":{"type":"string","title":"Finance"}},"type":"object","required":["sign","emoji","daily","finance"],"title":"HoroscopeResponse"},"ImageSelectionRequest":{"properties":{"task_id":{"type":"string","title":"Task Id"},"user_id":{"type":"integer","title":"User Id"},"relative_paths":{"items":{"type":"string"},"type":"array","title":"Relative Paths"}},"type":"object","required":["task_id","user_id","relative_paths"],"title":"ImageSelectionRequest"},"Notification":{"properties":{"text":{"type":"string","title":"Text"},"send_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send To"}},"type":"object","required":["text"],"title":"Notification"},"PriceResponse":{"properties":{"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","title":"PriceResponse"},"QuoteData":{"properties":{"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"percent_change_1h":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Change 1H"},"percent_change_24h":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Change 24H"},"percent_change_7d":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Change 7D"},"percent_change_30d":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percent Change 30D"},"market_cap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Market Cap"},"volume_24h":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume 24H"}},"type":"object","required":["price","percent_change_1h","percent_change_24h","percent_change_7d","percent_change_30d","market_cap","volume_24h"],"title":"QuoteData"},"ScenarioInput":{"properties":{"characters":{"additionalProperties":{"type":"string"},"type":"object","title":"Characters"},"images":{"items":{"$ref":"#/components/schemas/VideoGenerationPromptItem"},"type":"array","minItems":1,"title":"Images"},"animations":{"items":{"$ref":"#/components/schemas/VideoGenerationPromptItem"},"type":"array","minItems":1,"title":"Animations"},"user_id":{"type":"integer","title":"User Id","example":123456789}},"type":"object","required":["images","animations","user_id"],"title":"ScenarioInput"},"TwitterCookies":{"properties":{"auth_token":{"type":"string","title":"Auth Token"},"ct0":{"type":"string","title":"Ct0"}},"type":"object","required":["auth_token","ct0"],"title":"TwitterCookies"},"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"},"VideoGenerationPipelineTaskData":{"properties":{"image_prompts":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Image Prompts","example":["cat with glasses","dog with a cape"]},"animation_prompts":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Animation Prompts","example":["cat eat fish","dog eat sousage"]},"user_id":{"type":"integer","title":"User Id","example":123456789}},"type":"object","required":["image_prompts","animation_prompts","user_id"],"title":"VideoGenerationPipelineTaskData"},"VideoGenerationPromptItem":{"properties":{"prompt":{"type":"string","title":"Prompt"},"characters":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Characters"}},"type":"object","required":["prompt"],"title":"VideoGenerationPromptItem"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}