فهرست منبع

chore: generate

opencode-agent[bot] 4 ماه پیش
والد
کامیت
bad4599bf9
2فایلهای تغییر یافته به همراه32 افزوده شده و 7 حذف شده
  1. 5 1
      packages/opencode/src/server/routes/instance/httpapi/provider.ts
  2. 27 6
      packages/sdk/openapi.json

+ 5 - 1
packages/opencode/src/server/routes/instance/httpapi/provider.ts

@@ -147,7 +147,11 @@ export const providerHandlers = Layer.unwrap(
     })
     })
 
 
     return HttpApiBuilder.group(ProviderApi, "provider", (handlers) =>
     return HttpApiBuilder.group(ProviderApi, "provider", (handlers) =>
-      handlers.handle("list", list).handle("auth", auth).handleRaw("authorize", authorizeRaw).handle("callback", callback),
+      handlers
+        .handle("list", list)
+        .handle("auth", auth)
+        .handleRaw("authorize", authorizeRaw)
+        .handle("callback", callback),
     )
     )
   }),
   }),
 ).pipe(
 ).pipe(

+ 27 - 6
packages/sdk/openapi.json

@@ -2168,8 +2168,15 @@
             "in": "query",
             "in": "query",
             "name": "roots",
             "name": "roots",
             "schema": {
             "schema": {
-              "type": "string",
-              "enum": ["true", "false"]
+              "anyOf": [
+                {
+                  "type": "boolean"
+                },
+                {
+                  "type": "string",
+                  "enum": ["true", "false"]
+                }
+              ]
             },
             },
             "description": "Only return root sessions (no parentID)"
             "description": "Only return root sessions (no parentID)"
           },
           },
@@ -2209,8 +2216,15 @@
             "in": "query",
             "in": "query",
             "name": "archived",
             "name": "archived",
             "schema": {
             "schema": {
-              "type": "string",
-              "enum": ["true", "false"]
+              "anyOf": [
+                {
+                  "type": "boolean"
+                },
+                {
+                  "type": "string",
+                  "enum": ["true", "false"]
+                }
+              ]
             },
             },
             "description": "Include archived sessions (default false)"
             "description": "Include archived sessions (default false)"
           }
           }
@@ -2310,8 +2324,15 @@
             "in": "query",
             "in": "query",
             "name": "roots",
             "name": "roots",
             "schema": {
             "schema": {
-              "type": "string",
-              "enum": ["true", "false"]
+              "anyOf": [
+                {
+                  "type": "boolean"
+                },
+                {
+                  "type": "string",
+                  "enum": ["true", "false"]
+                }
+              ]
             },
             },
             "description": "Only return root sessions (no parentID)"
             "description": "Only return root sessions (no parentID)"
           },
           },