Browse Source

chore: generate

opencode-agent[bot] 3 months ago
parent
commit
bed88ce50e
2 changed files with 2 additions and 16 deletions
  1. 1 4
      packages/sdk/js/src/v2/gen/types.gen.ts
  2. 1 12
      packages/sdk/openapi.json

+ 1 - 4
packages/sdk/js/src/v2/gen/types.gen.ts

@@ -1263,10 +1263,7 @@ export type Config = {
       }
   instructions?: Array<string>
   layout?: LayoutConfig
-  /**
-   * Permission configuration. Accepts a single object (per-tool action map) or an array of layered configs; arrays are merged in order so later layers override earlier ones.
-   */
-  permission?: PermissionConfig | Array<PermissionConfig>
+  permission?: PermissionConfig
   tools?: {
     [key: string]: boolean
   }

+ 1 - 12
packages/sdk/openapi.json

@@ -12407,18 +12407,7 @@
             "$ref": "#/components/schemas/LayoutConfig"
           },
           "permission": {
-            "anyOf": [
-              {
-                "$ref": "#/components/schemas/PermissionConfig"
-              },
-              {
-                "type": "array",
-                "items": {
-                  "$ref": "#/components/schemas/PermissionConfig"
-                }
-              }
-            ],
-            "description": "Permission configuration. Accepts a single object (per-tool action map) or an array of layered configs; arrays are merged in order so later layers override earlier ones."
+            "$ref": "#/components/schemas/PermissionConfig"
           },
           "tools": {
             "type": "object",