liveperson-functions-cli
Version:
LivePerson Functions CLI
19 lines (18 loc) • 699 B
TypeScript
import { ICsdsClient } from '../csds-client/ICsdsClient';
import { ISecretClient } from '../secret-storage/IsecretClient';
import { LpServices } from './LpServices';
export interface ILpClientOptions {
appKeySecretName?: string;
method?: string;
body?: object;
headers?: object;
json?: boolean;
}
export interface IApiKeyCredentials {
consumerKey: string;
consumerSecret: string;
token: string;
tokenSecret: string;
}
export declare const lpClientFactory: (csdsClient: ICsdsClient, secretClient: ISecretClient, httpClient: any) => ILpClient;
export declare type ILpClient = (service: LpServices | string, path: string, options: ILpClientOptions) => Promise<any>;