liveperson-functions-cli
Version:
LivePerson Functions CLI
16 lines (15 loc) • 711 B
TypeScript
import { RequestPromiseOptions } from 'request-promise-native';
import { ICsdsClient } from '../csds-client/ICsdsClient';
import { ISecretClient } from '../secret-storage/IsecretClient';
import { LpServices } from './LpServices';
export interface ILpClientOptions extends RequestPromiseOptions {
appKeySecretName?: string;
}
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>;