From 7e35cff4f5cdb17324eadefa2d69c89ffe341d4b Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Thu, 21 May 2026 17:25:26 +0000 Subject: [PATCH] chore: generate --- packages/sdk/js/src/v2/gen/types.gen.ts | 22 ++++++++++ packages/sdk/openapi.json | 57 +++++++++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts index c291571b5c..527c3a9dac 100644 --- a/packages/sdk/js/src/v2/gen/types.gen.ts +++ b/packages/sdk/js/src/v2/gen/types.gen.ts @@ -1806,6 +1806,12 @@ export type SubtaskPartInput = { command?: string } +export type SessionBusyError = { + _tag: "SessionBusyError" + sessionID: string + message: string +} + export type V2SessionsResponse = { items: Array cursor: { @@ -6387,6 +6393,10 @@ export type SessionDeleteMessageErrors = { * NotFoundError */ 404: NotFoundError + /** + * SessionBusyError + */ + 409: SessionBusyError } export type SessionDeleteMessageError = SessionDeleteMessageErrors[keyof SessionDeleteMessageErrors] @@ -6786,6 +6796,10 @@ export type SessionShellErrors = { * NotFoundError */ 404: NotFoundError + /** + * SessionBusyError + */ + 409: SessionBusyError } export type SessionShellError = SessionShellErrors[keyof SessionShellErrors] @@ -6826,6 +6840,10 @@ export type SessionRevertErrors = { * NotFoundError */ 404: NotFoundError + /** + * SessionBusyError + */ + 409: SessionBusyError } export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors] @@ -6860,6 +6878,10 @@ export type SessionUnrevertErrors = { * NotFoundError */ 404: NotFoundError + /** + * SessionBusyError + */ + 409: SessionBusyError } export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors] diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 1b47efcd08..074bde1ec3 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -6194,6 +6194,16 @@ } } } + }, + "409": { + "description": "SessionBusyError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SessionBusyError" + } + } + } } }, "description": "Permanently delete a specific message and all of its parts from a session without reverting file changes.", @@ -7123,6 +7133,16 @@ } } } + }, + "409": { + "description": "SessionBusyError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SessionBusyError" + } + } + } } }, "description": "Execute a shell command within the session context and return the AI's response.", @@ -7239,6 +7259,16 @@ } } } + }, + "409": { + "description": "SessionBusyError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SessionBusyError" + } + } + } } }, "description": "Revert a specific message in a session, undoing its effects and restoring the previous state.", @@ -7340,6 +7370,16 @@ } } } + }, + "409": { + "description": "SessionBusyError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SessionBusyError" + } + } + } } }, "description": "Restore all previously reverted messages in a session.", @@ -15668,6 +15708,23 @@ "required": ["type", "prompt", "description", "agent"], "additionalProperties": false }, + "SessionBusyError": { + "type": "object", + "properties": { + "_tag": { + "type": "string", + "enum": ["SessionBusyError"] + }, + "sessionID": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "required": ["_tag", "sessionID", "message"], + "additionalProperties": false + }, "V2SessionsResponse": { "type": "object", "properties": {