UNPKG

liveperson-functions-cli

Version:
24 lines (23 loc) 1.48 kB
import { NamespaceOptions, Namespace, Entity } from '../context-service-sdk/lib'; import { IFaaSContextServiceClientConfig, IFaaSContextServiceClient } from './IFaaSContextServiceClient'; export declare class FaasContextServiceClient implements IFaaSContextServiceClient { private contextServiceClient; private baseUrl; private accountId; private apiKeySecretName?; private apiKey?; constructor(config: IFaaSContextServiceClientConfig); private initContextServiceClient; private getApiKey; createNamespace(namespace: string, options?: NamespaceOptions): Promise<Namespace>; deleteNamespace(namespace: string): Promise<void>; getListOfNamespaces(): Promise<Namespace[]>; setPropertiesInNamespace(namespace: string, properties: Entity, sessionId?: string): Promise<Entity>; updatePropertiesInNamespace(namespace: string, properties: Entity, sessionId?: string): Promise<Entity>; getAllPropertiesInSession(namespace: string, sessionId?: string): Promise<Entity>; getSelectedPropertiesInSession(namespace: string, propertyNames: string[], sessionId?: string): Promise<Entity>; getPropertyInSession(namespace: string, propertyName: string, sessionId?: string): Promise<unknown>; deletePropertyInSession(namespace: string, propertyName: string, sessionId?: string): Promise<void>; deleteSession(namespace: string, sessionId: string): Promise<void>; getListOfSessions(namespace: string): Promise<string[]>; }