Skip to content

Commit 7da24eb

Browse files
chore: generate
1 parent d6e0f47 commit 7da24eb

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

packages/sdk/openapi.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,47 @@
340340
]
341341
}
342342
},
343+
"/project/git/init": {
344+
"post": {
345+
"operationId": "project.initGit",
346+
"parameters": [
347+
{
348+
"in": "query",
349+
"name": "directory",
350+
"schema": {
351+
"type": "string"
352+
}
353+
},
354+
{
355+
"in": "query",
356+
"name": "workspace",
357+
"schema": {
358+
"type": "string"
359+
}
360+
}
361+
],
362+
"summary": "Initialize git repository",
363+
"description": "Create a git repository for the current project and return the refreshed project info.",
364+
"responses": {
365+
"200": {
366+
"description": "Project information after git initialization",
367+
"content": {
368+
"application/json": {
369+
"schema": {
370+
"$ref": "#/components/schemas/Project"
371+
}
372+
}
373+
}
374+
}
375+
},
376+
"x-codeSamples": [
377+
{
378+
"lang": "js",
379+
"source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.project.initGit({\n ...\n})"
380+
}
381+
]
382+
}
383+
},
343384
"/project/{projectID}": {
344385
"patch": {
345386
"operationId": "project.update",

0 commit comments

Comments
 (0)