@absolutejs/voice 0.0.22-beta.45 → 0.0.22-beta.451
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4269 -603
- package/dist/agent.d.ts +67 -5
- package/dist/agentSquadContract.d.ts +98 -0
- package/dist/angular/index.d.ts +22 -3
- package/dist/angular/index.js +4660 -1140
- package/dist/angular/voice-agent-squad-status.service.d.ts +12 -0
- package/dist/angular/voice-call-debugger.service.d.ts +12 -0
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +14 -0
- package/dist/angular/voice-controller.service.d.ts +3 -1
- package/dist/angular/voice-delivery-runtime.component.d.ts +17 -0
- package/dist/angular/voice-delivery-runtime.service.d.ts +16 -0
- package/dist/angular/voice-live-ops.service.d.ts +11 -0
- package/dist/angular/voice-ops-action-center.service.d.ts +13 -0
- package/dist/angular/voice-ops-status.component.d.ts +15 -0
- package/dist/angular/voice-ops-status.service.d.ts +12 -0
- package/dist/angular/voice-platform-coverage.service.d.ts +12 -0
- package/dist/angular/voice-profile-comparison.service.d.ts +12 -0
- package/dist/angular/voice-proof-trends.service.d.ts +12 -0
- package/dist/angular/voice-provider-capabilities.service.d.ts +12 -0
- package/dist/angular/voice-provider-contracts.service.d.ts +12 -0
- package/dist/angular/voice-provider-status.service.d.ts +2 -2
- package/dist/angular/voice-readiness-failures.service.d.ts +13 -0
- package/dist/angular/voice-routing-status.service.d.ts +11 -0
- package/dist/angular/voice-session-snapshot.service.d.ts +13 -0
- package/dist/angular/voice-stream.service.d.ts +4 -1
- package/dist/angular/voice-trace-timeline.service.d.ts +12 -0
- package/dist/angular/voice-turn-latency.service.d.ts +13 -0
- package/dist/angular/voice-turn-quality.service.d.ts +12 -0
- package/dist/angular/voice-workflow-status.service.d.ts +12 -0
- package/dist/assistant.d.ts +11 -11
- package/dist/assistantHealth.d.ts +6 -6
- package/dist/assistantMemory.d.ts +3 -3
- package/dist/audioConditioning.d.ts +1 -1
- package/dist/audit.d.ts +131 -0
- package/dist/auditDeliveryRoutes.d.ts +85 -0
- package/dist/auditExport.d.ts +34 -0
- package/dist/auditRoutes.d.ts +66 -0
- package/dist/auditSinks.d.ts +151 -0
- package/dist/bargeInRoutes.d.ts +56 -0
- package/dist/browserCallProfiles.d.ts +120 -0
- package/dist/browserMediaRoutes.d.ts +62 -0
- package/dist/callDebugger.d.ts +66 -0
- package/dist/campaign.d.ts +794 -0
- package/dist/campaignDialers.d.ts +111 -0
- package/dist/client/actions.d.ts +95 -1
- package/dist/client/agentSquadStatus.d.ts +37 -0
- package/dist/client/agentSquadStatusWidget.d.ts +24 -0
- package/dist/client/audioPlayer.d.ts +2 -2
- package/dist/client/bargeInMonitor.d.ts +7 -0
- package/dist/client/browserMedia.d.ts +8 -0
- package/dist/client/callDebugger.d.ts +19 -0
- package/dist/client/callDebuggerWidget.d.ts +30 -0
- package/dist/client/campaignDialerProof.d.ts +23 -0
- package/dist/client/connection.d.ts +4 -3
- package/dist/client/controller.d.ts +1 -1
- package/dist/client/createVoiceStream.d.ts +1 -1
- package/dist/client/deliveryRuntime.d.ts +34 -0
- package/dist/client/deliveryRuntimeWidget.d.ts +37 -0
- package/dist/client/duplex.d.ts +2 -2
- package/dist/client/htmx.d.ts +1 -1
- package/dist/client/htmxBootstrap.js +967 -14
- package/dist/client/index.d.ts +96 -9
- package/dist/client/index.js +9953 -44
- package/dist/client/liveOps.d.ts +22 -0
- package/dist/client/liveOpsWidget.d.ts +23 -0
- package/dist/client/liveTurnLatency.d.ts +41 -0
- package/dist/client/microphone.d.ts +4 -4
- package/dist/client/opsActionCenter.d.ts +54 -0
- package/dist/client/opsActionCenterWidget.d.ts +29 -0
- package/dist/client/opsActionHistory.d.ts +19 -0
- package/dist/client/opsActionHistoryWidget.d.ts +11 -0
- package/dist/client/opsStatus.d.ts +19 -0
- package/dist/client/opsStatusWidget.d.ts +40 -0
- package/dist/client/platformCoverage.d.ts +19 -0
- package/dist/client/platformCoverageWidget.d.ts +37 -0
- package/dist/client/profileComparison.d.ts +19 -0
- package/dist/client/profileComparisonWidget.d.ts +41 -0
- package/dist/client/profileSwitchRecommendation.d.ts +19 -0
- package/dist/client/profileSwitchRecommendationWidget.d.ts +12 -0
- package/dist/client/proofTrends.d.ts +19 -0
- package/dist/client/proofTrendsWidget.d.ts +37 -0
- package/dist/client/providerCapabilities.d.ts +19 -0
- package/dist/client/providerCapabilitiesWidget.d.ts +32 -0
- package/dist/client/providerContracts.d.ts +19 -0
- package/dist/client/providerContractsWidget.d.ts +37 -0
- package/dist/client/providerSimulationControls.d.ts +33 -0
- package/dist/client/providerSimulationControlsWidget.d.ts +20 -0
- package/dist/client/providerStatus.d.ts +1 -1
- package/dist/client/providerStatusWidget.d.ts +32 -0
- package/dist/client/readinessFailures.d.ts +19 -0
- package/dist/client/readinessFailuresWidget.d.ts +42 -0
- package/dist/client/routingStatus.d.ts +19 -0
- package/dist/client/routingStatusWidget.d.ts +32 -0
- package/dist/client/sessionSnapshot.d.ts +21 -0
- package/dist/client/sessionSnapshotWidget.d.ts +33 -0
- package/dist/client/store.d.ts +1 -1
- package/dist/client/traceTimeline.d.ts +19 -0
- package/dist/client/traceTimelineWidget.d.ts +36 -0
- package/dist/client/turnLatency.d.ts +22 -0
- package/dist/client/turnLatencyWidget.d.ts +33 -0
- package/dist/client/turnQuality.d.ts +19 -0
- package/dist/client/turnQualityWidget.d.ts +32 -0
- package/dist/client/workflowStatus.d.ts +19 -0
- package/dist/competitiveCoverage.d.ts +141 -0
- package/dist/correction.d.ts +2 -2
- package/dist/dataControl.d.ts +180 -0
- package/dist/deliveryRuntime.d.ts +158 -0
- package/dist/deliverySinkRoutes.d.ts +117 -0
- package/dist/demoReadyRoutes.d.ts +98 -0
- package/dist/diagnosticsRoutes.d.ts +2 -2
- package/dist/evalRoutes.d.ts +11 -4
- package/dist/fileStore.d.ts +19 -7
- package/dist/generated/htmxBootstrapBundle.d.ts +1 -0
- package/dist/guardrails.d.ts +128 -0
- package/dist/handoff.d.ts +6 -6
- package/dist/handoffHealth.d.ts +5 -5
- package/dist/htmx.d.ts +1 -1
- package/dist/incidentBundle.d.ts +119 -0
- package/dist/incidentTimeline.d.ts +259 -0
- package/dist/index.d.ts +216 -70
- package/dist/index.js +35935 -6781
- package/dist/latencySlo.d.ts +56 -0
- package/dist/liveLatency.d.ts +78 -0
- package/dist/liveOps.d.ts +190 -0
- package/dist/logger.d.ts +1 -1
- package/dist/mediaPipelineRoutes.d.ts +117 -0
- package/dist/memoryStore.d.ts +1 -1
- package/dist/modelAdapters.d.ts +59 -7
- package/dist/observabilityExport.d.ts +501 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/operationalStatus.d.ts +87 -0
- package/dist/operationsRecord.d.ts +351 -0
- package/dist/ops.d.ts +12 -12
- package/dist/opsActionAuditRoutes.d.ts +99 -0
- package/dist/opsConsoleRoutes.d.ts +8 -5
- package/dist/opsPresets.d.ts +2 -2
- package/dist/opsRecovery.d.ts +137 -0
- package/dist/opsRuntime.d.ts +6 -6
- package/dist/opsSinks.d.ts +13 -13
- package/dist/opsStatus.d.ts +76 -0
- package/dist/opsStatusRoutes.d.ts +33 -0
- package/dist/opsWebhook.d.ts +6 -6
- package/dist/outcomeContract.d.ts +146 -0
- package/dist/outcomeRecipes.d.ts +4 -4
- package/dist/phoneAgent.d.ts +139 -0
- package/dist/phoneAgentProductionSmoke.d.ts +115 -0
- package/dist/platformCoverage.d.ts +91 -0
- package/dist/plugin.d.ts +2 -2
- package/dist/postCallAnalysis.d.ts +98 -0
- package/dist/postgresStore.d.ts +17 -6
- package/dist/presets.d.ts +3 -3
- package/dist/productionReadiness.d.ts +739 -0
- package/dist/profileSwitchRecommendation.d.ts +350 -0
- package/dist/proofAssertions.d.ts +32 -0
- package/dist/proofPack.d.ts +206 -0
- package/dist/proofRunner.d.ts +79 -0
- package/dist/proofTrends.d.ts +716 -0
- package/dist/providerAdapters.d.ts +16 -5
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerDecisionTraces.d.ts +130 -0
- package/dist/providerHealth.d.ts +3 -3
- package/dist/providerOrchestration.d.ts +109 -0
- package/dist/providerRouterTraces.d.ts +35 -0
- package/dist/providerRoutingContract.d.ts +71 -0
- package/dist/providerSlo.d.ts +142 -0
- package/dist/providerStackRecommendations.d.ts +187 -0
- package/dist/qualityRoutes.d.ts +4 -4
- package/dist/queue.d.ts +23 -14
- package/dist/react/VoiceAgentSquadStatus.d.ts +5 -0
- package/dist/react/VoiceCallDebuggerLaunch.d.ts +6 -0
- package/dist/react/VoiceDeliveryRuntime.d.ts +7 -0
- package/dist/react/VoiceOpsActionCenter.d.ts +5 -0
- package/dist/react/VoiceOpsStatus.d.ts +6 -0
- package/dist/react/VoicePlatformCoverage.d.ts +6 -0
- package/dist/react/VoiceProfileComparison.d.ts +6 -0
- package/dist/react/VoiceProfileSwitchRecommendation.d.ts +6 -0
- package/dist/react/VoiceProofTrends.d.ts +6 -0
- package/dist/react/VoiceProviderCapabilities.d.ts +6 -0
- package/dist/react/VoiceProviderContracts.d.ts +6 -0
- package/dist/react/VoiceProviderSimulationControls.d.ts +5 -0
- package/dist/react/VoiceProviderStatus.d.ts +6 -0
- package/dist/react/VoiceReadinessFailures.d.ts +6 -0
- package/dist/react/VoiceRoutingStatus.d.ts +6 -0
- package/dist/react/VoiceSessionSnapshot.d.ts +6 -0
- package/dist/react/VoiceTraceTimeline.d.ts +6 -0
- package/dist/react/VoiceTurnLatency.d.ts +6 -0
- package/dist/react/VoiceTurnQuality.d.ts +6 -0
- package/dist/react/index.d.ts +43 -3
- package/dist/react/index.js +10698 -32
- package/dist/react/useVoiceAgentSquadStatus.d.ts +8 -0
- package/dist/react/useVoiceCallDebugger.d.ts +8 -0
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +4 -1
- package/dist/react/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/react/useVoiceLiveOps.d.ts +9 -0
- package/dist/react/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/react/useVoiceOpsStatus.d.ts +8 -0
- package/dist/react/useVoicePlatformCoverage.d.ts +8 -0
- package/dist/react/useVoiceProfileComparison.d.ts +8 -0
- package/dist/react/useVoiceProfileSwitchRecommendation.d.ts +8 -0
- package/dist/react/useVoiceProofTrends.d.ts +8 -0
- package/dist/react/useVoiceProviderCapabilities.d.ts +8 -0
- package/dist/react/useVoiceProviderContracts.d.ts +8 -0
- package/dist/react/useVoiceProviderSimulationControls.d.ts +10 -0
- package/dist/react/useVoiceProviderStatus.d.ts +1 -1
- package/dist/react/useVoiceReadinessFailures.d.ts +8 -0
- package/dist/react/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/react/useVoiceSessionSnapshot.d.ts +9 -0
- package/dist/react/useVoiceStream.d.ts +4 -1
- package/dist/react/useVoiceTraceTimeline.d.ts +8 -0
- package/dist/react/useVoiceTurnLatency.d.ts +9 -0
- package/dist/react/useVoiceTurnQuality.d.ts +8 -0
- package/dist/react/useVoiceWorkflowStatus.d.ts +8 -0
- package/dist/readinessProfiles.d.ts +45 -0
- package/dist/realtimeChannel.d.ts +136 -0
- package/dist/realtimeProviderContracts.d.ts +133 -0
- package/dist/reconnectContract.d.ts +176 -0
- package/dist/resilienceRoutes.d.ts +45 -5
- package/dist/routing.d.ts +1 -1
- package/dist/runtimeOps.d.ts +3 -3
- package/dist/s3Store.d.ts +3 -3
- package/dist/session.d.ts +1 -1
- package/dist/sessionReplay.d.ts +19 -7
- package/dist/sessionSnapshot.d.ts +109 -0
- package/dist/simulationSuite.d.ts +143 -0
- package/dist/sloCalibration.d.ts +185 -0
- package/dist/sqliteStore.d.ts +17 -6
- package/dist/store.d.ts +1 -1
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/svelte/createVoiceCallDebugger.d.ts +12 -0
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +9 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +11 -0
- package/dist/svelte/createVoiceLiveOps.d.ts +13 -0
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +10 -0
- package/dist/svelte/createVoiceOpsStatus.d.ts +9 -0
- package/dist/svelte/createVoicePlatformCoverage.d.ts +7 -0
- package/dist/svelte/createVoiceProfileComparison.d.ts +7 -0
- package/dist/svelte/createVoiceProofTrends.d.ts +7 -0
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +10 -0
- package/dist/svelte/createVoiceProviderContracts.d.ts +10 -0
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +11 -0
- package/dist/svelte/createVoiceProviderStatus.d.ts +4 -2
- package/dist/svelte/createVoiceReadinessFailures.d.ts +7 -0
- package/dist/svelte/createVoiceRoutingStatus.d.ts +10 -0
- package/dist/svelte/createVoiceSessionSnapshot.d.ts +13 -0
- package/dist/svelte/createVoiceStream.d.ts +1 -1
- package/dist/svelte/createVoiceTraceTimeline.d.ts +10 -0
- package/dist/svelte/createVoiceTurnLatency.d.ts +11 -0
- package/dist/svelte/createVoiceTurnQuality.d.ts +10 -0
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +8 -0
- package/dist/svelte/index.d.ts +23 -3
- package/dist/svelte/index.js +6436 -460
- package/dist/telephony/contract.d.ts +61 -0
- package/dist/telephony/matrix.d.ts +97 -0
- package/dist/telephony/plivo.d.ts +303 -0
- package/dist/telephony/response.d.ts +1 -1
- package/dist/telephony/security.d.ts +182 -0
- package/dist/telephony/telnyx.d.ts +291 -0
- package/dist/telephony/twilio.d.ts +147 -13
- package/dist/telephonyMediaRoutes.d.ts +72 -0
- package/dist/telephonyOutcome.d.ts +273 -0
- package/dist/testing/accuracy.d.ts +1 -1
- package/dist/testing/benchmark.d.ts +9 -9
- package/dist/testing/corrected.d.ts +5 -5
- package/dist/testing/duplex.d.ts +3 -3
- package/dist/testing/fixtures.d.ts +3 -3
- package/dist/testing/index.d.ts +13 -13
- package/dist/testing/index.js +5425 -185
- package/dist/testing/ioProviderSimulator.d.ts +5 -5
- package/dist/testing/providerSimulator.d.ts +5 -5
- package/dist/testing/review.d.ts +4 -4
- package/dist/testing/sessionBenchmark.d.ts +3 -3
- package/dist/testing/stt.d.ts +3 -3
- package/dist/testing/telephony.d.ts +25 -0
- package/dist/testing/tts.d.ts +1 -1
- package/dist/toolContract.d.ts +161 -0
- package/dist/toolRuntime.d.ts +50 -0
- package/dist/trace.d.ts +46 -7
- package/dist/traceDeliveryRoutes.d.ts +86 -0
- package/dist/traceTimeline.d.ts +97 -0
- package/dist/turnDetection.d.ts +1 -1
- package/dist/turnLatency.d.ts +95 -0
- package/dist/turnProfiles.d.ts +2 -2
- package/dist/turnQuality.d.ts +94 -0
- package/dist/types.d.ts +236 -80
- package/dist/voiceMonitoring.d.ts +444 -0
- package/dist/vue/VoiceCallDebuggerLaunch.d.ts +68 -0
- package/dist/vue/VoiceDeliveryRuntime.d.ts +30 -0
- package/dist/vue/VoiceOpsActionCenter.d.ts +13 -0
- package/dist/vue/VoiceOpsStatus.d.ts +30 -0
- package/dist/vue/VoicePlatformCoverage.d.ts +23 -0
- package/dist/vue/VoiceProofTrends.d.ts +21 -0
- package/dist/vue/VoiceProviderCapabilities.d.ts +51 -0
- package/dist/vue/VoiceProviderContracts.d.ts +21 -0
- package/dist/vue/VoiceProviderSimulationControls.d.ts +88 -0
- package/dist/vue/VoiceProviderStatus.d.ts +51 -0
- package/dist/vue/VoiceReadinessFailures.d.ts +21 -0
- package/dist/vue/VoiceRoutingStatus.d.ts +51 -0
- package/dist/vue/VoiceSessionSnapshot.d.ts +68 -0
- package/dist/vue/VoiceTurnLatency.d.ts +69 -0
- package/dist/vue/VoiceTurnQuality.d.ts +51 -0
- package/dist/vue/index.d.ts +38 -3
- package/dist/vue/index.js +10142 -56
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/vue/useVoiceCallDebugger.d.ts +10 -0
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +11 -0
- package/dist/vue/useVoiceController.d.ts +4 -2
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/vue/useVoiceLiveOps.d.ts +9 -0
- package/dist/vue/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/vue/useVoiceOpsStatus.d.ts +9 -0
- package/dist/vue/useVoicePlatformCoverage.d.ts +9 -0
- package/dist/vue/useVoiceProfileComparison.d.ts +9 -0
- package/dist/vue/useVoiceProofTrends.d.ts +9 -0
- package/dist/vue/useVoiceProviderCapabilities.d.ts +9 -0
- package/dist/vue/useVoiceProviderContracts.d.ts +9 -0
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +24 -0
- package/dist/vue/useVoiceProviderStatus.d.ts +3 -3
- package/dist/vue/useVoiceReadinessFailures.d.ts +943 -0
- package/dist/vue/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceSessionSnapshot.d.ts +10 -0
- package/dist/vue/useVoiceStream.d.ts +5 -2
- package/dist/vue/useVoiceTraceTimeline.d.ts +9 -0
- package/dist/vue/useVoiceTurnLatency.d.ts +10 -0
- package/dist/vue/useVoiceTurnQuality.d.ts +9 -0
- package/dist/vue/useVoiceWorkflowStatus.d.ts +9 -0
- package/dist/workflowContract.d.ts +91 -0
- package/fixtures/manifest.json +356 -197
- package/package.json +260 -256
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { VoiceCallDisposition, VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord } from "./types";
|
|
3
|
+
export type VoiceTelephonyOutcomeAction = "complete" | "escalate" | "ignore" | "no-answer" | "transfer" | "voicemail";
|
|
4
|
+
export type VoiceTelephonyOutcomeProviderEvent = {
|
|
5
|
+
answeredBy?: string;
|
|
6
|
+
durationMs?: number;
|
|
7
|
+
from?: string;
|
|
8
|
+
metadata?: Record<string, unknown>;
|
|
9
|
+
provider?: string;
|
|
10
|
+
reason?: string;
|
|
11
|
+
sipCode?: number;
|
|
12
|
+
status?: string;
|
|
13
|
+
target?: string;
|
|
14
|
+
to?: string;
|
|
15
|
+
};
|
|
16
|
+
export type VoiceTelephonyOutcomeDecision = {
|
|
17
|
+
action: VoiceTelephonyOutcomeAction;
|
|
18
|
+
confidence: "high" | "low" | "medium";
|
|
19
|
+
disposition?: VoiceCallDisposition;
|
|
20
|
+
metadata?: Record<string, unknown>;
|
|
21
|
+
reason?: string;
|
|
22
|
+
source: "answered-by" | "duration" | "explicit-target" | "policy" | "sip" | "status";
|
|
23
|
+
target?: string;
|
|
24
|
+
};
|
|
25
|
+
export type VoiceTelephonyOutcomeStatusDecision = VoiceTelephonyOutcomeAction | (Omit<VoiceTelephonyOutcomeDecision, "confidence" | "source"> & {
|
|
26
|
+
confidence?: VoiceTelephonyOutcomeDecision["confidence"];
|
|
27
|
+
source?: VoiceTelephonyOutcomeDecision["source"];
|
|
28
|
+
});
|
|
29
|
+
export type VoiceTelephonyOutcomePolicy = {
|
|
30
|
+
completedStatuses?: string[];
|
|
31
|
+
escalationStatuses?: string[];
|
|
32
|
+
failedAsNoAnswer?: boolean;
|
|
33
|
+
failedStatuses?: string[];
|
|
34
|
+
includeProviderPayload?: boolean;
|
|
35
|
+
machineDetectionVoicemailValues?: string[];
|
|
36
|
+
metadata?: Record<string, unknown>;
|
|
37
|
+
minAnsweredDurationMs?: number;
|
|
38
|
+
noAnswerOnZeroDuration?: boolean;
|
|
39
|
+
noAnswerSipCodes?: number[];
|
|
40
|
+
noAnswerStatuses?: string[];
|
|
41
|
+
statusMap?: Record<string, VoiceTelephonyOutcomeStatusDecision>;
|
|
42
|
+
transferStatuses?: string[];
|
|
43
|
+
transferTarget?: string | ((event: VoiceTelephonyOutcomeProviderEvent) => string | undefined);
|
|
44
|
+
voicemailStatuses?: string[];
|
|
45
|
+
};
|
|
46
|
+
export type VoiceTelephonyOutcomeRouteResult<TResult = unknown> = VoiceRouteResult<TResult>;
|
|
47
|
+
export type VoiceTelephonyWebhookProvider = "generic" | "plivo" | "telnyx" | "twilio";
|
|
48
|
+
export type VoiceTelephonyWebhookParseInput = {
|
|
49
|
+
body: unknown;
|
|
50
|
+
headers: Headers;
|
|
51
|
+
provider: VoiceTelephonyWebhookProvider;
|
|
52
|
+
query: Record<string, unknown>;
|
|
53
|
+
request: Request;
|
|
54
|
+
};
|
|
55
|
+
export type VoiceTelephonyWebhookDecision<TResult = unknown> = {
|
|
56
|
+
applied: boolean;
|
|
57
|
+
decision: VoiceTelephonyOutcomeDecision;
|
|
58
|
+
duplicate?: boolean;
|
|
59
|
+
event: VoiceTelephonyOutcomeProviderEvent;
|
|
60
|
+
idempotencyKey?: string;
|
|
61
|
+
routeResult: VoiceTelephonyOutcomeRouteResult<TResult>;
|
|
62
|
+
sessionId?: string;
|
|
63
|
+
};
|
|
64
|
+
export type StoredVoiceTelephonyWebhookDecision<TResult = unknown> = VoiceTelephonyWebhookDecision<TResult> & {
|
|
65
|
+
createdAt: number;
|
|
66
|
+
updatedAt: number;
|
|
67
|
+
};
|
|
68
|
+
export type VoiceTelephonyWebhookNormalizationEvidenceDecision = {
|
|
69
|
+
action?: VoiceTelephonyOutcomeAction | string;
|
|
70
|
+
applied?: boolean;
|
|
71
|
+
decision?: {
|
|
72
|
+
action?: VoiceTelephonyOutcomeAction | string;
|
|
73
|
+
disposition?: VoiceCallDisposition | string;
|
|
74
|
+
source?: VoiceTelephonyOutcomeDecision["source"] | string;
|
|
75
|
+
};
|
|
76
|
+
disposition?: VoiceCallDisposition | string;
|
|
77
|
+
duplicate?: boolean;
|
|
78
|
+
campaignOutcome?: unknown;
|
|
79
|
+
event?: VoiceTelephonyOutcomeProviderEvent;
|
|
80
|
+
idempotencyKey?: string;
|
|
81
|
+
provider?: VoiceTelephonyWebhookProvider | string;
|
|
82
|
+
routeResult?: unknown;
|
|
83
|
+
sessionId?: string;
|
|
84
|
+
source?: VoiceTelephonyOutcomeDecision["source"] | string;
|
|
85
|
+
};
|
|
86
|
+
export type VoiceTelephonyWebhookVerificationEvidenceAttempt = {
|
|
87
|
+
decisions?: number;
|
|
88
|
+
provider?: VoiceTelephonyWebhookProvider | string;
|
|
89
|
+
rejected?: boolean;
|
|
90
|
+
replayRejected?: boolean;
|
|
91
|
+
sideEffects?: number;
|
|
92
|
+
status?: number;
|
|
93
|
+
verification?: VoiceTelephonyWebhookVerificationResult;
|
|
94
|
+
};
|
|
95
|
+
export type VoiceTelephonyWebhookNormalizationEvidenceInput = {
|
|
96
|
+
decisions?: VoiceTelephonyWebhookNormalizationEvidenceDecision[];
|
|
97
|
+
maxMissingSessionIds?: number;
|
|
98
|
+
minApplied?: number;
|
|
99
|
+
minDecisions?: number;
|
|
100
|
+
minDuplicateIdempotencyKeys?: number;
|
|
101
|
+
minDuplicates?: number;
|
|
102
|
+
maxDuplicateCampaignOutcomesApplied?: number;
|
|
103
|
+
maxRejectedVerificationSideEffects?: number;
|
|
104
|
+
minRejectedVerificationAttempts?: number;
|
|
105
|
+
minReplayRejectedVerificationAttempts?: number;
|
|
106
|
+
requiredActions?: VoiceTelephonyOutcomeAction[];
|
|
107
|
+
requiredDispositions?: VoiceCallDisposition[];
|
|
108
|
+
requiredDuplicateProviders?: VoiceTelephonyWebhookProvider[];
|
|
109
|
+
requiredProviders?: VoiceTelephonyWebhookProvider[];
|
|
110
|
+
requiredReplayRejectedVerificationProviders?: VoiceTelephonyWebhookProvider[];
|
|
111
|
+
requiredRejectedVerificationProviders?: VoiceTelephonyWebhookProvider[];
|
|
112
|
+
requireRouteResults?: boolean;
|
|
113
|
+
verificationAttempts?: VoiceTelephonyWebhookVerificationEvidenceAttempt[];
|
|
114
|
+
};
|
|
115
|
+
export type VoiceTelephonyWebhookNormalizationEvidenceReport = {
|
|
116
|
+
actions: VoiceTelephonyOutcomeAction[];
|
|
117
|
+
applied: number;
|
|
118
|
+
decisions: number;
|
|
119
|
+
dispositions: VoiceCallDisposition[];
|
|
120
|
+
duplicateCampaignOutcomesApplied: number;
|
|
121
|
+
duplicateIdempotencyKeys: number;
|
|
122
|
+
duplicateOutcomeReasons: string[];
|
|
123
|
+
duplicateProviders: VoiceTelephonyWebhookProvider[];
|
|
124
|
+
duplicates: number;
|
|
125
|
+
issues: string[];
|
|
126
|
+
missingSessionIds: number;
|
|
127
|
+
ok: boolean;
|
|
128
|
+
providers: VoiceTelephonyWebhookProvider[];
|
|
129
|
+
rejectedVerificationAttempts: number;
|
|
130
|
+
rejectedVerificationProviders: VoiceTelephonyWebhookProvider[];
|
|
131
|
+
rejectedVerificationSideEffects: number;
|
|
132
|
+
replayRejectedVerificationAttempts: number;
|
|
133
|
+
replayRejectedVerificationProviders: VoiceTelephonyWebhookProvider[];
|
|
134
|
+
routeResults: number;
|
|
135
|
+
sources: string[];
|
|
136
|
+
verificationAttempts: number;
|
|
137
|
+
};
|
|
138
|
+
export type VoiceTelephonyWebhookIdempotencyStore<TResult = unknown> = {
|
|
139
|
+
get: (key: string) => Promise<StoredVoiceTelephonyWebhookDecision<TResult> | undefined> | StoredVoiceTelephonyWebhookDecision<TResult> | undefined;
|
|
140
|
+
set: (key: string, decision: StoredVoiceTelephonyWebhookDecision<TResult>) => Promise<void> | void;
|
|
141
|
+
};
|
|
142
|
+
export type VoiceTelephonyWebhookVerificationResult = {
|
|
143
|
+
ok: true;
|
|
144
|
+
} | {
|
|
145
|
+
ok: false;
|
|
146
|
+
reason: "invalid-signature" | "missing-secret" | "missing-signature" | "unsupported-provider";
|
|
147
|
+
};
|
|
148
|
+
export type VoiceTelephonyWebhookHandlerOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
149
|
+
apply?: boolean | ((input: VoiceTelephonyWebhookDecision<TResult>) => boolean);
|
|
150
|
+
context?: TContext;
|
|
151
|
+
getSessionHandle?: (input: {
|
|
152
|
+
context: TContext;
|
|
153
|
+
decision: VoiceTelephonyOutcomeDecision;
|
|
154
|
+
event: VoiceTelephonyOutcomeProviderEvent;
|
|
155
|
+
request: Request;
|
|
156
|
+
sessionId?: string;
|
|
157
|
+
}) => Promise<VoiceSessionHandle<TContext, TSession, TResult> | undefined> | VoiceSessionHandle<TContext, TSession, TResult> | undefined;
|
|
158
|
+
idempotency?: {
|
|
159
|
+
enabled?: boolean;
|
|
160
|
+
key?: (input: {
|
|
161
|
+
body: unknown;
|
|
162
|
+
event: VoiceTelephonyOutcomeProviderEvent;
|
|
163
|
+
provider: VoiceTelephonyWebhookProvider;
|
|
164
|
+
query: Record<string, unknown>;
|
|
165
|
+
request: Request;
|
|
166
|
+
sessionId?: string;
|
|
167
|
+
}) => Promise<string | undefined> | string | undefined;
|
|
168
|
+
store?: VoiceTelephonyWebhookIdempotencyStore<TResult>;
|
|
169
|
+
};
|
|
170
|
+
onDecision?: (input: VoiceTelephonyWebhookDecision<TResult> & {
|
|
171
|
+
context: TContext;
|
|
172
|
+
request: Request;
|
|
173
|
+
}) => Promise<void> | void;
|
|
174
|
+
parse?: (input: VoiceTelephonyWebhookParseInput) => Promise<VoiceTelephonyOutcomeProviderEvent> | VoiceTelephonyOutcomeProviderEvent;
|
|
175
|
+
policy?: VoiceTelephonyOutcomePolicy;
|
|
176
|
+
provider?: VoiceTelephonyWebhookProvider;
|
|
177
|
+
requireVerification?: boolean;
|
|
178
|
+
resolveSessionId?: (input: {
|
|
179
|
+
body: unknown;
|
|
180
|
+
event: VoiceTelephonyOutcomeProviderEvent;
|
|
181
|
+
query: Record<string, unknown>;
|
|
182
|
+
request: Request;
|
|
183
|
+
}) => Promise<string | undefined> | string | undefined;
|
|
184
|
+
result?: TResult | ((input: {
|
|
185
|
+
decision: VoiceTelephonyOutcomeDecision;
|
|
186
|
+
event: VoiceTelephonyOutcomeProviderEvent;
|
|
187
|
+
sessionId?: string;
|
|
188
|
+
}) => Promise<TResult | undefined> | TResult | undefined);
|
|
189
|
+
signingSecret?: string;
|
|
190
|
+
verificationUrl?: string | ((input: {
|
|
191
|
+
query: Record<string, unknown>;
|
|
192
|
+
request: Request;
|
|
193
|
+
}) => string);
|
|
194
|
+
verify?: (input: {
|
|
195
|
+
body: unknown;
|
|
196
|
+
headers: Headers;
|
|
197
|
+
provider: VoiceTelephonyWebhookProvider;
|
|
198
|
+
query: Record<string, unknown>;
|
|
199
|
+
rawBody: string;
|
|
200
|
+
request: Request;
|
|
201
|
+
}) => Promise<VoiceTelephonyWebhookVerificationResult> | VoiceTelephonyWebhookVerificationResult;
|
|
202
|
+
};
|
|
203
|
+
export type VoiceTelephonyWebhookRoutesOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = VoiceTelephonyWebhookHandlerOptions<TContext, TSession, TResult> & {
|
|
204
|
+
name?: string;
|
|
205
|
+
path?: string;
|
|
206
|
+
};
|
|
207
|
+
export declare class VoiceTelephonyWebhookVerificationError extends Error {
|
|
208
|
+
result: VoiceTelephonyWebhookVerificationResult;
|
|
209
|
+
constructor(result: VoiceTelephonyWebhookVerificationResult);
|
|
210
|
+
}
|
|
211
|
+
export declare const createMemoryVoiceTelephonyWebhookIdempotencyStore: <TResult = unknown>() => VoiceTelephonyWebhookIdempotencyStore<TResult>;
|
|
212
|
+
export declare const evaluateVoiceTelephonyWebhookNormalizationEvidence: (input?: VoiceTelephonyWebhookNormalizationEvidenceInput) => VoiceTelephonyWebhookNormalizationEvidenceReport;
|
|
213
|
+
export declare const assertVoiceTelephonyWebhookNormalizationEvidence: (input?: VoiceTelephonyWebhookNormalizationEvidenceInput) => VoiceTelephonyWebhookNormalizationEvidenceReport;
|
|
214
|
+
export declare const createVoiceTelephonyOutcomePolicy: (policy?: VoiceTelephonyOutcomePolicy) => Required<Pick<VoiceTelephonyOutcomePolicy, "completedStatuses" | "escalationStatuses" | "failedAsNoAnswer" | "failedStatuses" | "includeProviderPayload" | "machineDetectionVoicemailValues" | "noAnswerOnZeroDuration" | "noAnswerSipCodes" | "noAnswerStatuses" | "transferStatuses" | "voicemailStatuses">> & VoiceTelephonyOutcomePolicy;
|
|
215
|
+
export declare const resolveVoiceTelephonyOutcome: (event: VoiceTelephonyOutcomeProviderEvent, policyInput?: VoiceTelephonyOutcomePolicy) => VoiceTelephonyOutcomeDecision;
|
|
216
|
+
export declare const voiceTelephonyOutcomeToRouteResult: <TResult = unknown>(decision: VoiceTelephonyOutcomeDecision, result?: TResult) => VoiceTelephonyOutcomeRouteResult<TResult>;
|
|
217
|
+
export declare const applyVoiceTelephonyOutcome: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(api: VoiceSessionHandle<TContext, TSession, TResult>, decision: VoiceTelephonyOutcomeDecision, result?: TResult) => Promise<void>;
|
|
218
|
+
export declare const signVoiceTwilioWebhook: (input: {
|
|
219
|
+
authToken: string;
|
|
220
|
+
body?: unknown;
|
|
221
|
+
url: string;
|
|
222
|
+
}) => Promise<string>;
|
|
223
|
+
export declare const verifyVoiceTwilioWebhookSignature: (input: {
|
|
224
|
+
authToken?: string;
|
|
225
|
+
body?: unknown;
|
|
226
|
+
headers: Headers;
|
|
227
|
+
url: string;
|
|
228
|
+
}) => Promise<VoiceTelephonyWebhookVerificationResult>;
|
|
229
|
+
export declare const parseVoiceTelephonyWebhookEvent: (input: VoiceTelephonyWebhookParseInput) => VoiceTelephonyOutcomeProviderEvent;
|
|
230
|
+
export declare const createVoiceTelephonyWebhookHandler: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options?: VoiceTelephonyWebhookHandlerOptions<TContext, TSession, TResult>) => (input: {
|
|
231
|
+
query?: Record<string, unknown>;
|
|
232
|
+
request: Request;
|
|
233
|
+
}) => Promise<VoiceTelephonyWebhookDecision<TResult>>;
|
|
234
|
+
export declare const createVoiceTelephonyWebhookRoutes: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options?: VoiceTelephonyWebhookRoutesOptions<TContext, TSession, TResult>) => Elysia<"", {
|
|
235
|
+
decorator: {};
|
|
236
|
+
store: {};
|
|
237
|
+
derive: {};
|
|
238
|
+
resolve: {};
|
|
239
|
+
}, {
|
|
240
|
+
typebox: {};
|
|
241
|
+
error: {};
|
|
242
|
+
}, {
|
|
243
|
+
schema: {};
|
|
244
|
+
standaloneSchema: {};
|
|
245
|
+
macro: {};
|
|
246
|
+
macroFn: {};
|
|
247
|
+
parser: {};
|
|
248
|
+
response: {};
|
|
249
|
+
}, {
|
|
250
|
+
[x: string]: {
|
|
251
|
+
post: {
|
|
252
|
+
body: unknown;
|
|
253
|
+
params: {};
|
|
254
|
+
query: unknown;
|
|
255
|
+
headers: unknown;
|
|
256
|
+
response: {
|
|
257
|
+
200: Response | VoiceTelephonyWebhookDecision<TResult>;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
}, {
|
|
262
|
+
derive: {};
|
|
263
|
+
resolve: {};
|
|
264
|
+
schema: {};
|
|
265
|
+
standaloneSchema: {};
|
|
266
|
+
response: {};
|
|
267
|
+
}, {
|
|
268
|
+
derive: {};
|
|
269
|
+
resolve: {};
|
|
270
|
+
schema: {};
|
|
271
|
+
standaloneSchema: {};
|
|
272
|
+
response: {};
|
|
273
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { STTAdapter, STTAdapterOpenOptions } from
|
|
2
|
-
import { type VoiceSTTAdapterHarnessOptions, type VoiceSTTAdapterHarnessResult } from
|
|
3
|
-
import type { VoiceTestFixture } from
|
|
1
|
+
import type { STTAdapter, STTAdapterOpenOptions } from "../types";
|
|
2
|
+
import { type VoiceSTTAdapterHarnessOptions, type VoiceSTTAdapterHarnessResult } from "./stt";
|
|
3
|
+
import type { VoiceTestFixture } from "./fixtures";
|
|
4
4
|
export type VoiceExpectedTermAccuracy = {
|
|
5
5
|
allMatched: boolean;
|
|
6
6
|
expectedTerms: string[];
|
|
@@ -8,7 +8,7 @@ export type VoiceExpectedTermAccuracy = {
|
|
|
8
8
|
missingTerms: string[];
|
|
9
9
|
recall: number;
|
|
10
10
|
};
|
|
11
|
-
export type VoiceSTTFixtureEnvironment =
|
|
11
|
+
export type VoiceSTTFixtureEnvironment = "accent" | "accent-noisy" | "clean" | "code-switch" | "jargon" | "multilingual" | "multi-speaker" | "noisy" | "telephony" | "other";
|
|
12
12
|
export type VoiceSpeakerTurnAccuracy = {
|
|
13
13
|
available: boolean;
|
|
14
14
|
actualTurnCount: number;
|
|
@@ -18,9 +18,9 @@ export type VoiceSpeakerTurnAccuracy = {
|
|
|
18
18
|
postClustered?: boolean;
|
|
19
19
|
};
|
|
20
20
|
export type VoiceSTTBenchmarkFixtureResult = {
|
|
21
|
-
accuracy: VoiceSTTAdapterHarnessResult[
|
|
21
|
+
accuracy: VoiceSTTAdapterHarnessResult["accuracy"];
|
|
22
22
|
closeCount: number;
|
|
23
|
-
difficulty?: VoiceTestFixture[
|
|
23
|
+
difficulty?: VoiceTestFixture["difficulty"];
|
|
24
24
|
elapsedMs: number;
|
|
25
25
|
endOfTurnCount: number;
|
|
26
26
|
errorCount: number;
|
|
@@ -141,14 +141,14 @@ export type VoiceSTTBenchmarkAcceptanceResult = {
|
|
|
141
141
|
score: number;
|
|
142
142
|
};
|
|
143
143
|
export type VoiceSTTBenchmarkOptions = VoiceSTTAdapterHarnessOptions & {
|
|
144
|
-
fixtureOptions?: Record<string, Omit<VoiceSTTAdapterHarnessOptions,
|
|
144
|
+
fixtureOptions?: Record<string, Omit<VoiceSTTAdapterHarnessOptions, "fixtureOptions" | "openOptions">>;
|
|
145
145
|
openOptions?: Partial<STTAdapterOpenOptions> | ((fixture: VoiceTestFixture) => Partial<STTAdapterOpenOptions> | undefined);
|
|
146
146
|
};
|
|
147
147
|
export declare const resolveFixtureEnvironment: (fixture: Pick<VoiceTestFixture, "language" | "tags">) => VoiceSTTFixtureEnvironment;
|
|
148
148
|
export declare const summarizeSTTBenchmark: (adapterId: string, fixtures: VoiceSTTBenchmarkFixtureResult[]) => VoiceSTTBenchmarkSummary;
|
|
149
149
|
export declare const evaluateSTTBenchmarkAcceptance: (report: VoiceSTTBenchmarkReport, thresholds?: VoiceSTTBenchmarkAcceptanceThresholds) => VoiceSTTBenchmarkAcceptanceResult;
|
|
150
150
|
export declare const compareSTTBenchmarks: (reports: VoiceSTTBenchmarkReport[]) => VoiceSTTBenchmarkComparison;
|
|
151
|
-
export declare const runSTTAdapterBenchmark: ({ adapter, adapterId, fixtures, options }: {
|
|
151
|
+
export declare const runSTTAdapterBenchmark: ({ adapter, adapterId, fixtures, options, }: {
|
|
152
152
|
adapter: STTAdapter;
|
|
153
153
|
adapterId: string;
|
|
154
154
|
fixtures: VoiceTestFixture[];
|
|
@@ -158,7 +158,7 @@ export declare const summarizeSTTBenchmarkSeries: (input: {
|
|
|
158
158
|
adapterId: string;
|
|
159
159
|
reports: VoiceSTTBenchmarkReport[];
|
|
160
160
|
}) => VoiceSTTBenchmarkSeriesReport;
|
|
161
|
-
export declare const runSTTAdapterBenchmarkSeries: ({ adapter, adapterId, fixtures, options, runs }: {
|
|
161
|
+
export declare const runSTTAdapterBenchmarkSeries: ({ adapter, adapterId, fixtures, options, runs, }: {
|
|
162
162
|
adapter: STTAdapter;
|
|
163
163
|
adapterId: string;
|
|
164
164
|
fixtures: VoiceTestFixture[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { VoiceLexiconEntry, VoicePhraseHint, VoiceTurnCorrectionHandler } from
|
|
2
|
-
import { type VoiceExpectedTermAccuracy, type VoiceSTTBenchmarkReport } from
|
|
3
|
-
import type { VoiceSessionBenchmarkReport } from
|
|
4
|
-
import type { VoiceTestFixture } from
|
|
5
|
-
export type VoiceCorrectionHintProfile =
|
|
1
|
+
import type { VoiceLexiconEntry, VoicePhraseHint, VoiceTurnCorrectionHandler } from "../types";
|
|
2
|
+
import { type VoiceExpectedTermAccuracy, type VoiceSTTBenchmarkReport } from "./benchmark";
|
|
3
|
+
import type { VoiceSessionBenchmarkReport } from "./sessionBenchmark";
|
|
4
|
+
import type { VoiceTestFixture } from "./fixtures";
|
|
5
|
+
export type VoiceCorrectionHintProfile = "generic" | "benchmark-seeded";
|
|
6
6
|
type VoiceCorrectionAuditSlice<TReport> = {
|
|
7
7
|
fixtureIds: string[];
|
|
8
8
|
raw: TReport;
|
package/dist/testing/duplex.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { VoiceBargeInOptions } from
|
|
1
|
+
import type { VoiceBargeInOptions } from "../types";
|
|
2
2
|
export type VoiceDuplexBenchmarkScenario = {
|
|
3
3
|
expectedInterruptCount: number;
|
|
4
4
|
id: string;
|
|
5
5
|
initialPartial?: string;
|
|
6
6
|
interruptDelayMs?: number;
|
|
7
7
|
level?: number;
|
|
8
|
-
mode:
|
|
8
|
+
mode: "audio-send" | "input-level" | "partial";
|
|
9
9
|
partial?: string;
|
|
10
10
|
title: string;
|
|
11
11
|
};
|
|
@@ -15,7 +15,7 @@ export type VoiceDuplexBenchmarkScenarioResult = {
|
|
|
15
15
|
expectedInterruptCount: number;
|
|
16
16
|
fixtureId: string;
|
|
17
17
|
interruptLatencyMs?: number;
|
|
18
|
-
mode: VoiceDuplexBenchmarkScenario[
|
|
18
|
+
mode: VoiceDuplexBenchmarkScenario["mode"];
|
|
19
19
|
passes: boolean;
|
|
20
20
|
title: string;
|
|
21
21
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AudioFormat, VoiceExpectedSpeakerTurn } from
|
|
1
|
+
import type { AudioFormat, VoiceExpectedSpeakerTurn } from "../types";
|
|
2
2
|
export type VoiceTestFixtureManifestEntry = {
|
|
3
3
|
id: string;
|
|
4
4
|
title: string;
|
|
@@ -9,12 +9,12 @@ export type VoiceTestFixtureManifestEntry = {
|
|
|
9
9
|
expectedTurnTexts?: string[];
|
|
10
10
|
chunkDurationMs?: number;
|
|
11
11
|
language?: string;
|
|
12
|
-
difficulty?:
|
|
12
|
+
difficulty?: "clean" | "noisy" | "challenging";
|
|
13
13
|
tags?: string[];
|
|
14
14
|
tailPaddingMs?: number;
|
|
15
15
|
format?: Partial<AudioFormat>;
|
|
16
16
|
};
|
|
17
|
-
export type VoiceTestFixture = Omit<VoiceTestFixtureManifestEntry,
|
|
17
|
+
export type VoiceTestFixture = Omit<VoiceTestFixtureManifestEntry, "audioPath"> & {
|
|
18
18
|
audio: Uint8Array;
|
|
19
19
|
audioPath: string;
|
|
20
20
|
format: AudioFormat;
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
1
|
+
export * from "./accuracy";
|
|
2
|
+
export * from "./benchmark";
|
|
3
|
+
export * from "./corrected";
|
|
4
|
+
export * from "./duplex";
|
|
5
|
+
export * from "./fixtures";
|
|
6
|
+
export * from "./ioProviderSimulator";
|
|
7
|
+
export * from "./providerSimulator";
|
|
8
|
+
export * from "./resilience";
|
|
9
|
+
export * from "./review";
|
|
10
|
+
export * from "./sessionBenchmark";
|
|
11
|
+
export * from "./stt";
|
|
12
|
+
export * from "./telephony";
|
|
13
|
+
export * from "./tts";
|