@absolutejs/voice 0.0.22-beta.5 → 0.0.22-beta.500
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 +26 -2
- package/dist/angular/index.js +3703 -246
- 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-delivery-runtime.component.d.ts +17 -0
- package/dist/angular/voice-delivery-runtime.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 +12 -0
- 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-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 +6 -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 +12 -0
- package/dist/assistant.d.ts +12 -13
- package/dist/assistantHealth.d.ts +81 -0
- 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 +117 -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 +5 -1
- 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 +1011 -16
- package/dist/client/index.d.ts +104 -7
- package/dist/client/index.js +10409 -10
- 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 +19 -0
- 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 +19 -0
- 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 +44 -0
- package/dist/evalRoutes.d.ts +219 -0
- 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 +54 -0
- package/dist/handoffHealth.d.ts +94 -0
- 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 -46
- package/dist/index.js +42417 -4242
- 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 +135 -2
- 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 +80 -0
- 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 +126 -0
- 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 +48 -0
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerDecisionTraces.d.ts +130 -0
- package/dist/providerHealth.d.ts +79 -0
- 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 +76 -0
- package/dist/queue.d.ts +72 -11
- 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 -2
- package/dist/react/index.js +12290 -15
- 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 +6 -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 +8 -0
- 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 +6 -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 +8 -0
- 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 +146 -0
- 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 +187 -0
- 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/createVoiceDeliveryRuntime.d.ts +11 -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 +10 -0
- package/dist/svelte/createVoiceReadinessFailures.d.ts +7 -0
- package/dist/svelte/createVoiceReconnectProfileEvidence.d.ts +7 -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 +8 -0
- package/dist/svelte/index.d.ts +27 -2
- package/dist/svelte/index.js +6010 -150
- 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 -11
- package/dist/testing/index.js +9117 -2592
- package/dist/testing/ioProviderSimulator.d.ts +41 -0
- package/dist/testing/providerSimulator.d.ts +44 -0
- 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 +366 -71
- 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/VoiceDeliveryRuntime.d.ts +30 -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/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 +44 -2
- package/dist/vue/index.js +11027 -31
- 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 +9 -0
- 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 +7 -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 +9 -0
- package/dist/webhookVerification.d.ts +27 -0
- package/dist/workflowContract.d.ts +91 -0
- package/fixtures/manifest.json +356 -197
- package/package.json +265 -256
package/dist/agent.d.ts
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
import type { VoiceOnTurnObjectHandler, VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord, VoiceTurnRecord } from
|
|
2
|
-
import type { VoiceTraceEventStore } from
|
|
3
|
-
|
|
1
|
+
import type { VoiceOnTurnObjectHandler, VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord, VoiceTurnRecord } from "./types";
|
|
2
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
3
|
+
import type { VoiceToolRuntime } from "./toolRuntime";
|
|
4
|
+
import { type VoiceAuditEventStore, type VoiceAuditLogger } from "./audit";
|
|
5
|
+
export type VoiceAgentMessageRole = "assistant" | "system" | "tool" | "user";
|
|
6
|
+
export type VoiceAgentImageMediaType = "image/gif" | "image/jpeg" | "image/png" | "image/webp";
|
|
7
|
+
export type VoiceAgentMessageAttachment = {
|
|
8
|
+
data: string;
|
|
9
|
+
kind: "image";
|
|
10
|
+
mediaType: VoiceAgentImageMediaType;
|
|
11
|
+
} | {
|
|
12
|
+
data: string;
|
|
13
|
+
kind: "document";
|
|
14
|
+
mediaType: "application/pdf";
|
|
15
|
+
name?: string;
|
|
16
|
+
};
|
|
4
17
|
export type VoiceAgentMessage = {
|
|
18
|
+
attachments?: VoiceAgentMessageAttachment[];
|
|
5
19
|
content: string;
|
|
6
20
|
metadata?: Record<string, unknown>;
|
|
7
21
|
name?: string;
|
|
@@ -18,7 +32,7 @@ export type VoiceAgentToolResult<TResult = unknown> = {
|
|
|
18
32
|
error?: string;
|
|
19
33
|
metadata?: Record<string, unknown>;
|
|
20
34
|
result?: TResult;
|
|
21
|
-
status:
|
|
35
|
+
status: "error" | "ok";
|
|
22
36
|
toolCallId?: string;
|
|
23
37
|
toolName: string;
|
|
24
38
|
};
|
|
@@ -59,12 +73,45 @@ export type VoiceAgentModelOutput<TResult = unknown> = VoiceRouteResult<TResult>
|
|
|
59
73
|
export type VoiceAgentModel<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
60
74
|
generate: (input: VoiceAgentModelInput<TContext, TSession>) => Promise<VoiceAgentModelOutput<TResult>> | VoiceAgentModelOutput<TResult>;
|
|
61
75
|
};
|
|
76
|
+
export type VoiceAgentSquadHandoffStatus = "allowed" | "blocked" | "max-exceeded" | "unknown-target";
|
|
77
|
+
export type VoiceAgentSquadStateHandoff = {
|
|
78
|
+
at: number;
|
|
79
|
+
fromAgentId: string;
|
|
80
|
+
metadata?: Record<string, unknown>;
|
|
81
|
+
originalTargetAgentId?: string;
|
|
82
|
+
reason?: string;
|
|
83
|
+
status: VoiceAgentSquadHandoffStatus;
|
|
84
|
+
summary?: string;
|
|
85
|
+
targetAgentId: string;
|
|
86
|
+
turnId: string;
|
|
87
|
+
};
|
|
88
|
+
export type VoiceAgentSquadState = {
|
|
89
|
+
agentId: string;
|
|
90
|
+
handoffCount: number;
|
|
91
|
+
handoffs: VoiceAgentSquadStateHandoff[];
|
|
92
|
+
lastHandoff?: VoiceAgentSquadStateHandoff;
|
|
93
|
+
previousAgentId?: string;
|
|
94
|
+
};
|
|
62
95
|
export type VoiceAgentRunResult<TResult = unknown> = VoiceRouteResult<TResult> & {
|
|
63
96
|
agentId: string;
|
|
64
|
-
handoff?: VoiceAgentModelOutput<TResult>[
|
|
97
|
+
handoff?: VoiceAgentModelOutput<TResult>["handoff"];
|
|
65
98
|
messages: VoiceAgentMessage[];
|
|
99
|
+
squad?: VoiceAgentSquadState;
|
|
66
100
|
toolResults: VoiceAgentToolResult[];
|
|
67
101
|
};
|
|
102
|
+
export type VoiceAgentSquadHandoffPolicyResult<TResult = unknown> = {
|
|
103
|
+
allow?: boolean;
|
|
104
|
+
escalate?: VoiceRouteResult<TResult>["escalate"];
|
|
105
|
+
metadata?: Record<string, unknown>;
|
|
106
|
+
reason?: string;
|
|
107
|
+
summary?: string;
|
|
108
|
+
targetAgentId?: string;
|
|
109
|
+
};
|
|
110
|
+
export type VoiceAgentSquadContextPolicyResult = {
|
|
111
|
+
messages?: VoiceAgentMessage[];
|
|
112
|
+
metadata?: Record<string, unknown>;
|
|
113
|
+
system?: string;
|
|
114
|
+
};
|
|
68
115
|
export type VoiceAgent<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
69
116
|
id: string;
|
|
70
117
|
onTurn: VoiceOnTurnObjectHandler<TContext, TSession, TResult>;
|
|
@@ -73,10 +120,14 @@ export type VoiceAgent<TContext = unknown, TSession extends VoiceSessionRecord =
|
|
|
73
120
|
context: TContext;
|
|
74
121
|
messages?: VoiceAgentMessage[];
|
|
75
122
|
session: TSession;
|
|
123
|
+
system?: string;
|
|
76
124
|
turn: VoiceTurnRecord;
|
|
77
125
|
}) => Promise<VoiceAgentRunResult<TResult>>;
|
|
78
126
|
};
|
|
79
127
|
export type VoiceAgentOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
128
|
+
audit?: VoiceAuditEventStore | VoiceAuditLogger;
|
|
129
|
+
auditModel?: string;
|
|
130
|
+
auditProvider?: string;
|
|
80
131
|
id: string;
|
|
81
132
|
maxToolRounds?: number;
|
|
82
133
|
model: VoiceAgentModel<TContext, TSession, TResult>;
|
|
@@ -86,18 +137,41 @@ export type VoiceAgentOptions<TContext = unknown, TSession extends VoiceSessionR
|
|
|
86
137
|
turn: VoiceTurnRecord;
|
|
87
138
|
}) => Promise<string | undefined> | string | undefined);
|
|
88
139
|
trace?: VoiceTraceEventStore;
|
|
140
|
+
toolRuntime?: VoiceToolRuntime<TContext, TSession, TResult>;
|
|
89
141
|
tools?: Array<VoiceAgentTool<TContext, TSession, Record<string, unknown>, unknown, TResult>>;
|
|
90
142
|
};
|
|
91
143
|
export type VoiceAgentSquadOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
144
|
+
audit?: VoiceAuditEventStore | VoiceAuditLogger;
|
|
92
145
|
agents: Array<VoiceAgent<TContext, TSession, TResult>>;
|
|
93
146
|
defaultAgentId: string;
|
|
147
|
+
handoffPolicy?: (input: {
|
|
148
|
+
context: TContext;
|
|
149
|
+
fromAgentId: string;
|
|
150
|
+
handoff: NonNullable<VoiceAgentModelOutput<TResult>["handoff"]>;
|
|
151
|
+
messages: VoiceAgentMessage[];
|
|
152
|
+
session: TSession;
|
|
153
|
+
targetAgent?: VoiceAgent<TContext, TSession, TResult>;
|
|
154
|
+
turn: VoiceTurnRecord;
|
|
155
|
+
}) => Promise<VoiceAgentSquadHandoffPolicyResult<TResult> | void> | VoiceAgentSquadHandoffPolicyResult<TResult> | void;
|
|
156
|
+
contextPolicy?: (input: {
|
|
157
|
+
context: TContext;
|
|
158
|
+
fromAgentId: string;
|
|
159
|
+
handoff: VoiceAgentSquadStateHandoff;
|
|
160
|
+
messages: VoiceAgentMessage[];
|
|
161
|
+
session: TSession;
|
|
162
|
+
summaryMessage: VoiceAgentMessage;
|
|
163
|
+
targetAgent: VoiceAgent<TContext, TSession, TResult>;
|
|
164
|
+
turn: VoiceTurnRecord;
|
|
165
|
+
}) => Promise<VoiceAgentSquadContextPolicyResult | void> | VoiceAgentSquadContextPolicyResult | void;
|
|
94
166
|
id: string;
|
|
95
167
|
maxHandoffsPerTurn?: number;
|
|
96
168
|
onHandoff?: (input: {
|
|
97
169
|
context: TContext;
|
|
98
170
|
fromAgentId: string;
|
|
171
|
+
metadata?: Record<string, unknown>;
|
|
99
172
|
reason?: string;
|
|
100
173
|
session: TSession;
|
|
174
|
+
summary?: string;
|
|
101
175
|
targetAgentId: string;
|
|
102
176
|
turn: VoiceTurnRecord;
|
|
103
177
|
}) => Promise<void> | void;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { VoiceAgent, VoiceAgentRunResult, VoiceAgentSquadHandoffStatus } from "./agent";
|
|
2
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
3
|
+
import type { VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord } from "./types";
|
|
4
|
+
export type VoiceAgentSquadContractOutcome = "assistant" | "complete" | "escalate" | "no-answer" | "transfer" | "voicemail";
|
|
5
|
+
export type VoiceAgentSquadHandoffExpectation = {
|
|
6
|
+
fromAgentId?: string;
|
|
7
|
+
metadata?: Record<string, unknown>;
|
|
8
|
+
reason?: string;
|
|
9
|
+
reasonIncludes?: string[];
|
|
10
|
+
status?: VoiceAgentSquadHandoffStatus;
|
|
11
|
+
summary?: string;
|
|
12
|
+
summaryIncludes?: string[];
|
|
13
|
+
targetAgentId?: string;
|
|
14
|
+
};
|
|
15
|
+
export type VoiceAgentSquadTurnExpectation<TResult = unknown> = {
|
|
16
|
+
assistantIncludes?: string[];
|
|
17
|
+
finalAgentId?: string;
|
|
18
|
+
handoffs?: VoiceAgentSquadHandoffExpectation[];
|
|
19
|
+
outcome?: VoiceAgentSquadContractOutcome;
|
|
20
|
+
result?: (input: {
|
|
21
|
+
result: TResult | undefined;
|
|
22
|
+
routeResult: VoiceRouteResult<TResult>;
|
|
23
|
+
}) => VoiceAgentSquadContractIssue[];
|
|
24
|
+
transferTarget?: string;
|
|
25
|
+
};
|
|
26
|
+
export type VoiceAgentSquadContractTurn<TResult = unknown> = {
|
|
27
|
+
expect?: VoiceAgentSquadTurnExpectation<TResult>;
|
|
28
|
+
id?: string;
|
|
29
|
+
text: string;
|
|
30
|
+
};
|
|
31
|
+
export type VoiceAgentSquadContractDefinition<TResult = unknown> = {
|
|
32
|
+
description?: string;
|
|
33
|
+
id: string;
|
|
34
|
+
label?: string;
|
|
35
|
+
scenarioId?: string;
|
|
36
|
+
turns: Array<VoiceAgentSquadContractTurn<TResult>>;
|
|
37
|
+
};
|
|
38
|
+
export type VoiceAgentSquadContractIssue = {
|
|
39
|
+
code: string;
|
|
40
|
+
message: string;
|
|
41
|
+
turnId?: string;
|
|
42
|
+
};
|
|
43
|
+
export type VoiceAgentSquadContractTurnReport<TResult = unknown> = {
|
|
44
|
+
agentId: string;
|
|
45
|
+
handoffs: VoiceAgentSquadHandoffExpectation[];
|
|
46
|
+
issues: VoiceAgentSquadContractIssue[];
|
|
47
|
+
outcome?: VoiceAgentSquadContractOutcome;
|
|
48
|
+
pass: boolean;
|
|
49
|
+
result: VoiceAgentRunResult<TResult>;
|
|
50
|
+
turnId: string;
|
|
51
|
+
};
|
|
52
|
+
export type VoiceAgentSquadContractReport<TResult = unknown> = {
|
|
53
|
+
contractId: string;
|
|
54
|
+
issues: VoiceAgentSquadContractIssue[];
|
|
55
|
+
pass: boolean;
|
|
56
|
+
scenarioId?: string;
|
|
57
|
+
sessionId: string;
|
|
58
|
+
turns: Array<VoiceAgentSquadContractTurnReport<TResult>>;
|
|
59
|
+
};
|
|
60
|
+
export type VoiceAgentSquadContractRunOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
61
|
+
api?: VoiceSessionHandle<TContext, TSession, TResult>;
|
|
62
|
+
context: TContext;
|
|
63
|
+
contract: VoiceAgentSquadContractDefinition<TResult>;
|
|
64
|
+
session?: TSession;
|
|
65
|
+
squad: VoiceAgent<TContext, TSession, TResult>;
|
|
66
|
+
trace?: VoiceTraceEventStore;
|
|
67
|
+
};
|
|
68
|
+
export type VoiceAgentSquadContractAssertionInput = {
|
|
69
|
+
maxBlockedHandoffs?: number;
|
|
70
|
+
maxFailed?: number;
|
|
71
|
+
maxIssues?: number;
|
|
72
|
+
minContracts?: number;
|
|
73
|
+
minHandoffs?: number;
|
|
74
|
+
requiredContractIds?: string[];
|
|
75
|
+
requiredFinalAgentIds?: string[];
|
|
76
|
+
requiredHandoffStatuses?: VoiceAgentSquadHandoffStatus[];
|
|
77
|
+
requiredHandoffTargets?: string[];
|
|
78
|
+
requiredScenarioIds?: string[];
|
|
79
|
+
};
|
|
80
|
+
export type VoiceAgentSquadContractAssertionReport = {
|
|
81
|
+
blockedHandoffs: number;
|
|
82
|
+
contractIds: string[];
|
|
83
|
+
failed: number;
|
|
84
|
+
finalAgentIds: string[];
|
|
85
|
+
handoffStatuses: VoiceAgentSquadHandoffStatus[];
|
|
86
|
+
handoffTargets: string[];
|
|
87
|
+
handoffs: number;
|
|
88
|
+
issues: string[];
|
|
89
|
+
issueCount: number;
|
|
90
|
+
ok: boolean;
|
|
91
|
+
passed: number;
|
|
92
|
+
scenarioIds: string[];
|
|
93
|
+
total: number;
|
|
94
|
+
};
|
|
95
|
+
export declare const runVoiceAgentSquadContract: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options: VoiceAgentSquadContractRunOptions<TContext, TSession, TResult>) => Promise<VoiceAgentSquadContractReport<TResult>>;
|
|
96
|
+
export declare const assertVoiceAgentSquadContract: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options: VoiceAgentSquadContractRunOptions<TContext, TSession, TResult>) => Promise<VoiceAgentSquadContractReport<TResult>>;
|
|
97
|
+
export declare const evaluateVoiceAgentSquadContractEvidence: (reports: readonly VoiceAgentSquadContractReport[], input?: VoiceAgentSquadContractAssertionInput) => VoiceAgentSquadContractAssertionReport;
|
|
98
|
+
export declare const assertVoiceAgentSquadContractEvidence: (reports: readonly VoiceAgentSquadContractReport[], input?: VoiceAgentSquadContractAssertionInput) => VoiceAgentSquadContractAssertionReport;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type VoiceAgentUIState = "idle" | "listening" | "speaking" | "thinking";
|
|
2
|
+
export type VoiceAgentUIInput = {
|
|
3
|
+
hasActivePartial: boolean;
|
|
4
|
+
isConnected: boolean;
|
|
5
|
+
isPlaying: boolean;
|
|
6
|
+
isRecording: boolean;
|
|
7
|
+
lastAssistantAt?: number;
|
|
8
|
+
lastTranscriptAt?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const deriveVoiceAgentUIState: (input: VoiceAgentUIInput) => VoiceAgentUIState;
|
|
11
|
+
export declare const describeVoiceAgentUIState: (state: VoiceAgentUIState) => string;
|
|
12
|
+
export declare const voiceAgentUIStateOrder: ReadonlyArray<VoiceAgentUIState>;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { type VoiceAgentTool } from "./agent";
|
|
2
|
+
import type { VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord } from "./types";
|
|
3
|
+
export type VoiceEndCallToolArgs = {
|
|
4
|
+
reason?: string;
|
|
5
|
+
};
|
|
6
|
+
export type VoiceEndCallToolResult = {
|
|
7
|
+
farewell?: string;
|
|
8
|
+
ok: true;
|
|
9
|
+
reason?: string;
|
|
10
|
+
};
|
|
11
|
+
export type VoiceEndCallToolOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
12
|
+
description?: string;
|
|
13
|
+
farewell?: string | ((input: {
|
|
14
|
+
args: VoiceEndCallToolArgs;
|
|
15
|
+
context: TContext;
|
|
16
|
+
session: TSession;
|
|
17
|
+
}) => string | undefined);
|
|
18
|
+
name?: string;
|
|
19
|
+
resolveResult?: (input: {
|
|
20
|
+
args: VoiceEndCallToolArgs;
|
|
21
|
+
context: TContext;
|
|
22
|
+
session: TSession;
|
|
23
|
+
}) => TResult | undefined;
|
|
24
|
+
};
|
|
25
|
+
export declare const createVoiceEndCallTool: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options?: VoiceEndCallToolOptions<TContext, TSession, TResult>) => VoiceAgentTool<TContext, TSession, VoiceEndCallToolArgs, VoiceEndCallToolResult, TResult>;
|
|
26
|
+
export type VoiceTransferCallToolDestination = {
|
|
27
|
+
description?: string;
|
|
28
|
+
id: string;
|
|
29
|
+
message?: string;
|
|
30
|
+
metadata?: Record<string, unknown>;
|
|
31
|
+
target: string;
|
|
32
|
+
transferMode?: "cold" | "warm";
|
|
33
|
+
};
|
|
34
|
+
export type VoiceTransferCallToolArgs = {
|
|
35
|
+
destinationId: string;
|
|
36
|
+
reason?: string;
|
|
37
|
+
};
|
|
38
|
+
export type VoiceTransferCallToolResult = {
|
|
39
|
+
destinationId: string;
|
|
40
|
+
message?: string;
|
|
41
|
+
ok: true;
|
|
42
|
+
target: string;
|
|
43
|
+
};
|
|
44
|
+
export type VoiceTransferCallToolOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
45
|
+
description?: string;
|
|
46
|
+
destinations: readonly VoiceTransferCallToolDestination[];
|
|
47
|
+
name?: string;
|
|
48
|
+
resolveResult?: (input: {
|
|
49
|
+
args: VoiceTransferCallToolArgs;
|
|
50
|
+
context: TContext;
|
|
51
|
+
destination: VoiceTransferCallToolDestination;
|
|
52
|
+
session: TSession;
|
|
53
|
+
}) => TResult | undefined;
|
|
54
|
+
};
|
|
55
|
+
export declare const createVoiceTransferCallTool: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options: VoiceTransferCallToolOptions<TContext, TSession, TResult>) => VoiceAgentTool<TContext, TSession, VoiceTransferCallToolArgs, VoiceTransferCallToolResult, TResult>;
|
|
56
|
+
export type VoiceDTMFToolArgs = {
|
|
57
|
+
digits: string;
|
|
58
|
+
};
|
|
59
|
+
export type VoiceDTMFToolResult = {
|
|
60
|
+
digits: string;
|
|
61
|
+
ok: true;
|
|
62
|
+
};
|
|
63
|
+
export type VoiceDTMFToolOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord> = {
|
|
64
|
+
allowedDigits?: string;
|
|
65
|
+
description?: string;
|
|
66
|
+
maxDigits?: number;
|
|
67
|
+
name?: string;
|
|
68
|
+
send: (input: {
|
|
69
|
+
api: VoiceSessionHandle<TContext, TSession>;
|
|
70
|
+
args: VoiceDTMFToolArgs;
|
|
71
|
+
context: TContext;
|
|
72
|
+
session: TSession;
|
|
73
|
+
}) => Promise<void> | void;
|
|
74
|
+
};
|
|
75
|
+
export declare const createVoiceDTMFTool: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceDTMFToolOptions<TContext, TSession>) => VoiceAgentTool<TContext, TSession, VoiceDTMFToolArgs, VoiceDTMFToolResult>;
|
|
76
|
+
export type VoiceVoicemailDetectionToolArgs = {
|
|
77
|
+
confidence?: number;
|
|
78
|
+
reason?: string;
|
|
79
|
+
};
|
|
80
|
+
export type VoiceVoicemailDetectionToolResult = {
|
|
81
|
+
confidence?: number;
|
|
82
|
+
ok: true;
|
|
83
|
+
reason?: string;
|
|
84
|
+
};
|
|
85
|
+
export type VoiceVoicemailDetectionToolOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
86
|
+
completeAfterMarking?: boolean;
|
|
87
|
+
description?: string;
|
|
88
|
+
message?: string;
|
|
89
|
+
name?: string;
|
|
90
|
+
resolveResult?: (input: {
|
|
91
|
+
args: VoiceVoicemailDetectionToolArgs;
|
|
92
|
+
context: TContext;
|
|
93
|
+
session: TSession;
|
|
94
|
+
}) => TResult | undefined;
|
|
95
|
+
};
|
|
96
|
+
export declare const createVoiceVoicemailDetectionTool: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options?: VoiceVoicemailDetectionToolOptions<TContext, TSession, TResult>) => VoiceAgentTool<TContext, TSession, VoiceVoicemailDetectionToolArgs, VoiceVoicemailDetectionToolResult, TResult>;
|
|
97
|
+
export type VoiceApiRequestToolHttpMethod = "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
|
|
98
|
+
export type VoiceApiRequestToolArgs = Record<string, unknown>;
|
|
99
|
+
export type VoiceApiRequestToolResult<TResponse = unknown> = {
|
|
100
|
+
body: TResponse;
|
|
101
|
+
ok: boolean;
|
|
102
|
+
status: number;
|
|
103
|
+
url: string;
|
|
104
|
+
};
|
|
105
|
+
export type VoiceApiRequestToolFetch = (request: Request) => Promise<Response> | Response;
|
|
106
|
+
export type VoiceApiRequestToolOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TArgs extends VoiceApiRequestToolArgs = VoiceApiRequestToolArgs, TResponse = unknown> = {
|
|
107
|
+
buildBody?: (input: {
|
|
108
|
+
args: TArgs;
|
|
109
|
+
context: TContext;
|
|
110
|
+
session: TSession;
|
|
111
|
+
}) => unknown;
|
|
112
|
+
buildHeaders?: (input: {
|
|
113
|
+
args: TArgs;
|
|
114
|
+
context: TContext;
|
|
115
|
+
session: TSession;
|
|
116
|
+
}) => HeadersInit | undefined;
|
|
117
|
+
buildQuery?: (input: {
|
|
118
|
+
args: TArgs;
|
|
119
|
+
context: TContext;
|
|
120
|
+
session: TSession;
|
|
121
|
+
}) => Record<string, string | number | undefined> | undefined;
|
|
122
|
+
description: string;
|
|
123
|
+
fetch?: VoiceApiRequestToolFetch;
|
|
124
|
+
formatResult?: (result: VoiceApiRequestToolResult<TResponse>) => string;
|
|
125
|
+
headers?: HeadersInit;
|
|
126
|
+
method?: VoiceApiRequestToolHttpMethod;
|
|
127
|
+
name: string;
|
|
128
|
+
parameters?: Record<string, unknown>;
|
|
129
|
+
parseResponse?: (response: Response) => Promise<TResponse> | TResponse;
|
|
130
|
+
url: string;
|
|
131
|
+
};
|
|
132
|
+
export declare const createVoiceApiRequestTool: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TArgs extends VoiceApiRequestToolArgs = VoiceApiRequestToolArgs, TResponse = unknown>(options: VoiceApiRequestToolOptions<TContext, TSession, TArgs, TResponse>) => VoiceAgentTool<TContext, TSession, TArgs, VoiceApiRequestToolResult<TResponse>>;
|
|
133
|
+
export type VoiceRouteResultLike = VoiceRouteResult<unknown>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AIProviderConfig, AIUsage } from "@absolutejs/ai";
|
|
2
|
+
import type { VoiceAgentModel } from "./agent";
|
|
3
|
+
import type { VoiceSessionRecord } from "./types";
|
|
4
|
+
export type CreateAIVoiceModelOptions = {
|
|
5
|
+
model: string;
|
|
6
|
+
onUsage?: (usage: AIUsage & {
|
|
7
|
+
model: string;
|
|
8
|
+
provider?: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
provider: AIProviderConfig;
|
|
11
|
+
providerName?: string;
|
|
12
|
+
signal?: AbortSignal;
|
|
13
|
+
systemPrompt?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const createAIVoiceModel: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options: CreateAIVoiceModelOptions) => VoiceAgentModel<TContext, TSession, TResult>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Transcript, VoiceSessionHandle, VoiceSessionRecord } from "./types";
|
|
2
|
+
export type VoiceAMDDetectorInput<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
3
|
+
api: VoiceSessionHandle<TContext, TSession, TResult>;
|
|
4
|
+
audioLevel: number | undefined;
|
|
5
|
+
elapsedSinceFirstAudioMs: number;
|
|
6
|
+
elapsedSinceLastTurnCommitMs: number;
|
|
7
|
+
partialTranscript: string;
|
|
8
|
+
session: TSession;
|
|
9
|
+
transcripts: Transcript[];
|
|
10
|
+
};
|
|
11
|
+
export type VoiceAMDVerdict = {
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
13
|
+
reason?: string;
|
|
14
|
+
};
|
|
15
|
+
export type VoiceAMDDetector<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
16
|
+
evaluate: (input: VoiceAMDDetectorInput<TContext, TSession, TResult>) => Promise<VoiceAMDVerdict | undefined> | VoiceAMDVerdict | undefined;
|
|
17
|
+
intervalMs?: number;
|
|
18
|
+
};
|
|
19
|
+
export type MonologueAMDDetectorOptions = {
|
|
20
|
+
intervalMs?: number;
|
|
21
|
+
minMonologueMs?: number;
|
|
22
|
+
reason?: string;
|
|
23
|
+
requireFirstAudio?: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare const createMonologueAMDDetector: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options?: MonologueAMDDetectorOptions) => VoiceAMDDetector<TContext, TSession, TResult>;
|
package/dist/angular/index.d.ts
CHANGED
|
@@ -1,2 +1,26 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { VoiceOpsStatusService } from "./voice-ops-status.service";
|
|
2
|
+
export { VoiceWidgetService } from "./voice-widget.service";
|
|
3
|
+
export type { CreateVoiceWidgetServiceOptions } from "./voice-widget.service";
|
|
4
|
+
export { VoicePlatformCoverageService } from "./voice-platform-coverage.service";
|
|
5
|
+
export { VoiceProofTrendsService } from "./voice-proof-trends.service";
|
|
6
|
+
export { VoiceReconnectProfileEvidenceService } from "./voice-reconnect-profile-evidence.service";
|
|
7
|
+
export { VoiceCallDebuggerService } from "./voice-call-debugger.service";
|
|
8
|
+
export { VoiceSessionSnapshotService } from "./voice-session-snapshot.service";
|
|
9
|
+
export { VoiceSessionObservabilityService } from "./voice-session-observability.service";
|
|
10
|
+
export { VoiceProfileComparisonService } from "./voice-profile-comparison.service";
|
|
11
|
+
export { VoiceReadinessFailuresService } from "./voice-readiness-failures.service";
|
|
12
|
+
export { VoiceOpsActionCenterService } from "./voice-ops-action-center.service";
|
|
13
|
+
export { VoiceLiveOpsService } from "./voice-live-ops.service";
|
|
14
|
+
export { VoiceDeliveryRuntimeService } from "./voice-delivery-runtime.service";
|
|
15
|
+
export { VoiceCampaignDialerProofService } from "./voice-campaign-dialer-proof.service";
|
|
16
|
+
export { VoiceStreamService } from "./voice-stream.service";
|
|
17
|
+
export { VoiceControllerService } from "./voice-controller.service";
|
|
18
|
+
export { VoiceProviderCapabilitiesService } from "./voice-provider-capabilities.service";
|
|
19
|
+
export { VoiceProviderContractsService } from "./voice-provider-contracts.service";
|
|
20
|
+
export { VoiceProviderStatusService } from "./voice-provider-status.service";
|
|
21
|
+
export { VoiceRoutingStatusService } from "./voice-routing-status.service";
|
|
22
|
+
export { VoiceTraceTimelineService } from "./voice-trace-timeline.service";
|
|
23
|
+
export { VoiceAgentSquadStatusService } from "./voice-agent-squad-status.service";
|
|
24
|
+
export { VoiceTurnLatencyService } from "./voice-turn-latency.service";
|
|
25
|
+
export { VoiceTurnQualityService } from "./voice-turn-quality.service";
|
|
26
|
+
export { VoiceWorkflowStatusService } from "./voice-workflow-status.service";
|