The definition of connect.AgentStateType (in src/index.d.ts) is:
/** This enumeration lists the different types of agent states. */
enum AgentStateType {
/** The agent state hasn't been initialized yet. */
INIT = "init",
/** The agent is in a state where they can be routed contacts. */
ROUTABLE = "routable",
/** The agent is in a state where they cannot be routed contacts. */
NOT_ROUTABLE = "not_routable",
/** The agent is offline. */
OFFLINE = "offline",
}
However, when initiating a call, during a call, and during after call work, the state returned has a type of "system", which is not in the interface definition. Example:
The definition of
connect.AgentStateType
(insrc/index.d.ts
) is:However, when initiating a call, during a call, and during after call work, the state returned has a type of
"system"
, which is not in the interface definition. Example: