VoicelinkMockProvider (__mock__.ts)

VoiceLink · integration, telephony-mock, test-fixture, mock-provider, voice

In-process Voicelink mock that satisfies TelephonyProvider. Used to develop and test the rest of the platform (campaign engine, call lifecycle, billing) before Voicelink Q1/Q2/Q3 are resolved and the real client is wired up. Behavior mirrors the OpenAPI spec shape. Beyond Telep

/**
 * In-process Voicelink mock that satisfies TelephonyProvider.
 *
 * Used to develop and test the rest of the platform (campaign engine,
 * call lifecycle, billing) before Voicelink Q1/Q2/Q3 are resolved and the
 * real client is wired up. Behavior mirrors the OpenAPI spec shape.
 *
 * Beyond TelephonyProvider, the mock exposes test-only "simulate*"
 * methods so integration tests can drive the call-event webhook receiver
 * end-to-end without standing up a real Voicelink instance.
 */

import type { IncomingHttpHeaders } from "node:http";
import {
  VoicelinkCallEvent as VoicelinkCallEventSchema,
  type VoicelinkCallEvent,
  type VoicelinkEventType,
} from "@voiceplatform/shared";

import { createLogger } from "../../../lib/logger.js";
import type {
  BulkOriginateOptions,
  CallHandl

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key