Explorar o código

chore: generate

opencode-agent[bot] hai 4 meses
pai
achega
b2baddcd37

+ 3 - 1
packages/opencode/src/server/routes/instance/httpapi/handlers/session.ts

@@ -224,7 +224,9 @@ export const sessionHandlers = HttpApiBuilder.group(InstanceHttpApi, "session",
     })
 
     const unshare = Effect.fn("SessionHttpApi.unshare")(function* (ctx: { params: { sessionID: SessionID } }) {
-      yield* shareSvc.unshare(ctx.params.sessionID).pipe(Effect.mapError(() => new HttpApiError.InternalServerError({})))
+      yield* shareSvc
+        .unshare(ctx.params.sessionID)
+        .pipe(Effect.mapError(() => new HttpApiError.InternalServerError({})))
       return yield* SessionError.mapStorageNotFound(session.get(ctx.params.sessionID))
     })
 

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

@@ -5680,14 +5680,14 @@ export type SessionUnshareData = {
 }
 
 export type SessionUnshareErrors = {
-  /**
-   * Bad request
-   */
-  400: BadRequestError
   /**
    * NotFoundError
    */
   404: NotFoundError
+  /**
+   * InternalServerError
+   */
+  500: EffectHttpApiErrorInternalServerError
 }
 
 export type SessionUnshareError = SessionUnshareErrors[keyof SessionUnshareErrors]
@@ -5714,14 +5714,14 @@ export type SessionShareData = {
 }
 
 export type SessionShareErrors = {
-  /**
-   * Bad request
-   */
-  400: BadRequestError
   /**
    * NotFoundError
    */
   404: NotFoundError
+  /**
+   * InternalServerError
+   */
+  500: EffectHttpApiErrorInternalServerError
 }
 
 export type SessionShareError = SessionShareErrors[keyof SessionShareErrors]

+ 12 - 12
packages/sdk/openapi.json

@@ -5781,22 +5781,22 @@
               }
             }
           },
-          "400": {
-            "description": "Bad request",
+          "404": {
+            "description": "NotFoundError",
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/BadRequestError"
+                  "$ref": "#/components/schemas/NotFoundError"
                 }
               }
             }
           },
-          "404": {
-            "description": "NotFoundError",
+          "500": {
+            "description": "InternalServerError",
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/NotFoundError"
+                  "$ref": "#/components/schemas/effect_HttpApiError_InternalServerError"
                 }
               }
             }
@@ -5852,22 +5852,22 @@
               }
             }
           },
-          "400": {
-            "description": "Bad request",
+          "404": {
+            "description": "NotFoundError",
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/BadRequestError"
+                  "$ref": "#/components/schemas/NotFoundError"
                 }
               }
             }
           },
-          "404": {
-            "description": "NotFoundError",
+          "500": {
+            "description": "InternalServerError",
             "content": {
               "application/json": {
                 "schema": {
-                  "$ref": "#/components/schemas/NotFoundError"
+                  "$ref": "#/components/schemas/effect_HttpApiError_InternalServerError"
                 }
               }
             }