aps-agent/contracts/schemas/session.schema.json

17 lines
703 B
JSON
Raw Normal View History

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://aps.local/contracts/session.schema.json",
"title": "SessionSummary",
"description": "会话概要(ADR-0003:个人会话只读,写操作必须在项目会话内)。",
"type": "object",
"required": ["sessionId", "scope", "status", "title", "createdAt"],
"properties": {
"sessionId": { "type": "string" },
"projectId": { "type": ["string", "null"] },
"scope": { "type": "string", "enum": ["personal", "project"] },
"status": { "type": "string", "enum": ["active", "archived"] },
"title": { "type": "string" },
"createdAt": { "type": "integer" }
},
"additionalProperties": false
}