Commit graph

33 commits

Author SHA1 Message Date
Artem
0f95dd4129
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-02 02:48:33 +02:00
Artem
294d70e8c6 feat: Обновить SDK до Remnawave API v2.8.0
Новые эндпоинты:
- 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.
2026-06-30 22:47:15 +02:00
Artem
4dae576fc5
feat: Добавить обработку данных события устройства пользователя в метод extract_user_hwid_event_data 2026-04-03 17:07:18 +02:00
Artem
3e6be1f4b4
feat: Add new endpoints for fetching user IPs and recap statistics
- Implemented `fetch_users_ips` and `get_fetch_users_ips_result` in `IpControlController`.
- Added `get_recap` endpoint in `SystemController`.
- Introduced new models for user IP fetching and recap statistics in `models/ip_control.py` and `models/system.py`.
- Updated existing models and enums to accommodate new features.
- Added tests for new endpoints and model validations.
2026-03-28 19:51:37 +01:00
Artem
a880da073f
feat: обновить модели для поддержки плавающих значений и улучшить валидацию 2026-03-11 13:26:01 +01:00
Artem
0ed1ce92c0
feat: Introduce metadata management for users and nodes
- Added MetadataController for handling user and node metadata.
- Implemented models for user and node metadata management.
- Created tests for user and node metadata functionalities.
- Enhanced authentication settings with passkey and OAuth2 configurations.
- Added bulk actions for node updates and responses.
- Refactored existing models to accommodate new features and improve structure.
- Removed obsolete test_imports.py file.
- Updated environment variables for testing.
- Improved error handling in subscription tests.
- Added new node plugin functionalities including cloning and execution commands.
2026-03-11 12:35:42 +01:00
Artem
b57ef9469b
feat: добавить контроллер IP управления и модели для работы с IP-адресами 2026-02-24 22:53:41 +01:00
Artem
32d99f3f2d
feat: добавить поддержку переупорядочивания профилей, внешних и внутренних отрядов, а также шаблонов подписок 2026-02-18 01:36:31 +01:00
Artem
6c9fa202ad
feat: обновить версию SDK до 2.6.1 и добавить поддержку тегов узлов и обновления паролей 2026-02-18 01:13:33 +01:00
masasibata
34595a5e5b feat: add nodes bulk actions and revoke-only-passwords support 2026-02-10 18:23:13 +03:00
Artem
93987d7452
feat: обновить маршруты и добавить поддержку профилей для модификации в контроллерах и моделях 2026-01-17 12:00:30 +01:00
Artem
ba1a221593
feat: Update Remnawave SDK to version 2.4.4 with new subscription page management features
- Bump version to 2.4.4 and update description in pyproject.toml
- Refactor RemnawaveSDK to include SubscriptionPageConfigController
- Introduce new subscription page management endpoints:
  - Get, create, update, delete, reorder, and clone subscription page configs
