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

This commit is contained in:
Shoubhit Dash
2026-05-13 15:47:13 +05:30
committed by GitHub
parent 733bd3c74e
commit 809af5c590
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]