UNPKG

ivr-tester

Version:

An automated testing framework for IVR call flows

16 lines (15 loc) 453 B
/// <reference types="node" /> import { URL } from "url"; import { IvrNumber } from "../configuration/call/IvrNumber"; export interface AudioPlaybackCall { type: "audio-playback"; call: Buffer; } export interface TelephonyCall { type: "telephony"; call: IvrNumber; } export declare type RequestedCall = AudioPlaybackCall | TelephonyCall; export interface Caller<T> { call(call: T, streamUrl: URL | string): Promise<RequestedCall>; }