mirror of
https://github.com/anomalyco/opencode.git
synced 2026-06-01 19:05:38 +00:00
fix(provider): type auth errors (#27301)
This commit is contained in:
@@ -1721,6 +1721,21 @@ export type ProviderAuthAuthorization = {
|
||||
instructions: string
|
||||
}
|
||||
|
||||
export type ProviderAuthError1 = {
|
||||
name:
|
||||
| "BadRequest"
|
||||
| "ProviderAuthOauthMissing"
|
||||
| "ProviderAuthOauthCodeMissing"
|
||||
| "ProviderAuthOauthCallbackFailed"
|
||||
| "ProviderAuthValidationFailed"
|
||||
data: {
|
||||
providerID?: string
|
||||
field?: string
|
||||
message?: string
|
||||
kind?: string
|
||||
}
|
||||
}
|
||||
|
||||
export type TextPartInput = {
|
||||
id?: string
|
||||
type: "text"
|
||||
@@ -5155,9 +5170,9 @@ export type ProviderOauthAuthorizeData = {
|
||||
|
||||
export type ProviderOauthAuthorizeErrors = {
|
||||
/**
|
||||
* Bad request
|
||||
* ProviderAuthError
|
||||
*/
|
||||
400: BadRequestError
|
||||
400: ProviderAuthError1
|
||||
}
|
||||
|
||||
export type ProviderOauthAuthorizeError = ProviderOauthAuthorizeErrors[keyof ProviderOauthAuthorizeErrors]
|
||||
@@ -5191,9 +5206,9 @@ export type ProviderOauthCallbackData = {
|
||||
|
||||
export type ProviderOauthCallbackErrors = {
|
||||
/**
|
||||
* Bad request
|
||||
* ProviderAuthError
|
||||
*/
|
||||
400: BadRequestError
|
||||
400: ProviderAuthError1
|
||||
}
|
||||
|
||||
export type ProviderOauthCallbackError = ProviderOauthCallbackErrors[keyof ProviderOauthCallbackErrors]
|
||||
|
||||
Reference in New Issue
Block a user