feat: add user preferences migration and context

This commit is contained in:
2026-02-03 16:09:50 +08:00
parent abe0dc131b
commit 555bf38b71
21 changed files with 931 additions and 79 deletions

View File

@@ -118,3 +118,11 @@ class AliyunKeyUpdate(BaseModel):
class AliyunKeyVerifyResponse(BaseModel):
valid: bool
message: str
class UserPreferences(BaseModel):
default_backend: str = Field(default="local", pattern="^(local|aliyun)$")
onboarding_completed: bool = Field(default=False)
class UserPreferencesResponse(BaseModel):
default_backend: str
onboarding_completed: bool