From d488e3fd2a6fabcc65a0df758246bf17a409f288 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Wed, 13 May 2026 10:18:40 +0000 Subject: [PATCH] chore: generate --- packages/opencode/src/provider/auth.ts | 7 +---- packages/sdk/openapi.json | 43 +++++++++++++++++++++++--- 2 files changed, 40 insertions(+), 10 deletions(-) diff --git a/packages/opencode/src/provider/auth.ts b/packages/opencode/src/provider/auth.ts index 2e1b1e2af9..6f857ce522 100644 --- a/packages/opencode/src/provider/auth.ts +++ b/packages/opencode/src/provider/auth.ts @@ -81,12 +81,7 @@ export class ValidationFailed extends Schema.TaggedErrorClass( message: Schema.String, }) {} -export type Error = - | Auth.AuthError - | OauthMissing - | OauthCodeMissing - | OauthCallbackFailed - | ValidationFailed +export type Error = Auth.AuthError | OauthMissing | OauthCodeMissing | OauthCallbackFailed | ValidationFailed type Hook = NonNullable diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 0a93e92eee..fc7e4c2784 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -4217,11 +4217,11 @@ } }, "400": { - "description": "Bad request", + "description": "ProviderAuthError", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BadRequestError" + "$ref": "#/components/schemas/ProviderAuthError1" } } } @@ -4303,11 +4303,11 @@ } }, "400": { - "description": "Bad request", + "description": "ProviderAuthError", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BadRequestError" + "$ref": "#/components/schemas/ProviderAuthError1" } } } @@ -13785,6 +13785,41 @@ "required": ["url", "method", "instructions"], "additionalProperties": false }, + "ProviderAuthError1": { + "type": "object", + "properties": { + "name": { + "type": "string", + "enum": [ + "BadRequest", + "ProviderAuthOauthMissing", + "ProviderAuthOauthCodeMissing", + "ProviderAuthOauthCallbackFailed", + "ProviderAuthValidationFailed" + ] + }, + "data": { + "type": "object", + "properties": { + "providerID": { + "type": "string" + }, + "field": { + "type": "string" + }, + "message": { + "type": "string" + }, + "kind": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "required": ["name", "data"], + "additionalProperties": false + }, "TextPartInput": { "type": "object", "properties": {