Remnawave_python-sdk/remnawave/enums/subscriptions_settings.py
Artem 9e2822774a
feat: Enhance subscription and external squad management
- 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.
2025-10-28 00:44:15 +01:00

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"