UNPKG

@telnyx/react-native-voice-sdk

Version:
62 lines (61 loc) 1.7 kB
export type LoginWithPasswordParams = { login: string; password: string; reconnection?: boolean; userVariables?: { push_device_token?: string; push_notification_provider?: string; }; }; export type LoginWithTokenParams = { login_token: string; reconnection?: boolean; userVariables?: { push_device_token?: string; push_notification_provider?: string; }; }; export type LoginSuccessResponse = { id: string; result: { message: string; sessid: string; }; voice_sdk_id: string; }; export declare function createPasswordLoginMessage({ login, password, reconnection, userVariables, }: LoginWithPasswordParams): { id: string; jsonrpc: string; method: string; params: { userVariables: { push_device_token?: string; push_notification_provider?: string; } | undefined; login: string; passwd: string; reconnection: boolean; 'User-Agent': { sdkVersion: string; platform: string; }; }; }; export declare function createTokenLoginMessage({ login_token, userVariables, reconnection, }: LoginWithTokenParams): { id: string; jsonrpc: string; method: string; params: { userVariables: { push_device_token?: string; push_notification_provider?: string; } | undefined; login_token: string; reconnection: boolean; 'User-Agent': { sdkVersion: string; platform: string; }; }; }; export declare function isLoginSuccessResponse(response: unknown): response is LoginSuccessResponse;