UNPKG

n8n

Version:

n8n Workflow Automation Tool

32 lines (31 loc) 869 B
import type { ApiKeyScope } from '@n8n/permissions'; import '../../controllers'; interface EndpointEntry { method: string; path: string; operationId: string; requestSchema?: Record<string, unknown>; } interface ResourceInfo { operations: string[]; endpoints: EndpointEntry[]; } interface FilterInfo { description: string; example?: string; values?: string[]; } export interface DiscoverResponse { scopes: ApiKeyScope[]; resources: Record<string, ResourceInfo>; filters: Record<string, FilterInfo>; specUrl: string; } export interface DiscoverOptions { includeSchemas?: boolean; resource?: string; operation?: string; } export declare function buildDiscoverResponse(callerScopes: ApiKeyScope[], options?: DiscoverOptions): Promise<DiscoverResponse>; export declare function _resetCache(): void; export {};