Hierarchy

  • Thread

Constructors

Properties

Methods

Constructors

Properties

db: D1Database
id: string

Methods

  • Adds a participant to the thread.

    Parameters

    • address: string

      The email address of the participant.

    • name: string

      The name of the participant.

    • Optional role: string

      The role of the participant (optional).

    Returns Promise<void>

    A promise that resolves when the participant is successfully added.

  • Removes the specified email from the participants of the thread.

    Parameters

    • email: string

      The email to be removed from the thread participants.

    Returns Promise<void>

    A Promise that resolves when the email is successfully removed from the thread.

  • Retrieves a list of thread messages for the current thread.

    Returns Promise<ThreadMessage[]>

    A promise that resolves to an array of ThreadMessage objects.

  • Pushes a message to the thread.

    Parameters

    • message_id: string

      The ID of the message to be pushed.

    Returns Promise<void>

    A promise that resolves when the message is successfully pushed.

  • Returns Promise<string>

Generated using TypeDoc