Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MessagingClient

Hierarchy

  • MessagingClient

Index

Properties

clientId

clientId: uuid

clientToken

clientToken: string | undefined

webhookToken

webhookToken: string | undefined

Methods

createConversation

createMessage

  • createMessage(conversationId: uuid, authorId: uuid | undefined, payload: any, flags?: object): Promise<Message>
  • Parameters

    • conversationId: uuid
    • authorId: uuid | undefined
    • payload: any
    • Optional flags: object

    Returns Promise<Message>

    info of the created message

createUser

deleteMessage

  • deleteMessage(id: uuid): Promise<boolean>

deleteMessagesByConversation

  • deleteMessagesByConversation(conversationId: uuid): Promise<number>
  • Parameters

    • conversationId: uuid

    Returns Promise<number>

    amount of messages deleted

getConversation

getMessage

getUser

listConversations

listEndpoints

  • Parameters

    • conversationId: uuid

    Returns Promise<Endpoint[]>

    an array of endpoints that are linked to the provided conversation

listMessages

  • listMessages(conversationId: uuid, limit?: number): Promise<Message[]>

mapEndpoint

Generated using TypeDoc