Remnawave_python-sdk/remnawave_api/models/__init__.py
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

167 lines
4.6 KiB
Python

from .api_tokens_management import CreateApiTokenRequestDto
from .auth import (
LoginRequestDto,
LoginResponseDto,
RegisterRequestDto,
RegisterResponseDto,
StatusResponseDto,
)
from .bandwidthstats import NodesUsageResponseDto, NodeUsageResponseDto
from .hosts import (
CreateHostRequestDto,
DeleteHostResponseDto,
HostResponseDto,
HostsResponseDto,
ReorderHostRequestDto,
ReorderHostResponseDto,
UpdateHostRequestDto,
)
from .hosts_bulk_actions import (
BulkDeleteHostsResponseDto,
BulkDisableHostsResponseDto,
BulkEnableHostsResponseDto,
SetInboundToManyHostsRequestDto,
SetInboundToManyHostsResponseDto,
SetPortToManyHostsResponseDto,
)
from .inbounds import (
FullInboundResponseDto,
FullInboundsResponseDto,
InboundResponseDto,
InboundsResponseDto,
FullInboundStatistic
)
from .inbounds_bulk_actions import (
AddInboundToNodesResponseDto,
AddInboundToUsersResponseDto,
RemoveInboundFromNodesResponseDto,
RemoveInboundFromUsersResponseDto,
)
from .keygen import PubKeyResponseDto
from .nodes import (
CreateNodeRequestDto,
DeleteNodeResponseDto,
NodeResponseDto,
NodesResponseDto,
ReorderNodeRequestDto,
RestartNodeResponseDto,
UpdateNodeRequestDto,
ExcludedInbounds
)
from .subscription import SubscriptionInfoResponseDto, UserSubscription
from .subscriptions_settings import (
SubscriptionSettingsResponseDto,
UpdateSubscriptionSettingsRequestDto,
)
from .subscriptions_template import TemplateResponseDto, UpdateTemplateRequestDto
from .system import (
BandwidthStatistic,
BandwidthStatisticResponseDto,
NodesStatisticResponseDto,
StatisticResponseDto,
NodeStatistic,
CPUStatistic,
MemoryStatistic,
StatusCounts,
UsersStatistic,
OnlineStatistic
)
from .users import (
CreateUserRequestDto,
DeleteUserResponseDto,
EmailUserResponseDto,
TelegramUserResponseDto,
UpdateUserRequestDto,
UserActiveInboundsDto,
UserLastConnectedNodeDto,
UserResponseDto,
UsersResponseDto,
)
from .users_bulk_actions import (
BulkAllResetTrafficUsersResponseDto,
BulkAllUpdateUsersRequestDto,
BulkAllUpdateUsersResponseDto,
BulkResponseDto,
BulkUpdateUsersInboundsRequestDto,
UpdateUserFields,
)
from .users_stats import UserUsageByRange, UserUsageByRangeResponseDto
from .xray_config import ConfigResponseDto
__all__ = [
"CPUStatistic",
"MemoryStatistic",
"StatusCounts",
"UsersStatistic",
"OnlineStatistic",
"NodeStatistic",
"ExcludedInbounds",
"FullInboundStatistic",
"ConfigResponseDto",
"AddInboundToNodesResponseDto",
"AddInboundToUsersResponseDto",
"RemoveInboundFromNodesResponseDto",
"RemoveInboundFromUsersResponseDto",
"BulkDeleteHostsResponseDto",
"BulkEnableHostsResponseDto",
"BulkDisableHostsResponseDto",
"SetPortToManyHostsResponseDto",
"SetInboundToManyHostsRequestDto",
"SetInboundToManyHostsResponseDto",
"TemplateResponseDto",
"UpdateTemplateRequestDto",
"SubscriptionSettingsResponseDto",
"UpdateSubscriptionSettingsRequestDto",
"PubKeyResponseDto",
"UserUsageByRange",
"UserUsageByRangeResponseDto",
"BandwidthStatistic",
"BandwidthStatisticResponseDto",
"NodesStatisticResponseDto",
"StatisticResponseDto",
"CreateApiTokenRequestDto",
"UserActiveInboundsDto",
"EmailUserResponseDto",
"CreateUserRequestDto",
"UserResponseDto",
"DeleteUserResponseDto",
"UsersResponseDto",
"TelegramUserResponseDto",
"UpdateUserRequestDto",
"UserLastConnectedNodeDto",
"StatusResponseDto",
"LoginRequestDto",
"LoginResponseDto",
"RegisterRequestDto",
"RegisterResponseDto",
"NodesUsageResponseDto",
"NodeUsageResponseDto",
"HostResponseDto",
"DeleteHostResponseDto",
"CreateHostRequestDto",
"HostsResponseDto",
"ReorderHostResponseDto",
"ReorderHostRequestDto",
"UpdateHostRequestDto",
"FullInboundResponseDto",
"FullInboundsResponseDto",
"InboundResponseDto",
"InboundsResponseDto",
"DeleteNodeResponseDto",
"NodeResponseDto",
"NodesResponseDto",
"CreateNodeRequestDto",
"ReorderNodeRequestDto",
"RestartNodeResponseDto",
"UpdateNodeRequestDto",
"SubscriptionInfoResponseDto",
"UserSubscription",
"BulkAllResetTrafficUsersResponseDto",
"BulkAllUpdateUsersRequestDto",
"BulkAllUpdateUsersResponseDto",
"UpdateUserFields",
"BulkDeleteUsersByStatusRequestDto",
"BulkDeleteUsersRequestDto",
"BulkResponseDto",
"BulkUpdateUsersInboundsRequestDto",
]