UNPKG

liveperson-functions-cli

Version:
25 lines (24 loc) 846 B
import { ICsdsClient } from './ICsdsClient'; /** * CSDS client that internally uses the Toolbelt.HTTPClient because it has the right proxy settings. */ export declare class CsdsClient implements ICsdsClient { private ttlInSeconds; private accountId; private lastCacheTimestamp; private domains; /** * @param ttlInSeconds TTL of the domains cache in seconds */ constructor(ttlInSeconds?: number, accountId?: string | undefined, lastCacheTimestamp?: number); /** * Get the host for a CSDS service name. * The CsdsClient will get all hosts for the account and cache them as configured in ttInSeconds (see constructor). * @param service */ get(service: string): Promise<string>; private getCachedDomains; private isCacheExpired; private getUrl; private getCsdsDomain; }