The authenciated inbox as returned by the InboxSDK.authenticate method.

Properties

operatorPresence: TypedPresence<OperatorPresence>

Presence information about the operators on the bot's environment.

user: Promise<StudioUser>

The logged in user.

Methods

  • Joins the inbox.all channel.

    On error, the promise reject reason may be either 'timeout', or a string indicating why it failed.

    This channel is only available for supervisors.

    Parameters

    Returns Promise<InboxChannel>

  • Joins the inbox.assigned channel.

    On error, the promise reject reason may be either 'timeout', or a string indicating why it failed.

    Parameters

    Returns Promise<InboxChannel>

  • Joins the inbox.automated channel.

    On error, the promise reject reason may be either 'timeout', or a string indicating why it failed.

    This channel is only available for supervisors.

    Parameters

    Returns Promise<InboxChannel>

  • Joins the inbox.closed channel.

    On error, the promise reject reason may be either 'timeout', or a string indicating why it failed.

    Parameters

    Returns Promise<InboxChannel>

  • Destructor.

    Removes the iframe. Closes the websocket.

    The inbox object cannot be reused after this.

    Returns void

  • Joins the inbox.mine channel.

    This channel contains the conversations that were assigned to me.

    On error, the promise reject reason may be either 'timeout', or a string indicating why it failed.

    Parameters

    Returns Promise<InboxChannel>

  • Instructs the iframe to navigate to the given conversation.

    If there is no iframe on the page yet, it will be added.

    Parameters

    Returns Promise<void>

  • Joins the inbox.new channel.

    On error, the promise reject reason may be either 'timeout', or a string indicating why it failed.

    Parameters

    Returns Promise<InboxChannel>

  • Renders the full inbox (not just a conversation) in the iframe.

    If there is no iframe on the page yet, it will be added.

    Parameters

    Returns Promise<void>

  • Renders just the notes view in the iframe.

    If there is no iframe on the page yet, it will be added.

    Parameters

    Returns Promise<void>

  • Renders just the today view in the iframe.

    If there is no iframe on the page yet, it will be added.

    Parameters

    Returns Promise<void>

  • Remove the current iframe from page (if present).

    Calling navigateToConversation will add the iframe again.

    Returns void

  • Starts a new conversation.

    Parameters:

    • channel: the channel as returned by listInitiateableChannels.
    • userKey: the identifier for the end user (e.g. phone number, email address) appropriate for the selected channel.

    Parameters

    Returns Promise<Conversation>

  • Updates the language code in the iframe.

    Parameters

    • languageCode: string

    Returns Promise<void>

  • Joins the inbox.watched channel.

    On error, the promise reject reason may be either 'timeout', or a string indicating why it failed.

    Parameters

    Returns Promise<InboxChannel>

Generated using TypeDoc