@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
@@ -1066,10 +1066,7 @@ var createRiskyTurnCorrectionHandler = (options = {}) => {
1066
1066
  if (averageConfidence !== undefined && averageConfidence > maxAverageConfidence) {
1067
1067
  return;
1068
1068
  }
1069
- const result = applyRiskTieredPhraseHintCorrections(text, [
1070
- ...phraseHints,
1071
- ...lexiconToPhraseHints(lexicon)
1072
- ], { riskTier });
1069
+ const result = applyRiskTieredPhraseHintCorrections(text, [...phraseHints, ...lexiconToPhraseHints(lexicon)], { riskTier });
1073
1070
  if (!result.changed) {
1074
1071
  return;
1075
1072
  }
@@ -4198,7 +4195,10 @@ var FIXTURE_DIR_CANDIDATES = [
4198
4195
  resolve(import.meta.dir, "..", "..", "..", "fixtures"),
4199
4196
  resolve(import.meta.dir, "..", "..", "..", "..", "fixtures")
4200
4197
  ];
4201
- var EXTERNAL_FIXTURE_ENV_KEYS = ["VOICE_FIXTURE_DIR", "VOICE_FIXTURE_DIRS"];
4198
+ var EXTERNAL_FIXTURE_ENV_KEYS = [
4199
+ "VOICE_FIXTURE_DIR",
4200
+ "VOICE_FIXTURE_DIRS"
4201
+ ];
4202
4202
  var resolveFixtureDirectory = async () => {
4203
4203
  for (const candidate of FIXTURE_DIR_CANDIDATES) {
4204
4204
  if (await Bun.file(resolve(candidate, "manifest.json")).exists()) {
@@ -4345,11 +4345,7 @@ var createMultiSpeakerVoiceTestFixtures = (fixtures, options = {}) => {
4345
4345
  const speakerB = requireFixture(fixtures, "traveled-back-route-clean");
4346
4346
  const speakerC = requireFixture(fixtures, "rainstorms-noisy");
4347
4347
  const silence = createSilenceBytes(speakerA.format.sampleRateHz, silenceMs);
4348
- const handoff = concatAudioChunks([
4349
- speakerA.audio,
4350
- silence,
4351
- speakerB.audio
4352
- ]);
4348
+ const handoff = concatAudioChunks([speakerA.audio, silence, speakerB.audio]);
4353
4349
  const threeTurn = concatAudioChunks([
4354
4350
  speakerA.audio,
4355
4351
  silence,
@@ -4357,7 +4353,12 @@ var createMultiSpeakerVoiceTestFixtures = (fixtures, options = {}) => {
4357
4353
  silence,
4358
4354
  speakerC.audio
4359
4355
  ]);
4360
- const buildTags = (...tags) => ["multi-speaker", "handoff", "synthetic", ...tags];
4356
+ const buildTags = (...tags) => [
4357
+ "multi-speaker",
4358
+ "handoff",
4359
+ "synthetic",
4360
+ ...tags
4361
+ ];
4361
4362
  return [
4362
4363
  {
4363
4364
  ...speakerA,
@@ -4367,7 +4368,10 @@ var createMultiSpeakerVoiceTestFixtures = (fixtures, options = {}) => {
4367
4368
  { speaker: "speaker-a", text: speakerA.expectedText },
4368
4369
  { speaker: "speaker-b", text: speakerB.expectedText }
4369
4370
  ],
4370
- expectedTerms: Array.from(new Set([...speakerA.expectedTerms ?? [], ...speakerB.expectedTerms ?? []])),
4371
+ expectedTerms: Array.from(new Set([
4372
+ ...speakerA.expectedTerms ?? [],
4373
+ ...speakerB.expectedTerms ?? []
4374
+ ])),
4371
4375
  expectedText: `${speakerA.expectedText} ${speakerB.expectedText}`.trim(),
4372
4376
  expectedTurnTexts: [speakerA.expectedText, speakerB.expectedText],
4373
4377
  id: "multi-speaker-handoff-clean",
@@ -4389,7 +4393,11 @@ var createMultiSpeakerVoiceTestFixtures = (fixtures, options = {}) => {
4389
4393
  ...speakerC.expectedTerms ?? []
4390
4394
  ])),
4391
4395
  expectedText: `${speakerA.expectedText} ${speakerB.expectedText} ${speakerC.expectedText}`.trim(),
4392
- expectedTurnTexts: [speakerA.expectedText, speakerB.expectedText, speakerC.expectedText],
4396
+ expectedTurnTexts: [
4397
+ speakerA.expectedText,
4398
+ speakerB.expectedText,
4399
+ speakerC.expectedText
4400
+ ],
4393
4401
  id: "multi-speaker-handoff-three",
4394
4402
  tags: buildTags("challenging", "noisy"),
4395
4403
  title: "Synthetic three-speaker handoff (A-B-C)"
@@ -9795,8 +9803,12 @@ var redactVoiceTraceEvent = (event, options = {}) => {
9795
9803
  const resolved = resolveVoiceTraceRedactionOptions(options);
9796
9804
  return {
9797
9805
  ...event,
9798
- metadata: redactTraceValue(event.metadata, resolved, ["metadata"]),
9799
- payload: redactTraceValue(event.payload, resolved, ["payload"])
9806
+ metadata: redactTraceValue(event.metadata, resolved, [
9807
+ "metadata"
9808
+ ]),
9809
+ payload: redactTraceValue(event.payload, resolved, [
9810
+ "payload"
9811
+ ])
9800
9812
  };
9801
9813
  };
9802
9814
  var redactVoiceTraceEvents = (events, options = {}) => events.map((event) => redactVoiceTraceEvent(event, options));
@@ -10478,7 +10490,10 @@ var summarizeVoiceSessions = async (options = {}) => {
10478
10490
  const events = options.events ?? await options.store?.list() ?? [];
10479
10491
  const grouped = new Map;
10480
10492
  for (const event of events) {
10481
- grouped.set(event.sessionId, [...grouped.get(event.sessionId) ?? [], event]);
10493
+ grouped.set(event.sessionId, [
10494
+ ...grouped.get(event.sessionId) ?? [],
10495
+ event
10496
+ ]);
10482
10497
  }
10483
10498
  const sessions = [...grouped.entries()].map(([sessionId, sessionEvents]) => {
10484
10499
  const sorted = filterVoiceTraceEvents(sessionEvents);
@@ -10776,7 +10791,10 @@ var summarizeVoiceTraceTimeline = (events, options = {}) => {
10776
10791
  const source = options.redact ? redactVoiceTraceEvents(events, options.redact) : events;
10777
10792
  const grouped = new Map;
10778
10793
  for (const event of filterVoiceTraceEvents(source)) {
10779
- grouped.set(event.sessionId, [...grouped.get(event.sessionId) ?? [], event]);
10794
+ grouped.set(event.sessionId, [
10795
+ ...grouped.get(event.sessionId) ?? [],
10796
+ event
10797
+ ]);
10780
10798
  }
10781
10799
  const sessions = [...grouped.entries()].map(([sessionId, sessionEvents]) => {
10782
10800
  const sorted = filterVoiceTraceEvents(sessionEvents);
@@ -12091,7 +12109,11 @@ var resolveVoiceTelephonyOutcome = (event, policyInput = {}) => {
12091
12109
  }
12092
12110
  if (target) {
12093
12111
  return {
12094
- ...buildDecision("transfer", { event, policy, source: "explicit-target" }),
12112
+ ...buildDecision("transfer", {
12113
+ event,
12114
+ policy,
12115
+ source: "explicit-target"
12116
+ }),
12095
12117
  confidence: "medium"
12096
12118
  };
12097
12119
  }
@@ -12273,7 +12295,12 @@ var parseVoiceTelephonyWebhookEvent = (input) => {
12273
12295
  "hangupCauseCode"
12274
12296
  ]);
12275
12297
  const from = firstString3(payload, ["From", "from", "caller_id", "callerId"]);
12276
- const to = firstString3(payload, ["To", "to", "called_number", "calledNumber"]);
12298
+ const to = firstString3(payload, [
12299
+ "To",
12300
+ "to",
12301
+ "called_number",
12302
+ "calledNumber"
12303
+ ]);
12277
12304
  const target = firstString3(payload, [
12278
12305
  "transferTarget",
12279
12306
  "TransferTarget",
@@ -12536,7 +12563,9 @@ var buildTwilioVoiceSetupStatus = async (options, input) => {
12536
12563
  const warnings = [
12537
12564
  ...stream.startsWith("wss://") ? [] : ["Twilio media streams should use wss:// in production."],
12538
12565
  ...signingConfigured ? [] : ["Webhook signature verification is not configured."],
12539
- ...verificationUrl || !signingConfigured ? [] : ["Webhook signing is configured without an explicit verification URL."]
12566
+ ...verificationUrl || !signingConfigured ? [] : [
12567
+ "Webhook signing is configured without an explicit verification URL."
12568
+ ]
12540
12569
  ];
12541
12570
  return {
12542
12571
  generatedAt: Date.now(),
@@ -1,13 +1,13 @@
1
- import type { VoiceIOProviderRouterEvent } from '../providerAdapters';
2
- export type VoiceIOProviderFailureSimulationMode = 'failure' | 'recovery';
3
- export type VoiceIOProviderFailureSimulationKind = 'stt' | 'tts';
4
- export type VoiceIOProviderFailureSimulationOperation = 'open' | 'send';
1
+ import type { VoiceIOProviderRouterEvent } from "../providerAdapters";
2
+ export type VoiceIOProviderFailureSimulationMode = "failure" | "recovery";
3
+ export type VoiceIOProviderFailureSimulationKind = "stt" | "tts";
4
+ export type VoiceIOProviderFailureSimulationOperation = "open" | "send";
5
5
  export type VoiceIOProviderFailureSimulationResult<TProvider extends string = string> = {
6
6
  fallbackProvider?: TProvider;
7
7
  mode: VoiceIOProviderFailureSimulationMode;
8
8
  provider: TProvider;
9
9
  sessionId: string;
10
- status: 'simulated';
10
+ status: "simulated";
11
11
  suppressedUntil?: number;
12
12
  };
13
13
  export type VoiceIOProviderFailureSimulatorOptions<TProvider extends string = string> = {
@@ -1,7 +1,7 @@
1
- import type { VoiceAgentModelInput, VoiceAgentModelOutput } from '../agent';
2
- import type { VoiceSessionRecord } from '../types';
3
- import type { VoiceProviderRouterEvent, VoiceProviderRouterHealthOptions } from '../modelAdapters';
4
- export type VoiceProviderFailureSimulationMode = 'failure' | 'recovery';
1
+ import type { VoiceAgentModelInput, VoiceAgentModelOutput } from "../agent";
2
+ import type { VoiceSessionRecord } from "../types";
3
+ import type { VoiceProviderRouterEvent, VoiceProviderRouterHealthOptions } from "../modelAdapters";
4
+ export type VoiceProviderFailureSimulationMode = "failure" | "recovery";
5
5
  export type VoiceProviderFailureSimulationContext<TProvider extends string = string> = {
6
6
  query: {
7
7
  provider: TProvider;
@@ -15,7 +15,7 @@ export type VoiceProviderFailureSimulationResult<TProvider extends string = stri
15
15
  replayHref?: string;
16
16
  result: VoiceAgentModelOutput<TResult>;
17
17
  sessionId: string;
18
- status: 'simulated';
18
+ status: "simulated";
19
19
  turnId: string;
20
20
  };
21
21
  type ProviderListResolver<TContext, TSession extends VoiceSessionRecord, TProvider extends string> = readonly TProvider[] | ((input: VoiceAgentModelInput<TContext, TSession>) => readonly TProvider[] | Promise<readonly TProvider[]>);
@@ -1,5 +1,5 @@
1
- import type { VoiceCallDisposition, VoiceServerMessage } from '../types';
2
- type ReviewTimelineSource = 'benchmark' | 'stt' | 'turn' | 'twilio';
1
+ import type { VoiceCallDisposition, VoiceServerMessage } from "../types";
2
+ type ReviewTimelineSource = "benchmark" | "stt" | "turn" | "twilio";
3
3
  export type VoiceCallReviewTimelineEvent = {
4
4
  atMs: number;
5
5
  event: string;
@@ -113,7 +113,7 @@ export type VoiceCallReviewRecorder = {
113
113
  recordTwilioInbound: (input: {
114
114
  bytes?: number;
115
115
  chunkDurationMs?: number;
116
- event: 'connected' | 'mark' | 'media' | 'start' | 'stop';
116
+ event: "connected" | "mark" | "media" | "start" | "stop";
117
117
  name?: string;
118
118
  reason?: string;
119
119
  text?: string;
@@ -122,7 +122,7 @@ export type VoiceCallReviewRecorder = {
122
122
  recordTwilioOutbound: (input: {
123
123
  bytes?: number;
124
124
  chunkDurationMs?: number;
125
- event: 'clear' | 'mark' | 'media';
125
+ event: "clear" | "mark" | "media";
126
126
  name?: string;
127
127
  reason?: string;
128
128
  text?: string;
@@ -1,6 +1,6 @@
1
- import type { STTAdapter, VoiceAudioConditioningConfig, VoicePhraseHint, VoiceSTTFallbackConfig, VoiceSTTLifecycle, VoiceTurnCorrectionHandler, VoiceTurnProfile, VoiceTranscriptQuality } from '../types';
2
- import { type VoiceTranscriptAccuracy } from './accuracy';
3
- import type { VoiceTestFixture } from './fixtures';
1
+ import type { STTAdapter, VoiceAudioConditioningConfig, VoicePhraseHint, VoiceSTTFallbackConfig, VoiceSTTLifecycle, VoiceTurnCorrectionHandler, VoiceTurnProfile, VoiceTranscriptQuality } from "../types";
2
+ import { type VoiceTranscriptAccuracy } from "./accuracy";
3
+ import type { VoiceTestFixture } from "./fixtures";
4
4
  export type VoiceSessionBenchmarkScenario = VoiceTestFixture & {
5
5
  expectedTurnTexts: string[];
6
6
  phraseHints?: VoicePhraseHint[];
@@ -1,6 +1,6 @@
1
- import { type VoiceTranscriptAccuracy } from './accuracy';
2
- import type { STTAdapter, STTAdapterOpenOptions, VoiceCloseEvent, VoiceEndOfTurnEvent, VoiceErrorEvent, VoiceFinalEvent, VoicePartialEvent } from '../types';
3
- import type { VoiceTestFixture } from './fixtures';
1
+ import { type VoiceTranscriptAccuracy } from "./accuracy";
2
+ import type { STTAdapter, STTAdapterOpenOptions, VoiceCloseEvent, VoiceEndOfTurnEvent, VoiceErrorEvent, VoiceFinalEvent, VoicePartialEvent } from "../types";
3
+ import type { VoiceTestFixture } from "./fixtures";
4
4
  export type VoiceSTTAdapterHarnessOptions = {
5
5
  chunkDurationMs?: number;
6
6
  idleTimeoutMs?: number;
@@ -1,5 +1,5 @@
1
- import { type VoiceOperationsRecord } from '../operationsRecord';
2
- import { type VoiceTraceEventStore } from '../trace';
1
+ import { type VoiceOperationsRecord } from "../operationsRecord";
2
+ import { type VoiceTraceEventStore } from "../trace";
3
3
  export type VoiceTelephonyBenchmarkScenario = {
4
4
  expectClear: boolean;
5
5
  expectMark: boolean;
@@ -62,7 +62,7 @@ export type VoiceTelephonyMediaOperationsSmokeReport = {
62
62
  sentEvents: string[];
63
63
  sessionId: string;
64
64
  streamSid: string;
65
- telephonyMedia: VoiceOperationsRecord['telephonyMedia'];
65
+ telephonyMedia: VoiceOperationsRecord["telephonyMedia"];
66
66
  };
67
67
  type VoiceTelephonyBenchmarkOptions = {
68
68
  timeoutMs?: number;
@@ -1,4 +1,4 @@
1
- import type { AudioFormat, RealtimeAdapter, RealtimeAdapterOpenOptions, TTSAdapter, TTSAdapterOpenOptions } from '../types';
1
+ import type { AudioFormat, RealtimeAdapter, RealtimeAdapterOpenOptions, TTSAdapter, TTSAdapterOpenOptions } from "../types";
2
2
  export type VoiceTTSBenchmarkFixture = {
3
3
  id: string;
4
4
  tags?: string[];
@@ -1,13 +1,13 @@
1
- import { Elysia } from 'elysia';
2
- import type { VoiceAgentTool } from './agent';
3
- import { type VoiceToolRuntimeOptions } from './toolRuntime';
4
- import type { VoiceSessionRecord, VoiceTurnRecord } from './types';
1
+ import { Elysia } from "elysia";
2
+ import type { VoiceAgentTool } from "./agent";
3
+ import { type VoiceToolRuntimeOptions } from "./toolRuntime";
4
+ import type { VoiceSessionRecord, VoiceTurnRecord } from "./types";
5
5
  export type VoiceToolContractExpectation = {
6
6
  expectedAttempts?: number;
7
7
  expectedErrorIncludes?: string;
8
8
  expectedResult?: unknown;
9
9
  expectIdempotent?: boolean;
10
- expectStatus?: 'error' | 'ok';
10
+ expectStatus?: "error" | "ok";
11
11
  expectTimedOut?: boolean;
12
12
  maxElapsedMs?: number;
13
13
  };
@@ -45,7 +45,7 @@ export type VoiceToolContractCaseReport = {
45
45
  operationsRecordHref?: string;
46
46
  pass: boolean;
47
47
  sessionId: string;
48
- status: 'error' | 'ok';
48
+ status: "error" | "ok";
49
49
  timedOut: boolean;
50
50
  };
51
51
  export type VoiceToolContractReport = {
@@ -61,7 +61,7 @@ export type VoiceToolContractSuiteReport = {
61
61
  contracts: VoiceToolContractReport[];
62
62
  failed: number;
63
63
  passed: number;
64
- status: 'fail' | 'pass';
64
+ status: "fail" | "pass";
65
65
  total: number;
66
66
  };
67
67
  export type VoiceToolContractAssertionInput = {
@@ -71,12 +71,12 @@ export type VoiceToolContractAssertionInput = {
71
71
  minCases?: number;
72
72
  minContracts?: number;
73
73
  requireOperationRecordHrefs?: boolean;
74
- requiredCaseStatuses?: Array<'error' | 'ok'>;
74
+ requiredCaseStatuses?: Array<"error" | "ok">;
75
75
  requiredContractIds?: string[];
76
76
  requiredToolNames?: string[];
77
77
  };
78
78
  export type VoiceToolContractAssertionReport = {
79
- caseStatuses: Array<'error' | 'ok'>;
79
+ caseStatuses: Array<"error" | "ok">;
80
80
  cases: number;
81
81
  contractIds: string[];
82
82
  failed: number;
@@ -85,7 +85,7 @@ export type VoiceToolContractAssertionReport = {
85
85
  missingOperationsRecordHrefs: number;
86
86
  ok: boolean;
87
87
  passed: number;
88
- status: VoiceToolContractSuiteReport['status'];
88
+ status: VoiceToolContractSuiteReport["status"];
89
89
  timedOut: number;
90
90
  toolNames: string[];
91
91
  total: number;
@@ -1,6 +1,6 @@
1
- import type { VoiceAgentTool, VoiceAgentToolResult } from './agent';
2
- import type { VoiceSessionHandle, VoiceSessionRecord, VoiceTurnRecord } from './types';
3
- import type { VoiceTraceEventStore } from './trace';
1
+ import type { VoiceAgentTool, VoiceAgentToolResult } from "./agent";
2
+ import type { VoiceSessionHandle, VoiceSessionRecord, VoiceTurnRecord } from "./types";
3
+ import type { VoiceTraceEventStore } from "./trace";
4
4
  export type VoiceToolRetryDelay = number | ((input: {
5
5
  attempt: number;
6
6
  error: unknown;
package/dist/trace.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { S3Client, S3Options } from 'bun';
2
- export type VoiceTraceEventType = 'assistant.guardrail' | 'assistant.memory' | 'assistant.run' | 'agent.context' | 'agent.handoff' | 'agent.model' | 'agent.result' | 'agent.tool' | 'call.handoff' | 'call.lifecycle' | 'client.barge_in' | 'client.browser_media' | 'client.live_latency' | 'client.reconnect' | 'client.telephony_media' | 'operator.action' | 'provider.decision' | 'session.error' | 'turn.assistant' | 'turn.committed' | 'turn.cost' | 'turn_latency.stage' | 'turn.transcript' | 'workflow.contract';
1
+ import type { S3Client, S3Options } from "bun";
2
+ export type VoiceTraceEventType = "assistant.guardrail" | "assistant.memory" | "assistant.run" | "agent.context" | "agent.handoff" | "agent.model" | "agent.result" | "agent.tool" | "call.handoff" | "call.lifecycle" | "client.barge_in" | "client.browser_media" | "client.live_latency" | "client.reconnect" | "client.telephony_media" | "operator.action" | "provider.decision" | "session.error" | "turn.assistant" | "turn.committed" | "turn.cost" | "turn_latency.stage" | "turn.transcript" | "workflow.contract";
3
3
  export type VoiceTraceEvent<TPayload extends Record<string, unknown> = Record<string, unknown>> = {
4
4
  at: number;
5
5
  id?: string;
@@ -16,7 +16,7 @@ export type StoredVoiceTraceEvent<TPayload extends Record<string, unknown> = Rec
16
16
  };
17
17
  export type VoiceTraceEventFilter = {
18
18
  limit?: number;
19
- readWindow?: 'recent';
19
+ readWindow?: "recent";
20
20
  scenarioId?: string;
21
21
  sessionId?: string;
22
22
  traceId?: string;
@@ -35,7 +35,7 @@ export type VoiceProofTraceStoreOptions<TEvent extends StoredVoiceTraceEvent = S
35
35
  proofStore?: VoiceTraceEventStore<TEvent>;
36
36
  scope?: VoiceScopedTraceEventStoreOptions;
37
37
  };
38
- export type VoiceTracePruneFilter = Omit<VoiceTraceEventFilter, 'limit'>;
38
+ export type VoiceTracePruneFilter = Omit<VoiceTraceEventFilter, "limit">;
39
39
  export type VoiceTracePruneOptions = {
40
40
  before?: number;
41
41
  beforeOrAt?: number;
@@ -51,8 +51,8 @@ export type VoiceTracePruneResult = {
51
51
  dryRun: boolean;
52
52
  scannedCount: number;
53
53
  };
54
- export type VoiceTraceSinkDeliveryStatus = 'delivered' | 'failed' | 'skipped';
55
- export type VoiceTraceSinkDeliveryQueueStatus = VoiceTraceSinkDeliveryStatus | 'pending';
54
+ export type VoiceTraceSinkDeliveryStatus = "delivered" | "failed" | "skipped";
55
+ export type VoiceTraceSinkDeliveryQueueStatus = VoiceTraceSinkDeliveryStatus | "pending";
56
56
  export type VoiceTraceSinkDeliveryResult = {
57
57
  attempts: number;
58
58
  deliveredAt?: number;
@@ -103,7 +103,7 @@ export type VoiceTraceHTTPSinkOptions<TBody extends Record<string, unknown> = Re
103
103
  headers?: Record<string, string>;
104
104
  id: string;
105
105
  kind?: string;
106
- method?: 'POST' | 'PUT' | 'PATCH';
106
+ method?: "POST" | "PUT" | "PATCH";
107
107
  retries?: number;
108
108
  signingSecret?: string;
109
109
  timeoutMs?: number;
@@ -112,7 +112,7 @@ export type VoiceTraceHTTPSinkOptions<TBody extends Record<string, unknown> = Re
112
112
  export type VoiceS3TraceSinkFile = {
113
113
  write: (data: string, options?: BlobPropertyBag) => Promise<number> | number;
114
114
  };
115
- export type VoiceS3TraceSinkClient = Pick<S3Client, 'file'>;
115
+ export type VoiceS3TraceSinkClient = Pick<S3Client, "file">;
116
116
  export type VoiceTraceS3SinkOptions<TBody extends Record<string, unknown> = Record<string, unknown>> = S3Options & {
117
117
  body?: (input: {
118
118
  events: StoredVoiceTraceEvent[];
@@ -166,7 +166,7 @@ export type VoiceTraceSummary = {
166
166
  transcriptCount: number;
167
167
  turnCount: number;
168
168
  };
169
- export type VoiceTraceIssueSeverity = 'error' | 'warning';
169
+ export type VoiceTraceIssueSeverity = "error" | "warning";
170
170
  export type VoiceTraceIssue = {
171
171
  code: string;
172
172
  message: string;
@@ -200,7 +200,7 @@ export type VoiceTraceRedactionOptions = {
200
200
  textKeys?: string[];
201
201
  };
202
202
  export type VoiceTraceRedactionConfig = boolean | VoiceTraceRedactionOptions;
203
- export type VoiceResolvedTraceRedactionOptions = Required<Pick<VoiceTraceRedactionOptions, 'redactEmails' | 'redactPhoneNumbers' | 'redactText'>> & {
203
+ export type VoiceResolvedTraceRedactionOptions = Required<Pick<VoiceTraceRedactionOptions, "redactEmails" | "redactPhoneNumbers" | "redactText">> & {
204
204
  keys: string[];
205
205
  replacement: VoiceTraceRedactionReplacement;
206
206
  textKeys: string[];
@@ -1,6 +1,6 @@
1
- import { Elysia } from 'elysia';
2
- import { type VoiceTraceSinkDeliveryQueueSummary, type VoiceTraceSinkDeliveryWorkerResult } from './queue';
3
- import type { VoiceTraceSinkDeliveryQueueStatus, VoiceTraceSinkDeliveryRecord, VoiceTraceSinkDeliveryStore } from './trace';
1
+ import { Elysia } from "elysia";
2
+ import { type VoiceTraceSinkDeliveryQueueSummary, type VoiceTraceSinkDeliveryWorkerResult } from "./queue";
3
+ import type { VoiceTraceSinkDeliveryQueueStatus, VoiceTraceSinkDeliveryRecord, VoiceTraceSinkDeliveryStore } from "./trace";
4
4
  export type VoiceTraceDeliveryReport = {
5
5
  checkedAt: number;
6
6
  deliveries: VoiceTraceSinkDeliveryRecord[];
@@ -16,7 +16,7 @@ export type VoiceTraceDeliveryDrainReport = VoiceTraceSinkDeliveryWorkerResult &
16
16
  export type VoiceTraceDeliveryFilter = {
17
17
  limit?: number;
18
18
  q?: string;
19
- status?: VoiceTraceSinkDeliveryQueueStatus | 'all';
19
+ status?: VoiceTraceSinkDeliveryQueueStatus | "all";
20
20
  };
21
21
  export type VoiceTraceDeliveryRoutesOptions = {
22
22
  deadLetters?: VoiceTraceSinkDeliveryStore;
@@ -1,5 +1,5 @@
1
- import { Elysia } from 'elysia';
2
- import { evaluateVoiceTrace, type StoredVoiceTraceEvent, type VoiceTraceEvaluationOptions, type VoiceTraceEventStore, type VoiceTraceRedactionConfig, type VoiceTraceSummary } from './trace';
1
+ import { Elysia } from "elysia";
2
+ import { evaluateVoiceTrace, type StoredVoiceTraceEvent, type VoiceTraceEvaluationOptions, type VoiceTraceEventStore, type VoiceTraceRedactionConfig, type VoiceTraceSummary } from "./trace";
3
3
  export type VoiceTraceTimelineEvent = {
4
4
  at: number;
5
5
  elapsedMs?: number;
@@ -10,7 +10,7 @@ export type VoiceTraceTimelineEvent = {
10
10
  provider?: string;
11
11
  status?: string;
12
12
  turnId?: string;
13
- type: StoredVoiceTraceEvent['type'];
13
+ type: StoredVoiceTraceEvent["type"];
14
14
  };
15
15
  export type VoiceTraceTimelineProviderSummary = {
16
16
  averageElapsedMs?: number;
@@ -31,7 +31,7 @@ export type VoiceTraceTimelineSession = {
31
31
  providers: VoiceTraceTimelineProviderSummary[];
32
32
  sessionId: string;
33
33
  startedAt?: number;
34
- status: 'failed' | 'healthy' | 'warning';
34
+ status: "failed" | "healthy" | "warning";
35
35
  summary: VoiceTraceSummary;
36
36
  };
37
37
  export type VoiceTraceTimelineReport = {
@@ -1,4 +1,4 @@
1
- import type { AudioChunk, Transcript } from './types';
1
+ import type { AudioChunk, Transcript } from "./types";
2
2
  export declare const DEFAULT_SILENCE_MS = 700;
3
3
  export declare const DEFAULT_SPEECH_THRESHOLD = 0.015;
4
4
  export declare const measureAudioLevel: (audio: AudioChunk) => number;
@@ -1,7 +1,7 @@
1
- import { Elysia } from 'elysia';
2
- import type { VoiceTraceEventStore } from './trace';
3
- import type { VoiceSessionRecord, VoiceSessionStore } from './types';
4
- export type VoiceTurnLatencyStatus = 'pass' | 'warn' | 'fail' | 'empty';
1
+ import { Elysia } from "elysia";
2
+ import type { VoiceTraceEventStore } from "./trace";
3
+ import type { VoiceSessionRecord, VoiceSessionStore } from "./types";
4
+ export type VoiceTurnLatencyStatus = "pass" | "warn" | "fail" | "empty";
5
5
  export type VoiceTurnLatencyStage = {
6
6
  label: string;
7
7
  valueMs?: number;
@@ -1,5 +1,5 @@
1
- import type { VoiceResolvedTurnDetectionConfig, VoiceTurnDetectionConfig, VoiceTurnQualityProfile, VoiceTurnProfile } from './types';
2
- export declare const TURN_PROFILE_DEFAULTS: Record<VoiceTurnProfile, Omit<VoiceResolvedTurnDetectionConfig, 'profile'>>;
1
+ import type { VoiceResolvedTurnDetectionConfig, VoiceTurnDetectionConfig, VoiceTurnQualityProfile, VoiceTurnProfile } from "./types";
2
+ export declare const TURN_PROFILE_DEFAULTS: Record<VoiceTurnProfile, Omit<VoiceResolvedTurnDetectionConfig, "profile">>;
3
3
  export declare const QUALITY_PROFILE_DEFAULTS: Record<VoiceTurnQualityProfile, Partial<VoiceResolvedTurnDetectionConfig>>;
4
4
  export declare const DEFAULT_TURN_PROFILE: VoiceTurnProfile;
5
5
  export declare const DEFAULT_QUALITY_PROFILE: VoiceTurnQualityProfile;
@@ -1,6 +1,6 @@
1
- import { Elysia } from 'elysia';
2
- import type { VoiceSessionRecord, VoiceSessionStore, VoiceTranscriptQuality } from './types';
3
- export type VoiceTurnQualityStatus = 'pass' | 'warn' | 'fail' | 'unknown';
1
+ import { Elysia } from "elysia";
2
+ import type { VoiceSessionRecord, VoiceSessionStore, VoiceTranscriptQuality } from "./types";
3
+ export type VoiceTurnQualityStatus = "pass" | "warn" | "fail" | "unknown";
4
4
  export type VoiceTurnQualityItem = {
5
5
  averageConfidence?: number;
6
6
  committedAt: number;
@@ -15,7 +15,7 @@ export type VoiceTurnQualityItem = {
15
15
  partialTranscriptCount: number;
16
16
  selectedTranscriptCount: number;
17
17
  sessionId: string;
18
- source?: VoiceTranscriptQuality['source'];
18
+ source?: VoiceTranscriptQuality["source"];
19
19
  status: VoiceTurnQualityStatus;
20
20
  text: string;
21
21
  turnId: string;