@absolutejs/voice 0.0.22-beta.439 → 0.0.22-beta.441
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2729 -2698
- package/dist/agent.d.ts +10 -10
- package/dist/agentSquadContract.d.ts +4 -4
- package/dist/angular/index.d.ts +22 -22
- package/dist/angular/voice-agent-squad-status.service.d.ts +1 -1
- package/dist/angular/voice-call-debugger.service.d.ts +2 -2
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +2 -2
- package/dist/angular/voice-controller.service.d.ts +1 -1
- package/dist/angular/voice-delivery-runtime.component.d.ts +2 -2
- package/dist/angular/voice-delivery-runtime.service.d.ts +2 -2
- package/dist/angular/voice-live-ops.service.d.ts +1 -1
- package/dist/angular/voice-ops-action-center.service.d.ts +1 -1
- package/dist/angular/voice-ops-status.component.d.ts +2 -2
- package/dist/angular/voice-ops-status.service.d.ts +2 -2
- package/dist/angular/voice-platform-coverage.service.d.ts +2 -2
- package/dist/angular/voice-profile-comparison.service.d.ts +2 -2
- package/dist/angular/voice-proof-trends.service.d.ts +2 -2
- package/dist/angular/voice-provider-capabilities.service.d.ts +2 -2
- package/dist/angular/voice-provider-contracts.service.d.ts +2 -2
- package/dist/angular/voice-provider-status.service.d.ts +2 -2
- package/dist/angular/voice-readiness-failures.service.d.ts +2 -2
- package/dist/angular/voice-routing-status.service.d.ts +1 -1
- package/dist/angular/voice-session-snapshot.service.d.ts +2 -2
- package/dist/angular/voice-stream.service.d.ts +1 -1
- package/dist/angular/voice-trace-timeline.service.d.ts +2 -2
- package/dist/angular/voice-turn-latency.service.d.ts +2 -2
- package/dist/angular/voice-turn-quality.service.d.ts +2 -2
- package/dist/angular/voice-workflow-status.service.d.ts +2 -2
- package/dist/assistant.d.ts +11 -11
- package/dist/assistantHealth.d.ts +6 -6
- package/dist/assistantMemory.d.ts +3 -3
- package/dist/audioConditioning.d.ts +1 -1
- package/dist/audit.d.ts +11 -11
- package/dist/auditDeliveryRoutes.d.ts +3 -3
- package/dist/auditExport.d.ts +3 -3
- package/dist/auditRoutes.d.ts +2 -2
- package/dist/auditSinks.d.ts +8 -8
- package/dist/bargeInRoutes.d.ts +3 -3
- package/dist/browserCallProfiles.d.ts +2 -2
- package/dist/browserMediaRoutes.d.ts +4 -4
- package/dist/callDebugger.d.ts +6 -6
- package/dist/campaign.d.ts +22 -22
- package/dist/campaignDialers.d.ts +14 -14
- package/dist/client/actions.d.ts +1 -1
- package/dist/client/agentSquadStatus.d.ts +3 -3
- package/dist/client/agentSquadStatusWidget.d.ts +1 -1
- package/dist/client/audioPlayer.d.ts +2 -2
- package/dist/client/bargeInMonitor.d.ts +1 -1
- package/dist/client/browserMedia.d.ts +1 -1
- package/dist/client/callDebugger.d.ts +1 -1
- package/dist/client/callDebuggerWidget.d.ts +3 -3
- package/dist/client/campaignDialerProof.d.ts +1 -1
- package/dist/client/connection.d.ts +3 -3
- package/dist/client/controller.d.ts +1 -1
- package/dist/client/createVoiceStream.d.ts +1 -1
- package/dist/client/deliveryRuntime.d.ts +4 -4
- package/dist/client/deliveryRuntimeWidget.d.ts +5 -5
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmx.d.ts +1 -1
- package/dist/client/index.d.ts +96 -96
- package/dist/client/index.js +41 -15
- package/dist/client/liveOps.d.ts +2 -2
- package/dist/client/liveOpsWidget.d.ts +2 -2
- package/dist/client/liveTurnLatency.d.ts +3 -3
- package/dist/client/microphone.d.ts +4 -4
- package/dist/client/opsActionCenter.d.ts +1 -1
- package/dist/client/opsActionCenterWidget.d.ts +2 -2
- package/dist/client/opsActionHistory.d.ts +1 -1
- package/dist/client/opsActionHistoryWidget.d.ts +1 -1
- package/dist/client/opsStatus.d.ts +1 -1
- package/dist/client/opsStatusWidget.d.ts +4 -4
- package/dist/client/platformCoverage.d.ts +1 -1
- package/dist/client/platformCoverageWidget.d.ts +3 -3
- package/dist/client/profileComparison.d.ts +1 -1
- package/dist/client/profileComparisonWidget.d.ts +2 -2
- package/dist/client/profileSwitchRecommendation.d.ts +1 -1
- package/dist/client/profileSwitchRecommendationWidget.d.ts +1 -1
- package/dist/client/proofTrends.d.ts +1 -1
- package/dist/client/proofTrendsWidget.d.ts +3 -3
- package/dist/client/providerCapabilities.d.ts +1 -1
- package/dist/client/providerCapabilitiesWidget.d.ts +3 -3
- package/dist/client/providerContracts.d.ts +1 -1
- package/dist/client/providerContractsWidget.d.ts +3 -3
- package/dist/client/providerSimulationControls.d.ts +2 -2
- package/dist/client/providerSimulationControlsWidget.d.ts +1 -1
- package/dist/client/providerStatus.d.ts +1 -1
- package/dist/client/providerStatusWidget.d.ts +3 -3
- package/dist/client/readinessFailures.d.ts +1 -1
- package/dist/client/readinessFailuresWidget.d.ts +4 -4
- package/dist/client/routingStatus.d.ts +1 -1
- package/dist/client/routingStatusWidget.d.ts +3 -3
- package/dist/client/sessionSnapshot.d.ts +1 -1
- package/dist/client/sessionSnapshotWidget.d.ts +2 -2
- package/dist/client/store.d.ts +1 -1
- package/dist/client/traceTimeline.d.ts +1 -1
- package/dist/client/traceTimelineWidget.d.ts +3 -3
- package/dist/client/turnLatency.d.ts +1 -1
- package/dist/client/turnLatencyWidget.d.ts +3 -3
- package/dist/client/turnQuality.d.ts +1 -1
- package/dist/client/turnQualityWidget.d.ts +3 -3
- package/dist/client/workflowStatus.d.ts +1 -1
- package/dist/competitiveCoverage.d.ts +9 -9
- package/dist/correction.d.ts +2 -2
- package/dist/dataControl.d.ts +16 -16
- package/dist/deliveryRuntime.d.ts +9 -9
- package/dist/deliverySinkRoutes.d.ts +6 -6
- package/dist/demoReadyRoutes.d.ts +8 -8
- package/dist/diagnosticsRoutes.d.ts +2 -2
- package/dist/evalRoutes.d.ts +4 -4
- package/dist/fileStore.d.ts +9 -9
- package/dist/guardrails.d.ts +9 -9
- package/dist/handoff.d.ts +6 -6
- package/dist/handoffHealth.d.ts +5 -5
- package/dist/htmx.d.ts +1 -1
- package/dist/incidentBundle.d.ts +7 -7
- package/dist/incidentTimeline.d.ts +30 -16
- package/dist/index.d.ts +215 -215
- package/dist/index.js +375 -111
- package/dist/latencySlo.d.ts +4 -4
- package/dist/liveLatency.d.ts +3 -3
- package/dist/liveOps.d.ts +11 -11
- package/dist/logger.d.ts +1 -1
- package/dist/mediaPipelineRoutes.d.ts +2 -2
- package/dist/memoryStore.d.ts +1 -1
- package/dist/modelAdapters.d.ts +9 -9
- package/dist/observabilityExport.d.ts +44 -44
- package/dist/openaiTTS.d.ts +3 -3
- package/dist/operationalStatus.d.ts +5 -5
- package/dist/operationsRecord.d.ts +12 -12
- package/dist/ops.d.ts +12 -12
- package/dist/opsActionAuditRoutes.d.ts +3 -3
- package/dist/opsConsoleRoutes.d.ts +6 -6
- package/dist/opsPresets.d.ts +2 -2
- package/dist/opsRecovery.d.ts +11 -11
- package/dist/opsRuntime.d.ts +6 -6
- package/dist/opsSinks.d.ts +13 -13
- package/dist/opsStatus.d.ts +7 -7
- package/dist/opsStatusRoutes.d.ts +2 -2
- package/dist/opsWebhook.d.ts +6 -6
- package/dist/outcomeContract.d.ts +5 -5
- package/dist/outcomeRecipes.d.ts +4 -4
- package/dist/phoneAgent.d.ts +18 -18
- package/dist/phoneAgentProductionSmoke.d.ts +8 -8
- package/dist/platformCoverage.d.ts +3 -3
- package/dist/plugin.d.ts +2 -2
- package/dist/postCallAnalysis.d.ts +6 -6
- package/dist/postgresStore.d.ts +8 -8
- package/dist/presets.d.ts +3 -3
- package/dist/productionReadiness.d.ts +62 -36
- package/dist/profileSwitchRecommendation.d.ts +15 -15
- package/dist/proofAssertions.d.ts +1 -1
- package/dist/proofPack.d.ts +12 -12
- package/dist/proofRunner.d.ts +5 -5
- package/dist/proofTrends.d.ts +17 -17
- package/dist/providerAdapters.d.ts +5 -5
- package/dist/providerCapabilities.d.ts +4 -4
- package/dist/providerDecisionTraces.d.ts +8 -8
- package/dist/providerHealth.d.ts +3 -3
- package/dist/providerOrchestration.d.ts +5 -5
- package/dist/providerRouterTraces.d.ts +7 -7
- package/dist/providerRoutingContract.d.ts +3 -3
- package/dist/providerSlo.d.ts +6 -6
- package/dist/providerStackRecommendations.d.ts +6 -6
- package/dist/qualityRoutes.d.ts +4 -4
- package/dist/queue.d.ts +16 -16
- package/dist/react/VoiceAgentSquadStatus.d.ts +1 -1
- package/dist/react/VoiceCallDebuggerLaunch.d.ts +1 -1
- package/dist/react/VoiceDeliveryRuntime.d.ts +1 -1
- package/dist/react/VoiceOpsActionCenter.d.ts +1 -1
- package/dist/react/VoiceOpsStatus.d.ts +1 -1
- package/dist/react/VoicePlatformCoverage.d.ts +1 -1
- package/dist/react/VoiceProfileComparison.d.ts +1 -1
- package/dist/react/VoiceProfileSwitchRecommendation.d.ts +1 -1
- package/dist/react/VoiceProofTrends.d.ts +1 -1
- package/dist/react/VoiceProviderCapabilities.d.ts +1 -1
- package/dist/react/VoiceProviderContracts.d.ts +1 -1
- package/dist/react/VoiceProviderSimulationControls.d.ts +1 -1
- package/dist/react/VoiceProviderStatus.d.ts +1 -1
- package/dist/react/VoiceReadinessFailures.d.ts +1 -1
- package/dist/react/VoiceRoutingStatus.d.ts +1 -1
- package/dist/react/VoiceSessionSnapshot.d.ts +1 -1
- package/dist/react/VoiceTraceTimeline.d.ts +1 -1
- package/dist/react/VoiceTurnLatency.d.ts +1 -1
- package/dist/react/VoiceTurnQuality.d.ts +1 -1
- package/dist/react/index.d.ts +43 -43
- package/dist/react/index.js +41 -15
- package/dist/react/useVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/react/useVoiceCallDebugger.d.ts +1 -1
- package/dist/react/useVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/react/useVoiceController.d.ts +1 -1
- package/dist/react/useVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/react/useVoiceLiveOps.d.ts +1 -1
- package/dist/react/useVoiceOpsActionCenter.d.ts +1 -1
- package/dist/react/useVoiceOpsStatus.d.ts +1 -1
- package/dist/react/useVoicePlatformCoverage.d.ts +1 -1
- package/dist/react/useVoiceProfileComparison.d.ts +1 -1
- package/dist/react/useVoiceProfileSwitchRecommendation.d.ts +1 -1
- package/dist/react/useVoiceProofTrends.d.ts +1 -1
- package/dist/react/useVoiceProviderCapabilities.d.ts +1 -1
- package/dist/react/useVoiceProviderContracts.d.ts +1 -1
- package/dist/react/useVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/react/useVoiceProviderStatus.d.ts +1 -1
- package/dist/react/useVoiceReadinessFailures.d.ts +1 -1
- package/dist/react/useVoiceRoutingStatus.d.ts +1 -1
- package/dist/react/useVoiceSessionSnapshot.d.ts +1 -1
- package/dist/react/useVoiceStream.d.ts +1 -1
- package/dist/react/useVoiceTraceTimeline.d.ts +1 -1
- package/dist/react/useVoiceTurnLatency.d.ts +1 -1
- package/dist/react/useVoiceTurnQuality.d.ts +1 -1
- package/dist/react/useVoiceWorkflowStatus.d.ts +1 -1
- package/dist/readinessProfiles.d.ts +22 -15
- package/dist/realtimeChannel.d.ts +6 -6
- package/dist/realtimeProviderContracts.d.ts +7 -7
- package/dist/reconnectContract.d.ts +6 -6
- package/dist/resilienceRoutes.d.ts +6 -6
- package/dist/routing.d.ts +1 -1
- package/dist/runtimeOps.d.ts +3 -3
- package/dist/s3Store.d.ts +3 -3
- package/dist/session.d.ts +1 -1
- package/dist/sessionReplay.d.ts +9 -9
- package/dist/sessionSnapshot.d.ts +8 -8
- package/dist/simulationSuite.d.ts +12 -12
- package/dist/sloCalibration.d.ts +8 -8
- package/dist/sqliteStore.d.ts +8 -8
- package/dist/store.d.ts +1 -1
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/svelte/createVoiceCallDebugger.d.ts +2 -2
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/svelte/createVoiceLiveOps.d.ts +2 -2
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +1 -1
- package/dist/svelte/createVoiceOpsStatus.d.ts +1 -1
- package/dist/svelte/createVoicePlatformCoverage.d.ts +1 -1
- package/dist/svelte/createVoiceProfileComparison.d.ts +1 -1
- package/dist/svelte/createVoiceProofTrends.d.ts +1 -1
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +1 -1
- package/dist/svelte/createVoiceProviderContracts.d.ts +1 -1
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/svelte/createVoiceProviderStatus.d.ts +1 -1
- package/dist/svelte/createVoiceReadinessFailures.d.ts +1 -1
- package/dist/svelte/createVoiceRoutingStatus.d.ts +1 -1
- package/dist/svelte/createVoiceSessionSnapshot.d.ts +2 -2
- package/dist/svelte/createVoiceStream.d.ts +1 -1
- package/dist/svelte/createVoiceTraceTimeline.d.ts +1 -1
- package/dist/svelte/createVoiceTurnLatency.d.ts +1 -1
- package/dist/svelte/createVoiceTurnQuality.d.ts +1 -1
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +1 -1
- package/dist/svelte/index.d.ts +23 -23
- package/dist/svelte/index.js +30 -8
- package/dist/telephony/contract.d.ts +5 -5
- package/dist/telephony/matrix.d.ts +4 -4
- package/dist/telephony/plivo.d.ts +30 -30
- package/dist/telephony/response.d.ts +1 -1
- package/dist/telephony/security.d.ts +17 -17
- package/dist/telephony/telnyx.d.ts +31 -31
- package/dist/telephony/twilio.d.ts +22 -22
- package/dist/telephonyMediaRoutes.d.ts +4 -4
- package/dist/telephonyOutcome.d.ts +13 -13
- package/dist/testing/accuracy.d.ts +1 -1
- package/dist/testing/benchmark.d.ts +9 -9
- package/dist/testing/corrected.d.ts +5 -5
- package/dist/testing/duplex.d.ts +3 -3
- package/dist/testing/fixtures.d.ts +3 -3
- package/dist/testing/index.d.ts +13 -13
- package/dist/testing/index.js +49 -20
- package/dist/testing/ioProviderSimulator.d.ts +5 -5
- package/dist/testing/providerSimulator.d.ts +5 -5
- package/dist/testing/review.d.ts +4 -4
- package/dist/testing/sessionBenchmark.d.ts +3 -3
- package/dist/testing/stt.d.ts +3 -3
- package/dist/testing/telephony.d.ts +3 -3
- package/dist/testing/tts.d.ts +1 -1
- package/dist/toolContract.d.ts +10 -10
- package/dist/toolRuntime.d.ts +3 -3
- package/dist/trace.d.ts +10 -10
- package/dist/traceDeliveryRoutes.d.ts +4 -4
- package/dist/traceTimeline.d.ts +4 -4
- package/dist/turnDetection.d.ts +1 -1
- package/dist/turnLatency.d.ts +4 -4
- package/dist/turnProfiles.d.ts +2 -2
- package/dist/turnQuality.d.ts +4 -4
- package/dist/types.d.ts +92 -92
- package/dist/voiceMonitoring.d.ts +6 -6
- package/dist/vue/VoiceOpsActionCenter.d.ts +2 -2
- package/dist/vue/VoiceProviderSimulationControls.d.ts +2 -2
- package/dist/vue/index.d.ts +38 -38
- package/dist/vue/index.js +41 -15
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/vue/useVoiceCallDebugger.d.ts +2 -2
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +2 -2
- package/dist/vue/useVoiceController.d.ts +1 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +2 -2
- package/dist/vue/useVoiceLiveOps.d.ts +1 -1
- package/dist/vue/useVoiceOpsActionCenter.d.ts +1 -1
- package/dist/vue/useVoiceOpsStatus.d.ts +2 -2
- package/dist/vue/useVoicePlatformCoverage.d.ts +2 -2
- package/dist/vue/useVoiceProfileComparison.d.ts +2 -2
- package/dist/vue/useVoiceProofTrends.d.ts +2 -2
- package/dist/vue/useVoiceProviderCapabilities.d.ts +2 -2
- package/dist/vue/useVoiceProviderContracts.d.ts +2 -2
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/vue/useVoiceProviderStatus.d.ts +2 -2
- package/dist/vue/useVoiceReadinessFailures.d.ts +30 -2
- package/dist/vue/useVoiceRoutingStatus.d.ts +1 -1
- package/dist/vue/useVoiceSessionSnapshot.d.ts +2 -2
- package/dist/vue/useVoiceStream.d.ts +1 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +2 -2
- package/dist/vue/useVoiceTurnLatency.d.ts +2 -2
- package/dist/vue/useVoiceTurnQuality.d.ts +2 -2
- package/dist/vue/useVoiceWorkflowStatus.d.ts +2 -2
- package/dist/workflowContract.d.ts +8 -8
- package/fixtures/manifest.json +356 -197
- package/package.json +260 -259
package/dist/latencySlo.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from
|
|
2
|
-
export type VoiceLatencySLOStatus =
|
|
3
|
-
export type VoiceLatencySLOStage =
|
|
1
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from "./trace";
|
|
2
|
+
export type VoiceLatencySLOStatus = "empty" | "fail" | "pass" | "warn";
|
|
3
|
+
export type VoiceLatencySLOStage = "assistant_text_to_tts_send" | "barge_in_stop" | "commit_to_assistant_text" | "final_to_commit" | "live_latency" | "provider_llm" | "provider_stt" | "provider_tts" | "speech_to_commit" | "tts_send_duration" | "tts_to_first_audio";
|
|
4
4
|
export type VoiceLatencySLOBudget = {
|
|
5
5
|
failAfterMs: number;
|
|
6
6
|
warnAfterMs?: number;
|
|
@@ -12,7 +12,7 @@ export type VoiceLatencySLOMeasurement = {
|
|
|
12
12
|
provider?: string;
|
|
13
13
|
sessionId: string;
|
|
14
14
|
stage: VoiceLatencySLOStage;
|
|
15
|
-
status: Exclude<VoiceLatencySLOStatus,
|
|
15
|
+
status: Exclude<VoiceLatencySLOStatus, "empty">;
|
|
16
16
|
turnId?: string;
|
|
17
17
|
};
|
|
18
18
|
export type VoiceLatencySLOStageSummary = {
|
package/dist/liveLatency.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { VoiceTraceEventStore } from
|
|
3
|
-
export type VoiceLiveLatencyStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
3
|
+
export type VoiceLiveLatencyStatus = "empty" | "fail" | "pass" | "warn";
|
|
4
4
|
export type VoiceLiveLatencySample = {
|
|
5
5
|
at: number;
|
|
6
6
|
latencyMs: number;
|
package/dist/liveOps.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceAuditEventStore } from
|
|
3
|
-
import { type VoiceTraceEventStore } from
|
|
4
|
-
import type { VoiceOperationsRecord } from
|
|
5
|
-
import type { VoiceOpsActionHistoryReport } from
|
|
6
|
-
import type { VoiceOpsRecoveryReport, VoiceOpsRecoveryStatus } from
|
|
7
|
-
import type { VoiceOpsStatusReport } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceAuditEventStore } from "./audit";
|
|
3
|
+
import { type VoiceTraceEventStore } from "./trace";
|
|
4
|
+
import type { VoiceOperationsRecord } from "./operationsRecord";
|
|
5
|
+
import type { VoiceOpsActionHistoryReport } from "./opsActionAuditRoutes";
|
|
6
|
+
import type { VoiceOpsRecoveryReport, VoiceOpsRecoveryStatus } from "./opsRecovery";
|
|
7
|
+
import type { VoiceOpsStatusReport } from "./opsStatus";
|
|
8
8
|
export declare const VOICE_LIVE_OPS_ACTIONS: readonly ["assign", "create-task", "escalate", "force-handoff", "inject-instruction", "operator-takeover", "pause-assistant", "resume-assistant", "tag"];
|
|
9
9
|
export type VoiceLiveOpsAction = (typeof VOICE_LIVE_OPS_ACTIONS)[number];
|
|
10
|
-
export type VoiceLiveOpsControlStatus =
|
|
10
|
+
export type VoiceLiveOpsControlStatus = "assistant-paused" | "assistant-resumed" | "handoff-forced" | "instruction-injected" | "operator-takeover" | "recorded";
|
|
11
11
|
export type VoiceLiveOpsControlState = {
|
|
12
12
|
assistantPaused: boolean;
|
|
13
13
|
handoffTarget?: string;
|
|
@@ -63,11 +63,11 @@ export type VoiceLiveOpsEvidenceReport = {
|
|
|
63
63
|
issues: string[];
|
|
64
64
|
ok: boolean;
|
|
65
65
|
operationsRecordHandoffs?: number;
|
|
66
|
-
operationsRecordStatus?: VoiceOperationsRecord[
|
|
66
|
+
operationsRecordStatus?: VoiceOperationsRecord["status"];
|
|
67
67
|
operationsRecordTasks?: number;
|
|
68
68
|
opsRecoveryIssues?: number;
|
|
69
69
|
opsRecoveryStatus?: VoiceOpsRecoveryStatus;
|
|
70
|
-
opsStatus?: VoiceOpsStatusReport[
|
|
70
|
+
opsStatus?: VoiceOpsStatusReport["status"];
|
|
71
71
|
};
|
|
72
72
|
export type VoiceLiveOpsControlEvidenceInput = {
|
|
73
73
|
finalControl?: VoiceLiveOpsControlState | null;
|
|
@@ -77,7 +77,7 @@ export type VoiceLiveOpsControlEvidenceInput = {
|
|
|
77
77
|
requireFinalOperatorTakeover?: boolean;
|
|
78
78
|
requiredActions?: VoiceLiveOpsAction[];
|
|
79
79
|
requiredStatuses?: VoiceLiveOpsControlStatus[];
|
|
80
|
-
results?: Array<(Partial<Omit<VoiceLiveOpsActionResult,
|
|
80
|
+
results?: Array<(Partial<Omit<VoiceLiveOpsActionResult, "ok">> & {
|
|
81
81
|
ok?: boolean;
|
|
82
82
|
}) | null | undefined>;
|
|
83
83
|
};
|
package/dist/logger.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceLogger } from
|
|
1
|
+
import type { VoiceLogger } from "./types";
|
|
2
2
|
export declare const createNoopLogger: () => Required<VoiceLogger>;
|
|
3
3
|
export declare const resolveLogger: (logger?: VoiceLogger) => {
|
|
4
4
|
debug: (message: string, meta?: Record<string, unknown>) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type MediaFrame, type MediaInterruptionReport, type MediaPipelineCalibrationInput, type MediaPipelineCalibrationReport, type MediaPipelineStatus, type MediaProcessorGraphReport, type MediaQualityReport, type MediaResamplingPlan, type MediaTransportReport, type MediaVadReport } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type MediaFrame, type MediaInterruptionReport, type MediaPipelineCalibrationInput, type MediaPipelineCalibrationReport, type MediaPipelineStatus, type MediaProcessorGraphReport, type MediaQualityReport, type MediaResamplingPlan, type MediaTransportReport, type MediaVadReport } from "@absolutejs/media";
|
|
3
3
|
export type VoiceMediaPipelineReportOptions = MediaPipelineCalibrationInput & {
|
|
4
4
|
frames?: readonly MediaFrame[];
|
|
5
5
|
maxInterruptionLatencyMs?: number;
|
package/dist/memoryStore.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { VoiceSessionRecord, VoiceSessionStore } from
|
|
1
|
+
import type { VoiceSessionRecord, VoiceSessionStore } from "./types";
|
|
2
2
|
export declare const createVoiceMemoryStore: <TSession extends VoiceSessionRecord = VoiceSessionRecord>() => VoiceSessionStore<TSession>;
|
package/dist/modelAdapters.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VoiceAgentModel, VoiceAgentModelInput, VoiceAgentModelOutput } from
|
|
2
|
-
import type { VoiceSessionRecord } from
|
|
1
|
+
import type { VoiceAgentModel, VoiceAgentModelInput, VoiceAgentModelOutput } from "./agent";
|
|
2
|
+
import type { VoiceSessionRecord } from "./types";
|
|
3
3
|
export type VoiceJSONAssistantModelHandler<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = (input: VoiceAgentModelInput<TContext, TSession>) => Promise<Record<string, unknown> | VoiceAgentModelOutput<TResult>> | Record<string, unknown> | VoiceAgentModelOutput<TResult>;
|
|
4
4
|
export type VoiceJSONAssistantModelOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
5
5
|
generate: VoiceJSONAssistantModelHandler<TContext, TSession, TResult>;
|
|
@@ -48,12 +48,12 @@ export type VoiceProviderRouterEvent<TProvider extends string = string> = {
|
|
|
48
48
|
selectedProvider: TProvider;
|
|
49
49
|
suppressionRemainingMs?: number;
|
|
50
50
|
suppressedUntil?: number;
|
|
51
|
-
status:
|
|
51
|
+
status: "error" | "fallback" | "success";
|
|
52
52
|
timedOut?: boolean;
|
|
53
53
|
};
|
|
54
|
-
export type VoiceProviderRouterFallbackMode =
|
|
55
|
-
export type VoiceProviderRouterStrategy =
|
|
56
|
-
export type VoiceProviderRouterPolicyPreset =
|
|
54
|
+
export type VoiceProviderRouterFallbackMode = "never" | "provider-error" | "rate-limit";
|
|
55
|
+
export type VoiceProviderRouterStrategy = "balanced" | "ordered" | "prefer-cheapest" | "prefer-fastest" | "prefer-selected" | "quality-first";
|
|
56
|
+
export type VoiceProviderRouterPolicyPreset = "balanced" | "cost-cap" | "cost-first" | "latency-first" | "quality-first";
|
|
57
57
|
export type VoiceProviderRouterPolicyWeights = {
|
|
58
58
|
cost?: number;
|
|
59
59
|
latencyMs?: number;
|
|
@@ -89,7 +89,7 @@ export type VoiceProviderRouterProviderHealth<TProvider extends string = string>
|
|
|
89
89
|
lastFailureAt?: number;
|
|
90
90
|
lastRateLimitedAt?: number;
|
|
91
91
|
provider: TProvider;
|
|
92
|
-
status:
|
|
92
|
+
status: "healthy" | "suppressed";
|
|
93
93
|
suppressedUntil?: number;
|
|
94
94
|
};
|
|
95
95
|
export type VoiceProviderOrchestrationSurface<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TProvider extends string = string> = {
|
|
@@ -118,8 +118,8 @@ export type VoiceProviderOrchestrationProfileOptions<TContext = unknown, TSessio
|
|
|
118
118
|
surfaces: Record<TSurface, VoiceProviderOrchestrationSurface<TContext, TSession, TProvider>>;
|
|
119
119
|
};
|
|
120
120
|
export type VoiceProviderOrchestrationResolvedSurface<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TProvider extends string = string> = {
|
|
121
|
-
allowProviders?: VoiceProviderOrchestrationSurface<TContext, TSession, TProvider>[
|
|
122
|
-
fallback?: VoiceProviderOrchestrationSurface<TContext, TSession, TProvider>[
|
|
121
|
+
allowProviders?: VoiceProviderOrchestrationSurface<TContext, TSession, TProvider>["allowProviders"];
|
|
122
|
+
fallback?: VoiceProviderOrchestrationSurface<TContext, TSession, TProvider>["fallback"];
|
|
123
123
|
fallbackMode?: VoiceProviderRouterFallbackMode;
|
|
124
124
|
policy?: VoiceProviderRouterPolicy<TContext, TSession, TProvider>;
|
|
125
125
|
providerHealth?: boolean | VoiceProviderRouterHealthOptions;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { S3Client, S3Options } from
|
|
3
|
-
import { Database } from
|
|
4
|
-
import { type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryRecord, type VoiceAuditSinkDeliveryStore } from
|
|
5
|
-
import type { VoiceAuditEventStore, VoiceAuditEventType } from
|
|
6
|
-
import type { VoiceCallDebuggerReport } from
|
|
7
|
-
import type { VoiceIncidentBundle } from
|
|
8
|
-
import type { VoiceIncidentRecoveryOutcomeReport } from
|
|
9
|
-
import { type VoiceOperationsRecord } from
|
|
10
|
-
import type { VoiceSessionSnapshot } from
|
|
11
|
-
import { type VoiceTraceSinkDeliveryQueueSummary } from
|
|
12
|
-
import { type StoredVoiceTraceEvent, type VoiceTraceEventStore, type VoiceTraceEventType, type VoiceTraceRedactionConfig, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore, type VoiceTraceSummary } from
|
|
13
|
-
import type { VoicePostgresClient } from
|
|
14
|
-
export type VoiceObservabilityExportStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { S3Client, S3Options } from "bun";
|
|
3
|
+
import { Database } from "bun:sqlite";
|
|
4
|
+
import { type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryRecord, type VoiceAuditSinkDeliveryStore } from "./auditSinks";
|
|
5
|
+
import type { VoiceAuditEventStore, VoiceAuditEventType } from "./audit";
|
|
6
|
+
import type { VoiceCallDebuggerReport } from "./callDebugger";
|
|
7
|
+
import type { VoiceIncidentBundle } from "./incidentBundle";
|
|
8
|
+
import type { VoiceIncidentRecoveryOutcomeReport } from "./incidentTimeline";
|
|
9
|
+
import { type VoiceOperationsRecord } from "./operationsRecord";
|
|
10
|
+
import type { VoiceSessionSnapshot } from "./sessionSnapshot";
|
|
11
|
+
import { type VoiceTraceSinkDeliveryQueueSummary } from "./queue";
|
|
12
|
+
import { type StoredVoiceTraceEvent, type VoiceTraceEventStore, type VoiceTraceEventType, type VoiceTraceRedactionConfig, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore, type VoiceTraceSummary } from "./trace";
|
|
13
|
+
import type { VoicePostgresClient } from "./postgresStore";
|
|
14
|
+
export type VoiceObservabilityExportStatus = "fail" | "pass" | "warn";
|
|
15
15
|
export declare const voiceObservabilityExportSchemaVersion = "1.0.0";
|
|
16
16
|
export declare const voiceObservabilityExportSchemaId = "com.absolutejs.voice.observability-export";
|
|
17
17
|
export type VoiceObservabilityExportSchema = {
|
|
@@ -25,9 +25,9 @@ export declare const assertVoiceObservabilityExportSchema: (input: {
|
|
|
25
25
|
version?: string;
|
|
26
26
|
};
|
|
27
27
|
}) => void;
|
|
28
|
-
export type VoiceObservabilityExportIngestedRecordKind =
|
|
28
|
+
export type VoiceObservabilityExportIngestedRecordKind = "artifact-index" | "database-record" | "delivery-history" | "delivery-receipt" | "delivery-report" | "manifest";
|
|
29
29
|
export type VoiceObservabilityExportValidationIssue = {
|
|
30
|
-
code:
|
|
30
|
+
code: "voice.observability.export.invalid_shape" | "voice.observability.export.missing_field" | "voice.observability.export.unsupported_schema";
|
|
31
31
|
message: string;
|
|
32
32
|
path: string;
|
|
33
33
|
};
|
|
@@ -45,9 +45,9 @@ export type VoiceObservabilityExportRecordValidationOptions = {
|
|
|
45
45
|
};
|
|
46
46
|
export declare const validateVoiceObservabilityExportRecord: (input: unknown, options?: VoiceObservabilityExportRecordValidationOptions) => VoiceObservabilityExportValidationResult;
|
|
47
47
|
export declare const assertVoiceObservabilityExportRecord: (input: unknown, options?: VoiceObservabilityExportRecordValidationOptions) => VoiceObservabilityExportValidationResult;
|
|
48
|
-
export type VoiceObservabilityExportArtifactKind =
|
|
48
|
+
export type VoiceObservabilityExportArtifactKind = "call-debugger" | "incident" | "incident-recovery-outcomes" | "markdown" | "operations-record" | "proof-pack" | "readiness" | "screenshot" | "session-snapshot" | "slo" | "trace" | "audit" | "custom";
|
|
49
49
|
export type VoiceObservabilityExportArtifactChecksum = {
|
|
50
|
-
algorithm:
|
|
50
|
+
algorithm: "sha256";
|
|
51
51
|
value: string;
|
|
52
52
|
};
|
|
53
53
|
export type VoiceObservabilityExportArtifactFreshness = {
|
|
@@ -79,7 +79,7 @@ export type VoiceObservabilityExportEnvelope = {
|
|
|
79
79
|
at: number;
|
|
80
80
|
eventId: string;
|
|
81
81
|
eventType: VoiceTraceEventType | VoiceAuditEventType;
|
|
82
|
-
kind:
|
|
82
|
+
kind: "audit" | "trace";
|
|
83
83
|
operationsRecordHref?: string;
|
|
84
84
|
provider?: string;
|
|
85
85
|
providerKind?: string;
|
|
@@ -88,12 +88,12 @@ export type VoiceObservabilityExportEnvelope = {
|
|
|
88
88
|
severity: VoiceObservabilityExportStatus;
|
|
89
89
|
traceId?: string;
|
|
90
90
|
};
|
|
91
|
-
export type VoiceObservabilityExportIssueCode =
|
|
91
|
+
export type VoiceObservabilityExportIssueCode = "voice.observability.no_evidence" | "voice.observability.operation_failed" | "voice.observability.artifact_failed" | "voice.observability.artifact_missing" | "voice.observability.artifact_stale" | "voice.observability.audit_delivery_failed" | "voice.observability.audit_delivery_pending" | "voice.observability.trace_delivery_failed" | "voice.observability.trace_delivery_pending";
|
|
92
92
|
export type VoiceObservabilityExportIssue = {
|
|
93
93
|
code: VoiceObservabilityExportIssueCode;
|
|
94
94
|
detail?: string;
|
|
95
95
|
label: string;
|
|
96
|
-
severity: Exclude<VoiceObservabilityExportStatus,
|
|
96
|
+
severity: Exclude<VoiceObservabilityExportStatus, "pass">;
|
|
97
97
|
value?: number | string;
|
|
98
98
|
};
|
|
99
99
|
export type VoiceObservabilityExportDeliverySummary = {
|
|
@@ -102,7 +102,7 @@ export type VoiceObservabilityExportDeliverySummary = {
|
|
|
102
102
|
};
|
|
103
103
|
export type VoiceObservabilityExportRedactionSummary = {
|
|
104
104
|
enabled: boolean;
|
|
105
|
-
mode:
|
|
105
|
+
mode: "none" | "redacted";
|
|
106
106
|
};
|
|
107
107
|
export type VoiceObservabilityExportReport = {
|
|
108
108
|
artifacts: VoiceObservabilityExportArtifact[];
|
|
@@ -155,27 +155,27 @@ export type VoiceObservabilityExportDeliveryDestination = {
|
|
|
155
155
|
directory: string;
|
|
156
156
|
id?: string;
|
|
157
157
|
includeArtifacts?: boolean;
|
|
158
|
-
kind:
|
|
158
|
+
kind: "file";
|
|
159
159
|
label?: string;
|
|
160
160
|
} | (S3Options & {
|
|
161
161
|
bucket?: string;
|
|
162
|
-
client?: Pick<S3Client,
|
|
162
|
+
client?: Pick<S3Client, "file">;
|
|
163
163
|
id?: string;
|
|
164
164
|
includeArtifacts?: boolean;
|
|
165
165
|
keyPrefix?: string;
|
|
166
|
-
kind:
|
|
166
|
+
kind: "s3";
|
|
167
167
|
label?: string;
|
|
168
168
|
}) | {
|
|
169
169
|
database?: Database;
|
|
170
170
|
id?: string;
|
|
171
|
-
kind:
|
|
171
|
+
kind: "sqlite";
|
|
172
172
|
label?: string;
|
|
173
173
|
path?: string;
|
|
174
174
|
tableName?: string;
|
|
175
175
|
} | {
|
|
176
176
|
connectionString?: string;
|
|
177
177
|
id?: string;
|
|
178
|
-
kind:
|
|
178
|
+
kind: "postgres";
|
|
179
179
|
label?: string;
|
|
180
180
|
schemaName?: string;
|
|
181
181
|
sql?: VoicePostgresClient;
|
|
@@ -185,7 +185,7 @@ export type VoiceObservabilityExportDeliveryDestination = {
|
|
|
185
185
|
headers?: Record<string, string>;
|
|
186
186
|
id?: string;
|
|
187
187
|
includeArtifacts?: boolean;
|
|
188
|
-
kind:
|
|
188
|
+
kind: "webhook";
|
|
189
189
|
label?: string;
|
|
190
190
|
timeoutMs?: number;
|
|
191
191
|
url: string;
|
|
@@ -194,12 +194,12 @@ export type VoiceObservabilityExportDeliveryDestinationResult = {
|
|
|
194
194
|
artifactCount: number;
|
|
195
195
|
deliveredAt: number;
|
|
196
196
|
destinationId: string;
|
|
197
|
-
destinationKind: VoiceObservabilityExportDeliveryDestination[
|
|
197
|
+
destinationKind: VoiceObservabilityExportDeliveryDestination["kind"];
|
|
198
198
|
error?: string;
|
|
199
199
|
label: string;
|
|
200
200
|
manifestBytes: number;
|
|
201
201
|
schema: VoiceObservabilityExportSchema;
|
|
202
|
-
status:
|
|
202
|
+
status: "delivered" | "failed";
|
|
203
203
|
target: string;
|
|
204
204
|
};
|
|
205
205
|
export type VoiceObservabilityExportDeliveryReport = {
|
|
@@ -220,7 +220,7 @@ export type VoiceObservabilityExportDeliveryReceipt = {
|
|
|
220
220
|
id: string;
|
|
221
221
|
runId: string;
|
|
222
222
|
status: VoiceObservabilityExportStatus;
|
|
223
|
-
summary: VoiceObservabilityExportDeliveryReport[
|
|
223
|
+
summary: VoiceObservabilityExportDeliveryReport["summary"];
|
|
224
224
|
};
|
|
225
225
|
export type VoiceObservabilityExportDeliveryReceiptStore = {
|
|
226
226
|
get: (id: string) => Promise<VoiceObservabilityExportDeliveryReceipt | undefined> | VoiceObservabilityExportDeliveryReceipt | undefined;
|
|
@@ -239,12 +239,12 @@ export type VoiceObservabilityExportDeliveryHistory = {
|
|
|
239
239
|
totalDestinations: number;
|
|
240
240
|
};
|
|
241
241
|
};
|
|
242
|
-
export type VoiceObservabilityExportReplayIssueCode =
|
|
242
|
+
export type VoiceObservabilityExportReplayIssueCode = "voice.observability.export_replay.artifact_failed" | "voice.observability.export_replay.delivery_failed" | "voice.observability.export_replay.export_failed" | "voice.observability.export_replay.missing_record" | "voice.observability.export_replay.validation_failed";
|
|
243
243
|
export type VoiceObservabilityExportReplayIssue = {
|
|
244
244
|
code: VoiceObservabilityExportReplayIssueCode;
|
|
245
245
|
detail?: string;
|
|
246
246
|
label: string;
|
|
247
|
-
severity: Exclude<VoiceObservabilityExportStatus,
|
|
247
|
+
severity: Exclude<VoiceObservabilityExportStatus, "pass">;
|
|
248
248
|
value?: number | string;
|
|
249
249
|
};
|
|
250
250
|
export type VoiceObservabilityExportReplayRecords = {
|
|
@@ -286,12 +286,12 @@ export type VoiceObservabilityExportDeliveryAssertionInput = {
|
|
|
286
286
|
now?: number;
|
|
287
287
|
requireStatus?: VoiceObservabilityExportStatus;
|
|
288
288
|
requiredDestinationIds?: string[];
|
|
289
|
-
requiredDestinationKinds?: VoiceObservabilityExportDeliveryDestination[
|
|
289
|
+
requiredDestinationKinds?: VoiceObservabilityExportDeliveryDestination["kind"][];
|
|
290
290
|
};
|
|
291
291
|
export type VoiceObservabilityExportDeliveryAssertionReport = {
|
|
292
292
|
delivered: number;
|
|
293
293
|
destinationIds: string[];
|
|
294
|
-
destinationKinds: VoiceObservabilityExportDeliveryDestination[
|
|
294
|
+
destinationKinds: VoiceObservabilityExportDeliveryDestination["kind"][];
|
|
295
295
|
failed: number;
|
|
296
296
|
failedExportReceipts: number;
|
|
297
297
|
failedReceipts: number;
|
|
@@ -330,27 +330,27 @@ export type VoiceObservabilityExportReplaySource = {
|
|
|
330
330
|
deliveryHistory?: unknown;
|
|
331
331
|
deliveryReceipt?: unknown;
|
|
332
332
|
deliveryReport?: unknown;
|
|
333
|
-
kind:
|
|
333
|
+
kind: "records";
|
|
334
334
|
manifest?: unknown;
|
|
335
335
|
} | {
|
|
336
336
|
directory: string;
|
|
337
|
-
kind:
|
|
337
|
+
kind: "file";
|
|
338
338
|
receiptDirectory?: string;
|
|
339
339
|
runId: string;
|
|
340
340
|
} | (S3Options & {
|
|
341
|
-
client?: Pick<S3Client,
|
|
341
|
+
client?: Pick<S3Client, "file">;
|
|
342
342
|
keyPrefix?: string;
|
|
343
|
-
kind:
|
|
343
|
+
kind: "s3";
|
|
344
344
|
runId: string;
|
|
345
345
|
}) | {
|
|
346
346
|
database?: Database;
|
|
347
|
-
kind:
|
|
347
|
+
kind: "sqlite";
|
|
348
348
|
path?: string;
|
|
349
349
|
runId: string;
|
|
350
350
|
tableName?: string;
|
|
351
351
|
} | {
|
|
352
352
|
connectionString?: string;
|
|
353
|
-
kind:
|
|
353
|
+
kind: "postgres";
|
|
354
354
|
runId: string;
|
|
355
355
|
schemaName?: string;
|
|
356
356
|
sql?: VoicePostgresClient;
|
|
@@ -374,11 +374,11 @@ export type VoiceObservabilityExportDeliveryOptions = {
|
|
|
374
374
|
export type VoiceObservabilityExportOptions = {
|
|
375
375
|
artifacts?: VoiceObservabilityExportArtifact[];
|
|
376
376
|
artifactIntegrity?: {
|
|
377
|
-
checksum?: false |
|
|
377
|
+
checksum?: false | "sha256";
|
|
378
378
|
maxAgeMs?: number;
|
|
379
|
-
missingSeverity?: Exclude<VoiceObservabilityExportStatus,
|
|
379
|
+
missingSeverity?: Exclude<VoiceObservabilityExportStatus, "pass">;
|
|
380
380
|
now?: number;
|
|
381
|
-
staleSeverity?: Exclude<VoiceObservabilityExportStatus,
|
|
381
|
+
staleSeverity?: Exclude<VoiceObservabilityExportStatus, "pass">;
|
|
382
382
|
};
|
|
383
383
|
audit?: VoiceAuditEventStore;
|
|
384
384
|
auditDeliveries?: VoiceAuditSinkDeliveryRecord[] | VoiceAuditSinkDeliveryStore;
|
package/dist/openaiTTS.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TTSAdapter, TTSAdapterOpenOptions, VoiceLexiconEntry } from
|
|
2
|
-
export type OpenAIVoiceTTSVoice =
|
|
1
|
+
import type { TTSAdapter, TTSAdapterOpenOptions, VoiceLexiconEntry } from "./types";
|
|
2
|
+
export type OpenAIVoiceTTSVoice = "alloy" | "ash" | "ballad" | "cedar" | "coral" | "echo" | "fable" | "marin" | "nova" | "onyx" | "sage" | "shimmer" | "verse" | (string & {});
|
|
3
3
|
export type OpenAIVoiceTTSOptions = {
|
|
4
4
|
apiKey: string;
|
|
5
5
|
baseUrl?: string;
|
|
@@ -9,7 +9,7 @@ export type OpenAIVoiceTTSOptions = {
|
|
|
9
9
|
sessionId: string;
|
|
10
10
|
text: string;
|
|
11
11
|
}) => Promise<string | undefined> | string | undefined);
|
|
12
|
-
model?:
|
|
12
|
+
model?: "gpt-4o-mini-tts" | "tts-1" | "tts-1-hd" | (string & {});
|
|
13
13
|
speed?: number;
|
|
14
14
|
voice?: OpenAIVoiceTTSVoice | {
|
|
15
15
|
id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceDeliveryRuntime, type VoiceDeliveryRuntimeReport } from
|
|
3
|
-
import { type VoiceProductionReadinessReport, type VoiceProductionReadinessStatus } from
|
|
4
|
-
import type { VoiceProofPackRefreshStatus } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceDeliveryRuntime, type VoiceDeliveryRuntimeReport } from "./deliveryRuntime";
|
|
3
|
+
import { type VoiceProductionReadinessReport, type VoiceProductionReadinessStatus } from "./productionReadiness";
|
|
4
|
+
import type { VoiceProofPackRefreshStatus } from "./proofPack";
|
|
5
5
|
export type VoiceOperationalStatus = VoiceProductionReadinessStatus;
|
|
6
6
|
export type VoiceOperationalStatusCheck = {
|
|
7
7
|
detail?: string;
|
|
@@ -29,7 +29,7 @@ export type VoiceOperationalStatusReport = {
|
|
|
29
29
|
export type VoiceOperationalStatusValue<TValue> = TValue | (() => Promise<TValue> | TValue);
|
|
30
30
|
export type VoiceOperationalStatusOptions = {
|
|
31
31
|
deliveryRuntime?: VoiceDeliveryRuntime | VoiceOperationalStatusValue<VoiceDeliveryRuntimeReport>;
|
|
32
|
-
links?: VoiceOperationalStatusReport[
|
|
32
|
+
links?: VoiceOperationalStatusReport["links"];
|
|
33
33
|
productionReadiness?: VoiceOperationalStatusValue<VoiceProductionReadinessReport>;
|
|
34
34
|
proofPack?: VoiceOperationalStatusValue<VoiceProofPackRefreshStatus>;
|
|
35
35
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from
|
|
3
|
-
import type { StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationEventStore, VoiceOpsTaskStore } from
|
|
4
|
-
import { type VoiceSessionReplay } from
|
|
5
|
-
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewStore } from
|
|
6
|
-
import { type VoiceTraceTimelineEvent, type VoiceTraceTimelineProviderSummary } from
|
|
7
|
-
import { type StoredVoiceTraceEvent, type VoiceTraceEvaluationOptions, type VoiceTraceEventStore, type VoiceTraceRedactionConfig, type VoiceTraceSummary } from
|
|
8
|
-
export type VoiceOperationsRecordStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from "./audit";
|
|
3
|
+
import type { StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationEventStore, VoiceOpsTaskStore } from "./ops";
|
|
4
|
+
import { type VoiceSessionReplay } from "./sessionReplay";
|
|
5
|
+
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewStore } from "./testing/review";
|
|
6
|
+
import { type VoiceTraceTimelineEvent, type VoiceTraceTimelineProviderSummary } from "./traceTimeline";
|
|
7
|
+
import { type StoredVoiceTraceEvent, type VoiceTraceEvaluationOptions, type VoiceTraceEventStore, type VoiceTraceRedactionConfig, type VoiceTraceSummary } from "./trace";
|
|
8
|
+
export type VoiceOperationsRecordStatus = "failed" | "healthy" | "warning";
|
|
9
9
|
export type VoiceOperationsRecordOutcome = {
|
|
10
10
|
assistantReplies: number;
|
|
11
11
|
complete: boolean;
|
|
@@ -51,10 +51,10 @@ export type VoiceOperationsRecordProviderDecision = {
|
|
|
51
51
|
selectedProvider?: string;
|
|
52
52
|
status?: string;
|
|
53
53
|
surface?: string;
|
|
54
|
-
type: StoredVoiceTraceEvent[
|
|
54
|
+
type: StoredVoiceTraceEvent["type"];
|
|
55
55
|
turnId?: string;
|
|
56
56
|
};
|
|
57
|
-
export type VoiceOperationsRecordProviderDecisionRecoveryStatus =
|
|
57
|
+
export type VoiceOperationsRecordProviderDecisionRecoveryStatus = "degraded" | "failed" | "none" | "recovered" | "selected";
|
|
58
58
|
export type VoiceOperationsRecordProviderDecisionSummary = {
|
|
59
59
|
degraded: number;
|
|
60
60
|
errors: number;
|
|
@@ -217,7 +217,7 @@ export type VoiceOperationsRecord = {
|
|
|
217
217
|
traceEvents: StoredVoiceTraceEvent[];
|
|
218
218
|
transcript: VoiceOperationsRecordTranscriptTurn[];
|
|
219
219
|
};
|
|
220
|
-
export type VoiceFailureReplayStatus =
|
|
220
|
+
export type VoiceFailureReplayStatus = "degraded" | "failed" | "healthy" | "recovered";
|
|
221
221
|
export type VoiceFailureReplayProviderStep = {
|
|
222
222
|
at: number;
|
|
223
223
|
elapsedMs?: number;
|
|
@@ -297,7 +297,7 @@ export type VoiceOperationsRecordOptions = {
|
|
|
297
297
|
store?: VoiceTraceEventStore;
|
|
298
298
|
tasks?: VoiceOpsTaskStore;
|
|
299
299
|
};
|
|
300
|
-
export type VoiceOperationsRecordRoutesOptions = Omit<VoiceOperationsRecordOptions,
|
|
300
|
+
export type VoiceOperationsRecordRoutesOptions = Omit<VoiceOperationsRecordOptions, "sessionId"> & {
|
|
301
301
|
headers?: HeadersInit;
|
|
302
302
|
htmlPath?: false | string;
|
|
303
303
|
incidentHtmlPath?: false | string;
|
package/dist/ops.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { VoiceCallDisposition, VoiceSessionRecord, VoiceSessionSummary } from
|
|
2
|
-
import type { StoredVoiceCallReviewArtifact } from
|
|
3
|
-
export type VoiceOpsTaskStatus =
|
|
4
|
-
export type VoiceOpsTaskKind =
|
|
5
|
-
export type VoiceOpsTaskPriority =
|
|
1
|
+
import type { VoiceCallDisposition, VoiceSessionRecord, VoiceSessionSummary } from "./types";
|
|
2
|
+
import type { StoredVoiceCallReviewArtifact } from "./testing/review";
|
|
3
|
+
export type VoiceOpsTaskStatus = "open" | "in-progress" | "done";
|
|
4
|
+
export type VoiceOpsTaskKind = "appointment-booking" | "callback" | "escalation" | "lead-qualification" | "transfer-check" | "retry-review" | "support-triage";
|
|
5
|
+
export type VoiceOpsTaskPriority = "low" | "normal" | "high" | "urgent";
|
|
6
6
|
export type VoiceOpsTaskHistoryEntry = {
|
|
7
7
|
actor: string;
|
|
8
8
|
at: number;
|
|
9
9
|
detail?: string;
|
|
10
|
-
type:
|
|
10
|
+
type: "created" | "assigned" | "started" | "claimed" | "heartbeat" | "failed" | "dead-lettered" | "policy-applied" | "sla-breached" | "completed" | "reopened" | "requeued";
|
|
11
11
|
};
|
|
12
12
|
export type VoiceOpsTask = {
|
|
13
13
|
assignee?: string;
|
|
@@ -45,7 +45,7 @@ export type VoiceExternalObjectMap = {
|
|
|
45
45
|
provider: string;
|
|
46
46
|
sinkId?: string;
|
|
47
47
|
sourceId: string;
|
|
48
|
-
sourceType:
|
|
48
|
+
sourceType: "session" | "review" | "task" | "event";
|
|
49
49
|
updatedAt: number;
|
|
50
50
|
};
|
|
51
51
|
export type StoredVoiceExternalObjectMap = VoiceExternalObjectMap;
|
|
@@ -67,7 +67,7 @@ export type VoiceExternalObjectMapStore<TMapping extends StoredVoiceExternalObje
|
|
|
67
67
|
provider: string;
|
|
68
68
|
sinkId?: string;
|
|
69
69
|
sourceId: string;
|
|
70
|
-
sourceType?: VoiceExternalObjectMap[
|
|
70
|
+
sourceType?: VoiceExternalObjectMap["sourceType"];
|
|
71
71
|
}) => Promise<TMapping | undefined> | TMapping | undefined;
|
|
72
72
|
get: (id: string) => Promise<TMapping | undefined> | TMapping | undefined;
|
|
73
73
|
list: () => Promise<TMapping[]> | TMapping[];
|
|
@@ -96,7 +96,7 @@ export type VoiceOpsTaskSummary = {
|
|
|
96
96
|
topTargets: Array<[string, number]>;
|
|
97
97
|
total: number;
|
|
98
98
|
};
|
|
99
|
-
export type VoiceOpsTaskAgeBucket =
|
|
99
|
+
export type VoiceOpsTaskAgeBucket = "fresh" | "aging" | "due-soon" | "overdue" | "stale";
|
|
100
100
|
export type VoiceOpsTaskAssigneeAnalytics = {
|
|
101
101
|
assignee: string;
|
|
102
102
|
averageCompletionMs?: number;
|
|
@@ -161,9 +161,9 @@ export type VoiceOpsTaskAnalyticsOptions = {
|
|
|
161
161
|
dueSoonMs?: number;
|
|
162
162
|
staleMs?: number;
|
|
163
163
|
};
|
|
164
|
-
export type VoiceIntegrationEventType =
|
|
164
|
+
export type VoiceIntegrationEventType = "call.completed" | "review.saved" | "task.created" | "task.updated" | "task.sla_breached";
|
|
165
165
|
export type VoiceOpsSLABreachPolicy = {
|
|
166
|
-
action?:
|
|
166
|
+
action?: "event" | "event-and-task" | "task";
|
|
167
167
|
assignee?: string;
|
|
168
168
|
description?: string;
|
|
169
169
|
dueInMs?: number;
|
|
@@ -173,7 +173,7 @@ export type VoiceOpsSLABreachPolicy = {
|
|
|
173
173
|
recommendedAction?: string;
|
|
174
174
|
title?: string;
|
|
175
175
|
};
|
|
176
|
-
export type VoiceIntegrationDeliveryStatus =
|
|
176
|
+
export type VoiceIntegrationDeliveryStatus = "pending" | "delivered" | "failed" | "skipped";
|
|
177
177
|
export type VoiceIntegrationSinkDelivery = {
|
|
178
178
|
attempts: number;
|
|
179
179
|
deliveredAt?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from
|
|
3
|
-
import { type VoiceTraceEventStore } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from "./audit";
|
|
3
|
+
import { type VoiceTraceEventStore } from "./trace";
|
|
4
4
|
export type VoiceOpsActionAuditRecord = {
|
|
5
5
|
actionId: string;
|
|
6
6
|
body?: unknown;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceDeliverySinkReport, type VoiceDeliverySinkRoutesOptions } from
|
|
3
|
-
import { type VoiceQualityReport } from
|
|
4
|
-
import { type VoiceRoutingEvent } from
|
|
5
|
-
import { type VoiceSessionListItem } from
|
|
6
|
-
import { summarizeVoiceTrace, type VoiceTraceEventStore } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceDeliverySinkReport, type VoiceDeliverySinkRoutesOptions } from "./deliverySinkRoutes";
|
|
3
|
+
import { type VoiceQualityReport } from "./qualityRoutes";
|
|
4
|
+
import { type VoiceRoutingEvent } from "./resilienceRoutes";
|
|
5
|
+
import { type VoiceSessionListItem } from "./sessionReplay";
|
|
6
|
+
import { summarizeVoiceTrace, type VoiceTraceEventStore } from "./trace";
|
|
7
7
|
export type VoiceOpsConsoleLink = {
|
|
8
8
|
description?: string;
|
|
9
9
|
href: string;
|
package/dist/opsPresets.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VoiceOpsDispositionTaskPolicies, VoiceOpsTaskAssignmentRules, VoiceOpsSLABreachPolicy } from
|
|
2
|
-
export type VoiceOpsPresetName =
|
|
1
|
+
import type { VoiceOpsDispositionTaskPolicies, VoiceOpsTaskAssignmentRules, VoiceOpsSLABreachPolicy } from "./ops";
|
|
2
|
+
export type VoiceOpsPresetName = "support-default" | "sales-default" | "collections-default";
|
|
3
3
|
export type VoiceResolvedOpsPreset = {
|
|
4
4
|
assignmentRules: VoiceOpsTaskAssignmentRules;
|
|
5
5
|
description: string;
|