From Bright Pattern Documentation
Overview
The Embedded Agent Desktop SDK supports the following types of events.
Agent Login events, such as onAgentLogin(callback), are used for showing whether an agent is logged in or out of Agent Desktop.
Agent Status events, such as onStatusChange(callback), are used for retrieving an agent's state and reason.
Call Flow events, such as addInteractionRenderedHandler(callback) and addInteractionCompletedHandler(callback), are used for getting information about active interactions and completed interactions.
For more information, see General Information about the Out-page JS API.