UNPKG

n8n

Version:

n8n Workflow Automation Tool

12 lines (11 loc) 629 B
import type { AiGatewayConfigDto } from '@n8n/api-types'; import type { INode } from 'n8n-workflow'; export type AiGatewayEligibilityReason = 'nodeNotCovered' | 'credentialTypeNotCovered' | 'versionTooLow' | 'unsupportedAction' | 'hiddenPropertySet'; export type AiGatewayEligibility = { eligible: true; } | { eligible: false; reason: AiGatewayEligibilityReason; details?: string; }; export declare function checkAiGatewayEligibility(node: Pick<INode, 'type' | 'typeVersion' | 'parameters'>, credentialType: string, config: AiGatewayConfigDto, resolvedParameters?: Record<string, unknown>): AiGatewayEligibility;