import { ApiListPromise } from '@sinch/sdk-client'; import { ConversationEvent, DeleteEventRequestData, GetEventRequestData, ListEventsRequestData, Recipient, SendAgentJoinedEventRequestData, SendAgentLeftEventRequestData, SendCommentReplyEventRequestData, SendComposingEndEventRequestData, SendComposingEventRequestData, SendEventRequestData, SendEventResponse, SendGenericEventRequestData } from '../../../models'; import { ConversationDomainApi } from '../conversation-domain-api'; import { LazyConversationApiClient } from '../conversation-service'; export declare class EventsApi extends ConversationDomainApi { constructor(lazyApiClient: LazyConversationApiClient); /** * Delete an event * Delete a specific event by its ID. * @param { DeleteEventRequestData } data - The data to provide to the API call. */ delete(data: DeleteEventRequestData): Promise; /** * Get an event * Get event from ID * @param { GetEventRequestData } data - The data to provide to the API call. */ get(data: GetEventRequestData): Promise; /** * List events * List all events in a project * @param { ListEventsRequestData } data - The data to provide to the API call. * @return {ApiListPromise} */ list(data?: ListEventsRequestData): ApiListPromise; /** * Send an event * Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued. * @param { SendEventRequestData } data - The data to provide to the API call. */ send(data: SendEventRequestData): Promise; /** * Send a composing event * Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued. * @param { SendComposingEventRequestData } data - The data to provide to the API call. */ sendComposingEvent(data: SendComposingEventRequestData): Promise; /** * Send a composing end event * Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued. * @param { SendComposingEndEventRequestData } data - The data to provide to the API call. */ sendComposingEndEvent(data: SendComposingEndEventRequestData): Promise; /** * Send a composing reply event * Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued. * @param {SendCommentReplyEventRequestData} data - The data to provide to the API call. */ sendCommentReplyEvent(data: SendCommentReplyEventRequestData): Promise; /** * Send an agent joined event * Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued. * @param {SendAgentJoinedEventRequestData} data - The data to provide to the API call. */ sendAgentJoinedEvent(data: SendAgentJoinedEventRequestData): Promise; /** * Send an agent left event * Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued. * @param {SendAgentLeftEventRequestData} data - The data to provide to the API call. */ sendAgentLeftEvent(data: SendAgentLeftEventRequestData): Promise; /** * Send a generic event * Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued. * @param {SendGenericEventRequestData} data - The data to provide to the API call. */ sendGenericEvent(data: SendGenericEventRequestData): Promise; private sendEvent; }