{"openapi":"3.1.0","info":{"title":"Domain Manager","version":"0.1.0"},"paths":{"/api/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/session":{"post":{"tags":["auth"],"summary":"Refresh Session","description":"Проставляет куку сессии тем, кто уже залогинен (токен лежит в localStorage\nс прошлого входа). Фронт дёргает при запуске — иначе служебный просмотр\nпопросил бы перелогиниться.","operationId":"refresh_session_api_auth_session_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/projects":{"get":{"tags":["projects"],"summary":"List Projects","operationId":"list_projects_api_projects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"green","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Green"}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}},{"name":"brand","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Brand"}},{"name":"server_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"}},{"name":"template_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Template Id"}},{"name":"pbn_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pbn Only"}},{"name":"alerts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Alerts"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Per Page"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","maxLength":32,"default":"","title":"Sort"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProjectRowOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["projects"],"summary":"Create Project","operationId":"create_project_api_projects_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/link-replace":{"post":{"tags":["projects"],"summary":"Link Replace","description":"Bulk find/replace of a string (e.g. a donor domain) across every project's\ncontent (template + subpages) in the current team scope. dry_run=True only\nreports where and how many hits — nothing is written.\n\ninclude_pbn=True also runs the same find/replace across all pbn-maker donor\ncontent (via the integration API). On apply, matched donors are re-published\n(redeployed) by pbn-maker in the background.","operationId":"link_replace_api_projects_link_replace_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_link_replace_api_projects_link_replace_post"}}},"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":[]}]}},"/api/projects/link-replace/history":{"get":{"tags":["projects"],"summary":"Link Replace History","description":"History of applied replacements for the «Замены» tab, newest first.","operationId":"link_replace_history_api_projects_link_replace_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/projects/gsc-24h":{"get":{"tags":["projects"],"summary":"Projects Gsc 24H","description":"Показы и клики доменов за 24 часа — из GSC-аккаунтов завода (services/gsc_stats).\n\nОтдельно от списка проектов: список открывается сразу, цифры подтягиваются\nследом. Спрашиваем только домены проектов на экране — не все сразу, иначе\nупрёмся в квоты Search Console. Без ключей Google — enabled: false.","operationId":"projects_gsc_24h_api_projects_gsc_24h_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ids","in":"query","required":false,"schema":{"type":"string","description":"id проектов через запятую — те, что на экране","default":"","title":"Ids"},"description":"id проектов через запятую — те, что на экране"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/brands":{"get":{"tags":["projects"],"summary":"List Brands","operationId":"list_brands_api_projects_brands_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response List Brands Api Projects Brands Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/projects/{project_id}/content":{"get":{"tags":["projects"],"summary":"Get Content","description":"Контент конструктора. page=home → project.template (как раньше);\nиначе → project.subpages[page].","operationId":"get_content_api_projects__project_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"string","default":"home","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["projects"],"summary":"Save Content","description":"Сохранить контент. page=home → project.template; иначе → project.subpages[page].","operationId":"save_content_api_projects__project_id__content_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"string","default":"home","title":"Page"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/service-fields":{"get":{"tags":["projects"],"summary":"Get Service Fields","description":"Служебные поля проекта + состояние промпта, который их генерирует.\nhas_prompt=false → кнопка генерации в конструкторе заблокирована с подсказкой.","operationId":"get_service_fields_api_projects__project_id__service_fields_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["projects"],"summary":"Save Service Fields","description":"Ручная правка служебных полей — значения после генерации можно поправить.","operationId":"save_service_fields_api_projects__project_id__service_fields_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/domains/{site_id}/scheme-role":{"put":{"tags":["projects"],"summary":"Set Scheme Role","description":"Роль домена в схеме: fresh (свежерег) | drop (дроп) | пусто.\n\nРоль одна на проект: назначая её домену, снимаем с прежнего — иначе в схему\nподставился бы случайный из двух. Если роль убрали и замены нет, проект\nвозвращается на схему по умолчанию (так описано в ТЗ).","operationId":"set_scheme_role_api_projects__project_id__domains__site_id__scheme_role_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/import-from-url":{"post":{"tags":["projects"],"summary":"Import From Url","description":"Импорт контента по ссылке: парсим сайт, собранный на этом же дизайне, и\nзаполняем блоки всех страниц + меню + лого. Только для блочных дизайнов (4/5).","operationId":"import_from_url_api_projects__project_id__import_from_url_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/responsible-candidates":{"get":{"tags":["projects"],"summary":"Responsible Candidates","description":"Кого можно назначить ответственным: сотрудники команды проекта (для нового\nпроекта — команды из переключателя или своей).","operationId":"responsible_candidates_api_projects_responsible_candidates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}":{"get":{"tags":["projects"],"summary":"Get Project","operationId":"get_project_api_projects__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["projects"],"summary":"Update Project","operationId":"update_project_api_projects__project_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Project","operationId":"delete_project_api_projects__project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/scheme/apply":{"post":{"tags":["projects"],"summary":"Apply Project Scheme","description":"Применить схему проекта заново, ничего в настройках не меняя.\n\nОтдельная ручка, потому что сохранение проекта больше схему не переприменяет:\nформа шлёт все поля разом и автосохраняется, а перезапись canonical/head на\nвсех доменах — действие, которое делают осознанно и по кнопке.\nПоля, отредактированные руками (canonical, html lang), остаются как есть.","operationId":"apply_project_scheme_api_projects__project_id__scheme_apply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/domains":{"get":{"tags":["projects"],"summary":"Project Domains","description":"Домены этого проекта + свободные (без проекта) — для привязки сайтов к проекту.","operationId":"project_domains_api_projects__project_id__domains_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["projects"],"summary":"Set Project Domains","description":"Установить набор привязанных доменов проекта. Привязывает выбранные (только\nсвободные или уже принадлежащие проекту), отвязывает снятые. Чужие не трогает.","operationId":"set_project_domains_api_projects__project_id__domains_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/pages-matrix":{"get":{"tags":["projects"],"summary":"Pages Matrix","description":"Матрица страниц проекта: строки = страницы (по заголовку title), столбцы = сайты,\nна пересечении — URL/идентификатор страницы. Для общего обзора и клонирования.","operationId":"pages_matrix_api_projects__project_id__pages_matrix_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/template-pages/{key}":{"delete":{"tags":["projects"],"summary":"Disable Template Page","description":"Убрать страницу шаблона из проекта (пока домен не привязан).\n\nЗаписи страницы ещё нет — она появится вместе с доменом, поэтому «удаление»\nздесь означает, что проект эту страницу не использует: её не видно в списке,\nне открыть по служебной ссылке и не заведут при привязке домена.","operationId":"disable_template_page_api_projects__project_id__template_pages__key__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["projects"],"summary":"Enable Template Page","description":"Вернуть ранее убранную страницу шаблона в проект.","operationId":"enable_template_page_api_projects__project_id__template_pages__key__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/pages/shared":{"patch":{"tags":["projects"],"summary":"Update Pages Shared","description":"Обновляет ОБЩИЕ поля логической страницы (Название + Контент/тип/статус) сразу\nна всех её доменах строки матрицы. Сайто-зависимые поля (URL/SEO/head) не трогаются.","operationId":"update_pages_shared_api_projects__project_id__pages_shared_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/menu":{"get":{"tags":["projects"],"summary":"Project Menu","operationId":"project_menu_api_projects__project_id__menu_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["projects"],"summary":"Project Menu Create","operationId":"project_menu_create_api_projects__project_id__menu_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/menu/{item_id}":{"patch":{"tags":["projects"],"summary":"Project Menu Update","operationId":"project_menu_update_api_projects__project_id__menu__item_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Project Menu Delete","operationId":"project_menu_delete_api_projects__project_id__menu__item_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/archive":{"post":{"tags":["projects"],"summary":"Archive Project","description":"Архивирование проекта: помечает archived, делает неактивным и ОСВОБОЖДАЕТ\nдомены (отвязывает от проекта). Восстановить/удалить окончательно может админ.","operationId":"archive_project_api_projects__project_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/restore":{"post":{"tags":["projects"],"summary":"Restore Project","description":"Восстановление из архива (только админ). Домены остаются свободными —\nпривяжите заново на странице проекта.","operationId":"restore_project_api_projects__project_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains":{"get":{"tags":["domains"],"summary":"List Domains","operationId":"list_domains_api_domains_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Status"}},{"name":"server_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"pbn_only","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pbn Only"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"","title":"Kind"}},{"name":"alerts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Alerts"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Per Page"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","maxLength":32,"default":"","title":"Sort"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_DomainRowOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["domains"],"summary":"Create Domain","operationId":"create_domain_api_domains_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{site_id}/registrar-ns":{"get":{"tags":["domains"],"summary":"Get Registrar Ns","description":"NS of a bought domain: what we last wrote at the registrar and what Cloudflare expects.","operationId":"get_registrar_ns_api_domains__site_id__registrar_ns_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["domains"],"summary":"Set Registrar Ns","description":"Replace the NS of a bought domain at its registrar, right from the domain list.","operationId":"set_registrar_ns_api_domains__site_id__registrar_ns_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameserversIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{site_id}":{"get":{"tags":["domains"],"summary":"Get Domain","operationId":"get_domain_api_domains__site_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["domains"],"summary":"Update Domain","operationId":"update_domain_api_domains__site_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["domains"],"summary":"Delete Domain","operationId":"delete_domain_api_domains__site_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{site_id}/logs":{"get":{"tags":["domains"],"summary":"Domain Logs","description":"Весь лог домена одной строкой времени: и события самого сайта (заведён,\nизменён, опубликован, CF, NS...), и события его покупки (цена, оплата,\nрегистрация, доводка), если он куплен через завод — две разные ветки\nActivityLog (subject_type Site и DomainPurchase), сведённые по времени.","operationId":"domain_logs_api_domains__site_id__logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityOut"},"title":"Response Domain Logs Api Domains  Site Id  Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/bulk":{"post":{"tags":["domains"],"summary":"Bulk Create Domains","description":"Пачкой завести домены: адрес плюс имя CF-аккаунта из справочника.\n\nСо списком без аккаунтов (assign_cf) каждому домену достаётся свой свободный\nаккаунт. Если свободных меньше, чем доменов, не заводим ничего: половина\nсписка без Cloudflare — это молчаливая работа руками потом.\n\nВсё достаётся команде, которую человек сейчас смотрит: и домены, и поиск\nаккаунта по названию идут по ней, чужие аккаунты не подхватываются.\n\nВ Cloudflare при загрузке не ходим совсем: аккаунт просто привязывается, а\nзона найдётся при первой проверке домена. Иначе заливка сотни доменов\nозначала бы сотню запросов в CF с одного адреса за минуту.","operationId":"bulk_create_domains_api_domains_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainBulkIn"}}},"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":[]}]}},"/api/domains/bulk-delete":{"post":{"tags":["domains"],"summary":"Bulk Delete Domains","description":"Удалить выбранные домены — и отмена только что залитой пачки, и уборка вручную.\n\nДомен, который успели опубликовать или привязать к проекту, не трогаем: он\nуже в работе, и отмена загрузки не должна его снести. Такие возвращаем\nсписком, чтобы было видно, почему удалилось меньше.","operationId":"bulk_delete_domains_api_domains_bulk_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDeleteIn"}}},"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":[]}]}},"/api/domains/{site_id}/copy":{"post":{"tags":["domains"],"summary":"Copy Domain","description":"Глубокое копирование домена со всем контентом.","operationId":"copy_domain_api_domains__site_id__copy_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCopy"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{site_id}/check-cf":{"post":{"tags":["domains"],"summary":"Check Cf","description":"Проверка ключей Cloudflare домена (обновляет индикатор).","operationId":"check_cf_api_domains__site_id__check_cf_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CfStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{site_id}/cf-zone":{"post":{"tags":["domains"],"summary":"Ensure Cf Zone","description":"Завести зону домена в его Cloudflare-аккаунте, если её там ещё нет.\n\nНужно свежекупленным доменам: аккаунт им выдан, а самой зоны в Cloudflare\nнет, и без неё ни публикация, ни проверка работать не могут. Уже заведённую\nзону не трогаем — просто возвращаем её вместе с NS: их всё равно придётся\nпрописать у регистратора, своими силами мы это делаем только для доменов,\nкупленных через завод.","operationId":"ensure_cf_zone_api_domains__site_id__cf_zone_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{site_id}/apply-cf-settings":{"post":{"tags":["domains"],"summary":"Apply Cf Settings","description":"Применяет набор настроек зоны CF (Browser Cache TTL, SSL flexible, Always Use HTTPS,\nCloudflare Fonts, www-редирект) без переустановки DNS. Результат сохраняется у домена.","operationId":"apply_cf_settings_api_domains__site_id__apply_cf_settings_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{site_id}/purge-cache":{"post":{"tags":["domains"],"summary":"Purge Cache","description":"Сброс кэша Cloudflare для домена (Purge Everything).","operationId":"purge_cache_api_domains__site_id__purge_cache_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{site_id}/publish":{"post":{"tags":["domains"],"summary":"Publish Domain","description":"Публикация домена: ставит A-записи (домен + www + поддомены) на сервер рендеринга\nчерез Cloudflare. Действие АДРЕСНОЕ — затрагивает только этот домен, никаких массовых\nопераций. DNS остальных доменов не меняется.","operationId":"publish_domain_api_domains__site_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{site_id}/unpublish":{"post":{"tags":["domains"],"summary":"Unpublish Domain","description":"Снятие домена с публикации: удаляет A-записи (домен + www + поддомены) через\nCloudflare и ставит published=false. Действие АДРЕСНОЕ — затрагивает только этот\nдомен. После этого сайт перестаёт открываться (DNS не указывает на сервер).","operationId":"unpublish_domain_api_domains__site_id__unpublish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{site_id}/pbn-migrate":{"post":{"tags":["domains"],"summary":"Pbn Migrate","description":"«Перенос» PBN-домена в обычный: задаём сервер и Cloudflare и снимаем pbn_only.\nСтрока домена, привязка к проекту и вся история PBN остаются те же — меняется\nтолько статус: теперь домен можно публиковать, и на него идёт логика проекта.","operationId":"pbn_migrate_api_domains__site_id__pbn_migrate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PbnMigrateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/options":{"get":{"tags":["servers"],"summary":"Server Options","description":"Лёгкий список серверов для фильтров/выбора (доступен всем ролям).\ndomains_count — сколько доменов на сервере (помогает распределять нагрузку).\nСкрытые серверы (hidden) исключаются — на них нельзя публиковать домены.","operationId":"server_options_api_servers_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/servers":{"get":{"tags":["servers"],"summary":"List Servers","operationId":"list_servers_api_servers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ServerRowOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["servers"],"summary":"Create Server","operationId":"create_server_api_servers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}":{"patch":{"tags":["servers"],"summary":"Update Server","operationId":"update_server_api_servers__server_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["servers"],"summary":"Delete Server","operationId":"delete_server_api_servers__server_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/check-status":{"post":{"tags":["servers"],"summary":"Check Status","description":"Запуск фоновой проверки CF-статуса по всем доменам сервера.","operationId":"check_status_api_servers__server_id__check_status_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/servers/{server_id}/move-domains":{"post":{"tags":["servers"],"summary":"Move Domains","description":"Перенос всех доменов сервера на другой сервер.\n\nПереназначает server_id и, если update_dns=True, обновляет A-записи доменов в\nCloudflare на IP нового сервера (только для доменов с заданными ключами CF).","operationId":"move_domains_api_servers__server_id__move_domains_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"integer","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveDomainsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/capabilities":{"get":{"tags":["users"],"summary":"List Capabilities","description":"Справочник возможностей для матрицы доступов: плоский список + группировка.\n\nМатрица общая для всех команд, поэтому её ведёт только главный админ: правка\nроли лидером одной команды меняла бы доступы и у всех остальных.","operationId":"list_capabilities_api_users_capabilities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/roles/{role_id}":{"patch":{"tags":["users"],"summary":"Update Role Permissions","description":"Изменение матрицы доступов роли. Тело: {caps: [\"content\",\"seo\",...]}.\n\nТолько главный админ: роли общие на все команды.","operationId":"update_role_permissions_api_users_roles__role_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"integer","title":"Role Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/roles":{"get":{"tags":["users"],"summary":"List Roles","operationId":"list_roles_api_users_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/RoleOut"},"type":"array","title":"Response List Roles Api Users Roles Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users":{"get":{"tags":["users"],"summary":"List Users","operationId":"list_users_api_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Per Page"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","maxLength":32,"default":"","title":"Sort"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_UserRowOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["users"],"summary":"Create User","operationId":"create_user_api_users_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}":{"patch":{"tags":["users"],"summary":"Update User","operationId":"update_user_api_users__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete User","operationId":"delete_user_api_users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/teams":{"get":{"tags":["users"],"summary":"List Teams","description":"Команды для выбора при приглашении, а также для переключателя «Показывать\nданные» у главного админа и SEO с can_switch_team. Остальные видят только\nсвою — выбирать им не из чего, и фронт селект не показывает.","operationId":"list_teams_api_users_teams_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/view-team":{"post":{"tags":["users"],"summary":"Set View Team","description":"Главный админ (и SEO с can_switch_team) смотрит данные глазами команды.\nПусто — снова видит все.","operationId":"set_view_team_api_users_view_team_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/users/me/ui-settings":{"get":{"tags":["users"],"summary":"Get Ui Settings","description":"Личные настройки интерфейса: вид таблиц («table:<раздел>») и состояние меню\n(«menu:groups»). Ключ → его настройки.","operationId":"get_ui_settings_api_users_me_ui_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["users"],"summary":"Save Ui Settings","description":"Сохранить настройки одного раздела: {\"key\": \"...\", \"value\": {...}}.\n\nПишем по ключу, а не целиком: две вкладки с разными таблицами не затирают\nнастройки друг друга. Пустое значение — сброс к виду по умолчанию.","operationId":"save_ui_settings_api_users_me_ui_settings_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/activity":{"get":{"tags":["activity"],"summary":"List Activity","operationId":"list_activity_api_activity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"log_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Name"}},{"name":"subject_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Type"}},{"name":"subject_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subject Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"}},{"name":"events","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"через запятую","title":"Events"},"description":"через запятую"},{"name":"exclude_events","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"через запятую","title":"Exclude Events"},"description":"через запятую"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":30,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ActivityOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompts":{"get":{"tags":["prompts"],"summary":"List Prompts","operationId":"list_prompts_api_prompts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":1,"default":100,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SystemPromptOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["prompts"],"summary":"Create Prompt","operationId":"create_prompt_api_prompts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemPromptCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemPromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompts/{prompt_id}":{"get":{"tags":["prompts"],"summary":"Get Prompt","operationId":"get_prompt_api_prompts__prompt_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","title":"Prompt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemPromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["prompts"],"summary":"Update Prompt","operationId":"update_prompt_api_prompts__prompt_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","title":"Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemPromptUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemPromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["prompts"],"summary":"Delete Prompt","operationId":"delete_prompt_api_prompts__prompt_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","title":"Prompt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompts/{prompt_id}/usage":{"get":{"tags":["prompts"],"summary":"Prompt Usage","description":"Где используется промпт — список блоков шаблонов (раздел 1.1).","operationId":"prompt_usage_api_prompts__prompt_id__usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","title":"Prompt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PromptUsageOut"},"title":"Response Prompt Usage Api Prompts  Prompt Id  Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/global-prompts":{"get":{"tags":["global-prompts"],"summary":"List Global Prompts","operationId":"list_global_prompts_api_global_prompts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"assignable","in":"query","required":false,"schema":{"type":"boolean","description":"Только промпты, которые можно назначить проекту","default":false,"title":"Assignable"},"description":"Только промпты, которые можно назначить проекту"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GlobalPromptOut"},"title":"Response List Global Prompts Api Global Prompts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["global-prompts"],"summary":"Create Global Prompt","operationId":"create_global_prompt_api_global_prompts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalPromptIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalPromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/global-prompts/{gp_id}":{"patch":{"tags":["global-prompts"],"summary":"Update Global Prompt","operationId":"update_global_prompt_api_global_prompts__gp_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gp_id","in":"path","required":true,"schema":{"type":"integer","title":"Gp Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalPromptIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalPromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["global-prompts"],"summary":"Delete Global Prompt","operationId":"delete_global_prompt_api_global_prompts__gp_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gp_id","in":"path","required":true,"schema":{"type":"integer","title":"Gp Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/global-prompts/{gp_id}/default":{"post":{"tags":["global-prompts"],"summary":"Set Default Global Prompt","description":"Сделать промпт значением по умолчанию для новых проектов (он один такой).","operationId":"set_default_global_prompt_api_global_prompts__gp_id__default_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gp_id","in":"path","required":true,"schema":{"type":"integer","title":"Gp Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalPromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/global-prompts/{gp_id}/default-for-template/{template_id}":{"post":{"tags":["global-prompts"],"summary":"Set Template Default Global Prompt","description":"Сделать промпт дефолтным для конкретного шаблона (напр. Дженерик=3). Снимает\nэту пометку с других промптов того же шаблона. template_id=0 — снять пометку.","operationId":"set_template_default_global_prompt_api_global_prompts__gp_id__default_for_template__template_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"gp_id","in":"path","required":true,"schema":{"type":"integer","title":"Gp Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalPromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/reseed":{"post":{"tags":["templates"],"summary":"Reseed Blocks","description":"Пересобрать дерево блоков/подблоков всех шаблонов из канонической схемы.\n\nИдемпотентно: канонические блоки создаются/обновляются, назначенные промпты\nсохраняются, посторонние блоки без промпта удаляются.","operationId":"reseed_blocks_api_templates_reseed_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/templates/export":{"get":{"tags":["templates"],"summary":"Export Templates","description":"Полный дамп шаблонов: промпты, подстраницы, блоки. Связи — по именам/ключам\n(prompt_name, page_key), чтобы переносить между инстансами без совпадения id.","operationId":"export_templates_api_templates_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/templates/import":{"post":{"tags":["templates"],"summary":"Import Templates","description":"Импорт дампа из export: апсертит промпты по имени, пересобирает подстраницы и\nблоки каждого шаблона (id шаблонов сохраняются — матчинг по имени). Пишет только\nв текущий инстанс.","operationId":"import_templates_api_templates_import_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"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":[]}]}},"/api/templates":{"get":{"tags":["templates"],"summary":"List Templates","operationId":"list_templates_api_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TemplateRowOut"},"type":"array","title":"Response List Templates Api Templates Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["templates"],"summary":"Create Template","operationId":"create_template_api_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/templates/{template_id}":{"get":{"tags":["templates"],"summary":"Get Template","operationId":"get_template_api_templates__template_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["templates"],"summary":"Update Template","operationId":"update_template_api_templates__template_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["templates"],"summary":"Delete Template","operationId":"delete_template_api_templates__template_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/{template_id}/duplicate":{"post":{"tags":["templates"],"summary":"Duplicate Template","description":"Копия шаблона: те же страницы, блоки и палитра, своё имя.\n\nВёрстка и набор блоков выбираются по id шаблона, а у копии он новый — поэтому\nкопия помнит исходный в base_id и рендерится его вёрсткой. Дальше её можно\nправить через интерфейс, не трогая оригинал.","operationId":"duplicate_template_api_templates__template_id__duplicate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"default":{},"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/{template_id}/pages":{"get":{"tags":["templates"],"summary":"List Template Pages","operationId":"list_template_pages_api_templates__template_id__pages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TemplatePageOut"},"title":"Response List Template Pages Api Templates  Template Id  Pages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["templates"],"summary":"Create Template Page","operationId":"create_template_page_api_templates__template_id__pages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/pages/{page_id}":{"get":{"tags":["templates"],"summary":"Get Template Page","operationId":"get_template_page_api_templates_pages__page_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePageDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["templates"],"summary":"Update Template Page","operationId":"update_template_page_api_templates_pages__page_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["templates"],"summary":"Delete Template Page","operationId":"delete_template_page_api_templates_pages__page_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/pages/{page_id}/usage":{"get":{"tags":["templates"],"summary":"Template Page Usage","description":"Сколько проектов и страниц на сайтах уже используют страницу шаблона (можно ли менять ключ).","operationId":"template_page_usage_api_templates_pages__page_id__usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/pages/{page_id}/blocks":{"post":{"tags":["templates"],"summary":"Add Page Block","operationId":"add_page_block_api_templates_pages__page_id__blocks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBlockCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBlockOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/{template_id}/blocks":{"post":{"tags":["templates"],"summary":"Add Block","operationId":"add_block_api_templates__template_id__blocks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBlockCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBlockOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/blocks/{block_id}":{"patch":{"tags":["templates"],"summary":"Update Block","operationId":"update_block_api_templates_blocks__block_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"block_id","in":"path","required":true,"schema":{"type":"integer","title":"Block Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBlockUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBlockOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["templates"],"summary":"Delete Block","operationId":"delete_block_api_templates_blocks__block_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"block_id","in":"path","required":true,"schema":{"type":"integer","title":"Block Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/generate/variables":{"get":{"tags":["generate"],"summary":"List Variables","description":"Переменные для UI (раздел 1.2). При project_id подставляется значение BRAND.","operationId":"list_variables_api_generate_variables_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/generate/stream":{"post":{"tags":["generate"],"summary":"Generate","operationId":"generate_api_generate_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"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":[]}]}},"/api/generate/text":{"post":{"tags":["generate"],"summary":"Generate Text","description":"Не-потоковая генерация — возвращает готовый текст одним ответом.\nИспользуется кнопкой «Сгенерировать контент» (пакетно по всем полям с промптами).","operationId":"generate_text_api_generate_text_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"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":[]}]}},"/api/generate/service-fields":{"post":{"tags":["generate"],"summary":"Generate Service Fields","description":"Одной генерацией собрать 4 служебных поля бренда и сохранить их в проекте.\n\nОтдельно от остальных генераций: здесь модель ходит по сайтам (серверный\nвеб-поиск) и отвечает JSON-ом, а не текстом поля. Общая инструкция проекта\nсюда не подмешивается — это факты о бренде, а не контент в его тоне.","operationId":"generate_service_fields_api_generate_service_fields_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/generate/logo-favicon":{"post":{"tags":["generate"],"summary":"Generate Logo Favicon","description":"Логотип и фавикон Дженерика: только две картинки, без палитры и бренда.\n\nУ обзорных проектов бренда нет, поэтому общая сборка оформления (поиск сайта\nбренда) им не подходит. Здесь рисуем от цвета шапки проекта: первая строка\nпромпта — задание на логотип, остальные — на фавикон, и фавикон делается уже\nИЗ полученного логотипа, чтобы совпал по форме и цвету. Монобренды ходят\nпрежним путём через /identity.","operationId":"generate_logo_favicon_api_generate_logo_favicon_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/generate/identity":{"post":{"tags":["generate"],"summary":"Generate Identity","description":"Одной генерацией собрать оформление проекта: палитру, логотип и фавикон.\n\nМодель ходит по сайту бренда (веб-поиск) и возвращает JSON: цвета + описания\nкартинок. Цвета сразу кладутся в палитру проекта, описания уходят в генератор\nизображений. Картинки не обязательны: если ключа OpenAI нет или генерация\nупала, палитру всё равно сохраняем и честно говорим, чего не хватило.","operationId":"generate_identity_api_generate_identity_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/generate/image":{"post":{"tags":["generate"],"summary":"Generate Image Endpoint","description":"Генерация картинки по промпту (OpenAI gpt-image-1). Сохраняет в /storage, возвращает url.","operationId":"generate_image_endpoint_api_generate_image_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"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":[]}]}},"/api/variables":{"get":{"tags":["variables"],"summary":"List Variables","operationId":"list_variables_api_variables_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/VariableOut"},"type":"array","title":"Response List Variables Api Variables Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["variables"],"summary":"Create Variable","operationId":"create_variable_api_variables_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariableCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariableOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/variables/{var_id}":{"patch":{"tags":["variables"],"summary":"Update Variable","operationId":"update_variable_api_variables__var_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"var_id","in":"path","required":true,"schema":{"type":"integer","title":"Var Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariableUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariableOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["variables"],"summary":"Delete Variable","operationId":"delete_variable_api_variables__var_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"var_id","in":"path","required":true,"schema":{"type":"integer","title":"Var Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/content-types":{"get":{"tags":["site-content"],"summary":"List Content Types","description":"Подстраницы (контент-типы) шаблона проекта этого сайта — для дропдауна в модалке страницы.","operationId":"list_content_types_api_sites__site_id__content_types_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/meta":{"get":{"tags":["site-content"],"summary":"Site Meta","description":"Мета сайта для модалки страницы: язык по умолчанию (html lang) проекта.","operationId":"site_meta_api_sites__site_id__meta_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/pages":{"get":{"tags":["site-content"],"summary":"List Pages","operationId":"list_pages_api_sites__site_id__pages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SitePageOut"},"title":"Response List Pages Api Sites  Site Id  Pages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["site-content"],"summary":"Create Page","operationId":"create_page_api_sites__site_id__pages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitePageCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitePageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/pages/{page_id}":{"patch":{"tags":["site-content"],"summary":"Update Page","operationId":"update_page_api_sites__site_id__pages__page_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitePageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitePageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["site-content"],"summary":"Delete Page","operationId":"delete_page_api_sites__site_id__pages__page_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/pages/{page_id}/clone":{"post":{"tags":["site-content"],"summary":"Clone Page","description":"Клонировать страницу на другой домен. Копируются сайто-НЕзависимые поля\n(title, subtitle, meta title/description/keywords/robots, content). Сайто-зависимые\n(url, meta_canonical, html lang, x-default) НЕ копируются — задаются для целевого сайта.","operationId":"clone_page_api_sites__site_id__pages__page_id__clone_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/redirects":{"get":{"tags":["site-content"],"summary":"List Redirects","operationId":"list_redirects_api_sites__site_id__redirects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RedirectOut"},"title":"Response List Redirects Api Sites  Site Id  Redirects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["site-content"],"summary":"Create Redirect","operationId":"create_redirect_api_sites__site_id__redirects_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectIn"}}}},"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"}}}}}}},"/api/sites/{site_id}/redirects/{redirect_id}":{"patch":{"tags":["site-content"],"summary":"Update Redirect","operationId":"update_redirect_api_sites__site_id__redirects__redirect_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"redirect_id","in":"path","required":true,"schema":{"type":"integer","title":"Redirect Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectUpdate"}}}},"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"}}}}}},"delete":{"tags":["site-content"],"summary":"Delete Redirect","operationId":"delete_redirect_api_sites__site_id__redirects__redirect_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"redirect_id","in":"path","required":true,"schema":{"type":"integer","title":"Redirect Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/redirects/export":{"get":{"tags":["site-content"],"summary":"Export Redirects","operationId":"export_redirects_api_sites__site_id__redirects_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/redirects/import":{"post":{"tags":["site-content"],"summary":"Import Redirects","operationId":"import_redirects_api_sites__site_id__redirects_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_redirects_api_sites__site_id__redirects_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/settings":{"get":{"tags":["site-content"],"summary":"Get Settings","operationId":"get_settings_api_sites__site_id__settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSettingOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["site-content"],"summary":"Update Settings","operationId":"update_settings_api_sites__site_id__settings_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSettingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSettingOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/menu":{"get":{"tags":["site-content"],"summary":"List Menu","operationId":"list_menu_api_sites__site_id__menu_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MenuItemOut"},"title":"Response List Menu Api Sites  Site Id  Menu Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["site-content"],"summary":"Create Menu","operationId":"create_menu_api_sites__site_id__menu_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MenuItemIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MenuItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/menu/{item_id}":{"patch":{"tags":["site-content"],"summary":"Update Menu","operationId":"update_menu_api_sites__site_id__menu__item_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MenuItemUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MenuItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["site-content"],"summary":"Delete Menu","operationId":"delete_menu_api_sites__site_id__menu__item_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/bot-logs":{"get":{"tags":["site-content"],"summary":"List Bot Logs","description":"Лог обращений не-ботов при включённой клоаке (домен сайта).","operationId":"list_bot_logs_api_sites__site_id__bot_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"integer","title":"Site Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/referral-links":{"get":{"tags":["referral-links"],"summary":"List Links","operationId":"list_links_api_referral_links_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":1,"default":100,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ReferralLinkOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["referral-links"],"summary":"Create Link","operationId":"create_link_api_referral_links_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralLinkIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralLinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/referral-links/{link_id}":{"patch":{"tags":["referral-links"],"summary":"Update Link","operationId":"update_link_api_referral_links__link_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralLinkUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralLinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["referral-links"],"summary":"Delete Link","operationId":"delete_link_api_referral_links__link_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cloudflare-tokens":{"get":{"tags":["cloudflare-tokens"],"summary":"List Tokens","operationId":"list_tokens_api_cloudflare_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CFTokenOut"},"type":"array","title":"Response List Tokens Api Cloudflare Tokens Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["cloudflare-tokens"],"summary":"Create Token","operationId":"create_token_api_cloudflare_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CFTokenIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CFTokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/cloudflare-tokens/bulk":{"post":{"tags":["cloudflare-tokens"],"summary":"Bulk Create Tokens","description":"Bulk add of CF tokens (from a CSV). Runs alongside the single-add flow — never\nreplaces it. Existing rows are untouched; duplicates (same token within the team,\nor repeated in the batch) and empty rows are skipped.","operationId":"bulk_create_tokens_api_cloudflare_tokens_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CFBulkIn"}}},"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":[]}]}},"/api/cloudflare-tokens/bulk-delete":{"post":{"tags":["cloudflare-tokens"],"summary":"Bulk Delete Tokens","description":"Удалить выбранные аккаунты — и отмена только что залитой пачки, и уборка вручную.\n\nАккаунт, которым уже пользуется домен, не трогаем: удалив его, мы оставили бы\nдомен без ключей к своей зоне. Такие возвращаем списком, чтобы было видно,\nпочему их осталось меньше.","operationId":"bulk_delete_tokens_api_cloudflare_tokens_bulk_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CFDeleteIn"}}},"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":[]}]}},"/api/cloudflare-tokens/{token_id}":{"patch":{"tags":["cloudflare-tokens"],"summary":"Update Token","operationId":"update_token_api_cloudflare_tokens__token_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CFTokenUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CFTokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cloudflare-tokens"],"summary":"Delete Token","operationId":"delete_token_api_cloudflare_tokens__token_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/casinos":{"get":{"tags":["casinos"],"summary":"List Casinos","operationId":"list_casinos_api_casinos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CasinoOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["casinos"],"summary":"Create Casino","operationId":"create_casino_api_casinos_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CasinoIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CasinoOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/casinos/{casino_id}":{"patch":{"tags":["casinos"],"summary":"Update Casino","operationId":"update_casino_api_casinos__casino_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"casino_id","in":"path","required":true,"schema":{"type":"integer","title":"Casino Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CasinoIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CasinoOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["casinos"],"summary":"Delete Casino","operationId":"delete_casino_api_casinos__casino_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"casino_id","in":"path","required":true,"schema":{"type":"integer","title":"Casino Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/casinos/tables/all":{"get":{"tags":["casinos"],"summary":"List Tables","operationId":"list_tables_api_casinos_tables_all_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TableOut"},"type":"array","title":"Response List Tables Api Casinos Tables All Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/casinos/tables/{table_id}":{"get":{"tags":["casinos"],"summary":"Get Table","description":"Одна таблица по id — без фильтра по команде из переключателя «Показывать\nданные»: проект чужой команды (главный админ смотрит «глазами» другой) должен\nвидеть СВОЮ таблицу. Иначе конструктор получал пустой список казино и\nгенерировал карточки-обзоры с пустым {{casino_name}}.","operationId":"get_table_api_casinos_tables__table_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"table_id","in":"path","required":true,"schema":{"type":"integer","title":"Table Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["casinos"],"summary":"Update Table","operationId":"update_table_api_casinos_tables__table_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"table_id","in":"path","required":true,"schema":{"type":"integer","title":"Table Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["casinos"],"summary":"Delete Table","operationId":"delete_table_api_casinos_tables__table_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"table_id","in":"path","required":true,"schema":{"type":"integer","title":"Table Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/casinos/tables":{"post":{"tags":["casinos"],"summary":"Create Table","operationId":"create_table_api_casinos_tables_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/system-settings":{"get":{"tags":["system-settings"],"summary":"Read Settings","operationId":"read_settings_api_system_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["system-settings"],"summary":"Update Settings","operationId":"update_settings_api_system_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemSettingsBody"}}},"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":[]}]}},"/api/brands":{"get":{"tags":["brands"],"summary":"List Brands","operationId":"list_brands_api_brands_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BrandOut"},"title":"Response List Brands Api Brands Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["brands"],"summary":"Create Brand","operationId":"create_brand_api_brands_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brands/{brand_id}":{"patch":{"tags":["brands"],"summary":"Update Brand","operationId":"update_brand_api_brands__brand_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"integer","title":"Brand Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["brands"],"summary":"Delete Brand","operationId":"delete_brand_api_brands__brand_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"integer","title":"Brand Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/slot-items":{"get":{"tags":["slot_items"],"summary":"List Slot Items","operationId":"list_slot_items_api_slot_items_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SlotItemOut"},"title":"Response List Slot Items Api Slot Items Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["slot_items"],"summary":"Create Slot Item","operationId":"create_slot_item_api_slot_items_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotItemIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/slot-items/{item_id}":{"patch":{"tags":["slot_items"],"summary":"Update Slot Item","operationId":"update_slot_item_api_slot_items__item_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotItemIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["slot_items"],"summary":"Delete Slot Item","operationId":"delete_slot_item_api_slot_items__item_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zabbix/settings":{"get":{"tags":["zabbix"],"summary":"Read Settings","operationId":"read_settings_api_zabbix_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["zabbix"],"summary":"Save Settings","operationId":"save_settings_api_zabbix_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZabbixSettingsBody"}}},"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":[]}]}},"/api/zabbix/templates":{"get":{"tags":["zabbix"],"summary":"List Templates","description":"Шаблоны Zabbix — чтобы выбрать нужные из списка, а не вбивать id руками.","operationId":"list_templates_api_zabbix_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/zabbix/check":{"get":{"tags":["zabbix"],"summary":"Check Connection","operationId":"check_connection_api_zabbix_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/zabbix/sync":{"post":{"tags":["zabbix"],"summary":"Sync","description":"Полная сверка: завести недостающие проверки, поправить изменившиеся,\nубрать те, что остались от снятых с публикации доменов.","operationId":"sync_api_zabbix_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/zabbix/alerts":{"get":{"tags":["zabbix"],"summary":"Alerts","description":"Домены с алертами — для плашки вверху и быстрого фильтра в списке доменов.","operationId":"alerts_api_zabbix_alerts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/zabbix/status":{"get":{"tags":["zabbix"],"summary":"Status","description":"Состояние мониторинга по каждому домену.\n\nСчитаем здесь, а не в интерфейсе: правила отбора живут на сервере, и список\nдоменов не должен показывать «в норме» там, где за доменом вообще никто не\nследит — это хуже отсутствия статуса, потому что выглядит как проверенное.","operationId":"status_api_zabbix_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/registrars/teams":{"get":{"tags":["registrars"],"summary":"List Teams","description":"Команды — столбцы на странице зон и выбор в карточке аккаунта.","operationId":"list_teams_api_registrars_teams_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/registrars/registrars":{"get":{"tags":["registrars"],"summary":"List Registrars","operationId":"list_registrars_api_registrars_registrars_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/RegistrarOut"},"type":"array","title":"Response List Registrars Api Registrars Registrars Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["registrars"],"summary":"Create Registrar","description":"Завести регистратора в справочнике — раньше это делали вручную в БД.\n\ncode должен совпадать с ключом в registrar_api.CLIENTS, иначе покупка\nчерез него откажет «интеграция ещё не подключена» — это не проверяем\nздесь (клиент может появиться в коде позже отдельным деплоем), а просто\nпредупреждаем в ответе.","operationId":"create_registrar_api_registrars_registrars_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrarIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrarOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/registrars/accounts":{"get":{"tags":["registrars"],"summary":"List Accounts","description":"Аккаунты всех команд — выбранная в переключателе команда здесь не влияет.","operationId":"list_accounts_api_registrars_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AccountOut"},"type":"array","title":"Response List Accounts Api Registrars Accounts Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["registrars"],"summary":"Create Account","operationId":"create_account_api_registrars_accounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/registrars/accounts/{account_id}":{"patch":{"tags":["registrars"],"summary":"Update Account","operationId":"update_account_api_registrars_accounts__account_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["registrars"],"summary":"Delete Account","operationId":"delete_account_api_registrars_accounts__account_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/persons":{"post":{"tags":["registrars"],"summary":"Fetch Persons","description":"Список персон из API регистратора — чтобы не вписывать их руками.\n\nДоступы берём из формы, а недостающие добираем у сохранённого аккаунта: при\nправке форма не показывает секреты, и требовать ввести их заново ради одной\nкнопки было бы издевательством.","operationId":"fetch_persons_api_registrars_persons_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonsIn"}}},"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":[]}]}},"/api/registrars/persons/create":{"post":{"tags":["registrars"],"summary":"Create Person","description":"Завести нового контакта прямо у регистратора — там, где список готовых\nперсон получить нельзя (см. SpaceshipClient.persons).","operationId":"create_person_api_registrars_persons_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePersonIn"}}},"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":[]}]}},"/api/registrars/accounts/{account_id}/balance":{"post":{"tags":["registrars"],"summary":"Refresh Balance","description":"Спросить у регистратора, сколько денег на аккаунте, и запомнить ответ.\n\nПокупка списывает настоящие деньги, а узнать остаток из панели было негде:\nдогадывались по отказу регистратора уже во время покупки.","operationId":"refresh_balance_api_registrars_accounts__account_id__balance_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/accounts/{account_id}/tld-prices":{"get":{"tags":["registrars"],"summary":"Account Tld Prices","description":"Прайс регистратора по зонам, от дешёвых к дорогим. Денег не тратит.\n\nКлючи регистраторов обычно ограничены IP сервера, поэтому прайс можно\nспросить только отсюда — из кабинета он не всегда виден целиком.","operationId":"account_tld_prices_api_registrars_accounts__account_id__tld_prices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/accounts/{account_id}/persons/{person_id}":{"get":{"tags":["registrars"],"summary":"Account Person Info","description":"Карточка персоны у регистратора: какие поля заполнены. Денег не тратит.","operationId":"account_person_info_api_registrars_accounts__account_id__persons__person_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/zones":{"get":{"tags":["registrars"],"summary":"List Zones","description":"Справочник зон и привязки всех команд — каждая в своём столбце.","operationId":"list_zones_api_registrars_zones_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ZoneOut"},"type":"array","title":"Response List Zones Api Registrars Zones Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["registrars"],"summary":"Create Zone","operationId":"create_zone_api_registrars_zones_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/registrars/zones/{zone_id}":{"put":{"tags":["registrars"],"summary":"Update Zone","description":"Правка зоны целиком: комментарий и привязки всех команд.\n\nКоманда, которой нет в списке, из зоны снимается — форма всегда присылает\nполный набор, так что пропуск означает «не выкупается».","operationId":"update_zone_api_registrars_zones__zone_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zone_id","in":"path","required":true,"schema":{"type":"integer","title":"Zone Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["registrars"],"summary":"Delete Zone","operationId":"delete_zone_api_registrars_zones__zone_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zone_id","in":"path","required":true,"schema":{"type":"integer","title":"Zone Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/zones/{zone_id}/teams/{team_id}":{"put":{"tags":["registrars"],"summary":"Set Zone Team","description":"Одна ячейка таблицы: через какой аккаунт команда выкупает эту зону.\n\nПотолок цены тут не задаётся — он общий для зоны и правится в карточке зоны.","operationId":"set_zone_team_api_registrars_zones__zone_id__teams__team_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zone_id","in":"path","required":true,"schema":{"type":"integer","title":"Zone Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRouteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["registrars"],"summary":"Unset Zone Team","description":"Снять зону у команды: зона остаётся в справочнике (вместе с потолком цены),\nпросто команда её больше не выкупает.","operationId":"unset_zone_team_api_registrars_zones__zone_id__teams__team_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zone_id","in":"path","required":true,"schema":{"type":"integer","title":"Zone Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/defaults":{"get":{"tags":["registrars"],"summary":"List Defaults","description":"Регистратор по умолчанию каждой команды и общий потолок для таких покупок.","operationId":"list_defaults_api_registrars_defaults_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/registrars/defaults/cap":{"put":{"tags":["registrars"],"summary":"Set Default Cap","operationId":"set_default_cap_api_registrars_defaults_cap_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultCapIn"}}},"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":[]}]}},"/api/registrars/defaults/teams/{team_id}":{"put":{"tags":["registrars"],"summary":"Set Default Team","description":"Команда покупает ненастроенные зоны через этот аккаунт (он должен быть её).","operationId":"set_default_team_api_registrars_defaults_teams__team_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRouteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["registrars"],"summary":"Unset Default Team","operationId":"unset_default_team_api_registrars_defaults_teams__team_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/available-zones":{"get":{"tags":["registrars"],"summary":"Available Zones","description":"Подсказка сеошнику: какие зоны его команда покупает автоматически.","operationId":"available_zones_api_registrars_available_zones_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/registrars/check":{"get":{"tags":["registrars"],"summary":"Check Domain","description":"Можно ли выкупить этот домен автоматически и через кого.\n\nЦену здесь пока не запрашиваем: она приходит от API регистратора, который\nподключается следующим шагом. Ответ уже сейчас говорит сеошнику, доступна\nавтопокупка или нужно идти к админу.","operationId":"check_domain_api_registrars_check_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","maxLength":255,"title":"Domain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/quote":{"post":{"tags":["registrars"],"summary":"Quote Domain","description":"Сколько будет стоить и через кого. Денег не тратит, заводит заявку.","operationId":"quote_domain_api_registrars_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteIn"}}},"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":[]}]}},"/api/registrars/purchase/{purchase_id}":{"post":{"tags":["registrars"],"summary":"Confirm Purchase","description":"Подтверждение цены и покупка. Отсюда начинаются траты.","operationId":"confirm_purchase_api_registrars_purchase__purchase_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConfirmIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/purchases/{purchase_id}/finish":{"post":{"tags":["registrars"],"summary":"Finish Purchase","description":"Довести оборванную покупку: домен, зона, NS. Денег не тратит.","operationId":"finish_purchase_api_registrars_purchases__purchase_id__finish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/purchases/{purchase_id}/retry-action":{"post":{"tags":["registrars"],"summary":"Retry Purchase Route","description":"Кнопка «Сделано»: попробовать упавшую заявку снова.","operationId":"retry_purchase_route_api_registrars_purchases__purchase_id__retry_action_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/purchases/{purchase_id}/cancel-action":{"post":{"tags":["registrars"],"summary":"Cancel Purchase Route","description":"Кнопка «Отменить»: заявка закрывается без дальнейших попыток, домен не занят.","operationId":"cancel_purchase_route_api_registrars_purchases__purchase_id__cancel_action_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/purchases/needs-action-count":{"get":{"tags":["registrars"],"summary":"Purchases Needs Action Count","description":"Для бейджа в меню: сколько упавших заявок ждут решения человека — «Сделано» или «Отменить».","operationId":"purchases_needs_action_count_api_registrars_purchases_needs_action_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/registrars/purchases":{"get":{"tags":["registrars"],"summary":"List Purchases","description":"История выкупов всех команд — видно, чья заявка, кто что купил и на чём споткнулось.","operationId":"list_purchases_api_registrars_purchases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/registrars/purchases/{purchase_id}":{"get":{"tags":["registrars"],"summary":"Purchase Chain","description":"Вся цепочка выкупа по шагам: цена, оплата, домен, Cloudflare, NS.\n\nПокупка идёт пятью шагами, и упасть может любой. Раньше в списке была одна\nстрока ошибки, а остальное приходилось искать в базе руками — здесь каждый\nшаг с тем, что от него осталось: номер заказа, id зоны, выданные NS.\nСостояние заказа спрашиваем у регистратора вживую: у него оно и есть.","operationId":"purchase_chain_api_registrars_purchases__purchase_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"integer","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/cf-load":{"get":{"tags":["registrars"],"summary":"Cf Load","description":"Сколько CF-аккаунтов у команды и как они загружены.\n\nГлавный админ может спросить про любую команду — в общем списке выкупов;\nостальным отвечаем про свою, что бы ни прислали.","operationId":"cf_load_api_registrars_cf_load_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/cf-pick-log":{"get":{"tags":["registrars"],"summary":"Cf Pick Log","description":"Диагностика гонки при выборе чистого CF-токена (см. purchase.py CF_PICK_LOG) —\nпоследние N строк файла-лога, чтобы разобраться в задним числом, без Runtime Logs.","operationId":"cf_pick_log_api_registrars_cf_pick_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lines","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"default":200,"title":"Lines"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/api-log":{"get":{"tags":["registrars"],"summary":"Registrar Api Log","description":"Журнал запросов к API регистратора (services/registrar_api.py _api_log), новые сверху.","operationId":"registrar_api_log_api_registrars_api_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"registrar","in":"query","required":false,"schema":{"type":"string","default":"regery","title":"Registrar"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/registrars/bulk/check":{"post":{"tags":["registrars"],"summary":"Bulk Check","description":"One line of the bulk list: can it be bought, for how much and from which\naccount. Creates no request and spends no money; the window calls it line by\nline to show progress.","operationId":"bulk_check_api_registrars_bulk_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCheckIn"}}},"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":[]}]}},"/api/registrars/bulk/start":{"post":{"tags":["registrars"],"summary":"Bulk Start","description":"Queue the checked list for purchase. From here the server buys on its own.","operationId":"bulk_start_api_registrars_bulk_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkStartIn"}}},"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":[]}]}},"/api/registrars/bulk/batches":{"get":{"tags":["registrars"],"summary":"Bulk Batches","description":"Recent bulk purchases of the team — to reopen the window and see the progress.","operationId":"bulk_batches_api_registrars_bulk_batches_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/registrars/bulk/batches/{batch_id}":{"get":{"tags":["registrars"],"summary":"Bulk Batch","operationId":"bulk_batch_api_registrars_bulk_batches__batch_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"integer","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/catches/precheck":{"post":{"tags":["catches"],"summary":"Precheck","description":"Предпросмотр по списку доменов: даты, аккаунты, что отсеяно и сколько выйдет.","operationId":"precheck_api_catches_precheck_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/catches/precheck-file":{"post":{"tags":["catches"],"summary":"Precheck File","description":"То же, но из выгрузки аукциона: даты берём из файла.","operationId":"precheck_file_api_catches_precheck_file_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_precheck_file_api_catches_precheck_file_post"}}},"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":[]}]}},"/api/catches":{"post":{"tags":["catches"],"summary":"Create Catch","description":"Поставить задачи на перехват. Деньги тратятся только в боевом режиме.","operationId":"create_catch_api_catches_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["catches"],"summary":"List Catches","description":"Бэклог: все задачи перехвата. Своей команды, а главному админу — любой.","operationId":"list_catches_api_catches_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","description":"waiting|watching|caught|seen_free|missed|failed|cancelled","default":"","title":"Status"},"description":"waiting|watching|caught|seen_free|missed|failed|cancelled"},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/catches/batches":{"get":{"tags":["catches"],"summary":"List Batches","description":"Запуски перехвата со сводкой по статусам — для вкладки админа.","operationId":"list_batches_api_catches_batches_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team 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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/catches/{request_id}/cancel":{"post":{"tags":["catches"],"summary":"Cancel Catch","operationId":"cancel_catch_api_catches__request_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/catches/{request_id}/check":{"post":{"tags":["catches"],"summary":"Check Now","description":"Проверить домен прямо сейчас — не дожидаясь очередного прохода воркера.","operationId":"check_now_api_catches__request_id__check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/translations":{"get":{"tags":["translations"],"summary":"List Lines","operationId":"list_lines_api_translations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LangLineOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["translations"],"summary":"Create Line","operationId":"create_line_api_translations_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LangLineIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LangLineOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/translations/{line_id}":{"patch":{"tags":["translations"],"summary":"Update Line","operationId":"update_line_api_translations__line_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"line_id","in":"path","required":true,"schema":{"type":"integer","title":"Line Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LangLineUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LangLineOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["translations"],"summary":"Delete Line","operationId":"delete_line_api_translations__line_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"line_id","in":"path","required":true,"schema":{"type":"integer","title":"Line Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/upload":{"post":{"tags":["files"],"summary":"Upload","description":"Загрузка файла. Изображения автоматически конвертируются в WebP.","operationId":"upload_api_files_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_api_files_upload_post"}}},"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":[]}]}},"/api/pbn/projects":{"get":{"tags":["pbn"],"summary":"Wizard Projects","description":"Наши проекты с их доменами — первый шаг визарда (проект → домен).\n\nТолько своей команды: раньше в списке были все проекты подряд, и человек мог\nпоставить ссылки на чужой сайт, просто выбрав его в выпадашке.","operationId":"wizard_projects_api_pbn_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProjectRefOut"},"type":"array","title":"Response Wizard Projects Api Pbn Projects Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/pbn/suggest-vars":{"get":{"tags":["pbn"],"summary":"Suggest Vars","description":"Чем заполнить переменные пресета для этого проекта/домена.\n\nТема — бренд проекта, страна и язык — из локали проекта, а если она не задана,\nпо доменной зоне выбранного домена.","operationId":"suggest_vars_api_pbn_suggest_vars_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"site_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/status":{"get":{"tags":["pbn"],"summary":"Integration Status","description":"Видит ли бэкенд настройки интеграции и отвечает ли pbn-maker.\n\nНужна, чтобы отличать «переменные не долетели в контейнер» от «pbn недоступен».\nСам токен наружу не отдаём — только факт, что он задан.","operationId":"integration_status_api_pbn_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/pbn/presets":{"get":{"tags":["pbn"],"summary":"Presets","description":"Типы задач (пресеты pbn-maker). Без анкор-переменных пресет визарду не годится:\nему некуда подставить ссылку.","operationId":"presets_api_pbn_presets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/pbn/donor-refs":{"get":{"tags":["pbn"],"summary":"Donor Refs","operationId":"donor_refs_api_pbn_donor_refs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/pbn/donors":{"get":{"tags":["pbn"],"summary":"Donors","description":"База доноров из pbn-maker.\n\n`hide_used` (по умолчанию включён) убирает доноров, которые уже использовались на\nэтом проекте: и по нашим размещениям, и по реальным ссылкам, собранным акцепторам.","operationId":"donors_api_pbn_donors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"hide_used","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Hide Used"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"vps_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vps Id"}},{"name":"type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Id"}},{"name":"locale_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Locale Id"}},{"name":"theme_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Theme Id"}},{"name":"only_up","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Only Up"}},{"name":"dr_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dr Min"}},{"name":"dr_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dr Max"}},{"name":"rd_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rd Min"}},{"name":"rd_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rd Max"}},{"name":"traffic_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Traffic Min"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"id","title":"Sort"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/donors/ids":{"get":{"tags":["pbn"],"summary":"Donor Ids","description":"Доноры, подходящие под фильтр, — все страницы сразу (для «отметить всё»).\n\nВозвращаем не только id: на шаге 2 выбранные показываются списком с именами,\nа подгружать их отдельно по одному было бы лишним кругом запросов.","operationId":"donor_ids_api_pbn_donors_ids_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"hide_used","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Hide Used"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"vps_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vps Id"}},{"name":"type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Id"}},{"name":"locale_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Locale Id"}},{"name":"theme_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Theme Id"}},{"name":"only_up","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Only Up"}},{"name":"dr_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dr Min"}},{"name":"dr_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dr Max"}},{"name":"rd_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rd Min"}},{"name":"rd_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rd Max"}},{"name":"traffic_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Traffic Min"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"id","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":2000,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/preview":{"post":{"tags":["pbn"],"summary":"Preview","description":"Итог третьего шага: донор → анкор. Мягкая валидация, без блокировки.","operationId":"preview_api_pbn_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/pbn/campaigns":{"post":{"tags":["pbn"],"summary":"Create Campaign","description":"Создаёт задачи в pbn-maker (по одной на донора) и сохраняет кампанию у нас.","operationId":"create_campaign_api_pbn_campaigns_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pbn"],"summary":"List Campaigns","operationId":"list_campaigns_api_pbn_campaigns_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CampaignRowOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/campaigns/refresh-pending":{"post":{"tags":["pbn"],"summary":"Refresh Pending","description":"Обновляет статусы всех незавершённых размещений одним махом.\n\nДёргается при открытии списка задач, чтобы статусы в zavod совпадали с\npbn-maker без фонового поллинга. Завершённые (готово/пропущена/ошибка)\nбольше не запрашиваем.","operationId":"refresh_pending_api_pbn_campaigns_refresh_pending_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/pbn/export":{"get":{"tags":["pbn"],"summary":"Export Links","description":"CSV со ссылками PBN: главная донора | URL статьи. Для заливки в буст/индексатор.","operationId":"export_links_api_pbn_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"только эта кампания; иначе — все размещения команды","title":"Campaign Id"},"description":"только эта кампания; иначе — все размещения команды"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/campaigns/{campaign_id}":{"get":{"tags":["pbn"],"summary":"Campaign Detail","operationId":"campaign_detail_api_pbn_campaigns__campaign_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"integer","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/tasks/{task_id}":{"get":{"tags":["pbn"],"summary":"Task Detail","description":"Карточка задачи из PBN Maker: логи и результаты этапов, как в оригинале.\n\nЗаодно освежаем статус у себя, чтобы список не расходился с открытой карточкой.","operationId":"task_detail_api_pbn_tasks__task_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"integer","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/campaigns/{campaign_id}/refresh":{"post":{"tags":["pbn"],"summary":"Refresh Campaign","description":"Подтягивает статусы задач из pbn-maker (по кнопке, без фонового поллинга).","operationId":"refresh_campaign_api_pbn_campaigns__campaign_id__refresh_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"integer","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/acceptors":{"get":{"tags":["pbn"],"summary":"Acceptors","description":"Домены-акцепторы с числом доноров, размещений и статусами.\n\nКоманду наследуем от кампании: у размещения своего team_id нет.","operationId":"acceptors_api_pbn_acceptors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","description":"часть домена акцептора","default":"","title":"Search"},"description":"часть домена акцептора"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/acceptors/donors":{"get":{"tags":["pbn"],"summary":"Acceptor Donors","description":"Доноры, с которых стоят ссылки на этот акцептор, со ссылками на статьи.","operationId":"acceptor_donors_api_pbn_acceptors_donors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","description":"домен акцептора","title":"Domain"},"description":"домен акцептора"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/acceptors/search":{"get":{"tags":["pbn"],"summary":"Acceptors Search","description":"Прокси к большой базе pbn-maker: домен → сколько ПБН ссылается (реальность).\n\nДополнительно навешиваем СТАТУСЫ наших задач (готово/ошибка) по доменам, где мы\nставили через PBNmaker — как отдельную пометку. База акцепторов общая; статусы\nсчитаем в пределах команды пользователя (это наши размещения).","operationId":"acceptors_search_api_pbn_acceptors_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"часть домена акцептора","default":"","title":"Q"},"description":"часть домена акцептора"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/acceptors/search/donors":{"get":{"tags":["pbn"],"summary":"Acceptors Search Donors","operationId":"acceptors_search_donors_api_pbn_acceptors_search_donors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","title":"Domain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pbn/acceptors/replace":{"post":{"tags":["pbn"],"summary":"Acceptors Replace","description":"Заменить домен-акцептор в статьях выбранных доноров (пусто = у всех).\n\nЧисто PBN-сторона (акцептор — это цель ссылки в статьях доноров): ставим\nSAR-замену + передеплой у выбранных доноров, проекты zavod не трогаем.\nПишем запись в журнал, чтобы замена появилась на вкладке «Замены».","operationId":"acceptors_replace_api_pbn_acceptors_replace_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptorReplaceIn"}}},"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":[]}]}},"/api/pbn/acceptors/rebuild":{"post":{"tags":["pbn"],"summary":"Acceptors Rebuild","description":"Разовая пересборка базы акцепторов (чистка призраков).","operationId":"acceptors_rebuild_api_pbn_acceptors_rebuild_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/games/types":{"get":{"tags":["games"],"summary":"List Types","description":"Типы игр для селектов (ключ → название).","operationId":"list_types_api_games_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/games":{"get":{"tags":["games"],"summary":"List Games","operationId":"list_games_api_games_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Type"}},{"name":"ids","in":"query","required":false,"schema":{"type":"string","description":"id через запятую — вернуть конкретные игры","default":"","title":"Ids"},"description":"id через запятую — вернуть конкретные игры"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Per Page"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","maxLength":32,"default":"","title":"Sort"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_GameOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["games"],"summary":"Create Game","operationId":"create_game_api_games_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/{game_id}":{"put":{"tags":["games"],"summary":"Update Game","operationId":"update_game_api_games__game_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"integer","title":"Game Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["games"],"summary":"Delete Game","operationId":"delete_game_api_games__game_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"game_id","in":"path","required":true,"schema":{"type":"integer","title":"Game Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/schemes/variables":{"get":{"tags":["schemes"],"summary":"Scheme Variables","description":"Подсказка по переменным для редактора схемы.","operationId":"scheme_variables_api_schemes_variables_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/schemes":{"get":{"tags":["schemes"],"summary":"List Schemes","operationId":"list_schemes_api_schemes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SchemeOut"},"type":"array","title":"Response List Schemes Api Schemes Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["schemes"],"summary":"Create Scheme","operationId":"create_scheme_api_schemes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/schemes/{scheme_id}":{"patch":{"tags":["schemes"],"summary":"Update Scheme","operationId":"update_scheme_api_schemes__scheme_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scheme_id","in":"path","required":true,"schema":{"type":"integer","title":"Scheme Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["schemes"],"summary":"Delete Scheme","operationId":"delete_scheme_api_schemes__scheme_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scheme_id","in":"path","required":true,"schema":{"type":"integer","title":"Scheme Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/preview/{token}/{page_key}":{"get":{"tags":["preview"],"summary":"Preview","operationId":"preview_api_preview__token___page_key__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"page_key","in":"path","required":true,"schema":{"type":"string","title":"Page Key"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/preview/{token}":{"get":{"tags":["preview"],"summary":"Preview","operationId":"preview_api_preview__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"page_key","in":"query","required":false,"schema":{"type":"string","default":"","title":"Page Key"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/refs/countries":{"get":{"tags":["refs"],"summary":"List Countries","operationId":"list_countries_api_refs_countries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/refs/languages":{"get":{"tags":["refs"],"summary":"List Languages","operationId":"list_languages_api_refs_languages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/refs/resolve":{"get":{"tags":["refs"],"summary":"Resolve Tag","description":"Что даёт конкретный html lang: гео, язык, эндоним, слово «казино».","operationId":"resolve_tag_api_refs_resolve_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tag","in":"query","required":true,"schema":{"type":"string","title":"Tag"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/translations-dict/locales":{"get":{"tags":["translations-dict"],"summary":"List Locales","description":"Все локали, встречающиеся в значениях — из них строятся колонки в UI.","operationId":"list_locales_api_translations_dict_locales_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response List Locales Api Translations Dict Locales Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/translations-dict/groups":{"get":{"tags":["translations-dict"],"summary":"List Groups","description":"Дерево групп и подгрупп — для фильтров и подсказок при создании.","operationId":"list_groups_api_translations_dict_groups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/translations-dict":{"get":{"tags":["translations-dict"],"summary":"List Translations","operationId":"list_translations_api_translations_dict_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"group_name","in":"query","required":false,"schema":{"type":"string","default":"","title":"Group Name"}},{"name":"subgroup","in":"query","required":false,"schema":{"type":"string","default":"","title":"Subgroup"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_TranslationOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["translations-dict"],"summary":"Create Translation","operationId":"create_translation_api_translations_dict_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslationIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/translations-dict/{tr_id}":{"put":{"tags":["translations-dict"],"summary":"Update Translation","operationId":"update_translation_api_translations_dict__tr_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tr_id","in":"path","required":true,"schema":{"type":"integer","title":"Tr Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslationIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["translations-dict"],"summary":"Delete Translation","operationId":"delete_translation_api_translations_dict__tr_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tr_id","in":"path","required":true,"schema":{"type":"integer","title":"Tr Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/translations-dict/import":{"post":{"tags":["translations-dict"],"summary":"Import Xlsx","description":"Импорт из Excel: group | [subgroup] | key | <локали>. Обновляет по ключу,\nничего не удаляя — повторный импорт того же файла безопасен.","operationId":"import_xlsx_api_translations_dict_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_xlsx_api_translations_dict_import_post"}}},"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":[]}]}},"/api/reports/costs":{"get":{"tags":["reports"],"summary":"Costs Report","description":"Расход на генерацию по проектам за период (по всем командам).","operationId":"costs_report_api_reports_costs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"с этой даты включительно (UTC)","title":"Date From"},"description":"с этой даты включительно (UTC)"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"по эту дату включительно (UTC)","title":"Date To"},"description":"по эту дату включительно (UTC)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/health":{"get":{"tags":["gsc"],"summary":"Gsc Health","description":"Что настроено — только «да/нет», без значений (для проверки после правок env).","operationId":"gsc_health_api_gsc_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/gsc/accounts":{"get":{"tags":["gsc"],"summary":"List Accounts","operationId":"list_accounts_api_gsc_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/gsc/oauth/start":{"get":{"tags":["gsc"],"summary":"Oauth Start","description":"Ссылка на согласие Google. Состояние — подписанный токен (переживает рестарт).","operationId":"oauth_start_api_gsc_oauth_start_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"команда аккаунта (главному админу без выбранной команды)","title":"Team Id"},"description":"команда аккаунта (главному админу без выбранной команды)"},{"name":"login_hint","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"переподключение конкретного аккаунта","title":"Login Hint"},"description":"переподключение конкретного аккаунта"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/oauth/callback":{"get":{"tags":["gsc"],"summary":"Oauth Callback","description":"Возврат из Google: сохраняем аккаунт команды и отправляем обратно в раздел.","operationId":"oauth_callback_api_gsc_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/invite-link":{"get":{"tags":["gsc"],"summary":"Get Invite Link","description":"Действующая ссылка-приглашение команды (заводится при первом запросе).","operationId":"get_invite_link_api_gsc_invite_link_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/gsc/invite-link/regenerate":{"post":{"tags":["gsc"],"summary":"Regenerate Invite Link","description":"Новая ссылка; старая перестаёт работать.","operationId":"regenerate_invite_link_api_gsc_invite_link_regenerate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/gsc/invite/{token}":{"get":{"tags":["gsc"],"summary":"Open Invite","description":"Публичная ссылка-приглашение: сразу на согласие Google, аккаунт — в команду ссылки.","operationId":"open_invite_api_gsc_invite__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/accounts/{account_id}":{"delete":{"tags":["gsc"],"summary":"Disconnect Account","description":"Отключить аккаунт в заводе (помечаем; доступ в самом Google не отзываем —\nтокен общий с gsc.y2a.ru, пока тот работает).","operationId":"disconnect_account_api_gsc_accounts__account_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/import":{"post":{"tags":["gsc"],"summary":"Import Now","description":"Запустить перенос из gsc.y2a.ru сейчас (сам он идёт раз в час).","operationId":"import_now_api_gsc_import_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/gsc/source-users":{"get":{"tags":["gsc"],"summary":"Source Users","description":"Пользователи gsc.y2a.ru → команда завода + подсказка: к проектам какой команды\nотносятся домены их аккаунтов (после синхронизации ресурсов).","operationId":"source_users_api_gsc_source_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/gsc/source-users/{su_id}":{"patch":{"tags":["gsc"],"summary":"Set Source User Team","description":"Задать команду пользователю источника и сразу применить к его аккаунтам и\nдашбордам (повторным прогоном переноса).","operationId":"set_source_user_team_api_gsc_source_users__su_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"su_id","in":"path","required":true,"schema":{"type":"integer","title":"Su Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/analytics/sites":{"get":{"tags":["gsc"],"summary":"Analytics Sites","description":"Список сайтов плитки (из синхронизированных ресурсов) + проект завода.","operationId":"analytics_sites_api_gsc_analytics_sites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/gsc/analytics/batch":{"post":{"tags":["gsc"],"summary":"Analytics Batch","operationId":"analytics_batch_api_gsc_analytics_batch_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/gsc/analytics/top-queries":{"post":{"tags":["gsc"],"summary":"Analytics Top Queries","description":"завод: топ-10 запросов (запрос × страна) с показами/кликами за период —\nтабличка под графиком карточки. Тот же период и фильтры, что у графика.\nЗапросы к Google — параллельно (токены освежаются заранее в своих сессиях),\nответ кэшируется в gsc_google (10 мин / 6 ч для старых периодов).","operationId":"analytics_top_queries_api_gsc_analytics_top_queries_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/gsc/analytics/query-filter":{"post":{"tags":["gsc"],"summary":"Analytics Query Filter","operationId":"analytics_query_filter_api_gsc_analytics_query_filter_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/gsc/analytics/site-detail":{"get":{"tags":["gsc"],"summary":"Site Detail","operationId":"site_detail_api_gsc_analytics_site_detail_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accountId","in":"query","required":true,"schema":{"type":"integer","title":"Accountid"}},{"name":"siteUrl","in":"query","required":true,"schema":{"type":"string","title":"Siteurl"}},{"name":"dimension","in":"query","required":true,"schema":{"type":"string","title":"Dimension"}},{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filters"}},{"name":"dataState","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Datastate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/analytics/site-chart":{"get":{"tags":["gsc"],"summary":"Site Chart","operationId":"site_chart_api_gsc_analytics_site_chart_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accountId","in":"query","required":true,"schema":{"type":"integer","title":"Accountid"}},{"name":"siteUrl","in":"query","required":true,"schema":{"type":"string","title":"Siteurl"}},{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"hourly","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Hourly"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filters"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/accounts/refresh-sites":{"post":{"tags":["gsc"],"summary":"Refresh Accounts Sites","description":"Перечитать из Google списки сайтов всех рабочих аккаунтов команды — сразу,\nне дожидаясь планового обновления (сайт только что добавили в Search Console).\nКаждый аккаунт — в своей сессии, по 6 параллельно.","operationId":"refresh_accounts_sites_api_gsc_accounts_refresh_sites_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/gsc/accounts/{account_id}/sites":{"get":{"tags":["gsc"],"summary":"Account Sites","description":"Сайты аккаунта для окна выбора сайтов дашборда — как в источнике, сразу из\nGoogle (только что добавленный в Search Console сайт виден без ожидания);\nGoogle не ответил — из сохранённого списка.","operationId":"account_sites_api_gsc_accounts__account_id__sites_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/dashboards":{"get":{"tags":["gsc"],"summary":"List Dashboards","operationId":"list_dashboards_api_gsc_dashboards_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["gsc"],"summary":"Create Dashboard","operationId":"create_dashboard_api_gsc_dashboards_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/gsc/dashboards/{dashboard_id}":{"put":{"tags":["gsc"],"summary":"Update Dashboard","operationId":"update_dashboard_api_gsc_dashboards__dashboard_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"integer","title":"Dashboard Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gsc"],"summary":"Delete Dashboard","operationId":"delete_dashboard_api_gsc_dashboards__dashboard_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"integer","title":"Dashboard Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/notes/list":{"get":{"tags":["gsc"],"summary":"Notes List","operationId":"notes_list_api_gsc_notes_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/gsc/notes/{account_id}/{site_url}":{"get":{"tags":["gsc"],"summary":"Get Note","operationId":"get_note_api_gsc_notes__account_id___site_url__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"site_url","in":"path","required":true,"schema":{"type":"string","title":"Site Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["gsc"],"summary":"Put Note","operationId":"put_note_api_gsc_notes__account_id___site_url__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"site_url","in":"path","required":true,"schema":{"type":"string","title":"Site Url"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/safety/status":{"get":{"tags":["gsc"],"summary":"Safety Status","operationId":"safety_status_api_gsc_safety_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/gsc/safety/check":{"post":{"tags":["gsc"],"summary":"Safety Check","operationId":"safety_check_api_gsc_safety_check_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/gsc/indexing/publish":{"post":{"tags":["gsc"],"summary":"Indexing Publish","operationId":"indexing_publish_api_gsc_indexing_publish_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/gsc/indexing/publish-batch":{"post":{"tags":["gsc"],"summary":"Indexing Publish Batch","operationId":"indexing_publish_batch_api_gsc_indexing_publish_batch_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/gsc/indexing/inspect":{"post":{"tags":["gsc"],"summary":"Indexing Inspect","operationId":"indexing_inspect_api_gsc_indexing_inspect_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/gsc/indexing/canonicals":{"get":{"tags":["gsc"],"summary":"Get Canonicals","operationId":"get_canonicals_api_gsc_indexing_canonicals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accountId","in":"query","required":true,"schema":{"type":"integer","title":"Accountid"}},{"name":"siteUrl","in":"query","required":true,"schema":{"type":"string","title":"Siteurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["gsc"],"summary":"Save Canonical","operationId":"save_canonical_api_gsc_indexing_canonicals_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/sitemaps":{"get":{"tags":["gsc"],"summary":"Sitemaps List","operationId":"sitemaps_list_api_gsc_sitemaps_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accountId","in":"query","required":true,"schema":{"type":"integer","title":"Accountid"}},{"name":"siteUrl","in":"query","required":true,"schema":{"type":"string","title":"Siteurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gsc"],"summary":"Sitemaps Delete","operationId":"sitemaps_delete_api_gsc_sitemaps_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accountId","in":"query","required":true,"schema":{"type":"integer","title":"Accountid"}},{"name":"siteUrl","in":"query","required":true,"schema":{"type":"string","title":"Siteurl"}},{"name":"feedpath","in":"query","required":true,"schema":{"type":"string","title":"Feedpath"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/sitemaps/submit":{"post":{"tags":["gsc"],"summary":"Sitemaps Submit","operationId":"sitemaps_submit_api_gsc_sitemaps_submit_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/gsc/site-verification/pending":{"get":{"tags":["gsc"],"summary":"Sv Pending","operationId":"sv_pending_api_gsc_site_verification_pending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/gsc/site-verification/pending/{pid}":{"delete":{"tags":["gsc"],"summary":"Sv Pending Delete","operationId":"sv_pending_delete_api_gsc_site_verification_pending__pid__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gsc/site-verification/get-token":{"post":{"tags":["gsc"],"summary":"Sv Get Token","operationId":"sv_get_token_api_gsc_site_verification_get_token_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/gsc/site-verification/verify":{"post":{"tags":["gsc"],"summary":"Sv Verify","operationId":"sv_verify_api_gsc_site_verification_verify_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/gsc/site-verification/verify-cf":{"post":{"tags":["gsc"],"summary":"Sv Verify Cf","description":"TXT через Cloudflare. Ключ и зона — из тела (как в источнике) или, если не\nпереданы, из завода: Cloudflare, к которому подключён этот домен. TXT ВСЕГДА\nдобавляется новой записью — существующие (SPF и пр.) не трогаем.","operationId":"sv_verify_cf_api_gsc_site_verification_verify_cf_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"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":[]}]}},"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health/llm":{"get":{"summary":"Health Llm","description":"Живой ли ключ генерации: один крошечный текстовый запрос (доли цента).\n\nБаланс у OpenAI общий на организацию — проходит текст, пройдут и картинки.\nОтвет кэшируется на 5 минут, чтобы проверка не тратила деньги при частых\nзаходах; наружу — только «работает / текст ошибки», без ключей.","operationId":"health_llm_api_health_llm_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health/tokenflow":{"get":{"summary":"Health Tokenflow","description":"Живой ли второй провайдер (TokenFlow): крошечный запрос к модели по\nумолчанию, кэш 5 минут. Наружу — только «работает / ошибка», без ключей.\nНужен, чтобы проверить доступ к шлюзу с сервера до переключения движка.","operationId":"health_tokenflow_api_health_tokenflow_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health/llm-models":{"get":{"summary":"Health Llm Models","description":"Названия моделей, доступных ключу OpenAI (только id, без ключей; кэш час).\nq — фильтр по подстроке. Нужен, чтобы выбрать OPENAI_TEXT_MODEL.","operationId":"health_llm_models_api_health_llm_models_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/robots.txt":{"get":{"tags":["public"],"summary":"Robots","operationId":"robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/sitemap.xml":{"get":{"tags":["public"],"summary":"Sitemap","operationId":"sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/go/play/":{"get":{"tags":["public"],"summary":"Partner Play","operationId":"partner_play_go_play__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/go/play":{"get":{"tags":["public"],"summary":"Partner Play","operationId":"partner_play_go_play_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/go/bonus/{slug}/":{"get":{"tags":["public"],"summary":"Partner Bonus","operationId":"partner_bonus_go_bonus__slug___get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/go/bonus/{slug}":{"get":{"tags":["public"],"summary":"Partner Bonus","operationId":"partner_bonus_go_bonus__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{full_path}":{"get":{"tags":["public"],"summary":"Render Page","operationId":"render_page__full_path__get","parameters":[{"name":"full_path","in":"path","required":true,"schema":{"type":"string","title":"Full Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AcceptorReplaceIn":{"properties":{"domain":{"type":"string","title":"Domain"},"replace":{"type":"string","title":"Replace"},"donor_ids":{"items":{"type":"integer"},"type":"array","title":"Donor Ids","default":[]}},"type":"object","required":["domain","replace"],"title":"AcceptorReplaceIn"},"AccountIn":{"properties":{"registrar_id":{"type":"integer","title":"Registrar Id"},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"name":{"type":"string","title":"Name"},"credentials":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Credentials"},"person_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Id"},"person_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Name"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["registrar_id","name"],"title":"AccountIn"},"AccountOut":{"properties":{"id":{"type":"integer","title":"Id"},"registrar_id":{"type":"integer","title":"Registrar Id"},"registrar_name":{"type":"string","title":"Registrar Name","default":""},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"team_name":{"type":"string","title":"Team Name","default":""},"name":{"type":"string","title":"Name"},"person_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Id"},"person_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Name"},"credentials_keys":{"items":{"type":"string"},"type":"array","title":"Credentials Keys","default":[]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Balance"},"balance_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Balance Currency"},"balance_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Balance At"},"is_active":{"type":"boolean","title":"Is Active"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"zones":{"items":{"$ref":"#/components/schemas/AccountZone"},"type":"array","title":"Zones","default":[]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","registrar_id","name","is_active"],"title":"AccountOut"},"AccountZone":{"properties":{"zone":{"type":"string","title":"Zone"},"max_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Price"}},"type":"object","required":["zone"],"title":"AccountZone"},"ActivityOut":{"properties":{"id":{"type":"integer","title":"Id"},"description":{"type":"string","title":"Description"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"},"log_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Name"},"subject_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Type"},"subject_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subject Id"},"causer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Causer Id"},"causer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Causer Name"},"properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Properties"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","description"],"title":"ActivityOut"},"Body_import_redirects_api_sites__site_id__redirects_import_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_import_redirects_api_sites__site_id__redirects_import_post"},"Body_import_xlsx_api_translations_dict_import_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_import_xlsx_api_translations_dict_import_post"},"Body_link_replace_api_projects_link_replace_post":{"properties":{"search":{"type":"string","title":"Search"},"replace":{"type":"string","title":"Replace","default":""},"dry_run":{"type":"boolean","title":"Dry Run","default":true},"include_pbn":{"type":"boolean","title":"Include Pbn","default":false},"project_ids":{"items":{"type":"integer"},"type":"array","title":"Project Ids","default":[]},"pbn_donor_ids":{"items":{"type":"integer"},"type":"array","title":"Pbn Donor Ids","default":[]}},"type":"object","required":["search"],"title":"Body_link_replace_api_projects_link_replace_post"},"Body_precheck_file_api_catches_precheck_file_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_precheck_file_api_catches_precheck_file_post"},"Body_upload_api_files_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_api_files_upload_post"},"BrandIn":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"BrandIn"},"BrandOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"projects_count":{"type":"integer","title":"Projects Count","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","name"],"title":"BrandOut"},"BulkCheckIn":{"properties":{"domain":{"type":"string","title":"Domain"}},"type":"object","required":["domain"],"title":"BulkCheckIn"},"BulkStartIn":{"properties":{"domains":{"items":{"type":"string"},"type":"array","title":"Domains"},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"},"server_auto":{"type":"boolean","title":"Server Auto","default":false},"scheme_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Role"}},"type":"object","required":["domains"],"title":"BulkStartIn"},"CFBulkIn":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CFBulkItem"},"type":"array","title":"Items","default":[]}},"type":"object","title":"CFBulkIn"},"CFBulkItem":{"properties":{"name":{"type":"string","title":"Name","default":""},"token":{"type":"string","title":"Token","default":""},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","title":"CFBulkItem"},"CFDeleteIn":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids","default":[]}},"type":"object","title":"CFDeleteIn"},"CFTokenIn":{"properties":{"name":{"type":"string","title":"Name"},"token":{"type":"string","title":"Token"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["name","token"],"title":"CFTokenIn"},"CFTokenOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"token":{"type":"string","title":"Token"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"domains":{"items":{"type":"string"},"type":"array","title":"Domains","default":[]}},"type":"object","required":["id","name","token"],"title":"CFTokenOut"},"CFTokenUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","title":"CFTokenUpdate"},"CampaignIn":{"properties":{"project_id":{"type":"integer","title":"Project Id"},"site_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Id"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"target_url":{"type":"string","title":"Target Url"},"preset_id":{"type":"integer","title":"Preset Id"},"preset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preset Name"},"anchors_raw":{"type":"string","title":"Anchors Raw","default":""},"variables":{"additionalProperties":{"type":"string"},"type":"object","title":"Variables","default":{}},"autodeploy":{"type":"boolean","title":"Autodeploy","default":true},"placements":{"items":{"$ref":"#/components/schemas/PlacementIn"},"type":"array","title":"Placements"}},"type":"object","required":["project_id","target_url","preset_id","placements"],"title":"CampaignIn"},"CampaignRowOut":{"properties":{"id":{"type":"integer","title":"Id"},"project_id":{"type":"integer","title":"Project Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"target_url":{"type":"string","title":"Target Url"},"preset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preset Name"},"total":{"type":"integer","title":"Total","default":0},"done":{"type":"integer","title":"Done","default":0},"errors":{"type":"integer","title":"Errors","default":0},"in_progress":{"type":"integer","title":"In Progress","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"}},"type":"object","required":["id","project_id","target_url"],"title":"CampaignRowOut"},"CasinoIn":{"properties":{"name":{"type":"string","title":"Name"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo"},"rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rating"},"reviews_count":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviews Count"},"nomination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nomination"},"bonus_label_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bonus Label 1"},"bonus_value_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bonus Value 1"},"bonus_label_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bonus Label 2"},"bonus_value_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bonus Value 2"},"advantage_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advantage 1"},"advantage_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advantage 2"},"advantage_3":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advantage 3"},"flag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flag"},"flag_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flag Text"},"flags":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Flags"},"default_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Locale"},"ref_link_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ref Link Id"}},"type":"object","required":["name"],"title":"CasinoIn"},"CasinoOut":{"properties":{"name":{"type":"string","title":"Name"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo"},"rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rating"},"reviews_count":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviews Count"},"nomination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nomination"},"bonus_label_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bonus Label 1"},"bonus_value_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bonus Value 1"},"bonus_label_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bonus Label 2"},"bonus_value_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bonus Value 2"},"advantage_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advantage 1"},"advantage_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advantage 2"},"advantage_3":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Advantage 3"},"flag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flag"},"flag_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flag Text"},"flags":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Flags"},"default_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Locale"},"ref_link_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ref Link Id"},"id":{"type":"integer","title":"Id"}},"type":"object","required":["name","id"],"title":"CasinoOut"},"CfStatus":{"properties":{"indicator":{"type":"string","title":"Indicator"},"has_key":{"type":"boolean","title":"Has Key","default":false},"status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status"},"check_api_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Check Api At"},"text_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Error"},"settings":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Settings"},"settings_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Settings At"}},"type":"object","required":["indicator"],"title":"CfStatus"},"ConfirmIn":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"},"scheme_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Role"}},"type":"object","title":"ConfirmIn","description":"Extra fields for the bought domain — the same ones as manual creation."},"CreatePersonIn":{"properties":{"registrar_id":{"type":"integer","title":"Registrar Id"},"credentials":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Credentials"},"account_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"},"fields":{"additionalProperties":true,"type":"object","title":"Fields"}},"type":"object","required":["registrar_id","fields"],"title":"CreatePersonIn","description":"Как и в PersonsIn: доступы из формы поверх сохранённых у аккаунта."},"DefaultCapIn":{"properties":{"max_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Price"}},"type":"object","title":"DefaultCapIn"},"DomainBulkIn":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DomainBulkItem"},"type":"array","title":"Items","default":[]},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"},"assign_cf":{"type":"boolean","title":"Assign Cf","default":false}},"type":"object","title":"DomainBulkIn"},"DomainBulkItem":{"properties":{"domain":{"type":"string","title":"Domain","default":""},"cf_name":{"type":"string","title":"Cf Name","default":""}},"type":"object","title":"DomainBulkItem","description":"Строка файла: домен и название CF-аккаунта из нашего справочника."},"DomainCopy":{"properties":{"new_domain":{"type":"string","title":"New Domain"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"status":{"type":"boolean","title":"Status","default":false}},"type":"object","required":["new_domain"],"title":"DomainCopy"},"DomainCreate":{"properties":{"domain":{"type":"string","title":"Domain"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"type":"boolean","title":"Status","default":false},"type":{"type":"integer","title":"Type","default":0},"scheme_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Role"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"},"server_auto":{"type":"boolean","title":"Server Auto","default":false},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"cf_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf Api Key"},"cf_zone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf Zone Id"},"cf_auto":{"type":"boolean","title":"Cf Auto","default":false},"prefer_www":{"type":"boolean","title":"Prefer Www","default":false},"pbn_only":{"type":"boolean","title":"Pbn Only","default":false}},"type":"object","required":["domain"],"title":"DomainCreate"},"DomainDeleteIn":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids","default":[]}},"type":"object","title":"DomainDeleteIn"},"DomainDetailOut":{"properties":{"id":{"type":"integer","title":"Id"},"domain":{"type":"string","title":"Domain"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"type":"boolean","title":"Status"},"type":{"type":"integer","title":"Type"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"published":{"type":"boolean","title":"Published","default":false},"pbn_only":{"type":"boolean","title":"Pbn Only","default":false},"scheme_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Role"},"cf":{"$ref":"#/components/schemas/CfStatus"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"prefer_www":{"type":"boolean","title":"Prefer Www","default":false},"display_domain":{"type":"string","title":"Display Domain","default":""},"name_servers":{"items":{"type":"string"},"type":"array","title":"Name Servers","default":[]},"cf_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf Name"},"kind":{"type":"string","title":"Kind","default":"regular"},"registrar_name":{"type":"string","title":"Registrar Name","default":""},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"cf_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf Api Key"},"cf_zone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf Zone Id"}},"type":"object","required":["id","domain","status","type","cf"],"title":"DomainDetailOut"},"DomainRowOut":{"properties":{"id":{"type":"integer","title":"Id"},"domain":{"type":"string","title":"Domain"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"type":"boolean","title":"Status"},"type":{"type":"integer","title":"Type"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"published":{"type":"boolean","title":"Published","default":false},"pbn_only":{"type":"boolean","title":"Pbn Only","default":false},"scheme_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Role"},"cf":{"$ref":"#/components/schemas/CfStatus"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"prefer_www":{"type":"boolean","title":"Prefer Www","default":false},"display_domain":{"type":"string","title":"Display Domain","default":""},"name_servers":{"items":{"type":"string"},"type":"array","title":"Name Servers","default":[]},"cf_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf Name"},"kind":{"type":"string","title":"Kind","default":"regular"},"registrar_name":{"type":"string","title":"Registrar Name","default":""},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"}},"type":"object","required":["id","domain","status","type","cf"],"title":"DomainRowOut"},"DomainUpdate":{"properties":{"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Status"},"scheme_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Role"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"cf_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf Api Key"},"cf_zone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf Zone Id"},"prefer_www":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Prefer Www"},"pbn_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pbn Only"}},"type":"object","title":"DomainUpdate"},"GameIn":{"properties":{"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"}},"type":"object","required":["type","name"],"title":"GameIn"},"GameOut":{"properties":{"id":{"type":"integer","title":"Id"},"type":{"type":"string","title":"Type"},"type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Name"},"name":{"type":"string","title":"Name"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"}},"type":"object","required":["id","type","name"],"title":"GameOut"},"GameUpdate":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"}},"type":"object","title":"GameUpdate"},"GenerateRequest":{"properties":{"prompt_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Id"},"template_block_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Template Block Id"},"prompt_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Text"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"user_prompt":{"type":"string","title":"User Prompt","default":""},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"field_values":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Field Values"},"render_markdown":{"type":"boolean","title":"Render Markdown","default":false},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine"}},"type":"object","title":"GenerateRequest"},"GlobalPromptIn":{"properties":{"name":{"type":"string","title":"Name"},"content":{"type":"string","title":"Content","default":""}},"type":"object","required":["name"],"title":"GlobalPromptIn"},"GlobalPromptOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"content":{"type":"string","title":"Content"},"system_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Key"},"is_default":{"type":"boolean","title":"Is Default","default":false},"default_for_template_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default For Template Id"},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"team_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Name"}},"type":"object","required":["id","name","content"],"title":"GlobalPromptOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LangLineIn":{"properties":{"group":{"type":"string","title":"Group","default":"*"},"key":{"type":"string","title":"Key"},"text":{"additionalProperties":true,"type":"object","title":"Text","default":{}}},"type":"object","required":["key"],"title":"LangLineIn"},"LangLineOut":{"properties":{"id":{"type":"integer","title":"Id"},"group":{"type":"string","title":"Group"},"key":{"type":"string","title":"Key"},"text":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Text"}},"type":"object","required":["id","group","key"],"title":"LangLineOut"},"LangLineUpdate":{"properties":{"group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"text":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Text"}},"type":"object","title":"LangLineUpdate"},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MenuItemIn":{"properties":{"type":{"type":"integer","title":"Type","default":0},"status":{"type":"boolean","title":"Status","default":false},"sort":{"type":"integer","title":"Sort","default":1},"in_tab":{"type":"boolean","title":"In Tab","default":false},"url":{"type":"string","title":"Url","default":""},"delete_nofollow":{"type":"boolean","title":"Delete Nofollow","default":false},"is_partner_link":{"type":"boolean","title":"Is Partner Link","default":false},"site_menu_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Menu Item Id"},"translations":{"items":{"$ref":"#/components/schemas/MenuTransIn"},"type":"array","title":"Translations","default":[]}},"type":"object","title":"MenuItemIn"},"MenuItemOut":{"properties":{"id":{"type":"integer","title":"Id"},"type":{"type":"integer","title":"Type"},"status":{"type":"boolean","title":"Status"},"sort":{"type":"integer","title":"Sort"},"in_tab":{"type":"boolean","title":"In Tab"},"url":{"type":"string","title":"Url"},"delete_nofollow":{"type":"boolean","title":"Delete Nofollow"},"is_partner_link":{"type":"boolean","title":"Is Partner Link"},"site_menu_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Menu Item Id"},"translations":{"items":{"$ref":"#/components/schemas/MenuTransIn"},"type":"array","title":"Translations","default":[]}},"type":"object","required":["id","type","status","sort","in_tab","url","delete_nofollow","is_partner_link"],"title":"MenuItemOut"},"MenuItemUpdate":{"properties":{"type":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Type"},"status":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Status"},"sort":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort"},"in_tab":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Tab"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"delete_nofollow":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Delete Nofollow"},"is_partner_link":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Partner Link"},"site_menu_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Site Menu Item Id"},"translations":{"anyOf":[{"items":{"$ref":"#/components/schemas/MenuTransIn"},"type":"array"},{"type":"null"}],"title":"Translations"}},"type":"object","title":"MenuItemUpdate"},"MenuTransIn":{"properties":{"locale":{"type":"string","title":"Locale"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"locale_url":{"type":"string","title":"Locale Url","default":""}},"type":"object","required":["locale"],"title":"MenuTransIn"},"MoveDomainsRequest":{"properties":{"new_server_id":{"type":"integer","title":"New Server Id"},"update_dns":{"type":"boolean","title":"Update Dns","default":false}},"type":"object","required":["new_server_id"],"title":"MoveDomainsRequest"},"NameserversIn":{"properties":{"nameservers":{"items":{"type":"string"},"type":"array","title":"Nameservers"}},"type":"object","required":["nameservers"],"title":"NameserversIn"},"PageTranslationIn":{"properties":{"locale":{"type":"string","title":"Locale"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"lang":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"},"meta_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"meta_keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Keywords"},"meta_canonical":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Canonical"},"meta_robots":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Robots"},"head_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Code"},"list_advantages":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"List Advantages"},"x_default":{"type":"boolean","title":"X Default","default":false}},"type":"object","required":["locale"],"title":"PageTranslationIn"},"PageTranslationOut":{"properties":{"locale":{"type":"string","title":"Locale"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"lang":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"},"meta_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"meta_keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Keywords"},"meta_canonical":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Canonical"},"meta_robots":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Robots"},"head_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Code"},"list_advantages":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"List Advantages"},"x_default":{"type":"boolean","title":"X Default","default":false},"id":{"type":"integer","title":"Id"}},"type":"object","required":["locale","id"],"title":"PageTranslationOut"},"Page_ActivityOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ActivityOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[ActivityOut]"},"Page_CampaignRowOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CampaignRowOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[CampaignRowOut]"},"Page_CasinoOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CasinoOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[CasinoOut]"},"Page_DomainRowOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DomainRowOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[DomainRowOut]"},"Page_GameOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GameOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[GameOut]"},"Page_LangLineOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LangLineOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[LangLineOut]"},"Page_ProjectRowOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProjectRowOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[ProjectRowOut]"},"Page_ReferralLinkOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ReferralLinkOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[ReferralLinkOut]"},"Page_ServerRowOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ServerRowOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[ServerRowOut]"},"Page_SystemPromptOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SystemPromptOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[SystemPromptOut]"},"Page_TranslationOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TranslationOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[TranslationOut]"},"Page_UserRowOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserRowOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"Page[UserRowOut]"},"PbnMigrateIn":{"properties":{"server_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Server Id"},"cf_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf Api Key"},"cf_zone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cf Zone Id"}},"type":"object","title":"PbnMigrateIn","description":"«Перенос» PBN-домена в обычный: задаём сервер и Cloudflare, снимаем pbn_only."},"PersonsIn":{"properties":{"registrar_id":{"type":"integer","title":"Registrar Id"},"credentials":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Credentials"},"account_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}},"type":"object","required":["registrar_id"],"title":"PersonsIn","description":"Чем ходить в API: доступы из формы поверх сохранённых у аккаунта."},"PlacementIn":{"properties":{"donor_id":{"type":"integer","title":"Donor Id"},"donor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Donor Name"},"donor_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Donor Url"},"anchor":{"type":"string","title":"Anchor","default":""}},"type":"object","required":["donor_id"],"title":"PlacementIn"},"PreviewIn":{"properties":{"anchors":{"type":"string","title":"Anchors","default":""},"donor_ids":{"items":{"type":"integer"},"type":"array","title":"Donor Ids","default":[]},"fixed":{"additionalProperties":{"type":"string"},"type":"object","title":"Fixed","default":{}}},"type":"object","title":"PreviewIn"},"PreviewOut":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/PreviewRow"},"type":"array","title":"Rows"},"anchors_total":{"type":"integer","title":"Anchors Total"},"donors_total":{"type":"integer","title":"Donors Total"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning"}},"type":"object","required":["rows","anchors_total","donors_total"],"title":"PreviewOut"},"PreviewRow":{"properties":{"donor_id":{"type":"integer","title":"Donor Id"},"anchor":{"type":"string","title":"Anchor","default":""},"fixed":{"type":"boolean","title":"Fixed","default":false}},"type":"object","required":["donor_id"],"title":"PreviewRow"},"ProjectCreate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"template_id":{"type":"integer","title":"Template Id","default":2},"project_type":{"type":"string","title":"Project Type","default":"monobrand"},"casino_table_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Casino Table Id"},"seo":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Seo"},"brand_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Brand Id"},"slot_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slot Item Id"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo"},"favicon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon"},"affiliate_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliate Link"},"colors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Colors"},"default_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Locale"},"global_prompt_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Global Prompt Id"},"copy_from_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Copy From Id"},"responsible_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Responsible Id"}},"type":"object","title":"ProjectCreate"},"ProjectDetailOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"preview_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Token"},"project_type":{"type":"string","title":"Project Type","default":"monobrand"},"casino_table_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Casino Table Id"},"seo":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Seo"},"brand_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Brand Id"},"slot_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slot Item Id"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"is_active":{"type":"boolean","title":"Is Active"},"archived":{"type":"boolean","title":"Archived","default":false},"template_id":{"type":"integer","title":"Template Id"},"owner_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner Id"},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"responsible_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Responsible Id"},"responsible_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsible Name"},"can_change_responsible":{"type":"boolean","title":"Can Change Responsible","default":false},"affiliate_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliate Link"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo"},"favicon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon"},"colors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Colors"},"subs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Subs"},"locales":{"anyOf":[{"items":{},"type":"array"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Locales"},"default_locale":{"type":"string","title":"Default Locale","default":"en"},"global_prompt_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Global Prompt Id"},"scheme_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scheme Id"},"scheme_lang":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Lang"},"scheme_geo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Geo"},"scheme_subfolder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Subfolder"},"scheme_subfolder_drop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Subfolder Drop"},"scheme_subdomain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Subdomain"},"scheme_subdomain_drop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Subdomain Drop"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","is_active","template_id"],"title":"ProjectDetailOut"},"ProjectRefOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"default_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Locale"},"sites":{"items":{"$ref":"#/components/schemas/SiteRefOut"},"type":"array","title":"Sites","default":[]}},"type":"object","required":["id","name"],"title":"ProjectRefOut"},"ProjectRowOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"project_type":{"type":"string","title":"Project Type","default":"monobrand"},"casino_table_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Casino Table Id"},"brand_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Brand Id"},"slot_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slot Item Id"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"affiliate_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliate Link"},"affiliate_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliate Name"},"default_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Locale"},"is_active":{"type":"boolean","title":"Is Active"},"archived":{"type":"boolean","title":"Archived","default":false},"basic_auth":{"type":"boolean","title":"Basic Auth","default":false},"pbn_only":{"type":"boolean","title":"Pbn Only","default":false},"template_id":{"type":"integer","title":"Template Id"},"scheme_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scheme Id"},"scheme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme"},"preview_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Token"},"owner_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner Id"},"responsible_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Responsible Id"},"responsible_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsible Name"},"domains":{"items":{"type":"string"},"type":"array","title":"Domains","default":[]},"servers":{"items":{"$ref":"#/components/schemas/ServerBrief"},"type":"array","title":"Servers","default":[]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","is_active","template_id"],"title":"ProjectRowOut"},"ProjectUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"project_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Type"},"casino_table_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Casino Table Id"},"seo":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Seo"},"brand_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Brand Id"},"slot_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slot Item Id"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"template_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Template Id"},"owner_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner Id"},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"responsible_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Responsible Id"},"affiliate_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Affiliate Link"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo"},"favicon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon"},"colors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Colors"},"subs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Subs"},"locales":{"anyOf":[{"items":{},"type":"array"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Locales"},"default_locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Locale"},"global_prompt_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Global Prompt Id"},"scheme_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scheme Id"},"scheme_lang":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Lang"},"scheme_geo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Geo"},"scheme_subfolder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Subfolder"},"scheme_subfolder_drop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Subfolder Drop"},"scheme_subdomain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Subdomain"},"scheme_subdomain_drop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheme Subdomain Drop"}},"type":"object","title":"ProjectUpdate"},"PromptType":{"type":"string","enum":["text","image"],"title":"PromptType"},"PromptUsageOut":{"properties":{"template_id":{"type":"integer","title":"Template Id"},"template_name":{"type":"string","title":"Template Name"},"block_id":{"type":"integer","title":"Block Id"},"block_key":{"type":"string","title":"Block Key"},"block_title":{"type":"string","title":"Block Title"}},"type":"object","required":["template_id","template_name","block_id","block_key","block_title"],"title":"PromptUsageOut","description":"Где используется промпт (раздел 1.1)."},"QuoteIn":{"properties":{"domain":{"type":"string","title":"Domain"},"transfer":{"type":"boolean","title":"Transfer","default":false}},"type":"object","required":["domain"],"title":"QuoteIn"},"RedirectIn":{"properties":{"from":{"type":"string","title":"From"},"to":{"type":"string","title":"To"},"type":{"type":"integer","title":"Type","default":301},"position":{"type":"integer","title":"Position","default":1},"status":{"type":"boolean","title":"Status","default":true}},"type":"object","required":["from","to"],"title":"RedirectIn"},"RedirectOut":{"properties":{"id":{"type":"integer","title":"Id"},"from":{"type":"string","title":"From"},"to":{"type":"string","title":"To"},"type":{"type":"integer","title":"Type"},"position":{"type":"integer","title":"Position"},"status":{"type":"boolean","title":"Status"}},"type":"object","required":["id","from","to","type","position","status"],"title":"RedirectOut"},"RedirectUpdate":{"properties":{"from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"},"type":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Type"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"},"status":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Status"}},"type":"object","title":"RedirectUpdate"},"ReferralLinkIn":{"properties":{"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},"type":"object","required":["name","url"],"title":"ReferralLinkIn"},"ReferralLinkOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"slug":{"type":"string","title":"Slug"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","name","url","slug"],"title":"ReferralLinkOut"},"ReferralLinkUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},"type":"object","title":"ReferralLinkUpdate"},"RegistrarIn":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Url"}},"type":"object","required":["code","name"],"title":"RegistrarIn"},"RegistrarOut":{"properties":{"id":{"type":"integer","title":"Id"},"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Url"},"is_active":{"type":"boolean","title":"Is Active"},"accounts_count":{"type":"integer","title":"Accounts Count","default":0}},"type":"object","required":["id","code","name","is_active"],"title":"RegistrarOut"},"RoleOut":{"properties":{"id":{"type":"integer","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"permissions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Permissions"}},"type":"object","required":["id","slug","name"],"title":"RoleOut"},"SchemeIn":{"properties":{"name":{"type":"string","title":"Name"},"html_home":{"type":"string","title":"Html Home","default":""},"html_subfolder":{"type":"string","title":"Html Subfolder","default":""},"same_for_all":{"type":"boolean","title":"Same For All","default":true},"modules":{"items":{"$ref":"#/components/schemas/SchemeModule"},"type":"array","title":"Modules","default":[]}},"type":"object","required":["name"],"title":"SchemeIn"},"SchemeModule":{"properties":{"role":{"type":"string","title":"Role"},"html_home":{"type":"string","title":"Html Home","default":""},"html_subfolder":{"type":"string","title":"Html Subfolder","default":""}},"type":"object","required":["role"],"title":"SchemeModule"},"SchemeOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"is_default":{"type":"boolean","title":"Is Default"},"html_home":{"type":"string","title":"Html Home"},"html_subfolder":{"type":"string","title":"Html Subfolder"},"same_for_all":{"type":"boolean","title":"Same For All","default":true},"modules":{"items":{"$ref":"#/components/schemas/SchemeModule"},"type":"array","title":"Modules","default":[]},"projects":{"type":"integer","title":"Projects","default":0}},"type":"object","required":["id","name","is_default","html_home","html_subfolder"],"title":"SchemeOut"},"ServerBrief":{"properties":{"id":{"type":"integer","title":"Id"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"ip":{"type":"string","title":"Ip"}},"type":"object","required":["id","ip"],"title":"ServerBrief"},"ServerCreate":{"properties":{"ip":{"type":"string","title":"Ip"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"}},"type":"object","required":["ip"],"title":"ServerCreate"},"ServerRowOut":{"properties":{"id":{"type":"integer","title":"Id"},"ip":{"type":"string","title":"Ip"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"check_process":{"type":"integer","title":"Check Process"},"domains_count":{"type":"integer","title":"Domains Count"},"cf_ok":{"type":"integer","title":"Cf Ok"},"cf_error":{"type":"integer","title":"Cf Error"},"cf_none":{"type":"integer","title":"Cf None"},"hidden":{"type":"boolean","title":"Hidden","default":false},"is_default":{"type":"boolean","title":"Is Default","default":false},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","ip","check_process","domains_count","cf_ok","cf_error","cf_none"],"title":"ServerRowOut"},"ServerUpdate":{"properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"hidden":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"}},"type":"object","title":"ServerUpdate"},"SitePageCreate":{"properties":{"type":{"type":"integer","title":"Type","default":1},"status":{"type":"boolean","title":"Status","default":false},"template_page_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Template Page Id"},"sitemap":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sitemap"},"translations":{"items":{"$ref":"#/components/schemas/PageTranslationIn"},"type":"array","title":"Translations","default":[]}},"type":"object","title":"SitePageCreate"},"SitePageOut":{"properties":{"id":{"type":"integer","title":"Id"},"site_id":{"type":"integer","title":"Site Id"},"type":{"type":"integer","title":"Type"},"status":{"type":"boolean","title":"Status"},"template_page_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Template Page Id"},"sitemap":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sitemap"},"translations":{"items":{"$ref":"#/components/schemas/PageTranslationOut"},"type":"array","title":"Translations","default":[]}},"type":"object","required":["id","site_id","type","status"],"title":"SitePageOut"},"SitePageUpdate":{"properties":{"type":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Type"},"status":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Status"},"template_page_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Template Page Id"},"sitemap":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sitemap"},"translations":{"anyOf":[{"items":{"$ref":"#/components/schemas/PageTranslationIn"},"type":"array"},{"type":"null"}],"title":"Translations"}},"type":"object","title":"SitePageUpdate"},"SiteRefOut":{"properties":{"id":{"type":"integer","title":"Id"},"domain":{"type":"string","title":"Domain"},"pbn_only":{"type":"boolean","title":"Pbn Only","default":false},"prefer_www":{"type":"boolean","title":"Prefer Www","default":false}},"type":"object","required":["id","domain"],"title":"SiteRefOut"},"SiteSettingOut":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"robots":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Robots"},"scripts":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Scripts"},"footer_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Code"},"is_cloaking":{"type":"boolean","title":"Is Cloaking","default":false},"meta_verification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Verification"},"authorization":{"type":"boolean","title":"Authorization","default":false},"auth_login":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Login"},"auth_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Password"},"translations":{"items":{"$ref":"#/components/schemas/SiteSettingTransIn"},"type":"array","title":"Translations","default":[]}},"type":"object","title":"SiteSettingOut"},"SiteSettingTransIn":{"properties":{"locale":{"type":"string","title":"Locale"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"footer_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Text"}},"type":"object","required":["locale"],"title":"SiteSettingTransIn"},"SiteSettingUpdate":{"properties":{"robots":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Robots"},"scripts":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Scripts"},"footer_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Code"},"is_cloaking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Cloaking"},"meta_verification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Verification"},"authorization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Authorization"},"auth_login":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Login"},"auth_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Password"},"translations":{"anyOf":[{"items":{"$ref":"#/components/schemas/SiteSettingTransIn"},"type":"array"},{"type":"null"}],"title":"Translations"}},"type":"object","title":"SiteSettingUpdate"},"SlotItemIn":{"properties":{"name":{"type":"string","title":"Name"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo"},"frame_bg":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frame Bg"},"header_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Image"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"game_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Game Type"},"release_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Date"},"rtp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rtp"},"max_win":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Win"},"bet_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bet Range"},"likes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Likes"},"min_deposit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Deposit"},"demo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Demo Url"},"network":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network"}},"type":"object","required":["name"],"title":"SlotItemIn"},"SlotItemOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo"},"frame_bg":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frame Bg"},"header_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Image"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"game_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Game Type"},"release_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Date"},"rtp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rtp"},"max_win":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Win"},"bet_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bet Range"},"likes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Likes"},"min_deposit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Deposit"},"demo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Demo Url"},"network":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network"},"projects_count":{"type":"integer","title":"Projects Count","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","name"],"title":"SlotItemOut"},"SystemPromptCreate":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/PromptType","default":"text"},"content":{"type":"string","title":"Content"}},"type":"object","required":["name","content"],"title":"SystemPromptCreate"},"SystemPromptOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/PromptType"},"content":{"type":"string","title":"Content"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"usage_count":{"type":"integer","title":"Usage Count","default":0},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"team_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Name"}},"type":"object","required":["id","name","type","content"],"title":"SystemPromptOut"},"SystemPromptUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"$ref":"#/components/schemas/PromptType"},{"type":"null"}]},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"}},"type":"object","title":"SystemPromptUpdate"},"SystemSettingsBody":{"properties":{"basic_auth_login":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basic Auth Login"},"basic_auth_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basic Auth Password"},"slots_keitaro_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slots Keitaro Url"},"text_engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Engine"},"text_engine_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Engine Model"}},"type":"object","title":"SystemSettingsBody"},"TableIn":{"properties":{"name":{"type":"string","title":"Name"},"casino_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Casino Ids"}},"type":"object","required":["name"],"title":"TableIn"},"TableOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"casino_ids":{"items":{"type":"integer"},"type":"array","title":"Casino Ids","default":[]},"casinos":{"items":{"$ref":"#/components/schemas/CasinoOut"},"type":"array","title":"Casinos","default":[]}},"type":"object","required":["id","name"],"title":"TableOut"},"TeamRouteIn":{"properties":{"account_id":{"type":"integer","title":"Account Id"}},"type":"object","required":["account_id"],"title":"TeamRouteIn"},"TemplateBlockCreate":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"type":{"$ref":"#/components/schemas/PromptType","default":"text"},"prompt_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Id"},"sort":{"type":"integer","title":"Sort","default":1}},"type":"object","required":["key","title"],"title":"TemplateBlockCreate"},"TemplateBlockOut":{"properties":{"id":{"type":"integer","title":"Id"},"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"type":{"$ref":"#/components/schemas/PromptType"},"prompt_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Id"},"prompt_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Name"},"sort":{"type":"integer","title":"Sort"},"link_home":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Link Home"}},"type":"object","required":["id","key","title","type","sort"],"title":"TemplateBlockOut"},"TemplateBlockUpdate":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"type":{"anyOf":[{"$ref":"#/components/schemas/PromptType"},{"type":"null"}]},"prompt_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompt Id"},"sort":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort"},"link_home":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Link Home"}},"type":"object","title":"TemplateBlockUpdate"},"TemplateCreate":{"properties":{"name":{"type":"string","title":"Name"},"colors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Colors"}},"type":"object","required":["name"],"title":"TemplateCreate"},"TemplateOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"base_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Base Id"},"colors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Colors"},"kind":{"type":"string","title":"Kind","default":"blocks"},"blocks":{"items":{"$ref":"#/components/schemas/TemplateBlockOut"},"type":"array","title":"Blocks","default":[]}},"type":"object","required":["id","name"],"title":"TemplateOut"},"TemplatePageDetailOut":{"properties":{"id":{"type":"integer","title":"Id"},"template_id":{"type":"integer","title":"Template Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"is_home":{"type":"boolean","title":"Is Home","default":false},"html_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html File"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"layout":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Layout"},"blocks":{"items":{"$ref":"#/components/schemas/TemplateBlockOut"},"type":"array","title":"Blocks","default":[]}},"type":"object","required":["id","template_id","key","name"],"title":"TemplatePageDetailOut"},"TemplatePageIn":{"properties":{"name":{"type":"string","title":"Name"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"html_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html File"},"sort":{"type":"integer","title":"Sort","default":1},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"layout":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Layout"}},"type":"object","required":["name"],"title":"TemplatePageIn"},"TemplatePageOut":{"properties":{"id":{"type":"integer","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"is_home":{"type":"boolean","title":"Is Home","default":false},"sort":{"type":"integer","title":"Sort","default":1},"html_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html File"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"layout":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Layout"},"blocks_count":{"type":"integer","title":"Blocks Count","default":0}},"type":"object","required":["id","key","name"],"title":"TemplatePageOut"},"TemplatePageUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"html_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html File"},"sort":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"layout":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Layout"}},"type":"object","title":"TemplatePageUpdate"},"TemplateRowOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"blocks_count":{"type":"integer","title":"Blocks Count","default":0},"pages_count":{"type":"integer","title":"Pages Count","default":0},"base_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Base Id"},"hidden":{"type":"boolean","title":"Hidden","default":false}},"type":"object","required":["id","name"],"title":"TemplateRowOut"},"TemplateUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"colors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Colors"}},"type":"object","title":"TemplateUpdate"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"user":{"$ref":"#/components/schemas/UserOut"}},"type":"object","required":["access_token","user"],"title":"TokenResponse"},"TranslationIn":{"properties":{"group_name":{"type":"string","title":"Group Name"},"subgroup":{"type":"string","title":"Subgroup","default":""},"key":{"type":"string","title":"Key"},"values":{"additionalProperties":{"type":"string"},"type":"object","title":"Values","default":{}}},"type":"object","required":["group_name","key"],"title":"TranslationIn"},"TranslationOut":{"properties":{"id":{"type":"integer","title":"Id"},"group_name":{"type":"string","title":"Group Name"},"subgroup":{"type":"string","title":"Subgroup","default":""},"key":{"type":"string","title":"Key"},"path":{"type":"string","title":"Path"},"values":{"additionalProperties":{"type":"string"},"type":"object","title":"Values","default":{}}},"type":"object","required":["id","group_name","key","path"],"title":"TranslationOut"},"UserCreate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"is_super_admin":{"type":"boolean","title":"Is Super Admin","default":false},"role_slugs":{"items":{"type":"string"},"type":"array","title":"Role Slugs","default":[]}},"type":"object","required":["name","email","password"],"title":"UserCreate"},"UserOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"view_team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"View Team Id"},"is_super_admin":{"type":"boolean","title":"Is Super Admin","default":false},"can_casinos":{"type":"boolean","title":"Can Casinos","default":false},"can_slots":{"type":"boolean","title":"Can Slots","default":false},"can_catch":{"type":"boolean","title":"Can Catch","default":false},"can_switch_team":{"type":"boolean","title":"Can Switch Team","default":false},"caps":{"items":{"type":"string"},"type":"array","title":"Caps","default":[]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"roles":{"items":{"$ref":"#/components/schemas/RoleOut"},"type":"array","title":"Roles","default":[]}},"type":"object","required":["id","name","email"],"title":"UserOut"},"UserRowOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"is_super_admin":{"type":"boolean","title":"Is Super Admin","default":false},"roles":{"items":{"$ref":"#/components/schemas/RoleOut"},"type":"array","title":"Roles","default":[]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","email"],"title":"UserRowOut"},"UserUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Team Id"},"is_super_admin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Super Admin"},"role_slugs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Role Slugs"}},"type":"object","title":"UserUpdate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VariableCreate":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value","default":""}},"type":"object","required":["key","name"],"title":"VariableCreate"},"VariableOut":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"key":{"type":"string","title":"Key"},"token":{"type":"string","title":"Token"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"},"editable":{"type":"boolean","title":"Editable"}},"type":"object","required":["key","token","name","value","editable"],"title":"VariableOut"},"VariableUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","title":"VariableUpdate"},"ZabbixSettingsBody":{"properties":{"zabbix_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zabbix Url"},"zabbix_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zabbix Token"},"zabbix_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zabbix Template Id"},"zabbix_pbn_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zabbix Pbn Template Id"},"zabbix_required":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zabbix Required"},"zabbix_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Zabbix Enabled"}},"type":"object","title":"ZabbixSettingsBody"},"ZoneIn":{"properties":{"zone":{"type":"string","title":"Zone","default":""},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"max_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Price"},"routes":{"items":{"$ref":"#/components/schemas/ZoneRouteIn"},"type":"array","title":"Routes","default":[]}},"type":"object","title":"ZoneIn"},"ZoneOut":{"properties":{"id":{"type":"integer","title":"Id"},"zone":{"type":"string","title":"Zone"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"max_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Price"},"routes":{"items":{"$ref":"#/components/schemas/ZoneRouteOut"},"type":"array","title":"Routes","default":[]}},"type":"object","required":["id","zone"],"title":"ZoneOut"},"ZoneRouteIn":{"properties":{"team_id":{"type":"integer","title":"Team Id"},"account_id":{"type":"integer","title":"Account Id"}},"type":"object","required":["team_id","account_id"],"title":"ZoneRouteIn"},"ZoneRouteOut":{"properties":{"team_id":{"type":"integer","title":"Team Id"},"account_id":{"type":"integer","title":"Account Id"},"account_name":{"type":"string","title":"Account Name","default":""},"registrar_name":{"type":"string","title":"Registrar Name","default":""}},"type":"object","required":["team_id","account_id"],"title":"ZoneRouteOut"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}