mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-08-04 14:37:36 +00:00
Новые эндпоинты: - GET /tokens/scopes (api_tokens_management.get_scopes) - GET /users/stream — keyset-пагинация (users.get_users_stream) - PATCH /hosts/bulk/update (hosts_bulk_actions.update_hosts) - POST /bandwidth-stats/nodes/users (bandwidthstats.get_stats_nodes_users_usage) Удалённые эндпоинты (вслед за API): - POST /hosts/bulk/set-inbound, /hosts/bulk/set-port (заменены update_hosts) - POST /system/tools/happ/encrypt Изменения моделей: - Hosts: tags (вместо tag), mihomoIpVersion, pinnedPeerCertSha256, verifyPeerCertByName, finalMask, xhttpExtraParams; fingerprint -> str; удалены tag/allowInsecure (с обратной совместимостью через свойства) - API-токены: name/expiresInDays/scopes, tokens/enabled; новый enum Scope (полный каталог scope-ов v2.8.0) - Nodes: nodeConsumptionMultiplier, note, proxyUrl; тело RestartNodeRequestBodyDto - trafficLimitBytes int -> float (users, nodes, bulk-actions) - Infra billing: name, nullable nodeUuid, обязательное nextBillingAt - HWID: requestIp; webhook-события (user/service) обновлены - Новый enum MihomoIpVersion Исправления: - Bulk-ответы хостов переведены на RootModel (раньше падали с ValueError) - revoke_user_subscription: исправлен порядок Annotated/Optional (тело терялось) - Restart*RequestBodyDto: populate_by_name (force_restart игнорировался) Зависимости: - Убраны избыточные пины pydantic и pydantic-core (покрыты pydantic[email]) - requires-python <3.14 -> <3.15, добавлен классификатор Python 3.14 Версия пакета 2.7.1 -> 2.8.0. |
||
|---|---|---|
| .. | ||
| .env.test | ||
| __init__.py | ||
| conftest.py | ||
| run_tests.sh | ||
| test_auth.py | ||
| test_bandwidthstats.py | ||
| test_config_profiles.py | ||
| test_controllers_completeness.py | ||
| test_enums.py | ||
| test_hosts.py | ||
| test_hwid.py | ||
| test_inbounds.py | ||
| test_infra_billing.py | ||
| test_internal_squads.py | ||
| test_keygen.py | ||
| test_metadata.py | ||
| test_models_validation.py | ||
| test_node_plugins.py | ||
| test_nodes.py | ||
| test_snippets.py | ||
| test_sub_page.py | ||
| test_sub_requests.py | ||
| test_subscription.py | ||
| test_subscription_request_history.py | ||
| test_subscriptions_settings.py | ||
| test_subscriptions_template.py | ||
| test_system.py | ||
| test_users.py | ||
| test_users_bulk_actions.py | ||
| test_utils.py | ||
| utils.py | ||