summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-04 23:07:01 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-04 23:07:01 +0000
commit985663620f3068d07ebd4dda44cb365cc3db4dd7 (patch)
tree28ab6960dbbd3ce4ed3dc0b2af2a6f1aef4fc009
parentc796b9a19e8698c07d2e03a12a41fa81126b1be9 (diff)
downloadopencode-985663620f3068d07ebd4dda44cb365cc3db4dd7.tar.gz
opencode-985663620f3068d07ebd4dda44cb365cc3db4dd7.zip
chore: generate
-rw-r--r--packages/sdk/openapi.json183
1 files changed, 183 insertions, 0 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 735c34c8a..02370f75f 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -1220,6 +1220,189 @@
]
}
},
+ "/experimental/console": {
+ "get": {
+ "operationId": "experimental.console.get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "directory",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "workspace",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "summary": "Get active Console provider metadata",
+ "description": "Get the active Console org name and the set of provider IDs managed by that Console org.",
+ "responses": {
+ "200": {
+ "description": "Active Console provider metadata",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "consoleManagedProviders": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "activeOrgName": {
+ "type": "string"
+ }
+ },
+ "required": ["consoleManagedProviders"]
+ }
+ }
+ }
+ }
+ },
+ "x-codeSamples": [
+ {
+ "lang": "js",
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.experimental.console.get({\n ...\n})"
+ }
+ ]
+ }
+ },
+ "/experimental/console/orgs": {
+ "get": {
+ "operationId": "experimental.console.listOrgs",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "directory",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "workspace",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "summary": "List switchable Console orgs",
+ "description": "Get the available Console orgs across logged-in accounts, including the current active org.",
+ "responses": {
+ "200": {
+ "description": "Switchable Console orgs",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "orgs": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "accountID": {
+ "type": "string"
+ },
+ "accountEmail": {
+ "type": "string"
+ },
+ "accountUrl": {
+ "type": "string"
+ },
+ "orgID": {
+ "type": "string"
+ },
+ "orgName": {
+ "type": "string"
+ },
+ "active": {
+ "type": "boolean"
+ }
+ },
+ "required": ["accountID", "accountEmail", "accountUrl", "orgID", "orgName", "active"]
+ }
+ }
+ },
+ "required": ["orgs"]
+ }
+ }
+ }
+ }
+ },
+ "x-codeSamples": [
+ {
+ "lang": "js",
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.experimental.console.listOrgs({\n ...\n})"
+ }
+ ]
+ }
+ },
+ "/experimental/console/switch": {
+ "post": {
+ "operationId": "experimental.console.switchOrg",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "directory",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "workspace",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "summary": "Switch active Console org",
+ "description": "Persist a new active Console account/org selection for the current local OpenCode state.",
+ "responses": {
+ "200": {
+ "description": "Switch success",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "accountID": {
+ "type": "string"
+ },
+ "orgID": {
+ "type": "string"
+ }
+ },
+ "required": ["accountID", "orgID"]
+ }
+ }
+ }
+ },
+ "x-codeSamples": [
+ {
+ "lang": "js",
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.experimental.console.switchOrg({\n ...\n})"
+ }
+ ]
+ }
+ },
"/experimental/tool/ids": {
"get": {
"operationId": "tool.ids",