ApiSchemas
IdentityChangedEvent
One shape from the contract, as it appears on the wire.
Used by sessions.annotate, sessions.events, sessions.send
JSON Schema
{
"type": "object",
"properties": {
"seq": {
"$ref": "#/components/schemas/EventSeq"
},
"sessionId": {
"$ref": "#/components/schemas/SessionId"
},
"at": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"identity.changed"
]
},
"from": {
"$ref": "#/components/schemas/Identity"
},
"to": {
"$ref": "#/components/schemas/Identity"
},
"reason": {
"type": "string",
"enum": [
"message",
"api"
]
},
"interruptedToolCalls": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ToolCallId"
}
},
"deniedDecisions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ToolCallId"
}
},
"stoppedChildren": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SessionId"
}
}
},
"required": [
"seq",
"sessionId",
"at",
"type",
"from",
"to",
"reason",
"interruptedToolCalls",
"deniedDecisions",
"stoppedChildren"
],
"additionalProperties": false
}