Skip to content

Commit d488e3f

Browse files
chore: generate
1 parent 809af5c commit d488e3f

2 files changed

Lines changed: 40 additions & 10 deletions

File tree

packages/opencode/src/provider/auth.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,7 @@ export class ValidationFailed extends Schema.TaggedErrorClass<ValidationFailed>(
8181
message: Schema.String,
8282
}) {}
8383

84-
export type Error =
85-
| Auth.AuthError
86-
| OauthMissing
87-
| OauthCodeMissing
88-
| OauthCallbackFailed
89-
| ValidationFailed
84+
export type Error = Auth.AuthError | OauthMissing | OauthCodeMissing | OauthCallbackFailed | ValidationFailed
9085

9186
type Hook = NonNullable<Hooks["auth"]>
9287

packages/sdk/openapi.json

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4217,11 +4217,11 @@
42174217
}
42184218
},
42194219
"400": {
4220-
"description": "Bad request",
4220+
"description": "ProviderAuthError",
42214221
"content": {
42224222
"application/json": {
42234223
"schema": {
4224-
"$ref": "#/components/schemas/BadRequestError"
4224+
"$ref": "#/components/schemas/ProviderAuthError1"
42254225
}
42264226
}
42274227
}
@@ -4303,11 +4303,11 @@
43034303
}
43044304
},
43054305
"400": {
4306-
"description": "Bad request",
4306+
"description": "ProviderAuthError",
43074307
"content": {
43084308
"application/json": {
43094309
"schema": {
4310-
"$ref": "#/components/schemas/BadRequestError"
4310+
"$ref": "#/components/schemas/ProviderAuthError1"
43114311
}
43124312
}
43134313
}
@@ -13785,6 +13785,41 @@
1378513785
"required": ["url", "method", "instructions"],
1378613786
"additionalProperties": false
1378713787
},
13788+
"ProviderAuthError1": {
13789+
"type": "object",
13790+
"properties": {
13791+
"name": {
13792+
"type": "string",
13793+
"enum": [
13794+
"BadRequest",
13795+
"ProviderAuthOauthMissing",
13796+
"ProviderAuthOauthCodeMissing",
13797+
"ProviderAuthOauthCallbackFailed",
13798+
"ProviderAuthValidationFailed"
13799+
]
13800+
},
13801+
"data": {
13802+
"type": "object",
13803+
"properties": {
13804+
"providerID": {
13805+
"type": "string"
13806+
},
13807+
"field": {
13808+
"type": "string"
13809+
},
13810+
"message": {
13811+
"type": "string"
13812+
},
13813+
"kind": {
13814+
"type": "string"
13815+
}
13816+
},
13817+
"additionalProperties": false
13818+
}
13819+
},
13820+
"required": ["name", "data"],
13821+
"additionalProperties": false
13822+
},
1378813823
"TextPartInput": {
1378913824
"type": "object",
1379013825
"properties": {

0 commit comments

Comments
 (0)