{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/webapi/sub/state":{"post":{"summary":"Api State","operationId":"api_state_webapi_sub_state_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/devices/unlink":{"post":{"summary":"Api Unlink","operationId":"api_unlink_webapi_devices_unlink_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/devices/unlink/status":{"post":{"summary":"Api Unlink Status","operationId":"api_unlink_status_webapi_devices_unlink_status_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/bind/start":{"post":{"summary":"Api Bind Start","operationId":"api_bind_start_webapi_bind_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/auth":{"post":{"summary":"Api Auth","operationId":"api_auth_webapi_auth_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/me":{"post":{"summary":"Api Me","operationId":"api_me_webapi_me_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/app-config":{"post":{"summary":"Api App Config","operationId":"api_app_config_webapi_app_config_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/devices":{"post":{"summary":"Api Devices","operationId":"api_devices_webapi_devices_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/devices/remove":{"post":{"summary":"Api Device Remove","description":"Отвязка в мини-приложении — сразу: владелец уже подтверждён сессией Telegram.\nЛимит отвязок в сутки общий с ботом и страницей подписки.","operationId":"api_device_remove_webapi_devices_remove_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/plans":{"post":{"summary":"Api Plans","operationId":"api_plans_webapi_plans_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/invoice":{"post":{"summary":"Api Invoice","description":"Ссылка на счёт Stars для openInvoice. Повтор в течение INVOICE_TTL отдаёт ту же ссылку.","operationId":"api_invoice_webapi_invoice_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/trial":{"post":{"summary":"Api Trial","description":"Пробный период — та же логика, что в чате (bot._activate_trial_locked): только новым,\nатомарная бронь, при сбое панели бронь снимается, если подписка не появилась.","operationId":"api_trial_webapi_trial_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapi/crypto":{"post":{"summary":"Api Crypto","description":"Счёт CryptoBot в рублях — тот же, что в чате (cryptobot.create_invoice); выдачу делает\nсуществующий вебхук /cryptobot. Ссылка открывается в @CryptoBot.","operationId":"api_crypto_webapi_crypto_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tspu/targets":{"get":{"summary":"Api Targets","operationId":"api_targets_tspu_targets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tspu/pending":{"get":{"summary":"Api Pending","description":"Агенты спрашивают раз в минуту: есть ли заявка на внеочередную проверку.","operationId":"api_pending_tspu_pending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tspu/report":{"post":{"summary":"Api Report","operationId":"api_report_tspu_report_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/locations":{"get":{"summary":"Locations","operationId":"locations_locations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tg/webhook":{"post":{"summary":"Telegram Webhook","operationId":"telegram_webhook_tg_webhook_post","parameters":[{"name":"x-telegram-bot-api-secret-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Telegram-Bot-Api-Secret-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/digiseller/webhook":{"post":{"summary":"Digiseller Delivery","description":"Автовыдача товара Digiseller: при оплате на Plati.Market создаёт\nподписку Remnawave и возвращает ссылку в ответе (поле goods).\n\nЗапрос:  {id, inv, amount, type_curr, sign, options}\nОтвет:   {id, inv, goods, error}","operationId":"digiseller_delivery_digiseller_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/cryptobot/webhook":{"post":{"summary":"Cryptobot Webhook","description":"Приём вебхуков Crypto Pay (@CryptoBot) об оплаченных счетах.","operationId":"cryptobot_webhook_cryptobot_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}