Skip to content

Commit 1261b7d

Browse files
committed
chore: generate
1 parent a3f38e0 commit 1261b7d

1 file changed

Lines changed: 98 additions & 0 deletions

File tree

packages/sdk/openapi.json

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4956,6 +4956,9 @@
49564956
},
49574957
{
49584958
"$ref": "#/components/schemas/Event.tui.toast.show"
4959+
},
4960+
{
4961+
"$ref": "#/components/schemas/Event.tui.session.select"
49594962
}
49604963
]
49614964
}
@@ -4970,6 +4973,77 @@
49704973
]
49714974
}
49724975
},
4976+
"/tui/select-session": {
4977+
"post": {
4978+
"operationId": "tui.selectSession",
4979+
"parameters": [
4980+
{
4981+
"in": "query",
4982+
"name": "directory",
4983+
"schema": {
4984+
"type": "string"
4985+
}
4986+
}
4987+
],
4988+
"summary": "Select session",
4989+
"description": "Navigate the TUI to display the specified session.",
4990+
"responses": {
4991+
"200": {
4992+
"description": "Session selected successfully",
4993+
"content": {
4994+
"application/json": {
4995+
"schema": {
4996+
"type": "boolean"
4997+
}
4998+
}
4999+
}
5000+
},
5001+
"400": {
5002+
"description": "Bad request",
5003+
"content": {
5004+
"application/json": {
5005+
"schema": {
5006+
"$ref": "#/components/schemas/BadRequestError"
5007+
}
5008+
}
5009+
}
5010+
},
5011+
"404": {
5012+
"description": "Not found",
5013+
"content": {
5014+
"application/json": {
5015+
"schema": {
5016+
"$ref": "#/components/schemas/NotFoundError"
5017+
}
5018+
}
5019+
}
5020+
}
5021+
},
5022+
"requestBody": {
5023+
"content": {
5024+
"application/json": {
5025+
"schema": {
5026+
"type": "object",
5027+
"properties": {
5028+
"sessionID": {
5029+
"description": "Session ID to navigate to",
5030+
"type": "string",
5031+
"pattern": "^ses"
5032+
}
5033+
},
5034+
"required": ["sessionID"]
5035+
}
5036+
}
5037+
}
5038+
},
5039+
"x-codeSamples": [
5040+
{
5041+
"lang": "js",
5042+
"source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.tui.selectSession({\n ...\n})"
5043+
}
5044+
]
5045+
}
5046+
},
49735047
"/tui/control/next": {
49745048
"get": {
49755049
"operationId": "tui.control.next",
@@ -6794,6 +6868,27 @@
67946868
},
67956869
"required": ["type", "properties"]
67966870
},
6871+
"Event.tui.session.select": {
6872+
"type": "object",
6873+
"properties": {
6874+
"type": {
6875+
"type": "string",
6876+
"const": "tui.session.select"
6877+
},
6878+
"properties": {
6879+
"type": "object",
6880+
"properties": {
6881+
"sessionID": {
6882+
"description": "Session ID to navigate to",
6883+
"type": "string",
6884+
"pattern": "^ses"
6885+
}
6886+
},
6887+
"required": ["sessionID"]
6888+
}
6889+
},
6890+
"required": ["type", "properties"]
6891+
},
67976892
"Event.mcp.tools.changed": {
67986893
"type": "object",
67996894
"properties": {
@@ -7338,6 +7433,9 @@
73387433
{
73397434
"$ref": "#/components/schemas/Event.tui.toast.show"
73407435
},
7436+
{
7437+
"$ref": "#/components/schemas/Event.tui.session.select"
7438+
},
73417439
{
73427440
"$ref": "#/components/schemas/Event.mcp.tools.changed"
73437441
},

0 commit comments

Comments
 (0)