@absolutejs/voice 0.0.22-beta.530 → 0.0.22-beta.532
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/dist/angular/index.js +4 -4
- package/dist/angular/voice-call-debugger.service.d.ts +1 -1
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +1 -1
- package/dist/angular/voice-controller.service.d.ts +1 -1
- package/dist/angular/voice-cost-dashboard.service.d.ts +1 -1
- package/dist/angular/voice-delivery-runtime.service.d.ts +1 -1
- package/dist/angular/voice-ops-status.service.d.ts +1 -1
- package/dist/angular/voice-platform-coverage.service.d.ts +1 -1
- package/dist/angular/voice-profile-comparison.service.d.ts +1 -1
- package/dist/angular/voice-proof-trends.service.d.ts +1 -1
- package/dist/angular/voice-provider-capabilities.service.d.ts +1 -1
- package/dist/angular/voice-provider-contracts.service.d.ts +1 -1
- package/dist/angular/voice-provider-status.service.d.ts +1 -1
- package/dist/angular/voice-readiness-failures.service.d.ts +1 -1
- package/dist/angular/voice-reconnect-profile-evidence.service.d.ts +1 -1
- package/dist/angular/voice-session-observability.service.d.ts +1 -1
- package/dist/angular/voice-session-snapshot.service.d.ts +1 -1
- package/dist/angular/voice-stream.service.d.ts +1 -1
- package/dist/angular/voice-trace-timeline.service.d.ts +1 -1
- package/dist/angular/voice-turn-latency.service.d.ts +1 -1
- package/dist/angular/voice-turn-quality.service.d.ts +1 -1
- package/dist/angular/voice-widget.service.d.ts +1 -1
- package/dist/angular/voice-workflow-status.service.d.ts +1 -1
- package/dist/client/actions.d.ts +1 -1
- package/dist/client/agentSquadStatus.d.ts +1 -1
- package/dist/client/audioPlayer.d.ts +1 -1
- 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/callPlayer.d.ts +1 -1
- package/dist/client/campaignDialerProof.d.ts +1 -1
- package/dist/client/connection.d.ts +1 -1
- package/dist/client/controller.d.ts +1 -1
- package/dist/client/conversationAnalytics.d.ts +1 -1
- package/dist/client/costDashboard.d.ts +1 -1
- package/dist/client/createVoiceStream.d.ts +1 -1
- package/dist/client/deliveryRuntime.d.ts +1 -1
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmx.d.ts +1 -1
- package/dist/client/htmxBootstrap.js +3 -3
- package/dist/client/htmxDashboardRenderers.d.ts +1 -1
- package/dist/client/index.js +25 -29
- package/dist/client/liveAgentConsole.d.ts +1 -1
- package/dist/client/liveCallViewer.d.ts +1 -1
- package/dist/client/liveOps.d.ts +1 -1
- package/dist/client/liveOpsWidget.d.ts +1 -1
- package/dist/client/liveTurnLatency.d.ts +1 -1
- package/dist/client/microphone.d.ts +1 -1
- package/dist/client/opsActionHistory.d.ts +1 -1
- package/dist/client/opsStatus.d.ts +1 -1
- package/dist/client/opsStatusWidget.d.ts +1 -1
- package/dist/client/platformCoverage.d.ts +1 -1
- package/dist/client/platformCoverageWidget.d.ts +1 -1
- package/dist/client/profileComparison.d.ts +1 -1
- package/dist/client/profileSwitchRecommendation.d.ts +1 -1
- package/dist/client/proofTrends.d.ts +1 -1
- package/dist/client/proofTrendsWidget.d.ts +1 -1
- package/dist/client/providerCapabilities.d.ts +1 -1
- package/dist/client/providerCapabilitiesWidget.d.ts +1 -1
- package/dist/client/providerContracts.d.ts +1 -1
- package/dist/client/providerContractsWidget.d.ts +1 -1
- package/dist/client/providerStatus.d.ts +1 -1
- package/dist/client/providerStatusWidget.d.ts +1 -1
- package/dist/client/readinessFailures.d.ts +1 -1
- package/dist/client/readinessFailuresWidget.d.ts +1 -1
- package/dist/client/reconnectProfileEvidence.d.ts +1 -1
- package/dist/client/routingStatus.d.ts +1 -1
- package/dist/client/routingStatusWidget.d.ts +1 -1
- package/dist/client/sessionObservability.d.ts +1 -1
- package/dist/client/sessionObservabilityWidget.d.ts +1 -1
- package/dist/client/sessionSnapshot.d.ts +1 -1
- package/dist/client/store.d.ts +1 -1
- package/dist/client/traceTimeline.d.ts +1 -1
- package/dist/client/traceTimelineWidget.d.ts +1 -1
- package/dist/client/turnLatency.d.ts +1 -1
- package/dist/client/turnLatencyWidget.d.ts +1 -1
- package/dist/client/turnQuality.d.ts +1 -1
- package/dist/client/turnQualityWidget.d.ts +1 -1
- package/dist/client/voiceWidgetView.d.ts +2 -2
- package/dist/client/workflowStatus.d.ts +1 -1
- package/dist/{dataControl.d.ts → core/dataControl.d.ts} +1 -1
- package/dist/{fileStore.d.ts → core/fileStore.d.ts} +1 -1
- package/dist/{htmxDashboardRoutes.d.ts → core/htmxDashboardRoutes.d.ts} +4 -4
- package/dist/{multilingualProof.d.ts → core/multilingualProof.d.ts} +2 -2
- package/dist/{operationsRecord.d.ts → core/operationsRecord.d.ts} +1 -1
- package/dist/{ops.d.ts → core/ops.d.ts} +1 -1
- package/dist/{outcomeContract.d.ts → core/outcomeContract.d.ts} +1 -1
- package/dist/{phoneAgent.d.ts → core/phoneAgent.d.ts} +5 -5
- package/dist/{phoneAgentProductionSmoke.d.ts → core/phoneAgentProductionSmoke.d.ts} +1 -1
- package/dist/{postCallAnalysis.d.ts → core/postCallAnalysis.d.ts} +1 -1
- package/dist/{postgresStore.d.ts → core/postgresStore.d.ts} +1 -1
- package/dist/{productionReadiness.d.ts → core/productionReadiness.d.ts} +2 -2
- package/dist/{resilienceRoutes.d.ts → core/resilienceRoutes.d.ts} +1 -1
- package/dist/{runtimeOps.d.ts → core/runtimeOps.d.ts} +1 -1
- package/dist/{s3Store.d.ts → core/s3Store.d.ts} +1 -1
- package/dist/{sqliteStore.d.ts → core/sqliteStore.d.ts} +1 -1
- package/dist/{types.d.ts → core/types.d.ts} +3 -3
- package/dist/embed/index.d.ts +1 -1
- package/dist/embed/index.js +4 -4
- package/dist/embed/voice-widget.js +1 -1
- package/dist/index.d.ts +339 -339
- package/dist/index.js +232 -324
- package/dist/internal/evidence.d.ts +10 -0
- package/dist/internal/status.d.ts +0 -2
- package/dist/react/VoiceCallPlayer.d.ts +1 -1
- package/dist/react/VoiceWidget.d.ts +1 -1
- package/dist/react/index.js +21 -17
- package/dist/react/useVoiceController.d.ts +1 -1
- package/dist/react/useVoiceStream.d.ts +1 -1
- package/dist/svelte/createVoiceStream.d.ts +1 -1
- package/dist/svelte/createVoiceWidget.d.ts +1 -1
- package/dist/svelte/index.js +18 -18
- package/dist/telephony/plivo.d.ts +3 -3
- package/dist/telephony/security.d.ts +3 -3
- package/dist/telephony/telnyx.d.ts +3 -3
- package/dist/telephony/twilio.d.ts +2 -2
- package/dist/testing/accuracy.d.ts +1 -1
- package/dist/testing/benchmark.d.ts +1 -1
- package/dist/testing/corrected.d.ts +1 -1
- package/dist/testing/duplex.d.ts +1 -1
- package/dist/testing/fixtures.d.ts +1 -1
- package/dist/testing/index.js +33 -29
- package/dist/testing/ioProviderSimulator.d.ts +1 -1
- package/dist/testing/providerSimulator.d.ts +3 -3
- package/dist/testing/review.d.ts +1 -1
- package/dist/testing/sessionBenchmark.d.ts +1 -1
- package/dist/testing/stt.d.ts +1 -1
- package/dist/testing/telephony.d.ts +2 -2
- package/dist/testing/tts.d.ts +1 -1
- package/dist/vue/VoiceCallPlayer.d.ts +1 -1
- package/dist/vue/VoiceCostDashboard.d.ts +1 -1
- package/dist/vue/VoiceWidget.d.ts +1 -1
- package/dist/vue/index.js +21 -17
- package/dist/vue/useVoiceCallDebugger.d.ts +1 -1
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/vue/useVoiceController.d.ts +1 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/vue/useVoiceOpsStatus.d.ts +1 -1
- package/dist/vue/useVoicePlatformCoverage.d.ts +1 -1
- package/dist/vue/useVoiceProfileComparison.d.ts +1 -1
- package/dist/vue/useVoiceProofTrends.d.ts +1 -1
- package/dist/vue/useVoiceProviderCapabilities.d.ts +1 -1
- package/dist/vue/useVoiceProviderContracts.d.ts +1 -1
- package/dist/vue/useVoiceProviderStatus.d.ts +1 -1
- package/dist/vue/useVoiceReadinessFailures.d.ts +1 -1
- package/dist/vue/useVoiceReconnectProfileEvidence.d.ts +1 -1
- package/dist/vue/useVoiceSessionObservability.d.ts +1 -1
- package/dist/vue/useVoiceSessionSnapshot.d.ts +1 -1
- package/dist/vue/useVoiceStream.d.ts +1 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +1 -1
- package/dist/vue/useVoiceTurnLatency.d.ts +1 -1
- package/dist/vue/useVoiceTurnQuality.d.ts +1 -1
- package/dist/vue/useVoiceWorkflowStatus.d.ts +1 -1
- package/package.json +3 -1
- /package/dist/{agent.d.ts → core/agent.d.ts} +0 -0
- /package/dist/{agentPerformanceReport.d.ts → core/agentPerformanceReport.d.ts} +0 -0
- /package/dist/{agentSquadContract.d.ts → core/agentSquadContract.d.ts} +0 -0
- /package/dist/{agentState.d.ts → core/agentState.d.ts} +0 -0
- /package/dist/{agentTools.d.ts → core/agentTools.d.ts} +0 -0
- /package/dist/{aiScorecard.d.ts → core/aiScorecard.d.ts} +0 -0
- /package/dist/{aiVoiceModel.d.ts → core/aiVoiceModel.d.ts} +0 -0
- /package/dist/{amdDetector.d.ts → core/amdDetector.d.ts} +0 -0
- /package/dist/{assistant.d.ts → core/assistant.d.ts} +0 -0
- /package/dist/{assistantExperiment.d.ts → core/assistantExperiment.d.ts} +0 -0
- /package/dist/{assistantHealth.d.ts → core/assistantHealth.d.ts} +0 -0
- /package/dist/{assistantMemory.d.ts → core/assistantMemory.d.ts} +0 -0
- /package/dist/{assistantMode.d.ts → core/assistantMode.d.ts} +0 -0
- /package/dist/{audioConditioning.d.ts → core/audioConditioning.d.ts} +0 -0
- /package/dist/{audit.d.ts → core/audit.d.ts} +0 -0
- /package/dist/{auditDeliveryRoutes.d.ts → core/auditDeliveryRoutes.d.ts} +0 -0
- /package/dist/{auditExport.d.ts → core/auditExport.d.ts} +0 -0
- /package/dist/{auditRoutes.d.ts → core/auditRoutes.d.ts} +0 -0
- /package/dist/{auditSinks.d.ts → core/auditSinks.d.ts} +0 -0
- /package/dist/{backchannel.d.ts → core/backchannel.d.ts} +0 -0
- /package/dist/{bargeInRoutes.d.ts → core/bargeInRoutes.d.ts} +0 -0
- /package/dist/{bookingFlow.d.ts → core/bookingFlow.d.ts} +0 -0
- /package/dist/{browserCallProfiles.d.ts → core/browserCallProfiles.d.ts} +0 -0
- /package/dist/{browserMediaRoutes.d.ts → core/browserMediaRoutes.d.ts} +0 -0
- /package/dist/{calendarAdapter.d.ts → core/calendarAdapter.d.ts} +0 -0
- /package/dist/{calendarSlots.d.ts → core/calendarSlots.d.ts} +0 -0
- /package/dist/{callDebugger.d.ts → core/callDebugger.d.ts} +0 -0
- /package/dist/{callDisposition.d.ts → core/callDisposition.d.ts} +0 -0
- /package/dist/{callQuota.d.ts → core/callQuota.d.ts} +0 -0
- /package/dist/{callScorecard.d.ts → core/callScorecard.d.ts} +0 -0
- /package/dist/{callerCRMLinker.d.ts → core/callerCRMLinker.d.ts} +0 -0
- /package/dist/{callerMemory.d.ts → core/callerMemory.d.ts} +0 -0
- /package/dist/{callingWindow.d.ts → core/callingWindow.d.ts} +0 -0
- /package/dist/{campaign.d.ts → core/campaign.d.ts} +0 -0
- /package/dist/{campaignControls.d.ts → core/campaignControls.d.ts} +0 -0
- /package/dist/{campaignDialers.d.ts → core/campaignDialers.d.ts} +0 -0
- /package/dist/{campaignTemplate.d.ts → core/campaignTemplate.d.ts} +0 -0
- /package/dist/{competitiveCoverage.d.ts → core/competitiveCoverage.d.ts} +0 -0
- /package/dist/{conversationSimulator.d.ts → core/conversationSimulator.d.ts} +0 -0
- /package/dist/{correction.d.ts → core/correction.d.ts} +0 -0
- /package/dist/{costAccounting.d.ts → core/costAccounting.d.ts} +0 -0
- /package/dist/{costPredictor.d.ts → core/costPredictor.d.ts} +0 -0
- /package/dist/{crmCallLogger.d.ts → core/crmCallLogger.d.ts} +0 -0
- /package/dist/{crmContract.d.ts → core/crmContract.d.ts} +0 -0
- /package/dist/{defineVoiceAssistant.d.ts → core/defineVoiceAssistant.d.ts} +0 -0
- /package/dist/{deliveryRuntime.d.ts → core/deliveryRuntime.d.ts} +0 -0
- /package/dist/{deliverySinkRoutes.d.ts → core/deliverySinkRoutes.d.ts} +0 -0
- /package/dist/{demoReadyRoutes.d.ts → core/demoReadyRoutes.d.ts} +0 -0
- /package/dist/{diagnosticsRoutes.d.ts → core/diagnosticsRoutes.d.ts} +0 -0
- /package/dist/{dncRegistry.d.ts → core/dncRegistry.d.ts} +0 -0
- /package/dist/{dtmfCollector.d.ts → core/dtmfCollector.d.ts} +0 -0
- /package/dist/{evalRoutes.d.ts → core/evalRoutes.d.ts} +0 -0
- /package/dist/{guardrails.d.ts → core/guardrails.d.ts} +0 -0
- /package/dist/{handoff.d.ts → core/handoff.d.ts} +0 -0
- /package/dist/{handoffHealth.d.ts → core/handoffHealth.d.ts} +0 -0
- /package/dist/{holdAudio.d.ts → core/holdAudio.d.ts} +0 -0
- /package/dist/{htmx.d.ts → core/htmx.d.ts} +0 -0
- /package/dist/{iceServers.d.ts → core/iceServers.d.ts} +0 -0
- /package/dist/{incidentBundle.d.ts → core/incidentBundle.d.ts} +0 -0
- /package/dist/{incidentTimeline.d.ts → core/incidentTimeline.d.ts} +0 -0
- /package/dist/{ivrPlan.d.ts → core/ivrPlan.d.ts} +0 -0
- /package/dist/{latencySlo.d.ts → core/latencySlo.d.ts} +0 -0
- /package/dist/{liveCoach.d.ts → core/liveCoach.d.ts} +0 -0
- /package/dist/{liveLatency.d.ts → core/liveLatency.d.ts} +0 -0
- /package/dist/{liveOps.d.ts → core/liveOps.d.ts} +0 -0
- /package/dist/{llmJudge.d.ts → core/llmJudge.d.ts} +0 -0
- /package/dist/{logger.d.ts → core/logger.d.ts} +0 -0
- /package/dist/{mcpToolset.d.ts → core/mcpToolset.d.ts} +0 -0
- /package/dist/{mediaPipelineRoutes.d.ts → core/mediaPipelineRoutes.d.ts} +0 -0
- /package/dist/{mediaPipelineSurfaces.d.ts → core/mediaPipelineSurfaces.d.ts} +0 -0
- /package/dist/{memoryStore.d.ts → core/memoryStore.d.ts} +0 -0
- /package/dist/{midCallSummary.d.ts → core/midCallSummary.d.ts} +0 -0
- /package/dist/{modelAdapters.d.ts → core/modelAdapters.d.ts} +0 -0
- /package/dist/{monitor.d.ts → core/monitor.d.ts} +0 -0
- /package/dist/{noShowPredictor.d.ts → core/noShowPredictor.d.ts} +0 -0
- /package/dist/{oauth2TokenSource.d.ts → core/oauth2TokenSource.d.ts} +0 -0
- /package/dist/{observabilityExport.d.ts → core/observabilityExport.d.ts} +0 -0
- /package/dist/{openaiTTS.d.ts → core/openaiTTS.d.ts} +0 -0
- /package/dist/{operationalStatus.d.ts → core/operationalStatus.d.ts} +0 -0
- /package/dist/{opsActionAuditRoutes.d.ts → core/opsActionAuditRoutes.d.ts} +0 -0
- /package/dist/{opsConsoleRoutes.d.ts → core/opsConsoleRoutes.d.ts} +0 -0
- /package/dist/{opsPresets.d.ts → core/opsPresets.d.ts} +0 -0
- /package/dist/{opsRecovery.d.ts → core/opsRecovery.d.ts} +0 -0
- /package/dist/{opsRuntime.d.ts → core/opsRuntime.d.ts} +0 -0
- /package/dist/{opsSinks.d.ts → core/opsSinks.d.ts} +0 -0
- /package/dist/{opsStatus.d.ts → core/opsStatus.d.ts} +0 -0
- /package/dist/{opsStatusRoutes.d.ts → core/opsStatusRoutes.d.ts} +0 -0
- /package/dist/{opsWebhook.d.ts → core/opsWebhook.d.ts} +0 -0
- /package/dist/{otelExporter.d.ts → core/otelExporter.d.ts} +0 -0
- /package/dist/{outcomeRecipes.d.ts → core/outcomeRecipes.d.ts} +0 -0
- /package/dist/{pathway.d.ts → core/pathway.d.ts} +0 -0
- /package/dist/{pathwayCompiler.d.ts → core/pathwayCompiler.d.ts} +0 -0
- /package/dist/{pathwayGenerator.d.ts → core/pathwayGenerator.d.ts} +0 -0
- /package/dist/{pathwayRuntime.d.ts → core/pathwayRuntime.d.ts} +0 -0
- /package/dist/{pathwaySlotCollector.d.ts → core/pathwaySlotCollector.d.ts} +0 -0
- /package/dist/{pathwayVisualizer.d.ts → core/pathwayVisualizer.d.ts} +0 -0
- /package/dist/{phoneProvisioning.d.ts → core/phoneProvisioning.d.ts} +0 -0
- /package/dist/{platformCoverage.d.ts → core/platformCoverage.d.ts} +0 -0
- /package/dist/{plugin.d.ts → core/plugin.d.ts} +0 -0
- /package/dist/{postCallSurvey.d.ts → core/postCallSurvey.d.ts} +0 -0
- /package/dist/{presets.d.ts → core/presets.d.ts} +0 -0
- /package/dist/{profileSwitchRecommendation.d.ts → core/profileSwitchRecommendation.d.ts} +0 -0
- /package/dist/{promptInjectionGuard.d.ts → core/promptInjectionGuard.d.ts} +0 -0
- /package/dist/{proofAssertions.d.ts → core/proofAssertions.d.ts} +0 -0
- /package/dist/{proofPack.d.ts → core/proofPack.d.ts} +0 -0
- /package/dist/{proofRunner.d.ts → core/proofRunner.d.ts} +0 -0
- /package/dist/{proofTrends.d.ts → core/proofTrends.d.ts} +0 -0
- /package/dist/{providerAdapters.d.ts → core/providerAdapters.d.ts} +0 -0
- /package/dist/{providerCapabilities.d.ts → core/providerCapabilities.d.ts} +0 -0
- /package/dist/{providerDecisionTraces.d.ts → core/providerDecisionTraces.d.ts} +0 -0
- /package/dist/{providerHealth.d.ts → core/providerHealth.d.ts} +0 -0
- /package/dist/{providerOrchestration.d.ts → core/providerOrchestration.d.ts} +0 -0
- /package/dist/{providerRouterTraces.d.ts → core/providerRouterTraces.d.ts} +0 -0
- /package/dist/{providerRoutingContract.d.ts → core/providerRoutingContract.d.ts} +0 -0
- /package/dist/{providerSlo.d.ts → core/providerSlo.d.ts} +0 -0
- /package/dist/{providerStackRecommendations.d.ts → core/providerStackRecommendations.d.ts} +0 -0
- /package/dist/{qualityDriftDetector.d.ts → core/qualityDriftDetector.d.ts} +0 -0
- /package/dist/{qualityRoutes.d.ts → core/qualityRoutes.d.ts} +0 -0
- /package/dist/{queue.d.ts → core/queue.d.ts} +0 -0
- /package/dist/{ragTool.d.ts → core/ragTool.d.ts} +0 -0
- /package/dist/{readinessProfiles.d.ts → core/readinessProfiles.d.ts} +0 -0
- /package/dist/{realtimeChannel.d.ts → core/realtimeChannel.d.ts} +0 -0
- /package/dist/{realtimeProviderContracts.d.ts → core/realtimeProviderContracts.d.ts} +0 -0
- /package/dist/{reconnectContract.d.ts → core/reconnectContract.d.ts} +0 -0
- /package/dist/{recordingRedaction.d.ts → core/recordingRedaction.d.ts} +0 -0
- /package/dist/{recordingStore.d.ts → core/recordingStore.d.ts} +0 -0
- /package/dist/{redaction.d.ts → core/redaction.d.ts} +0 -0
- /package/dist/{reminderScheduler.d.ts → core/reminderScheduler.d.ts} +0 -0
- /package/dist/{retention.d.ts → core/retention.d.ts} +0 -0
- /package/dist/{retryPolicy.d.ts → core/retryPolicy.d.ts} +0 -0
- /package/dist/{routeAuth.d.ts → core/routeAuth.d.ts} +0 -0
- /package/dist/{routing.d.ts → core/routing.d.ts} +0 -0
- /package/dist/{scorecardCalibration.d.ts → core/scorecardCalibration.d.ts} +0 -0
- /package/dist/{semanticTurn.d.ts → core/semanticTurn.d.ts} +0 -0
- /package/dist/{session.d.ts → core/session.d.ts} +0 -0
- /package/dist/{sessionObservability.d.ts → core/sessionObservability.d.ts} +0 -0
- /package/dist/{sessionReplay.d.ts → core/sessionReplay.d.ts} +0 -0
- /package/dist/{sessionSnapshot.d.ts → core/sessionSnapshot.d.ts} +0 -0
- /package/dist/{simulationSuite.d.ts → core/simulationSuite.d.ts} +0 -0
- /package/dist/{sloCalibration.d.ts → core/sloCalibration.d.ts} +0 -0
- /package/dist/{store.d.ts → core/store.d.ts} +0 -0
- /package/dist/{supervisorPermissions.d.ts → core/supervisorPermissions.d.ts} +0 -0
- /package/dist/{supervisorPresence.d.ts → core/supervisorPresence.d.ts} +0 -0
- /package/dist/{telephonyMediaRoutes.d.ts → core/telephonyMediaRoutes.d.ts} +0 -0
- /package/dist/{telephonyOutcome.d.ts → core/telephonyOutcome.d.ts} +0 -0
- /package/dist/{toolContract.d.ts → core/toolContract.d.ts} +0 -0
- /package/dist/{toolRuntime.d.ts → core/toolRuntime.d.ts} +0 -0
- /package/dist/{trace.d.ts → core/trace.d.ts} +0 -0
- /package/dist/{traceDeliveryRoutes.d.ts → core/traceDeliveryRoutes.d.ts} +0 -0
- /package/dist/{traceTimeline.d.ts → core/traceTimeline.d.ts} +0 -0
- /package/dist/{transcriptAnnotator.d.ts → core/transcriptAnnotator.d.ts} +0 -0
- /package/dist/{turnDetection.d.ts → core/turnDetection.d.ts} +0 -0
- /package/dist/{turnLatency.d.ts → core/turnLatency.d.ts} +0 -0
- /package/dist/{turnProfiles.d.ts → core/turnProfiles.d.ts} +0 -0
- /package/dist/{turnQuality.d.ts → core/turnQuality.d.ts} +0 -0
- /package/dist/{vapiAdapter.d.ts → core/vapiAdapter.d.ts} +0 -0
- /package/dist/{variableAnalytics.d.ts → core/variableAnalytics.d.ts} +0 -0
- /package/dist/{voiceConfiguration.d.ts → core/voiceConfiguration.d.ts} +0 -0
- /package/dist/{voiceMonitoring.d.ts → core/voiceMonitoring.d.ts} +0 -0
- /package/dist/{webhookFanout.d.ts → core/webhookFanout.d.ts} +0 -0
- /package/dist/{webhookVerification.d.ts → core/webhookVerification.d.ts} +0 -0
- /package/dist/{whisperChannel.d.ts → core/whisperChannel.d.ts} +0 -0
- /package/dist/{workflowContract.d.ts → core/workflowContract.d.ts} +0 -0
- /package/dist/{zeroDataRetention.d.ts → core/zeroDataRetention.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type VoiceEvidenceAssertion = {
|
|
2
|
+
ok: boolean;
|
|
3
|
+
issues: string[];
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Throw if an evidence assertion failed, formatting its issues into the error
|
|
7
|
+
* message. Returns the assertion unchanged when it passed, so callers can
|
|
8
|
+
* `return assertVoiceEvidence(label, evaluate(...))`.
|
|
9
|
+
*/
|
|
10
|
+
export declare const assertVoiceEvidence: <A extends VoiceEvidenceAssertion>(failureMessage: string, assertion: A) => A;
|
|
@@ -3,7 +3,5 @@
|
|
|
3
3
|
* order is fail > warn > pass.
|
|
4
4
|
*/
|
|
5
5
|
export type VoiceStatus = "fail" | "pass" | "warn";
|
|
6
|
-
/** Severity rank for a status (fail=2, warn=1, pass=0). Higher is worse. */
|
|
7
|
-
export declare const voiceStatusRank: (status: VoiceStatus) => number;
|
|
8
6
|
/** Reduce a set of statuses to the worst one (fail > warn > pass). */
|
|
9
7
|
export declare const worstVoiceStatus: (statuses: Iterable<VoiceStatus>) => VoiceStatus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VoiceCallPlayer as VoiceCallPlayerHandle, type VoiceCallPlayerOptions } from "../client/callPlayer";
|
|
2
|
-
import type { Transcript } from "../types";
|
|
2
|
+
import type { Transcript } from "../core/types";
|
|
3
3
|
export type VoiceCallPlayerProps = VoiceCallPlayerOptions & {
|
|
4
4
|
audioUrl?: string;
|
|
5
5
|
className?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceControllerOptions } from "../types";
|
|
1
|
+
import type { VoiceControllerOptions } from "../core/types";
|
|
2
2
|
import { type VoiceWidgetLabels, type VoiceWidgetTheme, type VoiceWidgetViewModel } from "../client/voiceWidgetView";
|
|
3
3
|
export type { VoiceWidgetLabels, VoiceWidgetTheme, VoiceWidgetViewModel };
|
|
4
4
|
export type VoiceWidgetProps = {
|
package/dist/react/index.js
CHANGED
|
@@ -1505,7 +1505,15 @@ var useVoiceProofTrends = (path = "/api/voice/proof-trends", options = {}) => {
|
|
|
1505
1505
|
};
|
|
1506
1506
|
};
|
|
1507
1507
|
|
|
1508
|
-
// src/
|
|
1508
|
+
// src/internal/evidence.ts
|
|
1509
|
+
var assertVoiceEvidence = (failureMessage, assertion) => {
|
|
1510
|
+
if (!assertion.ok) {
|
|
1511
|
+
throw new Error(`${failureMessage}: ${assertion.issues.join(" ")}`);
|
|
1512
|
+
}
|
|
1513
|
+
return assertion;
|
|
1514
|
+
};
|
|
1515
|
+
|
|
1516
|
+
// src/core/proofTrends.ts
|
|
1509
1517
|
import { Elysia as Elysia4 } from "elysia";
|
|
1510
1518
|
|
|
1511
1519
|
// src/internal/status.ts
|
|
@@ -1520,13 +1528,13 @@ var worstVoiceStatus = (statuses) => {
|
|
|
1520
1528
|
return worst;
|
|
1521
1529
|
};
|
|
1522
1530
|
|
|
1523
|
-
// src/providerDecisionTraces.ts
|
|
1531
|
+
// src/core/providerDecisionTraces.ts
|
|
1524
1532
|
import { Elysia as Elysia3 } from "elysia";
|
|
1525
1533
|
|
|
1526
|
-
// src/resilienceRoutes.ts
|
|
1534
|
+
// src/core/resilienceRoutes.ts
|
|
1527
1535
|
import { Elysia as Elysia2 } from "elysia";
|
|
1528
1536
|
|
|
1529
|
-
// src/providerHealth.ts
|
|
1537
|
+
// src/core/providerHealth.ts
|
|
1530
1538
|
import { Elysia } from "elysia";
|
|
1531
1539
|
var getString = (value) => typeof value === "string" ? value : undefined;
|
|
1532
1540
|
var getNumber = (value) => typeof value === "number" && Number.isFinite(value) ? value : undefined;
|
|
@@ -1734,7 +1742,7 @@ var createVoiceProviderHealthRoutes = (options) => {
|
|
|
1734
1742
|
return routes;
|
|
1735
1743
|
};
|
|
1736
1744
|
|
|
1737
|
-
// src/resilienceRoutes.ts
|
|
1745
|
+
// src/core/resilienceRoutes.ts
|
|
1738
1746
|
var getString2 = (value) => typeof value === "string" ? value : undefined;
|
|
1739
1747
|
var getNumber2 = (value) => typeof value === "number" && Number.isFinite(value) ? value : undefined;
|
|
1740
1748
|
var getBoolean = (value) => value === true;
|
|
@@ -2217,7 +2225,7 @@ var createVoiceResilienceRoutes = (options) => {
|
|
|
2217
2225
|
return routes;
|
|
2218
2226
|
};
|
|
2219
2227
|
|
|
2220
|
-
// src/providerDecisionTraces.ts
|
|
2228
|
+
// src/core/providerDecisionTraces.ts
|
|
2221
2229
|
var getString3 = (value) => typeof value === "string" ? value : undefined;
|
|
2222
2230
|
var getNumber3 = (value) => typeof value === "number" && Number.isFinite(value) ? value : undefined;
|
|
2223
2231
|
var isDecisionTrace = (event) => Boolean(event && typeof event === "object" && "provider" in event && "reason" in event && "sessionId" in event && "status" in event && "surface" in event);
|
|
@@ -2530,7 +2538,7 @@ var createVoiceProviderDecisionTraceRoutes = (options) => {
|
|
|
2530
2538
|
return app;
|
|
2531
2539
|
};
|
|
2532
2540
|
|
|
2533
|
-
// src/trace.ts
|
|
2541
|
+
// src/core/trace.ts
|
|
2534
2542
|
var createVoiceTraceEventId = (event) => [
|
|
2535
2543
|
event.sessionId,
|
|
2536
2544
|
event.turnId ?? "session",
|
|
@@ -3341,7 +3349,7 @@ var buildVoiceTraceReplay = (events, options = {}) => ({
|
|
|
3341
3349
|
summary: summarizeVoiceTrace(options.redact ? redactVoiceTraceEvents(events, options.redact) : events)
|
|
3342
3350
|
});
|
|
3343
3351
|
|
|
3344
|
-
// src/proofTrends.ts
|
|
3352
|
+
// src/core/proofTrends.ts
|
|
3345
3353
|
var DEFAULT_VOICE_PROOF_TRENDS_MAX_AGE_MS = 24 * 60 * 60 * 1000;
|
|
3346
3354
|
var DEFAULT_VOICE_PROOF_TREND_PROFILE_DEFINITIONS = [
|
|
3347
3355
|
{
|
|
@@ -5581,11 +5589,7 @@ var evaluateVoiceProofTrendEvidence = (report, input = {}) => {
|
|
|
5581
5589
|
};
|
|
5582
5590
|
};
|
|
5583
5591
|
var assertVoiceProofTrendEvidence = (report, input = {}) => {
|
|
5584
|
-
|
|
5585
|
-
if (!assertion.ok) {
|
|
5586
|
-
throw new Error(`Voice proof trends assertion failed: ${assertion.issues.join(" ")}`);
|
|
5587
|
-
}
|
|
5588
|
-
return assertion;
|
|
5592
|
+
return assertVoiceEvidence("Voice proof trends assertion failed", evaluateVoiceProofTrendEvidence(report, input));
|
|
5589
5593
|
};
|
|
5590
5594
|
var DEFAULT_RECOMMENDATION_BUDGETS = {
|
|
5591
5595
|
maxLiveP95Ms: 800,
|
|
@@ -11924,7 +11928,7 @@ var createMicrophoneCapture = (options) => {
|
|
|
11924
11928
|
return { start, stop };
|
|
11925
11929
|
};
|
|
11926
11930
|
|
|
11927
|
-
// src/audioConditioning.ts
|
|
11931
|
+
// src/core/audioConditioning.ts
|
|
11928
11932
|
var DEFAULT_TARGET_LEVEL = 0.08;
|
|
11929
11933
|
var DEFAULT_MAX_GAIN = 3;
|
|
11930
11934
|
var DEFAULT_NOISE_GATE_THRESHOLD = 0.006;
|
|
@@ -11979,7 +11983,7 @@ var conditionAudioChunk = (audio, config) => {
|
|
|
11979
11983
|
return new Uint8Array(output.buffer);
|
|
11980
11984
|
};
|
|
11981
11985
|
|
|
11982
|
-
// src/turnProfiles.ts
|
|
11986
|
+
// src/core/turnProfiles.ts
|
|
11983
11987
|
var TURN_PROFILE_DEFAULTS = {
|
|
11984
11988
|
balanced: {
|
|
11985
11989
|
qualityProfile: "general",
|
|
@@ -12034,7 +12038,7 @@ var resolveTurnDetectionConfig = (config) => {
|
|
|
12034
12038
|
};
|
|
12035
12039
|
};
|
|
12036
12040
|
|
|
12037
|
-
// src/presets.ts
|
|
12041
|
+
// src/core/presets.ts
|
|
12038
12042
|
var PRESET_INPUTS = {
|
|
12039
12043
|
chat: {
|
|
12040
12044
|
audioConditioning: {
|
|
@@ -12472,7 +12476,7 @@ var useVoiceController = (path, options = {}) => {
|
|
|
12472
12476
|
// src/react/VoiceWidget.tsx
|
|
12473
12477
|
import { useMemo, useRef as useRef26 } from "react";
|
|
12474
12478
|
|
|
12475
|
-
// src/agentState.ts
|
|
12479
|
+
// src/core/agentState.ts
|
|
12476
12480
|
var deriveVoiceAgentUIState = (input) => {
|
|
12477
12481
|
if (!input.isConnected) {
|
|
12478
12482
|
return "idle";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceControllerOptions } from "../types";
|
|
1
|
+
import type { VoiceControllerOptions } from "../core/types";
|
|
2
2
|
export declare const useVoiceController: <TResult = unknown>(path: string, options?: VoiceControllerOptions) => {
|
|
3
3
|
bindHTMX: (options: import("..").VoiceHTMXBindingOptions) => () => void;
|
|
4
4
|
callControl: (message: Parameters<(message: Omit<import("..").VoiceClientCallControlMessage, "type">) => void>[0]) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceConnectionOptions } from "../types";
|
|
1
|
+
import type { VoiceConnectionOptions } from "../core/types";
|
|
2
2
|
export declare const useVoiceStream: <TResult = unknown>(path: string, options?: VoiceConnectionOptions) => {
|
|
3
3
|
callControl: (message: Parameters<(message: Omit<import("..").VoiceClientCallControlMessage, "type">) => void>[0]) => void;
|
|
4
4
|
close: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { VoiceConnectionOptions } from "../types";
|
|
1
|
+
import type { VoiceConnectionOptions } from "../core/types";
|
|
2
2
|
export declare const createVoiceStream: <TResult = unknown>(path: string, options?: VoiceConnectionOptions) => import("..").VoiceStream<TResult>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceControllerOptions } from "../types";
|
|
1
|
+
import type { VoiceControllerOptions } from "../core/types";
|
|
2
2
|
import { type VoiceWidgetLabels, type VoiceWidgetTheme, type VoiceWidgetViewModel } from "../client/voiceWidgetView";
|
|
3
3
|
export type CreateVoiceWidgetOptions = VoiceControllerOptions & {
|
|
4
4
|
labels?: VoiceWidgetLabels;
|
package/dist/svelte/index.js
CHANGED
|
@@ -1277,7 +1277,7 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
1277
1277
|
};
|
|
1278
1278
|
};
|
|
1279
1279
|
|
|
1280
|
-
// src/audioConditioning.ts
|
|
1280
|
+
// src/core/audioConditioning.ts
|
|
1281
1281
|
var DEFAULT_TARGET_LEVEL = 0.08;
|
|
1282
1282
|
var DEFAULT_MAX_GAIN = 3;
|
|
1283
1283
|
var DEFAULT_NOISE_GATE_THRESHOLD = 0.006;
|
|
@@ -1332,7 +1332,7 @@ var conditionAudioChunk = (audio, config) => {
|
|
|
1332
1332
|
return new Uint8Array(output.buffer);
|
|
1333
1333
|
};
|
|
1334
1334
|
|
|
1335
|
-
// src/turnProfiles.ts
|
|
1335
|
+
// src/core/turnProfiles.ts
|
|
1336
1336
|
var TURN_PROFILE_DEFAULTS = {
|
|
1337
1337
|
balanced: {
|
|
1338
1338
|
qualityProfile: "general",
|
|
@@ -1387,7 +1387,7 @@ var resolveTurnDetectionConfig = (config) => {
|
|
|
1387
1387
|
};
|
|
1388
1388
|
};
|
|
1389
1389
|
|
|
1390
|
-
// src/presets.ts
|
|
1390
|
+
// src/core/presets.ts
|
|
1391
1391
|
var PRESET_INPUTS = {
|
|
1392
1392
|
chat: {
|
|
1393
1393
|
audioConditioning: {
|
|
@@ -1782,7 +1782,7 @@ var createVoiceController = (path, options = {}) => {
|
|
|
1782
1782
|
};
|
|
1783
1783
|
};
|
|
1784
1784
|
|
|
1785
|
-
// src/agentState.ts
|
|
1785
|
+
// src/core/agentState.ts
|
|
1786
1786
|
var deriveVoiceAgentUIState = (input) => {
|
|
1787
1787
|
if (!input.isConnected) {
|
|
1788
1788
|
return "idle";
|
|
@@ -3071,10 +3071,18 @@ var createVoiceLiveOpsStore = (options = {}) => {
|
|
|
3071
3071
|
};
|
|
3072
3072
|
};
|
|
3073
3073
|
|
|
3074
|
-
// src/
|
|
3074
|
+
// src/internal/evidence.ts
|
|
3075
|
+
var assertVoiceEvidence = (failureMessage, assertion) => {
|
|
3076
|
+
if (!assertion.ok) {
|
|
3077
|
+
throw new Error(`${failureMessage}: ${assertion.issues.join(" ")}`);
|
|
3078
|
+
}
|
|
3079
|
+
return assertion;
|
|
3080
|
+
};
|
|
3081
|
+
|
|
3082
|
+
// src/core/liveOps.ts
|
|
3075
3083
|
import { Elysia } from "elysia";
|
|
3076
3084
|
|
|
3077
|
-
// src/audit.ts
|
|
3085
|
+
// src/core/audit.ts
|
|
3078
3086
|
var includes = (filter, value) => {
|
|
3079
3087
|
if (!filter) {
|
|
3080
3088
|
return true;
|
|
@@ -3275,7 +3283,7 @@ var createVoiceAuditLogger = (store) => ({
|
|
|
3275
3283
|
toolCall: (input) => recordVoiceToolAuditEvent({ ...input, store })
|
|
3276
3284
|
});
|
|
3277
3285
|
|
|
3278
|
-
// src/trace.ts
|
|
3286
|
+
// src/core/trace.ts
|
|
3279
3287
|
var createVoiceTraceEventId = (event) => [
|
|
3280
3288
|
event.sessionId,
|
|
3281
3289
|
event.turnId ?? "session",
|
|
@@ -4086,7 +4094,7 @@ var buildVoiceTraceReplay = (events, options = {}) => ({
|
|
|
4086
4094
|
summary: summarizeVoiceTrace(options.redact ? redactVoiceTraceEvents(events, options.redact) : events)
|
|
4087
4095
|
});
|
|
4088
4096
|
|
|
4089
|
-
// src/liveOps.ts
|
|
4097
|
+
// src/core/liveOps.ts
|
|
4090
4098
|
var VOICE_LIVE_OPS_ACTIONS = [
|
|
4091
4099
|
"assign",
|
|
4092
4100
|
"create-task",
|
|
@@ -4187,11 +4195,7 @@ var evaluateVoiceLiveOpsEvidence = (input = {}) => {
|
|
|
4187
4195
|
};
|
|
4188
4196
|
};
|
|
4189
4197
|
var assertVoiceLiveOpsEvidence = (input = {}) => {
|
|
4190
|
-
|
|
4191
|
-
if (!assertion.ok) {
|
|
4192
|
-
throw new Error(`Voice live-ops evidence assertion failed: ${assertion.issues.join(" ")}`);
|
|
4193
|
-
}
|
|
4194
|
-
return assertion;
|
|
4198
|
+
return assertVoiceEvidence("Voice live-ops evidence assertion failed", evaluateVoiceLiveOpsEvidence(input));
|
|
4195
4199
|
};
|
|
4196
4200
|
var evaluateVoiceLiveOpsControlEvidence = (input = {}) => {
|
|
4197
4201
|
const issues = [];
|
|
@@ -4239,11 +4243,7 @@ var evaluateVoiceLiveOpsControlEvidence = (input = {}) => {
|
|
|
4239
4243
|
};
|
|
4240
4244
|
};
|
|
4241
4245
|
var assertVoiceLiveOpsControlEvidence = (input = {}) => {
|
|
4242
|
-
|
|
4243
|
-
if (!assertion.ok) {
|
|
4244
|
-
throw new Error(`Voice live-ops control evidence assertion failed: ${assertion.issues.join(" ")}`);
|
|
4245
|
-
}
|
|
4246
|
-
return assertion;
|
|
4246
|
+
return assertVoiceEvidence("Voice live-ops control evidence assertion failed", evaluateVoiceLiveOpsControlEvidence(input));
|
|
4247
4247
|
};
|
|
4248
4248
|
var createVoiceMemoryLiveOpsControlStore = () => {
|
|
4249
4249
|
const states = new Map;
|
|
@@ -2,9 +2,9 @@ import { Database } from "bun:sqlite";
|
|
|
2
2
|
import type { RedisClient } from "bun";
|
|
3
3
|
import { Elysia } from "elysia";
|
|
4
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 { VoicePostgresClient } from "../postgresStore";
|
|
5
|
+
import { type VoiceTelephonyOutcomePolicy, type VoiceTelephonyWebhookRoutesOptions, type VoiceTelephonyWebhookVerificationResult } from "../core/telephonyOutcome";
|
|
6
|
+
import type { VoiceServerMessage, VoiceSessionRecord } from "../core/types";
|
|
7
|
+
import type { VoicePostgresClient } from "../core/postgresStore";
|
|
8
8
|
import { type TwilioMediaStreamBridgeOptions } from "./twilio";
|
|
9
9
|
export type PlivoInboundMessage = {
|
|
10
10
|
event: "start";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type VoiceTelephonyWebhookIdempotencyStore, type VoiceTelephonyWebhookProvider, type VoiceTelephonyWebhookVerificationResult } from "../telephonyOutcome";
|
|
1
|
+
import { type VoiceTelephonyWebhookIdempotencyStore, type VoiceTelephonyWebhookProvider, type VoiceTelephonyWebhookVerificationResult } from "../core/telephonyOutcome";
|
|
2
2
|
import { Elysia } from "elysia";
|
|
3
|
-
import { type VoicePostgresClient } from "../postgresStore";
|
|
4
|
-
import { type VoiceRedisTelephonyWebhookIdempotencyClient } from "../queue";
|
|
3
|
+
import { type VoicePostgresClient } from "../core/postgresStore";
|
|
4
|
+
import { type VoiceRedisTelephonyWebhookIdempotencyClient } from "../core/queue";
|
|
5
5
|
import { type VoicePlivoWebhookNonceStore, type VoiceRedisPlivoWebhookNonceClient } from "./plivo";
|
|
6
6
|
import { type VoiceRedisTelnyxWebhookEventClient, type VoiceTelnyxWebhookEventStore } from "./telnyx";
|
|
7
7
|
export type VoiceTelephonyWebhookSecurityStorePreset = {
|
|
@@ -2,10 +2,10 @@ import { Database } from "bun:sqlite";
|
|
|
2
2
|
import type { RedisClient } from "bun";
|
|
3
3
|
import { Elysia } from "elysia";
|
|
4
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";
|
|
5
|
+
import { type VoiceTelephonyOutcomePolicy, type VoiceTelephonyWebhookRoutesOptions, type VoiceTelephonyWebhookVerificationResult } from "../core/telephonyOutcome";
|
|
6
|
+
import type { VoiceServerMessage, VoiceSessionRecord } from "../core/types";
|
|
7
7
|
import { type TwilioMediaStreamBridgeOptions } from "./twilio";
|
|
8
|
-
import type { VoicePostgresClient } from "../postgresStore";
|
|
8
|
+
import type { VoicePostgresClient } from "../core/postgresStore";
|
|
9
9
|
export type TelnyxMediaPayload = {
|
|
10
10
|
chunk?: string;
|
|
11
11
|
payload: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Elysia } from "elysia";
|
|
2
2
|
import type { VoiceTelephonySetupStatus, VoiceTelephonySmokeCheck, VoiceTelephonySmokeReport } from "./contract";
|
|
3
|
-
import { type VoiceTelephonyOutcomePolicy, type VoiceTelephonyWebhookRoutesOptions } from "../telephonyOutcome";
|
|
3
|
+
import { type VoiceTelephonyOutcomePolicy, type VoiceTelephonyWebhookRoutesOptions } from "../core/telephonyOutcome";
|
|
4
4
|
import { type VoiceCallReviewArtifact, type VoiceCallReviewConfig } from "../testing/review";
|
|
5
|
-
import type { AudioFormat, STTAdapter, VoiceLogger, VoicePluginConfig, VoiceSessionRecord, VoiceServerMessage } from "../types";
|
|
5
|
+
import type { AudioFormat, STTAdapter, VoiceLogger, VoicePluginConfig, VoiceSessionRecord, VoiceServerMessage } from "../core/types";
|
|
6
6
|
type TwilioMediaPayload = {
|
|
7
7
|
chunk?: string;
|
|
8
8
|
payload: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { STTAdapter, STTAdapterOpenOptions } from "../types";
|
|
1
|
+
import type { STTAdapter, STTAdapterOpenOptions } from "../core/types";
|
|
2
2
|
import { type VoiceSTTAdapterHarnessOptions, type VoiceSTTAdapterHarnessResult } from "./stt";
|
|
3
3
|
import type { VoiceTestFixture } from "./fixtures";
|
|
4
4
|
export type VoiceExpectedTermAccuracy = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceLexiconEntry, VoicePhraseHint, VoiceTurnCorrectionHandler } from "../types";
|
|
1
|
+
import type { VoiceLexiconEntry, VoicePhraseHint, VoiceTurnCorrectionHandler } from "../core/types";
|
|
2
2
|
import { type VoiceExpectedTermAccuracy, type VoiceSTTBenchmarkReport } from "./benchmark";
|
|
3
3
|
import type { VoiceSessionBenchmarkReport } from "./sessionBenchmark";
|
|
4
4
|
import type { VoiceTestFixture } from "./fixtures";
|
package/dist/testing/duplex.d.ts
CHANGED
package/dist/testing/index.js
CHANGED
|
@@ -83,7 +83,7 @@ var __decorateElement = (array, flags, name, decorators, target, extra) => {
|
|
|
83
83
|
};
|
|
84
84
|
var __require = import.meta.require;
|
|
85
85
|
|
|
86
|
-
// src/turnDetection.ts
|
|
86
|
+
// src/core/turnDetection.ts
|
|
87
87
|
var DEFAULT_SILENCE_MS = 700;
|
|
88
88
|
var DEFAULT_SPEECH_THRESHOLD = 0.015;
|
|
89
89
|
var toUint8Array = (audio) => {
|
|
@@ -802,7 +802,7 @@ var runSTTAdapterBenchmarkSeries = async ({
|
|
|
802
802
|
reports
|
|
803
803
|
});
|
|
804
804
|
};
|
|
805
|
-
// src/correction.ts
|
|
805
|
+
// src/core/correction.ts
|
|
806
806
|
var escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
807
807
|
var buildAliasMatcher = (alias) => new RegExp(`(?<![\\p{L}\\p{N}'])${escapeRegExp(alias)}(?![\\p{L}\\p{N}'])`, "giu");
|
|
808
808
|
var WORD_PATTERN = /[\p{L}\p{N}']+/gu;
|
|
@@ -2811,7 +2811,7 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
2811
2811
|
};
|
|
2812
2812
|
};
|
|
2813
2813
|
|
|
2814
|
-
// src/audioConditioning.ts
|
|
2814
|
+
// src/core/audioConditioning.ts
|
|
2815
2815
|
var DEFAULT_TARGET_LEVEL = 0.08;
|
|
2816
2816
|
var DEFAULT_MAX_GAIN = 3;
|
|
2817
2817
|
var DEFAULT_NOISE_GATE_THRESHOLD = 0.006;
|
|
@@ -2866,7 +2866,7 @@ var conditionAudioChunk = (audio, config) => {
|
|
|
2866
2866
|
return new Uint8Array(output.buffer);
|
|
2867
2867
|
};
|
|
2868
2868
|
|
|
2869
|
-
// src/turnProfiles.ts
|
|
2869
|
+
// src/core/turnProfiles.ts
|
|
2870
2870
|
var TURN_PROFILE_DEFAULTS = {
|
|
2871
2871
|
balanced: {
|
|
2872
2872
|
qualityProfile: "general",
|
|
@@ -2921,7 +2921,7 @@ var resolveTurnDetectionConfig = (config) => {
|
|
|
2921
2921
|
};
|
|
2922
2922
|
};
|
|
2923
2923
|
|
|
2924
|
-
// src/presets.ts
|
|
2924
|
+
// src/core/presets.ts
|
|
2925
2925
|
var PRESET_INPUTS = {
|
|
2926
2926
|
chat: {
|
|
2927
2927
|
audioConditioning: {
|
|
@@ -3926,7 +3926,7 @@ var createVoiceIOProviderFailureSimulator = (options) => {
|
|
|
3926
3926
|
run
|
|
3927
3927
|
};
|
|
3928
3928
|
};
|
|
3929
|
-
// src/modelAdapters.ts
|
|
3929
|
+
// src/core/modelAdapters.ts
|
|
3930
3930
|
var isVoiceProviderRoutingPolicyPreset = (value) => value === "balanced" || value === "cost-cap" || value === "cost-first" || value === "latency-first" || value === "quality-first";
|
|
3931
3931
|
var resolveVoiceProviderRoutingPolicyPreset = (preset, options = {}) => {
|
|
3932
3932
|
switch (preset) {
|
|
@@ -4882,7 +4882,7 @@ var createGeminiVoiceAssistantModel = (options) => {
|
|
|
4882
4882
|
};
|
|
4883
4883
|
};
|
|
4884
4884
|
|
|
4885
|
-
// src/store.ts
|
|
4885
|
+
// src/core/store.ts
|
|
4886
4886
|
var createId = () => crypto.randomUUID();
|
|
4887
4887
|
var createVoiceSessionRecord = (id, scenarioId) => ({
|
|
4888
4888
|
committedTurnIds: [],
|
|
@@ -5034,7 +5034,7 @@ var createVoiceProviderFailureSimulator = (options) => {
|
|
|
5034
5034
|
run
|
|
5035
5035
|
};
|
|
5036
5036
|
};
|
|
5037
|
-
// src/memoryStore.ts
|
|
5037
|
+
// src/core/memoryStore.ts
|
|
5038
5038
|
var createVoiceMemoryStore = () => {
|
|
5039
5039
|
const sessions = new Map;
|
|
5040
5040
|
const get = async (id) => sessions.get(id);
|
|
@@ -5056,10 +5056,10 @@ var createVoiceMemoryStore = () => {
|
|
|
5056
5056
|
return { get, getOrCreate, list, remove, set };
|
|
5057
5057
|
};
|
|
5058
5058
|
|
|
5059
|
-
// src/session.ts
|
|
5059
|
+
// src/core/session.ts
|
|
5060
5060
|
import { Buffer as Buffer2 } from "buffer";
|
|
5061
5061
|
|
|
5062
|
-
// src/handoff.ts
|
|
5062
|
+
// src/core/handoff.ts
|
|
5063
5063
|
var toHex = (bytes) => Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
5064
5064
|
var signHandoffBody = async (input) => {
|
|
5065
5065
|
const encoder = new TextEncoder;
|
|
@@ -5342,7 +5342,7 @@ var createVoiceTwilioRedirectHandoffAdapter = (options) => ({
|
|
|
5342
5342
|
kind: "twilio-redirect"
|
|
5343
5343
|
});
|
|
5344
5344
|
|
|
5345
|
-
// src/logger.ts
|
|
5345
|
+
// src/core/logger.ts
|
|
5346
5346
|
var noop2 = () => {};
|
|
5347
5347
|
var createNoopLogger = () => ({
|
|
5348
5348
|
debug: noop2,
|
|
@@ -5355,10 +5355,10 @@ var resolveLogger = (logger) => ({
|
|
|
5355
5355
|
...logger
|
|
5356
5356
|
});
|
|
5357
5357
|
|
|
5358
|
-
// src/types.ts
|
|
5358
|
+
// src/core/types.ts
|
|
5359
5359
|
var ttsAdapterSessionCanCancel = (session) => typeof session.cancel === "function";
|
|
5360
5360
|
|
|
5361
|
-
// src/recordingStore.ts
|
|
5361
|
+
// src/core/recordingStore.ts
|
|
5362
5362
|
var writeUint32LE = (view, offset, value) => {
|
|
5363
5363
|
view.setUint32(offset, value, true);
|
|
5364
5364
|
};
|
|
@@ -5459,7 +5459,7 @@ var createVoiceMemoryRecordingStore = () => {
|
|
|
5459
5459
|
};
|
|
5460
5460
|
};
|
|
5461
5461
|
|
|
5462
|
-
// src/assistantMode.ts
|
|
5462
|
+
// src/core/assistantMode.ts
|
|
5463
5463
|
var resolveVoiceAssistantMode = (options) => {
|
|
5464
5464
|
if (options.assistantMode) {
|
|
5465
5465
|
return options.assistantMode;
|
|
@@ -5481,7 +5481,7 @@ var describeVoiceAssistantMode = (options) => {
|
|
|
5481
5481
|
};
|
|
5482
5482
|
};
|
|
5483
5483
|
|
|
5484
|
-
// src/session.ts
|
|
5484
|
+
// src/core/session.ts
|
|
5485
5485
|
var DEFAULT_RECONNECT_TIMEOUT = 30000;
|
|
5486
5486
|
var DEFAULT_MAX_RECONNECT_ATTEMPTS2 = 10;
|
|
5487
5487
|
var DEFAULT_TRANSCRIPT_STABILITY_MS = 450;
|
|
@@ -8835,7 +8835,7 @@ var runVoiceSessionBenchmarkSeries = async (input) => {
|
|
|
8835
8835
|
reports
|
|
8836
8836
|
});
|
|
8837
8837
|
};
|
|
8838
|
-
// src/operationsRecord.ts
|
|
8838
|
+
// src/core/operationsRecord.ts
|
|
8839
8839
|
import { Elysia as Elysia4 } from "elysia";
|
|
8840
8840
|
import {
|
|
8841
8841
|
summarizeMediaProcessorGraphReport,
|
|
@@ -8843,7 +8843,7 @@ import {
|
|
|
8843
8843
|
summarizeMediaTransportReport
|
|
8844
8844
|
} from "@absolutejs/media";
|
|
8845
8845
|
|
|
8846
|
-
// src/audit.ts
|
|
8846
|
+
// src/core/audit.ts
|
|
8847
8847
|
var includes = (filter, value) => {
|
|
8848
8848
|
if (!filter) {
|
|
8849
8849
|
return true;
|
|
@@ -9044,7 +9044,7 @@ var createVoiceAuditLogger = (store) => ({
|
|
|
9044
9044
|
toolCall: (input) => recordVoiceToolAuditEvent({ ...input, store })
|
|
9045
9045
|
});
|
|
9046
9046
|
|
|
9047
|
-
// src/trace.ts
|
|
9047
|
+
// src/core/trace.ts
|
|
9048
9048
|
var createVoiceTraceEventId = (event) => [
|
|
9049
9049
|
event.sessionId,
|
|
9050
9050
|
event.turnId ?? "session",
|
|
@@ -9855,7 +9855,7 @@ var buildVoiceTraceReplay = (events, options = {}) => ({
|
|
|
9855
9855
|
summary: summarizeVoiceTrace(options.redact ? redactVoiceTraceEvents(events, options.redact) : events)
|
|
9856
9856
|
});
|
|
9857
9857
|
|
|
9858
|
-
// src/auditRoutes.ts
|
|
9858
|
+
// src/core/auditRoutes.ts
|
|
9859
9859
|
import { Elysia } from "elysia";
|
|
9860
9860
|
var getString = (value) => typeof value === "string" && value.trim() ? value.trim() : undefined;
|
|
9861
9861
|
var getNumber = (value) => {
|
|
@@ -10052,7 +10052,7 @@ var createVoiceAuditTrailRoutes = (options) => {
|
|
|
10052
10052
|
return routes;
|
|
10053
10053
|
};
|
|
10054
10054
|
|
|
10055
|
-
// src/auditExport.ts
|
|
10055
|
+
// src/core/auditExport.ts
|
|
10056
10056
|
var normalizeRedactionKey2 = (key) => key.trim().toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
10057
10057
|
var resolveReplacement2 = (input) => typeof input.options.replacement === "function" ? input.options.replacement({
|
|
10058
10058
|
key: input.key,
|
|
@@ -10183,7 +10183,7 @@ var buildVoiceAuditExport = (events, options = {}) => {
|
|
|
10183
10183
|
};
|
|
10184
10184
|
};
|
|
10185
10185
|
|
|
10186
|
-
// src/sessionReplay.ts
|
|
10186
|
+
// src/core/sessionReplay.ts
|
|
10187
10187
|
import { Elysia as Elysia2 } from "elysia";
|
|
10188
10188
|
var getString2 = (value) => typeof value === "string" ? value : undefined;
|
|
10189
10189
|
var increment2 = (record, key) => {
|
|
@@ -10463,7 +10463,7 @@ var createVoiceSessionReplayRoutes = (options) => {
|
|
|
10463
10463
|
return routes;
|
|
10464
10464
|
};
|
|
10465
10465
|
|
|
10466
|
-
// src/traceTimeline.ts
|
|
10466
|
+
// src/core/traceTimeline.ts
|
|
10467
10467
|
import { Elysia as Elysia3 } from "elysia";
|
|
10468
10468
|
var getString3 = (value) => typeof value === "string" && value.trim() ? value : undefined;
|
|
10469
10469
|
var getNumber2 = (value) => typeof value === "number" && Number.isFinite(value) ? value : undefined;
|
|
@@ -10741,7 +10741,7 @@ var createVoiceTraceTimelineRoutes = (options) => {
|
|
|
10741
10741
|
return routes;
|
|
10742
10742
|
};
|
|
10743
10743
|
|
|
10744
|
-
// src/operationsRecord.ts
|
|
10744
|
+
// src/core/operationsRecord.ts
|
|
10745
10745
|
var getString4 = (value) => typeof value === "string" ? value : undefined;
|
|
10746
10746
|
var getNumber3 = (value) => typeof value === "number" && Number.isFinite(value) ? value : undefined;
|
|
10747
10747
|
var getBoolean = (value) => typeof value === "boolean" ? value : undefined;
|
|
@@ -11593,7 +11593,15 @@ var createVoiceOperationsRecordRoutes = (options) => {
|
|
|
11593
11593
|
import { Buffer as Buffer3 } from "buffer";
|
|
11594
11594
|
import { Elysia as Elysia6 } from "elysia";
|
|
11595
11595
|
|
|
11596
|
-
// src/
|
|
11596
|
+
// src/internal/evidence.ts
|
|
11597
|
+
var assertVoiceEvidence = (failureMessage, assertion) => {
|
|
11598
|
+
if (!assertion.ok) {
|
|
11599
|
+
throw new Error(`${failureMessage}: ${assertion.issues.join(" ")}`);
|
|
11600
|
+
}
|
|
11601
|
+
return assertion;
|
|
11602
|
+
};
|
|
11603
|
+
|
|
11604
|
+
// src/core/telephonyOutcome.ts
|
|
11597
11605
|
import { Elysia as Elysia5 } from "elysia";
|
|
11598
11606
|
var DEFAULT_COMPLETED_STATUSES = [
|
|
11599
11607
|
"answered",
|
|
@@ -11758,11 +11766,7 @@ var evaluateVoiceTelephonyWebhookNormalizationEvidence = (input = {}) => {
|
|
|
11758
11766
|
};
|
|
11759
11767
|
};
|
|
11760
11768
|
var assertVoiceTelephonyWebhookNormalizationEvidence = (input = {}) => {
|
|
11761
|
-
|
|
11762
|
-
if (!assertion.ok) {
|
|
11763
|
-
throw new Error(`Voice telephony webhook normalization evidence assertion failed: ${assertion.issues.join(" ")}`);
|
|
11764
|
-
}
|
|
11765
|
-
return assertion;
|
|
11769
|
+
return assertVoiceEvidence("Voice telephony webhook normalization evidence assertion failed", evaluateVoiceTelephonyWebhookNormalizationEvidence(input));
|
|
11766
11770
|
};
|
|
11767
11771
|
var normalizeToken = (value) => typeof value === "string" ? value.trim().toLowerCase().replace(/\s+/g, "-").replace(/_+/g, "-") : undefined;
|
|
11768
11772
|
var firstString2 = (source, keys) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceIOProviderRouterEvent } from "../providerAdapters";
|
|
1
|
+
import type { VoiceIOProviderRouterEvent } from "../core/providerAdapters";
|
|
2
2
|
export type VoiceIOProviderFailureSimulationMode = "failure" | "recovery";
|
|
3
3
|
export type VoiceIOProviderFailureSimulationKind = "stt" | "tts";
|
|
4
4
|
export type VoiceIOProviderFailureSimulationOperation = "open" | "send";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { VoiceAgentModelInput, VoiceAgentModelOutput } from "../agent";
|
|
2
|
-
import type { VoiceSessionRecord } from "../types";
|
|
3
|
-
import type { VoiceProviderRouterEvent, VoiceProviderRouterHealthOptions } from "../modelAdapters";
|
|
1
|
+
import type { VoiceAgentModelInput, VoiceAgentModelOutput } from "../core/agent";
|
|
2
|
+
import type { VoiceSessionRecord } from "../core/types";
|
|
3
|
+
import type { VoiceProviderRouterEvent, VoiceProviderRouterHealthOptions } from "../core/modelAdapters";
|
|
4
4
|
export type VoiceProviderFailureSimulationMode = "failure" | "recovery";
|
|
5
5
|
export type VoiceProviderFailureSimulationContext<TProvider extends string = string> = {
|
|
6
6
|
query: {
|
package/dist/testing/review.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceCallDisposition, VoiceServerMessage } from "../types";
|
|
1
|
+
import type { VoiceCallDisposition, VoiceServerMessage } from "../core/types";
|
|
2
2
|
type ReviewTimelineSource = "benchmark" | "stt" | "turn" | "twilio";
|
|
3
3
|
export type VoiceCallReviewTimelineEvent = {
|
|
4
4
|
atMs: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { STTAdapter, VoiceAudioConditioningConfig, VoicePhraseHint, VoiceSTTFallbackConfig, VoiceSTTLifecycle, VoiceTurnCorrectionHandler, VoiceTurnProfile, VoiceTranscriptQuality } from "../types";
|
|
1
|
+
import type { STTAdapter, VoiceAudioConditioningConfig, VoicePhraseHint, VoiceSTTFallbackConfig, VoiceSTTLifecycle, VoiceTurnCorrectionHandler, VoiceTurnProfile, VoiceTranscriptQuality } from "../core/types";
|
|
2
2
|
import { type VoiceTranscriptAccuracy } from "./accuracy";
|
|
3
3
|
import type { VoiceTestFixture } from "./fixtures";
|
|
4
4
|
export type VoiceSessionBenchmarkScenario = VoiceTestFixture & {
|
package/dist/testing/stt.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VoiceTranscriptAccuracy } from "./accuracy";
|
|
2
|
-
import type { STTAdapter, STTAdapterOpenOptions, VoiceCloseEvent, VoiceEndOfTurnEvent, VoiceErrorEvent, VoiceFinalEvent, VoicePartialEvent } from "../types";
|
|
2
|
+
import type { STTAdapter, STTAdapterOpenOptions, VoiceCloseEvent, VoiceEndOfTurnEvent, VoiceErrorEvent, VoiceFinalEvent, VoicePartialEvent } from "../core/types";
|
|
3
3
|
import type { VoiceTestFixture } from "./fixtures";
|
|
4
4
|
export type VoiceSTTAdapterHarnessOptions = {
|
|
5
5
|
chunkDurationMs?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceOperationsRecord } from "../operationsRecord";
|
|
2
|
-
import { type VoiceTraceEventStore } from "../trace";
|
|
1
|
+
import { type VoiceOperationsRecord } from "../core/operationsRecord";
|
|
2
|
+
import { type VoiceTraceEventStore } from "../core/trace";
|
|
3
3
|
export type VoiceTelephonyBenchmarkScenario = {
|
|
4
4
|
expectClear: boolean;
|
|
5
5
|
expectMark: boolean;
|
package/dist/testing/tts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AudioFormat, RealtimeAdapter, RealtimeAdapterOpenOptions, TTSAdapter, TTSAdapterOpenOptions } from "../types";
|
|
1
|
+
import type { AudioFormat, RealtimeAdapter, RealtimeAdapterOpenOptions, TTSAdapter, TTSAdapterOpenOptions } from "../core/types";
|
|
2
2
|
export type VoiceTTSBenchmarkFixture = {
|
|
3
3
|
id: string;
|
|
4
4
|
tags?: string[];
|