/** * Conference state * * @typedef ConferencesState.ConferenceState * @property {ConferencesState.Conference} source source object of the conference * @category State */ export interface baseConferenceState { source: Conference; } /** * State for known conferences * * @interface ConferencesState * @property {Map} states active conferences states by conference SID * @category State */ export interface baseConferencesState { readonly states: Map>; } /** * Participant type * * @typedef {"worker" | "customer" | "transfer" | "supervisor" | ""} ParticipantType * @memberof ConferencesState */ export type ParticipantType = "worker" | "customer" | "transfer" | "supervisor" | "unknown"; /** * Participant status * * @typedef {"left" | "joined" | "recently_left"} ParticipantStatus * @memberof ConferencesState */ export type ParticipantStatus = "left" | "joined" | "recently_left"; /** * Conference status * * @typedef {"left" | "joined" | "recently_left"} ConferenceStatus * @memberof ConferencesState */ export type ConferenceStatus = "setup" | "active" | "closed" | "failed"; export interface OutboundTransfer { sid: string; status: ParticipantStatus; source: any; } export type baseConferenceListenerCallback = (listener: ConferenceListener) => void; export declare enum ConferenceListenerState { initializing = "initializing", initialized = "initialized", destroying = "destroying" } export interface baseConferenceListenerWrapper { consumers: Array; listener: ConferenceListener; } export interface baseUpdateConferencePayload { conference: Conference; } export interface baseUpdateMultipleConferencePayload { conferences: Array; } export interface Channel { sid: string; status: ConferenceStatus; mediaSid: string; type: string; } export type ChannelParticipantType = "customer" | "supervisor" | "agent" | "worker" | "external" | "unknown" | "transfer"; export { ChannelParticipantStatus } from "../../internal-flex-commons/src"; export interface VoiceChannelProperties { call_sid?: string; hold?: boolean; muted?: boolean; } export declare enum DataSource { sync = "sync", tr = "tr" }