2026-09-23 20:00:47 +08:00
|
|
|
|
{
|
|
|
|
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
|
|
|
|
"$id": "https://aps.local/contracts/session.schema.json",
|
|
|
|
|
|
"title": "SessionSummary",
|
|
|
|
|
|
"description": "会话概要(ADR-0003:个人会话只读,写操作必须在项目会话内)。",
|
2026-09-23 20:52:24 +08:00
|
|
|
|
"$ref": "#/$defs/SessionSummary",
|
|
|
|
|
|
"$defs": {
|
|
|
|
|
|
"SessionSummary": {
|
|
|
|
|
|
"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
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2026-09-23 20:00:47 +08:00
|
|
|
|
}
|