@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
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceProviderFallbackRecoverySummary } from
|
|
3
|
-
import { type VoiceTelephonyCarrierMatrixInput } from
|
|
4
|
-
import { type VoiceTelephonyWebhookSecurityOptions, type VoiceTelephonyWebhookSecurityReport } from
|
|
5
|
-
import type { VoiceMonitorNotifierDeliveryReport, VoiceMonitorRunReport } from
|
|
6
|
-
import { type StoredVoiceTraceEvent, type VoiceTraceEventStore } from
|
|
7
|
-
import type { VoiceTraceSinkDeliveryStore } from
|
|
8
|
-
import type { VoiceAgentSquadContractReport } from
|
|
9
|
-
import type { VoiceBargeInReport } from
|
|
10
|
-
import type { VoiceDeliveryRuntime, VoiceDeliveryRuntimeSummary } from
|
|
11
|
-
import type { VoiceProviderRoutingContractReport } from
|
|
12
|
-
import type { VoicePhoneAgentProductionSmokeReport } from
|
|
13
|
-
import type { VoiceReconnectContractReport } from
|
|
14
|
-
import type { VoiceAuditEventStore, VoiceAuditEventType, VoiceAuditOutcome } from
|
|
15
|
-
import { type VoiceAuditSinkDeliveryStore } from
|
|
16
|
-
import type { VoiceProviderContractMatrixReport, VoiceProviderStackCapabilityGapReport } from
|
|
17
|
-
import { type VoiceProviderSloReport, type VoiceProviderSloReportOptions } from
|
|
18
|
-
import type { VoiceProviderOrchestrationReport } from
|
|
19
|
-
import type { VoiceCampaignReadinessProofReport } from
|
|
20
|
-
import { type VoiceOpsRecoveryReport } from
|
|
21
|
-
import { type VoiceIncidentRecoveryOutcomeReadinessOptions, type VoiceIncidentRecoveryOutcomeReport } from
|
|
22
|
-
import { type VoiceObservabilityExportDeliveryHistory, type VoiceObservabilityExportDeliveryReceiptStore, type VoiceObservabilityExportReplayReport, type VoiceObservabilityExportReplaySource, type VoiceObservabilityExportReport } from
|
|
23
|
-
import type { VoiceMediaPipelineReport } from
|
|
24
|
-
import type { VoiceTelephonyMediaReport } from
|
|
25
|
-
import type { MediaWebRTCStatsReport } from
|
|
26
|
-
import { type VoiceProfileSwitchReadinessOptions, type VoiceProfileSwitchReadinessReport } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceProviderFallbackRecoverySummary } from "./sessionReplay";
|
|
3
|
+
import { type VoiceTelephonyCarrierMatrixInput } from "./telephony/matrix";
|
|
4
|
+
import { type VoiceTelephonyWebhookSecurityOptions, type VoiceTelephonyWebhookSecurityReport } from "./telephony/security";
|
|
5
|
+
import type { VoiceMonitorNotifierDeliveryReport, VoiceMonitorRunReport } from "./voiceMonitoring";
|
|
6
|
+
import { type StoredVoiceTraceEvent, type VoiceTraceEventStore } from "./trace";
|
|
7
|
+
import type { VoiceTraceSinkDeliveryStore } from "./trace";
|
|
8
|
+
import type { VoiceAgentSquadContractReport } from "./agentSquadContract";
|
|
9
|
+
import type { VoiceBargeInReport } from "./bargeInRoutes";
|
|
10
|
+
import type { VoiceDeliveryRuntime, VoiceDeliveryRuntimeSummary } from "./deliveryRuntime";
|
|
11
|
+
import type { VoiceProviderRoutingContractReport } from "./providerRoutingContract";
|
|
12
|
+
import type { VoicePhoneAgentProductionSmokeReport } from "./phoneAgentProductionSmoke";
|
|
13
|
+
import type { VoiceReconnectContractReport } from "./reconnectContract";
|
|
14
|
+
import type { VoiceAuditEventStore, VoiceAuditEventType, VoiceAuditOutcome } from "./audit";
|
|
15
|
+
import { type VoiceAuditSinkDeliveryStore } from "./auditSinks";
|
|
16
|
+
import type { VoiceProviderContractMatrixReport, VoiceProviderStackCapabilityGapReport } from "./providerStackRecommendations";
|
|
17
|
+
import { type VoiceProviderSloReport, type VoiceProviderSloReportOptions } from "./providerSlo";
|
|
18
|
+
import type { VoiceProviderOrchestrationReport } from "./providerOrchestration";
|
|
19
|
+
import type { VoiceCampaignReadinessProofReport } from "./campaign";
|
|
20
|
+
import { type VoiceOpsRecoveryReport } from "./opsRecovery";
|
|
21
|
+
import { type VoiceIncidentRecoveryTrendReport, type VoiceIncidentRecoveryTrendSloOptions, type VoiceIncidentRecoveryOutcomeReadinessOptions, type VoiceIncidentRecoveryOutcomeReport } from "./incidentTimeline";
|
|
22
|
+
import { type VoiceObservabilityExportDeliveryHistory, type VoiceObservabilityExportDeliveryReceiptStore, type VoiceObservabilityExportReplayReport, type VoiceObservabilityExportReplaySource, type VoiceObservabilityExportReport } from "./observabilityExport";
|
|
23
|
+
import type { VoiceMediaPipelineReport } from "./mediaPipelineRoutes";
|
|
24
|
+
import type { VoiceTelephonyMediaReport } from "./telephonyMediaRoutes";
|
|
25
|
+
import type { MediaWebRTCStatsReport } from "@absolutejs/media";
|
|
26
|
+
import { type VoiceProfileSwitchReadinessOptions, type VoiceProfileSwitchReadinessReport } from "./profileSwitchRecommendation";
|
|
27
27
|
export type VoiceProductionReadinessObservabilityExportDeliveryHistoryOptions = {
|
|
28
28
|
failOnMissing?: boolean;
|
|
29
29
|
failOnStale?: boolean;
|
|
@@ -31,12 +31,12 @@ export type VoiceProductionReadinessObservabilityExportDeliveryHistoryOptions =
|
|
|
31
31
|
maxAgeMs?: number;
|
|
32
32
|
store?: VoiceObservabilityExportDeliveryReceiptStore;
|
|
33
33
|
};
|
|
34
|
-
export type VoiceProductionReadinessStatus =
|
|
34
|
+
export type VoiceProductionReadinessStatus = "fail" | "pass" | "warn";
|
|
35
35
|
export type VoiceProductionReadinessAction = {
|
|
36
36
|
description?: string;
|
|
37
37
|
href: string;
|
|
38
38
|
label: string;
|
|
39
|
-
method?:
|
|
39
|
+
method?: "GET" | "POST";
|
|
40
40
|
};
|
|
41
41
|
export type VoiceProductionReadinessGateExplanation = {
|
|
42
42
|
evidenceHref?: string;
|
|
@@ -45,7 +45,7 @@ export type VoiceProductionReadinessGateExplanation = {
|
|
|
45
45
|
sourceHref?: string;
|
|
46
46
|
threshold?: number | string;
|
|
47
47
|
thresholdLabel?: string;
|
|
48
|
-
unit?:
|
|
48
|
+
unit?: "count" | "ms" | "rate" | "status";
|
|
49
49
|
};
|
|
50
50
|
export type VoiceProductionReadinessCheck = {
|
|
51
51
|
actions?: VoiceProductionReadinessAction[];
|
|
@@ -62,7 +62,7 @@ export type VoiceReadinessRecoveryAction = VoiceProductionReadinessAction & {
|
|
|
62
62
|
sourceCheckDetail?: string;
|
|
63
63
|
sourceCheckHref?: string;
|
|
64
64
|
sourceCheckLabel: string;
|
|
65
|
-
sourceStatus: Exclude<VoiceProductionReadinessStatus,
|
|
65
|
+
sourceStatus: Exclude<VoiceProductionReadinessStatus, "pass">;
|
|
66
66
|
};
|
|
67
67
|
export type VoiceReadinessRecoveryActionPlan = {
|
|
68
68
|
actions: VoiceReadinessRecoveryAction[];
|
|
@@ -78,7 +78,7 @@ export type VoiceProductionReadinessGateIssue = {
|
|
|
78
78
|
detail?: string;
|
|
79
79
|
href?: string;
|
|
80
80
|
label: string;
|
|
81
|
-
status: Exclude<VoiceProductionReadinessStatus,
|
|
81
|
+
status: Exclude<VoiceProductionReadinessStatus, "pass">;
|
|
82
82
|
value?: number | string;
|
|
83
83
|
};
|
|
84
84
|
export type VoiceProductionReadinessGateOptions = {
|
|
@@ -161,7 +161,7 @@ export type VoiceProductionReadinessProofRuntime = {
|
|
|
161
161
|
buildFreshnessCheck: () => Promise<VoiceProductionReadinessCheck>;
|
|
162
162
|
cache: <TValue>(key: string, loader: () => Promise<TValue> | TValue, cacheMs?: number) => Promise<TValue>;
|
|
163
163
|
getMetadata: () => VoiceProductionReadinessProofMetadata | undefined;
|
|
164
|
-
options: Pick<VoiceProductionReadinessRoutesOptions,
|
|
164
|
+
options: Pick<VoiceProductionReadinessRoutesOptions, "cacheMs" | "traceMaxAgeMs">;
|
|
165
165
|
refresh: (onRefresh?: (metadata: VoiceProductionReadinessProofMetadata) => Promise<void> | void) => Promise<VoiceProductionReadinessProofMetadata>;
|
|
166
166
|
resetTraceProof: () => Promise<void>;
|
|
167
167
|
seedTraceProof: (options?: VoiceProductionReadinessProofRuntimeSeedOptions) => Promise<StoredVoiceTraceEvent[]>;
|
|
@@ -171,7 +171,7 @@ export type VoiceProductionReadinessGateProfileSurface = VoiceProductionReadines
|
|
|
171
171
|
issues: VoiceProductionReadinessGateIssue[];
|
|
172
172
|
status: VoiceProductionReadinessStatus;
|
|
173
173
|
};
|
|
174
|
-
export type VoiceProductionReadinessGateProfile = Omit<VoiceProductionReadinessProfileExplanation,
|
|
174
|
+
export type VoiceProductionReadinessGateProfile = Omit<VoiceProductionReadinessProfileExplanation, "surfaces"> & {
|
|
175
175
|
surfaces: VoiceProductionReadinessGateProfileSurface[];
|
|
176
176
|
};
|
|
177
177
|
export type VoiceProductionReadinessReport = {
|
|
@@ -207,6 +207,7 @@ export type VoiceProductionReadinessReport = {
|
|
|
207
207
|
providerOrchestration?: string;
|
|
208
208
|
providerRoutingContracts?: string;
|
|
209
209
|
providerSlo?: string;
|
|
210
|
+
incidentRecoveryTrends?: string;
|
|
210
211
|
quality?: string;
|
|
211
212
|
reconnectContracts?: string;
|
|
212
213
|
resilience?: string;
|
|
@@ -311,6 +312,19 @@ export type VoiceProductionReadinessReport = {
|
|
|
311
312
|
total: number;
|
|
312
313
|
unchanged: number;
|
|
313
314
|
};
|
|
315
|
+
incidentRecoveryTrend?: {
|
|
316
|
+
cycles: number;
|
|
317
|
+
failed: number;
|
|
318
|
+
failureRate: number;
|
|
319
|
+
improved: number;
|
|
320
|
+
improvementRate: number;
|
|
321
|
+
regressed: number;
|
|
322
|
+
regressionRate: number;
|
|
323
|
+
status: VoiceProductionReadinessStatus;
|
|
324
|
+
total: number;
|
|
325
|
+
unchanged: number;
|
|
326
|
+
unchangedRate: number;
|
|
327
|
+
};
|
|
314
328
|
observabilityExport?: {
|
|
315
329
|
artifacts: number;
|
|
316
330
|
auditEvents: number;
|
|
@@ -404,7 +418,7 @@ export type VoiceProductionReadinessReport = {
|
|
|
404
418
|
total: number;
|
|
405
419
|
};
|
|
406
420
|
quality: {
|
|
407
|
-
status:
|
|
421
|
+
status: "fail" | "pass";
|
|
408
422
|
};
|
|
409
423
|
routing: {
|
|
410
424
|
events: number;
|
|
@@ -564,7 +578,7 @@ export type VoiceProductionReadinessRoutesOptions = {
|
|
|
564
578
|
gate?: false | VoiceProductionReadinessGateOptions;
|
|
565
579
|
gatePath?: false | string;
|
|
566
580
|
htmlPath?: false | string;
|
|
567
|
-
links?: VoiceProductionReadinessReport[
|
|
581
|
+
links?: VoiceProductionReadinessReport["links"];
|
|
568
582
|
llmProviders?: readonly string[];
|
|
569
583
|
name?: string;
|
|
570
584
|
onTiming?: (timing: VoiceProductionReadinessTiming) => void;
|
|
@@ -597,7 +611,12 @@ export type VoiceProductionReadinessRoutesOptions = {
|
|
|
597
611
|
query: Record<string, unknown>;
|
|
598
612
|
request: Request;
|
|
599
613
|
}) => Promise<VoiceIncidentRecoveryOutcomeReport> | VoiceIncidentRecoveryOutcomeReport);
|
|
614
|
+
incidentRecoveryTrend?: false | VoiceIncidentRecoveryTrendReport | ((input: {
|
|
615
|
+
query: Record<string, unknown>;
|
|
616
|
+
request: Request;
|
|
617
|
+
}) => Promise<VoiceIncidentRecoveryTrendReport> | VoiceIncidentRecoveryTrendReport);
|
|
600
618
|
incidentRecoveryOutcomeReadiness?: false | VoiceIncidentRecoveryOutcomeReadinessOptions;
|
|
619
|
+
incidentRecoveryTrendSLO?: false | VoiceIncidentRecoveryTrendSloOptions;
|
|
601
620
|
observabilityExport?: false | VoiceObservabilityExportReport | ((input: {
|
|
602
621
|
query: Record<string, unknown>;
|
|
603
622
|
request: Request;
|
|
@@ -653,7 +672,7 @@ export type VoiceProductionReadinessRoutesOptions = {
|
|
|
653
672
|
}) => Promise<Record<string, VoiceProductionReadinessProofSource>> | Record<string, VoiceProductionReadinessProofSource>);
|
|
654
673
|
profile?: false | VoiceProductionReadinessProfileExplanation;
|
|
655
674
|
render?: (report: VoiceProductionReadinessReport) => string | Promise<string>;
|
|
656
|
-
resolveOptions?: (input: VoiceProductionReadinessRouteInput) => Promise<Partial<Omit<VoiceProductionReadinessRoutesOptions,
|
|
675
|
+
resolveOptions?: (input: VoiceProductionReadinessRouteInput) => Promise<Partial<Omit<VoiceProductionReadinessRoutesOptions, "resolveOptions">>> | Partial<Omit<VoiceProductionReadinessRoutesOptions, "resolveOptions">>;
|
|
657
676
|
store: VoiceTraceEventStore;
|
|
658
677
|
sttProviders?: readonly string[];
|
|
659
678
|
title?: string;
|
|
@@ -665,6 +684,13 @@ export type VoiceProductionReadinessRoutesOptions = {
|
|
|
665
684
|
liveLatencyMaxAgeMs?: number;
|
|
666
685
|
monitoringRunFailAfterMs?: number;
|
|
667
686
|
monitoringNotifierDeliveryFailAfterMs?: number;
|
|
687
|
+
browserMediaMinActiveCandidatePairs?: number;
|
|
688
|
+
browserMediaMinLiveAudioTracks?: number;
|
|
689
|
+
browserMediaMinTotalStats?: number;
|
|
690
|
+
reconnectContractsMinCount?: number;
|
|
691
|
+
reconnectContractsMinSnapshotsPerContract?: number;
|
|
692
|
+
telephonyMediaMinCarriers?: number;
|
|
693
|
+
telephonyMediaMinMediaEvents?: number;
|
|
668
694
|
reconnectResumeFailAfterMs?: number;
|
|
669
695
|
};
|
|
670
696
|
export declare const createVoiceProductionReadinessProofRuntime: (options?: VoiceProductionReadinessProofRuntimeOptions) => VoiceProductionReadinessProofRuntime;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { VoiceRealCallProfileDefault, VoiceRealCallProfileDefaultsReport, VoiceRealCallProfileHistoryReport } from
|
|
3
|
-
import { type StoredVoiceAuditEvent, type VoiceAuditActor, type VoiceAuditEventStore } from
|
|
4
|
-
import type { VoiceTraceEventStore } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { VoiceRealCallProfileDefault, VoiceRealCallProfileDefaultsReport, VoiceRealCallProfileHistoryReport } from "./proofTrends";
|
|
3
|
+
import { type StoredVoiceAuditEvent, type VoiceAuditActor, type VoiceAuditEventStore } from "./audit";
|
|
4
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
5
5
|
export type VoiceProfileSwitchObservedSignals = {
|
|
6
6
|
currentProfileId?: string;
|
|
7
7
|
fallbackUsed?: boolean;
|
|
@@ -23,14 +23,14 @@ export type VoiceProfileSwitchRecommendation = {
|
|
|
23
23
|
observed: VoiceProfileSwitchObservedSignals;
|
|
24
24
|
reasons: string[];
|
|
25
25
|
recommendedProfile?: {
|
|
26
|
-
evidence: VoiceRealCallProfileDefault[
|
|
26
|
+
evidence: VoiceRealCallProfileDefault["evidence"];
|
|
27
27
|
label?: string;
|
|
28
|
-
latencyBudgets: VoiceRealCallProfileDefault[
|
|
28
|
+
latencyBudgets: VoiceRealCallProfileDefault["latencyBudgets"];
|
|
29
29
|
profileId: string;
|
|
30
30
|
providerRoutes: Record<string, string>;
|
|
31
31
|
status: string;
|
|
32
32
|
};
|
|
33
|
-
status:
|
|
33
|
+
status: "stay" | "switch" | "warn";
|
|
34
34
|
};
|
|
35
35
|
export type VoiceProfileSwitchRecommendationOptions = {
|
|
36
36
|
defaultProfileId?: string;
|
|
@@ -38,14 +38,14 @@ export type VoiceProfileSwitchRecommendationOptions = {
|
|
|
38
38
|
minImprovementMs?: number;
|
|
39
39
|
observed?: VoiceProfileSwitchObservedSignals;
|
|
40
40
|
};
|
|
41
|
-
export type VoiceProfileSwitchGuardMode =
|
|
42
|
-
export type VoiceProfileSwitchGuardAction =
|
|
41
|
+
export type VoiceProfileSwitchGuardMode = "auto" | "off" | "recommend";
|
|
42
|
+
export type VoiceProfileSwitchGuardAction = "blocked" | "disabled" | "recommend" | "stay" | "switch";
|
|
43
43
|
export type VoiceProfileSwitchGuardDecision = {
|
|
44
44
|
action: VoiceProfileSwitchGuardAction;
|
|
45
45
|
auditEvent?: StoredVoiceAuditEvent;
|
|
46
46
|
autoApplied: boolean;
|
|
47
47
|
autoSwitchCount: number;
|
|
48
|
-
blockedByPolicy?:
|
|
48
|
+
blockedByPolicy?: "allowed-profiles" | "blocked-profiles" | "max-switches";
|
|
49
49
|
confidence: number;
|
|
50
50
|
minConfidence: number;
|
|
51
51
|
mode: VoiceProfileSwitchGuardMode;
|
|
@@ -72,10 +72,10 @@ export type VoiceProfileSwitchGuardOptions = VoiceProfileSwitchRecommendationOpt
|
|
|
72
72
|
export type VoiceProfileSwitchPolicyProofCase = {
|
|
73
73
|
description?: string;
|
|
74
74
|
expectedAction?: VoiceProfileSwitchGuardAction;
|
|
75
|
-
expectedBlockedByPolicy?: VoiceProfileSwitchGuardDecision[
|
|
75
|
+
expectedBlockedByPolicy?: VoiceProfileSwitchGuardDecision["blockedByPolicy"];
|
|
76
76
|
id: string;
|
|
77
77
|
label?: string;
|
|
78
|
-
options?: Partial<Omit<VoiceProfileSwitchGuardOptions,
|
|
78
|
+
options?: Partial<Omit<VoiceProfileSwitchGuardOptions, "defaults" | "observed">> & {
|
|
79
79
|
observed?: VoiceProfileSwitchObservedSignals;
|
|
80
80
|
};
|
|
81
81
|
};
|
|
@@ -129,7 +129,7 @@ export type VoiceProfileSwitchLiveDecisionEvidence = {
|
|
|
129
129
|
scenarioId?: string;
|
|
130
130
|
selectedProfileId?: string;
|
|
131
131
|
sessionId: string;
|
|
132
|
-
source:
|
|
132
|
+
source: "audit" | "trace";
|
|
133
133
|
status?: string;
|
|
134
134
|
traceEventId?: string;
|
|
135
135
|
traceId?: string;
|
|
@@ -173,11 +173,11 @@ export type VoiceProfileSwitchLiveDecisionRoutesOptions = VoiceProfileSwitchLive
|
|
|
173
173
|
render?: (report: VoiceProfileSwitchLiveDecisionReport) => string | Promise<string>;
|
|
174
174
|
title?: string;
|
|
175
175
|
};
|
|
176
|
-
export type VoiceProfileSwitchReadinessStatus =
|
|
176
|
+
export type VoiceProfileSwitchReadinessStatus = "fail" | "pass" | "warn";
|
|
177
177
|
export type VoiceProfileSwitchReadinessIssue = {
|
|
178
178
|
code: string;
|
|
179
179
|
message: string;
|
|
180
|
-
status: Exclude<VoiceProfileSwitchReadinessStatus,
|
|
180
|
+
status: Exclude<VoiceProfileSwitchReadinessStatus, "pass">;
|
|
181
181
|
};
|
|
182
182
|
export type VoiceProfileSwitchReadinessReport = {
|
|
183
183
|
generatedAt: string;
|
package/dist/proofPack.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type StoredVoiceAuditEvent, type VoiceAuditEventFilter, type VoiceAuditEventStore } from
|
|
3
|
-
import type { VoiceObservabilityExportArtifact, VoiceObservabilityExportReport } from
|
|
4
|
-
import type { VoiceCallDebuggerReport } from
|
|
5
|
-
import type { VoiceOperationsRecord } from
|
|
6
|
-
import type { VoiceProductionReadinessReport } from
|
|
7
|
-
import type { VoiceProviderSloReport } from
|
|
8
|
-
import type { VoiceSessionSnapshot } from
|
|
9
|
-
import { type StoredVoiceTraceEvent, type VoiceTraceEventFilter, type VoiceTraceEventStore, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore } from
|
|
10
|
-
export type VoiceProofPackStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type StoredVoiceAuditEvent, type VoiceAuditEventFilter, type VoiceAuditEventStore } from "./audit";
|
|
3
|
+
import type { VoiceObservabilityExportArtifact, VoiceObservabilityExportReport } from "./observabilityExport";
|
|
4
|
+
import type { VoiceCallDebuggerReport } from "./callDebugger";
|
|
5
|
+
import type { VoiceOperationsRecord } from "./operationsRecord";
|
|
6
|
+
import type { VoiceProductionReadinessReport } from "./productionReadiness";
|
|
7
|
+
import type { VoiceProviderSloReport } from "./providerSlo";
|
|
8
|
+
import type { VoiceSessionSnapshot } from "./sessionSnapshot";
|
|
9
|
+
import { type StoredVoiceTraceEvent, type VoiceTraceEventFilter, type VoiceTraceEventStore, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore } from "./trace";
|
|
10
|
+
export type VoiceProofPackStatus = "fail" | "pass" | "warn";
|
|
11
11
|
export type VoiceProofPackEvidence = {
|
|
12
12
|
detail?: string;
|
|
13
13
|
href?: string;
|
|
@@ -102,7 +102,7 @@ export type VoiceProofPackInputBuilderLoaderInput = {
|
|
|
102
102
|
export type VoiceProofPackInputBuilderOperationsLoaderInput = VoiceProofPackInputBuilderLoaderInput & {
|
|
103
103
|
supportBundle?: VoiceProofPackInputBuilderSupportBundle;
|
|
104
104
|
};
|
|
105
|
-
export type VoiceProofPackInputBuilderOptions = Omit<VoiceProofPackInput,
|
|
105
|
+
export type VoiceProofPackInputBuilderOptions = Omit<VoiceProofPackInput, "callDebuggerReports" | "observabilityExport" | "operationsRecords" | "productionReadiness" | "providerSlo" | "sessionSnapshots"> & {
|
|
106
106
|
callDebuggerReports?: VoiceCallDebuggerReport[];
|
|
107
107
|
context?: VoiceProofPackBuildContext;
|
|
108
108
|
loadObservabilityExport?: (input: VoiceProofPackInputBuilderLoaderInput) => Promise<VoiceObservabilityExportReport> | VoiceObservabilityExportReport;
|
|
@@ -121,7 +121,7 @@ export type VoiceProofPackStaleWhileRefreshSourceOptions = {
|
|
|
121
121
|
read: () => VoiceProofPackSourceValue | Promise<VoiceProofPackSourceValue>;
|
|
122
122
|
refresh: () => VoiceProofPackSourceValue | void | Promise<VoiceProofPackSourceValue | void>;
|
|
123
123
|
};
|
|
124
|
-
export type VoiceProofPackRefreshState =
|
|
124
|
+
export type VoiceProofPackRefreshState = "failed" | "fresh" | "missing" | "refreshing" | "stale";
|
|
125
125
|
export type VoiceProofPackRefreshStatus = {
|
|
126
126
|
ageMs?: number;
|
|
127
127
|
error?: string;
|
package/dist/proofRunner.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type VoiceProofTargetMethod =
|
|
1
|
+
export type VoiceProofTargetMethod = "GET" | "POST";
|
|
2
2
|
export type VoiceProofTarget = {
|
|
3
3
|
accept?: string;
|
|
4
4
|
allowLogicalFail?: boolean;
|
|
5
5
|
body?: unknown;
|
|
6
|
-
kind:
|
|
6
|
+
kind: "json" | "text";
|
|
7
7
|
method?: VoiceProofTargetMethod;
|
|
8
8
|
name: string;
|
|
9
9
|
path: string;
|
|
@@ -14,7 +14,7 @@ export type VoiceProofTargetResult = {
|
|
|
14
14
|
bytes: number;
|
|
15
15
|
elapsedMs: number;
|
|
16
16
|
error?: string;
|
|
17
|
-
kind: VoiceProofTarget[
|
|
17
|
+
kind: VoiceProofTarget["kind"];
|
|
18
18
|
method: VoiceProofTargetMethod;
|
|
19
19
|
name: string;
|
|
20
20
|
ok: boolean;
|
|
@@ -25,7 +25,7 @@ export type VoiceProofTargetResult = {
|
|
|
25
25
|
};
|
|
26
26
|
export type VoiceCommandProofTarget = {
|
|
27
27
|
command: string[];
|
|
28
|
-
kind:
|
|
28
|
+
kind: "command";
|
|
29
29
|
name: string;
|
|
30
30
|
};
|
|
31
31
|
export type VoiceCommandProofExecutionResult = {
|
|
@@ -39,7 +39,7 @@ export type VoiceCommandProofTargetResult = {
|
|
|
39
39
|
command: string[];
|
|
40
40
|
elapsedMs: number;
|
|
41
41
|
error?: string;
|
|
42
|
-
kind:
|
|
42
|
+
kind: "command";
|
|
43
43
|
name: string;
|
|
44
44
|
ok: boolean;
|
|
45
45
|
status?: number;
|
package/dist/proofTrends.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { Database } from
|
|
3
|
-
import { type VoiceProviderDecisionStatus } from
|
|
4
|
-
import type { VoiceProductionReadinessAction, VoiceProductionReadinessCheck, VoiceReadinessRecoveryAction } from
|
|
5
|
-
import { StoredVoiceTraceEvent, VoiceTraceEventStore } from
|
|
6
|
-
export type VoiceProofTrendStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { Database } from "bun:sqlite";
|
|
3
|
+
import { type VoiceProviderDecisionStatus } from "./providerDecisionTraces";
|
|
4
|
+
import type { VoiceProductionReadinessAction, VoiceProductionReadinessCheck, VoiceReadinessRecoveryAction } from "./productionReadiness";
|
|
5
|
+
import { StoredVoiceTraceEvent, VoiceTraceEventStore } from "./trace";
|
|
6
|
+
export type VoiceProofTrendStatus = "empty" | "fail" | "pass" | "stale";
|
|
7
7
|
export type VoiceProofTrendSummary = {
|
|
8
8
|
cycles?: number;
|
|
9
9
|
maxLiveP95Ms?: number;
|
|
@@ -161,7 +161,7 @@ export type VoiceRealCallProfileTraceCollectorOptions<TEvent extends StoredVoice
|
|
|
161
161
|
store: VoiceTraceEventStore<TEvent>;
|
|
162
162
|
};
|
|
163
163
|
export type VoiceRealCallProfileTraceCollector<TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent> = VoiceTraceEventStore<TEvent> & {
|
|
164
|
-
buildHistoryReport: (options?: Omit<VoiceRealCallProfileHistoryOptions,
|
|
164
|
+
buildHistoryReport: (options?: Omit<VoiceRealCallProfileHistoryOptions, "evidence"> & {
|
|
165
165
|
evidenceOptions?: VoiceRealCallProfileTraceCollectorEvidenceOptions;
|
|
166
166
|
}) => Promise<VoiceRealCallProfileHistoryReport>;
|
|
167
167
|
listCapturedSessionIds: () => string[];
|
|
@@ -215,8 +215,8 @@ export type VoiceProofTrendRoutesOptions = {
|
|
|
215
215
|
path?: string;
|
|
216
216
|
source?: (() => Promise<VoiceProofTrendReport | VoiceProofTrendReportInput> | VoiceProofTrendReport | VoiceProofTrendReportInput) | VoiceProofTrendReport | VoiceProofTrendReportInput;
|
|
217
217
|
};
|
|
218
|
-
export type VoiceProofTrendRecommendationStatus =
|
|
219
|
-
export type VoiceProofTrendRecommendationSurface =
|
|
218
|
+
export type VoiceProofTrendRecommendationStatus = "fail" | "pass" | "warn";
|
|
219
|
+
export type VoiceProofTrendRecommendationSurface = "live-latency" | "provider-path" | "runtime-channel" | "turn-latency";
|
|
220
220
|
export type VoiceProofTrendRecommendation = {
|
|
221
221
|
evidence: Record<string, number | string | undefined>;
|
|
222
222
|
nextMove: string;
|
|
@@ -366,7 +366,7 @@ export type VoiceRealCallProfileProviderRouteOptions<TProvider extends string =
|
|
|
366
366
|
providerAliases?: Partial<Record<string, TProvider | readonly TProvider[]>>;
|
|
367
367
|
role: string;
|
|
368
368
|
};
|
|
369
|
-
export type VoiceRealCallProfileHistoryRoutesOptions = Omit<VoiceRealCallProfileHistoryOptions,
|
|
369
|
+
export type VoiceRealCallProfileHistoryRoutesOptions = Omit<VoiceRealCallProfileHistoryOptions, "source"> & {
|
|
370
370
|
headers?: HeadersInit;
|
|
371
371
|
htmlPath?: false | string;
|
|
372
372
|
markdownPath?: false | string;
|
|
@@ -375,7 +375,7 @@ export type VoiceRealCallProfileHistoryRoutesOptions = Omit<VoiceRealCallProfile
|
|
|
375
375
|
source?: (() => Promise<VoiceRealCallProfileHistoryOptions> | VoiceRealCallProfileHistoryOptions) | VoiceRealCallProfileHistoryOptions;
|
|
376
376
|
title?: string;
|
|
377
377
|
};
|
|
378
|
-
export type VoiceRealCallProfileRecoveryActionId =
|
|
378
|
+
export type VoiceRealCallProfileRecoveryActionId = "collect-browser-proof" | "collect-phone-proof" | "collect-provider-role-evidence" | "refresh";
|
|
379
379
|
export type VoiceRealCallProfileRecoveryAction = VoiceProductionReadinessAction & {
|
|
380
380
|
id: VoiceRealCallProfileRecoveryActionId;
|
|
381
381
|
profileId?: string;
|
|
@@ -425,7 +425,7 @@ export type VoiceRealCallProfileRecoveryActionResult = {
|
|
|
425
425
|
report?: VoiceRealCallProfileHistoryReport;
|
|
426
426
|
status: VoiceProofTrendStatus;
|
|
427
427
|
};
|
|
428
|
-
export type VoiceRealCallProfileRecoveryJobStatus =
|
|
428
|
+
export type VoiceRealCallProfileRecoveryJobStatus = "fail" | "pass" | "queued" | "running";
|
|
429
429
|
export type VoiceRealCallProfileRecoveryJob = {
|
|
430
430
|
actionId: VoiceRealCallProfileRecoveryActionId;
|
|
431
431
|
completedAt?: string;
|
|
@@ -445,7 +445,7 @@ export type VoiceRealCallProfileRecoveryJobCreateInput = {
|
|
|
445
445
|
message?: string;
|
|
446
446
|
status?: VoiceRealCallProfileRecoveryJobStatus;
|
|
447
447
|
};
|
|
448
|
-
export type VoiceRealCallProfileRecoveryJobUpdate = Partial<Pick<VoiceRealCallProfileRecoveryJob,
|
|
448
|
+
export type VoiceRealCallProfileRecoveryJobUpdate = Partial<Pick<VoiceRealCallProfileRecoveryJob, "completedAt" | "message" | "ok" | "report" | "startedAt" | "status" | "updatedAt">>;
|
|
449
449
|
export type VoiceRealCallProfileRecoveryJobListOptions = {
|
|
450
450
|
actionId?: VoiceRealCallProfileRecoveryActionId;
|
|
451
451
|
limit?: number;
|
|
@@ -465,7 +465,7 @@ export type VoiceSQLiteRealCallProfileRecoveryJobStoreOptions = {
|
|
|
465
465
|
tableName?: string;
|
|
466
466
|
};
|
|
467
467
|
export type VoiceRealCallProfileRecoveryActionHandler = (input: VoiceRealCallProfileRecoveryActionHandlerInput) => Promise<Partial<VoiceRealCallProfileRecoveryActionResult> | void> | Partial<VoiceRealCallProfileRecoveryActionResult> | void;
|
|
468
|
-
export type VoiceRealCallProfileRecoveryActionRoutesOptions = VoiceRealCallProfileRecoveryActionOptions & Omit<VoiceRealCallProfileHistoryRoutesOptions,
|
|
468
|
+
export type VoiceRealCallProfileRecoveryActionRoutesOptions = VoiceRealCallProfileRecoveryActionOptions & Omit<VoiceRealCallProfileHistoryRoutesOptions, "htmlPath" | "markdownPath"> & {
|
|
469
469
|
asyncActionIds?: readonly VoiceRealCallProfileRecoveryActionId[];
|
|
470
470
|
handlers?: Partial<Record<VoiceRealCallProfileRecoveryActionId, VoiceRealCallProfileRecoveryActionHandler>>;
|
|
471
471
|
jobStore?: VoiceRealCallProfileRecoveryJobStore;
|
|
@@ -505,7 +505,7 @@ export type VoiceRealCallProfileRecoveryLoopOptions = {
|
|
|
505
505
|
jobHref?: string | ((jobId: string) => string);
|
|
506
506
|
jobPollMs?: number;
|
|
507
507
|
jobTimeoutMs?: number;
|
|
508
|
-
logger?: Pick<Console,
|
|
508
|
+
logger?: Pick<Console, "log">;
|
|
509
509
|
maxPasses?: number;
|
|
510
510
|
readinessCheckLabel?: string;
|
|
511
511
|
readinessHref?: string;
|
|
@@ -513,7 +513,7 @@ export type VoiceRealCallProfileRecoveryLoopOptions = {
|
|
|
513
513
|
refreshHref?: false | string;
|
|
514
514
|
requestTimeoutMs?: number;
|
|
515
515
|
};
|
|
516
|
-
export type VoiceRealCallProfileRecoveryEvidenceProviderRole =
|
|
516
|
+
export type VoiceRealCallProfileRecoveryEvidenceProviderRole = "llm" | "stt" | "tts";
|
|
517
517
|
export type VoiceRealCallProfileRecoveryEvidenceProvider = string | {
|
|
518
518
|
elapsedMs?: number;
|
|
519
519
|
provider: string;
|
|
@@ -541,7 +541,7 @@ export type VoiceRealCallProfileRecoveryEvidenceOptions<TEvent extends StoredVoi
|
|
|
541
541
|
providers?: Partial<Record<VoiceRealCallProfileRecoveryEvidenceProviderRole, VoiceRealCallProfileRecoveryEvidenceProvider>>;
|
|
542
542
|
scenarioId?: string;
|
|
543
543
|
sessionId?: string;
|
|
544
|
-
store: Pick<VoiceTraceEventStore<TEvent>,
|
|
544
|
+
store: Pick<VoiceTraceEventStore<TEvent>, "append">;
|
|
545
545
|
};
|
|
546
546
|
export type VoiceRealCallProfileRecoveryEvidenceResult<TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent> = {
|
|
547
547
|
events: TEvent[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { STTAdapter, STTAdapterOpenOptions, TTSAdapter, TTSAdapterOpenOptions } from
|
|
2
|
-
import type { VoiceProviderRouterHealthOptions, VoiceProviderRouterProviderHealth, VoiceProviderRouterProviderProfile, VoiceProviderRouterPolicyPreset, VoiceProviderRouterPolicyWeights, VoiceProviderRouterStrategy } from
|
|
1
|
+
import type { STTAdapter, STTAdapterOpenOptions, TTSAdapter, TTSAdapterOpenOptions } from "./types";
|
|
2
|
+
import type { VoiceProviderRouterHealthOptions, VoiceProviderRouterProviderHealth, VoiceProviderRouterProviderProfile, VoiceProviderRouterPolicyPreset, VoiceProviderRouterPolicyWeights, VoiceProviderRouterStrategy } from "./modelAdapters";
|
|
3
3
|
type MaybePromise<T> = T | Promise<T>;
|
|
4
|
-
type VoiceIOProviderKind =
|
|
5
|
-
type VoiceIOProviderStatus =
|
|
4
|
+
type VoiceIOProviderKind = "stt" | "tts";
|
|
5
|
+
type VoiceIOProviderStatus = "error" | "fallback" | "success";
|
|
6
6
|
export type VoiceIOProviderRouterEvent<TProvider extends string = string> = {
|
|
7
7
|
at: number;
|
|
8
8
|
attempt: number;
|
|
@@ -11,7 +11,7 @@ export type VoiceIOProviderRouterEvent<TProvider extends string = string> = {
|
|
|
11
11
|
fallbackProvider?: TProvider;
|
|
12
12
|
kind: VoiceIOProviderKind;
|
|
13
13
|
latencyBudgetMs?: number;
|
|
14
|
-
operation:
|
|
14
|
+
operation: "open" | "send";
|
|
15
15
|
provider: TProvider;
|
|
16
16
|
providerHealth?: VoiceProviderRouterProviderHealth<TProvider>;
|
|
17
17
|
selectedProvider: TProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceProviderHealthStatus, type VoiceProviderHealthSummary, type VoiceProviderHealthSummaryOptions } from
|
|
3
|
-
export type VoiceProviderCapabilityKind =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceProviderHealthStatus, type VoiceProviderHealthSummary, type VoiceProviderHealthSummaryOptions } from "./providerHealth";
|
|
3
|
+
export type VoiceProviderCapabilityKind = "llm" | "stt" | "tts" | "custom";
|
|
4
4
|
export type VoiceProviderCapabilityDefinition<TProvider extends string = string> = {
|
|
5
5
|
configured?: boolean;
|
|
6
6
|
description?: string;
|
|
@@ -14,7 +14,7 @@ export type VoiceProviderCapabilityDefinition<TProvider extends string = string>
|
|
|
14
14
|
export type VoiceProviderCapabilitySummary<TProvider extends string = string> = VoiceProviderCapabilityDefinition<TProvider> & {
|
|
15
15
|
configured: boolean;
|
|
16
16
|
health?: VoiceProviderHealthSummary<TProvider>;
|
|
17
|
-
status: VoiceProviderHealthStatus |
|
|
17
|
+
status: VoiceProviderHealthStatus | "selected" | "unconfigured";
|
|
18
18
|
};
|
|
19
19
|
export type VoiceProviderCapabilityReport<TProvider extends string = string> = {
|
|
20
20
|
capabilities: VoiceProviderCapabilitySummary<TProvider>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceRoutingEventKind } from
|
|
3
|
-
import type { StoredVoiceTraceEvent, VoiceTraceEvent, VoiceTraceEventStore } from
|
|
4
|
-
export type VoiceProviderDecisionStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceRoutingEventKind } from "./resilienceRoutes";
|
|
3
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEvent, VoiceTraceEventStore } from "./trace";
|
|
4
|
+
export type VoiceProviderDecisionStatus = "degraded" | "error" | "fallback" | "selected" | "skipped" | "success";
|
|
5
5
|
export type VoiceProviderDecisionTrace = {
|
|
6
6
|
at: number;
|
|
7
7
|
elapsedMs?: number;
|
|
@@ -18,7 +18,7 @@ export type VoiceProviderDecisionTrace = {
|
|
|
18
18
|
surface: string;
|
|
19
19
|
turnId?: string;
|
|
20
20
|
};
|
|
21
|
-
export type VoiceProviderDecisionTraceInput = Omit<VoiceProviderDecisionTrace,
|
|
21
|
+
export type VoiceProviderDecisionTraceInput = Omit<VoiceProviderDecisionTrace, "at" | "reason" | "sessionId" | "surface"> & {
|
|
22
22
|
at?: number;
|
|
23
23
|
reason?: string;
|
|
24
24
|
sessionId?: string;
|
|
@@ -27,7 +27,7 @@ export type VoiceProviderDecisionTraceInput = Omit<VoiceProviderDecisionTrace, '
|
|
|
27
27
|
export type VoiceProviderDecisionTraceIssue = {
|
|
28
28
|
code: string;
|
|
29
29
|
message: string;
|
|
30
|
-
status:
|
|
30
|
+
status: "fail" | "warn";
|
|
31
31
|
surface?: string;
|
|
32
32
|
};
|
|
33
33
|
export type VoiceProviderDecisionSurfaceReport = {
|
|
@@ -40,14 +40,14 @@ export type VoiceProviderDecisionSurfaceReport = {
|
|
|
40
40
|
providers: string[];
|
|
41
41
|
reasons: string[];
|
|
42
42
|
selected: number;
|
|
43
|
-
status:
|
|
43
|
+
status: "fail" | "pass" | "warn";
|
|
44
44
|
surface: string;
|
|
45
45
|
};
|
|
46
46
|
export type VoiceProviderDecisionTraceReport = {
|
|
47
47
|
checkedAt: number;
|
|
48
48
|
decisions: VoiceProviderDecisionTrace[];
|
|
49
49
|
issues: VoiceProviderDecisionTraceIssue[];
|
|
50
|
-
status:
|
|
50
|
+
status: "fail" | "pass" | "warn";
|
|
51
51
|
summary: {
|
|
52
52
|
degraded: number;
|
|
53
53
|
decisions: number;
|
package/dist/providerHealth.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from
|
|
3
|
-
export type VoiceProviderHealthStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from "./trace";
|
|
3
|
+
export type VoiceProviderHealthStatus = "healthy" | "idle" | "rate-limited" | "degraded" | "recoverable" | "suppressed";
|
|
4
4
|
export type VoiceProviderHealthSummary<TProvider extends string = string> = {
|
|
5
5
|
averageElapsedMs?: number;
|
|
6
6
|
errorCount: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { VoiceProviderOrchestrationProfile, VoiceProviderRouterProviderProfile } from
|
|
3
|
-
import type { VoiceSessionRecord } from
|
|
4
|
-
export type VoiceProviderOrchestrationStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { VoiceProviderOrchestrationProfile, VoiceProviderRouterProviderProfile } from "./modelAdapters";
|
|
3
|
+
import type { VoiceSessionRecord } from "./types";
|
|
4
|
+
export type VoiceProviderOrchestrationStatus = "fail" | "pass" | "warn";
|
|
5
5
|
export type VoiceProviderOrchestrationRequirement = {
|
|
6
6
|
minProviders?: number;
|
|
7
7
|
requireBudgetPolicy?: boolean;
|
|
@@ -12,7 +12,7 @@ export type VoiceProviderOrchestrationRequirement = {
|
|
|
12
12
|
export type VoiceProviderOrchestrationIssue = {
|
|
13
13
|
code: string;
|
|
14
14
|
message: string;
|
|
15
|
-
status: Exclude<VoiceProviderOrchestrationStatus,
|
|
15
|
+
status: Exclude<VoiceProviderOrchestrationStatus, "pass">;
|
|
16
16
|
surface?: string;
|
|
17
17
|
};
|
|
18
18
|
export type VoiceProviderOrchestrationSurfaceReport = {
|