GeezerVison is showing github.com — chore: generate · Luminger/opencode@7da24eb
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/sdk/openapi.json +41Lines changed: 41 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
340 | 340 | ] |
341 | 341 | } |
342 | 342 | }, |
| 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 | + }, |
343 | 384 | "/project/{projectID}": { |
344 | 385 | "patch": { |
345 | 386 | "operationId": "project.update", |
|