export type Headers = Record; export type OAuth2GrantType = 'pkce' | 'authorizationCode' | 'clientCredentials'; export type OAuth2AuthenticationMethod = 'header' | 'body'; export type OAuth2ClientCredentialType = 'clientSecret' | 'certificate'; export interface ClientCertificate { privateKey: string; certificate: string; } export interface OAuth2CredentialData { clientId: string; clientCredentialType?: OAuth2ClientCredentialType; clientSecret?: string; privateKey?: string; certificate?: string; accessTokenUrl: string; authentication?: OAuth2AuthenticationMethod; authUrl?: string; scope?: string; authQueryParameters?: string; additionalBodyProperties?: string; grantType: OAuth2GrantType; ignoreSSLIssues?: boolean; tokenExpiredStatusCode?: number; oauthTokenData?: { access_token: string; refresh_token?: string; resource?: string; }; useDynamicClientRegistration?: boolean; serverUrl?: string; resourceUrl?: string; jweEnabled?: boolean; resource?: string; inlineJwks?: boolean; } export interface OAuth2AccessTokenErrorResponse extends Record { error: string; error_description?: string; error_uri?: string; }