@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,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceIOProviderFailureSimulationMode, VoiceIOProviderFailureSimulationResult } from
|
|
1
|
+
import type { VoiceIOProviderFailureSimulationMode, VoiceIOProviderFailureSimulationResult } from "../testing/ioProviderSimulator";
|
|
2
2
|
export type VoiceProviderSimulationProvider<TProvider extends string = string> = {
|
|
3
3
|
configured?: boolean;
|
|
4
4
|
provider: TProvider;
|
|
@@ -10,7 +10,7 @@ export type VoiceProviderSimulationControlsOptions<TProvider extends string = st
|
|
|
10
10
|
failureProviders?: readonly TProvider[];
|
|
11
11
|
fetch?: typeof fetch;
|
|
12
12
|
intervalMs?: number;
|
|
13
|
-
kind?:
|
|
13
|
+
kind?: "stt" | "tts" | string;
|
|
14
14
|
pathPrefix?: string;
|
|
15
15
|
providers: readonly VoiceProviderSimulationProvider<TProvider>[];
|
|
16
16
|
recoveryMessage?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createVoiceProviderSimulationControlsStore, type VoiceProviderSimulationControlsOptions, type VoiceProviderSimulationControlsSnapshot, type VoiceProviderSimulationProvider } from
|
|
1
|
+
import { createVoiceProviderSimulationControlsStore, type VoiceProviderSimulationControlsOptions, type VoiceProviderSimulationControlsSnapshot, type VoiceProviderSimulationProvider } from "./providerSimulationControls";
|
|
2
2
|
export type VoiceProviderSimulationControlsViewModel<TProvider extends string = string> = {
|
|
3
3
|
canSimulateFailure: boolean;
|
|
4
4
|
description: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VoiceProviderHealthSummary } from
|
|
2
|
-
import { type VoiceProviderStatusClientOptions, type VoiceProviderStatusSnapshot } from
|
|
1
|
+
import type { VoiceProviderHealthSummary } from "../providerHealth";
|
|
2
|
+
import { type VoiceProviderStatusClientOptions, type VoiceProviderStatusSnapshot } from "./providerStatus";
|
|
3
3
|
export type VoiceProviderStatusCardView<TProvider extends string = string> = VoiceProviderHealthSummary<TProvider> & {
|
|
4
4
|
detail: string;
|
|
5
5
|
label: string;
|
|
@@ -14,7 +14,7 @@ export type VoiceProviderStatusViewModel<TProvider extends string = string> = {
|
|
|
14
14
|
isLoading: boolean;
|
|
15
15
|
label: string;
|
|
16
16
|
providers: VoiceProviderStatusCardView<TProvider>[];
|
|
17
|
-
status:
|
|
17
|
+
status: "empty" | "error" | "loading" | "ready" | "warning";
|
|
18
18
|
title: string;
|
|
19
19
|
updatedAt?: number;
|
|
20
20
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { VoiceProductionReadinessCheck } from
|
|
2
|
-
import { type VoiceReadinessFailuresClientOptions, type VoiceReadinessFailuresSnapshot } from
|
|
1
|
+
import type { VoiceProductionReadinessCheck } from "../productionReadiness";
|
|
2
|
+
import { type VoiceReadinessFailuresClientOptions, type VoiceReadinessFailuresSnapshot } from "./readinessFailures";
|
|
3
3
|
export type VoiceReadinessFailureView = {
|
|
4
4
|
evidenceHref?: string;
|
|
5
5
|
label: string;
|
|
6
6
|
observed: string;
|
|
7
7
|
remediation: string;
|
|
8
8
|
sourceHref?: string;
|
|
9
|
-
status: VoiceProductionReadinessCheck[
|
|
9
|
+
status: VoiceProductionReadinessCheck["status"];
|
|
10
10
|
threshold: string;
|
|
11
11
|
thresholdLabel: string;
|
|
12
12
|
};
|
|
@@ -20,7 +20,7 @@ export type VoiceReadinessFailuresViewModel = {
|
|
|
20
20
|
href: string;
|
|
21
21
|
label: string;
|
|
22
22
|
}>;
|
|
23
|
-
status:
|
|
23
|
+
status: "empty" | "error" | "loading" | "ready" | "warning";
|
|
24
24
|
title: string;
|
|
25
25
|
updatedAt?: number;
|
|
26
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VoiceRoutingDecisionSummary } from
|
|
2
|
-
import { type VoiceRoutingStatusClientOptions, type VoiceRoutingStatusSnapshot } from
|
|
1
|
+
import type { VoiceRoutingDecisionSummary } from "../resilienceRoutes";
|
|
2
|
+
import { type VoiceRoutingStatusClientOptions, type VoiceRoutingStatusSnapshot } from "./routingStatus";
|
|
3
3
|
export type VoiceRoutingStatusViewModel = {
|
|
4
4
|
activeStack: Array<{
|
|
5
5
|
label: string;
|
|
@@ -14,7 +14,7 @@ export type VoiceRoutingStatusViewModel = {
|
|
|
14
14
|
label: string;
|
|
15
15
|
value: string;
|
|
16
16
|
}>;
|
|
17
|
-
status:
|
|
17
|
+
status: "empty" | "error" | "loading" | "ready";
|
|
18
18
|
title: string;
|
|
19
19
|
updatedAt?: number;
|
|
20
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceSessionSnapshotClientOptions, type VoiceSessionSnapshotClientState } from
|
|
1
|
+
import { type VoiceSessionSnapshotClientOptions, type VoiceSessionSnapshotClientState } from "./sessionSnapshot";
|
|
2
2
|
export type VoiceSessionSnapshotViewModel = {
|
|
3
3
|
artifacts: Array<{
|
|
4
4
|
href?: string;
|
|
@@ -14,7 +14,7 @@ export type VoiceSessionSnapshotViewModel = {
|
|
|
14
14
|
value: string;
|
|
15
15
|
}>;
|
|
16
16
|
showDownload: boolean;
|
|
17
|
-
status:
|
|
17
|
+
status: "empty" | "error" | "loading" | "ready" | "warning";
|
|
18
18
|
title: string;
|
|
19
19
|
updatedAt?: number;
|
|
20
20
|
};
|
package/dist/client/store.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceStreamState, VoiceStoreAction } from
|
|
1
|
+
import type { VoiceStreamState, VoiceStoreAction } from "../types";
|
|
2
2
|
export declare const createVoiceStreamStore: <TResult = unknown>() => {
|
|
3
3
|
dispatch: (action: VoiceStoreAction<TResult>) => void;
|
|
4
4
|
getServerSnapshot: () => VoiceStreamState<TResult>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VoiceTraceTimelineSession } from
|
|
2
|
-
import { type VoiceTraceTimelineClientOptions, type VoiceTraceTimelineSnapshot } from
|
|
1
|
+
import type { VoiceTraceTimelineSession } from "../traceTimeline";
|
|
2
|
+
import { type VoiceTraceTimelineClientOptions, type VoiceTraceTimelineSnapshot } from "./traceTimeline";
|
|
3
3
|
export type VoiceTraceTimelineSessionView = VoiceTraceTimelineSession & {
|
|
4
4
|
detailHref: string;
|
|
5
5
|
durationLabel: string;
|
|
@@ -14,7 +14,7 @@ export type VoiceTraceTimelineViewModel = {
|
|
|
14
14
|
isLoading: boolean;
|
|
15
15
|
label: string;
|
|
16
16
|
sessions: VoiceTraceTimelineSessionView[];
|
|
17
|
-
status:
|
|
17
|
+
status: "empty" | "error" | "failed" | "loading" | "ready" | "warning";
|
|
18
18
|
title: string;
|
|
19
19
|
updatedAt?: number;
|
|
20
20
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VoiceTurnLatencyItem } from
|
|
2
|
-
import { type VoiceTurnLatencyClientOptions, type VoiceTurnLatencySnapshot } from
|
|
1
|
+
import type { VoiceTurnLatencyItem } from "../turnLatency";
|
|
2
|
+
import { type VoiceTurnLatencyClientOptions, type VoiceTurnLatencySnapshot } from "./turnLatency";
|
|
3
3
|
export type VoiceTurnLatencyCardView = VoiceTurnLatencyItem & {
|
|
4
4
|
label: string;
|
|
5
5
|
rows: Array<{
|
|
@@ -14,7 +14,7 @@ export type VoiceTurnLatencyViewModel = {
|
|
|
14
14
|
label: string;
|
|
15
15
|
proofLabel?: string;
|
|
16
16
|
showProofAction: boolean;
|
|
17
|
-
status:
|
|
17
|
+
status: "empty" | "error" | "loading" | "ready" | "warning";
|
|
18
18
|
title: string;
|
|
19
19
|
turns: VoiceTurnLatencyCardView[];
|
|
20
20
|
updatedAt?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VoiceTurnQualityItem } from
|
|
2
|
-
import { type VoiceTurnQualityClientOptions, type VoiceTurnQualitySnapshot } from
|
|
1
|
+
import type { VoiceTurnQualityItem } from "../turnQuality";
|
|
2
|
+
import { type VoiceTurnQualityClientOptions, type VoiceTurnQualitySnapshot } from "./turnQuality";
|
|
3
3
|
export type VoiceTurnQualityCardView = VoiceTurnQualityItem & {
|
|
4
4
|
detail: string;
|
|
5
5
|
label: string;
|
|
@@ -13,7 +13,7 @@ export type VoiceTurnQualityViewModel = {
|
|
|
13
13
|
error: string | null;
|
|
14
14
|
isLoading: boolean;
|
|
15
15
|
label: string;
|
|
16
|
-
status:
|
|
16
|
+
status: "empty" | "error" | "loading" | "ready" | "warning";
|
|
17
17
|
title: string;
|
|
18
18
|
turns: VoiceTurnQualityCardView[];
|
|
19
19
|
updatedAt?: number;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
export type VoiceCompetitiveCoverageStatus =
|
|
3
|
-
export type VoiceCompetitiveCoverageLevel =
|
|
4
|
-
export type VoiceCompetitiveDepthLevel =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
export type VoiceCompetitiveCoverageStatus = "fail" | "pass" | "warn";
|
|
3
|
+
export type VoiceCompetitiveCoverageLevel = "covered" | "intentional-gap" | "missing" | "partial";
|
|
4
|
+
export type VoiceCompetitiveDepthLevel = "advantage" | "covered" | "intentional-gap" | "lag" | "parity";
|
|
5
5
|
export type VoiceCompetitiveEvidence = {
|
|
6
6
|
href?: string;
|
|
7
|
-
kind?:
|
|
7
|
+
kind?: "docs" | "example" | "failure-replay" | "operations-record" | "proof" | "readiness" | "route" | "test";
|
|
8
8
|
name: string;
|
|
9
9
|
required?: boolean;
|
|
10
|
-
status?:
|
|
10
|
+
status?: "fail" | "pass" | "warn";
|
|
11
11
|
};
|
|
12
12
|
export type VoiceCompetitiveSurface = {
|
|
13
13
|
buyerNeed?: string;
|
|
@@ -16,8 +16,8 @@ export type VoiceCompetitiveSurface = {
|
|
|
16
16
|
depth: VoiceCompetitiveDepthLevel;
|
|
17
17
|
evidence?: VoiceCompetitiveEvidence[];
|
|
18
18
|
frameworkPrimitives?: string[];
|
|
19
|
-
operationsRecord?:
|
|
20
|
-
readinessGate?:
|
|
19
|
+
operationsRecord?: "linked" | "not-applicable" | "required" | "unknown";
|
|
20
|
+
readinessGate?: "not-applicable" | "present" | "recommended" | "required" | "unknown";
|
|
21
21
|
remainingGap?: string;
|
|
22
22
|
status?: VoiceCompetitiveCoverageStatus;
|
|
23
23
|
surface: string;
|
|
@@ -46,7 +46,7 @@ export type VoiceCompetitiveCoverageSummary = {
|
|
|
46
46
|
export type VoiceCompetitiveCoverageIssue = {
|
|
47
47
|
code: string;
|
|
48
48
|
message: string;
|
|
49
|
-
severity:
|
|
49
|
+
severity: "error" | "warning";
|
|
50
50
|
surface?: string;
|
|
51
51
|
};
|
|
52
52
|
export type VoiceCompetitiveCoverageReport = {
|
package/dist/correction.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceCorrectionRiskTier, VoiceDomainTerm, VoiceLexiconEntry, VoicePhraseHint, VoiceTurnCorrectionHandler } from
|
|
1
|
+
import type { VoiceCorrectionRiskTier, VoiceDomainTerm, VoiceLexiconEntry, VoicePhraseHint, VoiceTurnCorrectionHandler } from "./types";
|
|
2
2
|
export type VoicePhraseHintCorrectionMatch = {
|
|
3
3
|
alias: string;
|
|
4
4
|
hint: VoicePhraseHint;
|
|
@@ -18,7 +18,7 @@ export type VoiceDomainHintGenerationOptions = {
|
|
|
18
18
|
};
|
|
19
19
|
export type VoiceRiskyTurnCorrectionHandlerOptions = VoicePhraseHintCorrectionOptions & {
|
|
20
20
|
maxAverageConfidence?: number;
|
|
21
|
-
riskTier?: Exclude<VoiceCorrectionRiskTier,
|
|
21
|
+
riskTier?: Exclude<VoiceCorrectionRiskTier, "safe">;
|
|
22
22
|
};
|
|
23
23
|
export type VoicePhraseHintCorrectionRunOptions = {
|
|
24
24
|
riskTier?: VoiceCorrectionRiskTier;
|
package/dist/dataControl.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { VoiceCampaignStore } from
|
|
2
|
-
import { Elysia } from
|
|
3
|
-
import { type VoiceAuditActor, type VoiceAuditEventFilter, type VoiceAuditEventStore } from
|
|
4
|
-
import { exportVoiceAuditTrail } from
|
|
5
|
-
import type { VoiceAuditSinkDeliveryStore } from
|
|
6
|
-
import type { VoiceIntegrationEventStore, VoiceOpsTaskStore } from
|
|
7
|
-
import type { VoiceIncidentBundleStore } from
|
|
8
|
-
import type { VoiceCallReviewStore } from
|
|
9
|
-
import type { VoiceTraceEventStore, VoiceTracePruneFilter, VoiceTraceSinkDeliveryStore } from
|
|
10
|
-
import type { VoiceSessionStore } from
|
|
1
|
+
import type { VoiceCampaignStore } from "./campaign";
|
|
2
|
+
import { Elysia } from "elysia";
|
|
3
|
+
import { type VoiceAuditActor, type VoiceAuditEventFilter, type VoiceAuditEventStore } from "./audit";
|
|
4
|
+
import { exportVoiceAuditTrail } from "./auditExport";
|
|
5
|
+
import type { VoiceAuditSinkDeliveryStore } from "./auditSinks";
|
|
6
|
+
import type { VoiceIntegrationEventStore, VoiceOpsTaskStore } from "./ops";
|
|
7
|
+
import type { VoiceIncidentBundleStore } from "./incidentBundle";
|
|
8
|
+
import type { VoiceCallReviewStore } from "./testing/review";
|
|
9
|
+
import type { VoiceTraceEventStore, VoiceTracePruneFilter, VoiceTraceSinkDeliveryStore } from "./trace";
|
|
10
|
+
import type { VoiceSessionStore } from "./types";
|
|
11
11
|
export declare const voiceComplianceRedactionDefaults: {
|
|
12
12
|
keys: string[];
|
|
13
13
|
redactEmails: true;
|
|
14
14
|
redactPhoneNumbers: true;
|
|
15
15
|
};
|
|
16
|
-
export type VoiceDataRetentionScope =
|
|
16
|
+
export type VoiceDataRetentionScope = "auditDeliveries" | "campaigns" | "events" | "incidentBundles" | "reviews" | "sessions" | "tasks" | "traceDeliveries" | "traces";
|
|
17
17
|
export type VoiceDataRetentionStores = {
|
|
18
18
|
campaigns?: VoiceCampaignStore;
|
|
19
19
|
events?: VoiceIntegrationEventStore;
|
|
@@ -44,7 +44,7 @@ export type VoiceDataRetentionScopeReport = {
|
|
|
44
44
|
keepNewest?: number;
|
|
45
45
|
scannedCount: number;
|
|
46
46
|
scope: VoiceDataRetentionScope;
|
|
47
|
-
skippedReason?:
|
|
47
|
+
skippedReason?: "missing-store" | "missing-selector";
|
|
48
48
|
};
|
|
49
49
|
export type VoiceDataRetentionReport = {
|
|
50
50
|
checkedAt: number;
|
|
@@ -54,7 +54,7 @@ export type VoiceDataRetentionReport = {
|
|
|
54
54
|
};
|
|
55
55
|
export type VoiceDataControlStorageSurface = {
|
|
56
56
|
configured: boolean;
|
|
57
|
-
control:
|
|
57
|
+
control: "audit" | "artifact" | "queue" | "session" | "workflow";
|
|
58
58
|
name: string;
|
|
59
59
|
selfHosted: boolean;
|
|
60
60
|
};
|
|
@@ -85,7 +85,7 @@ export type VoiceDataControlAssertionInput = {
|
|
|
85
85
|
minAuditExportEvents?: number;
|
|
86
86
|
minConfiguredStorage?: number;
|
|
87
87
|
minProviderKeys?: number;
|
|
88
|
-
requiredControls?: VoiceDataControlStorageSurface[
|
|
88
|
+
requiredControls?: VoiceDataControlStorageSurface["control"][];
|
|
89
89
|
requiredDeletionScopes?: VoiceDataRetentionScope[];
|
|
90
90
|
requiredProviderKeys?: string[];
|
|
91
91
|
requiredRetentionScopes?: VoiceDataRetentionScope[];
|
|
@@ -101,7 +101,7 @@ export type VoiceDataControlAssertionInput = {
|
|
|
101
101
|
export type VoiceDataControlAssertionReport = {
|
|
102
102
|
auditExportEvents: number;
|
|
103
103
|
configuredStorage: string[];
|
|
104
|
-
controls: VoiceDataControlStorageSurface[
|
|
104
|
+
controls: VoiceDataControlStorageSurface["control"][];
|
|
105
105
|
deletionDeleted: number;
|
|
106
106
|
deletionDryRun?: boolean;
|
|
107
107
|
deletionScopes: VoiceDataRetentionScope[];
|
|
@@ -123,7 +123,7 @@ export type VoiceDataControlRoutesOptions = VoiceDataRetentionStores & {
|
|
|
123
123
|
name?: string;
|
|
124
124
|
path?: string;
|
|
125
125
|
providerKeys?: VoiceDataControlProviderKeySurface[];
|
|
126
|
-
redact?: import(
|
|
126
|
+
redact?: import("./trace").VoiceTraceRedactionConfig | boolean;
|
|
127
127
|
title?: string;
|
|
128
128
|
traceDeliveries?: VoiceTraceSinkDeliveryStore;
|
|
129
129
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { createVoiceAuditSinkDeliveryWorker, type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryRecord, type VoiceAuditSinkDeliveryStore, type VoiceAuditSinkDeliveryWorkerOptions, type VoiceAuditSinkDeliveryWorkerResult, type VoiceS3AuditSinkClient } from
|
|
3
|
-
import { createVoiceTraceSinkDeliveryWorker, type VoiceRedisTaskLeaseCoordinator, type VoiceTraceSinkDeliveryQueueSummary, type VoiceTraceSinkDeliveryWorkerOptions, type VoiceTraceSinkDeliveryWorkerResult } from
|
|
4
|
-
import { type StoredVoiceTraceEvent, type VoiceS3TraceSinkClient, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore } from
|
|
5
|
-
import type { StoredVoiceAuditEvent } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { createVoiceAuditSinkDeliveryWorker, type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryRecord, type VoiceAuditSinkDeliveryStore, type VoiceAuditSinkDeliveryWorkerOptions, type VoiceAuditSinkDeliveryWorkerResult, type VoiceS3AuditSinkClient } from "./auditSinks";
|
|
3
|
+
import { createVoiceTraceSinkDeliveryWorker, type VoiceRedisTaskLeaseCoordinator, type VoiceTraceSinkDeliveryQueueSummary, type VoiceTraceSinkDeliveryWorkerOptions, type VoiceTraceSinkDeliveryWorkerResult } from "./queue";
|
|
4
|
+
import { type StoredVoiceTraceEvent, type VoiceS3TraceSinkClient, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore } from "./trace";
|
|
5
|
+
import type { StoredVoiceAuditEvent } from "./audit";
|
|
6
6
|
export type VoiceDeliveryRuntimeAuditConfig<TDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord> = VoiceAuditSinkDeliveryWorkerOptions<TDelivery> & {
|
|
7
7
|
autoStart?: boolean;
|
|
8
8
|
onError?: (error: unknown) => Promise<void> | void;
|
|
@@ -60,7 +60,7 @@ export type VoiceDeliveryRuntimeRoutesOptions = {
|
|
|
60
60
|
tickPath?: false | string;
|
|
61
61
|
title?: string;
|
|
62
62
|
};
|
|
63
|
-
export type VoiceDeliveryRuntimePresetMode =
|
|
63
|
+
export type VoiceDeliveryRuntimePresetMode = "file" | "s3" | "webhook";
|
|
64
64
|
export type VoiceDeliveryRuntimePresetLeaseConfig = VoiceRedisTaskLeaseCoordinator | {
|
|
65
65
|
audit: VoiceRedisTaskLeaseCoordinator;
|
|
66
66
|
trace: VoiceRedisTaskLeaseCoordinator;
|
|
@@ -91,7 +91,7 @@ export type VoiceDeliveryRuntimeWebhookPresetOptions = VoiceDeliveryRuntimePrese
|
|
|
91
91
|
};
|
|
92
92
|
fetch?: typeof fetch;
|
|
93
93
|
headers?: Record<string, string>;
|
|
94
|
-
mode:
|
|
94
|
+
mode: "webhook";
|
|
95
95
|
retries?: number;
|
|
96
96
|
signingSecret?: string;
|
|
97
97
|
timeoutMs?: number;
|
|
@@ -101,11 +101,11 @@ export type VoiceDeliveryRuntimeS3PresetOptions = VoiceDeliveryRuntimePresetBase
|
|
|
101
101
|
bucket?: string;
|
|
102
102
|
client?: VoiceS3AuditSinkClient & VoiceS3TraceSinkClient;
|
|
103
103
|
keyPrefix?: string;
|
|
104
|
-
mode:
|
|
104
|
+
mode: "s3";
|
|
105
105
|
};
|
|
106
106
|
export type VoiceDeliveryRuntimeFilePresetOptions = VoiceDeliveryRuntimePresetBaseOptions & {
|
|
107
107
|
directory: string;
|
|
108
|
-
mode:
|
|
108
|
+
mode: "file";
|
|
109
109
|
};
|
|
110
110
|
export type VoiceDeliveryRuntimePresetOptions = VoiceDeliveryRuntimeFilePresetOptions | VoiceDeliveryRuntimeS3PresetOptions | VoiceDeliveryRuntimeWebhookPresetOptions;
|
|
111
111
|
export declare const createVoiceDeliveryRuntimePresetConfig: (options: VoiceDeliveryRuntimePresetOptions) => VoiceDeliveryRuntimeConfig;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceAuditSinkDeliveryStore, type VoiceAuditSinkDeliveryQueueSummary } from
|
|
3
|
-
import { type VoiceTraceSinkDeliveryQueueSummary } from
|
|
4
|
-
import type { VoiceTraceSinkDeliveryStore } from
|
|
5
|
-
export type VoiceDeliverySinkKind =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceAuditSinkDeliveryStore, type VoiceAuditSinkDeliveryQueueSummary } from "./auditSinks";
|
|
3
|
+
import { type VoiceTraceSinkDeliveryQueueSummary } from "./queue";
|
|
4
|
+
import type { VoiceTraceSinkDeliveryStore } from "./trace";
|
|
5
|
+
export type VoiceDeliverySinkKind = "file" | "postgres" | "s3" | "sqlite" | "webhook" | (string & {});
|
|
6
6
|
export type VoiceDeliverySinkDescriptor = {
|
|
7
7
|
description?: string;
|
|
8
8
|
href?: string;
|
|
@@ -37,7 +37,7 @@ export type VoiceDeliverySinkReport = {
|
|
|
37
37
|
auditDeliveries?: VoiceTraceDeliverySinkSurface<VoiceAuditSinkDeliveryQueueSummary>;
|
|
38
38
|
checkedAt: number;
|
|
39
39
|
sinks: VoiceDeliverySinkDescriptor[];
|
|
40
|
-
status:
|
|
40
|
+
status: "fail" | "pass" | "warn";
|
|
41
41
|
traceDeliveries?: VoiceTraceDeliverySinkSurface<VoiceTraceSinkDeliveryQueueSummary>;
|
|
42
42
|
};
|
|
43
43
|
export type VoiceTraceDeliverySinkSurface<TSummary> = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { VoiceOpsStatusReport } from
|
|
3
|
-
import type { VoicePhoneAgentProductionSmokeReport } from
|
|
4
|
-
import type { VoicePhoneAgentSetupReport } from
|
|
5
|
-
import type { VoiceProductionReadinessReport } from
|
|
6
|
-
export type VoiceDemoReadyStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { VoiceOpsStatusReport } from "./opsStatus";
|
|
3
|
+
import type { VoicePhoneAgentProductionSmokeReport } from "./phoneAgentProductionSmoke";
|
|
4
|
+
import type { VoicePhoneAgentSetupReport } from "./phoneAgent";
|
|
5
|
+
import type { VoiceProductionReadinessReport } from "./productionReadiness";
|
|
6
|
+
export type VoiceDemoReadyStatus = "fail" | "pass" | "warn";
|
|
7
7
|
export type VoiceDemoReadySection = {
|
|
8
8
|
description?: string;
|
|
9
9
|
href?: string;
|
|
@@ -16,7 +16,7 @@ export type VoiceDemoReadyReport = {
|
|
|
16
16
|
sections: VoiceDemoReadySection[];
|
|
17
17
|
status: VoiceDemoReadyStatus;
|
|
18
18
|
summary: {
|
|
19
|
-
opsStatus?: Pick<VoiceOpsStatusReport,
|
|
19
|
+
opsStatus?: Pick<VoiceOpsStatusReport, "failed" | "passed" | "status" | "total">;
|
|
20
20
|
phoneSetup?: {
|
|
21
21
|
carriers: number;
|
|
22
22
|
ready: boolean;
|
|
@@ -29,7 +29,7 @@ export type VoiceDemoReadyReport = {
|
|
|
29
29
|
};
|
|
30
30
|
productionReadiness?: {
|
|
31
31
|
checks: number;
|
|
32
|
-
status: VoiceProductionReadinessReport[
|
|
32
|
+
status: VoiceProductionReadinessReport["status"];
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { evaluateVoiceTrace, type StoredVoiceTraceEvent, type VoiceTraceEventFilter, type VoiceTraceEventStore, type VoiceTraceRedactionConfig } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { evaluateVoiceTrace, type StoredVoiceTraceEvent, type VoiceTraceEventFilter, type VoiceTraceEventStore, type VoiceTraceRedactionConfig } from "./trace";
|
|
3
3
|
export type VoiceDiagnosticsRoutesOptions = {
|
|
4
4
|
evaluation?: Parameters<typeof evaluateVoiceTrace>[1];
|
|
5
5
|
headers?: HeadersInit;
|
package/dist/evalRoutes.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceQualityReport, type VoiceQualityThresholds } from
|
|
3
|
-
import { summarizeVoiceTrace, type StoredVoiceTraceEvent, type VoiceTraceEventStore } from
|
|
4
|
-
export type VoiceEvalStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceQualityReport, type VoiceQualityThresholds } from "./qualityRoutes";
|
|
3
|
+
import { summarizeVoiceTrace, type StoredVoiceTraceEvent, type VoiceTraceEventStore } from "./trace";
|
|
4
|
+
export type VoiceEvalStatus = "pass" | "fail";
|
|
5
5
|
export type VoiceEvalSessionReport = {
|
|
6
6
|
endedAt?: number;
|
|
7
7
|
eventCount: number;
|
package/dist/fileStore.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from
|
|
2
|
-
import type { VoiceAuditSinkDeliveryRecord, VoiceAuditSinkDeliveryStore } from
|
|
3
|
-
import type { VoiceCampaignStore } from
|
|
4
|
-
import { type VoiceAssistantMemoryRecord, type VoiceAssistantMemoryStore } from
|
|
5
|
-
import type { StoredVoiceIncidentBundleArtifact, VoiceIncidentBundleStore } from
|
|
6
|
-
import { type StoredVoiceTraceEvent, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore, type VoiceTraceEventStore } from
|
|
7
|
-
import type { StoredVoiceIntegrationEvent, StoredVoiceExternalObjectMap, StoredVoiceOpsTask, VoiceExternalObjectMap, VoiceExternalObjectMapStore, VoiceIntegrationEvent, VoiceIntegrationEventStore, VoiceOpsTask, VoiceOpsTaskStore } from
|
|
8
|
-
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewArtifact, VoiceCallReviewStore } from
|
|
9
|
-
import type { VoiceSessionRecord, VoiceSessionStore } from
|
|
1
|
+
import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from "./audit";
|
|
2
|
+
import type { VoiceAuditSinkDeliveryRecord, VoiceAuditSinkDeliveryStore } from "./auditSinks";
|
|
3
|
+
import type { VoiceCampaignStore } from "./campaign";
|
|
4
|
+
import { type VoiceAssistantMemoryRecord, type VoiceAssistantMemoryStore } from "./assistantMemory";
|
|
5
|
+
import type { StoredVoiceIncidentBundleArtifact, VoiceIncidentBundleStore } from "./incidentBundle";
|
|
6
|
+
import { type StoredVoiceTraceEvent, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore, type VoiceTraceEventStore } from "./trace";
|
|
7
|
+
import type { StoredVoiceIntegrationEvent, StoredVoiceExternalObjectMap, StoredVoiceOpsTask, VoiceExternalObjectMap, VoiceExternalObjectMapStore, VoiceIntegrationEvent, VoiceIntegrationEventStore, VoiceOpsTask, VoiceOpsTaskStore } from "./ops";
|
|
8
|
+
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewArtifact, VoiceCallReviewStore } from "./testing/review";
|
|
9
|
+
import type { VoiceSessionRecord, VoiceSessionStore } from "./types";
|
|
10
10
|
export type VoiceFileStoreOptions = {
|
|
11
11
|
directory: string;
|
|
12
12
|
pretty?: boolean;
|
package/dist/guardrails.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { VoiceAgentTool } from
|
|
3
|
-
import type { VoiceTraceEventStore } from
|
|
4
|
-
import type { VoiceOnTurnObjectHandler, VoiceRouteResult, VoiceSessionRecord } from
|
|
5
|
-
import type { VoiceAssistantGuardrails } from
|
|
6
|
-
export type VoiceGuardrailStage =
|
|
7
|
-
export type VoiceGuardrailSeverity =
|
|
8
|
-
export type VoiceGuardrailStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { VoiceAgentTool } from "./agent";
|
|
3
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
4
|
+
import type { VoiceOnTurnObjectHandler, VoiceRouteResult, VoiceSessionRecord } from "./types";
|
|
5
|
+
import type { VoiceAssistantGuardrails } from "./assistant";
|
|
6
|
+
export type VoiceGuardrailStage = "assistant-output" | "handoff" | "model-input" | "tool-input" | "tool-output" | "transcript";
|
|
7
|
+
export type VoiceGuardrailSeverity = "block" | "warn";
|
|
8
|
+
export type VoiceGuardrailStatus = "blocked" | "pass" | "warn";
|
|
9
9
|
export type VoiceGuardrailRule = {
|
|
10
10
|
action?: VoiceGuardrailSeverity;
|
|
11
11
|
description?: string;
|
|
@@ -55,7 +55,7 @@ export type VoiceGuardrailReport = {
|
|
|
55
55
|
label?: string;
|
|
56
56
|
rules: number;
|
|
57
57
|
}>;
|
|
58
|
-
status:
|
|
58
|
+
status: "fail" | "pass" | "warn";
|
|
59
59
|
summary: {
|
|
60
60
|
blocked: number;
|
|
61
61
|
passed: number;
|
package/dist/handoff.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceHandoffAction, VoiceHandoffAdapter, VoiceHandoffConfig, VoiceHandoffDeliveryStore, VoiceHandoffInput, VoiceHandoffResult, VoiceSessionRecord, StoredVoiceHandoffDelivery } from
|
|
1
|
+
import type { VoiceHandoffAction, VoiceHandoffAdapter, VoiceHandoffConfig, VoiceHandoffDeliveryStore, VoiceHandoffInput, VoiceHandoffResult, VoiceSessionRecord, StoredVoiceHandoffDelivery } from "./types";
|
|
2
2
|
type MaybePromise<T> = T | Promise<T>;
|
|
3
3
|
export type VoiceHandoffDelivery = VoiceHandoffResult & {
|
|
4
4
|
adapterId: string;
|
|
@@ -8,16 +8,16 @@ export type VoiceHandoffDeliveryRecord<TContext = unknown, TSession extends Voic
|
|
|
8
8
|
export type VoiceHandoffFanoutResult = {
|
|
9
9
|
action: VoiceHandoffAction;
|
|
10
10
|
deliveries: Record<string, VoiceHandoffDelivery>;
|
|
11
|
-
status: VoiceHandoffResult[
|
|
11
|
+
status: VoiceHandoffResult["status"];
|
|
12
12
|
};
|
|
13
|
-
export type VoiceHandoffDeliveryRecordInput<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Omit<VoiceHandoffInput<TContext, TSession, TResult>,
|
|
13
|
+
export type VoiceHandoffDeliveryRecordInput<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Omit<VoiceHandoffInput<TContext, TSession, TResult>, "api"> & {
|
|
14
14
|
id?: string;
|
|
15
15
|
};
|
|
16
16
|
export type VoiceQueuedHandoffDeliveryOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
17
17
|
adapters: VoiceHandoffAdapter<TContext, TSession, TResult>[];
|
|
18
|
-
api: VoiceHandoffInput<TContext, TSession, TResult>[
|
|
18
|
+
api: VoiceHandoffInput<TContext, TSession, TResult>["api"];
|
|
19
19
|
delivery: VoiceHandoffDeliveryRecord<TContext, TSession, TResult>;
|
|
20
|
-
failMode?: VoiceHandoffConfig<TContext, TSession, TResult>[
|
|
20
|
+
failMode?: VoiceHandoffConfig<TContext, TSession, TResult>["failMode"];
|
|
21
21
|
};
|
|
22
22
|
export type VoiceWebhookHandoffAdapterOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
23
23
|
actions?: VoiceHandoffAction[];
|
|
@@ -26,7 +26,7 @@ export type VoiceWebhookHandoffAdapterOptions<TContext = unknown, TSession exten
|
|
|
26
26
|
headers?: Record<string, string>;
|
|
27
27
|
id: string;
|
|
28
28
|
kind?: string;
|
|
29
|
-
method?:
|
|
29
|
+
method?: "POST" | "PUT" | "PATCH";
|
|
30
30
|
signingSecret?: string;
|
|
31
31
|
timeoutMs?: number;
|
|
32
32
|
url: string;
|
package/dist/handoffHealth.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from
|
|
3
|
-
export type VoiceHandoffHealthStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from "./trace";
|
|
3
|
+
export type VoiceHandoffHealthStatus = "delivered" | "failed" | "skipped";
|
|
4
4
|
export type VoiceHandoffHealthDelivery = {
|
|
5
5
|
adapterId: string;
|
|
6
6
|
adapterKind?: string;
|
|
@@ -31,8 +31,8 @@ export type VoiceHandoffHealthSummaryOptions = {
|
|
|
31
31
|
events?: StoredVoiceTraceEvent[];
|
|
32
32
|
limit?: number;
|
|
33
33
|
q?: string;
|
|
34
|
-
replayHref?: false | string | ((event: Omit<VoiceHandoffHealthEvent,
|
|
35
|
-
status?: VoiceHandoffHealthStatus |
|
|
34
|
+
replayHref?: false | string | ((event: Omit<VoiceHandoffHealthEvent, "replayHref">) => string);
|
|
35
|
+
status?: VoiceHandoffHealthStatus | "all";
|
|
36
36
|
store?: VoiceTraceEventStore;
|
|
37
37
|
};
|
|
38
38
|
export type VoiceHandoffHealthHTMLHandlerOptions = VoiceHandoffHealthSummaryOptions & {
|
package/dist/htmx.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceHTMXConfig, VoiceHTMXRenderConfig, VoiceHTMXRenderInput, VoiceHTMXTargets, VoiceSessionRecord } from
|
|
1
|
+
import type { VoiceHTMXConfig, VoiceHTMXRenderConfig, VoiceHTMXRenderInput, VoiceHTMXTargets, VoiceSessionRecord } from "./types";
|
|
2
2
|
type ResolvedVoiceHTMXRenderConfig<TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Required<VoiceHTMXRenderConfig<TSession, TResult>>;
|
|
3
3
|
export declare const resolveVoiceHTMXTargets: (custom?: Partial<VoiceHTMXTargets>) => VoiceHTMXTargets;
|
|
4
4
|
export declare const resolveVoiceHTMXRenderers: <TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(custom?: VoiceHTMXConfig<TSession, TResult>) => ResolvedVoiceHTMXRenderConfig<TSession, TResult>;
|