@telnyx/webrtc
Version:
Telnyx WebRTC Client
69 lines (68 loc) • 1.68 kB
TypeScript
import { IWebRTCCall } from '../webrtc/interfaces';
declare type Environment = 'production' | 'development';
export interface IVertoOptions {
host?: string;
project?: string;
token?: string;
login?: string;
passwd?: string;
password?: string;
login_token?: string;
userVariables?: Object;
ringtoneFile?: string;
ringbackFile?: string;
env?: Environment;
iceServers?: RTCIceServer[];
autoReconnect?: boolean;
debug?: boolean;
debugOutput?: 'socket' | 'file';
prefetchIceCandidates?: boolean;
forceRelayCandidate?: boolean;
region?: string;
anonymous_login?: {
target_type: string;
target_id: string;
};
}
export interface SubscribeParams {
channels?: string[];
protocol?: string;
handler?: Function;
nodeId?: string;
}
export interface BroadcastParams {
channel?: string;
protocol?: string;
data?: object;
nodeId?: string;
}
export interface IAudioSettings extends MediaTrackConstraints {
micId?: string;
micLabel?: string;
}
export interface IVideoSettings extends MediaTrackConstraints {
camId?: string;
camLabel?: string;
}
export interface INotificationEventData {
type: string;
call?: IWebRTCCall;
error?: Error;
displayName?: string;
displayNumber?: string;
displayDirection?: string;
}
export interface IRequestRPC {
id: any;
method?: any;
params?: any;
}
export interface IResponseRPC {
id: any;
result?: {
params: any;
};
}
export interface IMessageRPC extends IRequestRPC, IResponseRPC {
}
export {};