UNPKG

@n8n/n8n-nodes-langchain

Version:
15 lines (14 loc) • 803 B
import type { IExecuteFunctions, ISupplyDataFunctions, ILoadOptionsFunctions, NodeEgressFilter } from 'n8n-workflow'; import type { OAuth2TokenData, RefreshingTokenSource } from '../oauth2-token-provider'; export declare const DATABRICKS_CREDENTIAL_TYPE = "databricksOAuth2Api"; export type DatabricksOAuth2Credential = { host: string; grantType: 'clientCredentials' | 'authorizationCode'; clientId: string; clientSecret: string; scope?: string; authentication?: 'header' | 'body'; oauthTokenData?: OAuth2TokenData; tokenExpiredStatusCode?: number; }; export declare function getDatabricksTokenProvider(ctx: IExecuteFunctions | ISupplyDataFunctions | ILoadOptionsFunctions, credential: DatabricksOAuth2Credential, egressFilter?: NodeEgressFilter): RefreshingTokenSource;