Skip to content

Commit fac0dd8

Browse files
chore: generate
1 parent 73e1072 commit fac0dd8

1 file changed

Lines changed: 57 additions & 2 deletions

File tree

packages/sdk/openapi.json

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6718,6 +6718,59 @@
67186718
]
67196719
}
67206720
},
6721+
"/vcs/diff": {
6722+
"get": {
6723+
"operationId": "vcs.diff",
6724+
"parameters": [
6725+
{
6726+
"in": "query",
6727+
"name": "directory",
6728+
"schema": {
6729+
"type": "string"
6730+
}
6731+
},
6732+
{
6733+
"in": "query",
6734+
"name": "workspace",
6735+
"schema": {
6736+
"type": "string"
6737+
}
6738+
},
6739+
{
6740+
"in": "query",
6741+
"name": "mode",
6742+
"schema": {
6743+
"type": "string",
6744+
"enum": ["git", "branch"]
6745+
},
6746+
"required": true
6747+
}
6748+
],
6749+
"summary": "Get VCS diff",
6750+
"description": "Retrieve the current git diff for the working tree or against the default branch.",
6751+
"responses": {
6752+
"200": {
6753+
"description": "VCS diff",
6754+
"content": {
6755+
"application/json": {
6756+
"schema": {
6757+
"type": "array",
6758+
"items": {
6759+
"$ref": "#/components/schemas/FileDiff"
6760+
}
6761+
}
6762+
}
6763+
}
6764+
}
6765+
},
6766+
"x-codeSamples": [
6767+
{
6768+
"lang": "js",
6769+
"source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.vcs.diff({\n ...\n})"
6770+
}
6771+
]
6772+
}
6773+
},
67216774
"/command": {
67226775
"get": {
67236776
"operationId": "command.list",
@@ -12484,9 +12537,11 @@
1248412537
"properties": {
1248512538
"branch": {
1248612539
"type": "string"
12540+
},
12541+
"default_branch": {
12542+
"type": "string"
1248712543
}
12488-
},
12489-
"required": ["branch"]
12544+
}
1249012545
},
1249112546
"Command": {
1249212547
"type": "object",

0 commit comments

Comments
 (0)