UNPKG

kod-temp

Version:

Workano Communications SDK

32 lines 1.55 kB
import { CallSession } from "../../lib/index"; import { TCall, TConnect, TMakeCall } from "./models"; export default class { static toggleCameraTimeout: any; static answeredCalls: { [key: string]: { timeout: any; callSession: CallSession; }; }; static connect(props: TConnect): Promise<void>; static call({ number, withCamera, monitoringInterval, }: TCall): Promise<any | null | undefined>; /** * Make a call between specified line and number * @param {string} number - number to be called; * @param {boolean} isMobile - call from your mobile to specified number; * @param {boolean} callbackAllLines - try all of your lines to make a call to the number; * @param {Object} line - target line for cdr; */ static makeCall(props: TMakeCall): Promise<any | null | undefined>; static accept(callSession: CallSession, withCamera?: boolean): Promise<string | null>; static hangup(callSession: CallSession): Promise<boolean>; static mute(callSession: CallSession): void; static unmute(callSession: CallSession): void; static turnCameraOn(callSession: CallSession): Promise<void>; static turnCameraOff(callSession: CallSession): Promise<void>; static getLocalVideoStream(callSession: CallSession): MediaStream | null; static getRemoteVideoStream(callSession: CallSession): MediaStream | null; static disconnect(): Promise<void>; static reject(callSession: CallSession): Promise<void>; } //# sourceMappingURL=index.d.ts.map