Commit graph

45 commits

Author SHA1 Message Date
Artem
9a3dff13cb chore: initial commit after migration from sm1ky/remnawave-api 2025-07-29 17:12:53 +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
93b15cb254
feat: Обновить раздел "Комплексное тестирование" в MIGRATION_V2.md, удалив информацию о тестах 2025-07-01 15:09:40 +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
060b2f2d70
feat: Обновить модели для поддержки новых типов данных и улучшить валидацию полей 2025-06-21 23:41:57 +02:00
Artem
641d70a495
feat: Обновить модель HWIDUserResponseDtoList, изменив поле response на devices 2025-06-18 04:05:28 +02:00
Artem
63d9980a8d
feat: Обновить совместимые версии в таблице README.md для версии 1.1.2 2025-06-06 21:03:04 +02:00
Artem
7c671b86ee
feat: Добавить новые поля в модели SubscriptionSettingsResponseDto и UpdateSubscriptionSettingsRequestDto 2025-05-19 22:08:30 +02:00
Artem
ccdaf96510
feat: Увеличить максимальную длину имени пользователя до 36 символов в CreateUserRequestDto 2025-05-19 17:54:19 +02:00
Artem
2cbc9f1c1e
feat: Обновить модели пользователей, добавив новые поля для сети и безопасности, а также временные метки создания и обновления (c74fa1ccc4) 2025-05-19 17:10:46 +02:00
Artem
4507d9a60b
feat: Добавить поддержку OAuth2 Telegram и новые модели для тегов и отзыва пользователей 2025-05-17 15:03:40 +02:00
Artem
5f86d7383c
feat: Обновить совместимые версии в таблице README.md для добавления версии 1.6.2 [skip publish] 2025-05-14 17:43:14 +02:00
Artem
991fb80dbd
feat: Обновить ссылки в pyproject.toml, заменив документацию на страницу панели 2025-05-11 15:46:21 +02:00
Artem
03aa34bfb7
feat: Удалить упоминание о проверке библиотеки с Remnawave v1.6.0 из README.md [skip publish] 2025-05-11 15:44:21 +02:00
Artem
3a2e87897a
feat: Обновить модель пользователя для поддержки тега и добавить новый эндпоинт для получения пользователей по тегу 2025-05-11 15:42:50 +02:00
Artem
f04d2afe4a
feat: Удалить шаг инспекции METADATA из рабочего процесса публикации 2025-05-10 21:14:45 +02:00
Artem
4d44461949
feat: Добавить раздел совместимых версий в README.md [skip publish] 2025-05-10 21:13:30 +02:00
Artem
8f1a8583b9
feat: Обновить инструкции установки в README.md для установки dev-версии 2025-05-08 17:18:36 +02:00
Artem
44dfb1b010
feat: Добавить тесты для HWIDUserController, включая методы получения, добавления и удаления HWID 2025-05-08 15:53:31 +02:00
Artem
e45324075d
feat: Изменить инициализацию WebhookUtility без клиента; добавить HWIDUserController 2025-05-08 15:06:31 +02:00
Artem
b238672b9b
feat: Добавить HWIDUserController и WebhookUtility в класс RemnawaveSDK 2025-05-08 14:54:56 +02:00
Artem
05e456936d
feat: Добавить зависимость pydantic в pyproject.toml для обеспечения совместимости 2025-05-05 16:03:54 +02:00
Artem
ac45a0b964
feat: Update .gitignore to include requirements.txt and requirements.in; modify dependencies in pyproject.toml for pydantic and pydantic-core 2025-05-05 15:36:43 +02:00
Artem
80664e2d03
feat: Update library version to 1.1.0 and README for compatibility with Remnawave v1.6.0 2025-05-02 17:40:42 +02:00
Artem
c64756aed1
feat: Add HWIDUserController to the API controllers; update __all__ exports
fix: Remove unused BulkDeleteUsersByStatusRequestDto and BulkDeleteUsersRequestDto from models
2025-05-02 17:19:31 +02:00
Artem
42f1bfa066
feat: Refactor API endpoints and models for HWID management; add new HWID user controller and models 2025-05-02 15:05:31 +02:00
Artem
2b29f74087
feat: Update user models with new fields and types; add support for hwidDeviceLimit and HappCrypto 2025-04-29 23:51:20 +02:00
Artem
15ae9e6a20
feat: Update version to 1.0.7 in pyproject.toml; add WebhookUtility for webhook validation 2025-04-27 00:23:57 +02:00
Artem
167eca47de
fix: Remove unnecessary parameters from PyPI publish action in upload workflow. Enable Trusted Publisher 2025-04-24 21:46:08 +02:00
Artem
da24ecdf14
feat: Update version to 1.0.6 in pyproject.toml; enhance UsersController with pagination parameters 2025-04-24 21:43:39 +02:00
Artem
ab4fe9d399
feat: Bump version to 1.0.5 in pyproject.toml; refactor UsersController to use default parameters for pagination 2025-04-24 19:50:41 +02:00
Artem
15cfb16c67
feat: Update README and pyproject.toml for version 1.0.4; enhance UsersController with pagination support 2025-04-24 19:46:48 +02:00
Artem
adc37ab126
feat: Update SDK initialization to include caddy_token and enhance header preparation (Issue #6) 2025-04-24 19:39:16 +02:00
Artem
19d085d8da
docs: Clarify installation instructions in README.md 2025-04-24 12:25:35 +02:00
Artem
45cd100042
feat: Update version to 1.0.2 in pyproject.toml 2025-04-23 17:29:56 +02:00
Artem
930f9f1c1d
feat: Update dependencies in pyproject.toml and add test.py to .gitignore 2025-04-23 17:29:05 +02:00
Artem
4195450e62
feat: Refactor API token management models and update response types in controller 2025-04-23 00:00:23 +02:00
Artem
db0ace586f
feat: Update author name in pyproject.toml and enhance README with correct download badge 2025-04-21 20:58:23 +02:00
Artem
99c2031778
feat: Update package name and version in pyproject.toml; enhance README with additional badges [skip-ci] 2025-04-21 20:54:18 +02:00
Artem
595d446122
feat: Remove dependency on bump-version in GitHub Actions workflow 2025-04-21 20:49:16 +02:00
Artem
edb8dfeb4b
feat: Restore GitHub Actions workflow for publishing Python package 2025-04-21 20:47:45 +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