infobip-rtc
Version:
Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation
42 lines (41 loc) • 1.09 kB
TypeScript
import { ErrorCode } from "../../event/ErrorCode";
import { RecordingType } from "../../options/RecordingOptions";
import { CustomData } from '../../CustomDataType';
import { ConfidenceRating } from "../../event/CallsApiEvents";
export interface RingingEvent {
customData: CustomData;
}
export interface CallResponseEvent {
callId: string;
isEarlyMedia: boolean;
description: RTCSessionDescriptionInit;
}
export interface CallAcceptedEvent {
callId: string;
}
export interface HangupEvent {
callId: string;
status: ErrorCode;
}
export interface CallErrorEvent {
status: ErrorCode;
}
export interface CallRecordingStartedEvent {
callId: string;
recordingType: RecordingType;
}
export interface CallRecordingStoppedEvent {
callId: string;
}
export interface MessageReceivedEvent {
message: string;
}
export interface MachineDetectionFinishedEvent {
detectionResult: string;
confidenceRating: ConfidenceRating;
customData: CustomData;
}
export interface MachineDetectionFailedEvent {
reason: string;
customData: CustomData;
}