Commit graph

23 commits

Author SHA1 Message Date
Artem
9c1b478fcf
feat: Обновить модели для поддержки необязательных полей и улучшить валидацию 2026-03-28 20:16:04 +01: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
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
32d99f3f2d
feat: добавить поддержку переупорядочивания профилей, внешних и внутренних отрядов, а также шаблонов подписок 2026-02-18 01:36:31 +01: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
f1503b2fda
fix: исправить алиасы в эндпоинтах и удалить неиспользуемые DTO 2025-12-03 05:31:17 +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
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
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
Artem
8a84503191
feat: добавить эндпоинт для получения сырой подписки по короткому UUID и обновить модели подписки 2025-08-21 23:58:28 +02:00
Artem
cb599df003
feat: Добавить тесты для валидации вебхука в test_utils.py 2025-07-09 03:01:35 +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
Artem
6e90ab89e9
feat: Восстановить тест revoke_user_subscription в test_users.py 2025-07-02 23:04:34 +02:00
Artem
f782ecbd46
feat: Обновить файл .env.test, добавив переменную REMNAWAVE_CONFIG_PROFILE_UUID 2025-07-01 15:07:57 +02:00
Artem
41389d4205
Refactor SDK for Remnawave API v2.0.0 compatibility
- Updated models and response structures to align with API v2.0.0 specifications.
- Enhanced response handling to support both wrapped and unwrapped API responses.
- Added new controllers for ConfigProfiles, InternalSquads, InfraBilling, and NodesUsageHistory.
- Implemented RootModel patterns for list responses, allowing direct iteration and indexing.
- Updated tests to validate new models and endpoints, ensuring 20 out of 21 tests pass with real API integration.
- Fixed various bugs related to response handling and model validation.
- Documented migration path and breaking changes for users upgrading from v1.x to v2.0.0.
2025-07-01 15:06:07 +02:00
Artem
641d70a495
feat: Обновить модель HWIDUserResponseDtoList, изменив поле response на devices 2025-06-18 04:05:28 +02:00
Artem
4507d9a60b
feat: Добавить поддержку OAuth2 Telegram и новые модели для тегов и отзыва пользователей 2025-05-17 15:03:40 +02:00
Artem
44dfb1b010
feat: Добавить тесты для HWIDUserController, включая методы получения, добавления и удаления HWID 2025-05-08 15:53:31 +02:00
Artem
f47cda9378
feat: Add models for subscriptions, users, and system statistics
- Implemented TemplateResponseDto and UpdateTemplateRequestDto for subscription templates.
- Created models for system statistics including CPU, memory, and bandwidth.
- Developed user models for user creation, updates, and responses.
- Added bulk actions for user updates and statistics tracking.
- Introduced tests for authentication, bandwidth statistics, hosts, inbounds, key generation, nodes, subscriptions, and user management.
- Enhanced utility functions for generating random strings, emails, and date ranges for testing.
2025-04-21 20:44:27 +02:00