Add api/v1/config/warp/... schemas

This commit is contained in:
Iam54r1n4
2025-01-26 11:18:28 +00:00
parent eaf12d85dd
commit e711e5fc34

View File

@ -0,0 +1,18 @@
from pydantic import BaseModel
from typing import Literal
class ConfigureInputBody(BaseModel):
all: bool = False
popular_sites: bool = False
domestic_sites: bool = False
block_adult_sites: bool = False
warp_option: Literal['warp', 'warp plus', ''] = ''
warp_key: str = ''
class StatusResponse(BaseModel):
all_traffic: bool
popular_sites: bool
domestic_sites: bool
block_adult_sites: bool