Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChatApiClient

Package version

Hierarchy

Index

Constructors

constructor

Properties

apiVersion

apiVersion: string

endpoint

endpoint: string

Methods

addChatThreadMembers

  • addChatThreadMembers(chatThreadId: string, body: AddChatThreadMembersRequest, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Adds thread members to a thread. If members already exist, no change occurs.

    Parameters

    • chatThreadId: string

      Id of the thread to add members to.

    • body: AddChatThreadMembersRequest

      Thread members to be added to the thread.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

createChatThread

deleteChatMessage

  • deleteChatMessage(chatThreadId: string, chatMessageId: string, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Deletes a message.

    Parameters

    • chatThreadId: string

      The thread id to which the message was sent.

    • chatMessageId: string

      The message id.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

deleteChatThread

  • deleteChatThread(chatThreadId: string, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Deletes a thread.

    Parameters

    • chatThreadId: string

      Thread id to delete.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

getChatMessage

getChatThread

listChatMessages

listChatMessagesNext

listChatReadReceipts

listChatReadReceiptsNext

listChatThreadMembers

listChatThreadMembersNext

listChatThreads

listChatThreadsNext

removeChatThreadMember

  • removeChatThreadMember(chatThreadId: string, chatMemberId: string, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Remove a member from a thread.

    Parameters

    • chatThreadId: string

      Thread id to remove the member from.

    • chatMemberId: string

      Id of the thread member to remove from the thread.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

sendChatMessage

sendChatReadReceipt

  • sendChatReadReceipt(chatThreadId: string, body: SendReadReceiptRequest, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Sends a read receipt event to a thread, on behalf of a user.

    Parameters

    • chatThreadId: string

      Thread id to send the read receipt event to.

    • body: SendReadReceiptRequest

      Read receipt details.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

sendTypingNotification

  • sendTypingNotification(chatThreadId: string, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Posts a typing event to a thread, on behalf of a user.

    Parameters

    • chatThreadId: string

      Id of the thread.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

updateChatMessage

  • updateChatMessage(chatThreadId: string, chatMessageId: string, body: UpdateChatMessageRequest, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Updates a message.

    Parameters

    • chatThreadId: string

      The thread id to which the message was sent.

    • chatMessageId: string

      The message id.

    • body: UpdateChatMessageRequest

      Details of the request to update the message.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

updateChatThread

  • updateChatThread(chatThreadId: string, body: UpdateChatThreadRequest, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>
  • Updates a thread's properties.

    Parameters

    • chatThreadId: string

      The id of the thread to update.

    • body: UpdateChatThreadRequest

      Request payload for updating a chat thread.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<coreHttp.RestResponse>

Generated using TypeDoc