@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.
Files changed (313) hide show
  1. package/README.md +2729 -2698
  2. package/dist/agent.d.ts +10 -10
  3. package/dist/agentSquadContract.d.ts +4 -4
  4. package/dist/angular/index.d.ts +22 -22
  5. package/dist/angular/voice-agent-squad-status.service.d.ts +1 -1
  6. package/dist/angular/voice-call-debugger.service.d.ts +2 -2
  7. package/dist/angular/voice-campaign-dialer-proof.service.d.ts +2 -2
  8. package/dist/angular/voice-controller.service.d.ts +1 -1
  9. package/dist/angular/voice-delivery-runtime.component.d.ts +2 -2
  10. package/dist/angular/voice-delivery-runtime.service.d.ts +2 -2
  11. package/dist/angular/voice-live-ops.service.d.ts +1 -1
  12. package/dist/angular/voice-ops-action-center.service.d.ts +1 -1
  13. package/dist/angular/voice-ops-status.component.d.ts +2 -2
  14. package/dist/angular/voice-ops-status.service.d.ts +2 -2
  15. package/dist/angular/voice-platform-coverage.service.d.ts +2 -2
  16. package/dist/angular/voice-profile-comparison.service.d.ts +2 -2
  17. package/dist/angular/voice-proof-trends.service.d.ts +2 -2
  18. package/dist/angular/voice-provider-capabilities.service.d.ts +2 -2
  19. package/dist/angular/voice-provider-contracts.service.d.ts +2 -2
  20. package/dist/angular/voice-provider-status.service.d.ts +2 -2
  21. package/dist/angular/voice-readiness-failures.service.d.ts +2 -2
  22. package/dist/angular/voice-routing-status.service.d.ts +1 -1
  23. package/dist/angular/voice-session-snapshot.service.d.ts +2 -2
  24. package/dist/angular/voice-stream.service.d.ts +1 -1
  25. package/dist/angular/voice-trace-timeline.service.d.ts +2 -2
  26. package/dist/angular/voice-turn-latency.service.d.ts +2 -2
  27. package/dist/angular/voice-turn-quality.service.d.ts +2 -2
  28. package/dist/angular/voice-workflow-status.service.d.ts +2 -2
  29. package/dist/assistant.d.ts +11 -11
  30. package/dist/assistantHealth.d.ts +6 -6
  31. package/dist/assistantMemory.d.ts +3 -3
  32. package/dist/audioConditioning.d.ts +1 -1
  33. package/dist/audit.d.ts +11 -11
  34. package/dist/auditDeliveryRoutes.d.ts +3 -3
  35. package/dist/auditExport.d.ts +3 -3
  36. package/dist/auditRoutes.d.ts +2 -2
  37. package/dist/auditSinks.d.ts +8 -8
  38. package/dist/bargeInRoutes.d.ts +3 -3
  39. package/dist/browserCallProfiles.d.ts +2 -2
  40. package/dist/browserMediaRoutes.d.ts +4 -4
  41. package/dist/callDebugger.d.ts +6 -6
  42. package/dist/campaign.d.ts +22 -22
  43. package/dist/campaignDialers.d.ts +14 -14
  44. package/dist/client/actions.d.ts +1 -1
  45. package/dist/client/agentSquadStatus.d.ts +3 -3
  46. package/dist/client/agentSquadStatusWidget.d.ts +1 -1
  47. package/dist/client/audioPlayer.d.ts +2 -2
  48. package/dist/client/bargeInMonitor.d.ts +1 -1
  49. package/dist/client/browserMedia.d.ts +1 -1
  50. package/dist/client/callDebugger.d.ts +1 -1
  51. package/dist/client/callDebuggerWidget.d.ts +3 -3
  52. package/dist/client/campaignDialerProof.d.ts +1 -1
  53. package/dist/client/connection.d.ts +3 -3
  54. package/dist/client/controller.d.ts +1 -1
  55. package/dist/client/createVoiceStream.d.ts +1 -1
  56. package/dist/client/deliveryRuntime.d.ts +4 -4
  57. package/dist/client/deliveryRuntimeWidget.d.ts +5 -5
  58. package/dist/client/duplex.d.ts +1 -1
  59. package/dist/client/htmx.d.ts +1 -1
  60. package/dist/client/index.d.ts +96 -96
  61. package/dist/client/index.js +41 -15
  62. package/dist/client/liveOps.d.ts +2 -2
  63. package/dist/client/liveOpsWidget.d.ts +2 -2
  64. package/dist/client/liveTurnLatency.d.ts +3 -3
  65. package/dist/client/microphone.d.ts +4 -4
  66. package/dist/client/opsActionCenter.d.ts +1 -1
  67. package/dist/client/opsActionCenterWidget.d.ts +2 -2
  68. package/dist/client/opsActionHistory.d.ts +1 -1
  69. package/dist/client/opsActionHistoryWidget.d.ts +1 -1
  70. package/dist/client/opsStatus.d.ts +1 -1
  71. package/dist/client/opsStatusWidget.d.ts +4 -4
  72. package/dist/client/platformCoverage.d.ts +1 -1
  73. package/dist/client/platformCoverageWidget.d.ts +3 -3
  74. package/dist/client/profileComparison.d.ts +1 -1
  75. package/dist/client/profileComparisonWidget.d.ts +2 -2
  76. package/dist/client/profileSwitchRecommendation.d.ts +1 -1
  77. package/dist/client/profileSwitchRecommendationWidget.d.ts +1 -1
  78. package/dist/client/proofTrends.d.ts +1 -1
  79. package/dist/client/proofTrendsWidget.d.ts +3 -3
  80. package/dist/client/providerCapabilities.d.ts +1 -1
  81. package/dist/client/providerCapabilitiesWidget.d.ts +3 -3
  82. package/dist/client/providerContracts.d.ts +1 -1
  83. package/dist/client/providerContractsWidget.d.ts +3 -3
  84. package/dist/client/providerSimulationControls.d.ts +2 -2
  85. package/dist/client/providerSimulationControlsWidget.d.ts +1 -1
  86. package/dist/client/providerStatus.d.ts +1 -1
  87. package/dist/client/providerStatusWidget.d.ts +3 -3
  88. package/dist/client/readinessFailures.d.ts +1 -1
  89. package/dist/client/readinessFailuresWidget.d.ts +4 -4
  90. package/dist/client/routingStatus.d.ts +1 -1
  91. package/dist/client/routingStatusWidget.d.ts +3 -3
  92. package/dist/client/sessionSnapshot.d.ts +1 -1
  93. package/dist/client/sessionSnapshotWidget.d.ts +2 -2
  94. package/dist/client/store.d.ts +1 -1
  95. package/dist/client/traceTimeline.d.ts +1 -1
  96. package/dist/client/traceTimelineWidget.d.ts +3 -3
  97. package/dist/client/turnLatency.d.ts +1 -1
  98. package/dist/client/turnLatencyWidget.d.ts +3 -3
  99. package/dist/client/turnQuality.d.ts +1 -1
  100. package/dist/client/turnQualityWidget.d.ts +3 -3
  101. package/dist/client/workflowStatus.d.ts +1 -1
  102. package/dist/competitiveCoverage.d.ts +9 -9
  103. package/dist/correction.d.ts +2 -2
  104. package/dist/dataControl.d.ts +16 -16
  105. package/dist/deliveryRuntime.d.ts +9 -9
  106. package/dist/deliverySinkRoutes.d.ts +6 -6
  107. package/dist/demoReadyRoutes.d.ts +8 -8
  108. package/dist/diagnosticsRoutes.d.ts +2 -2
  109. package/dist/evalRoutes.d.ts +4 -4
  110. package/dist/fileStore.d.ts +9 -9
  111. package/dist/guardrails.d.ts +9 -9
  112. package/dist/handoff.d.ts +6 -6
  113. package/dist/handoffHealth.d.ts +5 -5
  114. package/dist/htmx.d.ts +1 -1
  115. package/dist/incidentBundle.d.ts +7 -7
  116. package/dist/incidentTimeline.d.ts +30 -16
  117. package/dist/index.d.ts +215 -215
  118. package/dist/index.js +375 -111
  119. package/dist/latencySlo.d.ts +4 -4
  120. package/dist/liveLatency.d.ts +3 -3
  121. package/dist/liveOps.d.ts +11 -11
  122. package/dist/logger.d.ts +1 -1
  123. package/dist/mediaPipelineRoutes.d.ts +2 -2
  124. package/dist/memoryStore.d.ts +1 -1
  125. package/dist/modelAdapters.d.ts +9 -9
  126. package/dist/observabilityExport.d.ts +44 -44
  127. package/dist/openaiTTS.d.ts +3 -3
  128. package/dist/operationalStatus.d.ts +5 -5
  129. package/dist/operationsRecord.d.ts +12 -12
  130. package/dist/ops.d.ts +12 -12
  131. package/dist/opsActionAuditRoutes.d.ts +3 -3
  132. package/dist/opsConsoleRoutes.d.ts +6 -6
  133. package/dist/opsPresets.d.ts +2 -2
  134. package/dist/opsRecovery.d.ts +11 -11
  135. package/dist/opsRuntime.d.ts +6 -6
  136. package/dist/opsSinks.d.ts +13 -13
  137. package/dist/opsStatus.d.ts +7 -7
  138. package/dist/opsStatusRoutes.d.ts +2 -2
  139. package/dist/opsWebhook.d.ts +6 -6
  140. package/dist/outcomeContract.d.ts +5 -5
  141. package/dist/outcomeRecipes.d.ts +4 -4
  142. package/dist/phoneAgent.d.ts +18 -18
  143. package/dist/phoneAgentProductionSmoke.d.ts +8 -8
  144. package/dist/platformCoverage.d.ts +3 -3
  145. package/dist/plugin.d.ts +2 -2
  146. package/dist/postCallAnalysis.d.ts +6 -6
  147. package/dist/postgresStore.d.ts +8 -8
  148. package/dist/presets.d.ts +3 -3
  149. package/dist/productionReadiness.d.ts +62 -36
  150. package/dist/profileSwitchRecommendation.d.ts +15 -15
  151. package/dist/proofAssertions.d.ts +1 -1
  152. package/dist/proofPack.d.ts +12 -12
  153. package/dist/proofRunner.d.ts +5 -5
  154. package/dist/proofTrends.d.ts +17 -17
  155. package/dist/providerAdapters.d.ts +5 -5
  156. package/dist/providerCapabilities.d.ts +4 -4
  157. package/dist/providerDecisionTraces.d.ts +8 -8
  158. package/dist/providerHealth.d.ts +3 -3
  159. package/dist/providerOrchestration.d.ts +5 -5
  160. package/dist/providerRouterTraces.d.ts +7 -7
  161. package/dist/providerRoutingContract.d.ts +3 -3
  162. package/dist/providerSlo.d.ts +6 -6
  163. package/dist/providerStackRecommendations.d.ts +6 -6
  164. package/dist/qualityRoutes.d.ts +4 -4
  165. package/dist/queue.d.ts +16 -16
  166. package/dist/react/VoiceAgentSquadStatus.d.ts +1 -1
  167. package/dist/react/VoiceCallDebuggerLaunch.d.ts +1 -1
  168. package/dist/react/VoiceDeliveryRuntime.d.ts +1 -1
  169. package/dist/react/VoiceOpsActionCenter.d.ts +1 -1
  170. package/dist/react/VoiceOpsStatus.d.ts +1 -1
  171. package/dist/react/VoicePlatformCoverage.d.ts +1 -1
  172. package/dist/react/VoiceProfileComparison.d.ts +1 -1
  173. package/dist/react/VoiceProfileSwitchRecommendation.d.ts +1 -1
  174. package/dist/react/VoiceProofTrends.d.ts +1 -1
  175. package/dist/react/VoiceProviderCapabilities.d.ts +1 -1
  176. package/dist/react/VoiceProviderContracts.d.ts +1 -1
  177. package/dist/react/VoiceProviderSimulationControls.d.ts +1 -1
  178. package/dist/react/VoiceProviderStatus.d.ts +1 -1
  179. package/dist/react/VoiceReadinessFailures.d.ts +1 -1
  180. package/dist/react/VoiceRoutingStatus.d.ts +1 -1
  181. package/dist/react/VoiceSessionSnapshot.d.ts +1 -1
  182. package/dist/react/VoiceTraceTimeline.d.ts +1 -1
  183. package/dist/react/VoiceTurnLatency.d.ts +1 -1
  184. package/dist/react/VoiceTurnQuality.d.ts +1 -1
  185. package/dist/react/index.d.ts +43 -43
  186. package/dist/react/index.js +41 -15
  187. package/dist/react/useVoiceAgentSquadStatus.d.ts +1 -1
  188. package/dist/react/useVoiceCallDebugger.d.ts +1 -1
  189. package/dist/react/useVoiceCampaignDialerProof.d.ts +1 -1
  190. package/dist/react/useVoiceController.d.ts +1 -1
  191. package/dist/react/useVoiceDeliveryRuntime.d.ts +1 -1
  192. package/dist/react/useVoiceLiveOps.d.ts +1 -1
  193. package/dist/react/useVoiceOpsActionCenter.d.ts +1 -1
  194. package/dist/react/useVoiceOpsStatus.d.ts +1 -1
  195. package/dist/react/useVoicePlatformCoverage.d.ts +1 -1
  196. package/dist/react/useVoiceProfileComparison.d.ts +1 -1
  197. package/dist/react/useVoiceProfileSwitchRecommendation.d.ts +1 -1
  198. package/dist/react/useVoiceProofTrends.d.ts +1 -1
  199. package/dist/react/useVoiceProviderCapabilities.d.ts +1 -1
  200. package/dist/react/useVoiceProviderContracts.d.ts +1 -1
  201. package/dist/react/useVoiceProviderSimulationControls.d.ts +1 -1
  202. package/dist/react/useVoiceProviderStatus.d.ts +1 -1
  203. package/dist/react/useVoiceReadinessFailures.d.ts +1 -1
  204. package/dist/react/useVoiceRoutingStatus.d.ts +1 -1
  205. package/dist/react/useVoiceSessionSnapshot.d.ts +1 -1
  206. package/dist/react/useVoiceStream.d.ts +1 -1
  207. package/dist/react/useVoiceTraceTimeline.d.ts +1 -1
  208. package/dist/react/useVoiceTurnLatency.d.ts +1 -1
  209. package/dist/react/useVoiceTurnQuality.d.ts +1 -1
  210. package/dist/react/useVoiceWorkflowStatus.d.ts +1 -1
  211. package/dist/readinessProfiles.d.ts +22 -15
  212. package/dist/realtimeChannel.d.ts +6 -6
  213. package/dist/realtimeProviderContracts.d.ts +7 -7
  214. package/dist/reconnectContract.d.ts +6 -6
  215. package/dist/resilienceRoutes.d.ts +6 -6
  216. package/dist/routing.d.ts +1 -1
  217. package/dist/runtimeOps.d.ts +3 -3
  218. package/dist/s3Store.d.ts +3 -3
  219. package/dist/session.d.ts +1 -1
  220. package/dist/sessionReplay.d.ts +9 -9
  221. package/dist/sessionSnapshot.d.ts +8 -8
  222. package/dist/simulationSuite.d.ts +12 -12
  223. package/dist/sloCalibration.d.ts +8 -8
  224. package/dist/sqliteStore.d.ts +8 -8
  225. package/dist/store.d.ts +1 -1
  226. package/dist/svelte/createVoiceAgentSquadStatus.d.ts +1 -1
  227. package/dist/svelte/createVoiceCallDebugger.d.ts +2 -2
  228. package/dist/svelte/createVoiceCampaignDialerProof.d.ts +1 -1
  229. package/dist/svelte/createVoiceDeliveryRuntime.d.ts +1 -1
  230. package/dist/svelte/createVoiceLiveOps.d.ts +2 -2
  231. package/dist/svelte/createVoiceOpsActionCenter.d.ts +1 -1
  232. package/dist/svelte/createVoiceOpsStatus.d.ts +1 -1
  233. package/dist/svelte/createVoicePlatformCoverage.d.ts +1 -1
  234. package/dist/svelte/createVoiceProfileComparison.d.ts +1 -1
  235. package/dist/svelte/createVoiceProofTrends.d.ts +1 -1
  236. package/dist/svelte/createVoiceProviderCapabilities.d.ts +1 -1
  237. package/dist/svelte/createVoiceProviderContracts.d.ts +1 -1
  238. package/dist/svelte/createVoiceProviderSimulationControls.d.ts +1 -1
  239. package/dist/svelte/createVoiceProviderStatus.d.ts +1 -1
  240. package/dist/svelte/createVoiceReadinessFailures.d.ts +1 -1
  241. package/dist/svelte/createVoiceRoutingStatus.d.ts +1 -1
  242. package/dist/svelte/createVoiceSessionSnapshot.d.ts +2 -2
  243. package/dist/svelte/createVoiceStream.d.ts +1 -1
  244. package/dist/svelte/createVoiceTraceTimeline.d.ts +1 -1
  245. package/dist/svelte/createVoiceTurnLatency.d.ts +1 -1
  246. package/dist/svelte/createVoiceTurnQuality.d.ts +1 -1
  247. package/dist/svelte/createVoiceWorkflowStatus.d.ts +1 -1
  248. package/dist/svelte/index.d.ts +23 -23
  249. package/dist/svelte/index.js +30 -8
  250. package/dist/telephony/contract.d.ts +5 -5
  251. package/dist/telephony/matrix.d.ts +4 -4
  252. package/dist/telephony/plivo.d.ts +30 -30
  253. package/dist/telephony/response.d.ts +1 -1
  254. package/dist/telephony/security.d.ts +17 -17
  255. package/dist/telephony/telnyx.d.ts +31 -31
  256. package/dist/telephony/twilio.d.ts +22 -22
  257. package/dist/telephonyMediaRoutes.d.ts +4 -4
  258. package/dist/telephonyOutcome.d.ts +13 -13
  259. package/dist/testing/accuracy.d.ts +1 -1
  260. package/dist/testing/benchmark.d.ts +9 -9
  261. package/dist/testing/corrected.d.ts +5 -5
  262. package/dist/testing/duplex.d.ts +3 -3
  263. package/dist/testing/fixtures.d.ts +3 -3
  264. package/dist/testing/index.d.ts +13 -13
  265. package/dist/testing/index.js +49 -20
  266. package/dist/testing/ioProviderSimulator.d.ts +5 -5
  267. package/dist/testing/providerSimulator.d.ts +5 -5
  268. package/dist/testing/review.d.ts +4 -4
  269. package/dist/testing/sessionBenchmark.d.ts +3 -3
  270. package/dist/testing/stt.d.ts +3 -3
  271. package/dist/testing/telephony.d.ts +3 -3
  272. package/dist/testing/tts.d.ts +1 -1
  273. package/dist/toolContract.d.ts +10 -10
  274. package/dist/toolRuntime.d.ts +3 -3
  275. package/dist/trace.d.ts +10 -10
  276. package/dist/traceDeliveryRoutes.d.ts +4 -4
  277. package/dist/traceTimeline.d.ts +4 -4
  278. package/dist/turnDetection.d.ts +1 -1
  279. package/dist/turnLatency.d.ts +4 -4
  280. package/dist/turnProfiles.d.ts +2 -2
  281. package/dist/turnQuality.d.ts +4 -4
  282. package/dist/types.d.ts +92 -92
  283. package/dist/voiceMonitoring.d.ts +6 -6
  284. package/dist/vue/VoiceOpsActionCenter.d.ts +2 -2
  285. package/dist/vue/VoiceProviderSimulationControls.d.ts +2 -2
  286. package/dist/vue/index.d.ts +38 -38
  287. package/dist/vue/index.js +41 -15
  288. package/dist/vue/useVoiceAgentSquadStatus.d.ts +1 -1
  289. package/dist/vue/useVoiceCallDebugger.d.ts +2 -2
  290. package/dist/vue/useVoiceCampaignDialerProof.d.ts +2 -2
  291. package/dist/vue/useVoiceController.d.ts +1 -1
  292. package/dist/vue/useVoiceDeliveryRuntime.d.ts +2 -2
  293. package/dist/vue/useVoiceLiveOps.d.ts +1 -1
  294. package/dist/vue/useVoiceOpsActionCenter.d.ts +1 -1
  295. package/dist/vue/useVoiceOpsStatus.d.ts +2 -2
  296. package/dist/vue/useVoicePlatformCoverage.d.ts +2 -2
  297. package/dist/vue/useVoiceProfileComparison.d.ts +2 -2
  298. package/dist/vue/useVoiceProofTrends.d.ts +2 -2
  299. package/dist/vue/useVoiceProviderCapabilities.d.ts +2 -2
  300. package/dist/vue/useVoiceProviderContracts.d.ts +2 -2
  301. package/dist/vue/useVoiceProviderSimulationControls.d.ts +1 -1
  302. package/dist/vue/useVoiceProviderStatus.d.ts +2 -2
  303. package/dist/vue/useVoiceReadinessFailures.d.ts +30 -2
  304. package/dist/vue/useVoiceRoutingStatus.d.ts +1 -1
  305. package/dist/vue/useVoiceSessionSnapshot.d.ts +2 -2
  306. package/dist/vue/useVoiceStream.d.ts +1 -1
  307. package/dist/vue/useVoiceTraceTimeline.d.ts +2 -2
  308. package/dist/vue/useVoiceTurnLatency.d.ts +2 -2
  309. package/dist/vue/useVoiceTurnQuality.d.ts +2 -2
  310. package/dist/vue/useVoiceWorkflowStatus.d.ts +2 -2
  311. package/dist/workflowContract.d.ts +8 -8
  312. package/fixtures/manifest.json +356 -197
  313. package/package.json +260 -259
