Files
social-app/docs/protocols/schedule-items.md
T
qzl a10a2db27a feat: 添加视觉设计语言系统并重构认证页面UI
- 新增 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 集成视觉设计语言约束
2026-03-13 14:10:13 +08:00

1.8 KiB

Schedule Items Protocol

Note

: This document is the single source of truth. All implementations must follow this specification.

Overview

Schedule items represent calendar events with metadata, attachments, and sharing capabilities.

Version

  • Current: 1.0
  • Status: Active

Status

type ScheduleItemStatus = 'active' | 'completed' | 'canceled' | 'archived';

Source Type

type ScheduleItemSourceType = 'manual' | 'imported' | 'agent_generated';

Metadata Schema

Attachment Type

type AttachmentType = 'document' | 'reminder';

Attachment

interface ScheduleItemMetadataAttachment {
  name: string;
  type: AttachmentType;
  visible_to: string[];  // UUIDs
  url?: string;
  note?: string;
  content?: string;
}

Metadata

interface ScheduleItemMetadata {
  color?: string;  // "#RRGGBB" format
  location?: string;
  notes?: string;
  attachments?: ScheduleItemMetadataAttachment[];
  reminder_minutes?: number;  // 0-10080 (0 to 7 days)
  version: 1;
}

Database Field

Field Type Description
metadata jsonb Structured metadata including color, location, notes, attachments, reminders

JSON Examples

Basic Metadata

{
  "color": "#3B82F6",
  "location": "Conference Room A",
  "notes": "Bring presentation slides",
  "reminder_minutes": 15,
  "version": 1
}

With Attachment

{
  "color": "#10B981",
  "location": "https://meet.example.com/abc123",
  "notes": "Weekly sync meeting",
  "attachments": [
    {
      "name": "agenda.pdf",
      "type": "document",
      "url": "https://storage.example.com/agenda.pdf",
      "visible_to": ["uuid1", "uuid2"]
    }
  ],
  "reminder_minutes": 30,
  "version": 1
}