Chats

Date

2/1/2024 - 2:44:47 AM

Export

Constructors

Properties

_chatKeyCache: Map<string, string> = ...
api: API
sdkConfig: FilenSDKConfig

Methods

  • Add a participant to a chat.

    Parameters

    • param0: {
          contact: Contact;
          conversation: string;
      }
      • contact: Contact
      • conversation: string

    Returns Promise<void>

    Date

    2/20/2024 - 5:46:46 AM

    Async

  • Get the encryption key of a chat.

    Parameters

    • param0: {
          conversation: string;
      }
      • conversation: string

    Returns Promise<string>

    Date

    2/20/2024 - 6:05:30 AM

    Async

  • Get the notification count for a conversation.

    Parameters

    • param0: {
          conversation: string;
      }
      • conversation: string

    Returns Promise<number>

    Date

    2/20/2024 - 6:07:24 AM

    Async

  • Create a chat conversation. Optionally add participants to it.

    Parameters

    • param0: {
          contacts?: Contact[];
          uuid?: string;
      }
      • Optional contacts?: Contact[]
      • Optional uuid?: string

    Returns Promise<string>

    Date

    2/20/2024 - 5:48:07 AM

    Async

  • Delete a chat conversation.

    Parameters

    • param0: {
          conversation: string;
      }
      • conversation: string

    Returns Promise<void>

    Date

    2/20/2024 - 6:15:57 AM

    Async

  • Delete a chat message.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 5:52:09 AM

    Async

  • Disable a message embed.

    Parameters

    • param0: {
          uuid: string;
      }
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 6:10:38 AM

    Async

  • Edit a conversation name.

    Parameters

    • param0: {
          conversation: string;
          name: string;
      }
      • conversation: string
      • name: string

    Returns Promise<void>

    Date

    2/20/2024 - 6:03:14 AM

    Async

  • Edit a chat message.

    Parameters

    • param0: {
          conversation: string;
          message: string;
          uuid: string;
      }
      • conversation: string
      • message: string
      • uuid: string

    Returns Promise<void>

    Date

    2/20/2024 - 5:52:16 AM

    Async

  • Leave a conversation. Only works if you are not the owner.

    Parameters

    • param0: {
          conversation: string;
      }
      • conversation: string

    Returns Promise<void>

    Date

    2/20/2024 - 6:14:36 AM

    Async

  • Mark a conversation as read.

    Parameters

    • param0: {
          conversation: string;
      }
      • conversation: string

    Returns Promise<void>

    Date

    2/20/2024 - 6:06:21 AM

    Async

  • Fetch chat messages from the given timestamp ordered DESC. Can be used for pagination.

    Parameters

    • param0: {
          conversation: string;
          timestamp?: number;
      }
      • conversation: string
      • Optional timestamp?: number

    Returns Promise<ChatMessage[]>

    Date

    2/20/2024 - 6:00:37 AM

    Async

  • Remove a participant from a chat.

    Parameters

    • param0: {
          conversation: string;
          userId: number;
      }
      • conversation: string
      • userId: number

    Returns Promise<void>

    Date

    2/20/2024 - 5:49:45 AM

    Async

  • Send a message.

    Parameters

    • param0: {
          conversation: string;
          message: string;
          replyTo: string;
          uuid?: string;
      }
      • conversation: string
      • message: string
      • replyTo: string
      • Optional uuid?: string

    Returns Promise<string>

    Date

    2/20/2024 - 5:54:24 AM

    Async

  • Send a typing event.

    Parameters

    Returns Promise<void>

    Date

    2/20/2024 - 5:55:20 AM

    Async

  • Get the unread notification count (includes all conversations).

    Returns Promise<number>

    Date

    2/20/2024 - 6:08:07 AM

    Async

Generated using TypeDoc