import type { Endpoint } from '../api.js'; import type { StandardNangoConfig } from '../flow/index.js'; export interface OpenAIFunction { name: string; description: string; parameters: { type: string; properties: Record; required: string[]; }; } export type GetPublicScriptsConfig = Endpoint<{ Method: 'GET'; Path: `/scripts/config`; Query: { format?: 'nango' | 'openai'; }; Success: StandardNangoConfig[] | { data: OpenAIFunction[]; }; }>;