22 lines
830 B
JSON
22 lines
830 B
JSON
{
|
||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||
"$id": "https://aps.local/contracts/session.schema.json",
|
||
"title": "SessionSummary",
|
||
"description": "会话概要(ADR-0003:个人会话只读,写操作必须在项目会话内)。",
|
||
"$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
|
||
}
|
||
}
|
||
} |