a10a2db27a
- 新增 visual_design_language.md 设计规范文档 - 新增 auth 设计 tokens (authBackground, authCard, authInput, feedback 系列等) - 重构登录/注册/验证码/重置密码页面为新设计系统 - 新增 AuthHeroHeader, AuthSurfaceCard, AuthSection, AuthField, PasswordField 组件 - 重构 AppBanner 和 Toast 支持多类型配置 (info/success/warning/error) - 后端 AgentScope: 重整 schemas/prompts/tools 作用域, 新增协议文档 - 更新 AGENTS.md 集成视觉设计语言约束
1.3 KiB
1.3 KiB
Profiles Protocol
Note
: This document is the single source of truth. All implementations must follow this specification.
Overview
User profile settings with privacy and notification preferences.
Version
- Current:
1.0 - Status: Active
Preference Settings
Privacy
interface PrivacySettings {
show_email?: boolean;
show_online_status?: boolean;
}
Notification
interface NotificationSettings {
friend_request?: boolean;
calendar_invite?: boolean;
calendar_update?: boolean;
calendar_delete?: boolean;
system_message?: boolean;
}
Profile Settings V1
interface ProfileSettingsV1 {
privacy?: PrivacySettings;
notification?: NotificationSettings;
}
Database Field
| Field | Type | Description |
|---|---|---|
| settings | jsonb | User preferences including privacy and notification settings |
JSON Examples
Default Settings
{
"privacy": {
"show_email": false,
"show_online_status": true
},
"notification": {
"friend_request": true,
"calendar_invite": true,
"calendar_update": true,
"calendar_delete": true,
"system_message": true
}
}
Minimal Settings
{
"notification": {
"friend_request": false
}
}