/**
 * OpenAI Node - Version 2.1
 * Discriminator: resource=file, operation=list
 */


interface Credentials {
  openAiApi: CredentialReference;
}

/** Returns a list of files that belong to the user's organization */
export type LcOpenAiV21FileListParams = {
  resource: 'file';
  operation: 'list';
/**
 * Options
 * @default {}
 */
    options?: {
    /** Only return files with the given purpose
     * @default any
     */
    purpose?: 'any' | 'assistants' | 'fine-tune' | 'vision' | 'user_data' | Expression<string>;
  };
};

export interface LcOpenAiV21FileListSubnodeConfig {
  tools?: ToolInstance[];
  memory?: MemoryInstance;
}

export type LcOpenAiV21FileListNode = {
  type: '@n8n/n8n-nodes-langchain.openAi';
  version: 2.1;
  credentials?: Credentials;
  isTrigger: true;
  config: NodeConfig<LcOpenAiV21FileListParams> & { subnodes?: LcOpenAiV21FileListSubnodeConfig };
};