@nangohq/types
Version:
Types used in Nango applications
25 lines (24 loc) • 589 B
TypeScript
import type { Endpoint } from '../api';
import type { StandardNangoConfig } from '../flow';
export interface OpenAIFunction {
name: string;
description: string;
parameters: {
type: string;
properties: Record<string, {
type: string;
description: string;
}>;
required: string[];
};
}
export type GetPublicScriptsConfig = Endpoint<{
Method: 'GET';
Path: `/scripts/config`;
Query: {
format?: 'nango' | 'openai';
};
Success: StandardNangoConfig[] | {
data: OpenAIFunction[];
};
}>;