feat: обновить версию SDK до 2.1.9, добавить поле vless_route_id в модели запросов и ответов

This commit is contained in:
Artem 2025-09-10 01:16:19 +02:00
parent 5ec4376f2e
commit 23bba3e8ff
No known key found for this signature in database
GPG key ID: 833485276B7902CE
3 changed files with 20 additions and 3 deletions

View file

@ -63,7 +63,8 @@ pip install git+https://github.com/remnawave/python-sdk.git@development
| Contract Version | Remnawave Panel Version |
| ---------------- | ----------------------- |
| 2.1.8 | >=2.1.8 |
| 2.1.9 | >=2.1.9 |
| 2.1.8 | ==2.1.8 |
| 2.1.7.post1 | ==2.1.7 |
| 2.1.4 | >=2.1.4, <2.1.7 |
| 2.1.1 | >=2.1.1, <2.1.4 |

View file

@ -1,7 +1,7 @@
[project]
name = "remnawave"
version = "2.1.8"
description = "A Python SDK for interacting with the Remnawave API v2.1.8."
version = "2.1.9"
description = "A Python SDK for interacting with the Remnawave API v2.1.9."
authors = [
{name = "Artem",email = "dev@forestsnet.com"}
]

View file

@ -61,6 +61,12 @@ class UpdateHostRequestDto(BaseModel):
None,
serialization_alias="overrideSniFromAddress",
)
vless_route_id: Optional[int] = Field(
None,
serialization_alias="vlessRouteId",
ge=0,
le=65535
)
class HostInboundData(BaseModel):
@ -114,6 +120,10 @@ class HostResponseDto(BaseModel):
None,
serialization_alias="overrideSniFromAddress",
)
vless_route_id: Optional[int] = Field(
None,
serialization_alias="vlessRouteId",
)
# Legacy compatibility property
@property
@ -210,6 +220,12 @@ class CreateHostRequestDto(BaseModel):
server_description: Optional[str] = Field(
None, alias="serverDescription", max_length=30
)
vless_route_id: Optional[int] = Field(
None,
serialization_alias="vlessRouteId",
ge=0,
le=65535
)
# Legacy compatibility property
@property