fix(provider): type auth errors (#27301)
This commit is contained in:
parent
733bd3c74e
commit
809af5c590
6 changed files with 200 additions and 32 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue