{"openapi":"3.1.0","info":{"title":"nerom.app API","description":"Live world news ranked by coverage. Website: https://nerom.app","version":"0.1.0"},"paths":{"/api/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/token":{"post":{"tags":["auth"],"summary":"Token","operationId":"token_api_v1_auth_token_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_token_api_v1_auth_token_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/account/keys":{"get":{"tags":["account"],"summary":"List Keys","operationId":"list_keys_api_v1_account_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ApiKeyOut"},"type":"array","title":"Response List Keys Api V1 Account Keys Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["account"],"summary":"Create Key","operationId":"create_key_api_v1_account_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/account/keys/{key_id}":{"delete":{"tags":["account"],"summary":"Revoke Key","operationId":"revoke_key_api_v1_account_keys__key_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account/usage":{"get":{"tags":["account"],"summary":"Usage","operationId":"usage_api_v1_account_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountUsage"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/billing/checkout":{"post":{"tags":["billing"],"summary":"Checkout","operationId":"checkout_api_v1_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/billing/portal":{"post":{"tags":["billing"],"summary":"Portal","operationId":"portal_api_v1_billing_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectOut"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/web/topics":{"get":{"tags":["website"],"summary":"Topics","operationId":"topics_api_v1_web_topics_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Window","default":"24h"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},{"name":"source_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"min_sources","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Min Sources"}},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TopicSort","default":"hot"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_TopicOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web/topics/{topic_id}":{"get":{"tags":["website"],"summary":"Topic","operationId":"topic_api_v1_web_topics__topic_id__get","parameters":[{"name":"topic_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Topic Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopicDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web/topics/{topic_id}/read":{"post":{"tags":["website"],"summary":"Read Topic","operationId":"read_topic_api_v1_web_topics__topic_id__read_post","parameters":[{"name":"topic_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Topic Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitorIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadersOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web/articles":{"get":{"tags":["website"],"summary":"Articles","operationId":"articles_api_v1_web_articles_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"source_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Id"}},{"name":"topic_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Topic Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ArticleOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web/articles/{article_id}":{"get":{"tags":["website"],"summary":"Article","operationId":"article_api_v1_web_articles__article_id__get","parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web/categories":{"get":{"tags":["website"],"summary":"Categories","operationId":"categories_api_v1_web_categories_get","parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Window","default":"24h"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CategoryCount"},"title":"Response Categories Api V1 Web Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web/stats":{"get":{"tags":["website"],"summary":"Stats","operationId":"stats_api_v1_web_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsOut"}}}}}}},"/api/v1/web/sources":{"get":{"tags":["website"],"summary":"Sources","operationId":"sources_api_v1_web_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SourcePublic"},"type":"array","title":"Response Sources Api V1 Web Sources Get"}}}}}}},"/api/v1/web/plans":{"get":{"tags":["website"],"summary":"Plans","operationId":"plans_api_v1_web_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlansOut"}}}}}}},"/api/v1/watches":{"get":{"tags":["alerts"],"summary":"List Watches","operationId":"list_watches_api_v1_watches_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchesOut"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["alerts"],"summary":"Create Watch","operationId":"create_watch_api_v1_watches_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/watches/alerts":{"get":{"tags":["alerts"],"summary":"Alerts","operationId":"alerts_api_v1_watches_alerts_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"watch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Watch Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AlertOut"},"title":"Response Alerts Api V1 Watches Alerts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/watches/{watch_id}":{"get":{"tags":["alerts"],"summary":"Get Watch","operationId":"get_watch_api_v1_watches__watch_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Watch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["alerts"],"summary":"Patch Watch","operationId":"patch_watch_api_v1_watches__watch_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Watch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["alerts"],"summary":"Delete Watch","operationId":"delete_watch_api_v1_watches__watch_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Watch Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/watches/{watch_id}/share":{"post":{"tags":["alerts"],"summary":"Share","operationId":"share_api_v1_watches__watch_id__share_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Watch Id"}},{"name":"shared","in":"query","required":true,"schema":{"type":"boolean","title":"Shared"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/watches/{watch_id}/report":{"get":{"tags":["alerts"],"summary":"Watch Report","operationId":"watch_report_api_v1_watches__watch_id__report_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Watch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web/reports/{token}":{"get":{"tags":["website"],"summary":"Shared Report","operationId":"shared_report_api_v1_web_reports__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/WatchReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web/contact":{"post":{"tags":["website"],"summary":"Start","operationId":"start_api_v1_web_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web/contact/{token}":{"get":{"tags":["website"],"summary":"Read","operationId":"read_api_v1_web_contact__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/ContactThreadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web/contact/{token}/messages":{"post":{"tags":["website"],"summary":"Reply","operationId":"reply_api_v1_web_contact__token__messages_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactReplyIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactMessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/topics":{"get":{"tags":["news api (1 token per call)"],"summary":"Topics","operationId":"topics_api_v1_topics_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Window","default":"24h"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},{"name":"source_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"min_sources","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Min Sources"}},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TopicSort","default":"hot"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_TopicOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/topics/{topic_id}":{"get":{"tags":["news api (1 token per call)"],"summary":"Topic","operationId":"topic_api_v1_topics__topic_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"topic_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Topic Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopicDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/articles":{"get":{"tags":["news api (1 token per call)"],"summary":"Articles","operationId":"articles_api_v1_articles_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"source_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Id"}},{"name":"topic_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Topic Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ArticleOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/articles/{article_id}":{"get":{"tags":["news api (1 token per call)"],"summary":"Article","operationId":"article_api_v1_articles__article_id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/categories":{"get":{"tags":["news api (1 token per call)"],"summary":"Categories","operationId":"categories_api_v1_categories_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"window","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Window","default":"24h"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CategoryCount"},"title":"Response Categories Api V1 Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sources":{"get":{"tags":["news api (1 token per call)"],"summary":"Sources","operationId":"sources_api_v1_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SourcePublic"},"type":"array","title":"Response Sources Api V1 Sources Get"}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v1/admin/overview":{"get":{"tags":["admin"],"summary":"Overview","operationId":"overview_api_v1_admin_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOverview"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/admin/users":{"get":{"tags":["admin"],"summary":"List Users","operationId":"list_users_api_v1_admin_users_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"plan_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Code"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/UserStatus"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AdminUserRow_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}":{"get":{"tags":["admin"],"summary":"User Detail","operationId":"user_detail_api_v1_admin_users__user_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Patch User","operationId":"patch_user_api_v1_admin_users__user_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete User","operationId":"delete_user_api_v1_admin_users__user_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/keys/{key_id}":{"delete":{"tags":["admin"],"summary":"Revoke Key","operationId":"revoke_key_api_v1_admin_keys__key_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/articles/{article_id}":{"get":{"tags":["admin"],"summary":"Article","operationId":"article_api_v1_admin_articles__article_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"article_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Article Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArticleDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/contact":{"get":{"tags":["admin"],"summary":"Contact Threads","operationId":"contact_threads_api_v1_admin_contact_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ContactStatus"},{"type":"null"}],"title":"State"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactThreadRow"},"title":"Response Contact Threads Api V1 Admin Contact Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/contact/{thread_id}":{"get":{"tags":["admin"],"summary":"Contact Thread","operationId":"contact_thread_api_v1_admin_contact__thread_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactThreadAdmin"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Contact Status","operationId":"contact_status_api_v1_admin_contact__thread_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPatch"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/contact/{thread_id}/messages":{"post":{"tags":["admin"],"summary":"Contact Reply","operationId":"contact_reply_api_v1_admin_contact__thread_id__messages_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactReplyIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactMessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/crawler":{"get":{"tags":["admin"],"summary":"Crawler","operationId":"crawler_api_v1_admin_crawler_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCrawler"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/admin/issues":{"get":{"tags":["admin"],"summary":"Issues","operationId":"issues_api_v1_admin_issues_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Issue"},"type":"array","title":"Response Issues Api V1 Admin Issues Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/admin/quality":{"get":{"tags":["admin"],"summary":"Quality","operationId":"quality_api_v1_admin_quality_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SourceQuality"},"type":"array","title":"Response Quality Api V1 Admin Quality Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/admin/plans":{"get":{"tags":["admin"],"summary":"Plans","operationId":"plans_api_v1_admin_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PlanOut"},"type":"array","title":"Response Plans Api V1 Admin Plans Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/admin/plans/{code}":{"patch":{"tags":["admin"],"summary":"Patch Plan","operationId":"patch_plan_api_v1_admin_plans__code__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/backups":{"get":{"tags":["admin"],"summary":"Backups","operationId":"backups_api_v1_admin_backups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BackupOut"},"type":"array","title":"Response Backups Api V1 Admin Backups Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/admin/backups/{name}":{"get":{"tags":["admin"],"summary":"Download Backup","operationId":"download_backup_api_v1_admin_backups__name__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/sources":{"get":{"tags":["admin"],"summary":"List Sources","operationId":"list_sources_api_v1_admin_sources_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"enabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SourceOut"},"title":"Response List Sources Api V1 Admin Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Source","operationId":"create_source_api_v1_admin_sources_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/sources/{source_id}":{"get":{"tags":["admin"],"summary":"Get Source","operationId":"get_source_api_v1_admin_sources__source_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Patch Source","operationId":"patch_source_api_v1_admin_sources__source_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourcePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Source","operationId":"delete_source_api_v1_admin_sources__source_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/sources/{source_id}/runs":{"get":{"tags":["admin"],"summary":"List Runs","operationId":"list_runs_api_v1_admin_sources__source_id__runs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScrapeRunOut"},"title":"Response List Runs Api V1 Admin Sources  Source Id  Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/sources/{source_id}/scrape":{"post":{"tags":["admin"],"summary":"Scrape Now","operationId":"scrape_now_api_v1_admin_sources__source_id__scrape_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccountUsage":{"properties":{"plan":{"$ref":"#/components/schemas/PlanOut"},"plan_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Plan Expires At"},"used":{"type":"integer","title":"Used"},"reset_at":{"type":"string","format":"date-time","title":"Reset At"},"daily":{"items":{"$ref":"#/components/schemas/UsagePoint"},"type":"array","title":"Daily"}},"type":"object","required":["plan","plan_expires_at","used","reset_at","daily"],"title":"AccountUsage"},"AdminCrawler":{"properties":{"totals_24h":{"$ref":"#/components/schemas/CrawlerTotals"},"backlog":{"$ref":"#/components/schemas/Backlog"},"workers":{"items":{"$ref":"#/components/schemas/WorkerOut"},"type":"array","title":"Workers"},"hourly":{"items":{"$ref":"#/components/schemas/RunsPoint"},"type":"array","title":"Hourly"},"rejections_24h":{"items":{"$ref":"#/components/schemas/RejectionCount"},"type":"array","title":"Rejections 24H"}},"type":"object","required":["totals_24h","backlog","workers","hourly","rejections_24h"],"title":"AdminCrawler"},"AdminOverview":{"properties":{"users_total":{"type":"integer","title":"Users Total"},"users_new_7d":{"type":"integer","title":"Users New 7D"},"api_users_7d":{"type":"integer","title":"Api Users 7D"},"paying_users":{"type":"integer","title":"Paying Users"},"mrr_cents":{"type":"integer","title":"Mrr Cents"},"calls_today":{"type":"integer","title":"Calls Today"},"calls_30d":{"type":"integer","title":"Calls 30D"},"rejected_30d":{"type":"integer","title":"Rejected 30D"},"plans":{"items":{"$ref":"#/components/schemas/PlanCount"},"type":"array","title":"Plans"},"calls_daily":{"items":{"$ref":"#/components/schemas/UsagePoint"},"type":"array","title":"Calls Daily"},"signups_daily":{"items":{"$ref":"#/components/schemas/CountPoint"},"type":"array","title":"Signups Daily"}},"type":"object","required":["users_total","users_new_7d","api_users_7d","paying_users","mrr_cents","calls_today","calls_30d","rejected_30d","plans","calls_daily","signups_daily"],"title":"AdminOverview"},"AdminUserDetail":{"properties":{"user":{"$ref":"#/components/schemas/AdminUserRow"},"keys":{"items":{"$ref":"#/components/schemas/ApiKeyOut"},"type":"array","title":"Keys"},"daily":{"items":{"$ref":"#/components/schemas/UsagePoint"},"type":"array","title":"Daily"},"hourly":{"items":{"$ref":"#/components/schemas/UsagePoint"},"type":"array","title":"Hourly"}},"type":"object","required":["user","keys","daily","hourly"],"title":"AdminUserDetail"},"AdminUserPatch":{"properties":{"plan_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Code"},"plan_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Plan Expires At"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_admin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Admin"}},"type":"object","title":"AdminUserPatch"},"AdminUserRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"is_admin":{"type":"boolean","title":"Is Admin"},"is_active":{"type":"boolean","title":"Is Active"},"plan_code":{"type":"string","title":"Plan Code"},"plan_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Plan Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"active_keys":{"type":"integer","title":"Active Keys"},"calls_today":{"type":"integer","title":"Calls Today"},"calls_30d":{"type":"integer","title":"Calls 30D"}},"type":"object","required":["id","email","is_admin","is_active","plan_code","plan_expires_at","created_at","last_login_at","active_keys","calls_today","calls_30d"],"title":"AdminUserRow"},"AlertKind":{"type":"string","enum":["new","spreading"],"title":"AlertKind"},"AlertOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"watch_id":{"type":"string","format":"uuid","title":"Watch Id"},"watch_name":{"type":"string","title":"Watch Name"},"topic_id":{"type":"string","format":"uuid","title":"Topic Id"},"title":{"type":"string","title":"Title"},"kind":{"$ref":"#/components/schemas/AlertKind"},"source_count":{"type":"integer","title":"Source Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","watch_id","watch_name","topic_id","title","kind","source_count","created_at"],"title":"AlertOut"},"ApiKeyCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"calls_30d":{"type":"integer","title":"Calls 30D"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"key":{"type":"string","title":"Key"}},"type":"object","required":["id","name","prefix","created_at","revoked_at","calls_30d","last_used_at","key"],"title":"ApiKeyCreated"},"ApiKeyIn":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"ApiKeyIn"},"ApiKeyOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"calls_30d":{"type":"integer","title":"Calls 30D"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","name","prefix","created_at","revoked_at","calls_30d","last_used_at"],"title":"ApiKeyOut"},"ArticleDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"category":{"type":"string","title":"Category"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"paywalled":{"type":"boolean","title":"Paywalled"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"event_at":{"type":"string","format":"date-time","title":"Event At"},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"topic_id":{"type":"string","format":"uuid","title":"Topic Id"},"source_id":{"type":"string","format":"uuid","title":"Source Id"},"source_name":{"type":"string","title":"Source Name"},"source_region":{"type":"string","title":"Source Region"},"content":{"type":"string","title":"Content"}},"type":"object","required":["id","url","title","description","image_url","author","category","language","paywalled","published_at","event_at","first_seen_at","topic_id","source_id","source_name","source_region","content"],"title":"ArticleDetail"},"ArticleOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"category":{"type":"string","title":"Category"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"paywalled":{"type":"boolean","title":"Paywalled"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"event_at":{"type":"string","format":"date-time","title":"Event At"},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"topic_id":{"type":"string","format":"uuid","title":"Topic Id"},"source_id":{"type":"string","format":"uuid","title":"Source Id"},"source_name":{"type":"string","title":"Source Name"},"source_region":{"type":"string","title":"Source Region"}},"type":"object","required":["id","url","title","description","image_url","author","category","language","paywalled","published_at","event_at","first_seen_at","topic_id","source_id","source_name","source_region"],"title":"ArticleOut"},"Backlog":{"properties":{"overdue":{"type":"integer","title":"Overdue"},"max_lag_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Lag Seconds"}},"type":"object","required":["overdue","max_lag_seconds"],"title":"Backlog"},"BackupOut":{"properties":{"name":{"type":"string","title":"Name"},"size_bytes":{"type":"integer","title":"Size Bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["name","size_bytes","created_at"],"title":"BackupOut"},"Body_token_api_v1_auth_token_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"^password$"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"format":"password","title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_token_api_v1_auth_token_post"},"CategoryCount":{"properties":{"category":{"type":"string","title":"Category"},"topics":{"type":"integer","title":"Topics"}},"type":"object","required":["category","topics"],"title":"CategoryCount"},"CheckoutIn":{"properties":{"plan_code":{"type":"string","title":"Plan Code"}},"type":"object","required":["plan_code"],"title":"CheckoutIn"},"ContactAuthor":{"type":"string","enum":["visitor","admin"],"title":"ContactAuthor"},"ContactCreated":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"ContactCreated"},"ContactIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"topic":{"$ref":"#/components/schemas/ContactTopic","default":"general"},"message":{"type":"string","maxLength":5000,"minLength":10,"title":"Message"},"website":{"type":"string","maxLength":0,"title":"Website","default":""}},"type":"object","required":["name","message"],"title":"ContactIn"},"ContactMessageOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"author":{"$ref":"#/components/schemas/ContactAuthor"},"body":{"type":"string","title":"Body"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","author","body","created_at"],"title":"ContactMessageOut"},"ContactPatch":{"properties":{"status":{"$ref":"#/components/schemas/ContactStatus"}},"type":"object","required":["status"],"title":"ContactPatch"},"ContactReplyIn":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"ContactReplyIn"},"ContactStatus":{"type":"string","enum":["open","closed"],"title":"ContactStatus"},"ContactThreadAdmin":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"topic":{"$ref":"#/components/schemas/ContactTopic"},"status":{"$ref":"#/components/schemas/ContactStatus"},"awaiting_reply":{"type":"boolean","title":"Awaiting Reply"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"messages":{"items":{"$ref":"#/components/schemas/ContactMessageOut"},"type":"array","title":"Messages"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["id","name","topic","status","awaiting_reply","created_at","updated_at","messages","email"],"title":"ContactThreadAdmin"},"ContactThreadOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"topic":{"$ref":"#/components/schemas/ContactTopic"},"status":{"$ref":"#/components/schemas/ContactStatus"},"awaiting_reply":{"type":"boolean","title":"Awaiting Reply"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"messages":{"items":{"$ref":"#/components/schemas/ContactMessageOut"},"type":"array","title":"Messages"}},"type":"object","required":["id","name","topic","status","awaiting_reply","created_at","updated_at","messages"],"title":"ContactThreadOut"},"ContactThreadRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"topic":{"$ref":"#/components/schemas/ContactTopic"},"status":{"$ref":"#/components/schemas/ContactStatus"},"awaiting_reply":{"type":"boolean","title":"Awaiting Reply"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"preview":{"type":"string","title":"Preview"}},"type":"object","required":["id","name","topic","status","awaiting_reply","created_at","updated_at","email","preview"],"title":"ContactThreadRow"},"ContactTopic":{"type":"string","enum":["general","removal","privacy","api","billing"],"title":"ContactTopic"},"CountPoint":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["at","count"],"title":"CountPoint"},"CrawlerTotals":{"properties":{"runs":{"type":"integer","title":"Runs"},"failed_runs":{"type":"integer","title":"Failed Runs"},"pages_fetched":{"type":"integer","title":"Pages Fetched"},"pages_failed":{"type":"integer","title":"Pages Failed"},"articles_new":{"type":"integer","title":"Articles New"},"articles_rejected":{"type":"integer","title":"Articles Rejected"},"running":{"type":"integer","title":"Running"}},"type":"object","required":["runs","failed_runs","pages_fetched","pages_failed","articles_new","articles_rejected","running"],"title":"CrawlerTotals"},"FetcherKind":{"type":"string","enum":["browser","http"],"title":"FetcherKind"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Issue":{"properties":{"severity":{"type":"string","title":"Severity"},"kind":{"type":"string","title":"Kind"},"title":{"type":"string","title":"Title"},"detail":{"type":"string","title":"Detail"},"source_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Id"}},"type":"object","required":["severity","kind","title","detail"],"title":"Issue"},"LoginIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginIn"},"Page_AdminUserRow_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminUserRow"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["items","limit","offset","has_more"],"title":"Page[AdminUserRow]"},"Page_ArticleOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ArticleOut"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["items","limit","offset","has_more"],"title":"Page[ArticleOut]"},"Page_TopicOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TopicOut"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["items","limit","offset","has_more"],"title":"Page[TopicOut]"},"PlanCount":{"properties":{"plan_code":{"type":"string","title":"Plan Code"},"users":{"type":"integer","title":"Users"}},"type":"object","required":["plan_code","users"],"title":"PlanCount"},"PlanOut":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"price_cents":{"type":"integer","title":"Price Cents"},"period":{"$ref":"#/components/schemas/PlanPeriod"},"request_limit":{"type":"integer","title":"Request Limit"},"watch_limit":{"type":"integer","title":"Watch Limit"},"active":{"type":"boolean","title":"Active"},"sort":{"type":"integer","title":"Sort"}},"type":"object","required":["code","name","price_cents","period","request_limit","watch_limit","active","sort"],"title":"PlanOut"},"PlanPatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"price_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Price Cents"},"request_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Request Limit"},"watch_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Watch Limit"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"type":"object","title":"PlanPatch"},"PlanPeriod":{"type":"string","enum":["day","month"],"title":"PlanPeriod"},"PlansOut":{"properties":{"plans":{"items":{"$ref":"#/components/schemas/PlanOut"},"type":"array","title":"Plans"},"checkout_enabled":{"type":"boolean","title":"Checkout Enabled"}},"type":"object","required":["plans","checkout_enabled"],"title":"PlansOut"},"ReadersOut":{"properties":{"topic_id":{"type":"string","format":"uuid","title":"Topic Id"},"readers":{"type":"integer","title":"Readers"}},"type":"object","required":["topic_id","readers"],"title":"ReadersOut"},"RedirectOut":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"RedirectOut"},"RegisterIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"}},"type":"object","required":["email","password"],"title":"RegisterIn"},"RejectionCount":{"properties":{"reason":{"type":"string","title":"Reason"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["reason","count"],"title":"RejectionCount"},"RunStatus":{"type":"string","enum":["running","success","partial","failed"],"title":"RunStatus"},"RunsPoint":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"success":{"type":"integer","title":"Success"},"partial":{"type":"integer","title":"Partial"},"failed":{"type":"integer","title":"Failed"},"articles_new":{"type":"integer","title":"Articles New"},"articles_rejected":{"type":"integer","title":"Articles Rejected"},"avg_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Seconds"}},"type":"object","required":["at","success","partial","failed","articles_new","articles_rejected","avg_seconds"],"title":"RunsPoint"},"ScrapeRunOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_id":{"type":"string","format":"uuid","title":"Source Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"status":{"$ref":"#/components/schemas/RunStatus"},"pages_fetched":{"type":"integer","title":"Pages Fetched"},"pages_failed":{"type":"integer","title":"Pages Failed"},"articles_new":{"type":"integer","title":"Articles New"},"articles_rejected":{"type":"integer","title":"Articles Rejected"},"rejections":{"additionalProperties":{"type":"integer"},"type":"object","title":"Rejections"},"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["id","source_id","started_at","finished_at","status","pages_fetched","pages_failed","articles_new","articles_rejected","rejections","worker_id","error"],"title":"ScrapeRunOut"},"SourceIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"root_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Root Url"},"region":{"type":"string","title":"Region","default":"global"},"category":{"type":"string","title":"Category","default":"general"},"depth":{"type":"integer","maximum":5.0,"minimum":0.0,"title":"Depth","default":2},"interval_minutes":{"type":"integer","minimum":1.0,"title":"Interval Minutes","default":5},"max_pages":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Max Pages","default":40},"page_timeout_seconds":{"type":"integer","maximum":600.0,"minimum":5.0,"title":"Page Timeout Seconds","default":60},"max_retries":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Max Retries","default":3},"url_include":{"items":{"type":"string"},"type":"array","title":"Url Include","default":[]},"url_exclude":{"items":{"type":"string"},"type":"array","title":"Url Exclude","default":[]},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["name","root_url"],"title":"SourceIn"},"SourceMentions":{"properties":{"name":{"type":"string","title":"Name"},"mentions":{"type":"integer","title":"Mentions"}},"type":"object","required":["name","mentions"],"title":"SourceMentions"},"SourceOut":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"root_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Root Url"},"region":{"type":"string","title":"Region","default":"global"},"category":{"type":"string","title":"Category","default":"general"},"depth":{"type":"integer","maximum":5.0,"minimum":0.0,"title":"Depth","default":2},"interval_minutes":{"type":"integer","minimum":1.0,"title":"Interval Minutes","default":5},"max_pages":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Max Pages","default":40},"page_timeout_seconds":{"type":"integer","maximum":600.0,"minimum":5.0,"title":"Page Timeout Seconds","default":60},"max_retries":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Max Retries","default":3},"url_include":{"items":{"type":"string"},"type":"array","title":"Url Include","default":[]},"url_exclude":{"items":{"type":"string"},"type":"array","title":"Url Exclude","default":[]},"enabled":{"type":"boolean","title":"Enabled","default":true},"id":{"type":"string","format":"uuid","title":"Id"},"needs_browser":{"type":"boolean","title":"Needs Browser"},"next_run_at":{"type":"string","format":"date-time","title":"Next Run At"},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"article_count":{"type":"integer","title":"Article Count"}},"type":"object","required":["name","root_url","id","needs_browser","next_run_at","last_run_at","created_at","article_count"],"title":"SourceOut"},"SourcePatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"depth":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Depth"},"interval_minutes":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Interval Minutes"},"max_pages":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Max Pages"},"page_timeout_seconds":{"anyOf":[{"type":"integer","maximum":600.0,"minimum":5.0},{"type":"null"}],"title":"Page Timeout Seconds"},"max_retries":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Max Retries"},"url_include":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Url Include"},"url_exclude":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Url Exclude"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"needs_browser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Browser"}},"type":"object","title":"SourcePatch"},"SourcePublic":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"root_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Root Url"},"region":{"type":"string","title":"Region"},"category":{"type":"string","title":"Category"},"article_count":{"type":"integer","title":"Article Count"}},"type":"object","required":["id","name","root_url","region","category","article_count"],"title":"SourcePublic"},"SourceQuality":{"properties":{"source_id":{"type":"string","format":"uuid","title":"Source Id"},"name":{"type":"string","title":"Name"},"articles_7d":{"type":"integer","title":"Articles 7D"},"missing_description_pct":{"type":"number","title":"Missing Description Pct"},"missing_image_pct":{"type":"number","title":"Missing Image Pct"},"missing_author_pct":{"type":"number","title":"Missing Author Pct"},"paywalled_pct":{"type":"number","title":"Paywalled Pct"},"rejected_24h":{"type":"integer","title":"Rejected 24H"},"last_status":{"anyOf":[{"$ref":"#/components/schemas/RunStatus"},{"type":"null"}]},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At"}},"type":"object","required":["source_id","name","articles_7d","missing_description_pct","missing_image_pct","missing_author_pct","paywalled_pct","rejected_24h","last_status","last_run_at"],"title":"SourceQuality"},"StatsOut":{"properties":{"sources_enabled":{"type":"integer","title":"Sources Enabled"},"articles_24h":{"type":"integer","title":"Articles 24H"},"topics_24h":{"type":"integer","title":"Topics 24H"},"readers_now":{"type":"integer","title":"Readers Now"}},"type":"object","required":["sources_enabled","articles_24h","topics_24h","readers_now"],"title":"StatsOut"},"TokenOut":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["access_token","expires_in"],"title":"TokenOut"},"TopicDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"category":{"type":"string","title":"Category"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"source_count":{"type":"integer","title":"Source Count"},"article_count":{"type":"integer","title":"Article Count"},"last_article_at":{"type":"string","format":"date-time","title":"Last Article At"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"readers":{"type":"integer","title":"Readers","default":0},"articles":{"items":{"$ref":"#/components/schemas/ArticleOut"},"type":"array","title":"Articles"}},"type":"object","required":["id","title","image_url","category","created_at","source_count","article_count","last_article_at","sources","articles"],"title":"TopicDetail"},"TopicOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"category":{"type":"string","title":"Category"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"source_count":{"type":"integer","title":"Source Count"},"article_count":{"type":"integer","title":"Article Count"},"last_article_at":{"type":"string","format":"date-time","title":"Last Article At"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"readers":{"type":"integer","title":"Readers","default":0}},"type":"object","required":["id","title","image_url","category","created_at","source_count","article_count","last_article_at","sources"],"title":"TopicOut"},"TopicSort":{"type":"string","enum":["hot","latest"],"title":"TopicSort"},"UsagePoint":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"calls":{"type":"integer","title":"Calls"},"rejected":{"type":"integer","title":"Rejected"}},"type":"object","required":["at","calls","rejected"],"title":"UsagePoint"},"UserOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"is_admin":{"type":"boolean","title":"Is Admin"},"is_active":{"type":"boolean","title":"Is Active"},"plan_code":{"type":"string","title":"Plan Code"},"plan_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Plan Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","is_admin","is_active","plan_code","plan_expires_at","created_at"],"title":"UserOut"},"UserStatus":{"type":"string","enum":["active","blocked"],"title":"UserStatus"},"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"},"VisitorIn":{"properties":{"visitor_id":{"type":"string","format":"uuid","title":"Visitor Id"}},"type":"object","required":["visitor_id"],"title":"VisitorIn"},"WatchIn":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"query":{"type":"string","maxLength":200,"minLength":1,"title":"Query"},"spread_sources":{"type":"integer","maximum":100.0,"minimum":2.0,"title":"Spread Sources","default":5},"notify_new":{"type":"boolean","title":"Notify New","default":true},"email_alerts":{"type":"boolean","title":"Email Alerts","default":true},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["name","query"],"title":"WatchIn"},"WatchOut":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"query":{"type":"string","maxLength":200,"minLength":1,"title":"Query"},"spread_sources":{"type":"integer","maximum":100.0,"minimum":2.0,"title":"Spread Sources","default":5},"notify_new":{"type":"boolean","title":"Notify New","default":true},"email_alerts":{"type":"boolean","title":"Email Alerts","default":true},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"},"id":{"type":"string","format":"uuid","title":"Id"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"delivery_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"alerts_7d":{"type":"integer","title":"Alerts 7D"}},"type":"object","required":["name","query","id","share_token","delivery_error","created_at","alerts_7d"],"title":"WatchOut"},"WatchPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"query":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Query"},"spread_sources":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":2.0},{"type":"null"}],"title":"Spread Sources"},"notify_new":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Notify New"},"email_alerts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Alerts"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","title":"WatchPatch"},"WatchReport":{"properties":{"name":{"type":"string","title":"Name"},"query":{"type":"string","title":"Query"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"mentions_7d":{"type":"integer","title":"Mentions 7D"},"sources_7d":{"type":"integer","title":"Sources 7D"},"daily":{"items":{"$ref":"#/components/schemas/CountPoint"},"type":"array","title":"Daily"},"top_sources":{"items":{"$ref":"#/components/schemas/SourceMentions"},"type":"array","title":"Top Sources"},"stories":{"items":{"$ref":"#/components/schemas/TopicOut"},"type":"array","title":"Stories"}},"type":"object","required":["name","query","generated_at","mentions_7d","sources_7d","daily","top_sources","stories"],"title":"WatchReport"},"WatchesOut":{"properties":{"watches":{"items":{"$ref":"#/components/schemas/WatchOut"},"type":"array","title":"Watches"},"watch_limit":{"type":"integer","title":"Watch Limit"},"email_enabled":{"type":"boolean","title":"Email Enabled"}},"type":"object","required":["watches","watch_limit","email_enabled"],"title":"WatchesOut"},"Window":{"type":"string","enum":["1h","3h","6h","24h","7d"],"title":"Window"},"WorkerOut":{"properties":{"worker_id":{"type":"string","title":"Worker Id"},"host":{"type":"string","title":"Host"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"last_seen":{"type":"string","format":"date-time","title":"Last Seen"},"fetcher":{"$ref":"#/components/schemas/FetcherKind"},"concurrency":{"type":"integer","title":"Concurrency"},"running":{"items":{"type":"string"},"type":"array","title":"Running"}},"type":"object","required":["worker_id","host","started_at","last_seen","fetcher","concurrency","running"],"title":"WorkerOut"}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/api/v1/auth/token"}}},"APIKeyHeader":{"type":"apiKey","description":"API key from your account page","in":"header","name":"X-API-Key"}}}}