Skip to content

Commit 9856636

Browse files
chore: generate
1 parent c796b9a commit 9856636

File tree

1 file changed

+183
-0
lines changed

1 file changed

+183
-0
lines changed

packages/sdk/openapi.json

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,189 @@
12201220
]
12211221
}
12221222
},
1223+
"/experimental/console": {
1224+
"get": {
1225+
"operationId": "experimental.console.get",
1226+
"parameters": [
1227+
{
1228+
"in": "query",
1229+
"name": "directory",
1230+
"schema": {
1231+
"type": "string"
1232+
}
1233+
},
1234+
{
1235+
"in": "query",
1236+
"name": "workspace",
1237+
"schema": {
1238+
"type": "string"
1239+
}
1240+
}
1241+
],
1242+
"summary": "Get active Console provider metadata",
1243+
"description": "Get the active Console org name and the set of provider IDs managed by that Console org.",
1244+
"responses": {
1245+
"200": {
1246+
"description": "Active Console provider metadata",
1247+
"content": {
1248+
"application/json": {
1249+
"schema": {
1250+
"type": "object",
1251+
"properties": {
1252+
"consoleManagedProviders": {
1253+
"type": "array",
1254+
"items": {
1255+
"type": "string"
1256+
}
1257+
},
1258+
"activeOrgName": {
1259+
"type": "string"
1260+
}
1261+
},
1262+
"required": ["consoleManagedProviders"]
1263+
}
1264+
}
1265+
}
1266+
}
1267+
},
1268+
"x-codeSamples": [
1269+
{
1270+
"lang": "js",
1271+
"source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.experimental.console.get({\n ...\n})"
1272+
}
1273+
]
1274+
}
1275+
},
1276+
"/experimental/console/orgs": {
1277+
"get": {
1278+
"operationId": "experimental.console.listOrgs",
1279+
"parameters": [
1280+
{
1281+
"in": "query",
1282+
"name": "directory",
1283+
"schema": {
1284+
"type": "string"
1285+
}
1286+
},
1287+
{
1288+
"in": "query",
1289+
"name": "workspace",
1290+
"schema": {
1291+
"type": "string"
1292+
}
1293+
}
1294+
],
1295+
"summary": "List switchable Console orgs",
1296+
"description": "Get the available Console orgs across logged-in accounts, including the current active org.",
1297+
"responses": {
1298+
"200": {
1299+
"description": "Switchable Console orgs",
1300+
"content": {
1301+
"application/json": {
1302+
"schema": {
1303+
"type": "object",
1304+
"properties": {
1305+
"orgs": {
1306+
"type": "array",
1307+
"items": {
1308+
"type": "object",
1309+
"properties": {
1310+
"accountID": {
1311+
"type": "string"
1312+
},
1313+
"accountEmail": {
1314+
"type": "string"
1315+
},
1316+
"accountUrl": {
1317+
"type": "string"
1318+
},
1319+
"orgID": {
1320+
"type": "string"
1321+
},
1322+
"orgName": {
1323+
"type": "string"
1324+
},
1325+
"active": {
1326+
"type": "boolean"
1327+
}
1328+
},
1329+
"required": ["accountID", "accountEmail", "accountUrl", "orgID", "orgName", "active"]
1330+
}
1331+
}
1332+
},
1333+
"required": ["orgs"]
1334+
}
1335+
}
1336+
}
1337+
}
1338+
},
1339+
"x-codeSamples": [
1340+
{
1341+
"lang": "js",
1342+
"source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.experimental.console.listOrgs({\n ...\n})"
1343+
}
1344+
]
1345+
}
1346+
},
1347+
"/experimental/console/switch": {
1348+
"post": {
1349+
"operationId": "experimental.console.switchOrg",
1350+
"parameters": [
1351+
{
1352+
"in": "query",
1353+
"name": "directory",
1354+
"schema": {
1355+
"type": "string"
1356+
}
1357+
},
1358+
{
1359+
"in": "query",
1360+
"name": "workspace",
1361+
"schema": {
1362+
"type": "string"
1363+
}
1364+
}
1365+
],
1366+
"summary": "Switch active Console org",
1367+
"description": "Persist a new active Console account/org selection for the current local OpenCode state.",
1368+
"responses": {
1369+
"200": {
1370+
"description": "Switch success",
1371+
"content": {
1372+
"application/json": {
1373+
"schema": {
1374+
"type": "boolean"
1375+
}
1376+
}
1377+
}
1378+
}
1379+
},
1380+
"requestBody": {
1381+
"content": {
1382+
"application/json": {
1383+
"schema": {
1384+
"type": "object",
1385+
"properties": {
1386+
"accountID": {
1387+
"type": "string"
1388+
},
1389+
"orgID": {
1390+
"type": "string"
1391+
}
1392+
},
1393+
"required": ["accountID", "orgID"]
1394+
}
1395+
}
1396+
}
1397+
},
1398+
"x-codeSamples": [
1399+
{
1400+
"lang": "js",
1401+
"source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.experimental.console.switchOrg({\n ...\n})"
1402+
}
1403+
]
1404+
}
1405+
},
12231406
"/experimental/tool/ids": {
12241407
"get": {
12251408
"operationId": "tool.ids",

0 commit comments

Comments
 (0)