@@ -1,6 +1,6 @@
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';
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, 'empty'>;
15
+ status: Exclude<VoiceLatencySLOStatus, "empty">;
16
16
  turnId?: string;
17
17
  };
18
18
  export type VoiceLatencySLOStageSummary = {
@@ -1,6 +1,6 @@
1
- import { Elysia } from 'elysia';
2
- import type { VoiceTraceEventStore } from './trace';
3
- export type VoiceLiveLatencyStatus = 'empty' | 'fail' | 'pass' | 'warn';
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 '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';
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 = 'assistant-paused' | 'assistant-resumed' | 'handoff-forced' | 'instruction-injected' | 'operator-takeover' | 'recorded';
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['status'];
66
+ operationsRecordStatus?: VoiceOperationsRecord["status"];
67
67
  operationsRecordTasks?: number;
68
68
  opsRecoveryIssues?: number;
69
69
  opsRecoveryStatus?: VoiceOpsRecoveryStatus;
70
- opsStatus?: VoiceOpsStatusReport['status'];
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, 'ok'>> & {
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 './types';
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 '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';
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;
@@ -1,2 +1,2 @@
1
- import type { VoiceSessionRecord, VoiceSessionStore } from './types';
1
+ import type { VoiceSessionRecord, VoiceSessionStore } from "./types";
2
2
  export declare const createVoiceMemoryStore: <TSession extends VoiceSessionRecord = VoiceSessionRecord>() => VoiceSessionStore<TSession>;
@@ -1,5 +1,5 @@
1
- import type { VoiceAgentModel, VoiceAgentModelInput, VoiceAgentModelOutput } from './agent';
2
- import type { VoiceSessionRecord } from './types';
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: 'error' | 'fallback' | 'success';
51
+ status: "error" | "fallback" | "success";
52
52
  timedOut?: boolean;
53
53
  };
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';
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: 'healthy' | 'suppressed';
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>['allowProviders'];
122
- fallback?: VoiceProviderOrchestrationSurface<TContext, TSession, TProvider>['fallback'];
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 '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';
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 = 'artifact-index' | 'database-record' | 'delivery-history' | 'delivery-receipt' | 'delivery-report' | 'manifest';
28
+ export type VoiceObservabilityExportIngestedRecordKind = "artifact-index" | "database-record" | "delivery-history" | "delivery-receipt" | "delivery-report" | "manifest";
29
29
  export type VoiceObservabilityExportValidationIssue = {
30
- code: 'voice.observability.export.invalid_shape' | 'voice.observability.export.missing_field' | 'voice.observability.export.unsupported_schema';
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 = 'call-debugger' | 'incident' | 'incident-recovery-outcomes' | 'markdown' | 'operations-record' | 'proof-pack' | 'readiness' | 'screenshot' | 'session-snapshot' | 'slo' | 'trace' | 'audit' | 'custom';
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: 'sha256';
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: 'audit' | 'trace';
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 = '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';
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, 'pass'>;
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: 'none' | 'redacted';
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: 'file';
158
+ kind: "file";
159
159
  label?: string;
160
160
  } | (S3Options & {
161
161
  bucket?: string;
162
- client?: Pick<S3Client, 'file'>;
162
+ client?: Pick<S3Client, "file">;
163
163
  id?: string;
164
164
  includeArtifacts?: boolean;
165
165
  keyPrefix?: string;
166
- kind: 's3';
166
+ kind: "s3";
167
167
  label?: string;
168
168
  }) | {
169
169
  database?: Database;
170
170
  id?: string;
171
- kind: 'sqlite';
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: 'postgres';
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: 'webhook';
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['kind'];
197
+ destinationKind: VoiceObservabilityExportDeliveryDestination["kind"];
198
198
  error?: string;
199
199
  label: string;
200
200
  manifestBytes: number;
201
201
  schema: VoiceObservabilityExportSchema;
202
- status: 'delivered' | 'failed';
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['summary'];
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 = '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';
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, 'pass'>;
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['kind'][];
289
+ requiredDestinationKinds?: VoiceObservabilityExportDeliveryDestination["kind"][];
290
290
  };
291
291
  export type VoiceObservabilityExportDeliveryAssertionReport = {
292
292
  delivered: number;
293
293
  destinationIds: string[];
294
- destinationKinds: VoiceObservabilityExportDeliveryDestination['kind'][];
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: 'records';
333
+ kind: "records";
334
334
  manifest?: unknown;
335
335
  } | {
336
336
  directory: string;
337
- kind: 'file';
337
+ kind: "file";
338
338
  receiptDirectory?: string;
339
339
  runId: string;
340
340
  } | (S3Options & {
341
- client?: Pick<S3Client, 'file'>;
341
+ client?: Pick<S3Client, "file">;
342
342
  keyPrefix?: string;
343
- kind: 's3';
343
+ kind: "s3";
344
344
  runId: string;
345
345
  }) | {
346
346
  database?: Database;
347
- kind: 'sqlite';
347
+ kind: "sqlite";
348
348
  path?: string;
349
349
  runId: string;
350
350
  tableName?: string;
351
351
  } | {
352
352
  connectionString?: string;
353
- kind: 'postgres';
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 | 'sha256';
377
+ checksum?: false | "sha256";
378
378
  maxAgeMs?: number;
379
- missingSeverity?: Exclude<VoiceObservabilityExportStatus, 'pass'>;
379
+ missingSeverity?: Exclude<VoiceObservabilityExportStatus, "pass">;
380
380
  now?: number;
381
- staleSeverity?: Exclude<VoiceObservabilityExportStatus, 'pass'>;
381
+ staleSeverity?: Exclude<VoiceObservabilityExportStatus, "pass">;
382
382
  };
383
383
  audit?: VoiceAuditEventStore;
384
384
  auditDeliveries?: VoiceAuditSinkDeliveryRecord[] | VoiceAuditSinkDeliveryStore;
@@ -1,5 +1,5 @@
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 & {});
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?: 'gpt-4o-mini-tts' | 'tts-1' | 'tts-1-hd' | (string & {});
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 'elysia';
2
- import { type VoiceDeliveryRuntime, type VoiceDeliveryRuntimeReport } from './deliveryRuntime';
3
- import { type VoiceProductionReadinessReport, type VoiceProductionReadinessStatus } from './productionReadiness';
4
- import type { VoiceProofPackRefreshStatus } from './proofPack';
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['links'];
32
+ links?: VoiceOperationalStatusReport["links"];
33
33
  productionReadiness?: VoiceOperationalStatusValue<VoiceProductionReadinessReport>;
