@absolutejs/voice 0.0.22-beta.50 → 0.0.22-beta.501
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 +32 -5
- package/dist/angular/index.js +3704 -326
- package/dist/angular/voice-agent-squad-status.service.d.ts +12 -0
- package/dist/angular/voice-call-debugger.service.d.ts +12 -0
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +14 -0
- package/dist/angular/voice-controller.service.d.ts +3 -1
- package/dist/angular/voice-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-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/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/callQuota.d.ts +54 -0
- package/dist/callerMemory.d.ts +37 -0
- package/dist/campaign.d.ts +794 -0
- package/dist/campaignControls.d.ts +37 -0
- package/dist/campaignDialers.d.ts +111 -0
- package/dist/client/actions.d.ts +95 -1
- package/dist/client/agentSquadStatus.d.ts +37 -0
- package/dist/client/agentSquadStatusWidget.d.ts +24 -0
- package/dist/client/audioPlayer.d.ts +2 -2
- package/dist/client/bargeInMonitor.d.ts +7 -0
- package/dist/client/browserMedia.d.ts +8 -0
- package/dist/client/callDebugger.d.ts +19 -0
- package/dist/client/callDebuggerWidget.d.ts +30 -0
- package/dist/client/campaignDialerProof.d.ts +23 -0
- package/dist/client/connection.d.ts +4 -3
- package/dist/client/controller.d.ts +1 -1
- package/dist/client/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/htmxBootstrap.js +967 -14
- package/dist/client/index.d.ts +104 -13
- package/dist/client/index.js +10142 -26
- 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/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/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/htmx.d.ts +1 -1
- package/dist/incidentBundle.d.ts +119 -0
- package/dist/incidentTimeline.d.ts +260 -0
- package/dist/index.d.ts +278 -74
- package/dist/index.js +40611 -6669
- package/dist/ivrPlan.d.ts +40 -0
- package/dist/latencySlo.d.ts +56 -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/platformCoverage.d.ts +91 -0
- package/dist/plugin.d.ts +2 -2
- package/dist/postCallAnalysis.d.ts +98 -0
- package/dist/postgresStore.d.ts +17 -6
- package/dist/presets.d.ts +3 -3
- package/dist/productionReadiness.d.ts +756 -0
- package/dist/profileSwitchRecommendation.d.ts +350 -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/VoiceCostDashboard.d.ts +10 -0
- package/dist/react/VoiceDeliveryRuntime.d.ts +7 -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 +55 -5
- package/dist/react/index.js +12037 -106
- 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/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/svelte/createVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/svelte/createVoiceCallDebugger.d.ts +12 -0
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +9 -0
- package/dist/svelte/createVoiceCostDashboard.d.ts +13 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +11 -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 +33 -5
- package/dist/svelte/index.js +6493 -546
- 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/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/VoiceCostDashboard.d.ts +57 -0
- package/dist/vue/VoiceDeliveryRuntime.d.ts +30 -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 +47 -5
- package/dist/vue/index.js +11299 -132
- 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/webhookVerification.d.ts +27 -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 -83
- 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,37 @@
|
|
|
1
|
+
import type { VoiceCampaign, VoiceCampaignAttemptStatus, VoiceCampaignRecipient, VoiceCampaignRecord, VoiceCampaignTimeWindow } from "./campaign";
|
|
2
|
+
export type VoiceCampaignDisposition = "answered" | "busy" | "failed" | "no-answer" | "voicemail";
|
|
3
|
+
export type VoiceCampaignDispositionRetryRule = {
|
|
4
|
+
backoffMs?: number;
|
|
5
|
+
maxAttempts?: number;
|
|
6
|
+
retry?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type VoiceCampaignDispositionRetryPolicy = Partial<Record<VoiceCampaignDisposition, VoiceCampaignDispositionRetryRule>>;
|
|
9
|
+
export type VoiceDNCList = {
|
|
10
|
+
contains: (phone: string) => boolean | Promise<boolean>;
|
|
11
|
+
};
|
|
12
|
+
export declare const normalizePhoneNumber: (phone: string) => string;
|
|
13
|
+
export declare const createInMemoryDNCList: (phones: ReadonlyArray<string>) => VoiceDNCList;
|
|
14
|
+
export declare const isPhoneOnDNC: (phone: string, list: VoiceDNCList) => Promise<boolean>;
|
|
15
|
+
export type VoiceCampaignWindowCheckInput = {
|
|
16
|
+
now?: Date;
|
|
17
|
+
window: VoiceCampaignTimeWindow;
|
|
18
|
+
};
|
|
19
|
+
export declare const isWithinCampaignWindow: (input: VoiceCampaignWindowCheckInput) => boolean;
|
|
20
|
+
export declare const shouldRetryCampaignAttempt: (input: {
|
|
21
|
+
attempts: number;
|
|
22
|
+
campaign: Pick<VoiceCampaign, "maxAttempts">;
|
|
23
|
+
disposition?: VoiceCampaignDisposition;
|
|
24
|
+
policy?: VoiceCampaignDispositionRetryPolicy;
|
|
25
|
+
}) => {
|
|
26
|
+
backoffMs?: number;
|
|
27
|
+
retry: boolean;
|
|
28
|
+
};
|
|
29
|
+
export type VoiceCampaignDispositionSummary = {
|
|
30
|
+
attempts: number;
|
|
31
|
+
byDisposition: Partial<Record<VoiceCampaignDisposition, number>>;
|
|
32
|
+
byStatus: Record<VoiceCampaignAttemptStatus, number>;
|
|
33
|
+
campaignId: string;
|
|
34
|
+
recipientsByStatus: Record<VoiceCampaignRecipient["status"], number>;
|
|
35
|
+
totalRecipients: number;
|
|
36
|
+
};
|
|
37
|
+
export declare const summarizeVoiceCampaignDispositions: (record: VoiceCampaignRecord) => VoiceCampaignDispositionSummary;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { applyVoiceCampaignTelephonyOutcome, VoiceCampaignDialer, VoiceCampaignDialerInput, type VoiceCampaignRecord, type VoiceCampaignStore, type VoiceCampaignTickResult } from "./campaign";
|
|
2
|
+
type VoiceCampaignDialerFetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
|
|
3
|
+
type VoiceCampaignDialerMetadataInput = VoiceCampaignDialerInput & {
|
|
4
|
+
provider: "plivo" | "telnyx" | "twilio";
|
|
5
|
+
};
|
|
6
|
+
type VoiceCampaignDialerMetadata = Record<string, string | number | boolean | undefined> | ((input: VoiceCampaignDialerMetadataInput) => Record<string, string | number | boolean | undefined> | Promise<Record<string, string | number | boolean | undefined>>);
|
|
7
|
+
type VoiceCampaignURLInput = {
|
|
8
|
+
attempt: VoiceCampaignDialerInput["attempt"];
|
|
9
|
+
campaign: VoiceCampaignDialerInput["campaign"];
|
|
10
|
+
recipient: VoiceCampaignDialerInput["recipient"];
|
|
11
|
+
};
|
|
12
|
+
type VoiceCampaignURLResolver = string | ((input: VoiceCampaignURLInput) => string | Promise<string>);
|
|
13
|
+
export type VoiceTwilioCampaignDialerOptions = {
|
|
14
|
+
accountSid: string;
|
|
15
|
+
answerMethod?: "GET" | "POST";
|
|
16
|
+
answerUrl: VoiceCampaignURLResolver;
|
|
17
|
+
apiBaseUrl?: string;
|
|
18
|
+
authToken: string;
|
|
19
|
+
fetch?: VoiceCampaignDialerFetch;
|
|
20
|
+
from: string;
|
|
21
|
+
machineDetection?: string;
|
|
22
|
+
metadata?: VoiceCampaignDialerMetadata;
|
|
23
|
+
statusCallbackEvents?: string[];
|
|
24
|
+
statusCallbackMethod?: "GET" | "POST";
|
|
25
|
+
statusCallbackUrl?: VoiceCampaignURLResolver;
|
|
26
|
+
};
|
|
27
|
+
export type VoiceTelnyxCampaignDialerOptions = {
|
|
28
|
+
apiBaseUrl?: string;
|
|
29
|
+
apiKey: string;
|
|
30
|
+
clientState?: VoiceCampaignDialerMetadata;
|
|
31
|
+
connectionId: string;
|
|
32
|
+
fetch?: VoiceCampaignDialerFetch;
|
|
33
|
+
from: string;
|
|
34
|
+
webhookUrl?: VoiceCampaignURLResolver;
|
|
35
|
+
webhookUrlMethod?: "GET" | "POST";
|
|
36
|
+
};
|
|
37
|
+
export type VoicePlivoCampaignDialerOptions = {
|
|
38
|
+
answerMethod?: "GET" | "POST";
|
|
39
|
+
answerUrl: VoiceCampaignURLResolver;
|
|
40
|
+
apiBaseUrl?: string;
|
|
41
|
+
authId: string;
|
|
42
|
+
authToken: string;
|
|
43
|
+
callbackMethod?: "GET" | "POST";
|
|
44
|
+
callbackUrl?: VoiceCampaignURLResolver;
|
|
45
|
+
fetch?: VoiceCampaignDialerFetch;
|
|
46
|
+
from: string;
|
|
47
|
+
metadata?: VoiceCampaignDialerMetadata;
|
|
48
|
+
};
|
|
49
|
+
export type VoiceCampaignDialerProofProvider = "plivo" | "telnyx" | "twilio";
|
|
50
|
+
export type VoiceCampaignDialerProofCarrierRequest = {
|
|
51
|
+
body: unknown;
|
|
52
|
+
method: string;
|
|
53
|
+
provider: VoiceCampaignDialerProofProvider;
|
|
54
|
+
url: string;
|
|
55
|
+
};
|
|
56
|
+
export type VoiceCampaignDialerProofProviderResult = {
|
|
57
|
+
campaignId: string;
|
|
58
|
+
carrierRequests: VoiceCampaignDialerProofCarrierRequest[];
|
|
59
|
+
final?: VoiceCampaignRecord;
|
|
60
|
+
outcomes: Awaited<ReturnType<typeof applyVoiceCampaignTelephonyOutcome>>[];
|
|
61
|
+
provider: VoiceCampaignDialerProofProvider;
|
|
62
|
+
tick: VoiceCampaignTickResult;
|
|
63
|
+
};
|
|
64
|
+
export type VoiceCampaignDialerProofReport = {
|
|
65
|
+
generatedAt: number;
|
|
66
|
+
mode: "dry-run";
|
|
67
|
+
ok: boolean;
|
|
68
|
+
providers: VoiceCampaignDialerProofProviderResult[];
|
|
69
|
+
};
|
|
70
|
+
export type VoiceCampaignDialerProofStatus = {
|
|
71
|
+
generatedAt: number;
|
|
72
|
+
mode: "dry-run";
|
|
73
|
+
ok: boolean;
|
|
74
|
+
providers: VoiceCampaignDialerProofProvider[];
|
|
75
|
+
runPath?: string;
|
|
76
|
+
safe: true;
|
|
77
|
+
};
|
|
78
|
+
export type VoiceCampaignDialerProofOptions = {
|
|
79
|
+
baseUrl?: string;
|
|
80
|
+
from?: string;
|
|
81
|
+
providers?: VoiceCampaignDialerProofProvider[];
|
|
82
|
+
runPath?: string;
|
|
83
|
+
store?: VoiceCampaignStore;
|
|
84
|
+
};
|
|
85
|
+
export type VoiceCampaignDialerProofAssertionInput = {
|
|
86
|
+
maxFailedProviders?: number;
|
|
87
|
+
minCarrierRequests?: number;
|
|
88
|
+
minProviders?: number;
|
|
89
|
+
minSuccessfulOutcomes?: number;
|
|
90
|
+
requiredProviders?: VoiceCampaignDialerProofProvider[];
|
|
91
|
+
requireDryRun?: boolean;
|
|
92
|
+
requireOk?: boolean;
|
|
93
|
+
};
|
|
94
|
+
export type VoiceCampaignDialerProofAssertionReport = {
|
|
95
|
+
carrierRequests: number;
|
|
96
|
+
failedProviders: number;
|
|
97
|
+
issues: string[];
|
|
98
|
+
mode: VoiceCampaignDialerProofReport["mode"];
|
|
99
|
+
ok: boolean;
|
|
100
|
+
providers: VoiceCampaignDialerProofProvider[];
|
|
101
|
+
successfulOutcomes: number;
|
|
102
|
+
totalProviders: number;
|
|
103
|
+
};
|
|
104
|
+
export declare const createVoiceTwilioCampaignDialer: (options: VoiceTwilioCampaignDialerOptions) => VoiceCampaignDialer;
|
|
105
|
+
export declare const createVoiceTelnyxCampaignDialer: (options: VoiceTelnyxCampaignDialerOptions) => VoiceCampaignDialer;
|
|
106
|
+
export declare const createVoicePlivoCampaignDialer: (options: VoicePlivoCampaignDialerOptions) => VoiceCampaignDialer;
|
|
107
|
+
export declare const getVoiceCampaignDialerProofStatus: (options?: Pick<VoiceCampaignDialerProofOptions, "providers" | "runPath">) => VoiceCampaignDialerProofStatus;
|
|
108
|
+
export declare const runVoiceCampaignDialerProof: (options?: VoiceCampaignDialerProofOptions) => Promise<VoiceCampaignDialerProofReport>;
|
|
109
|
+
export declare const evaluateVoiceCampaignDialerProofEvidence: (report: VoiceCampaignDialerProofReport, input?: VoiceCampaignDialerProofAssertionInput) => VoiceCampaignDialerProofAssertionReport;
|
|
110
|
+
export declare const assertVoiceCampaignDialerProofEvidence: (report: VoiceCampaignDialerProofReport, input?: VoiceCampaignDialerProofAssertionInput) => VoiceCampaignDialerProofAssertionReport;
|
|
111
|
+
export {};
|
package/dist/client/actions.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceServerMessage } from
|
|
1
|
+
import type { VoiceServerMessage } from "../types";
|
|
2
2
|
export declare const serverMessageToAction: <TResult = unknown>(message: VoiceServerMessage<TResult>) => {
|
|
3
3
|
chunk: Uint8Array<ArrayBuffer>;
|
|
4
4
|
format: import("..").AudioFormat;
|
|
@@ -7,11 +7,17 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
7
7
|
type: "audio";
|
|
8
8
|
text?: undefined;
|
|
9
9
|
sessionId?: undefined;
|
|
10
|
+
reconnect?: undefined;
|
|
10
11
|
event?: undefined;
|
|
11
12
|
message?: undefined;
|
|
12
13
|
transcript?: undefined;
|
|
14
|
+
assistantTexts?: undefined;
|
|
15
|
+
call?: undefined;
|
|
16
|
+
partial?: undefined;
|
|
13
17
|
scenarioId?: undefined;
|
|
18
|
+
sessionMetadata?: undefined;
|
|
14
19
|
status?: undefined;
|
|
20
|
+
turns?: undefined;
|
|
15
21
|
turn?: undefined;
|
|
16
22
|
} | {
|
|
17
23
|
text: string;
|
|
@@ -21,11 +27,17 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
21
27
|
receivedAt?: undefined;
|
|
22
28
|
turnId?: undefined;
|
|
23
29
|
sessionId?: undefined;
|
|
30
|
+
reconnect?: undefined;
|
|
24
31
|
event?: undefined;
|
|
25
32
|
message?: undefined;
|
|
26
33
|
transcript?: undefined;
|
|
34
|
+
assistantTexts?: undefined;
|
|
35
|
+
call?: undefined;
|
|
36
|
+
partial?: undefined;
|
|
27
37
|
scenarioId?: undefined;
|
|
38
|
+
sessionMetadata?: undefined;
|
|
28
39
|
status?: undefined;
|
|
40
|
+
turns?: undefined;
|
|
29
41
|
turn?: undefined;
|
|
30
42
|
} | {
|
|
31
43
|
sessionId: string;
|
|
@@ -35,11 +47,37 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
35
47
|
receivedAt?: undefined;
|
|
36
48
|
turnId?: undefined;
|
|
37
49
|
text?: undefined;
|
|
50
|
+
reconnect?: undefined;
|
|
38
51
|
event?: undefined;
|
|
39
52
|
message?: undefined;
|
|
40
53
|
transcript?: undefined;
|
|
54
|
+
assistantTexts?: undefined;
|
|
55
|
+
call?: undefined;
|
|
56
|
+
partial?: undefined;
|
|
41
57
|
scenarioId?: undefined;
|
|
58
|
+
sessionMetadata?: undefined;
|
|
42
59
|
status?: undefined;
|
|
60
|
+
turns?: undefined;
|
|
61
|
+
turn?: undefined;
|
|
62
|
+
} | {
|
|
63
|
+
reconnect: import("..").VoiceReconnectClientState;
|
|
64
|
+
type: "connection";
|
|
65
|
+
chunk?: undefined;
|
|
66
|
+
format?: undefined;
|
|
67
|
+
receivedAt?: undefined;
|
|
68
|
+
turnId?: undefined;
|
|
69
|
+
text?: undefined;
|
|
70
|
+
sessionId?: undefined;
|
|
71
|
+
event?: undefined;
|
|
72
|
+
message?: undefined;
|
|
73
|
+
transcript?: undefined;
|
|
74
|
+
assistantTexts?: undefined;
|
|
75
|
+
call?: undefined;
|
|
76
|
+
partial?: undefined;
|
|
77
|
+
scenarioId?: undefined;
|
|
78
|
+
sessionMetadata?: undefined;
|
|
79
|
+
status?: undefined;
|
|
80
|
+
turns?: undefined;
|
|
43
81
|
turn?: undefined;
|
|
44
82
|
} | {
|
|
45
83
|
event: import("..").VoiceCallLifecycleEvent;
|
|
@@ -50,10 +88,16 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
50
88
|
receivedAt?: undefined;
|
|
51
89
|
turnId?: undefined;
|
|
52
90
|
text?: undefined;
|
|
91
|
+
reconnect?: undefined;
|
|
53
92
|
message?: undefined;
|
|
54
93
|
transcript?: undefined;
|
|
94
|
+
assistantTexts?: undefined;
|
|
95
|
+
call?: undefined;
|
|
96
|
+
partial?: undefined;
|
|
55
97
|
scenarioId?: undefined;
|
|
98
|
+
sessionMetadata?: undefined;
|
|
56
99
|
status?: undefined;
|
|
100
|
+
turns?: undefined;
|
|
57
101
|
turn?: undefined;
|
|
58
102
|
} | {
|
|
59
103
|
message: string;
|
|
@@ -64,10 +108,16 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
64
108
|
turnId?: undefined;
|
|
65
109
|
text?: undefined;
|
|
66
110
|
sessionId?: undefined;
|
|
111
|
+
reconnect?: undefined;
|
|
67
112
|
event?: undefined;
|
|
68
113
|
transcript?: undefined;
|
|
114
|
+
assistantTexts?: undefined;
|
|
115
|
+
call?: undefined;
|
|
116
|
+
partial?: undefined;
|
|
69
117
|
scenarioId?: undefined;
|
|
118
|
+
sessionMetadata?: undefined;
|
|
70
119
|
status?: undefined;
|
|
120
|
+
turns?: undefined;
|
|
71
121
|
turn?: undefined;
|
|
72
122
|
} | {
|
|
73
123
|
transcript: import("..").Transcript;
|
|
@@ -78,10 +128,16 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
78
128
|
turnId?: undefined;
|
|
79
129
|
text?: undefined;
|
|
80
130
|
sessionId?: undefined;
|
|
131
|
+
reconnect?: undefined;
|
|
81
132
|
event?: undefined;
|
|
82
133
|
message?: undefined;
|
|
134
|
+
assistantTexts?: undefined;
|
|
135
|
+
call?: undefined;
|
|
136
|
+
partial?: undefined;
|
|
83
137
|
scenarioId?: undefined;
|
|
138
|
+
sessionMetadata?: undefined;
|
|
84
139
|
status?: undefined;
|
|
140
|
+
turns?: undefined;
|
|
85
141
|
turn?: undefined;
|
|
86
142
|
} | {
|
|
87
143
|
transcript: import("..").Transcript;
|
|
@@ -92,13 +148,40 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
92
148
|
turnId?: undefined;
|
|
93
149
|
text?: undefined;
|
|
94
150
|
sessionId?: undefined;
|
|
151
|
+
reconnect?: undefined;
|
|
95
152
|
event?: undefined;
|
|
96
153
|
message?: undefined;
|
|
154
|
+
assistantTexts?: undefined;
|
|
155
|
+
call?: undefined;
|
|
156
|
+
partial?: undefined;
|
|
97
157
|
scenarioId?: undefined;
|
|
158
|
+
sessionMetadata?: undefined;
|
|
98
159
|
status?: undefined;
|
|
160
|
+
turns?: undefined;
|
|
161
|
+
turn?: undefined;
|
|
162
|
+
} | {
|
|
163
|
+
assistantTexts: string[];
|
|
164
|
+
call: import("..").VoiceCallLifecycleState | undefined;
|
|
165
|
+
partial: string;
|
|
166
|
+
scenarioId: string | undefined;
|
|
167
|
+
sessionId: string;
|
|
168
|
+
sessionMetadata: Record<string, unknown> | undefined;
|
|
169
|
+
status: import("..").VoiceSessionStatus;
|
|
170
|
+
turns: import("..").VoiceTurnRecord<TResult>[];
|
|
171
|
+
type: "replay";
|
|
172
|
+
chunk?: undefined;
|
|
173
|
+
format?: undefined;
|
|
174
|
+
receivedAt?: undefined;
|
|
175
|
+
turnId?: undefined;
|
|
176
|
+
text?: undefined;
|
|
177
|
+
reconnect?: undefined;
|
|
178
|
+
event?: undefined;
|
|
179
|
+
message?: undefined;
|
|
180
|
+
transcript?: undefined;
|
|
99
181
|
turn?: undefined;
|
|
100
182
|
} | {
|
|
101
183
|
sessionId: string;
|
|
184
|
+
sessionMetadata: Record<string, unknown> | undefined;
|
|
102
185
|
scenarioId: string | undefined;
|
|
103
186
|
status: import("..").VoiceSessionStatus;
|
|
104
187
|
type: "session";
|
|
@@ -107,9 +190,14 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
107
190
|
receivedAt?: undefined;
|
|
108
191
|
turnId?: undefined;
|
|
109
192
|
text?: undefined;
|
|
193
|
+
reconnect?: undefined;
|
|
110
194
|
event?: undefined;
|
|
111
195
|
message?: undefined;
|
|
112
196
|
transcript?: undefined;
|
|
197
|
+
assistantTexts?: undefined;
|
|
198
|
+
call?: undefined;
|
|
199
|
+
partial?: undefined;
|
|
200
|
+
turns?: undefined;
|
|
113
201
|
turn?: undefined;
|
|
114
202
|
} | {
|
|
115
203
|
turn: import("..").VoiceTurnRecord<TResult>;
|
|
@@ -120,9 +208,15 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
120
208
|
turnId?: undefined;
|
|
121
209
|
text?: undefined;
|
|
122
210
|
sessionId?: undefined;
|
|
211
|
+
reconnect?: undefined;
|
|
123
212
|
event?: undefined;
|
|
124
213
|
message?: undefined;
|
|
125
214
|
transcript?: undefined;
|
|
215
|
+
assistantTexts?: undefined;
|
|
216
|
+
call?: undefined;
|
|
217
|
+
partial?: undefined;
|
|
126
218
|
scenarioId?: undefined;
|
|
219
|
+
sessionMetadata?: undefined;
|
|
127
220
|
status?: undefined;
|
|
221
|
+
turns?: undefined;
|
|
128
222
|
} | null;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { VoiceTraceTimelineReport } from "../traceTimeline";
|
|
2
|
+
import { type VoiceTraceTimelineClientOptions } from "./traceTimeline";
|
|
3
|
+
export type VoiceAgentSquadSpecialistStatus = "active" | "blocked" | "handoff" | "idle" | "unknown-target";
|
|
4
|
+
export type VoiceAgentSquadSpecialist = {
|
|
5
|
+
fromAgentId?: string;
|
|
6
|
+
lastEventAt?: number;
|
|
7
|
+
reason?: string;
|
|
8
|
+
sessionId: string;
|
|
9
|
+
status: VoiceAgentSquadSpecialistStatus;
|
|
10
|
+
summary?: string;
|
|
11
|
+
targetAgentId?: string;
|
|
12
|
+
turnId?: string;
|
|
13
|
+
};
|
|
14
|
+
export type VoiceAgentSquadStatusReport = {
|
|
15
|
+
active: VoiceAgentSquadSpecialist[];
|
|
16
|
+
checkedAt?: number;
|
|
17
|
+
current?: VoiceAgentSquadSpecialist;
|
|
18
|
+
sessionCount: number;
|
|
19
|
+
sessions: VoiceAgentSquadSpecialist[];
|
|
20
|
+
};
|
|
21
|
+
export type VoiceAgentSquadStatusSnapshot = {
|
|
22
|
+
error: string | null;
|
|
23
|
+
isLoading: boolean;
|
|
24
|
+
report: VoiceAgentSquadStatusReport;
|
|
25
|
+
updatedAt?: number;
|
|
26
|
+
};
|
|
27
|
+
export type VoiceAgentSquadStatusClientOptions = VoiceTraceTimelineClientOptions & {
|
|
28
|
+
sessionId?: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const buildVoiceAgentSquadStatusReport: (timeline: VoiceTraceTimelineReport | null | undefined, options?: Pick<VoiceAgentSquadStatusClientOptions, "sessionId">) => VoiceAgentSquadStatusReport;
|
|
31
|
+
export declare const createVoiceAgentSquadStatusStore: (path?: string, options?: VoiceAgentSquadStatusClientOptions) => {
|
|
32
|
+
close: () => void;
|
|
33
|
+
getServerSnapshot: () => VoiceAgentSquadStatusSnapshot;
|
|
34
|
+
getSnapshot: () => VoiceAgentSquadStatusSnapshot;
|
|
35
|
+
refresh: () => Promise<VoiceTraceTimelineReport | null>;
|
|
36
|
+
subscribe: (listener: () => void) => () => void;
|
|
37
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type VoiceAgentSquadSpecialist, type VoiceAgentSquadStatusClientOptions, type VoiceAgentSquadStatusSnapshot } from "./agentSquadStatus";
|
|
2
|
+
export type VoiceAgentSquadStatusViewModel = {
|
|
3
|
+
current?: VoiceAgentSquadSpecialist;
|
|
4
|
+
description: string;
|
|
5
|
+
error: string | null;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
label: string;
|
|
8
|
+
sessionCount: number;
|
|
9
|
+
sessions: VoiceAgentSquadSpecialist[];
|
|
10
|
+
title: string;
|
|
11
|
+
updatedAt?: number;
|
|
12
|
+
};
|
|
13
|
+
export type VoiceAgentSquadStatusWidgetOptions = VoiceAgentSquadStatusClientOptions & {
|
|
14
|
+
description?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const createVoiceAgentSquadStatusViewModel: (snapshot: VoiceAgentSquadStatusSnapshot, options?: VoiceAgentSquadStatusWidgetOptions) => VoiceAgentSquadStatusViewModel;
|
|
18
|
+
export declare const renderVoiceAgentSquadStatusHTML: (snapshot: VoiceAgentSquadStatusSnapshot, options?: VoiceAgentSquadStatusWidgetOptions) => string;
|
|
19
|
+
export declare const getVoiceAgentSquadStatusCSS: () => string;
|
|
20
|
+
export declare const mountVoiceAgentSquadStatus: (element: Element | null, path?: string, options?: VoiceAgentSquadStatusWidgetOptions) => {
|
|
21
|
+
close: () => void;
|
|
22
|
+
refresh: () => Promise<import("..").VoiceTraceTimelineReport | null>;
|
|
23
|
+
};
|
|
24
|
+
export declare const defineVoiceAgentSquadStatusElement: (tagName?: string, options?: VoiceAgentSquadStatusWidgetOptions) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AudioFormat, VoiceAudioPlayer, VoiceAudioPlayerOptions, VoiceAudioPlayerSource } from
|
|
1
|
+
import type { AudioFormat, VoiceAudioPlayer, VoiceAudioPlayerOptions, VoiceAudioPlayerSource } from "../types";
|
|
2
2
|
type MinimalAudioBuffer = {
|
|
3
3
|
duration: number;
|
|
4
4
|
getChannelData: (channel: number) => Float32Array;
|
|
@@ -29,7 +29,7 @@ type MinimalAudioContext = {
|
|
|
29
29
|
destination: unknown;
|
|
30
30
|
outputLatency?: number;
|
|
31
31
|
resume: () => Promise<void>;
|
|
32
|
-
state:
|
|
32
|
+
state: "closed" | "running" | "suspended";
|
|
33
33
|
suspend: () => Promise<void>;
|
|
34
34
|
};
|
|
35
35
|
export declare const createVoiceAudioPlayer: (source: VoiceAudioPlayerSource, options?: VoiceAudioPlayerOptions) => VoiceAudioPlayer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VoiceBargeInMonitor } from "../types";
|
|
2
|
+
export type VoiceBargeInMonitorOptions = {
|
|
3
|
+
fetch?: typeof fetch;
|
|
4
|
+
path?: string;
|
|
5
|
+
thresholdMs?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const createVoiceBargeInMonitor: (options?: VoiceBargeInMonitorOptions) => VoiceBargeInMonitor;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VoiceBrowserMediaReporterOptions, VoiceBrowserMediaReportPayload } from "../types";
|
|
2
|
+
export type VoiceBrowserMediaReporter = {
|
|
3
|
+
close: () => void;
|
|
4
|
+
reportOnce: () => Promise<VoiceBrowserMediaReportPayload | undefined>;
|
|
5
|
+
start: () => void;
|
|
6
|
+
stop: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const createVoiceBrowserMediaReporter: (options: VoiceBrowserMediaReporterOptions) => VoiceBrowserMediaReporter;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VoiceCallDebuggerReport } from "../callDebugger";
|
|
2
|
+
export type VoiceCallDebuggerClientOptions = {
|
|
3
|
+
fetch?: typeof fetch;
|
|
4
|
+
intervalMs?: number;
|
|
5
|
+
};
|
|
6
|
+
export type VoiceCallDebuggerClientState = {
|
|
7
|
+
error: string | null;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
report?: VoiceCallDebuggerReport;
|
|
10
|
+
updatedAt?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const fetchVoiceCallDebugger: (path: string, options?: Pick<VoiceCallDebuggerClientOptions, "fetch">) => Promise<VoiceCallDebuggerReport>;
|
|
13
|
+
export declare const createVoiceCallDebuggerStore: (path: string, options?: VoiceCallDebuggerClientOptions) => {
|
|
14
|
+
close: () => void;
|
|
15
|
+
getServerSnapshot: () => VoiceCallDebuggerClientState;
|
|
16
|
+
getSnapshot: () => VoiceCallDebuggerClientState;
|
|
17
|
+
refresh: () => Promise<VoiceCallDebuggerReport | undefined>;
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type VoiceCallDebuggerClientOptions, type VoiceCallDebuggerClientState } from "./callDebugger";
|
|
2
|
+
export type VoiceCallDebuggerLaunchViewModel = {
|
|
3
|
+
description: string;
|
|
4
|
+
error: string | null;
|
|
5
|
+
href: string;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
label: string;
|
|
8
|
+
rows: Array<{
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}>;
|
|
12
|
+
status: "empty" | "error" | "loading" | "ready" | "warning";
|
|
13
|
+
title: string;
|
|
14
|
+
updatedAt?: number;
|
|
15
|
+
};
|
|
16
|
+
export type VoiceCallDebuggerLaunchOptions = VoiceCallDebuggerClientOptions & {
|
|
17
|
+
description?: string;
|
|
18
|
+
href?: string | ((input: {
|
|
19
|
+
report?: VoiceCallDebuggerClientState["report"];
|
|
20
|
+
}) => string);
|
|
21
|
+
linkLabel?: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const createVoiceCallDebuggerLaunchViewModel: (path: string, state: VoiceCallDebuggerClientState, options?: VoiceCallDebuggerLaunchOptions) => VoiceCallDebuggerLaunchViewModel;
|
|
25
|
+
export declare const renderVoiceCallDebuggerLaunchHTML: (path: string, state: VoiceCallDebuggerClientState, options?: VoiceCallDebuggerLaunchOptions) => string;
|
|
26
|
+
export declare const mountVoiceCallDebuggerLaunch: (element: Element, path: string, options?: VoiceCallDebuggerLaunchOptions) => {
|
|
27
|
+
close: () => void;
|
|
28
|
+
refresh: () => Promise<import("..").VoiceCallDebuggerReport | undefined>;
|
|
29
|
+
};
|
|
30
|
+
export declare const defineVoiceCallDebuggerLaunchElement: (tagName?: string) => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { VoiceCampaignDialerProofReport, VoiceCampaignDialerProofStatus } from "../campaignDialers";
|
|
2
|
+
export type VoiceCampaignDialerProofClientOptions = {
|
|
3
|
+
fetch?: typeof fetch;
|
|
4
|
+
intervalMs?: number;
|
|
5
|
+
runPath?: string;
|
|
6
|
+
};
|
|
7
|
+
export type VoiceCampaignDialerProofSnapshot = {
|
|
8
|
+
error: string | null;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
report?: VoiceCampaignDialerProofReport;
|
|
11
|
+
status?: VoiceCampaignDialerProofStatus;
|
|
12
|
+
updatedAt?: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const fetchVoiceCampaignDialerProofStatus: (path?: string, options?: Pick<VoiceCampaignDialerProofClientOptions, "fetch">) => Promise<VoiceCampaignDialerProofStatus>;
|
|
15
|
+
export declare const runVoiceCampaignDialerProofAction: (path?: string, options?: Pick<VoiceCampaignDialerProofClientOptions, "fetch">) => Promise<VoiceCampaignDialerProofReport>;
|
|
16
|
+
export declare const createVoiceCampaignDialerProofStore: (path?: string, options?: VoiceCampaignDialerProofClientOptions) => {
|
|
17
|
+
close: () => void;
|
|
18
|
+
getServerSnapshot: () => VoiceCampaignDialerProofSnapshot;
|
|
19
|
+
getSnapshot: () => VoiceCampaignDialerProofSnapshot;
|
|
20
|
+
refresh: () => Promise<VoiceCampaignDialerProofStatus | undefined>;
|
|
21
|
+
runProof: () => Promise<VoiceCampaignDialerProofReport>;
|
|
22
|
+
subscribe: (listener: () => void) => () => void;
|
|
23
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { VoiceClientMessage, VoiceConnectionOptions, VoiceServerMessage } from
|
|
1
|
+
import type { VoiceClientMessage, VoiceConnectionOptions, VoiceServerMessage } from "../types";
|
|
2
2
|
type VoiceConnectionHandle = {
|
|
3
3
|
callControl: (message: Omit<VoiceClientMessage & {
|
|
4
|
-
type:
|
|
5
|
-
},
|
|
4
|
+
type: "call_control";
|
|
5
|
+
}, "type">) => void;
|
|
6
6
|
start: (input?: {
|
|
7
7
|
sessionId?: string;
|
|
8
8
|
scenarioId?: string;
|
|
@@ -14,6 +14,7 @@ type VoiceConnectionHandle = {
|
|
|
14
14
|
getSessionId: () => string;
|
|
15
15
|
send: (message: VoiceClientMessage) => void;
|
|
16
16
|
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
17
|
+
simulateDisconnect: () => void;
|
|
17
18
|
subscribe: (callback: (message: VoiceServerMessage) => void) => () => void;
|
|
18
19
|
};
|
|
19
20
|
export declare const createVoiceConnection: (path: string, options?: VoiceConnectionOptions) => VoiceConnectionHandle;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { VoiceController, VoiceControllerOptions } from
|
|
1
|
+
import type { VoiceController, VoiceControllerOptions } from "../types";
|
|
2
2
|
export declare const createVoiceController: <TResult = unknown>(path: string, options?: VoiceControllerOptions) => VoiceController<TResult>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { StoredVoiceTraceEvent } from "../trace";
|
|
2
|
+
export type VoiceCostDashboardBucket = {
|
|
3
|
+
bucketKey: string;
|
|
4
|
+
callCount: number;
|
|
5
|
+
llmUsd: number;
|
|
6
|
+
sttUsd: number;
|
|
7
|
+
telephonyMinutes: number;
|
|
8
|
+
telephonyUsd: number;
|
|
9
|
+
totalUsd: number;
|
|
10
|
+
ttsUsd: number;
|
|
11
|
+
};
|
|
12
|
+
export type VoiceCostDashboardReport = {
|
|
13
|
+
buckets: VoiceCostDashboardBucket[];
|
|
14
|
+
generatedAt: number;
|
|
15
|
+
grandTotal: VoiceCostDashboardBucket;
|
|
16
|
+
windowEndMs: number;
|
|
17
|
+
windowStartMs: number;
|
|
18
|
+
};
|
|
19
|
+
export type VoiceCostDashboardOptions = {
|
|
20
|
+
bucketBy?: "day" | "hour" | "month";
|
|
21
|
+
events: ReadonlyArray<StoredVoiceTraceEvent>;
|
|
22
|
+
/** Inclusive bucket start filter, epoch ms. */
|
|
23
|
+
fromMs?: number;
|
|
24
|
+
/** Inclusive bucket end filter, epoch ms. */
|
|
25
|
+
toMs?: number;
|
|
26
|
+
};
|
|
27
|
+
export declare const buildVoiceCostDashboardReport: (options: VoiceCostDashboardOptions) => VoiceCostDashboardReport;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { VoiceConnectionOptions, VoiceStream } from
|
|
1
|
+
import type { VoiceConnectionOptions, VoiceStream } from "../types";
|
|
2
2
|
export declare const createVoiceStream: <TResult = unknown>(path: string, options?: VoiceConnectionOptions) => VoiceStream<TResult>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { VoiceDeliveryRuntimeReport } from "../deliveryRuntime";
|
|
2
|
+
export type VoiceDeliveryRuntimeClientOptions = {
|
|
3
|
+
fetch?: typeof fetch;
|
|
4
|
+
intervalMs?: number;
|
|
5
|
+
requeueDeadLettersPath?: string;
|
|
6
|
+
tickPath?: string;
|
|
7
|
+
};
|
|
8
|
+
export type VoiceDeliveryRuntimeSnapshot = {
|
|
9
|
+
actionError: string | null;
|
|
10
|
+
actionStatus: "idle" | "running" | "completed" | "failed";
|
|
11
|
+
error: string | null;
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
lastAction?: VoiceDeliveryRuntimeActionResult;
|
|
14
|
+
report?: VoiceDeliveryRuntimeReport;
|
|
15
|
+
updatedAt?: number;
|
|
16
|
+
};
|
|
17
|
+
export type VoiceDeliveryRuntimeAction = "tick" | "requeue-dead-letters";
|
|
18
|
+
export type VoiceDeliveryRuntimeActionResult = {
|
|
19
|
+
action: VoiceDeliveryRuntimeAction;
|
|
20
|
+
result?: unknown;
|
|
21
|
+
summary?: VoiceDeliveryRuntimeReport["summary"];
|
|
22
|
+
updatedAt: number;
|
|
23
|
+
};
|
|
24
|
+
export declare const fetchVoiceDeliveryRuntime: (path?: string, options?: Pick<VoiceDeliveryRuntimeClientOptions, "fetch">) => Promise<VoiceDeliveryRuntimeReport>;
|
|
25
|
+
export declare const runVoiceDeliveryRuntimeAction: (action: VoiceDeliveryRuntimeAction, path?: string, options?: VoiceDeliveryRuntimeClientOptions) => Promise<VoiceDeliveryRuntimeActionResult>;
|
|
26
|
+
export declare const createVoiceDeliveryRuntimeStore: (path?: string, options?: VoiceDeliveryRuntimeClientOptions) => {
|
|
27
|
+
close: () => void;
|
|
28
|
+
getServerSnapshot: () => VoiceDeliveryRuntimeSnapshot;
|
|
29
|
+
getSnapshot: () => VoiceDeliveryRuntimeSnapshot;
|
|
30
|
+
requeueDeadLetters: () => Promise<VoiceDeliveryRuntimeActionResult | undefined>;
|
|
31
|
+
refresh: () => Promise<VoiceDeliveryRuntimeReport | undefined>;
|
|
32
|
+
tick: () => Promise<VoiceDeliveryRuntimeActionResult | undefined>;
|
|
33
|
+
subscribe: (listener: () => void) => () => void;
|
|
34
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type VoiceDeliveryRuntimeClientOptions, type VoiceDeliveryRuntimeSnapshot } from "./deliveryRuntime";
|
|
2
|
+
export type VoiceDeliveryRuntimeSurfaceView = {
|
|
3
|
+
deadLettered: number;
|
|
4
|
+
detail: string;
|
|
5
|
+
failed: number;
|
|
6
|
+
id: "audit" | "trace";
|
|
7
|
+
label: string;
|
|
8
|
+
pending: number;
|
|
9
|
+
status: "pass" | "warn" | "disabled";
|
|
10
|
+
total: number;
|
|
11
|
+
};
|
|
12
|
+
export type VoiceDeliveryRuntimeViewModel = {
|
|
13
|
+
description: string;
|
|
14
|
+
error: string | null;
|
|
15
|
+
actionError: string | null;
|
|
16
|
+
actionStatus: VoiceDeliveryRuntimeSnapshot["actionStatus"];
|
|
17
|
+
isLoading: boolean;
|
|
18
|
+
isRunning: boolean;
|
|
19
|
+
label: string;
|
|
20
|
+
status: "pass" | "warn" | "loading" | "error";
|
|
21
|
+
surfaces: VoiceDeliveryRuntimeSurfaceView[];
|
|
22
|
+
title: string;
|
|
23
|
+
updatedAt?: number;
|
|
24
|
+
};
|
|
25
|
+
export type VoiceDeliveryRuntimeWidgetOptions = VoiceDeliveryRuntimeClientOptions & {
|
|
26
|
+
description?: string;
|
|
27
|
+
includeActions?: boolean;
|
|
28
|
+
title?: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const createVoiceDeliveryRuntimeViewModel: (snapshot: VoiceDeliveryRuntimeSnapshot, options?: VoiceDeliveryRuntimeWidgetOptions) => VoiceDeliveryRuntimeViewModel;
|
|
31
|
+
export declare const renderVoiceDeliveryRuntimeHTML: (snapshot: VoiceDeliveryRuntimeSnapshot, options?: VoiceDeliveryRuntimeWidgetOptions) => string;
|
|
32
|
+
export declare const getVoiceDeliveryRuntimeCSS: () => string;
|
|
33
|
+
export declare const mountVoiceDeliveryRuntime: (element: Element, path?: string, options?: VoiceDeliveryRuntimeWidgetOptions) => {
|
|
34
|
+
close: () => void;
|
|
35
|
+
refresh: () => Promise<import("..").VoiceDeliveryRuntimeReport | undefined>;
|
|
36
|
+
};
|
|
37
|
+
export declare const defineVoiceDeliveryRuntimeElement: (tagName?: string) => void;
|
package/dist/client/duplex.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { VoiceAudioPlayer, VoiceBargeInBinding, VoiceBargeInOptions, VoiceController, VoiceDuplexController, VoiceDuplexControllerOptions } from
|
|
2
|
-
export declare const bindVoiceBargeIn: <TResult = unknown>(controller: Pick<VoiceController<TResult>, "partial" | "sendAudio" | "subscribe">, player: Pick<VoiceAudioPlayer, "interrupt" | "isPlaying">, options?: VoiceBargeInOptions) => VoiceBargeInBinding;
|
|
1
|
+
import type { VoiceAudioPlayer, VoiceBargeInBinding, VoiceBargeInOptions, VoiceController, VoiceDuplexController, VoiceDuplexControllerOptions } from "../types";
|
|
2
|
+
export declare const bindVoiceBargeIn: <TResult = unknown>(controller: Pick<VoiceController<TResult>, "partial" | "sendAudio" | "sessionId" | "subscribe">, player: Pick<VoiceAudioPlayer, "interrupt" | "isPlaying" | "lastInterruptLatencyMs" | "lastPlaybackStopLatencyMs">, options?: VoiceBargeInOptions) => VoiceBargeInBinding;
|
|
3
3
|
export declare const createVoiceDuplexController: <TResult = unknown>(path: string, options?: VoiceDuplexControllerOptions) => VoiceDuplexController<TResult>;
|
package/dist/client/htmx.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { VoiceHTMXBindingOptions, VoiceStream } from
|
|
1
|
+
import type { VoiceHTMXBindingOptions, VoiceStream } from "../types";
|
|
2
2
|
export declare const bindVoiceHTMX: <TResult = unknown>(stream: VoiceStream<TResult>, options: VoiceHTMXBindingOptions) => () => void;
|