diff options
| author | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-03-19 17:52:50 +0000 |
|---|---|---|
| committer | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-03-19 17:52:50 +0000 |
| commit | a6f23cb08ee451e3f38a161dc314e9fb92e73a39 (patch) | |
| tree | 2cc29952984d5e73308062773fe94bbf33717f53 /packages/sdk/openapi.json | |
| parent | 05407518973a494785b85259ad4ec29abf4f8158 (diff) | |
| download | opencode-a6f23cb08ee451e3f38a161dc314e9fb92e73a39.tar.gz opencode-a6f23cb08ee451e3f38a161dc314e9fb92e73a39.zip | |
chore: generate
Diffstat (limited to 'packages/sdk/openapi.json')
| -rw-r--r-- | packages/sdk/openapi.json | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 350395423..fa894045e 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -5243,6 +5243,47 @@ ] } }, + "/event": { + "get": { + "operationId": "event.subscribe", + "parameters": [ + { + "in": "query", + "name": "directory", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "workspace", + "schema": { + "type": "string" + } + } + ], + "summary": "Subscribe to events", + "description": "Get events", + "responses": { + "200": { + "description": "Event stream", + "content": { + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/Event" + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.event.subscribe({\n ...\n})" + } + ] + } + }, "/mcp": { "get": { "operationId": "mcp.status", @@ -6894,47 +6935,6 @@ } ] } - }, - "/event": { - "get": { - "operationId": "event.subscribe", - "parameters": [ - { - "in": "query", - "name": "directory", - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "workspace", - "schema": { - "type": "string" - } - } - ], - "summary": "Subscribe to events", - "description": "Get events", - "responses": { - "200": { - "description": "Event stream", - "content": { - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/Event" - } - } - } - } - }, - "x-codeSamples": [ - { - "lang": "js", - "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.event.subscribe({\n ...\n})" - } - ] - } } }, "components": { |
