|
|
@@ -11070,10 +11070,10 @@
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- "/api/session/{sessionID}/message": {
|
|
|
+ "/api/session/{sessionID}/event": {
|
|
|
"get": {
|
|
|
- "tags": ["messages"],
|
|
|
- "operationId": "v2.session.messages",
|
|
|
+ "tags": ["sessions"],
|
|
|
+ "operationId": "v2.session.events",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "sessionID",
|
|
|
@@ -11085,28 +11085,10 @@
|
|
|
"required": true
|
|
|
},
|
|
|
{
|
|
|
- "name": "limit",
|
|
|
- "in": "query",
|
|
|
- "schema": {
|
|
|
- "type": "number"
|
|
|
- },
|
|
|
- "required": false
|
|
|
- },
|
|
|
- {
|
|
|
- "name": "order",
|
|
|
- "in": "query",
|
|
|
- "schema": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["asc", "desc"]
|
|
|
- },
|
|
|
- "required": false
|
|
|
- },
|
|
|
- {
|
|
|
- "name": "cursor",
|
|
|
+ "name": "after",
|
|
|
"in": "query",
|
|
|
"schema": {
|
|
|
- "type": "string",
|
|
|
- "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
|
|
|
+ "type": "string"
|
|
|
},
|
|
|
"required": false
|
|
|
}
|
|
|
@@ -11114,28 +11096,184 @@
|
|
|
"security": [],
|
|
|
"responses": {
|
|
|
"200": {
|
|
|
- "description": "SessionMessagesResponse",
|
|
|
+ "description": "Success",
|
|
|
"content": {
|
|
|
- "application/json": {
|
|
|
+ "text/event-stream": {
|
|
|
"schema": {
|
|
|
- "$ref": "#/components/schemas/SessionMessagesResponse"
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "event": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "string",
|
|
|
+ "contentSchema": {
|
|
|
+ "oneOf": [
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextAgentSwitched"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextModelSwitched"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextMoved"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextPrompted"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextPromptAdmitted"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextContextUpdated"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextSynthetic"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextShellStarted"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextShellEnded"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextStepStarted"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextStepEnded"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextStepFailed"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextTextStarted"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextTextEnded"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextToolInputStarted"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextToolInputEnded"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextToolCalled"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextToolProgress"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextToolSuccess"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextToolFailed"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextReasoningStarted"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextReasoningEnded"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextRetried"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextCompactionStarted"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextCompactionEnded"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextRevertStaged"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextRevertCleared"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNextRevertCommitted"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "contentMediaType": "application/json"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "event", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "x-effect-stream": {
|
|
|
+ "encoding": "sse",
|
|
|
+ "causeSchema": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "_tag": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Fail"]
|
|
|
+ },
|
|
|
+ "error": {
|
|
|
+ "not": {}
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["_tag", "error"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "_tag": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Die"]
|
|
|
+ },
|
|
|
+ "defect": {}
|
|
|
+ },
|
|
|
+ "required": ["_tag", "defect"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "_tag": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Interrupt"]
|
|
|
+ },
|
|
|
+ "fiberId": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "null"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["_tag", "fiberId"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "errorSchema": {
|
|
|
+ "not": {}
|
|
|
+ },
|
|
|
+ "failureEvent": "effect/httpapi/stream/failure"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"400": {
|
|
|
- "description": "InvalidCursorError | InvalidRequestError",
|
|
|
+ "description": "InvalidRequestError",
|
|
|
"content": {
|
|
|
"application/json": {
|
|
|
"schema": {
|
|
|
- "anyOf": [
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/InvalidCursorError"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/InvalidRequestError"
|
|
|
- }
|
|
|
- ]
|
|
|
+ "$ref": "#/components/schemas/InvalidRequestError"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -11166,77 +11304,37 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
- "500": {
|
|
|
- "description": "UnknownError",
|
|
|
- "content": {
|
|
|
- "application/json": {
|
|
|
- "schema": {
|
|
|
- "$ref": "#/components/schemas/UnknownError1"
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
},
|
|
|
- "description": "Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.",
|
|
|
- "summary": "Get session messages",
|
|
|
+ "description": "Replay durable events after an aggregate sequence, then continue with new durable events.",
|
|
|
+ "summary": "Subscribe to session events",
|
|
|
"x-codeSamples": [
|
|
|
{
|
|
|
"lang": "js",
|
|
|
- "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.messages({\n ...\n})"
|
|
|
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.events({\n ...\n})"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- "/api/model": {
|
|
|
- "get": {
|
|
|
- "tags": ["models"],
|
|
|
- "operationId": "v2.model.list",
|
|
|
+ "/api/session/{sessionID}/interrupt": {
|
|
|
+ "post": {
|
|
|
+ "tags": ["sessions"],
|
|
|
+ "operationId": "v2.session.interrupt",
|
|
|
"parameters": [
|
|
|
{
|
|
|
- "name": "location",
|
|
|
- "in": "query",
|
|
|
+ "name": "sessionID",
|
|
|
+ "in": "path",
|
|
|
"schema": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "directory": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "workspace": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "additionalProperties": false
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
},
|
|
|
- "required": false,
|
|
|
- "style": "deepObject",
|
|
|
- "explode": true
|
|
|
+ "required": true
|
|
|
}
|
|
|
],
|
|
|
"security": [],
|
|
|
"responses": {
|
|
|
- "200": {
|
|
|
- "description": "Success",
|
|
|
- "content": {
|
|
|
- "application/json": {
|
|
|
- "schema": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "location": {
|
|
|
- "$ref": "#/components/schemas/LocationInfo"
|
|
|
- },
|
|
|
- "data": {
|
|
|
- "type": "array",
|
|
|
- "items": {
|
|
|
- "$ref": "#/components/schemas/ModelV2Info"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["location", "data"],
|
|
|
- "additionalProperties": false
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ "204": {
|
|
|
+ "description": "<No Content>"
|
|
|
},
|
|
|
"400": {
|
|
|
"description": "InvalidRequestError",
|
|
|
@@ -11258,50 +11356,56 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- "503": {
|
|
|
- "description": "ServiceUnavailableError",
|
|
|
+ "404": {
|
|
|
+ "description": "SessionNotFoundError",
|
|
|
"content": {
|
|
|
"application/json": {
|
|
|
"schema": {
|
|
|
- "$ref": "#/components/schemas/ServiceUnavailableError"
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNotFoundError"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNotFoundError"
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- "description": "Retrieve available models ordered by release date.",
|
|
|
- "summary": "List models",
|
|
|
+ "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
|
|
|
+ "summary": "Interrupt session execution",
|
|
|
"x-codeSamples": [
|
|
|
{
|
|
|
"lang": "js",
|
|
|
- "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.model.list({\n ...\n})"
|
|
|
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.interrupt({\n ...\n})"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- "/api/provider": {
|
|
|
+ "/api/session/{sessionID}/message/{messageID}": {
|
|
|
"get": {
|
|
|
- "tags": ["providers"],
|
|
|
- "operationId": "v2.provider.list",
|
|
|
+ "tags": ["sessions"],
|
|
|
+ "operationId": "v2.session.message",
|
|
|
"parameters": [
|
|
|
{
|
|
|
- "name": "location",
|
|
|
- "in": "query",
|
|
|
+ "name": "sessionID",
|
|
|
+ "in": "path",
|
|
|
"schema": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "directory": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "workspace": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "additionalProperties": false
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
},
|
|
|
- "required": false,
|
|
|
- "style": "deepObject",
|
|
|
- "explode": true
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "messageID",
|
|
|
+ "in": "path",
|
|
|
+ "schema": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "required": true
|
|
|
}
|
|
|
],
|
|
|
"security": [],
|
|
|
@@ -11313,17 +11417,11 @@
|
|
|
"schema": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
- "location": {
|
|
|
- "$ref": "#/components/schemas/LocationInfo"
|
|
|
- },
|
|
|
"data": {
|
|
|
- "type": "array",
|
|
|
- "items": {
|
|
|
- "$ref": "#/components/schemas/ProviderV2Info"
|
|
|
- }
|
|
|
+ "$ref": "#/components/schemas/SessionMessage"
|
|
|
}
|
|
|
},
|
|
|
- "required": ["location", "data"],
|
|
|
+ "required": ["data"],
|
|
|
"additionalProperties": false
|
|
|
}
|
|
|
}
|
|
|
@@ -11349,40 +11447,160 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- "503": {
|
|
|
- "description": "ServiceUnavailableError",
|
|
|
+ "404": {
|
|
|
+ "description": "SessionNotFoundError | MessageNotFoundError",
|
|
|
"content": {
|
|
|
"application/json": {
|
|
|
"schema": {
|
|
|
- "$ref": "#/components/schemas/ServiceUnavailableError"
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/MessageNotFoundError"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNotFoundError"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNotFoundError"
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
|
|
|
- "summary": "List providers",
|
|
|
+ "description": "Retrieve one projected message owned by the Session.",
|
|
|
+ "summary": "Get session message",
|
|
|
"x-codeSamples": [
|
|
|
{
|
|
|
"lang": "js",
|
|
|
- "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.provider.list({\n ...\n})"
|
|
|
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.message({\n ...\n})"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- "/api/provider/{providerID}": {
|
|
|
+ "/api/session/{sessionID}/message": {
|
|
|
"get": {
|
|
|
- "tags": ["providers"],
|
|
|
- "operationId": "v2.provider.get",
|
|
|
+ "tags": ["messages"],
|
|
|
+ "operationId": "v2.session.messages",
|
|
|
"parameters": [
|
|
|
{
|
|
|
- "name": "providerID",
|
|
|
+ "name": "sessionID",
|
|
|
"in": "path",
|
|
|
"schema": {
|
|
|
- "type": "string"
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
},
|
|
|
"required": true
|
|
|
},
|
|
|
+ {
|
|
|
+ "name": "limit",
|
|
|
+ "in": "query",
|
|
|
+ "schema": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "required": false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "order",
|
|
|
+ "in": "query",
|
|
|
+ "schema": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["asc", "desc"]
|
|
|
+ },
|
|
|
+ "required": false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "cursor",
|
|
|
+ "in": "query",
|
|
|
+ "schema": {
|
|
|
+ "type": "string",
|
|
|
+ "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
|
|
|
+ },
|
|
|
+ "required": false
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "security": [],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "SessionMessagesResponse",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/components/schemas/SessionMessagesResponse"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "400": {
|
|
|
+ "description": "InvalidCursorError | InvalidRequestError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/InvalidCursorError"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/InvalidRequestError"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "401": {
|
|
|
+ "description": "UnauthorizedError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/components/schemas/UnauthorizedError"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "404": {
|
|
|
+ "description": "SessionNotFoundError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNotFoundError"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/SessionNotFoundError"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "500": {
|
|
|
+ "description": "UnknownError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/components/schemas/UnknownError1"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "description": "Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.",
|
|
|
+ "summary": "Get session messages",
|
|
|
+ "x-codeSamples": [
|
|
|
+ {
|
|
|
+ "lang": "js",
|
|
|
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.messages({\n ...\n})"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/api/model": {
|
|
|
+ "get": {
|
|
|
+ "tags": ["models"],
|
|
|
+ "operationId": "v2.model.list",
|
|
|
+ "parameters": [
|
|
|
{
|
|
|
"name": "location",
|
|
|
"in": "query",
|
|
|
@@ -11416,7 +11634,10 @@
|
|
|
"$ref": "#/components/schemas/LocationInfo"
|
|
|
},
|
|
|
"data": {
|
|
|
- "$ref": "#/components/schemas/ProviderV2Info"
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "$ref": "#/components/schemas/ModelV2Info"
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
"required": ["location", "data"],
|
|
|
@@ -11445,16 +11666,6 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- "404": {
|
|
|
- "description": "ProviderNotFoundError",
|
|
|
- "content": {
|
|
|
- "application/json": {
|
|
|
- "schema": {
|
|
|
- "$ref": "#/components/schemas/ProviderNotFoundError"
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
"503": {
|
|
|
"description": "ServiceUnavailableError",
|
|
|
"content": {
|
|
|
@@ -11466,20 +11677,20 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
|
|
|
- "summary": "Get provider",
|
|
|
+ "description": "Retrieve available models ordered by release date.",
|
|
|
+ "summary": "List models",
|
|
|
"x-codeSamples": [
|
|
|
{
|
|
|
"lang": "js",
|
|
|
- "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.provider.get({\n ...\n})"
|
|
|
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.model.list({\n ...\n})"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- "/api/integration": {
|
|
|
+ "/api/provider": {
|
|
|
"get": {
|
|
|
- "tags": ["integrations"],
|
|
|
- "operationId": "v2.integration.list",
|
|
|
+ "tags": ["providers"],
|
|
|
+ "operationId": "v2.provider.list",
|
|
|
"parameters": [
|
|
|
{
|
|
|
"name": "location",
|
|
|
@@ -11516,7 +11727,7 @@
|
|
|
"data": {
|
|
|
"type": "array",
|
|
|
"items": {
|
|
|
- "$ref": "#/components/schemas/IntegrationInfo"
|
|
|
+ "$ref": "#/components/schemas/ProviderV2Info"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -11545,25 +11756,35 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ "503": {
|
|
|
+ "description": "ServiceUnavailableError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/components/schemas/ServiceUnavailableError"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
- "description": "Retrieve available integrations and their authentication methods.",
|
|
|
- "summary": "List integrations",
|
|
|
+ "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
|
|
|
+ "summary": "List providers",
|
|
|
"x-codeSamples": [
|
|
|
{
|
|
|
"lang": "js",
|
|
|
- "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.integration.list({\n ...\n})"
|
|
|
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.provider.list({\n ...\n})"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- "/api/integration/{integrationID}": {
|
|
|
+ "/api/provider/{providerID}": {
|
|
|
"get": {
|
|
|
- "tags": ["integrations"],
|
|
|
- "operationId": "v2.integration.get",
|
|
|
+ "tags": ["providers"],
|
|
|
+ "operationId": "v2.provider.get",
|
|
|
"parameters": [
|
|
|
{
|
|
|
- "name": "integrationID",
|
|
|
+ "name": "providerID",
|
|
|
"in": "path",
|
|
|
"schema": {
|
|
|
"type": "string"
|
|
|
@@ -11603,7 +11824,7 @@
|
|
|
"$ref": "#/components/schemas/LocationInfo"
|
|
|
},
|
|
|
"data": {
|
|
|
- "$ref": "#/components/schemas/IntegrationInfo"
|
|
|
+ "$ref": "#/components/schemas/ProviderV2Info"
|
|
|
}
|
|
|
},
|
|
|
"required": ["location", "data"],
|
|
|
@@ -11631,31 +11852,43 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ "404": {
|
|
|
+ "description": "ProviderNotFoundError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/components/schemas/ProviderNotFoundError"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "503": {
|
|
|
+ "description": "ServiceUnavailableError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/components/schemas/ServiceUnavailableError"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
- "description": "Retrieve one integration and its authentication methods.",
|
|
|
- "summary": "Get integration",
|
|
|
+ "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
|
|
|
+ "summary": "Get provider",
|
|
|
"x-codeSamples": [
|
|
|
{
|
|
|
"lang": "js",
|
|
|
- "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.integration.get({\n ...\n})"
|
|
|
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.provider.get({\n ...\n})"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- "/api/integration/{integrationID}/connect/key": {
|
|
|
- "post": {
|
|
|
+ "/api/integration": {
|
|
|
+ "get": {
|
|
|
"tags": ["integrations"],
|
|
|
- "operationId": "v2.integration.connect.key",
|
|
|
+ "operationId": "v2.integration.list",
|
|
|
"parameters": [
|
|
|
- {
|
|
|
- "name": "integrationID",
|
|
|
- "in": "path",
|
|
|
- "schema": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "required": true
|
|
|
- },
|
|
|
{
|
|
|
"name": "location",
|
|
|
"in": "query",
|
|
|
@@ -11678,21 +11911,196 @@
|
|
|
],
|
|
|
"security": [],
|
|
|
"responses": {
|
|
|
- "204": {
|
|
|
- "description": "<No Content>"
|
|
|
- },
|
|
|
- "400": {
|
|
|
- "description": "InvalidRequestError",
|
|
|
+ "200": {
|
|
|
+ "description": "Success",
|
|
|
"content": {
|
|
|
"application/json": {
|
|
|
"schema": {
|
|
|
- "anyOf": [
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/InvalidRequestError"
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationInfo"
|
|
|
},
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/InvalidRequestError"
|
|
|
- }
|
|
|
+ "data": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "$ref": "#/components/schemas/IntegrationInfo"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["location", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "400": {
|
|
|
+ "description": "InvalidRequestError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/components/schemas/InvalidRequestError"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "401": {
|
|
|
+ "description": "UnauthorizedError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/components/schemas/UnauthorizedError"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "description": "Retrieve available integrations and their authentication methods.",
|
|
|
+ "summary": "List integrations",
|
|
|
+ "x-codeSamples": [
|
|
|
+ {
|
|
|
+ "lang": "js",
|
|
|
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.integration.list({\n ...\n})"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/api/integration/{integrationID}": {
|
|
|
+ "get": {
|
|
|
+ "tags": ["integrations"],
|
|
|
+ "operationId": "v2.integration.get",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "name": "integrationID",
|
|
|
+ "in": "path",
|
|
|
+ "schema": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "location",
|
|
|
+ "in": "query",
|
|
|
+ "schema": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "directory": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "workspace": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "required": false,
|
|
|
+ "style": "deepObject",
|
|
|
+ "explode": true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "security": [],
|
|
|
+ "responses": {
|
|
|
+ "200": {
|
|
|
+ "description": "Success",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationInfo"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "$ref": "#/components/schemas/IntegrationInfo"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["location", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "400": {
|
|
|
+ "description": "InvalidRequestError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/components/schemas/InvalidRequestError"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "401": {
|
|
|
+ "description": "UnauthorizedError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "$ref": "#/components/schemas/UnauthorizedError"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "description": "Retrieve one integration and its authentication methods.",
|
|
|
+ "summary": "Get integration",
|
|
|
+ "x-codeSamples": [
|
|
|
+ {
|
|
|
+ "lang": "js",
|
|
|
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.integration.get({\n ...\n})"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "/api/integration/{integrationID}/connect/key": {
|
|
|
+ "post": {
|
|
|
+ "tags": ["integrations"],
|
|
|
+ "operationId": "v2.integration.connect.key",
|
|
|
+ "parameters": [
|
|
|
+ {
|
|
|
+ "name": "integrationID",
|
|
|
+ "in": "path",
|
|
|
+ "schema": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "required": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "location",
|
|
|
+ "in": "query",
|
|
|
+ "schema": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "directory": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "workspace": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "required": false,
|
|
|
+ "style": "deepObject",
|
|
|
+ "explode": true
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "security": [],
|
|
|
+ "responses": {
|
|
|
+ "204": {
|
|
|
+ "description": "<No Content>"
|
|
|
+ },
|
|
|
+ "400": {
|
|
|
+ "description": "InvalidRequestError",
|
|
|
+ "content": {
|
|
|
+ "application/json": {
|
|
|
+ "schema": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/InvalidRequestError"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/InvalidRequestError"
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
@@ -27102,6 +27510,2667 @@
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ "SessionNextAgentSwitched": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.agent.switched"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "messageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "agent": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "messageID", "agent"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextModelSwitched": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.model.switched"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "messageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "model": {
|
|
|
+ "$ref": "#/components/schemas/ModelRef"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "messageID", "model"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextMoved": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.moved"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "subdirectory": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "location"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextPrompted": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.prompted"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "messageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "prompt": {
|
|
|
+ "$ref": "#/components/schemas/Prompt"
|
|
|
+ },
|
|
|
+ "delivery": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["steer", "queue"]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "messageID", "prompt", "delivery"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextPromptAdmitted": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.prompt.admitted"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "messageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "prompt": {
|
|
|
+ "$ref": "#/components/schemas/Prompt"
|
|
|
+ },
|
|
|
+ "delivery": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["steer", "queue"]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "messageID", "prompt", "delivery"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextContextUpdated": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.context.updated"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "messageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "text": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "messageID", "text"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextSynthetic": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.synthetic"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "messageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "text": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "messageID", "text"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextShellStarted": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.shell.started"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "messageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "callID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "command": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "messageID", "callID", "command"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextShellEnded": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.shell.ended"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "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", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextStepStarted": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.step.started"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "agent": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "model": {
|
|
|
+ "$ref": "#/components/schemas/ModelRef"
|
|
|
+ },
|
|
|
+ "snapshot": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "agent", "model"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextStepEnded": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.step.ended"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "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"
|
|
|
+ },
|
|
|
+ "files": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "finish", "cost", "tokens"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextStepFailed": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.step.failed"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "error": {
|
|
|
+ "$ref": "#/components/schemas/SessionErrorUnknown"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "error"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextTextStarted": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.text.started"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "textID": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "textID"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextTextEnded": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.text.ended"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "textID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "text": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "textID", "text"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextToolInputStarted": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.tool.input.started"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "callID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "name": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "name"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextToolInputEnded": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.tool.input.ended"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "callID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "text": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "text"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextToolCalled": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.tool.called"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "callID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "tool": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "input": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "provider": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "executed": {
|
|
|
+ "type": "boolean"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "$ref": "#/components/schemas/LLMProviderMetadata"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["executed"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "tool", "input", "provider"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextToolProgress": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.tool.progress"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "callID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "structured": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "content": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "$ref": "#/components/schemas/LLMToolContent"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "structured", "content"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextToolSuccess": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.tool.success"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "callID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "structured": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "content": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "$ref": "#/components/schemas/LLMToolContent"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "outputPaths": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "result": {},
|
|
|
+ "provider": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "executed": {
|
|
|
+ "type": "boolean"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "$ref": "#/components/schemas/LLMProviderMetadata"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["executed"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "structured", "content", "provider"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextToolFailed": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.tool.failed"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "callID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "error": {
|
|
|
+ "$ref": "#/components/schemas/SessionErrorUnknown"
|
|
|
+ },
|
|
|
+ "result": {},
|
|
|
+ "provider": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "executed": {
|
|
|
+ "type": "boolean"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "$ref": "#/components/schemas/LLMProviderMetadata"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["executed"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "callID", "error", "provider"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextReasoningStarted": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.reasoning.started"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "reasoningID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "providerMetadata": {
|
|
|
+ "$ref": "#/components/schemas/LLMProviderMetadata"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "reasoningID"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextReasoningEnded": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.reasoning.ended"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "assistantMessageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "reasoningID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "text": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "providerMetadata": {
|
|
|
+ "$ref": "#/components/schemas/LLMProviderMetadata"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "assistantMessageID", "reasoningID", "text"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextRetried": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.retried"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "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
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextCompactionStarted": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.compaction.started"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "messageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "reason": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["auto", "manual"]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "messageID", "reason"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextCompactionEnded": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.compaction.ended"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "messageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ },
|
|
|
+ "reason": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["auto", "manual"]
|
|
|
+ },
|
|
|
+ "text": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "recent": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "messageID", "reason", "text", "recent"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextRevertStaged": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.revert.staged"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "revert": {
|
|
|
+ "$ref": "#/components/schemas/RevertState"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "revert"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextRevertCleared": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.revert.cleared"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "SessionNextRevertCommitted": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^evt_"
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object"
|
|
|
+ },
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["session.next.revert.committed"]
|
|
|
+ },
|
|
|
+ "durable": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "aggregateID": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "seq": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "version": {
|
|
|
+ "anyOf": [
|
|
|
+ {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["NaN"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["Infinity"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["-Infinity"]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["aggregateID", "seq", "version"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
+ "location": {
|
|
|
+ "$ref": "#/components/schemas/LocationRef"
|
|
|
+ },
|
|
|
+ "data": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "timestamp": {
|
|
|
+ "type": "number"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses"
|
|
|
+ },
|
|
|
+ "messageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg_"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["timestamp", "sessionID", "messageID"],
|
|
|
+ "additionalProperties": false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "type", "data"],
|
|
|
+ "additionalProperties": false
|
|
|
+ },
|
|
|
"ModelApi": {
|
|
|
"anyOf": [
|
|
|
{
|