@absolutejs/voice 0.0.22-beta.439 → 0.0.22-beta.441
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 +2729 -2698
- package/dist/agent.d.ts +10 -10
- package/dist/agentSquadContract.d.ts +4 -4
- package/dist/angular/index.d.ts +22 -22
- package/dist/angular/voice-agent-squad-status.service.d.ts +1 -1
- package/dist/angular/voice-call-debugger.service.d.ts +2 -2
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +2 -2
- package/dist/angular/voice-controller.service.d.ts +1 -1
- package/dist/angular/voice-delivery-runtime.component.d.ts +2 -2
- package/dist/angular/voice-delivery-runtime.service.d.ts +2 -2
- package/dist/angular/voice-live-ops.service.d.ts +1 -1
- package/dist/angular/voice-ops-action-center.service.d.ts +1 -1
- package/dist/angular/voice-ops-status.component.d.ts +2 -2
- package/dist/angular/voice-ops-status.service.d.ts +2 -2
- package/dist/angular/voice-platform-coverage.service.d.ts +2 -2
- package/dist/angular/voice-profile-comparison.service.d.ts +2 -2
- package/dist/angular/voice-proof-trends.service.d.ts +2 -2
- package/dist/angular/voice-provider-capabilities.service.d.ts +2 -2
- package/dist/angular/voice-provider-contracts.service.d.ts +2 -2
- package/dist/angular/voice-provider-status.service.d.ts +2 -2
- package/dist/angular/voice-readiness-failures.service.d.ts +2 -2
- package/dist/angular/voice-routing-status.service.d.ts +1 -1
- package/dist/angular/voice-session-snapshot.service.d.ts +2 -2
- package/dist/angular/voice-stream.service.d.ts +1 -1
- package/dist/angular/voice-trace-timeline.service.d.ts +2 -2
- package/dist/angular/voice-turn-latency.service.d.ts +2 -2
- package/dist/angular/voice-turn-quality.service.d.ts +2 -2
- package/dist/angular/voice-workflow-status.service.d.ts +2 -2
- 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 +11 -11
- package/dist/auditDeliveryRoutes.d.ts +3 -3
- package/dist/auditExport.d.ts +3 -3
- package/dist/auditRoutes.d.ts +2 -2
- package/dist/auditSinks.d.ts +8 -8
- package/dist/bargeInRoutes.d.ts +3 -3
- package/dist/browserCallProfiles.d.ts +2 -2
- package/dist/browserMediaRoutes.d.ts +4 -4
- package/dist/callDebugger.d.ts +6 -6
- package/dist/campaign.d.ts +22 -22
- package/dist/campaignDialers.d.ts +14 -14
- package/dist/client/actions.d.ts +1 -1
- package/dist/client/agentSquadStatus.d.ts +3 -3
- package/dist/client/agentSquadStatusWidget.d.ts +1 -1
- package/dist/client/audioPlayer.d.ts +2 -2
- package/dist/client/bargeInMonitor.d.ts +1 -1
- package/dist/client/browserMedia.d.ts +1 -1
- package/dist/client/callDebugger.d.ts +1 -1
- package/dist/client/callDebuggerWidget.d.ts +3 -3
- package/dist/client/campaignDialerProof.d.ts +1 -1
- package/dist/client/connection.d.ts +3 -3
- package/dist/client/controller.d.ts +1 -1
- package/dist/client/createVoiceStream.d.ts +1 -1
- package/dist/client/deliveryRuntime.d.ts +4 -4
- package/dist/client/deliveryRuntimeWidget.d.ts +5 -5
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmx.d.ts +1 -1
- package/dist/client/index.d.ts +96 -96
- package/dist/client/index.js +41 -15
- package/dist/client/liveOps.d.ts +2 -2
- package/dist/client/liveOpsWidget.d.ts +2 -2
- package/dist/client/liveTurnLatency.d.ts +3 -3
- package/dist/client/microphone.d.ts +4 -4
- package/dist/client/opsActionCenter.d.ts +1 -1
- package/dist/client/opsActionCenterWidget.d.ts +2 -2
- package/dist/client/opsActionHistory.d.ts +1 -1
- package/dist/client/opsActionHistoryWidget.d.ts +1 -1
- package/dist/client/opsStatus.d.ts +1 -1
- package/dist/client/opsStatusWidget.d.ts +4 -4
- package/dist/client/platformCoverage.d.ts +1 -1
- package/dist/client/platformCoverageWidget.d.ts +3 -3
- package/dist/client/profileComparison.d.ts +1 -1
- package/dist/client/profileComparisonWidget.d.ts +2 -2
- package/dist/client/profileSwitchRecommendation.d.ts +1 -1
- package/dist/client/profileSwitchRecommendationWidget.d.ts +1 -1
- package/dist/client/proofTrends.d.ts +1 -1
- package/dist/client/proofTrendsWidget.d.ts +3 -3
- package/dist/client/providerCapabilities.d.ts +1 -1
- package/dist/client/providerCapabilitiesWidget.d.ts +3 -3
- package/dist/client/providerContracts.d.ts +1 -1
- package/dist/client/providerContractsWidget.d.ts +3 -3
- package/dist/client/providerSimulationControls.d.ts +2 -2
- package/dist/client/providerSimulationControlsWidget.d.ts +1 -1
- package/dist/client/providerStatus.d.ts +1 -1
- package/dist/client/providerStatusWidget.d.ts +3 -3
- package/dist/client/readinessFailures.d.ts +1 -1
- package/dist/client/readinessFailuresWidget.d.ts +4 -4
- package/dist/client/routingStatus.d.ts +1 -1
- package/dist/client/routingStatusWidget.d.ts +3 -3
- package/dist/client/sessionSnapshot.d.ts +1 -1
- package/dist/client/sessionSnapshotWidget.d.ts +2 -2
- package/dist/client/store.d.ts +1 -1
- package/dist/client/traceTimeline.d.ts +1 -1
- package/dist/client/traceTimelineWidget.d.ts +3 -3
- package/dist/client/turnLatency.d.ts +1 -1
- package/dist/client/turnLatencyWidget.d.ts +3 -3
- package/dist/client/turnQuality.d.ts +1 -1
- package/dist/client/turnQualityWidget.d.ts +3 -3
- package/dist/client/workflowStatus.d.ts +1 -1
- package/dist/competitiveCoverage.d.ts +9 -9
- package/dist/correction.d.ts +2 -2
- package/dist/dataControl.d.ts +16 -16
- package/dist/deliveryRuntime.d.ts +9 -9
- package/dist/deliverySinkRoutes.d.ts +6 -6
- package/dist/demoReadyRoutes.d.ts +8 -8
- package/dist/diagnosticsRoutes.d.ts +2 -2
- package/dist/evalRoutes.d.ts +4 -4
- package/dist/fileStore.d.ts +9 -9
- package/dist/guardrails.d.ts +9 -9
- 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 +7 -7
- package/dist/incidentTimeline.d.ts +30 -16
- package/dist/index.d.ts +215 -215
- package/dist/index.js +375 -111
- package/dist/latencySlo.d.ts +4 -4
- package/dist/liveLatency.d.ts +3 -3
- package/dist/liveOps.d.ts +11 -11
- package/dist/logger.d.ts +1 -1
- package/dist/mediaPipelineRoutes.d.ts +2 -2
- package/dist/memoryStore.d.ts +1 -1
- package/dist/modelAdapters.d.ts +9 -9
- package/dist/observabilityExport.d.ts +44 -44
- package/dist/openaiTTS.d.ts +3 -3
- package/dist/operationalStatus.d.ts +5 -5
- package/dist/operationsRecord.d.ts +12 -12
- package/dist/ops.d.ts +12 -12
- package/dist/opsActionAuditRoutes.d.ts +3 -3
- package/dist/opsConsoleRoutes.d.ts +6 -6
- package/dist/opsPresets.d.ts +2 -2
- package/dist/opsRecovery.d.ts +11 -11
- package/dist/opsRuntime.d.ts +6 -6
- package/dist/opsSinks.d.ts +13 -13
- package/dist/opsStatus.d.ts +7 -7
- package/dist/opsStatusRoutes.d.ts +2 -2
- package/dist/opsWebhook.d.ts +6 -6
- package/dist/outcomeContract.d.ts +5 -5
- package/dist/outcomeRecipes.d.ts +4 -4
- package/dist/phoneAgent.d.ts +18 -18
- package/dist/phoneAgentProductionSmoke.d.ts +8 -8
- package/dist/platformCoverage.d.ts +3 -3
- package/dist/plugin.d.ts +2 -2
- package/dist/postCallAnalysis.d.ts +6 -6
- package/dist/postgresStore.d.ts +8 -8
- package/dist/presets.d.ts +3 -3
- package/dist/productionReadiness.d.ts +62 -36
- package/dist/profileSwitchRecommendation.d.ts +15 -15
- package/dist/proofAssertions.d.ts +1 -1
- package/dist/proofPack.d.ts +12 -12
- package/dist/proofRunner.d.ts +5 -5
- package/dist/proofTrends.d.ts +17 -17
- package/dist/providerAdapters.d.ts +5 -5
- package/dist/providerCapabilities.d.ts +4 -4
- package/dist/providerDecisionTraces.d.ts +8 -8
- package/dist/providerHealth.d.ts +3 -3
- package/dist/providerOrchestration.d.ts +5 -5
- package/dist/providerRouterTraces.d.ts +7 -7
- package/dist/providerRoutingContract.d.ts +3 -3
- package/dist/providerSlo.d.ts +6 -6
- package/dist/providerStackRecommendations.d.ts +6 -6
- package/dist/qualityRoutes.d.ts +4 -4
- package/dist/queue.d.ts +16 -16
- package/dist/react/VoiceAgentSquadStatus.d.ts +1 -1
- package/dist/react/VoiceCallDebuggerLaunch.d.ts +1 -1
- package/dist/react/VoiceDeliveryRuntime.d.ts +1 -1
- package/dist/react/VoiceOpsActionCenter.d.ts +1 -1
- package/dist/react/VoiceOpsStatus.d.ts +1 -1
- package/dist/react/VoicePlatformCoverage.d.ts +1 -1
- package/dist/react/VoiceProfileComparison.d.ts +1 -1
- package/dist/react/VoiceProfileSwitchRecommendation.d.ts +1 -1
- package/dist/react/VoiceProofTrends.d.ts +1 -1
- package/dist/react/VoiceProviderCapabilities.d.ts +1 -1
- package/dist/react/VoiceProviderContracts.d.ts +1 -1
- package/dist/react/VoiceProviderSimulationControls.d.ts +1 -1
- package/dist/react/VoiceProviderStatus.d.ts +1 -1
- package/dist/react/VoiceReadinessFailures.d.ts +1 -1
- package/dist/react/VoiceRoutingStatus.d.ts +1 -1
- package/dist/react/VoiceSessionSnapshot.d.ts +1 -1
- package/dist/react/VoiceTraceTimeline.d.ts +1 -1
- package/dist/react/VoiceTurnLatency.d.ts +1 -1
- package/dist/react/VoiceTurnQuality.d.ts +1 -1
- package/dist/react/index.d.ts +43 -43
- package/dist/react/index.js +41 -15
- package/dist/react/useVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/react/useVoiceCallDebugger.d.ts +1 -1
- package/dist/react/useVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/react/useVoiceController.d.ts +1 -1
- package/dist/react/useVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/react/useVoiceLiveOps.d.ts +1 -1
- package/dist/react/useVoiceOpsActionCenter.d.ts +1 -1
- package/dist/react/useVoiceOpsStatus.d.ts +1 -1
- package/dist/react/useVoicePlatformCoverage.d.ts +1 -1
- package/dist/react/useVoiceProfileComparison.d.ts +1 -1
- package/dist/react/useVoiceProfileSwitchRecommendation.d.ts +1 -1
- package/dist/react/useVoiceProofTrends.d.ts +1 -1
- package/dist/react/useVoiceProviderCapabilities.d.ts +1 -1
- package/dist/react/useVoiceProviderContracts.d.ts +1 -1
- package/dist/react/useVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/react/useVoiceProviderStatus.d.ts +1 -1
- package/dist/react/useVoiceReadinessFailures.d.ts +1 -1
- package/dist/react/useVoiceRoutingStatus.d.ts +1 -1
- package/dist/react/useVoiceSessionSnapshot.d.ts +1 -1
- package/dist/react/useVoiceStream.d.ts +1 -1
- package/dist/react/useVoiceTraceTimeline.d.ts +1 -1
- package/dist/react/useVoiceTurnLatency.d.ts +1 -1
- package/dist/react/useVoiceTurnQuality.d.ts +1 -1
- package/dist/react/useVoiceWorkflowStatus.d.ts +1 -1
- package/dist/readinessProfiles.d.ts +22 -15
- package/dist/realtimeChannel.d.ts +6 -6
- package/dist/realtimeProviderContracts.d.ts +7 -7
- package/dist/reconnectContract.d.ts +6 -6
- package/dist/resilienceRoutes.d.ts +6 -6
- 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 +9 -9
- package/dist/sessionSnapshot.d.ts +8 -8
- package/dist/simulationSuite.d.ts +12 -12
- package/dist/sloCalibration.d.ts +8 -8
- package/dist/sqliteStore.d.ts +8 -8
- package/dist/store.d.ts +1 -1
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/svelte/createVoiceCallDebugger.d.ts +2 -2
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/svelte/createVoiceLiveOps.d.ts +2 -2
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +1 -1
- package/dist/svelte/createVoiceOpsStatus.d.ts +1 -1
- package/dist/svelte/createVoicePlatformCoverage.d.ts +1 -1
- package/dist/svelte/createVoiceProfileComparison.d.ts +1 -1
- package/dist/svelte/createVoiceProofTrends.d.ts +1 -1
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +1 -1
- package/dist/svelte/createVoiceProviderContracts.d.ts +1 -1
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/svelte/createVoiceProviderStatus.d.ts +1 -1
- package/dist/svelte/createVoiceReadinessFailures.d.ts +1 -1
- package/dist/svelte/createVoiceRoutingStatus.d.ts +1 -1
- package/dist/svelte/createVoiceSessionSnapshot.d.ts +2 -2
- package/dist/svelte/createVoiceStream.d.ts +1 -1
- package/dist/svelte/createVoiceTraceTimeline.d.ts +1 -1
- package/dist/svelte/createVoiceTurnLatency.d.ts +1 -1
- package/dist/svelte/createVoiceTurnQuality.d.ts +1 -1
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +1 -1
- package/dist/svelte/index.d.ts +23 -23
- package/dist/svelte/index.js +30 -8
- package/dist/telephony/contract.d.ts +5 -5
- package/dist/telephony/matrix.d.ts +4 -4
- package/dist/telephony/plivo.d.ts +30 -30
- package/dist/telephony/response.d.ts +1 -1
- package/dist/telephony/security.d.ts +17 -17
- package/dist/telephony/telnyx.d.ts +31 -31
- package/dist/telephony/twilio.d.ts +22 -22
- package/dist/telephonyMediaRoutes.d.ts +4 -4
- package/dist/telephonyOutcome.d.ts +13 -13
- 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 +49 -20
- 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 +3 -3
- package/dist/testing/tts.d.ts +1 -1
- package/dist/toolContract.d.ts +10 -10
- package/dist/toolRuntime.d.ts +3 -3
- package/dist/trace.d.ts +10 -10
- package/dist/traceDeliveryRoutes.d.ts +4 -4
- package/dist/traceTimeline.d.ts +4 -4
- package/dist/turnDetection.d.ts +1 -1
- package/dist/turnLatency.d.ts +4 -4
- package/dist/turnProfiles.d.ts +2 -2
- package/dist/turnQuality.d.ts +4 -4
- package/dist/types.d.ts +92 -92
- package/dist/voiceMonitoring.d.ts +6 -6
- package/dist/vue/VoiceOpsActionCenter.d.ts +2 -2
- package/dist/vue/VoiceProviderSimulationControls.d.ts +2 -2
- package/dist/vue/index.d.ts +38 -38
- package/dist/vue/index.js +41 -15
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/vue/useVoiceCallDebugger.d.ts +2 -2
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +2 -2
- package/dist/vue/useVoiceController.d.ts +1 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +2 -2
- package/dist/vue/useVoiceLiveOps.d.ts +1 -1
- package/dist/vue/useVoiceOpsActionCenter.d.ts +1 -1
- package/dist/vue/useVoiceOpsStatus.d.ts +2 -2
- package/dist/vue/useVoicePlatformCoverage.d.ts +2 -2
- package/dist/vue/useVoiceProfileComparison.d.ts +2 -2
- package/dist/vue/useVoiceProofTrends.d.ts +2 -2
- package/dist/vue/useVoiceProviderCapabilities.d.ts +2 -2
- package/dist/vue/useVoiceProviderContracts.d.ts +2 -2
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/vue/useVoiceProviderStatus.d.ts +2 -2
- package/dist/vue/useVoiceReadinessFailures.d.ts +30 -2
- package/dist/vue/useVoiceRoutingStatus.d.ts +1 -1
- package/dist/vue/useVoiceSessionSnapshot.d.ts +2 -2
- package/dist/vue/useVoiceStream.d.ts +1 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +2 -2
- package/dist/vue/useVoiceTurnLatency.d.ts +2 -2
- package/dist/vue/useVoiceTurnQuality.d.ts +2 -2
- package/dist/vue/useVoiceWorkflowStatus.d.ts +2 -2
- package/dist/workflowContract.d.ts +8 -8
- package/fixtures/manifest.json +356 -197
- package/package.json +260 -259
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Database } from
|
|
2
|
-
import type { RedisClient } from
|
|
3
|
-
import { Elysia } from
|
|
4
|
-
import { type VoiceTelephonyContractReport, type VoiceTelephonySetupStatus, type VoiceTelephonySmokeCheck, type VoiceTelephonySmokeReport } from
|
|
5
|
-
import { type VoiceTelephonyOutcomePolicy, type VoiceTelephonyWebhookRoutesOptions, type VoiceTelephonyWebhookVerificationResult } from
|
|
6
|
-
import type { VoiceServerMessage, VoiceSessionRecord } from
|
|
7
|
-
import { type TwilioMediaStreamBridgeOptions } from
|
|
8
|
-
import type { VoicePostgresClient } from
|
|
1
|
+
import { Database } from "bun:sqlite";
|
|
2
|
+
import type { RedisClient } from "bun";
|
|
3
|
+
import { Elysia } from "elysia";
|
|
4
|
+
import { type VoiceTelephonyContractReport, type VoiceTelephonySetupStatus, type VoiceTelephonySmokeCheck, type VoiceTelephonySmokeReport } from "./contract";
|
|
5
|
+
import { type VoiceTelephonyOutcomePolicy, type VoiceTelephonyWebhookRoutesOptions, type VoiceTelephonyWebhookVerificationResult } from "../telephonyOutcome";
|
|
6
|
+
import type { VoiceServerMessage, VoiceSessionRecord } from "../types";
|
|
7
|
+
import { type TwilioMediaStreamBridgeOptions } from "./twilio";
|
|
8
|
+
import type { VoicePostgresClient } from "../postgresStore";
|
|
9
9
|
export type TelnyxMediaPayload = {
|
|
10
10
|
chunk?: string;
|
|
11
11
|
payload: string;
|
|
12
12
|
timestamp?: string;
|
|
13
|
-
track?:
|
|
13
|
+
track?: "inbound" | "outbound" | "inbound_track" | "outbound_track";
|
|
14
14
|
};
|
|
15
15
|
export type TelnyxInboundMessage = {
|
|
16
|
-
event:
|
|
16
|
+
event: "connected";
|
|
17
17
|
version?: string;
|
|
18
18
|
} | {
|
|
19
|
-
event:
|
|
19
|
+
event: "start";
|
|
20
20
|
sequence_number?: string;
|
|
21
21
|
start?: {
|
|
22
22
|
call_control_id?: string;
|
|
@@ -32,26 +32,26 @@ export type TelnyxInboundMessage = {
|
|
|
32
32
|
};
|
|
33
33
|
stream_id?: string;
|
|
34
34
|
} | {
|
|
35
|
-
event:
|
|
35
|
+
event: "media";
|
|
36
36
|
media: TelnyxMediaPayload;
|
|
37
37
|
sequence_number?: string;
|
|
38
38
|
stream_id?: string;
|
|
39
39
|
} | {
|
|
40
|
-
event:
|
|
40
|
+
event: "mark";
|
|
41
41
|
mark?: {
|
|
42
42
|
name?: string;
|
|
43
43
|
};
|
|
44
44
|
sequence_number?: string;
|
|
45
45
|
stream_id?: string;
|
|
46
46
|
} | {
|
|
47
|
-
event:
|
|
47
|
+
event: "dtmf";
|
|
48
48
|
dtmf?: {
|
|
49
49
|
digit?: string;
|
|
50
50
|
};
|
|
51
51
|
sequence_number?: string;
|
|
52
52
|
stream_id?: string;
|
|
53
53
|
} | {
|
|
54
|
-
event:
|
|
54
|
+
event: "error";
|
|
55
55
|
payload?: {
|
|
56
56
|
code?: number;
|
|
57
57
|
detail?: string;
|
|
@@ -59,7 +59,7 @@ export type TelnyxInboundMessage = {
|
|
|
59
59
|
};
|
|
60
60
|
stream_id?: string;
|
|
61
61
|
} | {
|
|
62
|
-
event:
|
|
62
|
+
event: "stop";
|
|
63
63
|
sequence_number?: string;
|
|
64
64
|
stop?: {
|
|
65
65
|
call_control_id?: string;
|
|
@@ -68,16 +68,16 @@ export type TelnyxInboundMessage = {
|
|
|
68
68
|
stream_id?: string;
|
|
69
69
|
};
|
|
70
70
|
export type TelnyxOutboundMediaMessage = {
|
|
71
|
-
event:
|
|
71
|
+
event: "media";
|
|
72
72
|
media: {
|
|
73
73
|
payload: string;
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
export type TelnyxOutboundClearMessage = {
|
|
77
|
-
event:
|
|
77
|
+
event: "clear";
|
|
78
78
|
};
|
|
79
79
|
export type TelnyxOutboundMarkMessage = {
|
|
80
|
-
event:
|
|
80
|
+
event: "mark";
|
|
81
81
|
mark: {
|
|
82
82
|
name: string;
|
|
83
83
|
};
|
|
@@ -87,7 +87,7 @@ export type TelnyxMediaStreamSocket = {
|
|
|
87
87
|
close: (code?: number, reason?: string) => void | Promise<void>;
|
|
88
88
|
send: (data: string) => void | Promise<void>;
|
|
89
89
|
};
|
|
90
|
-
export type TelnyxMediaStreamBridgeOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Omit<TwilioMediaStreamBridgeOptions<TContext, TSession, TResult>,
|
|
90
|
+
export type TelnyxMediaStreamBridgeOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Omit<TwilioMediaStreamBridgeOptions<TContext, TSession, TResult>, "onVoiceMessage"> & {
|
|
91
91
|
onVoiceMessage?: (input: {
|
|
92
92
|
callControlId?: string;
|
|
93
93
|
message: VoiceServerMessage<TResult>;
|
|
@@ -102,15 +102,15 @@ export type TelnyxMediaStreamBridge = {
|
|
|
102
102
|
handleMessage: (raw: string | TelnyxInboundMessage) => Promise<void>;
|
|
103
103
|
};
|
|
104
104
|
export type TelnyxVoiceResponseOptions = {
|
|
105
|
-
bidirectionalCodec?:
|
|
106
|
-
bidirectionalMode?:
|
|
107
|
-
codec?:
|
|
105
|
+
bidirectionalCodec?: "AMR-WB" | "G722" | "OPUS" | "PCMA" | "PCMU";
|
|
106
|
+
bidirectionalMode?: "mp3" | "rtp";
|
|
107
|
+
codec?: "AMR-WB" | "G722" | "OPUS" | "PCMA" | "PCMU" | "default";
|
|
108
108
|
streamName?: string;
|
|
109
109
|
streamUrl: string;
|
|
110
|
-
track?:
|
|
110
|
+
track?: "both_tracks" | "inbound_track" | "outbound_track";
|
|
111
111
|
};
|
|
112
|
-
export type TelnyxVoiceSetupStatus = VoiceTelephonySetupStatus<
|
|
113
|
-
urls: VoiceTelephonySetupStatus<
|
|
112
|
+
export type TelnyxVoiceSetupStatus = VoiceTelephonySetupStatus<"telnyx"> & {
|
|
113
|
+
urls: VoiceTelephonySetupStatus<"telnyx">["urls"] & {
|
|
114
114
|
texml: string;
|
|
115
115
|
};
|
|
116
116
|
};
|
|
@@ -120,8 +120,8 @@ export type TelnyxVoiceSetupOptions = {
|
|
|
120
120
|
title?: string;
|
|
121
121
|
};
|
|
122
122
|
export type TelnyxVoiceSmokeCheck = VoiceTelephonySmokeCheck;
|
|
123
|
-
export type TelnyxVoiceSmokeReport = VoiceTelephonySmokeReport<
|
|
124
|
-
contract: VoiceTelephonyContractReport<
|
|
123
|
+
export type TelnyxVoiceSmokeReport = VoiceTelephonySmokeReport<"telnyx"> & {
|
|
124
|
+
contract: VoiceTelephonyContractReport<"telnyx">;
|
|
125
125
|
setup: TelnyxVoiceSetupStatus;
|
|
126
126
|
texml?: {
|
|
127
127
|
status: number;
|
|
@@ -146,14 +146,14 @@ export type TelnyxVoiceRoutesOptions<TContext = unknown, TSession extends VoiceS
|
|
|
146
146
|
streamPath?: string;
|
|
147
147
|
texml?: {
|
|
148
148
|
path?: string;
|
|
149
|
-
response?: Omit<TelnyxVoiceResponseOptions,
|
|
149
|
+
response?: Omit<TelnyxVoiceResponseOptions, "streamUrl">;
|
|
150
150
|
streamUrl?: string | ((input: {
|
|
151
151
|
query: Record<string, unknown>;
|
|
152
152
|
request: Request;
|
|
153
153
|
streamPath: string;
|
|
154
154
|
}) => Promise<string> | string);
|
|
155
155
|
};
|
|
156
|
-
webhook?: Omit<VoiceTelephonyWebhookRoutesOptions<TContext, TSession, TResult>,
|
|
156
|
+
webhook?: Omit<VoiceTelephonyWebhookRoutesOptions<TContext, TSession, TResult>, "context" | "path" | "policy" | "provider"> & {
|
|
157
157
|
eventStore?: VoiceTelnyxWebhookEventStore;
|
|
158
158
|
path?: string;
|
|
159
159
|
policy?: VoiceTelephonyOutcomePolicy;
|
|
@@ -182,7 +182,7 @@ export type VoicePostgresTelnyxWebhookEventStoreOptions = VoiceTelnyxWebhookEven
|
|
|
182
182
|
tableName?: string;
|
|
183
183
|
tablePrefix?: string;
|
|
184
184
|
};
|
|
185
|
-
export type VoiceRedisTelnyxWebhookEventClient = Pick<RedisClient,
|
|
185
|
+
export type VoiceRedisTelnyxWebhookEventClient = Pick<RedisClient, "exists" | "set">;
|
|
186
186
|
export type VoiceRedisTelnyxWebhookEventStoreOptions = VoiceTelnyxWebhookEventStoreOptions & {
|
|
187
187
|
client?: VoiceRedisTelnyxWebhookEventClient;
|
|
188
188
|
keyPrefix?: string;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { VoiceTelephonySetupStatus, VoiceTelephonySmokeCheck, VoiceTelephonySmokeReport } from
|
|
3
|
-
import { type VoiceTelephonyOutcomePolicy, type VoiceTelephonyWebhookRoutesOptions } from
|
|
4
|
-
import { type VoiceCallReviewArtifact, type VoiceCallReviewConfig } from
|
|
5
|
-
import type { AudioFormat, STTAdapter, VoiceLogger, VoicePluginConfig, VoiceSessionRecord, VoiceServerMessage } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { VoiceTelephonySetupStatus, VoiceTelephonySmokeCheck, VoiceTelephonySmokeReport } from "./contract";
|
|
3
|
+
import { type VoiceTelephonyOutcomePolicy, type VoiceTelephonyWebhookRoutesOptions } from "../telephonyOutcome";
|
|
4
|
+
import { type VoiceCallReviewArtifact, type VoiceCallReviewConfig } from "../testing/review";
|
|
5
|
+
import type { AudioFormat, STTAdapter, VoiceLogger, VoicePluginConfig, VoiceSessionRecord, VoiceServerMessage } from "../types";
|
|
6
6
|
type TwilioMediaPayload = {
|
|
7
7
|
chunk?: string;
|
|
8
8
|
payload: string;
|
|
9
9
|
timestamp?: string;
|
|
10
|
-
track?:
|
|
10
|
+
track?: "inbound" | "outbound";
|
|
11
11
|
};
|
|
12
12
|
type TwilioConnectedMessage = {
|
|
13
|
-
event:
|
|
13
|
+
event: "connected";
|
|
14
14
|
protocol?: string;
|
|
15
15
|
version?: string;
|
|
16
16
|
};
|
|
17
17
|
type TwilioStartMessage = {
|
|
18
|
-
event:
|
|
18
|
+
event: "start";
|
|
19
19
|
sequenceNumber?: string;
|
|
20
20
|
start: {
|
|
21
21
|
accountSid?: string;
|
|
@@ -32,13 +32,13 @@ type TwilioStartMessage = {
|
|
|
32
32
|
streamSid?: string;
|
|
33
33
|
};
|
|
34
34
|
type TwilioMediaMessage = {
|
|
35
|
-
event:
|
|
35
|
+
event: "media";
|
|
36
36
|
media: TwilioMediaPayload;
|
|
37
37
|
sequenceNumber?: string;
|
|
38
38
|
streamSid: string;
|
|
39
39
|
};
|
|
40
40
|
type TwilioMarkMessage = {
|
|
41
|
-
event:
|
|
41
|
+
event: "mark";
|
|
42
42
|
mark?: {
|
|
43
43
|
name?: string;
|
|
44
44
|
};
|
|
@@ -46,7 +46,7 @@ type TwilioMarkMessage = {
|
|
|
46
46
|
streamSid: string;
|
|
47
47
|
};
|
|
48
48
|
type TwilioStopMessage = {
|
|
49
|
-
event:
|
|
49
|
+
event: "stop";
|
|
50
50
|
sequenceNumber?: string;
|
|
51
51
|
stop?: {
|
|
52
52
|
accountSid?: string;
|
|
@@ -56,18 +56,18 @@ type TwilioStopMessage = {
|
|
|
56
56
|
};
|
|
57
57
|
export type TwilioInboundMessage = TwilioConnectedMessage | TwilioStartMessage | TwilioMediaMessage | TwilioMarkMessage | TwilioStopMessage;
|
|
58
58
|
export type TwilioOutboundMediaMessage = {
|
|
59
|
-
event:
|
|
59
|
+
event: "media";
|
|
60
60
|
media: {
|
|
61
61
|
payload: string;
|
|
62
62
|
};
|
|
63
63
|
streamSid: string;
|
|
64
64
|
};
|
|
65
65
|
export type TwilioOutboundClearMessage = {
|
|
66
|
-
event:
|
|
66
|
+
event: "clear";
|
|
67
67
|
streamSid: string;
|
|
68
68
|
};
|
|
69
69
|
export type TwilioOutboundMarkMessage = {
|
|
70
|
-
event:
|
|
70
|
+
event: "mark";
|
|
71
71
|
mark: {
|
|
72
72
|
name: string;
|
|
73
73
|
};
|
|
@@ -78,7 +78,7 @@ export type TwilioMediaStreamSocket = {
|
|
|
78
78
|
close: (code?: number, reason?: string) => void | Promise<void>;
|
|
79
79
|
send: (data: string) => void | Promise<void>;
|
|
80
80
|
};
|
|
81
|
-
export type TwilioMediaStreamBridgeOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Omit<VoicePluginConfig<TContext, TSession, TResult>,
|
|
81
|
+
export type TwilioMediaStreamBridgeOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Omit<VoicePluginConfig<TContext, TSession, TResult>, "htmx" | "path" | "stt"> & {
|
|
82
82
|
clearOnInboundMedia?: boolean;
|
|
83
83
|
context: TContext;
|
|
84
84
|
logger?: VoiceLogger;
|
|
@@ -98,7 +98,7 @@ export type TwilioMediaStreamBridgeOptions<TContext = unknown, TSession extends
|
|
|
98
98
|
scenarioId?: string;
|
|
99
99
|
sessionId?: string;
|
|
100
100
|
stt: STTAdapter;
|
|
101
|
-
telephonyMediaCarrier?:
|
|
101
|
+
telephonyMediaCarrier?: "plivo" | "telnyx" | "twilio";
|
|
102
102
|
};
|
|
103
103
|
export type TwilioMediaStreamBridge = {
|
|
104
104
|
close: (reason?: string) => Promise<void>;
|
|
@@ -110,14 +110,14 @@ export type TwilioVoiceResponseOptions = {
|
|
|
110
110
|
parameters?: Record<string, string | number | boolean | undefined>;
|
|
111
111
|
streamName?: string;
|
|
112
112
|
streamUrl: string;
|
|
113
|
-
track?:
|
|
113
|
+
track?: "both_tracks" | "inbound_track" | "outbound_track";
|
|
114
114
|
};
|
|
115
115
|
export type TwilioVoiceRouteParameters = Record<string, string | number | boolean | undefined> | ((input: {
|
|
116
116
|
query: Record<string, unknown>;
|
|
117
117
|
request: Request;
|
|
118
118
|
}) => Promise<Record<string, string | number | boolean | undefined>> | Record<string, string | number | boolean | undefined>);
|
|
119
|
-
export type TwilioVoiceSetupStatus = VoiceTelephonySetupStatus<
|
|
120
|
-
urls: VoiceTelephonySetupStatus<
|
|
119
|
+
export type TwilioVoiceSetupStatus = VoiceTelephonySetupStatus<"twilio"> & {
|
|
120
|
+
urls: VoiceTelephonySetupStatus<"twilio">["urls"] & {
|
|
121
121
|
twiml: string;
|
|
122
122
|
};
|
|
123
123
|
};
|
|
@@ -127,7 +127,7 @@ export type TwilioVoiceSetupOptions = {
|
|
|
127
127
|
title?: string;
|
|
128
128
|
};
|
|
129
129
|
export type TwilioVoiceSmokeCheck = VoiceTelephonySmokeCheck;
|
|
130
|
-
export type TwilioVoiceSmokeReport = VoiceTelephonySmokeReport<
|
|
130
|
+
export type TwilioVoiceSmokeReport = VoiceTelephonySmokeReport<"twilio"> & {
|
|
131
131
|
setup: TwilioVoiceSetupStatus;
|
|
132
132
|
};
|
|
133
133
|
export type TwilioVoiceSmokeOptions = {
|
|
@@ -154,9 +154,9 @@ export type TwilioVoiceRoutesOptions<TContext = unknown, TSession extends VoiceS
|
|
|
154
154
|
request: Request;
|
|
155
155
|
streamPath: string;
|
|
156
156
|
}) => Promise<string> | string);
|
|
157
|
-
track?: TwilioVoiceResponseOptions[
|
|
157
|
+
track?: TwilioVoiceResponseOptions["track"];
|
|
158
158
|
};
|
|
159
|
-
webhook?: Omit<VoiceTelephonyWebhookRoutesOptions<TContext, TSession, TResult>,
|
|
159
|
+
webhook?: Omit<VoiceTelephonyWebhookRoutesOptions<TContext, TSession, TResult>, "context" | "path" | "policy" | "provider"> & {
|
|
160
160
|
path?: string;
|
|
161
161
|
policy?: VoiceTelephonyOutcomePolicy;
|
|
162
162
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { MediaFrame, MediaTelephonyCarrier, MediaTelephonyEnvelope, MediaTelephonyStreamLifecycleReport } from
|
|
3
|
-
import type { VoiceTraceEventStore } from
|
|
4
|
-
export type VoiceTelephonyMediaStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { MediaFrame, MediaTelephonyCarrier, MediaTelephonyEnvelope, MediaTelephonyStreamLifecycleReport } from "@absolutejs/media";
|
|
3
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
4
|
+
export type VoiceTelephonyMediaStatus = "fail" | "pass";
|
|
5
5
|
export type VoiceTelephonyMediaCarrierInput = {
|
|
6
6
|
carrier: MediaTelephonyCarrier;
|
|
7
7
|
envelope?: MediaTelephonyEnvelope;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { VoiceCallDisposition, VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord } from
|
|
3
|
-
export type VoiceTelephonyOutcomeAction =
|
|
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
4
|
export type VoiceTelephonyOutcomeProviderEvent = {
|
|
5
5
|
answeredBy?: string;
|
|
6
6
|
durationMs?: number;
|
|
@@ -15,17 +15,17 @@ export type VoiceTelephonyOutcomeProviderEvent = {
|
|
|
15
15
|
};
|
|
16
16
|
export type VoiceTelephonyOutcomeDecision = {
|
|
17
17
|
action: VoiceTelephonyOutcomeAction;
|
|
18
|
-
confidence:
|
|
18
|
+
confidence: "high" | "low" | "medium";
|
|
19
19
|
disposition?: VoiceCallDisposition;
|
|
20
20
|
metadata?: Record<string, unknown>;
|
|
21
21
|
reason?: string;
|
|
22
|
-
source:
|
|
22
|
+
source: "answered-by" | "duration" | "explicit-target" | "policy" | "sip" | "status";
|
|
23
23
|
target?: string;
|
|
24
24
|
};
|
|
25
|
-
export type VoiceTelephonyOutcomeStatusDecision = VoiceTelephonyOutcomeAction | Omit<VoiceTelephonyOutcomeDecision,
|
|
26
|
-
confidence?: VoiceTelephonyOutcomeDecision[
|
|
27
|
-
source?: VoiceTelephonyOutcomeDecision[
|
|
28
|
-
};
|
|
25
|
+
export type VoiceTelephonyOutcomeStatusDecision = VoiceTelephonyOutcomeAction | (Omit<VoiceTelephonyOutcomeDecision, "confidence" | "source"> & {
|
|
26
|
+
confidence?: VoiceTelephonyOutcomeDecision["confidence"];
|
|
27
|
+
source?: VoiceTelephonyOutcomeDecision["source"];
|
|
28
|
+
});
|
|
29
29
|
export type VoiceTelephonyOutcomePolicy = {
|
|
30
30
|
completedStatuses?: string[];
|
|
31
31
|
escalationStatuses?: string[];
|
|
@@ -44,7 +44,7 @@ export type VoiceTelephonyOutcomePolicy = {
|
|
|
44
44
|
voicemailStatuses?: string[];
|
|
45
45
|
};
|
|
46
46
|
export type VoiceTelephonyOutcomeRouteResult<TResult = unknown> = VoiceRouteResult<TResult>;
|
|
47
|
-
export type VoiceTelephonyWebhookProvider =
|
|
47
|
+
export type VoiceTelephonyWebhookProvider = "generic" | "plivo" | "telnyx" | "twilio";
|
|
48
48
|
export type VoiceTelephonyWebhookParseInput = {
|
|
49
49
|
body: unknown;
|
|
50
50
|
headers: Headers;
|
|
@@ -71,7 +71,7 @@ export type VoiceTelephonyWebhookNormalizationEvidenceDecision = {
|
|
|
71
71
|
decision?: {
|
|
72
72
|
action?: VoiceTelephonyOutcomeAction | string;
|
|
73
73
|
disposition?: VoiceCallDisposition | string;
|
|
74
|
-
source?: VoiceTelephonyOutcomeDecision[
|
|
74
|
+
source?: VoiceTelephonyOutcomeDecision["source"] | string;
|
|
75
75
|
};
|
|
76
76
|
disposition?: VoiceCallDisposition | string;
|
|
77
77
|
duplicate?: boolean;
|
|
@@ -81,7 +81,7 @@ export type VoiceTelephonyWebhookNormalizationEvidenceDecision = {
|
|
|
81
81
|
provider?: VoiceTelephonyWebhookProvider | string;
|
|
82
82
|
routeResult?: unknown;
|
|
83
83
|
sessionId?: string;
|
|
84
|
-
source?: VoiceTelephonyOutcomeDecision[
|
|
84
|
+
source?: VoiceTelephonyOutcomeDecision["source"] | string;
|
|
85
85
|
};
|
|
86
86
|
export type VoiceTelephonyWebhookVerificationEvidenceAttempt = {
|
|
87
87
|
decisions?: number;
|
|
@@ -143,7 +143,7 @@ export type VoiceTelephonyWebhookVerificationResult = {
|
|
|
143
143
|
ok: true;
|
|
144
144
|
} | {
|
|
145
145
|
ok: false;
|
|
146
|
-
reason:
|
|
146
|
+
reason: "invalid-signature" | "missing-secret" | "missing-signature" | "unsupported-provider";
|
|
147
147
|
};
|
|
148
148
|
export type VoiceTelephonyWebhookHandlerOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
149
149
|
apply?: boolean | ((input: VoiceTelephonyWebhookDecision<TResult>) => boolean);
|
|
@@ -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";
|