summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGitHub Action <[email protected]>2026-01-02 22:58:02 +0000
committerGitHub Action <[email protected]>2026-01-02 22:58:02 +0000
commit1261b7d333051ecd5043aa77614a7bbde55b1e57 (patch)
tree25e5b575737770e86bed0b85caf4451e4b110888
parenta3f38e0533e1a89fd20e66bf8bf3cefed6652ec8 (diff)
downloadopencode-1261b7d333051ecd5043aa77614a7bbde55b1e57.tar.gz
opencode-1261b7d333051ecd5043aa77614a7bbde55b1e57.zip
chore: generate
-rw-r--r--packages/sdk/openapi.json98
1 files changed, 98 insertions, 0 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 3393d1c86..583caf8d7 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -4956,6 +4956,9 @@
},
{
"$ref": "#/components/schemas/Event.tui.toast.show"
+ },
+ {
+ "$ref": "#/components/schemas/Event.tui.session.select"
}
]
}
@@ -4970,6 +4973,77 @@
]
}
},
+ "/tui/select-session": {
+ "post": {
+ "operationId": "tui.selectSession",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "directory",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "summary": "Select session",
+ "description": "Navigate the TUI to display the specified session.",
+ "responses": {
+ "200": {
+ "description": "Session selected successfully",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/BadRequestError"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/NotFoundError"
+ }
+ }
+ }
+ }
+ },
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "sessionID": {
+ "description": "Session ID to navigate to",
+ "type": "string",
+ "pattern": "^ses"
+ }
+ },
+ "required": ["sessionID"]
+ }
+ }
+ }
+ },
+ "x-codeSamples": [
+ {
+ "lang": "js",
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.tui.selectSession({\n ...\n})"
+ }
+ ]
+ }
+ },
"/tui/control/next": {
"get": {
"operationId": "tui.control.next",
@@ -6794,6 +6868,27 @@
},
"required": ["type", "properties"]
},
+ "Event.tui.session.select": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "tui.session.select"
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "sessionID": {
+ "description": "Session ID to navigate to",
+ "type": "string",
+ "pattern": "^ses"
+ }
+ },
+ "required": ["sessionID"]
+ }
+ },
+ "required": ["type", "properties"]
+ },
"Event.mcp.tools.changed": {
"type": "object",
"properties": {
@@ -7339,6 +7434,9 @@
"$ref": "#/components/schemas/Event.tui.toast.show"
},
{
+ "$ref": "#/components/schemas/Event.tui.session.select"
+ },
+ {
"$ref": "#/components/schemas/Event.mcp.tools.changed"
},
{