UNPKG

liveperson-functions-cli

Version:
25 lines (24 loc) 705 B
/// <reference types="node" /> /// <reference types="node" /> export declare type FilesReplaced = string[]; /** * Defines the strategy how the file replace has to authorize */ export interface IFileReplacerAuth { /** * @param host Host for which the headers should be retrieved */ getAuthHeaders: (host: string) => Promise<any>; } export declare type IShouldReplace = (path: string) => boolean; export interface IFileReplacerConfig { authStrategy: IFileReplacerAuth; shouldReplace: IShouldReplace; } export interface IReplacementFile { body: Buffer; contentType: string; } export interface IFileReplacer { replaceFiles(conversation: any): Promise<FilesReplaced>; }