mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 20:49:55 +00:00
feat(desktop): permissions
This commit is contained in:
parent
c523ca4127
commit
21eba5f987
17 changed files with 586 additions and 60 deletions
|
|
@ -2879,6 +2879,43 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/permission": {
|
||||
"get": {
|
||||
"operationId": "permission.list",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
"name": "directory",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"summary": "List pending permissions",
|
||||
"description": "Get all pending permission requests across all sessions.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "List of pending permissions",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Permission"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-codeSamples": [
|
||||
{
|
||||
"lang": "js",
|
||||
"source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.permission.list({\n ...\n})"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/command": {
|
||||
"get": {
|
||||
"operationId": "command.list",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue