mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-08-28 12:21:13 +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.
40 lines
No EOL
994 B
Python
40 lines
No EOL
994 B
Python
from enum import StrEnum
|
|
|
|
class ResponseRuleOperator(StrEnum):
|
|
"""Response rule logical operators"""
|
|
AND = "AND"
|
|
OR = "OR"
|
|
|
|
|
|
class ResponseRuleConditionOperator(StrEnum):
|
|
"""Response rule condition operators"""
|
|
EQUALS = "EQUALS"
|
|
NOT_EQUALS = "NOT_EQUALS"
|
|
CONTAINS = "CONTAINS"
|
|
NOT_CONTAINS = "NOT_CONTAINS"
|
|
STARTS_WITH = "STARTS_WITH"
|
|
NOT_STARTS_WITH = "NOT_STARTS_WITH"
|
|
ENDS_WITH = "ENDS_WITH"
|
|
NOT_ENDS_WITH = "NOT_ENDS_WITH"
|
|
REGEX = "REGEX"
|
|
NOT_REGEX = "NOT_REGEX"
|
|
|
|
|
|
class ResponseType(StrEnum):
|
|
"""Response types for subscription rules"""
|
|
XRAY_JSON = "XRAY_JSON"
|
|
XRAY_BASE64 = "XRAY_BASE64"
|
|
MIHOMO = "MIHOMO"
|
|
STASH = "STASH"
|
|
CLASH = "CLASH"
|
|
SINGBOX = "SINGBOX"
|
|
BROWSER = "BROWSER"
|
|
BLOCK = "BLOCK"
|
|
STATUS_CODE_404 = "STATUS_CODE_404"
|
|
STATUS_CODE_451 = "STATUS_CODE_451"
|
|
SOCKET_DROP = "SOCKET_DROP"
|
|
|
|
|
|
class ResponseRuleVersion(StrEnum):
|
|
"""Response rules config version"""
|
|
V1 = "1" |