mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-08-03 22:25:14 +00:00
- 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.
25 lines
No EOL
843 B
Python
25 lines
No EOL
843 B
Python
from typing import Annotated
|
|
|
|
from rapid_api_client.annotations import PydanticBody
|
|
|
|
from remnawave.models import (
|
|
GetRemnawaveSettingsResponseDto,
|
|
UpdateRemnawaveSettingsRequestDto,
|
|
UpdateRemnawaveSettingsResponseDto,
|
|
)
|
|
from remnawave.rapid import BaseController, get, patch
|
|
|
|
|
|
class RemnawaveSettingsController(BaseController):
|
|
@get("/remnawave-settings", response_class=GetRemnawaveSettingsResponseDto)
|
|
async def get_settings(self) -> GetRemnawaveSettingsResponseDto:
|
|
"""Get Remnawave settings"""
|
|
...
|
|
|
|
@patch("/remnawave-settings", response_class=UpdateRemnawaveSettingsResponseDto)
|
|
async def update_settings(
|
|
self,
|
|
body: Annotated[UpdateRemnawaveSettingsRequestDto, PydanticBody()],
|
|
) -> UpdateRemnawaveSettingsResponseDto:
|
|
"""Update Remnawave settings"""
|
|
... |