@absolutejs/voice 0.0.22-beta.51 → 0.0.22-beta.511
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 +4556 -603
- package/dist/agent.d.ts +79 -5
- package/dist/agentSquadContract.d.ts +98 -0
- package/dist/agentState.d.ts +12 -0
- package/dist/agentTools.d.ts +133 -0
- package/dist/aiVoiceModel.d.ts +15 -0
- package/dist/amdDetector.d.ts +25 -0
- package/dist/angular/index.d.ts +36 -5
- package/dist/angular/index.js +4004 -338
- package/dist/angular/voice-agent-squad-status.service.d.ts +12 -0
- package/dist/angular/voice-call-debugger.service.d.ts +12 -0
- package/dist/angular/voice-call-player.service.d.ts +19 -0
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +14 -0
- package/dist/angular/voice-controller.service.d.ts +3 -1
- package/dist/angular/voice-cost-dashboard.service.d.ts +15 -0
- package/dist/angular/voice-delivery-runtime.component.d.ts +17 -0
- package/dist/angular/voice-delivery-runtime.service.d.ts +16 -0
- package/dist/angular/voice-live-agent-console.service.d.ts +16 -0
- package/dist/angular/voice-live-call-viewer.service.d.ts +16 -0
- package/dist/angular/voice-live-ops.service.d.ts +11 -0
- package/dist/angular/voice-ops-action-center.service.d.ts +13 -0
- package/dist/angular/voice-ops-status.component.d.ts +15 -0
- package/dist/angular/voice-ops-status.service.d.ts +12 -0
- package/dist/angular/voice-platform-coverage.service.d.ts +12 -0
- package/dist/angular/voice-profile-comparison.service.d.ts +12 -0
- package/dist/angular/voice-proof-trends.service.d.ts +12 -0
- package/dist/angular/voice-provider-capabilities.service.d.ts +12 -0
- package/dist/angular/voice-provider-contracts.service.d.ts +12 -0
- package/dist/angular/voice-provider-status.service.d.ts +2 -2
- package/dist/angular/voice-readiness-failures.service.d.ts +13 -0
- package/dist/angular/voice-reconnect-profile-evidence.service.d.ts +12 -0
- package/dist/angular/voice-replay-timeline.service.d.ts +13 -0
- package/dist/angular/voice-routing-status.service.d.ts +11 -0
- package/dist/angular/voice-session-observability.service.d.ts +12 -0
- package/dist/angular/voice-session-snapshot.service.d.ts +13 -0
- package/dist/angular/voice-stream.service.d.ts +4 -1
- package/dist/angular/voice-trace-timeline.service.d.ts +12 -0
- package/dist/angular/voice-turn-latency.service.d.ts +13 -0
- package/dist/angular/voice-turn-quality.service.d.ts +12 -0
- package/dist/angular/voice-widget.service.d.ts +18 -0
- package/dist/angular/voice-workflow-status.service.d.ts +2 -2
- package/dist/assistant.d.ts +12 -13
- package/dist/assistantExperiment.d.ts +41 -0
- package/dist/assistantHealth.d.ts +6 -6
- package/dist/assistantMemory.d.ts +3 -3
- package/dist/assistantMode.d.ts +22 -0
- package/dist/audioConditioning.d.ts +1 -1
- package/dist/audit.d.ts +131 -0
- package/dist/auditDeliveryRoutes.d.ts +85 -0
- package/dist/auditExport.d.ts +34 -0
- package/dist/auditRoutes.d.ts +66 -0
- package/dist/auditSinks.d.ts +151 -0
- package/dist/backchannel.d.ts +18 -0
- package/dist/bargeInRoutes.d.ts +56 -0
- package/dist/browserCallProfiles.d.ts +120 -0
- package/dist/browserMediaRoutes.d.ts +62 -0
- package/dist/callDebugger.d.ts +66 -0
- package/dist/callDisposition.d.ts +38 -0
- package/dist/callQuota.d.ts +54 -0
- package/dist/callerMemory.d.ts +37 -0
- package/dist/callingWindow.d.ts +26 -0
- package/dist/campaign.d.ts +794 -0
- package/dist/campaignControls.d.ts +37 -0
- package/dist/campaignDialers.d.ts +111 -0
- package/dist/campaignTemplate.d.ts +16 -0
- package/dist/client/actions.d.ts +95 -1
- package/dist/client/agentSquadStatus.d.ts +37 -0
- package/dist/client/agentSquadStatusWidget.d.ts +24 -0
- package/dist/client/audioPlayer.d.ts +2 -2
- package/dist/client/bargeInMonitor.d.ts +7 -0
- package/dist/client/browserMedia.d.ts +8 -0
- package/dist/client/browserNoiseSuppression.d.ts +42 -0
- package/dist/client/browserVoiceSupport.d.ts +22 -0
- package/dist/client/callDebugger.d.ts +19 -0
- package/dist/client/callDebuggerWidget.d.ts +30 -0
- package/dist/client/callPlayer.d.ts +41 -0
- package/dist/client/campaignDialerProof.d.ts +23 -0
- package/dist/client/connection.d.ts +4 -3
- package/dist/client/controller.d.ts +1 -1
- package/dist/client/conversationAnalytics.d.ts +29 -0
- package/dist/client/costDashboard.d.ts +27 -0
- package/dist/client/createVoiceStream.d.ts +1 -1
- package/dist/client/deliveryRuntime.d.ts +34 -0
- package/dist/client/deliveryRuntimeWidget.d.ts +37 -0
- package/dist/client/duplex.d.ts +2 -2
- package/dist/client/htmx.d.ts +1 -1
- package/dist/client/htmxAttributes.d.ts +28 -0
- package/dist/client/htmxBootstrap.js +967 -14
- package/dist/client/htmxDashboardRenderers.d.ts +72 -0
- package/dist/client/index.d.ts +104 -13
- package/dist/client/index.js +10142 -26
- package/dist/client/liveAgentConsole.d.ts +28 -0
- package/dist/client/liveCallViewer.d.ts +42 -0
- package/dist/client/liveOps.d.ts +22 -0
- package/dist/client/liveOpsWidget.d.ts +23 -0
- package/dist/client/liveTurnLatency.d.ts +41 -0
- package/dist/client/microphone.d.ts +4 -4
- package/dist/client/opsActionCenter.d.ts +54 -0
- package/dist/client/opsActionCenterWidget.d.ts +29 -0
- package/dist/client/opsActionHistory.d.ts +19 -0
- package/dist/client/opsActionHistoryWidget.d.ts +11 -0
- package/dist/client/opsStatus.d.ts +19 -0
- package/dist/client/opsStatusWidget.d.ts +40 -0
- package/dist/client/platformCoverage.d.ts +19 -0
- package/dist/client/platformCoverageWidget.d.ts +37 -0
- package/dist/client/profileComparison.d.ts +19 -0
- package/dist/client/profileComparisonWidget.d.ts +41 -0
- package/dist/client/profileSwitchRecommendation.d.ts +19 -0
- package/dist/client/profileSwitchRecommendationWidget.d.ts +12 -0
- package/dist/client/proofTrends.d.ts +19 -0
- package/dist/client/proofTrendsWidget.d.ts +37 -0
- package/dist/client/providerCapabilities.d.ts +19 -0
- package/dist/client/providerCapabilitiesWidget.d.ts +32 -0
- package/dist/client/providerContracts.d.ts +19 -0
- package/dist/client/providerContractsWidget.d.ts +37 -0
- package/dist/client/providerSimulationControls.d.ts +33 -0
- package/dist/client/providerSimulationControlsWidget.d.ts +20 -0
- package/dist/client/providerStatus.d.ts +1 -1
- package/dist/client/providerStatusWidget.d.ts +32 -0
- package/dist/client/readinessFailures.d.ts +19 -0
- package/dist/client/readinessFailuresWidget.d.ts +42 -0
- package/dist/client/reconnectProfileEvidence.d.ts +19 -0
- package/dist/client/reconnectProfileEvidenceWidget.d.ts +39 -0
- package/dist/client/replayTimeline.d.ts +26 -0
- package/dist/client/routingStatus.d.ts +19 -0
- package/dist/client/routingStatusWidget.d.ts +32 -0
- package/dist/client/sessionObservability.d.ts +19 -0
- package/dist/client/sessionObservabilityWidget.d.ts +31 -0
- package/dist/client/sessionSnapshot.d.ts +21 -0
- package/dist/client/sessionSnapshotWidget.d.ts +33 -0
- package/dist/client/store.d.ts +1 -1
- package/dist/client/traceTimeline.d.ts +19 -0
- package/dist/client/traceTimelineWidget.d.ts +36 -0
- package/dist/client/turnLatency.d.ts +22 -0
- package/dist/client/turnLatencyWidget.d.ts +33 -0
- package/dist/client/turnQuality.d.ts +19 -0
- package/dist/client/turnQualityWidget.d.ts +32 -0
- package/dist/client/voiceWidgetView.d.ts +50 -0
- package/dist/client/workflowStatus.d.ts +1 -1
- package/dist/competitiveCoverage.d.ts +141 -0
- package/dist/correction.d.ts +2 -2
- package/dist/costAccounting.d.ts +76 -0
- package/dist/costPredictor.d.ts +74 -0
- package/dist/dataControl.d.ts +180 -0
- package/dist/defineVoiceAssistant.d.ts +68 -0
- package/dist/deliveryRuntime.d.ts +158 -0
- package/dist/deliverySinkRoutes.d.ts +117 -0
- package/dist/demoReadyRoutes.d.ts +98 -0
- package/dist/diagnosticsRoutes.d.ts +2 -2
- package/dist/dncRegistry.d.ts +38 -0
- package/dist/dtmfCollector.d.ts +37 -0
- package/dist/evalRoutes.d.ts +10 -4
- package/dist/fileStore.d.ts +21 -7
- package/dist/generated/htmxBootstrapBundle.d.ts +1 -0
- package/dist/guardrails.d.ts +128 -0
- package/dist/handoff.d.ts +6 -6
- package/dist/handoffHealth.d.ts +5 -5
- package/dist/holdAudio.d.ts +23 -0
- package/dist/htmx.d.ts +1 -1
- package/dist/htmxDashboardRoutes.d.ts +249 -0
- package/dist/iceServers.d.ts +34 -0
- package/dist/incidentBundle.d.ts +119 -0
- package/dist/incidentTimeline.d.ts +260 -0
- package/dist/index.d.ts +324 -74
- package/dist/index.js +42843 -6521
- package/dist/ivrPlan.d.ts +40 -0
- package/dist/latencySlo.d.ts +56 -0
- package/dist/liveCoach.d.ts +43 -0
- package/dist/liveLatency.d.ts +78 -0
- package/dist/liveOps.d.ts +190 -0
- package/dist/llmJudge.d.ts +45 -0
- package/dist/logger.d.ts +1 -1
- package/dist/mediaPipelineRoutes.d.ts +171 -0
- package/dist/mediaPipelineSurfaces.d.ts +48 -0
- package/dist/memoryStore.d.ts +1 -1
- package/dist/midCallSummary.d.ts +27 -0
- package/dist/modelAdapters.d.ts +59 -7
- package/dist/monitor.d.ts +148 -0
- package/dist/multilingualProof.d.ts +77 -0
- package/dist/oauth2TokenSource.d.ts +21 -0
- package/dist/observabilityExport.d.ts +501 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/operationalStatus.d.ts +87 -0
- package/dist/operationsRecord.d.ts +370 -0
- package/dist/ops.d.ts +12 -12
- package/dist/opsActionAuditRoutes.d.ts +99 -0
- package/dist/opsConsoleRoutes.d.ts +8 -5
- package/dist/opsPresets.d.ts +2 -2
- package/dist/opsRecovery.d.ts +137 -0
- package/dist/opsRuntime.d.ts +6 -6
- package/dist/opsSinks.d.ts +13 -13
- package/dist/opsStatus.d.ts +76 -0
- package/dist/opsStatusRoutes.d.ts +33 -0
- package/dist/opsWebhook.d.ts +6 -6
- package/dist/otelExporter.d.ts +83 -0
- package/dist/outcomeContract.d.ts +146 -0
- package/dist/outcomeRecipes.d.ts +4 -4
- package/dist/phoneAgent.d.ts +139 -0
- package/dist/phoneAgentProductionSmoke.d.ts +115 -0
- package/dist/phoneProvisioning.d.ts +29 -0
- package/dist/platformCoverage.d.ts +91 -0
- package/dist/plugin.d.ts +2 -2
- package/dist/postCallAnalysis.d.ts +98 -0
- package/dist/postCallSurvey.d.ts +41 -0
- package/dist/postgresStore.d.ts +17 -6
- package/dist/presets.d.ts +3 -3
- package/dist/productionReadiness.d.ts +756 -0
- package/dist/profileSwitchRecommendation.d.ts +350 -0
- package/dist/promptInjectionGuard.d.ts +30 -0
- package/dist/proofAssertions.d.ts +32 -0
- package/dist/proofPack.d.ts +211 -0
- package/dist/proofRunner.d.ts +79 -0
- package/dist/proofTrends.d.ts +966 -0
- package/dist/providerAdapters.d.ts +16 -5
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerDecisionTraces.d.ts +130 -0
- package/dist/providerHealth.d.ts +3 -3
- package/dist/providerOrchestration.d.ts +109 -0
- package/dist/providerRouterTraces.d.ts +35 -0
- package/dist/providerRoutingContract.d.ts +71 -0
- package/dist/providerSlo.d.ts +142 -0
- package/dist/providerStackRecommendations.d.ts +187 -0
- package/dist/qualityRoutes.d.ts +4 -4
- package/dist/queue.d.ts +23 -14
- package/dist/ragTool.d.ts +57 -0
- package/dist/react/VoiceAgentSquadStatus.d.ts +5 -0
- package/dist/react/VoiceCallDebuggerLaunch.d.ts +6 -0
- package/dist/react/VoiceCallPlayer.d.ts +11 -0
- package/dist/react/VoiceCostDashboard.d.ts +10 -0
- package/dist/react/VoiceDeliveryRuntime.d.ts +7 -0
- package/dist/react/VoiceLiveAgentConsole.d.ts +11 -0
- package/dist/react/VoiceLiveCallViewer.d.ts +9 -0
- package/dist/react/VoiceOpsActionCenter.d.ts +5 -0
- package/dist/react/VoiceOpsStatus.d.ts +6 -0
- package/dist/react/VoicePlatformCoverage.d.ts +6 -0
- package/dist/react/VoiceProfileComparison.d.ts +6 -0
- package/dist/react/VoiceProfileSwitchRecommendation.d.ts +6 -0
- package/dist/react/VoiceProofTrends.d.ts +6 -0
- package/dist/react/VoiceProviderCapabilities.d.ts +6 -0
- package/dist/react/VoiceProviderContracts.d.ts +6 -0
- package/dist/react/VoiceProviderSimulationControls.d.ts +5 -0
- package/dist/react/VoiceProviderStatus.d.ts +6 -0
- package/dist/react/VoiceReadinessFailures.d.ts +6 -0
- package/dist/react/VoiceReconnectProfileEvidence.d.ts +6 -0
- package/dist/react/VoiceReplayTimeline.d.ts +6 -0
- package/dist/react/VoiceRoutingStatus.d.ts +6 -0
- package/dist/react/VoiceSessionObservability.d.ts +6 -0
- package/dist/react/VoiceSessionSnapshot.d.ts +6 -0
- package/dist/react/VoiceTraceTimeline.d.ts +6 -0
- package/dist/react/VoiceTurnLatency.d.ts +6 -0
- package/dist/react/VoiceTurnQuality.d.ts +6 -0
- package/dist/react/VoiceWidget.d.ts +13 -0
- package/dist/react/index.d.ts +59 -5
- package/dist/react/index.js +12733 -168
- package/dist/react/useVoiceAgentSquadStatus.d.ts +8 -0
- package/dist/react/useVoiceCallDebugger.d.ts +8 -0
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +4 -1
- package/dist/react/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/react/useVoiceLiveOps.d.ts +9 -0
- package/dist/react/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/react/useVoiceOpsStatus.d.ts +8 -0
- package/dist/react/useVoicePlatformCoverage.d.ts +8 -0
- package/dist/react/useVoiceProfileComparison.d.ts +8 -0
- package/dist/react/useVoiceProfileSwitchRecommendation.d.ts +8 -0
- package/dist/react/useVoiceProofTrends.d.ts +8 -0
- package/dist/react/useVoiceProviderCapabilities.d.ts +8 -0
- package/dist/react/useVoiceProviderContracts.d.ts +8 -0
- package/dist/react/useVoiceProviderSimulationControls.d.ts +10 -0
- package/dist/react/useVoiceProviderStatus.d.ts +1 -1
- package/dist/react/useVoiceReadinessFailures.d.ts +8 -0
- package/dist/react/useVoiceReconnectProfileEvidence.d.ts +8 -0
- package/dist/react/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/react/useVoiceSessionObservability.d.ts +8 -0
- package/dist/react/useVoiceSessionSnapshot.d.ts +9 -0
- package/dist/react/useVoiceStream.d.ts +4 -1
- package/dist/react/useVoiceTraceTimeline.d.ts +8 -0
- package/dist/react/useVoiceTurnLatency.d.ts +9 -0
- package/dist/react/useVoiceTurnQuality.d.ts +8 -0
- package/dist/react/useVoiceWorkflowStatus.d.ts +1 -1
- package/dist/readinessProfiles.d.ts +45 -0
- package/dist/realtimeChannel.d.ts +136 -0
- package/dist/realtimeProviderContracts.d.ts +133 -0
- package/dist/reconnectContract.d.ts +176 -0
- package/dist/recordingRedaction.d.ts +18 -0
- package/dist/recordingStore.d.ts +60 -0
- package/dist/redaction.d.ts +13 -0
- package/dist/resilienceRoutes.d.ts +45 -5
- package/dist/retention.d.ts +37 -0
- package/dist/retryPolicy.d.ts +38 -0
- package/dist/routeAuth.d.ts +58 -0
- package/dist/routing.d.ts +1 -1
- package/dist/runtimeOps.d.ts +3 -3
- package/dist/s3Store.d.ts +18 -3
- package/dist/semanticTurn.d.ts +27 -0
- package/dist/session.d.ts +1 -1
- package/dist/sessionObservability.d.ts +145 -0
- package/dist/sessionReplay.d.ts +19 -7
- package/dist/sessionSnapshot.d.ts +109 -0
- package/dist/simulationSuite.d.ts +143 -0
- package/dist/sloCalibration.d.ts +185 -0
- package/dist/sqliteStore.d.ts +17 -6
- package/dist/store.d.ts +1 -1
- package/dist/supervisorPermissions.d.ts +33 -0
- package/dist/supervisorPresence.d.ts +49 -0
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/svelte/createVoiceCallDebugger.d.ts +12 -0
- package/dist/svelte/createVoiceCallPlayer.d.ts +33 -0
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +9 -0
- package/dist/svelte/createVoiceCostDashboard.d.ts +13 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +11 -0
- package/dist/svelte/createVoiceLiveAgentConsole.d.ts +23 -0
- package/dist/svelte/createVoiceLiveCallViewer.d.ts +26 -0
- package/dist/svelte/createVoiceLiveOps.d.ts +13 -0
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +10 -0
- package/dist/svelte/createVoiceOpsStatus.d.ts +9 -0
- package/dist/svelte/createVoicePlatformCoverage.d.ts +7 -0
- package/dist/svelte/createVoiceProfileComparison.d.ts +7 -0
- package/dist/svelte/createVoiceProofTrends.d.ts +7 -0
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +10 -0
- package/dist/svelte/createVoiceProviderContracts.d.ts +10 -0
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +11 -0
- package/dist/svelte/createVoiceProviderStatus.d.ts +4 -2
- package/dist/svelte/createVoiceReadinessFailures.d.ts +7 -0
- package/dist/svelte/createVoiceReconnectProfileEvidence.d.ts +7 -0
- package/dist/svelte/createVoiceReplayTimeline.d.ts +13 -0
- package/dist/svelte/createVoiceRoutingStatus.d.ts +10 -0
- package/dist/svelte/createVoiceSessionObservability.d.ts +10 -0
- package/dist/svelte/createVoiceSessionSnapshot.d.ts +13 -0
- package/dist/svelte/createVoiceStream.d.ts +1 -1
- package/dist/svelte/createVoiceTraceTimeline.d.ts +10 -0
- package/dist/svelte/createVoiceTurnLatency.d.ts +11 -0
- package/dist/svelte/createVoiceTurnQuality.d.ts +10 -0
- package/dist/svelte/createVoiceWidget.d.ts +19 -0
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +1 -1
- package/dist/svelte/index.d.ts +37 -5
- package/dist/svelte/index.js +6931 -684
- package/dist/telephony/contract.d.ts +61 -0
- package/dist/telephony/matrix.d.ts +97 -0
- package/dist/telephony/plivo.d.ts +303 -0
- package/dist/telephony/response.d.ts +1 -1
- package/dist/telephony/security.d.ts +182 -0
- package/dist/telephony/telnyx.d.ts +291 -0
- package/dist/telephony/twilio.d.ts +147 -13
- package/dist/telephonyMediaRoutes.d.ts +72 -0
- package/dist/telephonyOutcome.d.ts +273 -0
- package/dist/testing/accuracy.d.ts +1 -1
- package/dist/testing/benchmark.d.ts +9 -9
- package/dist/testing/corrected.d.ts +5 -5
- package/dist/testing/duplex.d.ts +3 -3
- package/dist/testing/fixtures.d.ts +3 -3
- package/dist/testing/index.d.ts +13 -13
- package/dist/testing/index.js +5223 -159
- package/dist/testing/ioProviderSimulator.d.ts +5 -5
- package/dist/testing/providerSimulator.d.ts +5 -5
- package/dist/testing/review.d.ts +4 -4
- package/dist/testing/sessionBenchmark.d.ts +3 -3
- package/dist/testing/stt.d.ts +3 -3
- package/dist/testing/telephony.d.ts +25 -0
- package/dist/testing/tts.d.ts +1 -1
- package/dist/toolContract.d.ts +161 -0
- package/dist/toolRuntime.d.ts +50 -0
- package/dist/trace.d.ts +46 -7
- package/dist/traceDeliveryRoutes.d.ts +86 -0
- package/dist/traceTimeline.d.ts +97 -0
- package/dist/transcriptAnnotator.d.ts +41 -0
- package/dist/turnDetection.d.ts +1 -1
- package/dist/turnLatency.d.ts +95 -0
- package/dist/turnProfiles.d.ts +2 -2
- package/dist/turnQuality.d.ts +94 -0
- package/dist/types.d.ts +293 -80
- package/dist/vapiAdapter.d.ts +160 -0
- package/dist/voiceMonitoring.d.ts +444 -0
- package/dist/vue/VoiceCallDebuggerLaunch.d.ts +68 -0
- package/dist/vue/VoiceCallPlayer.d.ts +40 -0
- package/dist/vue/VoiceCostDashboard.d.ts +57 -0
- package/dist/vue/VoiceDeliveryRuntime.d.ts +30 -0
- package/dist/vue/VoiceLiveAgentConsole.d.ts +50 -0
- package/dist/vue/VoiceLiveCallViewer.d.ts +35 -0
- package/dist/vue/VoiceOpsActionCenter.d.ts +13 -0
- package/dist/vue/VoiceOpsStatus.d.ts +30 -0
- package/dist/vue/VoicePlatformCoverage.d.ts +23 -0
- package/dist/vue/VoiceProofTrends.d.ts +21 -0
- package/dist/vue/VoiceProviderCapabilities.d.ts +51 -0
- package/dist/vue/VoiceProviderContracts.d.ts +21 -0
- package/dist/vue/VoiceProviderSimulationControls.d.ts +88 -0
- package/dist/vue/VoiceProviderStatus.d.ts +51 -0
- package/dist/vue/VoiceReadinessFailures.d.ts +21 -0
- package/dist/vue/VoiceReconnectProfileEvidence.d.ts +21 -0
- package/dist/vue/VoiceReplayTimeline.d.ts +17 -0
- package/dist/vue/VoiceRoutingStatus.d.ts +51 -0
- package/dist/vue/VoiceSessionObservability.d.ts +23 -0
- package/dist/vue/VoiceSessionSnapshot.d.ts +68 -0
- package/dist/vue/VoiceTurnLatency.d.ts +69 -0
- package/dist/vue/VoiceTurnQuality.d.ts +51 -0
- package/dist/vue/VoiceWidget.d.ts +77 -0
- package/dist/vue/index.d.ts +49 -5
- package/dist/vue/index.js +11954 -226
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/vue/useVoiceCallDebugger.d.ts +10 -0
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +11 -0
- package/dist/vue/useVoiceController.d.ts +4 -2
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/vue/useVoiceLiveOps.d.ts +9 -0
- package/dist/vue/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/vue/useVoiceOpsStatus.d.ts +9 -0
- package/dist/vue/useVoicePlatformCoverage.d.ts +9 -0
- package/dist/vue/useVoiceProfileComparison.d.ts +9 -0
- package/dist/vue/useVoiceProofTrends.d.ts +9 -0
- package/dist/vue/useVoiceProviderCapabilities.d.ts +9 -0
- package/dist/vue/useVoiceProviderContracts.d.ts +9 -0
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +24 -0
- package/dist/vue/useVoiceProviderStatus.d.ts +3 -3
- package/dist/vue/useVoiceReadinessFailures.d.ts +959 -0
- package/dist/vue/useVoiceReconnectProfileEvidence.d.ts +9 -0
- package/dist/vue/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceSessionObservability.d.ts +9 -0
- package/dist/vue/useVoiceSessionSnapshot.d.ts +10 -0
- package/dist/vue/useVoiceStream.d.ts +5 -2
- package/dist/vue/useVoiceTraceTimeline.d.ts +9 -0
- package/dist/vue/useVoiceTurnLatency.d.ts +10 -0
- package/dist/vue/useVoiceTurnQuality.d.ts +9 -0
- package/dist/vue/useVoiceWorkflowStatus.d.ts +3 -3
- package/dist/webhookFanout.d.ts +48 -0
- package/dist/webhookVerification.d.ts +27 -0
- package/dist/whisperChannel.d.ts +50 -0
- package/dist/workflowContract.d.ts +8 -8
- package/fixtures/manifest.json +356 -197
- package/package.json +265 -256
- package/dist/angular/voice-app-kit-status.service.d.ts +0 -12
- package/dist/appKit.d.ts +0 -92
- package/dist/client/appKitStatus.d.ts +0 -19
- package/dist/react/useVoiceAppKitStatus.d.ts +0 -8
- package/dist/svelte/createVoiceAppKitStatus.d.ts +0 -8
- package/dist/vue/useVoiceAppKitStatus.d.ts +0 -9
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { VoiceAgentUIState } from "../agentState";
|
|
2
|
+
import type { VoiceControllerState } from "../types";
|
|
3
|
+
export type VoiceWidgetTheme = {
|
|
4
|
+
accent?: string;
|
|
5
|
+
background?: string;
|
|
6
|
+
errorAccent?: string;
|
|
7
|
+
fontFamily?: string;
|
|
8
|
+
foreground?: string;
|
|
9
|
+
radius?: number | string;
|
|
10
|
+
};
|
|
11
|
+
export type VoiceWidgetLabels = {
|
|
12
|
+
callEnded?: string;
|
|
13
|
+
connecting?: string;
|
|
14
|
+
endCall?: string;
|
|
15
|
+
idle?: string;
|
|
16
|
+
listening?: string;
|
|
17
|
+
mute?: string;
|
|
18
|
+
speaking?: string;
|
|
19
|
+
startCall?: string;
|
|
20
|
+
thinking?: string;
|
|
21
|
+
unmute?: string;
|
|
22
|
+
};
|
|
23
|
+
export type VoiceWidgetViewModelInput = {
|
|
24
|
+
labels?: VoiceWidgetLabels;
|
|
25
|
+
state: Pick<VoiceControllerState, "assistantAudio" | "error" | "isConnected" | "isRecording" | "partial" | "status" | "turns">;
|
|
26
|
+
theme?: VoiceWidgetTheme;
|
|
27
|
+
title?: string;
|
|
28
|
+
};
|
|
29
|
+
export type VoiceWidgetViewModel = {
|
|
30
|
+
agentState: VoiceAgentUIState;
|
|
31
|
+
classes: {
|
|
32
|
+
container: string;
|
|
33
|
+
dot: string;
|
|
34
|
+
};
|
|
35
|
+
controls: {
|
|
36
|
+
canEnd: boolean;
|
|
37
|
+
canMute: boolean;
|
|
38
|
+
canStart: boolean;
|
|
39
|
+
};
|
|
40
|
+
errorMessage?: string;
|
|
41
|
+
labels: Required<VoiceWidgetLabels>;
|
|
42
|
+
partial?: string;
|
|
43
|
+
statusLabel: string;
|
|
44
|
+
theme: Required<VoiceWidgetTheme>;
|
|
45
|
+
title: string;
|
|
46
|
+
};
|
|
47
|
+
export declare const DEFAULT_VOICE_WIDGET_THEME: Required<VoiceWidgetTheme>;
|
|
48
|
+
export declare const DEFAULT_VOICE_WIDGET_LABELS: Required<VoiceWidgetLabels>;
|
|
49
|
+
export declare const createVoiceWidgetViewModel: (input: VoiceWidgetViewModelInput) => VoiceWidgetViewModel;
|
|
50
|
+
export declare const renderVoiceWidgetHTML: (model: VoiceWidgetViewModel) => string;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
export type VoiceCompetitiveCoverageStatus = "fail" | "pass" | "warn";
|
|
3
|
+
export type VoiceCompetitiveCoverageLevel = "covered" | "intentional-gap" | "missing" | "partial";
|
|
4
|
+
export type VoiceCompetitiveDepthLevel = "advantage" | "covered" | "intentional-gap" | "lag" | "parity";
|
|
5
|
+
export type VoiceCompetitiveEvidence = {
|
|
6
|
+
href?: string;
|
|
7
|
+
kind?: "docs" | "example" | "failure-replay" | "operations-record" | "proof" | "readiness" | "route" | "test";
|
|
8
|
+
name: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
status?: "fail" | "pass" | "warn";
|
|
11
|
+
};
|
|
12
|
+
export type VoiceCompetitiveSurface = {
|
|
13
|
+
buyerNeed?: string;
|
|
14
|
+
competitors?: string[];
|
|
15
|
+
coverage: VoiceCompetitiveCoverageLevel;
|
|
16
|
+
depth: VoiceCompetitiveDepthLevel;
|
|
17
|
+
evidence?: VoiceCompetitiveEvidence[];
|
|
18
|
+
frameworkPrimitives?: string[];
|
|
19
|
+
operationsRecord?: "linked" | "not-applicable" | "required" | "unknown";
|
|
20
|
+
readinessGate?: "not-applicable" | "present" | "recommended" | "required" | "unknown";
|
|
21
|
+
remainingGap?: string;
|
|
22
|
+
status?: VoiceCompetitiveCoverageStatus;
|
|
23
|
+
surface: string;
|
|
24
|
+
why: string;
|
|
25
|
+
nextMove?: string;
|
|
26
|
+
};
|
|
27
|
+
export type VoiceCompetitiveCoverageReportInput = {
|
|
28
|
+
generatedAt?: string;
|
|
29
|
+
marketCoverageEstimate?: string;
|
|
30
|
+
notes?: string[];
|
|
31
|
+
source?: string;
|
|
32
|
+
surfaces: VoiceCompetitiveSurface[];
|
|
33
|
+
vapiCoverageEstimate?: string;
|
|
34
|
+
};
|
|
35
|
+
export type VoiceCompetitiveCoverageSummary = {
|
|
36
|
+
advantage: number;
|
|
37
|
+
covered: number;
|
|
38
|
+
failed: number;
|
|
39
|
+
intentionalGaps: number;
|
|
40
|
+
missing: number;
|
|
41
|
+
parity: number;
|
|
42
|
+
passed: number;
|
|
43
|
+
surfaces: number;
|
|
44
|
+
warned: number;
|
|
45
|
+
};
|
|
46
|
+
export type VoiceCompetitiveCoverageIssue = {
|
|
47
|
+
code: string;
|
|
48
|
+
message: string;
|
|
49
|
+
severity: "error" | "warning";
|
|
50
|
+
surface?: string;
|
|
51
|
+
};
|
|
52
|
+
export type VoiceCompetitiveCoverageReport = {
|
|
53
|
+
generatedAt: string;
|
|
54
|
+
issues: VoiceCompetitiveCoverageIssue[];
|
|
55
|
+
marketCoverageEstimate: string;
|
|
56
|
+
notes: string[];
|
|
57
|
+
ok: boolean;
|
|
58
|
+
source?: string;
|
|
59
|
+
status: VoiceCompetitiveCoverageStatus;
|
|
60
|
+
summary: VoiceCompetitiveCoverageSummary;
|
|
61
|
+
surfaces: Array<VoiceCompetitiveSurface & {
|
|
62
|
+
status: VoiceCompetitiveCoverageStatus;
|
|
63
|
+
}>;
|
|
64
|
+
vapiCoverageEstimate: string;
|
|
65
|
+
};
|
|
66
|
+
export type VoiceCompetitiveCoverageAssertionInput = {
|
|
67
|
+
maxFailedSurfaces?: number;
|
|
68
|
+
maxMissingSurfaces?: number;
|
|
69
|
+
minAdvantageSurfaces?: number;
|
|
70
|
+
minSurfaces?: number;
|
|
71
|
+
requireOperationsRecordLinks?: boolean;
|
|
72
|
+
requirePass?: boolean;
|
|
73
|
+
requireReadinessGates?: boolean;
|
|
74
|
+
requiredEvidence?: string[];
|
|
75
|
+
requiredSurfaces?: string[];
|
|
76
|
+
};
|
|
77
|
+
export type VoiceCompetitiveCoverageAssertionReport = {
|
|
78
|
+
advantage: number;
|
|
79
|
+
failed: number;
|
|
80
|
+
issues: string[];
|
|
81
|
+
missing: number;
|
|
82
|
+
ok: boolean;
|
|
83
|
+
status: VoiceCompetitiveCoverageStatus;
|
|
84
|
+
surfaces: string[];
|
|
85
|
+
total: number;
|
|
86
|
+
};
|
|
87
|
+
export type VoiceCompetitiveCoverageRoutesOptions = {
|
|
88
|
+
headers?: HeadersInit;
|
|
89
|
+
htmlPath?: false | string;
|
|
90
|
+
markdownPath?: false | string;
|
|
91
|
+
name?: string;
|
|
92
|
+
path?: string;
|
|
93
|
+
render?: (report: VoiceCompetitiveCoverageReport) => Promise<string> | string;
|
|
94
|
+
source: (() => Promise<VoiceCompetitiveCoverageReport | VoiceCompetitiveCoverageReportInput> | VoiceCompetitiveCoverageReport | VoiceCompetitiveCoverageReportInput) | VoiceCompetitiveCoverageReport | VoiceCompetitiveCoverageReportInput;
|
|
95
|
+
title?: string;
|
|
96
|
+
};
|
|
97
|
+
export declare const buildVoiceCompetitiveCoverageReport: (input: VoiceCompetitiveCoverageReportInput) => VoiceCompetitiveCoverageReport;
|
|
98
|
+
export declare const evaluateVoiceCompetitiveCoverage: (report: VoiceCompetitiveCoverageReport, input?: VoiceCompetitiveCoverageAssertionInput) => VoiceCompetitiveCoverageAssertionReport;
|
|
99
|
+
export declare const assertVoiceCompetitiveCoverage: (report: VoiceCompetitiveCoverageReport, input?: VoiceCompetitiveCoverageAssertionInput) => VoiceCompetitiveCoverageAssertionReport;
|
|
100
|
+
export declare const renderVoiceCompetitiveCoverageMarkdown: (report: VoiceCompetitiveCoverageReport, title?: string) => string;
|
|
101
|
+
export declare const renderVoiceCompetitiveCoverageHTML: (report: VoiceCompetitiveCoverageReport, title?: string) => string;
|
|
102
|
+
export declare const createVoiceCompetitiveCoverageRoutes: (options: VoiceCompetitiveCoverageRoutesOptions) => Elysia<"", {
|
|
103
|
+
decorator: {};
|
|
104
|
+
store: {};
|
|
105
|
+
derive: {};
|
|
106
|
+
resolve: {};
|
|
107
|
+
}, {
|
|
108
|
+
typebox: {};
|
|
109
|
+
error: {};
|
|
110
|
+
}, {
|
|
111
|
+
schema: {};
|
|
112
|
+
standaloneSchema: {};
|
|
113
|
+
macro: {};
|
|
114
|
+
macroFn: {};
|
|
115
|
+
parser: {};
|
|
116
|
+
response: {};
|
|
117
|
+
}, {
|
|
118
|
+
[x: string]: {
|
|
119
|
+
get: {
|
|
120
|
+
body: unknown;
|
|
121
|
+
params: {};
|
|
122
|
+
query: unknown;
|
|
123
|
+
headers: unknown;
|
|
124
|
+
response: {
|
|
125
|
+
200: Response;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
derive: {};
|
|
131
|
+
resolve: {};
|
|
132
|
+
schema: {};
|
|
133
|
+
standaloneSchema: {};
|
|
134
|
+
response: {};
|
|
135
|
+
}, {
|
|
136
|
+
derive: {};
|
|
137
|
+
resolve: {};
|
|
138
|
+
schema: {};
|
|
139
|
+
standaloneSchema: {};
|
|
140
|
+
response: {};
|
|
141
|
+
}>;
|
package/dist/correction.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceCorrectionRiskTier, VoiceDomainTerm, VoiceLexiconEntry, VoicePhraseHint, VoiceTurnCorrectionHandler } from
|
|
1
|
+
import type { VoiceCorrectionRiskTier, VoiceDomainTerm, VoiceLexiconEntry, VoicePhraseHint, VoiceTurnCorrectionHandler } from "./types";
|
|
2
2
|
export type VoicePhraseHintCorrectionMatch = {
|
|
3
3
|
alias: string;
|
|
4
4
|
hint: VoicePhraseHint;
|
|
@@ -18,7 +18,7 @@ export type VoiceDomainHintGenerationOptions = {
|
|
|
18
18
|
};
|
|
19
19
|
export type VoiceRiskyTurnCorrectionHandlerOptions = VoicePhraseHintCorrectionOptions & {
|
|
20
20
|
maxAverageConfidence?: number;
|
|
21
|
-
riskTier?: Exclude<VoiceCorrectionRiskTier,
|
|
21
|
+
riskTier?: Exclude<VoiceCorrectionRiskTier, "safe">;
|
|
22
22
|
};
|
|
23
23
|
export type VoicePhraseHintCorrectionRunOptions = {
|
|
24
24
|
riskTier?: VoiceCorrectionRiskTier;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export type VoiceProviderRates = {
|
|
2
|
+
llm?: {
|
|
3
|
+
cachedInputPerMillionTokensUsd?: number;
|
|
4
|
+
inputPerMillionTokensUsd: number;
|
|
5
|
+
outputPerMillionTokensUsd: number;
|
|
6
|
+
};
|
|
7
|
+
stt?: {
|
|
8
|
+
perSecondUsd: number;
|
|
9
|
+
};
|
|
10
|
+
telephony?: {
|
|
11
|
+
perMinuteUsd: number;
|
|
12
|
+
};
|
|
13
|
+
tts?: {
|
|
14
|
+
perMillionCharactersUsd?: number;
|
|
15
|
+
perSecondUsd?: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type VoicePriceBook = Record<string, VoiceProviderRates>;
|
|
19
|
+
export declare const DEFAULT_VOICE_PRICE_BOOK: VoicePriceBook;
|
|
20
|
+
export type VoiceCostLLMRecord = {
|
|
21
|
+
cachedInputTokens?: number;
|
|
22
|
+
inputTokens?: number;
|
|
23
|
+
model?: string;
|
|
24
|
+
outputTokens?: number;
|
|
25
|
+
provider?: string;
|
|
26
|
+
};
|
|
27
|
+
export type VoiceCostTTSRecord = {
|
|
28
|
+
audioMs?: number;
|
|
29
|
+
characters?: number;
|
|
30
|
+
provider?: string;
|
|
31
|
+
voice?: string;
|
|
32
|
+
};
|
|
33
|
+
export type VoiceCostSTTRecord = {
|
|
34
|
+
audioMs: number;
|
|
35
|
+
model?: string;
|
|
36
|
+
provider?: string;
|
|
37
|
+
};
|
|
38
|
+
export type VoiceCostTelephonyRecord = {
|
|
39
|
+
minutes: number;
|
|
40
|
+
provider?: string;
|
|
41
|
+
};
|
|
42
|
+
export type VoiceCostBreakdown = {
|
|
43
|
+
llm: {
|
|
44
|
+
cachedInputTokens: number;
|
|
45
|
+
inputTokens: number;
|
|
46
|
+
outputTokens: number;
|
|
47
|
+
usd: number;
|
|
48
|
+
};
|
|
49
|
+
sessionId?: string;
|
|
50
|
+
stt: {
|
|
51
|
+
audioMs: number;
|
|
52
|
+
usd: number;
|
|
53
|
+
};
|
|
54
|
+
telephony: {
|
|
55
|
+
minutes: number;
|
|
56
|
+
usd: number;
|
|
57
|
+
};
|
|
58
|
+
totalUsd: number;
|
|
59
|
+
tts: {
|
|
60
|
+
audioMs: number;
|
|
61
|
+
characters: number;
|
|
62
|
+
usd: number;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export type VoiceCostAccountant = {
|
|
66
|
+
recordLLM: (usage: VoiceCostLLMRecord) => void;
|
|
67
|
+
recordSTT: (input: VoiceCostSTTRecord) => void;
|
|
68
|
+
recordTTS: (input: VoiceCostTTSRecord) => void;
|
|
69
|
+
recordTelephony: (input: VoiceCostTelephonyRecord) => void;
|
|
70
|
+
snapshot: () => VoiceCostBreakdown;
|
|
71
|
+
};
|
|
72
|
+
export type CreateVoiceCostAccountantOptions = {
|
|
73
|
+
priceBook?: VoicePriceBook;
|
|
74
|
+
sessionId?: string;
|
|
75
|
+
};
|
|
76
|
+
export declare const createVoiceCostAccountant: (options?: CreateVoiceCostAccountantOptions) => VoiceCostAccountant;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type VoicePriceBook } from "./costAccounting";
|
|
2
|
+
export type VoiceCostProfile = {
|
|
3
|
+
/** Stored callers? Set to true to include caller-memory storage costs (per snapshot, monthly). Default false (we don't model storage here). */
|
|
4
|
+
includeCallerMemory?: boolean;
|
|
5
|
+
/** Inbound calls per day. */
|
|
6
|
+
inboundPerDay?: number;
|
|
7
|
+
/** Average input tokens per agent turn. */
|
|
8
|
+
inputTokensPerTurn: number;
|
|
9
|
+
/** LLM model id used for provider:model price lookup. */
|
|
10
|
+
llmModel: string;
|
|
11
|
+
/** LLM provider — must match price book namespace. */
|
|
12
|
+
llmProvider: string;
|
|
13
|
+
/** Average minutes per call. */
|
|
14
|
+
minutesPerCall: number;
|
|
15
|
+
/** Outbound calls per day. */
|
|
16
|
+
outboundPerDay?: number;
|
|
17
|
+
/** Average output tokens per agent turn. */
|
|
18
|
+
outputTokensPerTurn: number;
|
|
19
|
+
/** STT model. */
|
|
20
|
+
sttModel?: string;
|
|
21
|
+
/** STT provider. */
|
|
22
|
+
sttProvider?: string;
|
|
23
|
+
/** Telephony provider key in the price book (e.g. 'twilio', 'telnyx'). */
|
|
24
|
+
telephonyProvider?: string;
|
|
25
|
+
/** Total turns per call. */
|
|
26
|
+
turnsPerCall: number;
|
|
27
|
+
/** Average TTS characters spoken per agent turn. */
|
|
28
|
+
ttsCharsPerTurn: number;
|
|
29
|
+
/** TTS model / voice id. */
|
|
30
|
+
ttsModel?: string;
|
|
31
|
+
/** TTS provider. */
|
|
32
|
+
ttsProvider?: string;
|
|
33
|
+
};
|
|
34
|
+
export type VoiceCostPrediction = {
|
|
35
|
+
callsPerDay: number;
|
|
36
|
+
monthly: {
|
|
37
|
+
llmUsd: number;
|
|
38
|
+
sttUsd: number;
|
|
39
|
+
telephonyUsd: number;
|
|
40
|
+
totalUsd: number;
|
|
41
|
+
ttsUsd: number;
|
|
42
|
+
};
|
|
43
|
+
perCall: {
|
|
44
|
+
llmUsd: number;
|
|
45
|
+
sttUsd: number;
|
|
46
|
+
telephonyUsd: number;
|
|
47
|
+
totalUsd: number;
|
|
48
|
+
ttsUsd: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export type PredictVoiceCallCostInput = {
|
|
52
|
+
priceBook?: VoicePriceBook;
|
|
53
|
+
profile: VoiceCostProfile;
|
|
54
|
+
};
|
|
55
|
+
export declare const predictVoiceCallCost: (input: PredictVoiceCallCostInput) => VoiceCostPrediction;
|
|
56
|
+
export type VoiceCostScenarioComparison = {
|
|
57
|
+
delta: {
|
|
58
|
+
monthlyUsd: number;
|
|
59
|
+
perCallUsd: number;
|
|
60
|
+
};
|
|
61
|
+
prediction: VoiceCostPrediction;
|
|
62
|
+
scenarioId: string;
|
|
63
|
+
};
|
|
64
|
+
export declare const compareVoiceCostScenarios: (input: {
|
|
65
|
+
baselineId: string;
|
|
66
|
+
priceBook?: VoicePriceBook;
|
|
67
|
+
scenarios: ReadonlyArray<{
|
|
68
|
+
id: string;
|
|
69
|
+
profile: VoiceCostProfile;
|
|
70
|
+
}>;
|
|
71
|
+
}) => {
|
|
72
|
+
baseline: VoiceCostPrediction;
|
|
73
|
+
scenarios: VoiceCostScenarioComparison[];
|
|
74
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import type { VoiceCampaignStore } from "./campaign";
|
|
2
|
+
import { Elysia } from "elysia";
|
|
3
|
+
import { type VoiceAuditActor, type VoiceAuditEventFilter, type VoiceAuditEventStore } from "./audit";
|
|
4
|
+
import { exportVoiceAuditTrail } from "./auditExport";
|
|
5
|
+
import type { VoiceAuditSinkDeliveryStore } from "./auditSinks";
|
|
6
|
+
import type { VoiceIntegrationEventStore, VoiceOpsTaskStore } from "./ops";
|
|
7
|
+
import type { VoiceIncidentBundleStore } from "./incidentBundle";
|
|
8
|
+
import type { VoiceCallReviewStore } from "./testing/review";
|
|
9
|
+
import type { VoiceTraceEventStore, VoiceTracePruneFilter, VoiceTraceSinkDeliveryStore } from "./trace";
|
|
10
|
+
import type { VoiceSessionStore } from "./types";
|
|
11
|
+
export declare const voiceComplianceRedactionDefaults: {
|
|
12
|
+
keys: string[];
|
|
13
|
+
redactEmails: true;
|
|
14
|
+
redactPhoneNumbers: true;
|
|
15
|
+
};
|
|
16
|
+
export type VoiceDataRetentionScope = "auditDeliveries" | "campaigns" | "events" | "incidentBundles" | "reviews" | "sessions" | "tasks" | "traceDeliveries" | "traces";
|
|
17
|
+
export type VoiceDataRetentionStores = {
|
|
18
|
+
campaigns?: VoiceCampaignStore;
|
|
19
|
+
events?: VoiceIntegrationEventStore;
|
|
20
|
+
incidentBundles?: VoiceIncidentBundleStore;
|
|
21
|
+
reviews?: VoiceCallReviewStore;
|
|
22
|
+
session?: VoiceSessionStore;
|
|
23
|
+
sessions?: VoiceSessionStore;
|
|
24
|
+
tasks?: VoiceOpsTaskStore;
|
|
25
|
+
traceDeliveries?: VoiceTraceSinkDeliveryStore;
|
|
26
|
+
traces?: VoiceTraceEventStore;
|
|
27
|
+
};
|
|
28
|
+
export type VoiceDataRetentionPolicy = VoiceDataRetentionStores & {
|
|
29
|
+
audit?: VoiceAuditEventStore;
|
|
30
|
+
auditDeliveries?: VoiceAuditSinkDeliveryStore;
|
|
31
|
+
auditActor?: VoiceAuditActor;
|
|
32
|
+
before?: number;
|
|
33
|
+
beforeOrAt?: number;
|
|
34
|
+
dryRun?: boolean;
|
|
35
|
+
keepNewest?: Partial<Record<VoiceDataRetentionScope, number>>;
|
|
36
|
+
limit?: number;
|
|
37
|
+
scopes?: VoiceDataRetentionScope[];
|
|
38
|
+
traceFilter?: VoiceTracePruneFilter;
|
|
39
|
+
};
|
|
40
|
+
export type VoiceDataRetentionScopeReport = {
|
|
41
|
+
deletedIds: string[];
|
|
42
|
+
deletedCount: number;
|
|
43
|
+
dryRun: boolean;
|
|
44
|
+
keepNewest?: number;
|
|
45
|
+
scannedCount: number;
|
|
46
|
+
scope: VoiceDataRetentionScope;
|
|
47
|
+
skippedReason?: "missing-store" | "missing-selector";
|
|
48
|
+
};
|
|
49
|
+
export type VoiceDataRetentionReport = {
|
|
50
|
+
checkedAt: number;
|
|
51
|
+
deletedCount: number;
|
|
52
|
+
dryRun: boolean;
|
|
53
|
+
scopes: VoiceDataRetentionScopeReport[];
|
|
54
|
+
};
|
|
55
|
+
export type VoiceDataControlStorageSurface = {
|
|
56
|
+
configured: boolean;
|
|
57
|
+
control: "audit" | "artifact" | "queue" | "session" | "workflow";
|
|
58
|
+
name: string;
|
|
59
|
+
selfHosted: boolean;
|
|
60
|
+
};
|
|
61
|
+
export type VoiceDataControlProviderKeySurface = {
|
|
62
|
+
env?: string;
|
|
63
|
+
name: string;
|
|
64
|
+
recommendation: string;
|
|
65
|
+
required: boolean;
|
|
66
|
+
};
|
|
67
|
+
export type VoiceDataControlReport = {
|
|
68
|
+
auditExport?: Awaited<ReturnType<typeof exportVoiceAuditTrail>>;
|
|
69
|
+
checkedAt: number;
|
|
70
|
+
deletionProof?: VoiceDataRetentionReport;
|
|
71
|
+
redaction: {
|
|
72
|
+
defaults: typeof voiceComplianceRedactionDefaults;
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
};
|
|
75
|
+
retentionPlan: VoiceDataRetentionReport;
|
|
76
|
+
storage: VoiceDataControlStorageSurface[];
|
|
77
|
+
providerKeys: VoiceDataControlProviderKeySurface[];
|
|
78
|
+
zeroRetentionAvailable: boolean;
|
|
79
|
+
};
|
|
80
|
+
export type VoiceDataControlAssertionInput = {
|
|
81
|
+
maxDeletionDeleted?: number;
|
|
82
|
+
maxMissingConfiguredStorage?: number;
|
|
83
|
+
maxMissingSelfHostedStorage?: number;
|
|
84
|
+
maxRetentionDeleted?: number;
|
|
85
|
+
minAuditExportEvents?: number;
|
|
86
|
+
minConfiguredStorage?: number;
|
|
87
|
+
minProviderKeys?: number;
|
|
88
|
+
requiredControls?: VoiceDataControlStorageSurface["control"][];
|
|
89
|
+
requiredDeletionScopes?: VoiceDataRetentionScope[];
|
|
90
|
+
requiredProviderKeys?: string[];
|
|
91
|
+
requiredRetentionScopes?: VoiceDataRetentionScope[];
|
|
92
|
+
requiredStorage?: string[];
|
|
93
|
+
requireAuditExport?: boolean;
|
|
94
|
+
requireDeletionDryRun?: boolean;
|
|
95
|
+
requireDeletionProof?: boolean;
|
|
96
|
+
requireRedaction?: boolean;
|
|
97
|
+
requireRetentionDryRun?: boolean;
|
|
98
|
+
requireSelfHostedStorage?: boolean;
|
|
99
|
+
requireZeroRetentionAvailable?: boolean;
|
|
100
|
+
};
|
|
101
|
+
export type VoiceDataControlAssertionReport = {
|
|
102
|
+
auditExportEvents: number;
|
|
103
|
+
configuredStorage: string[];
|
|
104
|
+
controls: VoiceDataControlStorageSurface["control"][];
|
|
105
|
+
deletionDeleted: number;
|
|
106
|
+
deletionDryRun?: boolean;
|
|
107
|
+
deletionScopes: VoiceDataRetentionScope[];
|
|
108
|
+
issues: string[];
|
|
109
|
+
ok: boolean;
|
|
110
|
+
providerKeys: string[];
|
|
111
|
+
redactionEnabled: boolean;
|
|
112
|
+
retentionDeleted: number;
|
|
113
|
+
retentionDryRun: boolean;
|
|
114
|
+
retentionScopes: VoiceDataRetentionScope[];
|
|
115
|
+
selfHostedConfiguredStorage: string[];
|
|
116
|
+
zeroRetentionAvailable: boolean;
|
|
117
|
+
};
|
|
118
|
+
export type VoiceDataControlRoutesOptions = VoiceDataRetentionStores & {
|
|
119
|
+
audit?: VoiceAuditEventStore;
|
|
120
|
+
auditActor?: VoiceAuditActor;
|
|
121
|
+
auditDeliveries?: VoiceAuditSinkDeliveryStore;
|
|
122
|
+
headers?: HeadersInit;
|
|
123
|
+
name?: string;
|
|
124
|
+
path?: string;
|
|
125
|
+
providerKeys?: VoiceDataControlProviderKeySurface[];
|
|
126
|
+
redact?: import("./trace").VoiceTraceRedactionConfig | boolean;
|
|
127
|
+
title?: string;
|
|
128
|
+
traceDeliveries?: VoiceTraceSinkDeliveryStore;
|
|
129
|
+
};
|
|
130
|
+
export declare const applyVoiceDataRetentionPolicy: (options: VoiceDataRetentionPolicy) => Promise<VoiceDataRetentionReport>;
|
|
131
|
+
export declare const buildVoiceDataRetentionPlan: (options: Omit<VoiceDataRetentionPolicy, "dryRun">) => Promise<VoiceDataRetentionReport>;
|
|
132
|
+
export declare const evaluateVoiceDataControlEvidence: (report: VoiceDataControlReport, input?: VoiceDataControlAssertionInput) => VoiceDataControlAssertionReport;
|
|
133
|
+
export declare const assertVoiceDataControlEvidence: (report: VoiceDataControlReport, input?: VoiceDataControlAssertionInput) => VoiceDataControlAssertionReport;
|
|
134
|
+
export declare const createVoiceZeroRetentionPolicy: (options: VoiceDataRetentionStores & {
|
|
135
|
+
audit?: VoiceAuditEventStore;
|
|
136
|
+
auditActor?: VoiceAuditActor;
|
|
137
|
+
auditDeliveries?: VoiceAuditSinkDeliveryStore;
|
|
138
|
+
beforeOrAt?: number;
|
|
139
|
+
dryRun?: boolean;
|
|
140
|
+
scopes?: VoiceDataRetentionScope[];
|
|
141
|
+
traceDeliveries?: VoiceTraceSinkDeliveryStore;
|
|
142
|
+
}) => VoiceDataRetentionPolicy;
|
|
143
|
+
export declare const buildVoiceDataControlReport: (options: VoiceDataControlRoutesOptions & {
|
|
144
|
+
auditFilter?: VoiceAuditEventFilter;
|
|
145
|
+
retention?: Omit<VoiceDataRetentionPolicy, "dryRun">;
|
|
146
|
+
}) => Promise<VoiceDataControlReport>;
|
|
147
|
+
export declare const renderVoiceDataControlHTML: (report: VoiceDataControlReport, options?: {
|
|
148
|
+
title?: string;
|
|
149
|
+
}) => string;
|
|
150
|
+
export declare const renderVoiceDataControlMarkdown: (report: VoiceDataControlReport, options?: {
|
|
151
|
+
title?: string;
|
|
152
|
+
}) => string;
|
|
153
|
+
export declare const createVoiceDataControlRoutes: (options: VoiceDataControlRoutesOptions) => Elysia<"", {
|
|
154
|
+
decorator: {};
|
|
155
|
+
store: {};
|
|
156
|
+
derive: {};
|
|
157
|
+
resolve: {};
|
|
158
|
+
}, {
|
|
159
|
+
typebox: {};
|
|
160
|
+
error: {};
|
|
161
|
+
}, {
|
|
162
|
+
schema: {};
|
|
163
|
+
standaloneSchema: {};
|
|
164
|
+
macro: {};
|
|
165
|
+
macroFn: {};
|
|
166
|
+
parser: {};
|
|
167
|
+
response: {};
|
|
168
|
+
}, {}, {
|
|
169
|
+
derive: {};
|
|
170
|
+
resolve: {};
|
|
171
|
+
schema: {};
|
|
172
|
+
standaloneSchema: {};
|
|
173
|
+
response: {};
|
|
174
|
+
}, {
|
|
175
|
+
derive: {};
|
|
176
|
+
resolve: {};
|
|
177
|
+
schema: {};
|
|
178
|
+
standaloneSchema: {};
|
|
179
|
+
response: {};
|
|
180
|
+
}>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type VoiceAssistant, type VoiceAssistantAgentSource, type VoiceAssistantGuardrails, type VoiceAssistantMemoryLifecycle } from "./assistant";
|
|
2
|
+
import type { AudioFormat, CreateVoiceSessionOptions, RealtimeAdapter, STTAdapter, TTSAdapter, VoiceLanguageStrategy, VoiceLexiconEntry, VoicePhraseHint, VoiceReconnectConfig, VoiceResolvedSTTFallbackConfig, VoiceResolvedAudioConditioningConfig, VoiceRouteConfig, VoiceSessionRecord, VoiceSessionRecordingConfig, VoiceSessionStore, VoiceSocket, VoiceSTTLifecycle, VoiceTTSProsody, VoiceTurnDetectionConfig } from "./types";
|
|
3
|
+
import type { VoiceAssistantMemoryOptions } from "./assistantMemory";
|
|
4
|
+
import type { VoiceAgentTool } from "./agent";
|
|
5
|
+
import type { VoiceAMDDetector } from "./amdDetector";
|
|
6
|
+
import type { VoiceCostAccountant } from "./costAccounting";
|
|
7
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
8
|
+
import type { VoiceTranscriptRedactor } from "./redaction";
|
|
9
|
+
import type { VoiceSemanticTurnDetector } from "./semanticTurn";
|
|
10
|
+
import type { VoiceAssistantMode } from "./assistantMode";
|
|
11
|
+
import type { VoiceRuntimeOpsConfig } from "./types";
|
|
12
|
+
export type VoiceAssistantVoiceConfig = {
|
|
13
|
+
prosody?: VoiceTTSProsody;
|
|
14
|
+
realtime?: RealtimeAdapter;
|
|
15
|
+
realtimeInputFormat?: AudioFormat;
|
|
16
|
+
stt?: STTAdapter;
|
|
17
|
+
sttFallback?: VoiceResolvedSTTFallbackConfig;
|
|
18
|
+
tts?: TTSAdapter;
|
|
19
|
+
};
|
|
20
|
+
export type VoiceAssistantObservabilityConfig = {
|
|
21
|
+
costAccountant?: VoiceCostAccountant;
|
|
22
|
+
costTelephony?: {
|
|
23
|
+
provider?: string;
|
|
24
|
+
};
|
|
25
|
+
recording?: VoiceSessionRecordingConfig;
|
|
26
|
+
trace?: VoiceTraceEventStore;
|
|
27
|
+
};
|
|
28
|
+
export type VoiceAssistantDefinition<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
29
|
+
agent: VoiceAssistantAgentSource<TContext, TSession, TResult>;
|
|
30
|
+
amd?: VoiceAMDDetector<TContext, TSession, TResult>;
|
|
31
|
+
assistantMode?: VoiceAssistantMode;
|
|
32
|
+
audioConditioning?: VoiceResolvedAudioConditioningConfig;
|
|
33
|
+
callSilenceTimeoutMs?: number;
|
|
34
|
+
guardrails?: VoiceAssistantGuardrails<TContext, TSession, TResult>;
|
|
35
|
+
id: string;
|
|
36
|
+
languageStrategy?: VoiceLanguageStrategy;
|
|
37
|
+
lexicon?: VoiceLexiconEntry[];
|
|
38
|
+
memory?: VoiceAssistantMemoryOptions<TContext, TSession>;
|
|
39
|
+
memoryLifecycle?: VoiceAssistantMemoryLifecycle<TContext, TSession, TResult>;
|
|
40
|
+
metadata?: Record<string, unknown>;
|
|
41
|
+
modalities?: ReadonlyArray<"audio" | "text">;
|
|
42
|
+
ops?: VoiceRuntimeOpsConfig<TContext, TSession, TResult>;
|
|
43
|
+
observability?: VoiceAssistantObservabilityConfig;
|
|
44
|
+
phraseHints?: VoicePhraseHint[];
|
|
45
|
+
redact?: VoiceTranscriptRedactor;
|
|
46
|
+
route?: Partial<VoiceRouteConfig<TContext, TSession, TResult>>;
|
|
47
|
+
semanticTurnDetector?: VoiceSemanticTurnDetector;
|
|
48
|
+
tools?: ReadonlyArray<VoiceAgentTool<TContext, TSession, Record<string, unknown>, unknown, TResult>>;
|
|
49
|
+
turnDetection?: VoiceTurnDetectionConfig;
|
|
50
|
+
voice: VoiceAssistantVoiceConfig;
|
|
51
|
+
};
|
|
52
|
+
export type VoiceAssistantSessionInput<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord> = {
|
|
53
|
+
context: TContext;
|
|
54
|
+
id: string;
|
|
55
|
+
reconnect?: Partial<VoiceReconnectConfig>;
|
|
56
|
+
scenarioId?: string;
|
|
57
|
+
sessionMetadata?: Record<string, unknown>;
|
|
58
|
+
socket: VoiceSocket;
|
|
59
|
+
sttLifecycle?: VoiceSTTLifecycle;
|
|
60
|
+
store: VoiceSessionStore<TSession>;
|
|
61
|
+
};
|
|
62
|
+
export type DefinedVoiceAssistant<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
63
|
+
assistant: VoiceAssistant<TContext, TSession, TResult>;
|
|
64
|
+
definition: VoiceAssistantDefinition<TContext, TSession, TResult>;
|
|
65
|
+
id: string;
|
|
66
|
+
toSessionOptions: (input: VoiceAssistantSessionInput<TContext, TSession>) => CreateVoiceSessionOptions<TContext, TSession, TResult>;
|
|
67
|
+
};
|
|
68
|
+
export declare const defineVoiceAssistant: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(definition: VoiceAssistantDefinition<TContext, TSession, TResult>) => DefinedVoiceAssistant<TContext, TSession, TResult>;
|