- Remove deprecated NodesUsageHistoryController and UsersStatsController
- Add new bandwidth stats models and endpoints for legacy and new stats
- Enhance tests for bandwidth stats and subscription page management
- Ensure backward compatibility with legacy endpoints while introducing new stats models
2025-12-25 22:30:53 +01:00
Artem
b087d75808
feat: обновить версии API и добавить новые модели для работы с HWID и пользователями 2025-12-10 05:39:29 +01:00
Artem
f1503b2fda
fix: исправить алиасы в эндпоинтах и удалить неиспользуемые DTO 2025-12-03 05:31:17 +01:00
Artem
38a57b3e31
feat: обновить модели пользователей и добавить новые DTO для работы с пользователями и их подписками 2025-11-30 02:09:32 +01:00
Artem
91ac8ef33e
fix: Обновить версии API и добавить новые модели и исключения для управления трафиком узлов и внешними отрядами 2025-11-12 00:01:39 +01:00
Artem
9e2822774a
feat: Enhance subscription and external squad management
- Updated NodeUsageDto to include node_uuid and changed date to datetime.
- Changed total fields in subscription and subscription request history models from float to int.
- Introduced response rules and conditions for subscription settings, including new models for response modifications.
- Added external squads management with CRUD operations and associated models.
- Implemented passkey management with registration and verification endpoints.
- Enhanced snippets management with full CRUD operations and validation.
- Added OAuth2 provider enum for better authentication handling.
2025-10-28 00:44:15 +01:00
Artem
0a627eed81
Обновить версию SDK до 2.1.19; добавить новые DTO для истории биллинга и упрощенных моделей провайдеров; переименовать и изменить существующие DTO для соответствия новому API 2025-10-13 04:35:39 +02:00
Artem
936c006b9b
Обновить версии SDK до 2.1.18 и 2.1.17; добавить новые DTO для обработки вебхуков и обновить существующие модели 2025-10-11 21:40:52 +02:00
Artem
1141e4ed93
Добавить классы и типы для обработки вебхуков; обновить модели и перечисления для поддержки новых событий 2025-10-04 01:28:29 +02:00
Artem
c2cb9b12ca
Обновить версию SDK до 2.1.16.post.b; добавить классы для обработки вебхуков и их валидации 2025-10-03 02:06:08 +02:00
Artem
3f0b5af2cf
Refactor tests for HWID, subscriptions, system, and users; add subscription request history functionality
- Restructured HWID tests into classes for better organization and clarity.
- Enhanced subscription tests to cover additional scenarios and improved assertions.
- Introduced new tests for system statistics and monitoring.
- Implemented CRUD operations for user management with comprehensive test coverage.
- Added new controllers and models for handling subscription request history.
- Created tests for subscription request history, including pagination and statistics.
- Improved error handling in tests to skip when exceptions occur.
2025-10-02 01:46:17 +02:00
Artem
0fc43ee610
Обновить версию SDK до 2.1.13 и добавить новые эндпоинты для получения статистики HWID и удаления всех устройств пользователя 2025-09-16 21:51:23 +02:00
avaritia-dev
ac027cd515 Add delete all devices 2025-09-16 05:15:41 +03:00
Artem
c8e13c41af
Aktualizacja do wersji 2.1.8:
- Zmieniono wersję pakietu z 2.1.7.post1 na 2.1.8 w pliku pyproject.toml oraz README.md.
- Przeniesiono endpoint `/sub/{short_uuid}/raw` z `SubscriptionController` do `SubscriptionsController`.
- Rozszerzono modele subskrypcji o dodatkowe informacje o użytkowniku, połączeniach, hasłach i wykorzystaniu ruchu.
- Dodano nowy endpoint `/system/tools/x25519/generate` do generowania pary kluczy X25519.
- Uzupełniono klasyfikatory projektu o nowe tematy w `pyproject.toml`.

Zmiany poprawiają strukturę API, rozszerzają możliwości diagnostyczne oraz wprowadzają nową funkcjonalność kryptograficzną.
2025-09-04 01:13:16 +02:00
Artem
97ef97bd46
feat: Обновить bulk actions, удалить функции связанные с inbounds, взамен добавить функции связанные с squads. Так-же удалены inbounds c моделей пользователя 2025-08-30 21:46:34 +02:00
Artem
5f04c2eca9
feat: обновить версию SDK до 2.1.7, добавить контроллер подписок и новые модели для работы с подписками 2025-08-30 20:09:05 +02:00
Artem
f9d9af7f27 feat: обновить версию SDK до 2.1.4 и добавить поддержку запроса перезапуска всех узлов 2025-08-27 00:27:29 +02:00
Artem
8e34b50c6c feat: добавить модель TagUserResponseDto и обновить контроллер пользователей для использования новой модели 2025-08-25 15:38:14 +02:00
Artem
8a84503191
feat: добавить эндпоинт для получения сырой подписки по короткому UUID и обновить модели подписки 2025-08-21 23:58:28 +02:00
Artem
a117f61204 feat: добавить модель GetInternalSquadAccessibleNodesResponseDto и эндпоинт для получения доступных узлов внутренней группы 2025-08-15 23:11:16 +02:00
Artem
08f2146d41 feat: add nodes metrics endpoint - метод get_nodes_metrics()
feat: add host tags management - метод get_hosts_tags()
feat: add advanced host options - поля tag, isHidden, muxParams, sockoptParams
update: relax validation - username min 3 chars, node name min 3 chars
update: reduce host description - max 30 chars (было 50)
update: add name fields - для config profiles и internal squads

‼️ fix: remove tokenDescription - убрано из CreateApiTokenRequestDto
2025-08-14 15:01:15 +02:00
Artem
950a7ffab3
Add Pydantic models for nodes usage history, subscriptions, and user management
- Implemented models for nodes usage history including NodeInfoDto, GetUserAccessibleNodesResponse, and usage statistics.
- Created subscription-related models such as UserSubscription, SubscriptionInfoData, and various response DTOs for subscription information.
- Developed models for subscription settings, templates, and system statistics, enhancing the API's capability to manage and retrieve subscription configurations.
- Introduced user management models including CreateUserRequestDto, UpdateUserRequestDto, and various response DTOs for user actions.
- Added bulk actions for user updates and statistics tracking, improving the efficiency of user management operations.
- Established a base controller for handling API requests and responses, along with decorators for HTTP methods to streamline API interactions.
- Included utility functions for serialization using orjson for better performance with Pydantic models.
2025-07-03 12:22:16 +02:00