@telnyx/react-native-voice-sdk
Version:
Telnyx React Native Voice SDK
30 lines (29 loc) • 704 B
TypeScript
type ClientReadyEvent = {
id: number;
jsonrpc: '2.0';
method: 'telnyx_rtc.clientReady';
params: {
reattached_sessions: [];
};
voice_sdk_id: string;
};
type GatewayStateResponse = {
id: string;
jsonrpc: '2.0';
result: {
params: {
state: 'REGED';
};
sessid: string;
};
voice_sdk_id: string;
};
export declare function isClientReadyEvent(msg: unknown): msg is ClientReadyEvent;
export declare function createGetGatewayStateMessage(): {
jsonrpc: string;
id: string;
method: string;
params: {};
};
export declare function isValidGatewayStateResponse(msg: unknown): msg is GatewayStateResponse;
export {};