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

17 lines
703 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$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
}