diff options
| author | James Long <[email protected]> | 2026-04-17 13:30:09 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-17 13:30:09 -0400 |
| commit | a8c78fc005a9a1cff3622a68f65b1df550cb2ccc (patch) | |
| tree | 3abdb0692252d762fb5081c767a80aad4440f83d /packages/sdk/openapi.json | |
| parent | fcb473ff64f0767461c27db8942ce41df3e115d3 (diff) | |
| download | opencode-a8c78fc005a9a1cff3622a68f65b1df550cb2ccc.tar.gz opencode-a8c78fc005a9a1cff3622a68f65b1df550cb2ccc.zip | |
fix(core): add historical sync on workspace connect (#23121)
Diffstat (limited to 'packages/sdk/openapi.json')
| -rw-r--r-- | packages/sdk/openapi.json | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 7bdf025bb..3b811f2fa 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -5224,6 +5224,47 @@ ] } }, + "/sync/start": { + "post": { + "operationId": "sync.start", + "parameters": [ + { + "in": "query", + "name": "directory", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "workspace", + "schema": { + "type": "string" + } + } + ], + "summary": "Start workspace sync", + "description": "Start sync loops for workspaces in the current project that have active sessions.", + "responses": { + "200": { + "description": "Workspace sync started", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.sync.start({\n ...\n})" + } + ] + } + }, "/sync/replay": { "post": { "operationId": "sync.replay", @@ -5328,7 +5369,7 @@ } }, "/sync/history": { - "get": { + "post": { "operationId": "sync.history.list", "parameters": [ { |
