This commit is contained in:
riglen
2026-03-31 17:00:00 +08:00
parent 09a9faa1be
commit fb39e6ee40
6 changed files with 345 additions and 18 deletions

View File

@@ -7,7 +7,7 @@ from pydantic import BaseModel, Field, HttpUrl
class SourceConfig(BaseModel):
enabled: bool = True
kind: Literal["clash_yaml"] = "clash_yaml"
kind: Literal["auto", "clash_yaml", "base64_uri", "uri"] = "auto"
url: str
display_name: str | None = None
headers: dict[str, str] = Field(default_factory=dict)