fix(provider): type auth errors (#27301)

This commit is contained in:
Shoubhit Dash 2026-05-13 15:47:13 +05:30 committed by GitHub
commit 809af5c590
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 200 additions and 32 deletions

View file

@ -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]