Commit graph

37 commits

Author SHA1 Message Date
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
18776967b4
fix: удалить поле add_username_to_base_subscription из моделей подписки и обновить соответствующие классы 2025-11-26 22:21:50 +01:00
Artem
0afc518964
feat: Add cryptography dependency and implement HAPP crypto link generation
- Added `cryptography` dependency to `pyproject.toml`.
- Introduced `CustomRemarks` and `HwidSettings` models in `subscriptions_settings.py`.
- Updated `UserResponseDto` to include `UserTrafficDto` for better traffic tracking.
- Refactored host models to use dictionaries for `mux_params` and `sockopt_params`.
- Enhanced `CreateHostRequestDto` and `UpdateHostRequestDto` with new fields.
- Implemented `create_happ_crypto_link` function for generating HAPP links.
- Updated various response DTOs to improve structure and backward compatibility.
- Removed deprecated tests related to node user usage history.
2025-11-25 20:42:12 +01:00
Artem
1d9290c427
fix: обновить версию до "2.2.6.post1" в pyproject.toml и добавить поля total и external_squads в GetExternalSquadsResponseDto 2025-11-13 04:12:43 +01:00
Artem
00225e9284
fix: update serialization aliases in user models 2025-11-12 00:17:05 +01:00
Artem
91ac8ef33e
fix: Обновить версии API и добавить новые модели и исключения для управления трафиком узлов и внешними отрядами 2025-11-12 00:01:39 +01:00
Artem
591ff5d120
fix: Добавить поддержку генерации алиасов в моделях CreateUserRequestDto и ConfigData; установить заголовки для HTTPS в RemnawaveSDK 2025-11-02 16:20:25 +01:00
Artem
2986cd3b69
fix: Обновить версию до "2.2.3.post2" в pyproject.toml; изменить hwidDeviceLimit на hwid_device_limit в CreateUserRequestDto и UpdateUserRequestDto 2025-10-30 17:54:06 +01:00
Artem
1b7d5d9bab
Изменить тип поля active_internal_squads на list[UUID] в классах CreateUserRequestDto и UpdateUserRequestDto; добавить поле external_squad_uuid 2025-10-30 12:55:34 +01:00
Artem
4df08683f5
Добавить поле external_squad_uuid и переместить active_internal_squads в класс UpdateUserRequestDto 2025-10-30 12:08:20 +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
31a189ca42
Добавить свойства для доступа к данным пользователя и устройства HWID в классе UserHwidDeviceEventDto 2025-10-18 23:39:39 +02: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
e0abcdce8a
Обновить модели вебхуков: добавить новые DTO для пользователей, устройств HWID, событий и ошибок 2025-10-04 08:42:33 +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
c577813241 fix float in total.. 2025-09-16 05:36:08 +03:00
avaritia-dev
ac027cd515 Add delete all devices 2025-09-16 05:15:41 +03:00
avaritia-dev
2ff3317cc4 fix user models 2025-09-16 05:13:27 +03:00
Artem
23bba3e8ff
feat: обновить версию SDK до 2.1.9, добавить поле vless_route_id в модели запросов и ответов 2025-09-10 01:16:19 +02: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
c1ac9903dd
feat: обновить версию SDK до 2.1.7.post1, добавить поле tag в модель UserResponseDto 2025-09-03 00:00:39 +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
9d7f1ab0d9 feat: добавить поддержку пользовательских заголовков в инициализацию RemnawaveSDK 2025-08-25 15:55:17 +02:00
Artem
b8db6a9241 feat: добавить параметр ssl_ignore в инициализацию RemnawaveSDK для управления проверкой SSL 2025-08-25 15:46:37 +02:00
Artem
d3ad6ea330 feat: добавить модель GetRawSubscriptionByShortUuidResponseDto в модуль подписок 2025-08-25 15:40:44 +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