diff --git a/core/scripts/webpanel/routers/api/v1/schema/config/warp.py b/core/scripts/webpanel/routers/api/v1/schema/config/warp.py new file mode 100644 index 0000000..cc69af3 --- /dev/null +++ b/core/scripts/webpanel/routers/api/v1/schema/config/warp.py @@ -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