summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGitHub Action <[email protected]>2025-12-23 01:17:33 +0000
committerGitHub Action <[email protected]>2025-12-23 01:17:33 +0000
commita4eebf9f08262f6bf63017710e2e6d9672ec6708 (patch)
treedae71dfe76b36ffb3b518085bc3f1aa19fc91d41
parent680a63e3dee5bf2748eaf844b4e9b838d2859f16 (diff)
downloadopencode-a4eebf9f08262f6bf63017710e2e6d9672ec6708.tar.gz
opencode-a4eebf9f08262f6bf63017710e2e6d9672ec6708.zip
chore: generate
-rw-r--r--packages/sdk/openapi.json35
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 24aea70a8..a33373bb9 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -6,6 +6,41 @@
"version": "1.0.0"
},
"paths": {
+ "/global/health": {
+ "get": {
+ "operationId": "global.health",
+ "summary": "Get health",
+ "description": "Get health information about the OpenCode server.",
+ "responses": {
+ "200": {
+ "description": "Health information",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "healthy": {
+ "type": "boolean",
+ "const": true
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": ["healthy", "version"]
+ }
+ }
+ }
+ }
+ },
+ "x-codeSamples": [
+ {
+ "lang": "js",
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.global.health({\n ...\n})"
+ }
+ ]
+ }
+ },
"/global/event": {
"get": {
"operationId": "global.event",