ivr-tester
Version:
An automated testing framework for IVR call flows
25 lines (24 loc) • 680 B
TypeScript
import { TranscriberPlugin } from "./TranscriberPlugin";
export interface CanRun {
canRun: true;
}
export interface CannotRun {
canRun: false;
reason: string;
}
export declare type CanRunCheck = CanRun | CannotRun;
/**
* Factory to create a instance of a transcriber per test
*/
export interface TranscriberFactory {
/**
* Called on startup to check that the transcriber has
* everything it needs to work properly when a call is connected
* e.g. credentials
*/
checkCanRun: () => Promise<CanRunCheck> | CanRunCheck;
/**
* Creates the transcriber. This will be called once per call.
*/
create: () => TranscriberPlugin;
}