feat(client): expose secret-free profile summary

This commit is contained in:
QiuSW
2026-08-05 01:59:35 +08:00
parent 404d0d3ca4
commit 20112dbd61
3 changed files with 53 additions and 1 deletions
@@ -51,6 +51,18 @@ class LoadedProfile:
return f"LoadedProfile(settings={self.settings!r}, credentials=[已隐藏])"
@dataclass(frozen=True)
class ProfileSummary:
"""不解密、不返回任何 token 数据的配置页只读摘要。"""
settings: ProfileSettings
has_stored_device_token: bool
def __post_init__(self) -> None:
if type(self.has_stored_device_token) is not bool:
raise ValueError("invalid_token_presence")
@dataclass(frozen=True)
class PollingSession:
profile_id: str