@absolutejs/voice 0.0.22-beta.439 → 0.0.22-beta.441
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2729 -2698
- package/dist/agent.d.ts +10 -10
- package/dist/agentSquadContract.d.ts +4 -4
- package/dist/angular/index.d.ts +22 -22
- package/dist/angular/voice-agent-squad-status.service.d.ts +1 -1
- package/dist/angular/voice-call-debugger.service.d.ts +2 -2
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +2 -2
- package/dist/angular/voice-controller.service.d.ts +1 -1
- package/dist/angular/voice-delivery-runtime.component.d.ts +2 -2
- package/dist/angular/voice-delivery-runtime.service.d.ts +2 -2
- package/dist/angular/voice-live-ops.service.d.ts +1 -1
- package/dist/angular/voice-ops-action-center.service.d.ts +1 -1
- package/dist/angular/voice-ops-status.component.d.ts +2 -2
- package/dist/angular/voice-ops-status.service.d.ts +2 -2
- package/dist/angular/voice-platform-coverage.service.d.ts +2 -2
- package/dist/angular/voice-profile-comparison.service.d.ts +2 -2
- package/dist/angular/voice-proof-trends.service.d.ts +2 -2
- package/dist/angular/voice-provider-capabilities.service.d.ts +2 -2
- package/dist/angular/voice-provider-contracts.service.d.ts +2 -2
- package/dist/angular/voice-provider-status.service.d.ts +2 -2
- package/dist/angular/voice-readiness-failures.service.d.ts +2 -2
- package/dist/angular/voice-routing-status.service.d.ts +1 -1
- package/dist/angular/voice-session-snapshot.service.d.ts +2 -2
- package/dist/angular/voice-stream.service.d.ts +1 -1
- package/dist/angular/voice-trace-timeline.service.d.ts +2 -2
- package/dist/angular/voice-turn-latency.service.d.ts +2 -2
- package/dist/angular/voice-turn-quality.service.d.ts +2 -2
- package/dist/angular/voice-workflow-status.service.d.ts +2 -2
- package/dist/assistant.d.ts +11 -11
- package/dist/assistantHealth.d.ts +6 -6
- package/dist/assistantMemory.d.ts +3 -3
- package/dist/audioConditioning.d.ts +1 -1
- package/dist/audit.d.ts +11 -11
- package/dist/auditDeliveryRoutes.d.ts +3 -3
- package/dist/auditExport.d.ts +3 -3
- package/dist/auditRoutes.d.ts +2 -2
- package/dist/auditSinks.d.ts +8 -8
- package/dist/bargeInRoutes.d.ts +3 -3
- package/dist/browserCallProfiles.d.ts +2 -2
- package/dist/browserMediaRoutes.d.ts +4 -4
- package/dist/callDebugger.d.ts +6 -6
- package/dist/campaign.d.ts +22 -22
- package/dist/campaignDialers.d.ts +14 -14
- package/dist/client/actions.d.ts +1 -1
- package/dist/client/agentSquadStatus.d.ts +3 -3
- package/dist/client/agentSquadStatusWidget.d.ts +1 -1
- package/dist/client/audioPlayer.d.ts +2 -2
- package/dist/client/bargeInMonitor.d.ts +1 -1
- package/dist/client/browserMedia.d.ts +1 -1
- package/dist/client/callDebugger.d.ts +1 -1
- package/dist/client/callDebuggerWidget.d.ts +3 -3
- package/dist/client/campaignDialerProof.d.ts +1 -1
- package/dist/client/connection.d.ts +3 -3
- package/dist/client/controller.d.ts +1 -1
- package/dist/client/createVoiceStream.d.ts +1 -1
- package/dist/client/deliveryRuntime.d.ts +4 -4
- package/dist/client/deliveryRuntimeWidget.d.ts +5 -5
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmx.d.ts +1 -1
- package/dist/client/index.d.ts +96 -96
- package/dist/client/index.js +41 -15
- package/dist/client/liveOps.d.ts +2 -2
- package/dist/client/liveOpsWidget.d.ts +2 -2
- package/dist/client/liveTurnLatency.d.ts +3 -3
- package/dist/client/microphone.d.ts +4 -4
- package/dist/client/opsActionCenter.d.ts +1 -1
- package/dist/client/opsActionCenterWidget.d.ts +2 -2
- package/dist/client/opsActionHistory.d.ts +1 -1
- package/dist/client/opsActionHistoryWidget.d.ts +1 -1
- package/dist/client/opsStatus.d.ts +1 -1
- package/dist/client/opsStatusWidget.d.ts +4 -4
- package/dist/client/platformCoverage.d.ts +1 -1
- package/dist/client/platformCoverageWidget.d.ts +3 -3
- package/dist/client/profileComparison.d.ts +1 -1
- package/dist/client/profileComparisonWidget.d.ts +2 -2
- package/dist/client/profileSwitchRecommendation.d.ts +1 -1
- package/dist/client/profileSwitchRecommendationWidget.d.ts +1 -1
- package/dist/client/proofTrends.d.ts +1 -1
- package/dist/client/proofTrendsWidget.d.ts +3 -3
- package/dist/client/providerCapabilities.d.ts +1 -1
- package/dist/client/providerCapabilitiesWidget.d.ts +3 -3
- package/dist/client/providerContracts.d.ts +1 -1
- package/dist/client/providerContractsWidget.d.ts +3 -3
- package/dist/client/providerSimulationControls.d.ts +2 -2
- package/dist/client/providerSimulationControlsWidget.d.ts +1 -1
- package/dist/client/providerStatus.d.ts +1 -1
- package/dist/client/providerStatusWidget.d.ts +3 -3
- package/dist/client/readinessFailures.d.ts +1 -1
- package/dist/client/readinessFailuresWidget.d.ts +4 -4
- package/dist/client/routingStatus.d.ts +1 -1
- package/dist/client/routingStatusWidget.d.ts +3 -3
- package/dist/client/sessionSnapshot.d.ts +1 -1
- package/dist/client/sessionSnapshotWidget.d.ts +2 -2
- package/dist/client/store.d.ts +1 -1
- package/dist/client/traceTimeline.d.ts +1 -1
- package/dist/client/traceTimelineWidget.d.ts +3 -3
- package/dist/client/turnLatency.d.ts +1 -1
- package/dist/client/turnLatencyWidget.d.ts +3 -3
- package/dist/client/turnQuality.d.ts +1 -1
- package/dist/client/turnQualityWidget.d.ts +3 -3
- package/dist/client/workflowStatus.d.ts +1 -1
- package/dist/competitiveCoverage.d.ts +9 -9
- package/dist/correction.d.ts +2 -2
- package/dist/dataControl.d.ts +16 -16
- package/dist/deliveryRuntime.d.ts +9 -9
- package/dist/deliverySinkRoutes.d.ts +6 -6
- package/dist/demoReadyRoutes.d.ts +8 -8
- package/dist/diagnosticsRoutes.d.ts +2 -2
- package/dist/evalRoutes.d.ts +4 -4
- package/dist/fileStore.d.ts +9 -9
- package/dist/guardrails.d.ts +9 -9
- package/dist/handoff.d.ts +6 -6
- package/dist/handoffHealth.d.ts +5 -5
- package/dist/htmx.d.ts +1 -1
- package/dist/incidentBundle.d.ts +7 -7
- package/dist/incidentTimeline.d.ts +30 -16
- package/dist/index.d.ts +215 -215
- package/dist/index.js +375 -111
- package/dist/latencySlo.d.ts +4 -4
- package/dist/liveLatency.d.ts +3 -3
- package/dist/liveOps.d.ts +11 -11
- package/dist/logger.d.ts +1 -1
- package/dist/mediaPipelineRoutes.d.ts +2 -2
- package/dist/memoryStore.d.ts +1 -1
- package/dist/modelAdapters.d.ts +9 -9
- package/dist/observabilityExport.d.ts +44 -44
- package/dist/openaiTTS.d.ts +3 -3
- package/dist/operationalStatus.d.ts +5 -5
- package/dist/operationsRecord.d.ts +12 -12
- package/dist/ops.d.ts +12 -12
- package/dist/opsActionAuditRoutes.d.ts +3 -3
- package/dist/opsConsoleRoutes.d.ts +6 -6
- package/dist/opsPresets.d.ts +2 -2
- package/dist/opsRecovery.d.ts +11 -11
- package/dist/opsRuntime.d.ts +6 -6
- package/dist/opsSinks.d.ts +13 -13
- package/dist/opsStatus.d.ts +7 -7
- package/dist/opsStatusRoutes.d.ts +2 -2
- package/dist/opsWebhook.d.ts +6 -6
- package/dist/outcomeContract.d.ts +5 -5
- package/dist/outcomeRecipes.d.ts +4 -4
- package/dist/phoneAgent.d.ts +18 -18
- package/dist/phoneAgentProductionSmoke.d.ts +8 -8
- package/dist/platformCoverage.d.ts +3 -3
- package/dist/plugin.d.ts +2 -2
- package/dist/postCallAnalysis.d.ts +6 -6
- package/dist/postgresStore.d.ts +8 -8
- package/dist/presets.d.ts +3 -3
- package/dist/productionReadiness.d.ts +62 -36
- package/dist/profileSwitchRecommendation.d.ts +15 -15
- package/dist/proofAssertions.d.ts +1 -1
- package/dist/proofPack.d.ts +12 -12
- package/dist/proofRunner.d.ts +5 -5
- package/dist/proofTrends.d.ts +17 -17
- package/dist/providerAdapters.d.ts +5 -5
- package/dist/providerCapabilities.d.ts +4 -4
- package/dist/providerDecisionTraces.d.ts +8 -8
- package/dist/providerHealth.d.ts +3 -3
- package/dist/providerOrchestration.d.ts +5 -5
- package/dist/providerRouterTraces.d.ts +7 -7
- package/dist/providerRoutingContract.d.ts +3 -3
- package/dist/providerSlo.d.ts +6 -6
- package/dist/providerStackRecommendations.d.ts +6 -6
- package/dist/qualityRoutes.d.ts +4 -4
- package/dist/queue.d.ts +16 -16
- package/dist/react/VoiceAgentSquadStatus.d.ts +1 -1
- package/dist/react/VoiceCallDebuggerLaunch.d.ts +1 -1
- package/dist/react/VoiceDeliveryRuntime.d.ts +1 -1
- package/dist/react/VoiceOpsActionCenter.d.ts +1 -1
- package/dist/react/VoiceOpsStatus.d.ts +1 -1
- package/dist/react/VoicePlatformCoverage.d.ts +1 -1
- package/dist/react/VoiceProfileComparison.d.ts +1 -1
- package/dist/react/VoiceProfileSwitchRecommendation.d.ts +1 -1
- package/dist/react/VoiceProofTrends.d.ts +1 -1
- package/dist/react/VoiceProviderCapabilities.d.ts +1 -1
- package/dist/react/VoiceProviderContracts.d.ts +1 -1
- package/dist/react/VoiceProviderSimulationControls.d.ts +1 -1
- package/dist/react/VoiceProviderStatus.d.ts +1 -1
- package/dist/react/VoiceReadinessFailures.d.ts +1 -1
- package/dist/react/VoiceRoutingStatus.d.ts +1 -1
- package/dist/react/VoiceSessionSnapshot.d.ts +1 -1
- package/dist/react/VoiceTraceTimeline.d.ts +1 -1
- package/dist/react/VoiceTurnLatency.d.ts +1 -1
- package/dist/react/VoiceTurnQuality.d.ts +1 -1
- package/dist/react/index.d.ts +43 -43
- package/dist/react/index.js +41 -15
- package/dist/react/useVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/react/useVoiceCallDebugger.d.ts +1 -1
- package/dist/react/useVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/react/useVoiceController.d.ts +1 -1
- package/dist/react/useVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/react/useVoiceLiveOps.d.ts +1 -1
- package/dist/react/useVoiceOpsActionCenter.d.ts +1 -1
- package/dist/react/useVoiceOpsStatus.d.ts +1 -1
- package/dist/react/useVoicePlatformCoverage.d.ts +1 -1
- package/dist/react/useVoiceProfileComparison.d.ts +1 -1
- package/dist/react/useVoiceProfileSwitchRecommendation.d.ts +1 -1
- package/dist/react/useVoiceProofTrends.d.ts +1 -1
- package/dist/react/useVoiceProviderCapabilities.d.ts +1 -1
- package/dist/react/useVoiceProviderContracts.d.ts +1 -1
- package/dist/react/useVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/react/useVoiceProviderStatus.d.ts +1 -1
- package/dist/react/useVoiceReadinessFailures.d.ts +1 -1
- package/dist/react/useVoiceRoutingStatus.d.ts +1 -1
- package/dist/react/useVoiceSessionSnapshot.d.ts +1 -1
- package/dist/react/useVoiceStream.d.ts +1 -1
- package/dist/react/useVoiceTraceTimeline.d.ts +1 -1
- package/dist/react/useVoiceTurnLatency.d.ts +1 -1
- package/dist/react/useVoiceTurnQuality.d.ts +1 -1
- package/dist/react/useVoiceWorkflowStatus.d.ts +1 -1
- package/dist/readinessProfiles.d.ts +22 -15
- package/dist/realtimeChannel.d.ts +6 -6
- package/dist/realtimeProviderContracts.d.ts +7 -7
- package/dist/reconnectContract.d.ts +6 -6
- package/dist/resilienceRoutes.d.ts +6 -6
- package/dist/routing.d.ts +1 -1
- package/dist/runtimeOps.d.ts +3 -3
- package/dist/s3Store.d.ts +3 -3
- package/dist/session.d.ts +1 -1
- package/dist/sessionReplay.d.ts +9 -9
- package/dist/sessionSnapshot.d.ts +8 -8
- package/dist/simulationSuite.d.ts +12 -12
- package/dist/sloCalibration.d.ts +8 -8
- package/dist/sqliteStore.d.ts +8 -8
- package/dist/store.d.ts +1 -1
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/svelte/createVoiceCallDebugger.d.ts +2 -2
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/svelte/createVoiceLiveOps.d.ts +2 -2
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +1 -1
- package/dist/svelte/createVoiceOpsStatus.d.ts +1 -1
- package/dist/svelte/createVoicePlatformCoverage.d.ts +1 -1
- package/dist/svelte/createVoiceProfileComparison.d.ts +1 -1
- package/dist/svelte/createVoiceProofTrends.d.ts +1 -1
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +1 -1
- package/dist/svelte/createVoiceProviderContracts.d.ts +1 -1
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/svelte/createVoiceProviderStatus.d.ts +1 -1
- package/dist/svelte/createVoiceReadinessFailures.d.ts +1 -1
- package/dist/svelte/createVoiceRoutingStatus.d.ts +1 -1
- package/dist/svelte/createVoiceSessionSnapshot.d.ts +2 -2
- package/dist/svelte/createVoiceStream.d.ts +1 -1
- package/dist/svelte/createVoiceTraceTimeline.d.ts +1 -1
- package/dist/svelte/createVoiceTurnLatency.d.ts +1 -1
- package/dist/svelte/createVoiceTurnQuality.d.ts +1 -1
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +1 -1
- package/dist/svelte/index.d.ts +23 -23
- package/dist/svelte/index.js +30 -8
- package/dist/telephony/contract.d.ts +5 -5
- package/dist/telephony/matrix.d.ts +4 -4
- package/dist/telephony/plivo.d.ts +30 -30
- package/dist/telephony/response.d.ts +1 -1
- package/dist/telephony/security.d.ts +17 -17
- package/dist/telephony/telnyx.d.ts +31 -31
- package/dist/telephony/twilio.d.ts +22 -22
- package/dist/telephonyMediaRoutes.d.ts +4 -4
- package/dist/telephonyOutcome.d.ts +13 -13
- package/dist/testing/accuracy.d.ts +1 -1
- package/dist/testing/benchmark.d.ts +9 -9
- package/dist/testing/corrected.d.ts +5 -5
- package/dist/testing/duplex.d.ts +3 -3
- package/dist/testing/fixtures.d.ts +3 -3
- package/dist/testing/index.d.ts +13 -13
- package/dist/testing/index.js +49 -20
- package/dist/testing/ioProviderSimulator.d.ts +5 -5
- package/dist/testing/providerSimulator.d.ts +5 -5
- package/dist/testing/review.d.ts +4 -4
- package/dist/testing/sessionBenchmark.d.ts +3 -3
- package/dist/testing/stt.d.ts +3 -3
- package/dist/testing/telephony.d.ts +3 -3
- package/dist/testing/tts.d.ts +1 -1
- package/dist/toolContract.d.ts +10 -10
- package/dist/toolRuntime.d.ts +3 -3
- package/dist/trace.d.ts +10 -10
- package/dist/traceDeliveryRoutes.d.ts +4 -4
- package/dist/traceTimeline.d.ts +4 -4
- package/dist/turnDetection.d.ts +1 -1
- package/dist/turnLatency.d.ts +4 -4
- package/dist/turnProfiles.d.ts +2 -2
- package/dist/turnQuality.d.ts +4 -4
- package/dist/types.d.ts +92 -92
- package/dist/voiceMonitoring.d.ts +6 -6
- package/dist/vue/VoiceOpsActionCenter.d.ts +2 -2
- package/dist/vue/VoiceProviderSimulationControls.d.ts +2 -2
- package/dist/vue/index.d.ts +38 -38
- package/dist/vue/index.js +41 -15
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/vue/useVoiceCallDebugger.d.ts +2 -2
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +2 -2
- package/dist/vue/useVoiceController.d.ts +1 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +2 -2
- package/dist/vue/useVoiceLiveOps.d.ts +1 -1
- package/dist/vue/useVoiceOpsActionCenter.d.ts +1 -1
- package/dist/vue/useVoiceOpsStatus.d.ts +2 -2
- package/dist/vue/useVoicePlatformCoverage.d.ts +2 -2
- package/dist/vue/useVoiceProfileComparison.d.ts +2 -2
- package/dist/vue/useVoiceProofTrends.d.ts +2 -2
- package/dist/vue/useVoiceProviderCapabilities.d.ts +2 -2
- package/dist/vue/useVoiceProviderContracts.d.ts +2 -2
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/vue/useVoiceProviderStatus.d.ts +2 -2
- package/dist/vue/useVoiceReadinessFailures.d.ts +30 -2
- package/dist/vue/useVoiceRoutingStatus.d.ts +1 -1
- package/dist/vue/useVoiceSessionSnapshot.d.ts +2 -2
- package/dist/vue/useVoiceStream.d.ts +1 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +2 -2
- package/dist/vue/useVoiceTurnLatency.d.ts +2 -2
- package/dist/vue/useVoiceTurnQuality.d.ts +2 -2
- package/dist/vue/useVoiceWorkflowStatus.d.ts +2 -2
- package/dist/workflowContract.d.ts +8 -8
- package/fixtures/manifest.json +356 -197
- package/package.json +260 -259
package/dist/types.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import type { SessionStore } from
|
|
2
|
-
import type { MediaWebRTCStatsCollector, MediaWebRTCStatsReport, MediaWebRTCStatsReportInput, MediaWebRTCStreamContinuityInput, MediaWebRTCStreamContinuityReport } from
|
|
3
|
-
import type { VoiceOpsDispositionTaskPolicies, VoiceOpsTaskAssignmentRule, VoiceOpsTaskAssignmentRules, VoiceIntegrationWebhookConfig, StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationEventStore, VoiceOpsTaskPolicy, VoiceOpsTask, VoiceOpsTaskStore } from
|
|
4
|
-
import type { VoiceIntegrationSink } from
|
|
5
|
-
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewArtifact, VoiceCallReviewStore } from
|
|
6
|
-
import type { VoiceTraceEventStore } from
|
|
7
|
-
import type { VoiceLiveOpsControlState } from
|
|
8
|
-
import type { VoiceAuditActor, VoiceAuditEventStore } from
|
|
9
|
-
import type { VoiceProfileSwitchGuardDecision, VoiceProfileSwitchGuardMode, VoiceProfileSwitchObservedSignals } from
|
|
10
|
-
import type { VoiceRealCallProfileDefaultsReport, VoiceRealCallProfileHistoryReport } from
|
|
1
|
+
import type { SessionStore } from "@absolutejs/absolute";
|
|
2
|
+
import type { MediaWebRTCStatsCollector, MediaWebRTCStatsReport, MediaWebRTCStatsReportInput, MediaWebRTCStreamContinuityInput, MediaWebRTCStreamContinuityReport } from "@absolutejs/media";
|
|
3
|
+
import type { VoiceOpsDispositionTaskPolicies, VoiceOpsTaskAssignmentRule, VoiceOpsTaskAssignmentRules, VoiceIntegrationWebhookConfig, StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationEventStore, VoiceOpsTaskPolicy, VoiceOpsTask, VoiceOpsTaskStore } from "./ops";
|
|
4
|
+
import type { VoiceIntegrationSink } from "./opsSinks";
|
|
5
|
+
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewArtifact, VoiceCallReviewStore } from "./testing/review";
|
|
6
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
7
|
+
import type { VoiceLiveOpsControlState } from "./liveOps";
|
|
8
|
+
import type { VoiceAuditActor, VoiceAuditEventStore } from "./audit";
|
|
9
|
+
import type { VoiceProfileSwitchGuardDecision, VoiceProfileSwitchGuardMode, VoiceProfileSwitchObservedSignals } from "./profileSwitchRecommendation";
|
|
10
|
+
import type { VoiceRealCallProfileDefaultsReport, VoiceRealCallProfileHistoryReport } from "./proofTrends";
|
|
11
11
|
export type AudioFormat = {
|
|
12
|
-
container:
|
|
13
|
-
encoding:
|
|
12
|
+
container: "raw";
|
|
13
|
+
encoding: "alaw" | "mulaw" | "pcm_s16le";
|
|
14
14
|
sampleRateHz: number;
|
|
15
15
|
channels: 1 | 2;
|
|
16
16
|
};
|
|
17
17
|
export type AudioChunk = ArrayBuffer | ArrayBufferView;
|
|
18
18
|
export type VoiceLanguageStrategy = {
|
|
19
|
-
mode:
|
|
19
|
+
mode: "auto-detect";
|
|
20
20
|
allowedLanguages?: string[];
|
|
21
21
|
} | {
|
|
22
|
-
mode:
|
|
22
|
+
mode: "fixed";
|
|
23
23
|
primaryLanguage: string;
|
|
24
24
|
secondaryLanguages?: string[];
|
|
25
25
|
} | {
|
|
26
|
-
mode:
|
|
26
|
+
mode: "allow-switching";
|
|
27
27
|
primaryLanguage?: string;
|
|
28
28
|
secondaryLanguages: string[];
|
|
29
29
|
};
|
|
@@ -33,7 +33,7 @@ export type VoicePhraseHint = {
|
|
|
33
33
|
boost?: number;
|
|
34
34
|
metadata?: Record<string, unknown>;
|
|
35
35
|
};
|
|
36
|
-
export type VoiceCorrectionRiskTier =
|
|
36
|
+
export type VoiceCorrectionRiskTier = "safe" | "balanced" | "risky";
|
|
37
37
|
export type VoiceDomainTerm = {
|
|
38
38
|
text: string;
|
|
39
39
|
aliases?: string[];
|
|
@@ -70,7 +70,7 @@ export type VoiceTranscriptQuality = {
|
|
|
70
70
|
fallback?: VoiceFallbackDiagnostics;
|
|
71
71
|
partialTranscriptCount: number;
|
|
72
72
|
selectedTranscriptCount: number;
|
|
73
|
-
source:
|
|
73
|
+
source: "fallback" | "primary";
|
|
74
74
|
};
|
|
75
75
|
export type VoiceTurnCorrectionDiagnostics = {
|
|
76
76
|
attempted: boolean;
|
|
@@ -88,7 +88,7 @@ export type VoiceTurnCostEstimate = {
|
|
|
88
88
|
primaryAudioMs: number;
|
|
89
89
|
totalBillableAudioMs: number;
|
|
90
90
|
};
|
|
91
|
-
export type VoiceFallbackSelectionReason =
|
|
91
|
+
export type VoiceFallbackSelectionReason = "fallback-empty" | "primary-empty" | "word-count-margin" | "confidence-margin" | "word-count-tiebreak" | "kept-primary";
|
|
92
92
|
export type VoiceFallbackDiagnostics = {
|
|
93
93
|
attempted: boolean;
|
|
94
94
|
fallbackConfidence?: number;
|
|
@@ -99,31 +99,31 @@ export type VoiceFallbackDiagnostics = {
|
|
|
99
99
|
primaryWordCount: number;
|
|
100
100
|
selected: boolean;
|
|
101
101
|
selectionReason: VoiceFallbackSelectionReason;
|
|
102
|
-
trigger:
|
|
102
|
+
trigger: "empty-turn" | "low-confidence" | "empty-or-low-confidence" | "always";
|
|
103
103
|
};
|
|
104
104
|
export type VoicePartialEvent = {
|
|
105
|
-
type:
|
|
105
|
+
type: "partial";
|
|
106
106
|
transcript: Transcript;
|
|
107
107
|
receivedAt: number;
|
|
108
108
|
};
|
|
109
109
|
export type VoiceFinalEvent = {
|
|
110
|
-
type:
|
|
110
|
+
type: "final";
|
|
111
111
|
transcript: Transcript;
|
|
112
112
|
receivedAt: number;
|
|
113
113
|
};
|
|
114
114
|
export type VoiceEndOfTurnEvent = {
|
|
115
|
-
type:
|
|
116
|
-
reason:
|
|
115
|
+
type: "endOfTurn";
|
|
116
|
+
reason: "vendor" | "silence" | "manual";
|
|
117
117
|
receivedAt: number;
|
|
118
118
|
};
|
|
119
119
|
export type VoiceErrorEvent = {
|
|
120
|
-
type:
|
|
120
|
+
type: "error";
|
|
121
121
|
error: Error;
|
|
122
122
|
recoverable: boolean;
|
|
123
123
|
code?: string;
|
|
124
124
|
};
|
|
125
125
|
export type VoiceCloseEvent = {
|
|
126
|
-
type:
|
|
126
|
+
type: "close";
|
|
127
127
|
code?: number;
|
|
128
128
|
reason?: string;
|
|
129
129
|
recoverable?: boolean;
|
|
@@ -149,11 +149,11 @@ export type STTAdapterOpenOptions = {
|
|
|
149
149
|
signal?: AbortSignal;
|
|
150
150
|
};
|
|
151
151
|
export type STTAdapter<TOptions extends STTAdapterOpenOptions = STTAdapterOpenOptions> = {
|
|
152
|
-
kind:
|
|
152
|
+
kind: "stt";
|
|
153
153
|
open: (options: TOptions) => Promise<STTAdapterSession> | STTAdapterSession;
|
|
154
154
|
};
|
|
155
155
|
export type TTSAudioEvent = {
|
|
156
|
-
type:
|
|
156
|
+
type: "audio";
|
|
157
157
|
chunk: AudioChunk;
|
|
158
158
|
format: AudioFormat;
|
|
159
159
|
receivedAt: number;
|
|
@@ -174,7 +174,7 @@ export type TTSAdapterOpenOptions = {
|
|
|
174
174
|
signal?: AbortSignal;
|
|
175
175
|
};
|
|
176
176
|
export type TTSAdapter<TOptions extends TTSAdapterOpenOptions = TTSAdapterOpenOptions> = {
|
|
177
|
-
kind:
|
|
177
|
+
kind: "tts";
|
|
178
178
|
open: (options: TOptions) => Promise<TTSAdapterSession> | TTSAdapterSession;
|
|
179
179
|
};
|
|
180
180
|
export type RealtimeSessionEventMap = STTSessionEventMap & {
|
|
@@ -194,11 +194,11 @@ export type RealtimeAdapterOpenOptions = {
|
|
|
194
194
|
signal?: AbortSignal;
|
|
195
195
|
};
|
|
196
196
|
export type RealtimeAdapter<TOptions extends RealtimeAdapterOpenOptions = RealtimeAdapterOpenOptions> = {
|
|
197
|
-
kind:
|
|
197
|
+
kind: "realtime";
|
|
198
198
|
open: (options: TOptions) => Promise<RealtimeAdapterSession> | RealtimeAdapterSession;
|
|
199
199
|
};
|
|
200
|
-
export type VoiceSessionStatus =
|
|
201
|
-
export type VoiceReconnectClientStatus =
|
|
200
|
+
export type VoiceSessionStatus = "active" | "reconnecting" | "completed" | "failed";
|
|
201
|
+
export type VoiceReconnectClientStatus = "idle" | "reconnecting" | "resumed" | "exhausted";
|
|
202
202
|
export type VoiceReconnectClientState = {
|
|
203
203
|
attempts: number;
|
|
204
204
|
lastDisconnectAt?: number;
|
|
@@ -267,10 +267,10 @@ export type VoiceSessionSummary = {
|
|
|
267
267
|
status: VoiceSessionStatus;
|
|
268
268
|
turnCount: number;
|
|
269
269
|
};
|
|
270
|
-
export type VoiceCallDisposition =
|
|
270
|
+
export type VoiceCallDisposition = "completed" | "transferred" | "escalated" | "voicemail" | "no-answer" | "failed" | "closed";
|
|
271
271
|
export type VoiceCallLifecycleEvent = {
|
|
272
272
|
at: number;
|
|
273
|
-
type:
|
|
273
|
+
type: "start" | "end" | "transfer" | "escalation" | "voicemail" | "no-answer";
|
|
274
274
|
disposition?: VoiceCallDisposition;
|
|
275
275
|
metadata?: Record<string, unknown>;
|
|
276
276
|
reason?: string;
|
|
@@ -283,8 +283,8 @@ export type VoiceCallLifecycleState = {
|
|
|
283
283
|
lastEventAt: number;
|
|
284
284
|
startedAt: number;
|
|
285
285
|
};
|
|
286
|
-
export type VoiceHandoffAction =
|
|
287
|
-
export type VoiceHandoffStatus =
|
|
286
|
+
export type VoiceHandoffAction = "escalate" | "no-answer" | "transfer" | "voicemail";
|
|
287
|
+
export type VoiceHandoffStatus = "delivered" | "failed" | "skipped";
|
|
288
288
|
export type VoiceHandoffResult = {
|
|
289
289
|
deliveredAt?: number;
|
|
290
290
|
deliveredTo?: string;
|
|
@@ -292,7 +292,7 @@ export type VoiceHandoffResult = {
|
|
|
292
292
|
metadata?: Record<string, unknown>;
|
|
293
293
|
status: VoiceHandoffStatus;
|
|
294
294
|
};
|
|
295
|
-
export type VoiceHandoffDeliveryQueueStatus = VoiceHandoffStatus |
|
|
295
|
+
export type VoiceHandoffDeliveryQueueStatus = VoiceHandoffStatus | "pending";
|
|
296
296
|
export type StoredVoiceHandoffDelivery<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
297
297
|
action: VoiceHandoffAction;
|
|
298
298
|
context: TContext;
|
|
@@ -340,7 +340,7 @@ export type VoiceHandoffConfig<TContext = unknown, TSession extends VoiceSession
|
|
|
340
340
|
adapters: VoiceHandoffAdapter<TContext, TSession, TResult>[];
|
|
341
341
|
deliveryQueue?: VoiceHandoffDeliveryStore<StoredVoiceHandoffDelivery<TContext, TSession, TResult>>;
|
|
342
342
|
enqueueOnly?: boolean;
|
|
343
|
-
failMode?:
|
|
343
|
+
failMode?: "record" | "throw";
|
|
344
344
|
};
|
|
345
345
|
export type VoiceSessionStore<TSession extends VoiceSessionRecord = VoiceSessionRecord> = SessionStore<TSession, VoiceSessionSummary>;
|
|
346
346
|
export type VoiceLogger = {
|
|
@@ -350,15 +350,15 @@ export type VoiceLogger = {
|
|
|
350
350
|
error?: (message: string, meta?: Record<string, unknown>) => void;
|
|
351
351
|
};
|
|
352
352
|
export type VoiceReconnectConfig = {
|
|
353
|
-
strategy?:
|
|
353
|
+
strategy?: "resume-last-turn" | "restart" | "fail";
|
|
354
354
|
timeout?: number;
|
|
355
355
|
maxAttempts?: number;
|
|
356
356
|
};
|
|
357
|
-
export type VoiceRuntimePreset =
|
|
358
|
-
export type VoiceSTTLifecycle =
|
|
359
|
-
export type VoiceTurnProfile =
|
|
360
|
-
export type VoiceTurnQualityProfile =
|
|
361
|
-
export type VoiceTurnFallbackTrigger =
|
|
357
|
+
export type VoiceRuntimePreset = "default" | "chat" | "guided-intake" | "dictation" | "noisy-room" | "pstn-balanced" | "pstn-fast" | "reliability";
|
|
358
|
+
export type VoiceSTTLifecycle = "continuous" | "turn-scoped";
|
|
359
|
+
export type VoiceTurnProfile = "fast" | "balanced" | "long-form";
|
|
360
|
+
export type VoiceTurnQualityProfile = "general" | "accent-heavy" | "noisy-room" | "short-command";
|
|
361
|
+
export type VoiceTurnFallbackTrigger = "empty-turn" | "low-confidence" | "empty-or-low-confidence" | "always";
|
|
362
362
|
export type VoiceSTTFallbackConfig = {
|
|
363
363
|
adapter: STTAdapter;
|
|
364
364
|
trigger?: VoiceTurnFallbackTrigger;
|
|
@@ -415,7 +415,7 @@ export type VoiceSessionHandle<TContext = unknown, TSession extends VoiceSession
|
|
|
415
415
|
id: string;
|
|
416
416
|
connect: (socket: VoiceSocket) => Promise<void>;
|
|
417
417
|
receiveAudio: (audio: AudioChunk) => Promise<void>;
|
|
418
|
-
commitTurn: (reason?: VoiceEndOfTurnEvent[
|
|
418
|
+
commitTurn: (reason?: VoiceEndOfTurnEvent["reason"]) => Promise<void>;
|
|
419
419
|
disconnect: (event?: VoiceCloseEvent) => Promise<void>;
|
|
420
420
|
complete: (result?: TResult) => Promise<void>;
|
|
421
421
|
escalate: (input: {
|
|
@@ -577,7 +577,7 @@ export type VoiceRuntimeOpsConfig<TContext = unknown, TSession extends VoiceSess
|
|
|
577
577
|
disposition: VoiceCallDisposition;
|
|
578
578
|
review: StoredVoiceCallReviewArtifact;
|
|
579
579
|
session: TSession;
|
|
580
|
-
}) => Promise<Omit<VoiceOpsTask,
|
|
580
|
+
}) => Promise<Omit<VoiceOpsTask, "id"> | VoiceOpsTask | StoredVoiceOpsTask | null | void> | Omit<VoiceOpsTask, "id"> | VoiceOpsTask | StoredVoiceOpsTask | null | void;
|
|
581
581
|
resolveTaskPolicy?: (input: {
|
|
582
582
|
api: VoiceSessionHandle<TContext, TSession, TResult>;
|
|
583
583
|
context: TContext;
|
|
@@ -644,7 +644,7 @@ export type VoicePluginProfileSwitchGuardConfig<TContext = unknown, TSession ext
|
|
|
644
644
|
sessionMetadataKey?: string | false;
|
|
645
645
|
trace?: false | VoiceTraceEventStore;
|
|
646
646
|
};
|
|
647
|
-
export type VoiceNormalizedRouteConfig<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Omit<VoiceRouteConfig<TContext, TSession, TResult>,
|
|
647
|
+
export type VoiceNormalizedRouteConfig<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Omit<VoiceRouteConfig<TContext, TSession, TResult>, "onTurn"> & {
|
|
648
648
|
onTurn: VoiceOnTurnObjectHandler<TContext, TSession, TResult>;
|
|
649
649
|
};
|
|
650
650
|
export type VoiceScenario = {
|
|
@@ -710,37 +710,37 @@ export type CreateVoiceSessionOptions<TContext = unknown, TSession extends Voice
|
|
|
710
710
|
};
|
|
711
711
|
export type CreateVoiceSession = <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options: CreateVoiceSessionOptions<TContext, TSession, TResult>) => VoiceSessionHandle<TContext, TSession, TResult>;
|
|
712
712
|
export type VoiceClientStartMessage = {
|
|
713
|
-
type:
|
|
713
|
+
type: "start";
|
|
714
714
|
sessionId?: string;
|
|
715
715
|
scenarioId?: string;
|
|
716
716
|
};
|
|
717
717
|
export type VoiceClientEndTurnMessage = {
|
|
718
|
-
type:
|
|
718
|
+
type: "end_turn";
|
|
719
719
|
};
|
|
720
720
|
export type VoiceClientCloseMessage = {
|
|
721
|
-
type:
|
|
721
|
+
type: "close";
|
|
722
722
|
reason?: string;
|
|
723
723
|
};
|
|
724
724
|
export type VoiceClientCallControlMessage = {
|
|
725
|
-
type:
|
|
726
|
-
action:
|
|
725
|
+
type: "call_control";
|
|
726
|
+
action: "complete" | "escalate" | "no-answer" | "transfer" | "voicemail";
|
|
727
727
|
metadata?: Record<string, unknown>;
|
|
728
728
|
reason?: string;
|
|
729
729
|
target?: string;
|
|
730
730
|
};
|
|
731
731
|
export type VoiceClientPingMessage = {
|
|
732
|
-
type:
|
|
732
|
+
type: "ping";
|
|
733
733
|
};
|
|
734
734
|
export type VoiceClientMessage = VoiceClientStartMessage | VoiceClientEndTurnMessage | VoiceClientCloseMessage | VoiceClientCallControlMessage | VoiceClientPingMessage;
|
|
735
735
|
export type VoiceServerSessionMessage = {
|
|
736
|
-
type:
|
|
736
|
+
type: "session";
|
|
737
737
|
sessionId: string;
|
|
738
738
|
status: VoiceSessionStatus;
|
|
739
739
|
scenarioId?: string;
|
|
740
740
|
sessionMetadata?: Record<string, unknown>;
|
|
741
741
|
};
|
|
742
742
|
export type VoiceServerReplayMessage<TResult = unknown> = {
|
|
743
|
-
type:
|
|
743
|
+
type: "replay";
|
|
744
744
|
assistantTexts: string[];
|
|
745
745
|
call?: VoiceCallLifecycleState;
|
|
746
746
|
partial: string;
|
|
@@ -751,48 +751,48 @@ export type VoiceServerReplayMessage<TResult = unknown> = {
|
|
|
751
751
|
turns: VoiceTurnRecord<TResult>[];
|
|
752
752
|
};
|
|
753
753
|
export type VoiceServerPartialMessage = {
|
|
754
|
-
type:
|
|
754
|
+
type: "partial";
|
|
755
755
|
transcript: Transcript;
|
|
756
756
|
};
|
|
757
757
|
export type VoiceServerFinalMessage = {
|
|
758
|
-
type:
|
|
758
|
+
type: "final";
|
|
759
759
|
transcript: Transcript;
|
|
760
760
|
};
|
|
761
761
|
export type VoiceServerTurnMessage<TResult = unknown> = {
|
|
762
|
-
type:
|
|
762
|
+
type: "turn";
|
|
763
763
|
turn: VoiceTurnRecord<TResult>;
|
|
764
764
|
};
|
|
765
765
|
export type VoiceServerAssistantMessage = {
|
|
766
|
-
type:
|
|
766
|
+
type: "assistant";
|
|
767
767
|
text: string;
|
|
768
768
|
turnId?: string;
|
|
769
769
|
};
|
|
770
770
|
export type VoiceServerAudioMessage = {
|
|
771
|
-
type:
|
|
771
|
+
type: "audio";
|
|
772
772
|
chunkBase64: string;
|
|
773
773
|
format: AudioFormat;
|
|
774
774
|
receivedAt: number;
|
|
775
775
|
turnId?: string;
|
|
776
776
|
};
|
|
777
777
|
export type VoiceServerCompleteMessage = {
|
|
778
|
-
type:
|
|
778
|
+
type: "complete";
|
|
779
779
|
sessionId: string;
|
|
780
780
|
};
|
|
781
781
|
export type VoiceServerCallLifecycleMessage = {
|
|
782
|
-
type:
|
|
782
|
+
type: "call_lifecycle";
|
|
783
783
|
event: VoiceCallLifecycleEvent;
|
|
784
784
|
sessionId: string;
|
|
785
785
|
};
|
|
786
786
|
export type VoiceServerErrorMessage = {
|
|
787
|
-
type:
|
|
787
|
+
type: "error";
|
|
788
788
|
message: string;
|
|
789
789
|
recoverable?: boolean;
|
|
790
790
|
};
|
|
791
791
|
export type VoiceServerPongMessage = {
|
|
792
|
-
type:
|
|
792
|
+
type: "pong";
|
|
793
793
|
};
|
|
794
794
|
export type VoiceServerConnectionMessage = {
|
|
795
|
-
type:
|
|
795
|
+
type: "connection";
|
|
796
796
|
reconnect: VoiceReconnectClientState;
|
|
797
797
|
};
|
|
798
798
|
export type VoiceServerMessage<TResult = unknown> = VoiceServerSessionMessage | VoiceServerReplayMessage<TResult> | VoiceServerPartialMessage | VoiceServerFinalMessage | VoiceServerTurnMessage<TResult> | VoiceServerAssistantMessage | VoiceServerAudioMessage | VoiceServerCallLifecycleMessage | VoiceServerCompleteMessage | VoiceServerErrorMessage | VoiceServerPongMessage | VoiceServerConnectionMessage;
|
|
@@ -813,13 +813,13 @@ export type VoiceBrowserMediaReportPayload = {
|
|
|
813
813
|
scenarioId?: string | null;
|
|
814
814
|
sessionId?: string | null;
|
|
815
815
|
};
|
|
816
|
-
export type VoiceBrowserMediaReporterOptions = Omit<MediaWebRTCStatsReportInput,
|
|
816
|
+
export type VoiceBrowserMediaReporterOptions = Omit<MediaWebRTCStatsReportInput, "peerConnection"> & {
|
|
817
817
|
fetch?: typeof fetch;
|
|
818
818
|
getPeerConnection?: (() => MediaWebRTCStatsCollector | null | undefined) | (() => Promise<MediaWebRTCStatsCollector | null | undefined>);
|
|
819
819
|
getScenarioId?: () => string | null | undefined;
|
|
820
820
|
getSessionId?: () => string | null | undefined;
|
|
821
821
|
intervalMs?: number;
|
|
822
|
-
continuity?: false | Omit<MediaWebRTCStreamContinuityInput,
|
|
822
|
+
continuity?: false | Omit<MediaWebRTCStreamContinuityInput, "previousStats" | "stats">;
|
|
823
823
|
onError?: (error: unknown) => void;
|
|
824
824
|
onReport?: (payload: VoiceBrowserMediaReportPayload) => void;
|
|
825
825
|
path?: string;
|
|
@@ -843,7 +843,7 @@ export type VoiceBargeInOptions = {
|
|
|
843
843
|
interruptThreshold?: number;
|
|
844
844
|
monitor?: VoiceBargeInMonitor;
|
|
845
845
|
};
|
|
846
|
-
export type VoiceBargeInTriggerReason =
|
|
846
|
+
export type VoiceBargeInTriggerReason = "input-level" | "manual-audio" | "manual-interrupt" | "partial-transcript";
|
|
847
847
|
export type VoiceBargeInMonitorEvent = {
|
|
848
848
|
at: number;
|
|
849
849
|
id: string;
|
|
@@ -851,7 +851,7 @@ export type VoiceBargeInMonitorEvent = {
|
|
|
851
851
|
playbackStopLatencyMs?: number;
|
|
852
852
|
reason: VoiceBargeInTriggerReason;
|
|
853
853
|
sessionId?: string | null;
|
|
854
|
-
status:
|
|
854
|
+
status: "requested" | "stopped" | "skipped";
|
|
855
855
|
thresholdMs?: number;
|
|
856
856
|
};
|
|
857
857
|
export type VoiceBargeInMonitorSnapshot = {
|
|
@@ -860,7 +860,7 @@ export type VoiceBargeInMonitorSnapshot = {
|
|
|
860
860
|
failed: number;
|
|
861
861
|
lastEvent?: VoiceBargeInMonitorEvent;
|
|
862
862
|
passed: number;
|
|
863
|
-
status:
|
|
863
|
+
status: "empty" | "fail" | "pass" | "warn";
|
|
864
864
|
thresholdMs: number;
|
|
865
865
|
total: number;
|
|
866
866
|
};
|
|
@@ -891,10 +891,10 @@ export type VoiceDuplexControllerOptions = VoiceControllerOptions & {
|
|
|
891
891
|
audioPlayer?: VoiceAudioPlayerOptions;
|
|
892
892
|
bargeIn?: VoiceBargeInOptions;
|
|
893
893
|
};
|
|
894
|
-
export type VoiceSTTRoutingGoal =
|
|
895
|
-
export type VoiceSTTRoutingCorrectionMode =
|
|
894
|
+
export type VoiceSTTRoutingGoal = "best" | "low-cost";
|
|
895
|
+
export type VoiceSTTRoutingCorrectionMode = "generic" | "none" | "risky-turn";
|
|
896
896
|
export type VoiceSTTRoutingStrategy = {
|
|
897
|
-
benchmarkSessionTarget:
|
|
897
|
+
benchmarkSessionTarget: "deepgram-corrected" | "deepgram-flux";
|
|
898
898
|
correctionMode: VoiceSTTRoutingCorrectionMode;
|
|
899
899
|
goal: VoiceSTTRoutingGoal;
|
|
900
900
|
notes: string[];
|
|
@@ -908,7 +908,7 @@ export type VoiceHTMXRenderInput<TResult = unknown, TSession extends VoiceSessio
|
|
|
908
908
|
result?: TResult;
|
|
909
909
|
session?: TSession;
|
|
910
910
|
sessionId?: string;
|
|
911
|
-
status: VoiceSessionStatus |
|
|
911
|
+
status: VoiceSessionStatus | "idle";
|
|
912
912
|
turnCount: number;
|
|
913
913
|
turns: VoiceTurnRecord<TResult>[];
|
|
914
914
|
};
|
|
@@ -939,7 +939,7 @@ export type VoiceStreamState<TResult = unknown> = {
|
|
|
939
939
|
sessionMetadata: Record<string, unknown> | null;
|
|
940
940
|
sessionId: string | null;
|
|
941
941
|
scenarioId: string | null;
|
|
942
|
-
status: VoiceSessionStatus |
|
|
942
|
+
status: VoiceSessionStatus | "idle";
|
|
943
943
|
reconnect: VoiceReconnectClientState;
|
|
944
944
|
partial: string;
|
|
945
945
|
turns: VoiceTurnRecord<TResult>[];
|
|
@@ -955,7 +955,7 @@ export type VoiceStreamState<TResult = unknown> = {
|
|
|
955
955
|
};
|
|
956
956
|
export type VoiceStream<TResult = unknown> = {
|
|
957
957
|
call: VoiceCallLifecycleState | null;
|
|
958
|
-
callControl: (message: Omit<VoiceClientCallControlMessage,
|
|
958
|
+
callControl: (message: Omit<VoiceClientCallControlMessage, "type">) => void;
|
|
959
959
|
close: () => void;
|
|
960
960
|
start: (input?: {
|
|
961
961
|
scenarioId?: string;
|
|
@@ -972,7 +972,7 @@ export type VoiceStream<TResult = unknown> = {
|
|
|
972
972
|
sessionId: string | null;
|
|
973
973
|
sessionMetadata: Record<string, unknown> | null;
|
|
974
974
|
scenarioId: string | null;
|
|
975
|
-
status: VoiceSessionStatus |
|
|
975
|
+
status: VoiceSessionStatus | "idle";
|
|
976
976
|
subscribe: (subscriber: () => void) => () => void;
|
|
977
977
|
turns: VoiceTurnRecord<TResult>[];
|
|
978
978
|
assistantTexts: string[];
|
|
@@ -998,7 +998,7 @@ export type VoiceAudioPlayerState = {
|
|
|
998
998
|
queuedChunkCount: number;
|
|
999
999
|
};
|
|
1000
1000
|
export type VoiceAudioPlayerSource = {
|
|
1001
|
-
assistantAudio: VoiceStreamState[
|
|
1001
|
+
assistantAudio: VoiceStreamState["assistantAudio"];
|
|
1002
1002
|
subscribe: (subscriber: () => void) => () => void;
|
|
1003
1003
|
};
|
|
1004
1004
|
export type VoiceAudioPlayer = {
|
|
@@ -1025,7 +1025,7 @@ export type VoiceBargeInBinding = {
|
|
|
1025
1025
|
export type VoiceController<TResult = unknown> = {
|
|
1026
1026
|
bindHTMX: (options: VoiceHTMXBindingOptions) => () => void;
|
|
1027
1027
|
call: VoiceCallLifecycleState | null;
|
|
1028
|
-
callControl: (message: Omit<VoiceClientCallControlMessage,
|
|
1028
|
+
callControl: (message: Omit<VoiceClientCallControlMessage, "type">) => void;
|
|
1029
1029
|
close: () => void;
|
|
1030
1030
|
endTurn: () => void;
|
|
1031
1031
|
start: (input?: {
|
|
@@ -1045,7 +1045,7 @@ export type VoiceController<TResult = unknown> = {
|
|
|
1045
1045
|
sessionMetadata: Record<string, unknown> | null;
|
|
1046
1046
|
scenarioId: string | null;
|
|
1047
1047
|
startRecording: () => Promise<void>;
|
|
1048
|
-
status: VoiceSessionStatus |
|
|
1048
|
+
status: VoiceSessionStatus | "idle";
|
|
1049
1049
|
stopRecording: () => void;
|
|
1050
1050
|
subscribe: (subscriber: () => void) => () => void;
|
|
1051
1051
|
toggleRecording: () => Promise<void>;
|
|
@@ -1069,13 +1069,13 @@ export type VoiceHTMXBindingOptions = {
|
|
|
1069
1069
|
sessionQueryParam?: string;
|
|
1070
1070
|
};
|
|
1071
1071
|
export type VoiceStoreAction<TResult = unknown> = {
|
|
1072
|
-
type:
|
|
1072
|
+
type: "session";
|
|
1073
1073
|
sessionId: string;
|
|
1074
1074
|
sessionMetadata?: Record<string, unknown>;
|
|
1075
1075
|
scenarioId?: string;
|
|
1076
1076
|
status: VoiceSessionStatus;
|
|
1077
1077
|
} | {
|
|
1078
|
-
type:
|
|
1078
|
+
type: "replay";
|
|
1079
1079
|
assistantTexts: string[];
|
|
1080
1080
|
call?: VoiceCallLifecycleState;
|
|
1081
1081
|
partial: string;
|
|
@@ -1085,38 +1085,38 @@ export type VoiceStoreAction<TResult = unknown> = {
|
|
|
1085
1085
|
status: VoiceSessionStatus;
|
|
1086
1086
|
turns: VoiceTurnRecord<TResult>[];
|
|
1087
1087
|
} | {
|
|
1088
|
-
type:
|
|
1088
|
+
type: "call_lifecycle";
|
|
1089
1089
|
event: VoiceCallLifecycleEvent;
|
|
1090
1090
|
sessionId: string;
|
|
1091
1091
|
} | {
|
|
1092
|
-
type:
|
|
1092
|
+
type: "partial";
|
|
1093
1093
|
transcript: Transcript;
|
|
1094
1094
|
} | {
|
|
1095
|
-
type:
|
|
1095
|
+
type: "final";
|
|
1096
1096
|
transcript: Transcript;
|
|
1097
1097
|
} | {
|
|
1098
|
-
type:
|
|
1098
|
+
type: "turn";
|
|
1099
1099
|
turn: VoiceTurnRecord<TResult>;
|
|
1100
1100
|
} | {
|
|
1101
|
-
type:
|
|
1101
|
+
type: "assistant";
|
|
1102
1102
|
text: string;
|
|
1103
1103
|
} | {
|
|
1104
|
-
type:
|
|
1104
|
+
type: "audio";
|
|
1105
1105
|
chunk: Uint8Array;
|
|
1106
1106
|
format: AudioFormat;
|
|
1107
1107
|
receivedAt: number;
|
|
1108
1108
|
turnId?: string;
|
|
1109
1109
|
} | {
|
|
1110
|
-
type:
|
|
1110
|
+
type: "complete";
|
|
1111
1111
|
sessionId: string;
|
|
1112
1112
|
} | {
|
|
1113
|
-
type:
|
|
1113
|
+
type: "error";
|
|
1114
1114
|
message: string;
|
|
1115
1115
|
} | {
|
|
1116
|
-
type:
|
|
1116
|
+
type: "connected";
|
|
1117
1117
|
} | {
|
|
1118
|
-
type:
|
|
1118
|
+
type: "connection";
|
|
1119
1119
|
reconnect: VoiceReconnectClientState;
|
|
1120
1120
|
} | {
|
|
1121
|
-
type:
|
|
1121
|
+
type: "disconnected";
|
|
1122
1122
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
export type VoiceMonitorStatus =
|
|
3
|
-
export type VoiceMonitorSeverity =
|
|
4
|
-
export type VoiceMonitorIssueStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
export type VoiceMonitorStatus = "fail" | "pass" | "warn";
|
|
3
|
+
export type VoiceMonitorSeverity = "critical" | "info" | "warn";
|
|
4
|
+
export type VoiceMonitorIssueStatus = "acknowledged" | "muted" | "open" | "resolved";
|
|
5
5
|
export type VoiceMonitorEvaluationInput<TEvidence = unknown> = {
|
|
6
6
|
evidence: TEvidence;
|
|
7
7
|
now: number;
|
|
@@ -66,7 +66,7 @@ export type VoiceMonitorNotifierDeliveryInput = {
|
|
|
66
66
|
};
|
|
67
67
|
export type VoiceMonitorNotifierDeliveryResult = {
|
|
68
68
|
detail?: string;
|
|
69
|
-
status:
|
|
69
|
+
status: "failed" | "sent" | "skipped";
|
|
70
70
|
};
|
|
71
71
|
export type VoiceMonitorNotifierDeliveryReceipt = {
|
|
72
72
|
detail?: string;
|
|
@@ -75,7 +75,7 @@ export type VoiceMonitorNotifierDeliveryReceipt = {
|
|
|
75
75
|
notifierId: string;
|
|
76
76
|
notifierLabel: string;
|
|
77
77
|
sentAt: number;
|
|
78
|
-
status:
|
|
78
|
+
status: "failed" | "sent" | "skipped";
|
|
79
79
|
};
|
|
80
80
|
export type VoiceMonitorNotifierDeliveryReceiptStore = {
|
|
81
81
|
list: () => Promise<VoiceMonitorNotifierDeliveryReceipt[]> | VoiceMonitorNotifierDeliveryReceipt[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type PropType } from
|
|
2
|
-
import type { VoiceOpsActionDescriptor } from
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { VoiceOpsActionDescriptor } from "../client/opsActionCenter";
|
|
3
3
|
export declare const VoiceOpsActionCenter: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
actions: PropType<VoiceOpsActionDescriptor[]>;
|
|
5
5
|
description: StringConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type PropType } from
|
|
2
|
-
import type { VoiceProviderSimulationProvider } from
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { VoiceProviderSimulationProvider } from "../client/providerSimulationControls";
|
|
3
3
|
export declare const VoiceProviderSimulationControls: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
class: {
|
|
5
5
|
default: string;
|