liveperson-functions-client
Version:
JavaScript client for LivePerson Functions.
46 lines (45 loc) • 1.85 kB
TypeScript
export interface ErrorDomain {
/**
* An String representation of the error, allows easier identification of the source.
*/
errorCode: string;
/**
* Error specific message. It can also be an console log related to the error.
*/
errorMsg: string;
}
export interface KeyValueDomain {
key: string;
value: string;
}
export interface InvocationDomain {
/**
* The timestamp (unix) when the request was sent by the caller
*/
timestamp?: number;
/**
* Headers that should be past to the lambda
*/
headers?: KeyValueDomain[];
/**
* Event / Call Payload
*/
payload: unknown;
}
export declare const EVENT: Readonly<{
readonly ChatPostSurveyEmailTranscript: "denver_post_survey_email_transcript";
readonly ConversationalCommand: "conversational_command";
readonly MessagingNewConversation: "controllerbot_messaging_new_conversation";
readonly MessagingTTR: "controllerbot_messaging_ttr";
readonly MessagingParticipantChange: "controllerbot_messaging_participants_change";
readonly MessagingConversationIdle: "controllerbot_messaging_conversation_idle";
readonly MessagingConversationRouting: "controllerbot_messaging_conversation_routing";
readonly MessagingLineInOffHours: "controllerbot_messaging_mid_conversation_msg";
readonly MessagingConversationEnd: "controllerbot_messaging_conversation_end";
readonly MessagingSurveyStarted: "surveybot_messaging_survey_started";
readonly MessagingSurveyEnded: "surveybot_messaging_survey_ended";
readonly ThirdPartyBotsPostHook: "bot_connectors_post_hook";
readonly ThirdPartyBotsErrorHook: "bot_connectors_error_hook";
readonly ThirdPartyBotsCustomIntegration: "bot_connectors_custom_integration";
readonly ThirdPartyBotsPreHook: "bot_connectors_pre_hook";
}>;