@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
package/dist/testing/index.js
CHANGED
|
@@ -1066,10 +1066,7 @@ var createRiskyTurnCorrectionHandler = (options = {}) => {
|
|
|
1066
1066
|
if (averageConfidence !== undefined && averageConfidence > maxAverageConfidence) {
|
|
1067
1067
|
return;
|
|
1068
1068
|
}
|
|
1069
|
-
const result = applyRiskTieredPhraseHintCorrections(text, [
|
|
1070
|
-
...phraseHints,
|
|
1071
|
-
...lexiconToPhraseHints(lexicon)
|
|
1072
|
-
], { riskTier });
|
|
1069
|
+
const result = applyRiskTieredPhraseHintCorrections(text, [...phraseHints, ...lexiconToPhraseHints(lexicon)], { riskTier });
|
|
1073
1070
|
if (!result.changed) {
|
|
1074
1071
|
return;
|
|
1075
1072
|
}
|
|
@@ -4198,7 +4195,10 @@ var FIXTURE_DIR_CANDIDATES = [
|
|
|
4198
4195
|
resolve(import.meta.dir, "..", "..", "..", "fixtures"),
|
|
4199
4196
|
resolve(import.meta.dir, "..", "..", "..", "..", "fixtures")
|
|
4200
4197
|
];
|
|
4201
|
-
var EXTERNAL_FIXTURE_ENV_KEYS = [
|
|
4198
|
+
var EXTERNAL_FIXTURE_ENV_KEYS = [
|
|
4199
|
+
"VOICE_FIXTURE_DIR",
|
|
4200
|
+
"VOICE_FIXTURE_DIRS"
|
|
4201
|
+
];
|
|
4202
4202
|
var resolveFixtureDirectory = async () => {
|
|
4203
4203
|
for (const candidate of FIXTURE_DIR_CANDIDATES) {
|
|
4204
4204
|
if (await Bun.file(resolve(candidate, "manifest.json")).exists()) {
|
|
@@ -4345,11 +4345,7 @@ var createMultiSpeakerVoiceTestFixtures = (fixtures, options = {}) => {
|
|
|
4345
4345
|
const speakerB = requireFixture(fixtures, "traveled-back-route-clean");
|
|
4346
4346
|
const speakerC = requireFixture(fixtures, "rainstorms-noisy");
|
|
4347
4347
|
const silence = createSilenceBytes(speakerA.format.sampleRateHz, silenceMs);
|
|
4348
|
-
const handoff = concatAudioChunks([
|
|
4349
|
-
speakerA.audio,
|
|
4350
|
-
silence,
|
|
4351
|
-
speakerB.audio
|
|
4352
|
-
]);
|
|
4348
|
+
const handoff = concatAudioChunks([speakerA.audio, silence, speakerB.audio]);
|
|
4353
4349
|
const threeTurn = concatAudioChunks([
|
|
4354
4350
|
speakerA.audio,
|
|
4355
4351
|
silence,
|
|
@@ -4357,7 +4353,12 @@ var createMultiSpeakerVoiceTestFixtures = (fixtures, options = {}) => {
|
|
|
4357
4353
|
silence,
|
|
4358
4354
|
speakerC.audio
|
|
4359
4355
|
]);
|
|
4360
|
-
const buildTags = (...tags) => [
|
|
4356
|
+
const buildTags = (...tags) => [
|
|
4357
|
+
"multi-speaker",
|
|
4358
|
+
"handoff",
|
|
4359
|
+
"synthetic",
|
|
4360
|
+
...tags
|
|
4361
|
+
];
|
|
4361
4362
|
return [
|
|
4362
4363
|
{
|
|
4363
4364
|
...speakerA,
|
|
@@ -4367,7 +4368,10 @@ var createMultiSpeakerVoiceTestFixtures = (fixtures, options = {}) => {
|
|
|
4367
4368
|
{ speaker: "speaker-a", text: speakerA.expectedText },
|
|
4368
4369
|
{ speaker: "speaker-b", text: speakerB.expectedText }
|
|
4369
4370
|
],
|
|
4370
|
-
expectedTerms: Array.from(new Set([
|
|
4371
|
+
expectedTerms: Array.from(new Set([
|
|
4372
|
+
...speakerA.expectedTerms ?? [],
|
|
4373
|
+
...speakerB.expectedTerms ?? []
|
|
4374
|
+
])),
|
|
4371
4375
|
expectedText: `${speakerA.expectedText} ${speakerB.expectedText}`.trim(),
|
|
4372
4376
|
expectedTurnTexts: [speakerA.expectedText, speakerB.expectedText],
|
|
4373
4377
|
id: "multi-speaker-handoff-clean",
|
|
@@ -4389,7 +4393,11 @@ var createMultiSpeakerVoiceTestFixtures = (fixtures, options = {}) => {
|
|
|
4389
4393
|
...speakerC.expectedTerms ?? []
|
|
4390
4394
|
])),
|
|
4391
4395
|
expectedText: `${speakerA.expectedText} ${speakerB.expectedText} ${speakerC.expectedText}`.trim(),
|
|
4392
|
-
expectedTurnTexts: [
|
|
4396
|
+
expectedTurnTexts: [
|
|
4397
|
+
speakerA.expectedText,
|
|
4398
|
+
speakerB.expectedText,
|
|
4399
|
+
speakerC.expectedText
|
|
4400
|
+
],
|
|
4393
4401
|
id: "multi-speaker-handoff-three",
|
|
4394
4402
|
tags: buildTags("challenging", "noisy"),
|
|
4395
4403
|
title: "Synthetic three-speaker handoff (A-B-C)"
|
|
@@ -9795,8 +9803,12 @@ var redactVoiceTraceEvent = (event, options = {}) => {
|
|
|
9795
9803
|
const resolved = resolveVoiceTraceRedactionOptions(options);
|
|
9796
9804
|
return {
|
|
9797
9805
|
...event,
|
|
9798
|
-
metadata: redactTraceValue(event.metadata, resolved, [
|
|
9799
|
-
|
|
9806
|
+
metadata: redactTraceValue(event.metadata, resolved, [
|
|
9807
|
+
"metadata"
|
|
9808
|
+
]),
|
|
9809
|
+
payload: redactTraceValue(event.payload, resolved, [
|
|
9810
|
+
"payload"
|
|
9811
|
+
])
|
|
9800
9812
|
};
|
|
9801
9813
|
};
|
|
9802
9814
|
var redactVoiceTraceEvents = (events, options = {}) => events.map((event) => redactVoiceTraceEvent(event, options));
|
|
@@ -10478,7 +10490,10 @@ var summarizeVoiceSessions = async (options = {}) => {
|
|
|
10478
10490
|
const events = options.events ?? await options.store?.list() ?? [];
|
|
10479
10491
|
const grouped = new Map;
|
|
10480
10492
|
for (const event of events) {
|
|
10481
|
-
grouped.set(event.sessionId, [
|
|
10493
|
+
grouped.set(event.sessionId, [
|
|
10494
|
+
...grouped.get(event.sessionId) ?? [],
|
|
10495
|
+
event
|
|
10496
|
+
]);
|
|
10482
10497
|
}
|
|
10483
10498
|
const sessions = [...grouped.entries()].map(([sessionId, sessionEvents]) => {
|
|
10484
10499
|
const sorted = filterVoiceTraceEvents(sessionEvents);
|
|
@@ -10776,7 +10791,10 @@ var summarizeVoiceTraceTimeline = (events, options = {}) => {
|
|
|
10776
10791
|
const source = options.redact ? redactVoiceTraceEvents(events, options.redact) : events;
|
|
10777
10792
|
const grouped = new Map;
|
|
10778
10793
|
for (const event of filterVoiceTraceEvents(source)) {
|
|
10779
|
-
grouped.set(event.sessionId, [
|
|
10794
|
+
grouped.set(event.sessionId, [
|
|
10795
|
+
...grouped.get(event.sessionId) ?? [],
|
|
10796
|
+
event
|
|
10797
|
+
]);
|
|
10780
10798
|
}
|
|
10781
10799
|
const sessions = [...grouped.entries()].map(([sessionId, sessionEvents]) => {
|
|
10782
10800
|
const sorted = filterVoiceTraceEvents(sessionEvents);
|
|
@@ -12091,7 +12109,11 @@ var resolveVoiceTelephonyOutcome = (event, policyInput = {}) => {
|
|
|
12091
12109
|
}
|
|
12092
12110
|
if (target) {
|
|
12093
12111
|
return {
|
|
12094
|
-
...buildDecision("transfer", {
|
|
12112
|
+
...buildDecision("transfer", {
|
|
12113
|
+
event,
|
|
12114
|
+
policy,
|
|
12115
|
+
source: "explicit-target"
|
|
12116
|
+
}),
|
|
12095
12117
|
confidence: "medium"
|
|
12096
12118
|
};
|
|
12097
12119
|
}
|
|
@@ -12273,7 +12295,12 @@ var parseVoiceTelephonyWebhookEvent = (input) => {
|
|
|
12273
12295
|
"hangupCauseCode"
|
|
12274
12296
|
]);
|
|
12275
12297
|
const from = firstString3(payload, ["From", "from", "caller_id", "callerId"]);
|
|
12276
|
-
const to = firstString3(payload, [
|
|
12298
|
+
const to = firstString3(payload, [
|
|
12299
|
+
"To",
|
|
12300
|
+
"to",
|
|
12301
|
+
"called_number",
|
|
12302
|
+
"calledNumber"
|
|
12303
|
+
]);
|
|
12277
12304
|
const target = firstString3(payload, [
|
|
12278
12305
|
"transferTarget",
|
|
12279
12306
|
"TransferTarget",
|
|
@@ -12536,7 +12563,9 @@ var buildTwilioVoiceSetupStatus = async (options, input) => {
|
|
|
12536
12563
|
const warnings = [
|
|
12537
12564
|
...stream.startsWith("wss://") ? [] : ["Twilio media streams should use wss:// in production."],
|
|
12538
12565
|
...signingConfigured ? [] : ["Webhook signature verification is not configured."],
|
|
12539
|
-
...verificationUrl || !signingConfigured ? [] : [
|
|
12566
|
+
...verificationUrl || !signingConfigured ? [] : [
|
|
12567
|
+
"Webhook signing is configured without an explicit verification URL."
|
|
12568
|
+
]
|
|
12540
12569
|
];
|
|
12541
12570
|
return {
|
|
12542
12571
|
generatedAt: Date.now(),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { VoiceIOProviderRouterEvent } from
|
|
2
|
-
export type VoiceIOProviderFailureSimulationMode =
|
|
3
|
-
export type VoiceIOProviderFailureSimulationKind =
|
|
4
|
-
export type VoiceIOProviderFailureSimulationOperation =
|
|
1
|
+
import type { VoiceIOProviderRouterEvent } from "../providerAdapters";
|
|
2
|
+
export type VoiceIOProviderFailureSimulationMode = "failure" | "recovery";
|
|
3
|
+
export type VoiceIOProviderFailureSimulationKind = "stt" | "tts";
|
|
4
|
+
export type VoiceIOProviderFailureSimulationOperation = "open" | "send";
|
|
5
5
|
export type VoiceIOProviderFailureSimulationResult<TProvider extends string = string> = {
|
|
6
6
|
fallbackProvider?: TProvider;
|
|
7
7
|
mode: VoiceIOProviderFailureSimulationMode;
|
|
8
8
|
provider: TProvider;
|
|
9
9
|
sessionId: string;
|
|
10
|
-
status:
|
|
10
|
+
status: "simulated";
|
|
11
11
|
suppressedUntil?: number;
|
|
12
12
|
};
|
|
13
13
|
export type VoiceIOProviderFailureSimulatorOptions<TProvider extends string = string> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { VoiceAgentModelInput, VoiceAgentModelOutput } from
|
|
2
|
-
import type { VoiceSessionRecord } from
|
|
3
|
-
import type { VoiceProviderRouterEvent, VoiceProviderRouterHealthOptions } from
|
|
4
|
-
export type VoiceProviderFailureSimulationMode =
|
|
1
|
+
import type { VoiceAgentModelInput, VoiceAgentModelOutput } from "../agent";
|
|
2
|
+
import type { VoiceSessionRecord } from "../types";
|
|
3
|
+
import type { VoiceProviderRouterEvent, VoiceProviderRouterHealthOptions } from "../modelAdapters";
|
|
4
|
+
export type VoiceProviderFailureSimulationMode = "failure" | "recovery";
|
|
5
5
|
export type VoiceProviderFailureSimulationContext<TProvider extends string = string> = {
|
|
6
6
|
query: {
|
|
7
7
|
provider: TProvider;
|
|
@@ -15,7 +15,7 @@ export type VoiceProviderFailureSimulationResult<TProvider extends string = stri
|
|
|
15
15
|
replayHref?: string;
|
|
16
16
|
result: VoiceAgentModelOutput<TResult>;
|
|
17
17
|
sessionId: string;
|
|
18
|
-
status:
|
|
18
|
+
status: "simulated";
|
|
19
19
|
turnId: string;
|
|
20
20
|
};
|
|
21
21
|
type ProviderListResolver<TContext, TSession extends VoiceSessionRecord, TProvider extends string> = readonly TProvider[] | ((input: VoiceAgentModelInput<TContext, TSession>) => readonly TProvider[] | Promise<readonly TProvider[]>);
|
package/dist/testing/review.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VoiceCallDisposition, VoiceServerMessage } from
|
|
2
|
-
type ReviewTimelineSource =
|
|
1
|
+
import type { VoiceCallDisposition, VoiceServerMessage } from "../types";
|
|
2
|
+
type ReviewTimelineSource = "benchmark" | "stt" | "turn" | "twilio";
|
|
3
3
|
export type VoiceCallReviewTimelineEvent = {
|
|
4
4
|
atMs: number;
|
|
5
5
|
event: string;
|
|
@@ -113,7 +113,7 @@ export type VoiceCallReviewRecorder = {
|
|
|
113
113
|
recordTwilioInbound: (input: {
|
|
114
114
|
bytes?: number;
|
|
115
115
|
chunkDurationMs?: number;
|
|
116
|
-
event:
|
|
116
|
+
event: "connected" | "mark" | "media" | "start" | "stop";
|
|
117
117
|
name?: string;
|
|
118
118
|
reason?: string;
|
|
119
119
|
text?: string;
|
|
@@ -122,7 +122,7 @@ export type VoiceCallReviewRecorder = {
|
|
|
122
122
|
recordTwilioOutbound: (input: {
|
|
123
123
|
bytes?: number;
|
|
124
124
|
chunkDurationMs?: number;
|
|
125
|
-
event:
|
|
125
|
+
event: "clear" | "mark" | "media";
|
|
126
126
|
name?: string;
|
|
127
127
|
reason?: string;
|
|
128
128
|
text?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { STTAdapter, VoiceAudioConditioningConfig, VoicePhraseHint, VoiceSTTFallbackConfig, VoiceSTTLifecycle, VoiceTurnCorrectionHandler, VoiceTurnProfile, VoiceTranscriptQuality } from
|
|
2
|
-
import { type VoiceTranscriptAccuracy } from
|
|
3
|
-
import type { VoiceTestFixture } from
|
|
1
|
+
import type { STTAdapter, VoiceAudioConditioningConfig, VoicePhraseHint, VoiceSTTFallbackConfig, VoiceSTTLifecycle, VoiceTurnCorrectionHandler, VoiceTurnProfile, VoiceTranscriptQuality } from "../types";
|
|
2
|
+
import { type VoiceTranscriptAccuracy } from "./accuracy";
|
|
3
|
+
import type { VoiceTestFixture } from "./fixtures";
|
|
4
4
|
export type VoiceSessionBenchmarkScenario = VoiceTestFixture & {
|
|
5
5
|
expectedTurnTexts: string[];
|
|
6
6
|
phraseHints?: VoicePhraseHint[];
|
package/dist/testing/stt.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type VoiceTranscriptAccuracy } from
|
|
2
|
-
import type { STTAdapter, STTAdapterOpenOptions, VoiceCloseEvent, VoiceEndOfTurnEvent, VoiceErrorEvent, VoiceFinalEvent, VoicePartialEvent } from
|
|
3
|
-
import type { VoiceTestFixture } from
|
|
1
|
+
import { type VoiceTranscriptAccuracy } from "./accuracy";
|
|
2
|
+
import type { STTAdapter, STTAdapterOpenOptions, VoiceCloseEvent, VoiceEndOfTurnEvent, VoiceErrorEvent, VoiceFinalEvent, VoicePartialEvent } from "../types";
|
|
3
|
+
import type { VoiceTestFixture } from "./fixtures";
|
|
4
4
|
export type VoiceSTTAdapterHarnessOptions = {
|
|
5
5
|
chunkDurationMs?: number;
|
|
6
6
|
idleTimeoutMs?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceOperationsRecord } from
|
|
2
|
-
import { type VoiceTraceEventStore } from
|
|
1
|
+
import { type VoiceOperationsRecord } from "../operationsRecord";
|
|
2
|
+
import { type VoiceTraceEventStore } from "../trace";
|
|
3
3
|
export type VoiceTelephonyBenchmarkScenario = {
|
|
4
4
|
expectClear: boolean;
|
|
5
5
|
expectMark: boolean;
|
|
@@ -62,7 +62,7 @@ export type VoiceTelephonyMediaOperationsSmokeReport = {
|
|
|
62
62
|
sentEvents: string[];
|
|
63
63
|
sessionId: string;
|
|
64
64
|
streamSid: string;
|
|
65
|
-
telephonyMedia: VoiceOperationsRecord[
|
|
65
|
+
telephonyMedia: VoiceOperationsRecord["telephonyMedia"];
|
|
66
66
|
};
|
|
67
67
|
type VoiceTelephonyBenchmarkOptions = {
|
|
68
68
|
timeoutMs?: number;
|
package/dist/testing/tts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AudioFormat, RealtimeAdapter, RealtimeAdapterOpenOptions, TTSAdapter, TTSAdapterOpenOptions } from
|
|
1
|
+
import type { AudioFormat, RealtimeAdapter, RealtimeAdapterOpenOptions, TTSAdapter, TTSAdapterOpenOptions } from "../types";
|
|
2
2
|
export type VoiceTTSBenchmarkFixture = {
|
|
3
3
|
id: string;
|
|
4
4
|
tags?: string[];
|
package/dist/toolContract.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { VoiceAgentTool } from
|
|
3
|
-
import { type VoiceToolRuntimeOptions } from
|
|
4
|
-
import type { VoiceSessionRecord, VoiceTurnRecord } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { VoiceAgentTool } from "./agent";
|
|
3
|
+
import { type VoiceToolRuntimeOptions } from "./toolRuntime";
|
|
4
|
+
import type { VoiceSessionRecord, VoiceTurnRecord } from "./types";
|
|
5
5
|
export type VoiceToolContractExpectation = {
|
|
6
6
|
expectedAttempts?: number;
|
|
7
7
|
expectedErrorIncludes?: string;
|
|
8
8
|
expectedResult?: unknown;
|
|
9
9
|
expectIdempotent?: boolean;
|
|
10
|
-
expectStatus?:
|
|
10
|
+
expectStatus?: "error" | "ok";
|
|
11
11
|
expectTimedOut?: boolean;
|
|
12
12
|
maxElapsedMs?: number;
|
|
13
13
|
};
|
|
@@ -45,7 +45,7 @@ export type VoiceToolContractCaseReport = {
|
|
|
45
45
|
operationsRecordHref?: string;
|
|
46
46
|
pass: boolean;
|
|
47
47
|
sessionId: string;
|
|
48
|
-
status:
|
|
48
|
+
status: "error" | "ok";
|
|
49
49
|
timedOut: boolean;
|
|
50
50
|
};
|
|
51
51
|
export type VoiceToolContractReport = {
|
|
@@ -61,7 +61,7 @@ export type VoiceToolContractSuiteReport = {
|
|
|
61
61
|
contracts: VoiceToolContractReport[];
|
|
62
62
|
failed: number;
|
|
63
63
|
passed: number;
|
|
64
|
-
status:
|
|
64
|
+
status: "fail" | "pass";
|
|
65
65
|
total: number;
|
|
66
66
|
};
|
|
67
67
|
export type VoiceToolContractAssertionInput = {
|
|
@@ -71,12 +71,12 @@ export type VoiceToolContractAssertionInput = {
|
|
|
71
71
|
minCases?: number;
|
|
72
72
|
minContracts?: number;
|
|
73
73
|
requireOperationRecordHrefs?: boolean;
|
|
74
|
-
requiredCaseStatuses?: Array<
|
|
74
|
+
requiredCaseStatuses?: Array<"error" | "ok">;
|
|
75
75
|
requiredContractIds?: string[];
|
|
76
76
|
requiredToolNames?: string[];
|
|
77
77
|
};
|
|
78
78
|
export type VoiceToolContractAssertionReport = {
|
|
79
|
-
caseStatuses: Array<
|
|
79
|
+
caseStatuses: Array<"error" | "ok">;
|
|
80
80
|
cases: number;
|
|
81
81
|
contractIds: string[];
|
|
82
82
|
failed: number;
|
|
@@ -85,7 +85,7 @@ export type VoiceToolContractAssertionReport = {
|
|
|
85
85
|
missingOperationsRecordHrefs: number;
|
|
86
86
|
ok: boolean;
|
|
87
87
|
passed: number;
|
|
88
|
-
status: VoiceToolContractSuiteReport[
|
|
88
|
+
status: VoiceToolContractSuiteReport["status"];
|
|
89
89
|
timedOut: number;
|
|
90
90
|
toolNames: string[];
|
|
91
91
|
total: number;
|
package/dist/toolRuntime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { VoiceAgentTool, VoiceAgentToolResult } from
|
|
2
|
-
import type { VoiceSessionHandle, VoiceSessionRecord, VoiceTurnRecord } from
|
|
3
|
-
import type { VoiceTraceEventStore } from
|
|
1
|
+
import type { VoiceAgentTool, VoiceAgentToolResult } from "./agent";
|
|
2
|
+
import type { VoiceSessionHandle, VoiceSessionRecord, VoiceTurnRecord } from "./types";
|
|
3
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
4
4
|
export type VoiceToolRetryDelay = number | ((input: {
|
|
5
5
|
attempt: number;
|
|
6
6
|
error: unknown;
|
package/dist/trace.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { S3Client, S3Options } from
|
|
2
|
-
export type VoiceTraceEventType =
|
|
1
|
+
import type { S3Client, S3Options } from "bun";
|
|
2
|
+
export type VoiceTraceEventType = "assistant.guardrail" | "assistant.memory" | "assistant.run" | "agent.context" | "agent.handoff" | "agent.model" | "agent.result" | "agent.tool" | "call.handoff" | "call.lifecycle" | "client.barge_in" | "client.browser_media" | "client.live_latency" | "client.reconnect" | "client.telephony_media" | "operator.action" | "provider.decision" | "session.error" | "turn.assistant" | "turn.committed" | "turn.cost" | "turn_latency.stage" | "turn.transcript" | "workflow.contract";
|
|
3
3
|
export type VoiceTraceEvent<TPayload extends Record<string, unknown> = Record<string, unknown>> = {
|
|
4
4
|
at: number;
|
|
5
5
|
id?: string;
|
|
@@ -16,7 +16,7 @@ export type StoredVoiceTraceEvent<TPayload extends Record<string, unknown> = Rec
|
|
|
16
16
|
};
|
|
17
17
|
export type VoiceTraceEventFilter = {
|
|
18
18
|
limit?: number;
|
|
19
|
-
readWindow?:
|
|
19
|
+
readWindow?: "recent";
|
|
20
20
|
scenarioId?: string;
|
|
21
21
|
sessionId?: string;
|
|
22
22
|
traceId?: string;
|
|
@@ -35,7 +35,7 @@ export type VoiceProofTraceStoreOptions<TEvent extends StoredVoiceTraceEvent = S
|
|
|
35
35
|
proofStore?: VoiceTraceEventStore<TEvent>;
|
|
36
36
|
scope?: VoiceScopedTraceEventStoreOptions;
|
|
37
37
|
};
|
|
38
|
-
export type VoiceTracePruneFilter = Omit<VoiceTraceEventFilter,
|
|
38
|
+
export type VoiceTracePruneFilter = Omit<VoiceTraceEventFilter, "limit">;
|
|
39
39
|
export type VoiceTracePruneOptions = {
|
|
40
40
|
before?: number;
|
|
41
41
|
beforeOrAt?: number;
|
|
@@ -51,8 +51,8 @@ export type VoiceTracePruneResult = {
|
|
|
51
51
|
dryRun: boolean;
|
|
52
52
|
scannedCount: number;
|
|
53
53
|
};
|
|
54
|
-
export type VoiceTraceSinkDeliveryStatus =
|
|
55
|
-
export type VoiceTraceSinkDeliveryQueueStatus = VoiceTraceSinkDeliveryStatus |
|
|
54
|
+
export type VoiceTraceSinkDeliveryStatus = "delivered" | "failed" | "skipped";
|
|
55
|
+
export type VoiceTraceSinkDeliveryQueueStatus = VoiceTraceSinkDeliveryStatus | "pending";
|
|
56
56
|
export type VoiceTraceSinkDeliveryResult = {
|
|
57
57
|
attempts: number;
|
|
58
58
|
deliveredAt?: number;
|
|
@@ -103,7 +103,7 @@ export type VoiceTraceHTTPSinkOptions<TBody extends Record<string, unknown> = Re
|
|
|
103
103
|
headers?: Record<string, string>;
|
|
104
104
|
id: string;
|
|
105
105
|
kind?: string;
|
|
106
|
-
method?:
|
|
106
|
+
method?: "POST" | "PUT" | "PATCH";
|
|
107
107
|
retries?: number;
|
|
108
108
|
signingSecret?: string;
|
|
109
109
|
timeoutMs?: number;
|
|
@@ -112,7 +112,7 @@ export type VoiceTraceHTTPSinkOptions<TBody extends Record<string, unknown> = Re
|
|
|
112
112
|
export type VoiceS3TraceSinkFile = {
|
|
113
113
|
write: (data: string, options?: BlobPropertyBag) => Promise<number> | number;
|
|
114
114
|
};
|
|
115
|
-
export type VoiceS3TraceSinkClient = Pick<S3Client,
|
|
115
|
+
export type VoiceS3TraceSinkClient = Pick<S3Client, "file">;
|
|
116
116
|
export type VoiceTraceS3SinkOptions<TBody extends Record<string, unknown> = Record<string, unknown>> = S3Options & {
|
|
117
117
|
body?: (input: {
|
|
118
118
|
events: StoredVoiceTraceEvent[];
|
|
@@ -166,7 +166,7 @@ export type VoiceTraceSummary = {
|
|
|
166
166
|
transcriptCount: number;
|
|
167
167
|
turnCount: number;
|
|
168
168
|
};
|
|
169
|
-
export type VoiceTraceIssueSeverity =
|
|
169
|
+
export type VoiceTraceIssueSeverity = "error" | "warning";
|
|
170
170
|
export type VoiceTraceIssue = {
|
|
171
171
|
code: string;
|
|
172
172
|
message: string;
|
|
@@ -200,7 +200,7 @@ export type VoiceTraceRedactionOptions = {
|
|
|
200
200
|
textKeys?: string[];
|
|
201
201
|
};
|
|
202
202
|
export type VoiceTraceRedactionConfig = boolean | VoiceTraceRedactionOptions;
|
|
203
|
-
export type VoiceResolvedTraceRedactionOptions = Required<Pick<VoiceTraceRedactionOptions,
|
|
203
|
+
export type VoiceResolvedTraceRedactionOptions = Required<Pick<VoiceTraceRedactionOptions, "redactEmails" | "redactPhoneNumbers" | "redactText">> & {
|
|
204
204
|
keys: string[];
|
|
205
205
|
replacement: VoiceTraceRedactionReplacement;
|
|
206
206
|
textKeys: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceTraceSinkDeliveryQueueSummary, type VoiceTraceSinkDeliveryWorkerResult } from
|
|
3
|
-
import type { VoiceTraceSinkDeliveryQueueStatus, VoiceTraceSinkDeliveryRecord, VoiceTraceSinkDeliveryStore } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceTraceSinkDeliveryQueueSummary, type VoiceTraceSinkDeliveryWorkerResult } from "./queue";
|
|
3
|
+
import type { VoiceTraceSinkDeliveryQueueStatus, VoiceTraceSinkDeliveryRecord, VoiceTraceSinkDeliveryStore } from "./trace";
|
|
4
4
|
export type VoiceTraceDeliveryReport = {
|
|
5
5
|
checkedAt: number;
|
|
6
6
|
deliveries: VoiceTraceSinkDeliveryRecord[];
|
|
@@ -16,7 +16,7 @@ export type VoiceTraceDeliveryDrainReport = VoiceTraceSinkDeliveryWorkerResult &
|
|
|
16
16
|
export type VoiceTraceDeliveryFilter = {
|
|
17
17
|
limit?: number;
|
|
18
18
|
q?: string;
|
|
19
|
-
status?: VoiceTraceSinkDeliveryQueueStatus |
|
|
19
|
+
status?: VoiceTraceSinkDeliveryQueueStatus | "all";
|
|
20
20
|
};
|
|
21
21
|
export type VoiceTraceDeliveryRoutesOptions = {
|
|
22
22
|
deadLetters?: VoiceTraceSinkDeliveryStore;
|
package/dist/traceTimeline.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { evaluateVoiceTrace, type StoredVoiceTraceEvent, type VoiceTraceEvaluationOptions, type VoiceTraceEventStore, type VoiceTraceRedactionConfig, type VoiceTraceSummary } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { evaluateVoiceTrace, type StoredVoiceTraceEvent, type VoiceTraceEvaluationOptions, type VoiceTraceEventStore, type VoiceTraceRedactionConfig, type VoiceTraceSummary } from "./trace";
|
|
3
3
|
export type VoiceTraceTimelineEvent = {
|
|
4
4
|
at: number;
|
|
5
5
|
elapsedMs?: number;
|
|
@@ -10,7 +10,7 @@ export type VoiceTraceTimelineEvent = {
|
|
|
10
10
|
provider?: string;
|
|
11
11
|
status?: string;
|
|
12
12
|
turnId?: string;
|
|
13
|
-
type: StoredVoiceTraceEvent[
|
|
13
|
+
type: StoredVoiceTraceEvent["type"];
|
|
14
14
|
};
|
|
15
15
|
export type VoiceTraceTimelineProviderSummary = {
|
|
16
16
|
averageElapsedMs?: number;
|
|
@@ -31,7 +31,7 @@ export type VoiceTraceTimelineSession = {
|
|
|
31
31
|
providers: VoiceTraceTimelineProviderSummary[];
|
|
32
32
|
sessionId: string;
|
|
33
33
|
startedAt?: number;
|
|
34
|
-
status:
|
|
34
|
+
status: "failed" | "healthy" | "warning";
|
|
35
35
|
summary: VoiceTraceSummary;
|
|
36
36
|
};
|
|
37
37
|
export type VoiceTraceTimelineReport = {
|
package/dist/turnDetection.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AudioChunk, Transcript } from
|
|
1
|
+
import type { AudioChunk, Transcript } from "./types";
|
|
2
2
|
export declare const DEFAULT_SILENCE_MS = 700;
|
|
3
3
|
export declare const DEFAULT_SPEECH_THRESHOLD = 0.015;
|
|
4
4
|
export declare const measureAudioLevel: (audio: AudioChunk) => number;
|
package/dist/turnLatency.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { VoiceTraceEventStore } from
|
|
3
|
-
import type { VoiceSessionRecord, VoiceSessionStore } from
|
|
4
|
-
export type VoiceTurnLatencyStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
3
|
+
import type { VoiceSessionRecord, VoiceSessionStore } from "./types";
|
|
4
|
+
export type VoiceTurnLatencyStatus = "pass" | "warn" | "fail" | "empty";
|
|
5
5
|
export type VoiceTurnLatencyStage = {
|
|
6
6
|
label: string;
|
|
7
7
|
valueMs?: number;
|
package/dist/turnProfiles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VoiceResolvedTurnDetectionConfig, VoiceTurnDetectionConfig, VoiceTurnQualityProfile, VoiceTurnProfile } from
|
|
2
|
-
export declare const TURN_PROFILE_DEFAULTS: Record<VoiceTurnProfile, Omit<VoiceResolvedTurnDetectionConfig,
|
|
1
|
+
import type { VoiceResolvedTurnDetectionConfig, VoiceTurnDetectionConfig, VoiceTurnQualityProfile, VoiceTurnProfile } from "./types";
|
|
2
|
+
export declare const TURN_PROFILE_DEFAULTS: Record<VoiceTurnProfile, Omit<VoiceResolvedTurnDetectionConfig, "profile">>;
|
|
3
3
|
export declare const QUALITY_PROFILE_DEFAULTS: Record<VoiceTurnQualityProfile, Partial<VoiceResolvedTurnDetectionConfig>>;
|
|
4
4
|
export declare const DEFAULT_TURN_PROFILE: VoiceTurnProfile;
|
|
5
5
|
export declare const DEFAULT_QUALITY_PROFILE: VoiceTurnQualityProfile;
|
package/dist/turnQuality.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { VoiceSessionRecord, VoiceSessionStore, VoiceTranscriptQuality } from
|
|
3
|
-
export type VoiceTurnQualityStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { VoiceSessionRecord, VoiceSessionStore, VoiceTranscriptQuality } from "./types";
|
|
3
|
+
export type VoiceTurnQualityStatus = "pass" | "warn" | "fail" | "unknown";
|
|
4
4
|
export type VoiceTurnQualityItem = {
|
|
5
5
|
averageConfidence?: number;
|
|
6
6
|
committedAt: number;
|
|
@@ -15,7 +15,7 @@ export type VoiceTurnQualityItem = {
|
|
|
15
15
|
partialTranscriptCount: number;
|
|
16
16
|
selectedTranscriptCount: number;
|
|
17
17
|
sessionId: string;
|
|
18
|
-
source?: VoiceTranscriptQuality[
|
|
18
|
+
source?: VoiceTranscriptQuality["source"];
|
|
19
19
|
status: VoiceTurnQualityStatus;
|
|
20
20
|
text: string;
|
|
21
21
|
turnId: string;
|