UNPKG

@n8n-plus/n8n-plus

Version:

n8n Workflow Automation Tool (plus edition)

31 lines (30 loc) 841 B
import type { ApiKeyScope } from '@n8n/permissions'; 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 {};