34
34
  proofPack?: VoiceOperationalStatusValue<VoiceProofPackRefreshStatus>;
35
35
  };
@@ -1,11 +1,11 @@
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';
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['type'];
54
+ type: StoredVoiceTraceEvent["type"];
55
55
  turnId?: string;
56
56
  };
57
- export type VoiceOperationsRecordProviderDecisionRecoveryStatus = 'degraded' | 'failed' | 'none' | 'recovered' | 'selected';
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 = 'degraded' | 'failed' | 'healthy' | 'recovered';
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, 'sessionId'> & {
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 './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';
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: 'created' | 'assigned' | 'started' | 'claimed' | 'heartbeat' | 'failed' | 'dead-lettered' | 'policy-applied' | 'sla-breached' | 'completed' | 'reopened' | 'requeued';
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: 'session' | 'review' | 'task' | 'event';
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['sourceType'];
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 = 'fresh' | 'aging' | 'due-soon' | 'overdue' | 'stale';
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 = 'call.completed' | 'review.saved' | 'task.created' | 'task.updated' | 'task.sla_breached';
164
+ export type VoiceIntegrationEventType = "call.completed" | "review.saved" | "task.created" | "task.updated" | "task.sla_breached";
165
165
  export type VoiceOpsSLABreachPolicy = {
166
- action?: 'event' | 'event-and-task' | 'task';
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 = 'pending' | 'delivered' | 'failed' | 'skipped';
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 'elysia';
2
- import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from './audit';
3
- import { type VoiceTraceEventStore } from './trace';
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 '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';
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;
@@ -1,5 +1,5 @@
1
- import type { VoiceOpsDispositionTaskPolicies, VoiceOpsTaskAssignmentRules, VoiceOpsSLABreachPolicy } from './ops';
2
- export type VoiceOpsPresetName = 'support-default' | 'sales-default' | 'collections-default';
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;