|
|
@@ -9154,105 +9154,6 @@
|
|
|
{
|
|
|
"$ref": "#/components/schemas/EventInstallationUpdate-available"
|
|
|
},
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventMessageUpdated"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventMessageRemoved"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventMessagePartUpdated"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventMessagePartRemoved"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionCreated"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionUpdated"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionDeleted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextAgentSwitched"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextModelSwitched"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextPrompted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextSynthetic"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextShellStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextShellEnded"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextStepStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextStepEnded"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextStepFailed"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextTextStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextTextDelta"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextTextEnded"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextReasoningStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextReasoningDelta"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextReasoningEnded"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolInputStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolInputDelta"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolInputEnded"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolCalled"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolProgress"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolSuccess"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolFailed"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextRetried"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextCompactionStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextCompactionDelta"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextCompactionEnded"
|
|
|
- },
|
|
|
{
|
|
|
"$ref": "#/components/schemas/EventServerConnected"
|
|
|
},
|
|
|
@@ -11453,105 +11354,6 @@
|
|
|
{
|
|
|
"$ref": "#/components/schemas/EventInstallationUpdate-available"
|
|
|
},
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventMessageUpdated"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventMessageRemoved"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventMessagePartUpdated"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventMessagePartRemoved"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionCreated"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionUpdated"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionDeleted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextAgentSwitched"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextModelSwitched"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextPrompted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextSynthetic"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextShellStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextShellEnded"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextStepStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextStepEnded"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextStepFailed"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextTextStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextTextDelta"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextTextEnded"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextReasoningStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextReasoningDelta"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextReasoningEnded"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolInputStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolInputDelta"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolInputEnded"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolCalled"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolProgress"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolSuccess"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextToolFailed"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextRetried"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextCompactionStarted"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextCompactionDelta"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/EventSessionNextCompactionEnded"
|
|
|
- },
|
|
|
{
|
|
|
"$ref": "#/components/schemas/EventServerConnected"
|
|
|
},
|
|
|
@@ -17092,7 +16894,7 @@
|
|
|
"required": ["id", "type", "properties"],
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
- "EventMessageUpdated": {
|
|
|
+ "EventServerConnected": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
@@ -17100,27 +16902,17 @@
|
|
|
},
|
|
|
"type": {
|
|
|
"type": "string",
|
|
|
- "enum": ["message.updated"]
|
|
|
+ "enum": ["server.connected"]
|
|
|
},
|
|
|
"properties": {
|
|
|
"type": "object",
|
|
|
- "properties": {
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "info": {
|
|
|
- "$ref": "#/components/schemas/Message"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["sessionID", "info"],
|
|
|
- "additionalProperties": false
|
|
|
+ "properties": {}
|
|
|
}
|
|
|
},
|
|
|
"required": ["id", "type", "properties"],
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
- "EventMessageRemoved": {
|
|
|
+ "EventGlobalDisposed": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
"id": {
|
|
|
@@ -17128,1353 +16920,179 @@
|
|
|
},
|
|
|
"type": {
|
|
|
"type": "string",
|
|
|
- "enum": ["message.removed"]
|
|
|
+ "enum": ["global.disposed"]
|
|
|
},
|
|
|
"properties": {
|
|
|
"type": "object",
|
|
|
- "properties": {
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "messageID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^msg"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["sessionID", "messageID"],
|
|
|
- "additionalProperties": false
|
|
|
+ "properties": {}
|
|
|
}
|
|
|
},
|
|
|
"required": ["id", "type", "properties"],
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
- "EventMessagePartUpdated": {
|
|
|
+ "PromptSource": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
+ "start": {
|
|
|
+ "type": "number"
|
|
|
},
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["message.part.updated"]
|
|
|
+ "end": {
|
|
|
+ "type": "number"
|
|
|
},
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "part": {
|
|
|
- "$ref": "#/components/schemas/Part"
|
|
|
- },
|
|
|
- "time": {
|
|
|
- "type": "integer",
|
|
|
- "minimum": 0
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["sessionID", "part", "time"],
|
|
|
- "additionalProperties": false
|
|
|
+ "text": {
|
|
|
+ "type": "string"
|
|
|
}
|
|
|
},
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
+ "required": ["start", "end", "text"],
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
- "EventMessagePartRemoved": {
|
|
|
+ "PromptFileAttachment": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
- "id": {
|
|
|
+ "uri": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["message.part.removed"]
|
|
|
+ "mime": {
|
|
|
+ "type": "string"
|
|
|
},
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "messageID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^msg"
|
|
|
- },
|
|
|
- "partID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^prt"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["sessionID", "messageID", "partID"],
|
|
|
- "additionalProperties": false
|
|
|
+ "name": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "description": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "source": {
|
|
|
+ "$ref": "#/components/schemas/PromptSource"
|
|
|
}
|
|
|
},
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
+ "required": ["uri", "mime"],
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
- "EventSessionCreated": {
|
|
|
+ "PromptAgentAttachment": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
- "id": {
|
|
|
+ "name": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.created"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "info": {
|
|
|
- "$ref": "#/components/schemas/Session"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["sessionID", "info"],
|
|
|
- "additionalProperties": false
|
|
|
+ "source": {
|
|
|
+ "$ref": "#/components/schemas/PromptSource"
|
|
|
}
|
|
|
},
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
+ "required": ["name"],
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
- "EventSessionUpdated": {
|
|
|
+ "PromptReferenceAttachment": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
- "id": {
|
|
|
+ "name": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
- "type": {
|
|
|
+ "kind": {
|
|
|
"type": "string",
|
|
|
- "enum": ["session.updated"]
|
|
|
+ "enum": ["local", "git", "invalid"]
|
|
|
},
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "info": {
|
|
|
- "$ref": "#/components/schemas/Session"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["sessionID", "info"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionDeleted": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.deleted"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "info": {
|
|
|
- "$ref": "#/components/schemas/Session"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["sessionID", "info"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextAgentSwitched": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.agent.switched"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "agent": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "agent"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextModelSwitched": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.model.switched"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "model": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "providerID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "variant": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "providerID", "variant"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "model"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "PromptSource": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "start": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "end": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "text": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["start", "end", "text"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "PromptFileAttachment": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "uri": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "mime": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "name": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "description": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "source": {
|
|
|
- "$ref": "#/components/schemas/PromptSource"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["uri", "mime"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "PromptAgentAttachment": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "name": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "source": {
|
|
|
- "$ref": "#/components/schemas/PromptSource"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["name"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "PromptReferenceAttachment": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "name": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "kind": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["local", "git", "invalid"]
|
|
|
- },
|
|
|
- "uri": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "repository": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "branch": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "target": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "targetUri": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "problem": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "source": {
|
|
|
- "$ref": "#/components/schemas/PromptSource"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["name", "kind"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextPrompted": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.prompted"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "prompt": {
|
|
|
- "$ref": "#/components/schemas/Prompt"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "prompt"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextSynthetic": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.synthetic"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "text": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "text"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextShellStarted": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.shell.started"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "callID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "command": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "callID", "command"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextShellEnded": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.shell.ended"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "callID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "output": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "callID", "output"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextStepStarted": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.step.started"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "agent": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "model": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "providerID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "variant": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "providerID", "variant"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "snapshot": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "agent", "model"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextStepEnded": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.step.ended"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "finish": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "cost": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "tokens": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "input": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "output": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "reasoning": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "cache": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "read": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "write": {
|
|
|
- "type": "number"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["read", "write"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["input", "output", "reasoning", "cache"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "snapshot": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "finish", "cost", "tokens"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "SessionErrorUnknown": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["unknown"]
|
|
|
- },
|
|
|
- "message": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["type", "message"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextStepFailed": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.step.failed"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "error": {
|
|
|
- "$ref": "#/components/schemas/SessionErrorUnknown"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "error"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextTextStarted": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.text.started"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextTextDelta": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.text.delta"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "delta": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "delta"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextTextEnded": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.text.ended"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "text": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "text"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextReasoningStarted": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.reasoning.started"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "reasoningID": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "reasoningID"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextReasoningDelta": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.reasoning.delta"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "reasoningID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "delta": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "reasoningID", "delta"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextReasoningEnded": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.reasoning.ended"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "reasoningID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "text": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "reasoningID", "text"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextToolInputStarted": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.tool.input.started"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "callID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "name": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "callID", "name"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextToolInputDelta": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.tool.input.delta"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "callID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "delta": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "callID", "delta"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextToolInputEnded": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.tool.input.ended"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "callID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "text": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "callID", "text"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextToolCalled": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.tool.called"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "callID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "tool": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "input": {
|
|
|
- "type": "object"
|
|
|
- },
|
|
|
- "provider": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "executed": {
|
|
|
- "type": "boolean"
|
|
|
- },
|
|
|
- "metadata": {
|
|
|
- "type": "object"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["executed"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "callID", "tool", "input", "provider"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "ToolTextContent": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["text"]
|
|
|
- },
|
|
|
- "text": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["type", "text"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "ToolFileContent": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["file"]
|
|
|
- },
|
|
|
- "uri": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "mime": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "name": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["type", "uri", "mime"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextToolProgress": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.tool.progress"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "callID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "structured": {
|
|
|
- "type": "object"
|
|
|
- },
|
|
|
- "content": {
|
|
|
- "type": "array",
|
|
|
- "items": {
|
|
|
- "anyOf": [
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/ToolTextContent"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/ToolFileContent"
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "callID", "structured", "content"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextToolSuccess": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.tool.success"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "callID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "structured": {
|
|
|
- "type": "object"
|
|
|
- },
|
|
|
- "content": {
|
|
|
- "type": "array",
|
|
|
- "items": {
|
|
|
- "anyOf": [
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/ToolTextContent"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/ToolFileContent"
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- },
|
|
|
- "provider": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "executed": {
|
|
|
- "type": "boolean"
|
|
|
- },
|
|
|
- "metadata": {
|
|
|
- "type": "object"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["executed"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "callID", "structured", "content", "provider"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextToolFailed": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
+ "uri": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.tool.failed"]
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "callID": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "error": {
|
|
|
- "$ref": "#/components/schemas/SessionErrorUnknown"
|
|
|
- },
|
|
|
- "provider": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "executed": {
|
|
|
- "type": "boolean"
|
|
|
- },
|
|
|
- "metadata": {
|
|
|
- "type": "object"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["executed"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "callID", "error", "provider"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "SessionNextRetry_error": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "message": {
|
|
|
+ "repository": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
- "statusCode": {
|
|
|
- "type": "number"
|
|
|
+ "branch": {
|
|
|
+ "type": "string"
|
|
|
},
|
|
|
- "isRetryable": {
|
|
|
- "type": "boolean"
|
|
|
+ "target": {
|
|
|
+ "type": "string"
|
|
|
},
|
|
|
- "responseHeaders": {
|
|
|
- "type": "object",
|
|
|
- "additionalProperties": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
+ "targetUri": {
|
|
|
+ "type": "string"
|
|
|
},
|
|
|
- "responseBody": {
|
|
|
+ "problem": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
- "metadata": {
|
|
|
- "type": "object",
|
|
|
- "additionalProperties": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
+ "source": {
|
|
|
+ "$ref": "#/components/schemas/PromptSource"
|
|
|
}
|
|
|
},
|
|
|
- "required": ["message", "isRetryable"],
|
|
|
+ "required": ["name", "kind"],
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
- "EventSessionNextRetried": {
|
|
|
+ "SessionErrorUnknown": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
"type": {
|
|
|
"type": "string",
|
|
|
- "enum": ["session.next.retried"]
|
|
|
+ "enum": ["unknown"]
|
|
|
},
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "attempt": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "error": {
|
|
|
- "$ref": "#/components/schemas/SessionNextRetry_error"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "attempt", "error"],
|
|
|
- "additionalProperties": false
|
|
|
+ "message": {
|
|
|
+ "type": "string"
|
|
|
}
|
|
|
},
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
+ "required": ["type", "message"],
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
- "EventSessionNextCompactionStarted": {
|
|
|
+ "ToolTextContent": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
"type": {
|
|
|
"type": "string",
|
|
|
- "enum": ["session.next.compaction.started"]
|
|
|
+ "enum": ["text"]
|
|
|
},
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "reason": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["auto", "manual"]
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "reason"],
|
|
|
- "additionalProperties": false
|
|
|
+ "text": {
|
|
|
+ "type": "string"
|
|
|
}
|
|
|
},
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
+ "required": ["type", "text"],
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
- "EventSessionNextCompactionDelta": {
|
|
|
+ "ToolFileContent": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
"type": {
|
|
|
"type": "string",
|
|
|
- "enum": ["session.next.compaction.delta"]
|
|
|
+ "enum": ["file"]
|
|
|
},
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "text": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "text"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventSessionNextCompactionEnded": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
+ "uri": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["session.next.compaction.ended"]
|
|
|
+ "mime": {
|
|
|
+ "type": "string"
|
|
|
},
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "timestamp": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses"
|
|
|
- },
|
|
|
- "text": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "include": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["timestamp", "sessionID", "text"],
|
|
|
- "additionalProperties": false
|
|
|
+ "name": {
|
|
|
+ "type": "string"
|
|
|
}
|
|
|
},
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
+ "required": ["type", "uri", "mime"],
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
- "EventServerConnected": {
|
|
|
+ "SessionNextRetry_error": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
- "id": {
|
|
|
+ "message": {
|
|
|
"type": "string"
|
|
|
},
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["server.connected"]
|
|
|
+ "statusCode": {
|
|
|
+ "type": "number"
|
|
|
},
|
|
|
- "properties": {
|
|
|
+ "isRetryable": {
|
|
|
+ "type": "boolean"
|
|
|
+ },
|
|
|
+ "responseHeaders": {
|
|
|
"type": "object",
|
|
|
- "properties": {}
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
- "additionalProperties": false
|
|
|
- },
|
|
|
- "EventGlobalDisposed": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string"
|
|
|
+ "additionalProperties": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
},
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["global.disposed"]
|
|
|
+ "responseBody": {
|
|
|
+ "type": "string"
|
|
|
},
|
|
|
- "properties": {
|
|
|
+ "metadata": {
|
|
|
"type": "object",
|
|
|
- "properties": {}
|
|
|
+ "additionalProperties": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
- "required": ["id", "type", "properties"],
|
|
|
+ "required": ["message", "isRetryable"],
|
|
|
"additionalProperties": false
|
|
|
},
|
|
|
"SessionInfo": {
|