@avaya/infinity-agent-sdk - v1.0.0
    Preparing search index...

    Interface UserStatusChangedEvent

    Event fired when the agent's status changes (e.g. Available → Busy).

    This event fires for both agent-initiated changes (e.g. the agent calling User.changeStatus) and platform-initiated changes.

    Not fired for CX login/logout - see UserCxLoggedInEvent and UserCxLoggedOutEvent.

    user.subscribe(UserEventType.USER_STATUS_CHANGED, (event) => {
    console.log("Status changed to:", event.payload.status.type);
    });
    interface UserStatusChangedEvent {
        occurredAt: Date;
        type: USER_STATUS_CHANGED;
        payload: UserStatusChangedPayload;
    }
    Index

    Properties

    occurredAt: Date

    The timestamp when the event occurred.

    The type of the user event.

    The event payload containing event-specific data.