@absolutejs/voice 0.0.22-beta.534 → 0.0.22-beta.535

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 (223) hide show
  1. package/dist/angular/index.js +347 -347
  2. package/dist/angular/voice-cost-dashboard.service.d.ts +1 -1
  3. package/dist/angular/voice-replay-timeline.service.d.ts +1 -1
  4. package/dist/client/agentSquadStatusWidget.d.ts +3 -3
  5. package/dist/client/browserVoiceSupport.d.ts +1 -1
  6. package/dist/client/callDebugger.d.ts +2 -2
  7. package/dist/client/callDebuggerWidget.d.ts +3 -3
  8. package/dist/client/campaignDialerProof.d.ts +4 -4
  9. package/dist/client/deliveryRuntime.d.ts +4 -4
  10. package/dist/client/deliveryRuntimeWidget.d.ts +3 -3
  11. package/dist/client/htmxAttributes.d.ts +1 -5
  12. package/dist/client/htmxBootstrap.js +82 -82
  13. package/dist/client/htmxDashboardRenderers.d.ts +17 -17
  14. package/dist/client/index.js +2478 -2484
  15. package/dist/client/liveOps.d.ts +2 -2
  16. package/dist/client/liveOpsWidget.d.ts +3 -3
  17. package/dist/client/opsActionCenter.d.ts +3 -3
  18. package/dist/client/opsActionCenterWidget.d.ts +3 -3
  19. package/dist/client/opsActionHistory.d.ts +2 -2
  20. package/dist/client/opsActionHistoryWidget.d.ts +2 -2
  21. package/dist/client/opsStatus.d.ts +2 -2
  22. package/dist/client/opsStatusWidget.d.ts +4 -4
  23. package/dist/client/platformCoverage.d.ts +2 -2
  24. package/dist/client/platformCoverageWidget.d.ts +3 -3
  25. package/dist/client/profileComparison.d.ts +2 -2
  26. package/dist/client/profileComparisonWidget.d.ts +3 -3
  27. package/dist/client/profileSwitchRecommendation.d.ts +2 -2
  28. package/dist/client/profileSwitchRecommendationWidget.d.ts +3 -3
  29. package/dist/client/proofTrends.d.ts +2 -2
  30. package/dist/client/proofTrendsWidget.d.ts +3 -3
  31. package/dist/client/providerCapabilities.d.ts +2 -2
  32. package/dist/client/providerCapabilitiesWidget.d.ts +3 -3
  33. package/dist/client/providerContracts.d.ts +2 -2
  34. package/dist/client/providerContractsWidget.d.ts +3 -3
  35. package/dist/client/providerSimulationControls.d.ts +1 -1
  36. package/dist/client/providerSimulationControlsWidget.d.ts +4 -4
  37. package/dist/client/providerStatus.d.ts +2 -2
  38. package/dist/client/providerStatusWidget.d.ts +3 -3
  39. package/dist/client/readinessFailures.d.ts +2 -2
  40. package/dist/client/readinessFailuresWidget.d.ts +3 -3
  41. package/dist/client/reconnectProfileEvidence.d.ts +2 -2
  42. package/dist/client/reconnectProfileEvidenceWidget.d.ts +3 -3
  43. package/dist/client/routingStatus.d.ts +2 -2
  44. package/dist/client/routingStatusWidget.d.ts +3 -3
  45. package/dist/client/sessionObservability.d.ts +2 -2
  46. package/dist/client/sessionObservabilityWidget.d.ts +3 -3
  47. package/dist/client/sessionSnapshot.d.ts +2 -2
  48. package/dist/client/sessionSnapshotWidget.d.ts +2 -2
  49. package/dist/client/traceTimeline.d.ts +2 -2
  50. package/dist/client/traceTimelineWidget.d.ts +3 -3
  51. package/dist/client/turnLatency.d.ts +4 -4
  52. package/dist/client/turnLatencyWidget.d.ts +3 -3
  53. package/dist/client/turnQuality.d.ts +2 -2
  54. package/dist/client/turnQualityWidget.d.ts +3 -3
  55. package/dist/client/workflowStatus.d.ts +2 -2
  56. package/dist/core/agent.d.ts +1 -1
  57. package/dist/core/agentSquadContract.d.ts +2 -2
  58. package/dist/core/agentState.d.ts +1 -1
  59. package/dist/core/aiScorecard.d.ts +1 -1
  60. package/dist/core/assistant.d.ts +1 -1
  61. package/dist/core/assistantHealth.d.ts +3 -3
  62. package/dist/core/assistantMemory.d.ts +7 -7
  63. package/dist/core/audioConditioning.d.ts +1 -1
  64. package/dist/core/audit.d.ts +6 -6
  65. package/dist/core/auditDeliveryRoutes.d.ts +7 -7
  66. package/dist/core/auditExport.d.ts +10 -10
  67. package/dist/core/auditRoutes.d.ts +5 -5
  68. package/dist/core/auditSinks.d.ts +7 -7
  69. package/dist/core/bargeInRoutes.d.ts +6 -6
  70. package/dist/core/bookingFlow.d.ts +1 -1
  71. package/dist/core/browserCallProfiles.d.ts +3 -3
  72. package/dist/core/browserMediaRoutes.d.ts +5 -5
  73. package/dist/core/callDebugger.d.ts +1 -1
  74. package/dist/core/callDisposition.d.ts +1 -1
  75. package/dist/core/callScorecard.d.ts +1 -1
  76. package/dist/core/campaign.d.ts +5 -5
  77. package/dist/core/campaignControls.d.ts +1 -1
  78. package/dist/core/campaignDialers.d.ts +4 -4
  79. package/dist/core/campaignTemplate.d.ts +1 -1
  80. package/dist/core/competitiveCoverage.d.ts +2 -2
  81. package/dist/core/conversationSimulator.d.ts +1 -1
  82. package/dist/core/correction.d.ts +1 -1
  83. package/dist/core/dataControl.d.ts +5 -5
  84. package/dist/core/deliveryRuntime.d.ts +7 -7
  85. package/dist/core/deliverySinkRoutes.d.ts +7 -7
  86. package/dist/core/demoReadyRoutes.d.ts +1 -1
  87. package/dist/core/dncRegistry.d.ts +1 -1
  88. package/dist/core/dtmfCollector.d.ts +1 -1
  89. package/dist/core/evalRoutes.d.ts +16 -16
  90. package/dist/core/fileStore.d.ts +18 -18
  91. package/dist/core/guardrails.d.ts +2 -2
  92. package/dist/core/handoff.d.ts +4 -4
  93. package/dist/core/handoffHealth.d.ts +4 -4
  94. package/dist/core/htmx.d.ts +1 -1
  95. package/dist/core/incidentBundle.d.ts +1 -1
  96. package/dist/core/incidentTimeline.d.ts +11 -11
  97. package/dist/core/latencySlo.d.ts +1 -1
  98. package/dist/core/liveCoach.d.ts +1 -1
  99. package/dist/core/liveLatency.d.ts +3 -3
  100. package/dist/core/liveOps.d.ts +6 -6
  101. package/dist/core/mediaPipelineRoutes.d.ts +4 -4
  102. package/dist/core/monitor.d.ts +1 -1
  103. package/dist/core/multilingualProof.d.ts +1 -1
  104. package/dist/core/observabilityExport.d.ts +15 -15
  105. package/dist/core/operationalStatus.d.ts +3 -3
  106. package/dist/core/operationsRecord.d.ts +8 -8
  107. package/dist/core/ops.d.ts +58 -58
  108. package/dist/core/opsActionAuditRoutes.d.ts +10 -10
  109. package/dist/core/opsConsoleRoutes.d.ts +3 -3
  110. package/dist/core/opsRecovery.d.ts +4 -4
  111. package/dist/core/opsSinks.d.ts +6 -6
  112. package/dist/core/opsStatusRoutes.d.ts +3 -3
  113. package/dist/core/opsWebhook.d.ts +9 -9
  114. package/dist/core/otelExporter.d.ts +1 -1
  115. package/dist/core/outcomeContract.d.ts +6 -6
  116. package/dist/core/pathway.d.ts +2 -2
  117. package/dist/core/pathwayRuntime.d.ts +2 -2
  118. package/dist/core/phoneAgent.d.ts +2 -2
  119. package/dist/core/phoneAgentProductionSmoke.d.ts +7 -7
  120. package/dist/core/platformCoverage.d.ts +1 -1
  121. package/dist/core/postCallSurvey.d.ts +1 -1
  122. package/dist/core/postgresStore.d.ts +8 -8
  123. package/dist/core/productionReadiness.d.ts +9 -9
  124. package/dist/core/profileSwitchRecommendation.d.ts +9 -9
  125. package/dist/core/proofAssertions.d.ts +1 -1
  126. package/dist/core/proofPack.d.ts +12 -12
  127. package/dist/core/proofRunner.d.ts +2 -2
  128. package/dist/core/proofTrends.d.ts +26 -26
  129. package/dist/core/providerCapabilities.d.ts +5 -5
  130. package/dist/core/providerDecisionTraces.d.ts +4 -4
  131. package/dist/core/providerHealth.d.ts +3 -3
  132. package/dist/core/providerOrchestration.d.ts +4 -4
  133. package/dist/core/providerRouterTraces.d.ts +2 -2
  134. package/dist/core/providerRoutingContract.d.ts +2 -2
  135. package/dist/core/providerSlo.d.ts +5 -5
  136. package/dist/core/providerStackRecommendations.d.ts +8 -8
  137. package/dist/core/qualityRoutes.d.ts +3 -3
  138. package/dist/core/queue.d.ts +26 -26
  139. package/dist/core/realtimeChannel.d.ts +5 -5
  140. package/dist/core/realtimeProviderContracts.d.ts +3 -3
  141. package/dist/core/reconnectContract.d.ts +16 -16
  142. package/dist/core/recordingStore.d.ts +2 -2
  143. package/dist/core/reminderScheduler.d.ts +1 -1
  144. package/dist/core/resilienceRoutes.d.ts +1 -1
  145. package/dist/core/routing.d.ts +1 -1
  146. package/dist/core/sessionObservability.d.ts +2 -2
  147. package/dist/core/sessionReplay.d.ts +12 -12
  148. package/dist/core/sessionSnapshot.d.ts +1 -1
  149. package/dist/core/simulationSuite.d.ts +4 -4
  150. package/dist/core/sloCalibration.d.ts +12 -12
  151. package/dist/core/sqliteStore.d.ts +8 -8
  152. package/dist/core/telephonyMediaRoutes.d.ts +4 -4
  153. package/dist/core/telephonyOutcome.d.ts +2 -2
  154. package/dist/core/toolContract.d.ts +10 -10
  155. package/dist/core/toolRuntime.d.ts +1 -1
  156. package/dist/core/trace.d.ts +18 -18
  157. package/dist/core/traceDeliveryRoutes.d.ts +7 -7
  158. package/dist/core/traceTimeline.d.ts +3 -3
  159. package/dist/core/turnLatency.d.ts +4 -4
  160. package/dist/core/turnQuality.d.ts +5 -5
  161. package/dist/core/types.d.ts +7 -2
  162. package/dist/core/voiceMonitoring.d.ts +11 -11
  163. package/dist/core/webhookVerification.d.ts +4 -4
  164. package/dist/core/whisperChannel.d.ts +4 -4
  165. package/dist/core/workflowContract.d.ts +13 -13
  166. package/dist/core/zeroDataRetention.d.ts +3 -13
  167. package/dist/drizzle/assistantMemory.d.ts +95 -0
  168. package/dist/drizzle/eval.d.ts +61 -0
  169. package/dist/drizzle/handoff.d.ts +62 -0
  170. package/dist/drizzle/index.d.ts +1029 -0
  171. package/dist/drizzle/index.js +3028 -0
  172. package/dist/drizzle/observabilityExport.d.ts +61 -0
  173. package/dist/drizzle/proofTrends.d.ts +126 -0
  174. package/dist/drizzle/runtimeStorage.d.ts +1311 -0
  175. package/dist/drizzle/shared.d.ts +75 -0
  176. package/dist/embed/index.js +72 -72
  177. package/dist/embed/voice-widget.js +2 -2
  178. package/dist/index.js +7034 -7101
  179. package/dist/react/index.js +2148 -2150
  180. package/dist/svelte/createVoiceAgentSquadStatus.d.ts +2 -2
  181. package/dist/svelte/createVoiceCallDebugger.d.ts +1 -1
  182. package/dist/svelte/createVoiceCallPlayer.d.ts +8 -8
  183. package/dist/svelte/createVoiceCampaignDialerProof.d.ts +2 -2
  184. package/dist/svelte/createVoiceCostDashboard.d.ts +4 -4
  185. package/dist/svelte/createVoiceDeliveryRuntime.d.ts +3 -3
  186. package/dist/svelte/createVoiceLiveAgentConsole.d.ts +4 -4
  187. package/dist/svelte/createVoiceLiveOps.d.ts +4 -4
  188. package/dist/svelte/createVoiceOpsActionCenter.d.ts +2 -2
  189. package/dist/svelte/createVoiceOpsStatus.d.ts +2 -2
  190. package/dist/svelte/createVoiceProviderCapabilities.d.ts +1 -1
  191. package/dist/svelte/createVoiceProviderContracts.d.ts +1 -1
  192. package/dist/svelte/createVoiceProviderSimulationControls.d.ts +1 -1
  193. package/dist/svelte/createVoiceProviderStatus.d.ts +1 -1
  194. package/dist/svelte/createVoiceReplayTimeline.d.ts +1 -1
  195. package/dist/svelte/createVoiceRoutingStatus.d.ts +1 -1
  196. package/dist/svelte/createVoiceSessionObservability.d.ts +1 -1
  197. package/dist/svelte/createVoiceSessionSnapshot.d.ts +1 -1
  198. package/dist/svelte/createVoiceTraceTimeline.d.ts +1 -1
  199. package/dist/svelte/createVoiceTurnLatency.d.ts +2 -2
  200. package/dist/svelte/createVoiceTurnQuality.d.ts +1 -1
  201. package/dist/svelte/createVoiceWidget.d.ts +2 -2
  202. package/dist/svelte/createVoiceWorkflowStatus.d.ts +1 -1
  203. package/dist/svelte/index.js +1518 -1522
  204. package/dist/telephony/matrix.d.ts +3 -3
  205. package/dist/telephony/plivo.d.ts +2 -2
  206. package/dist/telephony/security.d.ts +3 -3
  207. package/dist/telephony/telnyx.d.ts +1 -1
  208. package/dist/telephony/twilio.d.ts +2 -2
  209. package/dist/testing/benchmark.d.ts +6 -6
  210. package/dist/testing/corrected.d.ts +4 -4
  211. package/dist/testing/duplex.d.ts +2 -2
  212. package/dist/testing/fixtures.d.ts +1 -1
  213. package/dist/testing/index.js +1382 -1388
  214. package/dist/testing/review.d.ts +4 -4
  215. package/dist/testing/sessionBenchmark.d.ts +10 -10
  216. package/dist/testing/telephony.d.ts +3 -3
  217. package/dist/testing/tts.d.ts +1 -1
  218. package/dist/vue/VoiceCostDashboard.d.ts +2 -2
  219. package/dist/vue/index.js +2110 -2112
  220. package/dist/vue/useVoiceController.d.ts +5 -5
  221. package/dist/vue/useVoiceDeliveryRuntime.d.ts +1 -1
  222. package/dist/vue/useVoiceStream.d.ts +5 -5
  223. package/package.json +28 -6
@@ -8,8 +8,8 @@ export declare class VoiceCostDashboardService {
8
8
  build(options: VoiceCostDashboardServiceOptions): {
9
9
  currency: string;
10
10
  report: import("@angular/core").Signal<VoiceCostDashboardReport>;
11
+ title: string;
11
12
  setEvents: (next: ReadonlyArray<StoredVoiceTraceEvent>) => void;
12
13
  setFilters: (next: Partial<typeof options>) => void;
13
- title: string;
14
14
  };
15
15
  }
@@ -7,7 +7,7 @@ export type VoiceReplayTimelineServiceOptions = {
7
7
  export declare class VoiceReplayTimelineService {
8
8
  build(options: VoiceReplayTimelineServiceOptions): {
9
9
  report: import("@angular/core").Signal<ReplayTimelineReport>;
10
- setArtifact: (next: VoiceCallReviewArtifact) => void;
11
10
  title: string | undefined;
11
+ setArtifact: (next: VoiceCallReviewArtifact) => void;
12
12
  };
13
13
  }
@@ -15,10 +15,10 @@ export type VoiceAgentSquadStatusWidgetOptions = VoiceAgentSquadStatusClientOpti
15
15
  title?: string;
16
16
  };
17
17
  export declare const createVoiceAgentSquadStatusViewModel: (snapshot: VoiceAgentSquadStatusSnapshot, options?: VoiceAgentSquadStatusWidgetOptions) => VoiceAgentSquadStatusViewModel;
18
- export declare const renderVoiceAgentSquadStatusHTML: (snapshot: VoiceAgentSquadStatusSnapshot, options?: VoiceAgentSquadStatusWidgetOptions) => string;
18
+ export declare const defineVoiceAgentSquadStatusElement: (tagName?: string, options?: VoiceAgentSquadStatusWidgetOptions) => void;
19
19
  export declare const getVoiceAgentSquadStatusCSS: () => string;
20
20
  export declare const mountVoiceAgentSquadStatus: (element: Element | null, path?: string, options?: VoiceAgentSquadStatusWidgetOptions) => {
21
- close: () => void;
22
21
  refresh: () => Promise<import("..").VoiceTraceTimelineReport | null>;
22
+ close: () => void;
23
23
  };
24
- export declare const defineVoiceAgentSquadStatusElement: (tagName?: string, options?: VoiceAgentSquadStatusWidgetOptions) => void;
24
+ export declare const renderVoiceAgentSquadStatusHTML: (snapshot: VoiceAgentSquadStatusSnapshot, options?: VoiceAgentSquadStatusWidgetOptions) => string;
@@ -18,5 +18,5 @@ export type BrowserVoiceSupportReport = {
18
18
  ok: boolean;
19
19
  warnings: string[];
20
20
  };
21
- export declare const probeBrowserVoiceSupport: (globalScope?: typeof globalThis) => BrowserVoiceSupportProbe;
22
21
  export declare const checkBrowserVoiceSupport: (globalScope?: typeof globalThis) => BrowserVoiceSupportReport;
22
+ export declare const probeBrowserVoiceSupport: (globalScope?: typeof globalThis) => BrowserVoiceSupportProbe;
@@ -9,11 +9,11 @@ export type VoiceCallDebuggerClientState = {
9
9
  report?: VoiceCallDebuggerReport;
10
10
  updatedAt?: number;
11
11
  };
12
- export declare const fetchVoiceCallDebugger: (path: string, options?: Pick<VoiceCallDebuggerClientOptions, "fetch">) => Promise<VoiceCallDebuggerReport>;
13
12
  export declare const createVoiceCallDebuggerStore: (path: string, options?: VoiceCallDebuggerClientOptions) => {
14
13
  close: () => void;
14
+ refresh: () => Promise<VoiceCallDebuggerReport | undefined>;
15
15
  getServerSnapshot: () => VoiceCallDebuggerClientState;
16
16
  getSnapshot: () => VoiceCallDebuggerClientState;
17
- refresh: () => Promise<VoiceCallDebuggerReport | undefined>;
18
17
  subscribe: (listener: () => void) => () => void;
19
18
  };
19
+ export declare const fetchVoiceCallDebugger: (path: string, options?: Pick<VoiceCallDebuggerClientOptions, "fetch">) => Promise<VoiceCallDebuggerReport>;
@@ -22,9 +22,9 @@ export type VoiceCallDebuggerLaunchOptions = VoiceCallDebuggerClientOptions & {
22
22
  title?: string;
23
23
  };
24
24
  export declare const createVoiceCallDebuggerLaunchViewModel: (path: string, state: VoiceCallDebuggerClientState, options?: VoiceCallDebuggerLaunchOptions) => VoiceCallDebuggerLaunchViewModel;
25
- export declare const renderVoiceCallDebuggerLaunchHTML: (path: string, state: VoiceCallDebuggerClientState, options?: VoiceCallDebuggerLaunchOptions) => string;
25
+ export declare const defineVoiceCallDebuggerLaunchElement: (tagName?: string) => void;
26
26
  export declare const mountVoiceCallDebuggerLaunch: (element: Element, path: string, options?: VoiceCallDebuggerLaunchOptions) => {
27
- close: () => void;
28
27
  refresh: () => Promise<import("..").VoiceCallDebuggerReport | undefined>;
28
+ close: () => void;
29
29
  };
30
- export declare const defineVoiceCallDebuggerLaunchElement: (tagName?: string) => void;
30
+ export declare const renderVoiceCallDebuggerLaunchHTML: (path: string, state: VoiceCallDebuggerClientState, options?: VoiceCallDebuggerLaunchOptions) => string;
@@ -11,13 +11,13 @@ export type VoiceCampaignDialerProofSnapshot = {
11
11
  status?: VoiceCampaignDialerProofStatus;
12
12
  updatedAt?: number;
13
13
  };
14
- export declare const fetchVoiceCampaignDialerProofStatus: (path?: string, options?: Pick<VoiceCampaignDialerProofClientOptions, "fetch">) => Promise<VoiceCampaignDialerProofStatus>;
15
- export declare const runVoiceCampaignDialerProofAction: (path?: string, options?: Pick<VoiceCampaignDialerProofClientOptions, "fetch">) => Promise<VoiceCampaignDialerProofReport>;
16
14
  export declare const createVoiceCampaignDialerProofStore: (path?: string, options?: VoiceCampaignDialerProofClientOptions) => {
17
15
  close: () => void;
18
- getServerSnapshot: () => VoiceCampaignDialerProofSnapshot;
19
- getSnapshot: () => VoiceCampaignDialerProofSnapshot;
20
16
  refresh: () => Promise<VoiceCampaignDialerProofStatus | undefined>;
21
17
  runProof: () => Promise<VoiceCampaignDialerProofReport>;
18
+ getServerSnapshot: () => VoiceCampaignDialerProofSnapshot;
19
+ getSnapshot: () => VoiceCampaignDialerProofSnapshot;
22
20
  subscribe: (listener: () => void) => () => void;
23
21
  };
22
+ export declare const fetchVoiceCampaignDialerProofStatus: (path?: string, options?: Pick<VoiceCampaignDialerProofClientOptions, "fetch">) => Promise<VoiceCampaignDialerProofStatus>;
23
+ export declare const runVoiceCampaignDialerProofAction: (path?: string, options?: Pick<VoiceCampaignDialerProofClientOptions, "fetch">) => Promise<VoiceCampaignDialerProofReport>;
@@ -21,14 +21,14 @@ export type VoiceDeliveryRuntimeActionResult = {
21
21
  summary?: VoiceDeliveryRuntimeReport["summary"];
22
22
  updatedAt: number;
23
23
  };
24
- export declare const fetchVoiceDeliveryRuntime: (path?: string, options?: Pick<VoiceDeliveryRuntimeClientOptions, "fetch">) => Promise<VoiceDeliveryRuntimeReport>;
25
- export declare const runVoiceDeliveryRuntimeAction: (action: VoiceDeliveryRuntimeAction, path?: string, options?: VoiceDeliveryRuntimeClientOptions) => Promise<VoiceDeliveryRuntimeActionResult>;
26
24
  export declare const createVoiceDeliveryRuntimeStore: (path?: string, options?: VoiceDeliveryRuntimeClientOptions) => {
27
25
  close: () => void;
26
+ refresh: () => Promise<VoiceDeliveryRuntimeReport | undefined>;
28
27
  getServerSnapshot: () => VoiceDeliveryRuntimeSnapshot;
29
28
  getSnapshot: () => VoiceDeliveryRuntimeSnapshot;
30
29
  requeueDeadLetters: () => Promise<VoiceDeliveryRuntimeActionResult | undefined>;
31
- refresh: () => Promise<VoiceDeliveryRuntimeReport | undefined>;
32
- tick: () => Promise<VoiceDeliveryRuntimeActionResult | undefined>;
33
30
  subscribe: (listener: () => void) => () => void;
31
+ tick: () => Promise<VoiceDeliveryRuntimeActionResult | undefined>;
34
32
  };
33
+ export declare const fetchVoiceDeliveryRuntime: (path?: string, options?: Pick<VoiceDeliveryRuntimeClientOptions, "fetch">) => Promise<VoiceDeliveryRuntimeReport>;
34
+ export declare const runVoiceDeliveryRuntimeAction: (action: VoiceDeliveryRuntimeAction, path?: string, options?: VoiceDeliveryRuntimeClientOptions) => Promise<VoiceDeliveryRuntimeActionResult>;
@@ -28,10 +28,10 @@ export type VoiceDeliveryRuntimeWidgetOptions = VoiceDeliveryRuntimeClientOption
28
28
  title?: string;
29
29
  };
30
30
  export declare const createVoiceDeliveryRuntimeViewModel: (snapshot: VoiceDeliveryRuntimeSnapshot, options?: VoiceDeliveryRuntimeWidgetOptions) => VoiceDeliveryRuntimeViewModel;
31
- export declare const renderVoiceDeliveryRuntimeHTML: (snapshot: VoiceDeliveryRuntimeSnapshot, options?: VoiceDeliveryRuntimeWidgetOptions) => string;
31
+ export declare const defineVoiceDeliveryRuntimeElement: (tagName?: string) => void;
32
32
  export declare const getVoiceDeliveryRuntimeCSS: () => string;
33
33
  export declare const mountVoiceDeliveryRuntime: (element: Element, path?: string, options?: VoiceDeliveryRuntimeWidgetOptions) => {
34
- close: () => void;
35
34
  refresh: () => Promise<import("..").VoiceDeliveryRuntimeReport | undefined>;
35
+ close: () => void;
36
36
  };
37
- export declare const defineVoiceDeliveryRuntimeElement: (tagName?: string) => void;
37
+ export declare const renderVoiceDeliveryRuntimeHTML: (snapshot: VoiceDeliveryRuntimeSnapshot, options?: VoiceDeliveryRuntimeWidgetOptions) => string;
@@ -17,12 +17,8 @@ export declare const buildVoiceHTMXAttributes: (attrs: VoiceHTMXPollingAttribute
17
17
  * Injects HTMX polling attributes into the first opening tag of an HTML string.
18
18
  * Returns the original HTML unchanged when attrs produce no attributes.
19
19
  */
20
- export declare const wrapVoiceHTMLWithHTMXPolling: (html: string, attrs: VoiceHTMXPollingAttributes | undefined) => string;
21
- /**
22
- * Wraps arbitrary HTML in a self-refreshing div that polls refreshUrl.
23
- * Use this when the inner HTML doesn't have a stable root element to mutate.
24
- */
25
20
  export declare const wrapVoiceHTMLInHTMXContainer: (html: string, attrs: VoiceHTMXPollingAttributes & {
26
21
  className?: string;
27
22
  elementTag?: string;
28
23
  }) => string;
24
+ export declare const wrapVoiceHTMLWithHTMXPolling: (html: string, attrs: VoiceHTMXPollingAttributes | undefined) => string;
@@ -463,14 +463,14 @@ var createVoiceBrowserMediaReporter = (options) => {
463
463
  return {
464
464
  close: stop,
465
465
  reportOnce,
466
+ stop,
466
467
  start: () => {
467
468
  if (interval) {
468
469
  return;
469
470
  }
470
471
  run();
471
472
  interval = setInterval(run, options.intervalMs ?? DEFAULT_BROWSER_MEDIA_INTERVAL_MS);
472
- },
473
- stop
473
+ }
474
474
  };
475
475
  };
476
476
 
@@ -488,14 +488,14 @@ var NOOP_CONNECTION = {
488
488
  callControl: noop,
489
489
  close: noop,
490
490
  endTurn: noop,
491
- getReadyState: () => WS_CLOSED,
492
- getScenarioId: () => "",
493
- getSessionId: () => "",
494
491
  send: noop,
495
492
  sendAudio: noop,
496
493
  simulateDisconnect: noop,
497
- start: () => {},
498
- subscribe: noopUnsubscribe
494
+ subscribe: noopUnsubscribe,
495
+ getReadyState: () => WS_CLOSED,
496
+ getScenarioId: () => "",
497
+ getSessionId: () => "",
498
+ start: () => {}
499
499
  };
500
500
  var createSessionId = () => crypto.randomUUID();
501
501
  var buildWsUrl = (path, sessionId, scenarioId) => {
@@ -692,9 +692,9 @@ var createVoiceConnection = (path, options = {}) => {
692
692
  state.scenarioId = input.scenarioId;
693
693
  }
694
694
  send({
695
- type: "start",
695
+ scenarioId: state.scenarioId ?? undefined,
696
696
  sessionId: state.sessionId,
697
- scenarioId: state.scenarioId ?? undefined
697
+ type: "start"
698
698
  });
699
699
  };
700
700
  const sendAudio = (audio) => {
@@ -734,14 +734,14 @@ var createVoiceConnection = (path, options = {}) => {
734
734
  callControl,
735
735
  close,
736
736
  endTurn,
737
- getReadyState: () => state.ws?.readyState ?? WS_CLOSED,
738
- getScenarioId: () => state.scenarioId ?? "",
739
- getSessionId: () => state.sessionId,
740
737
  send,
741
738
  sendAudio,
742
739
  simulateDisconnect,
743
740
  start,
744
- subscribe
741
+ subscribe,
742
+ getReadyState: () => state.ws?.readyState ?? WS_CLOSED,
743
+ getScenarioId: () => state.scenarioId ?? "",
744
+ getSessionId: () => state.sessionId
745
745
  };
746
746
  };
747
747
 
@@ -757,11 +757,11 @@ var createInitialState = () => ({
757
757
  call: null,
758
758
  error: null,
759
759
  isConnected: false,
760
- sessionMetadata: null,
761
- scenarioId: null,
762
760
  partial: "",
763
761
  reconnect: createInitialReconnectState(),
762
+ scenarioId: null,
764
763
  sessionId: null,
764
+ sessionMetadata: null,
765
765
  status: "idle",
766
766
  turns: []
767
767
  });
@@ -964,6 +964,16 @@ var createVoiceStream = (path, options = {}) => {
964
964
  }
965
965
  });
966
966
  return {
967
+ start,
968
+ get assistantAudio() {
969
+ return store.getSnapshot().assistantAudio;
970
+ },
971
+ get assistantTexts() {
972
+ return store.getSnapshot().assistantTexts;
973
+ },
974
+ get call() {
975
+ return store.getSnapshot().call;
976
+ },
967
977
  callControl(message) {
968
978
  connection.callControl(message);
969
979
  },
@@ -989,48 +999,38 @@ var createVoiceStream = (path, options = {}) => {
989
999
  get isConnected() {
990
1000
  return store.getSnapshot().isConnected;
991
1001
  },
992
- get scenarioId() {
993
- return store.getSnapshot().scenarioId;
994
- },
995
- get sessionMetadata() {
996
- return store.getSnapshot().sessionMetadata;
997
- },
998
- start,
999
1002
  get partial() {
1000
1003
  return store.getSnapshot().partial;
1001
1004
  },
1002
1005
  get reconnect() {
1003
1006
  return store.getSnapshot().reconnect;
1004
1007
  },
1005
- get sessionId() {
1006
- return connection.getSessionId();
1007
- },
1008
- get status() {
1009
- return store.getSnapshot().status;
1010
- },
1011
- get turns() {
1012
- return store.getSnapshot().turns;
1013
- },
1014
- get assistantTexts() {
1015
- return store.getSnapshot().assistantTexts;
1016
- },
1017
- get assistantAudio() {
1018
- return store.getSnapshot().assistantAudio;
1019
- },
1020
- get call() {
1021
- return store.getSnapshot().call;
1008
+ get scenarioId() {
1009
+ return store.getSnapshot().scenarioId;
1022
1010
  },
1023
1011
  sendAudio(audio) {
1024
1012
  connection.sendAudio(audio);
1025
1013
  },
1014
+ get sessionId() {
1015
+ return connection.getSessionId();
1016
+ },
1017
+ get sessionMetadata() {
1018
+ return store.getSnapshot().sessionMetadata;
1019
+ },
1026
1020
  simulateDisconnect() {
1027
1021
  connection.simulateDisconnect();
1028
1022
  },
1023
+ get status() {
1024
+ return store.getSnapshot().status;
1025
+ },
1029
1026
  subscribe(subscriber) {
1030
1027
  subscribers.add(subscriber);
1031
1028
  return () => {
1032
1029
  subscribers.delete(subscriber);
1033
1030
  };
1031
+ },
1032
+ get turns() {
1033
+ return store.getSnapshot().turns;
1034
1034
  }
1035
1035
  };
1036
1036
  };
@@ -1075,12 +1075,12 @@ var TURN_PROFILE_DEFAULTS = {
1075
1075
  }
1076
1076
  };
1077
1077
  var QUALITY_PROFILE_DEFAULTS = {
1078
- general: {},
1079
1078
  "accent-heavy": {
1080
1079
  silenceMs: 1200,
1081
1080
  speechThreshold: 0.01,
1082
1081
  transcriptStabilityMs: 1200
1083
1082
  },
1083
+ general: {},
1084
1084
  "noisy-room": {
1085
1085
  silenceMs: 2000,
1086
1086
  speechThreshold: 0.02,
@@ -1129,8 +1129,8 @@ var PRESET_INPUTS = {
1129
1129
  },
1130
1130
  sttLifecycle: "continuous",
1131
1131
  turnDetection: {
1132
- qualityProfile: "short-command",
1133
- profile: "balanced"
1132
+ profile: "balanced",
1133
+ qualityProfile: "short-command"
1134
1134
  }
1135
1135
  },
1136
1136
  default: {
@@ -1145,8 +1145,8 @@ var PRESET_INPUTS = {
1145
1145
  },
1146
1146
  sttLifecycle: "continuous",
1147
1147
  turnDetection: {
1148
- qualityProfile: "general",
1149
- profile: "fast"
1148
+ profile: "fast",
1149
+ qualityProfile: "general"
1150
1150
  }
1151
1151
  },
1152
1152
  dictation: {
@@ -1168,8 +1168,8 @@ var PRESET_INPUTS = {
1168
1168
  },
1169
1169
  sttLifecycle: "continuous",
1170
1170
  turnDetection: {
1171
- qualityProfile: "accent-heavy",
1172
- profile: "long-form"
1171
+ profile: "long-form",
1172
+ qualityProfile: "accent-heavy"
1173
1173
  }
1174
1174
  },
1175
1175
  "guided-intake": {
@@ -1191,8 +1191,8 @@ var PRESET_INPUTS = {
1191
1191
  },
1192
1192
  sttLifecycle: "turn-scoped",
1193
1193
  turnDetection: {
1194
- qualityProfile: "accent-heavy",
1195
- profile: "long-form"
1194
+ profile: "long-form",
1195
+ qualityProfile: "accent-heavy"
1196
1196
  }
1197
1197
  },
1198
1198
  "noisy-room": {
@@ -1214,8 +1214,8 @@ var PRESET_INPUTS = {
1214
1214
  },
1215
1215
  sttLifecycle: "continuous",
1216
1216
  turnDetection: {
1217
- qualityProfile: "noisy-room",
1218
1217
  profile: "long-form",
1218
+ qualityProfile: "noisy-room",
1219
1219
  silenceMs: 2100,
1220
1220
  speechThreshold: 0.02,
1221
1221
  transcriptStabilityMs: 1650
@@ -1240,8 +1240,8 @@ var PRESET_INPUTS = {
1240
1240
  },
1241
1241
  sttLifecycle: "continuous",
1242
1242
  turnDetection: {
1243
- qualityProfile: "noisy-room",
1244
1243
  profile: "long-form",
1244
+ qualityProfile: "noisy-room",
1245
1245
  silenceMs: 660,
1246
1246
  speechThreshold: 0.012,
1247
1247
  transcriptStabilityMs: 300
@@ -1266,8 +1266,8 @@ var PRESET_INPUTS = {
1266
1266
  },
1267
1267
  sttLifecycle: "continuous",
1268
1268
  turnDetection: {
1269
- qualityProfile: "noisy-room",
1270
1269
  profile: "long-form",
1270
+ qualityProfile: "noisy-room",
1271
1271
  silenceMs: 620,
1272
1272
  speechThreshold: 0.012,
1273
1273
  transcriptStabilityMs: 280
@@ -1292,8 +1292,8 @@ var PRESET_INPUTS = {
1292
1292
  },
1293
1293
  sttLifecycle: "continuous",
1294
1294
  turnDetection: {
1295
- qualityProfile: "noisy-room",
1296
- profile: "long-form"
1295
+ profile: "long-form",
1296
+ qualityProfile: "noisy-room"
1297
1297
  }
1298
1298
  }
1299
1299
  };
@@ -1433,11 +1433,22 @@ var createVoiceController = (path, options = {}) => {
1433
1433
  stream.close();
1434
1434
  };
1435
1435
  return {
1436
+ close,
1437
+ startRecording,
1438
+ stopRecording,
1439
+ get assistantAudio() {
1440
+ return state.assistantAudio;
1441
+ },
1442
+ get assistantTexts() {
1443
+ return state.assistantTexts;
1444
+ },
1436
1445
  bindHTMX(bindingOptions) {
1437
1446
  return bindVoiceHTMX(stream, bindingOptions);
1438
1447
  },
1448
+ get call() {
1449
+ return state.call;
1450
+ },
1439
1451
  callControl: (message) => stream.callControl(message),
1440
- close,
1441
1452
  endTurn: () => stream.endTurn(),
1442
1453
  get error() {
1443
1454
  return state.error;
@@ -1453,28 +1464,26 @@ var createVoiceController = (path, options = {}) => {
1453
1464
  get partial() {
1454
1465
  return state.partial;
1455
1466
  },
1467
+ get reconnect() {
1468
+ return state.reconnect;
1469
+ },
1456
1470
  get recordingError() {
1457
1471
  return state.recordingError;
1458
1472
  },
1459
- get reconnect() {
1460
- return state.reconnect;
1473
+ get scenarioId() {
1474
+ return state.scenarioId;
1461
1475
  },
1462
1476
  sendAudio: (audio) => stream.sendAudio(audio),
1463
- simulateDisconnect: () => stream.simulateDisconnect(),
1464
1477
  get sessionId() {
1465
1478
  return state.sessionId;
1466
1479
  },
1467
1480
  get sessionMetadata() {
1468
1481
  return state.sessionMetadata;
1469
1482
  },
1470
- get scenarioId() {
1471
- return state.scenarioId;
1472
- },
1473
- startRecording,
1483
+ simulateDisconnect: () => stream.simulateDisconnect(),
1474
1484
  get status() {
1475
1485
  return state.status;
1476
1486
  },
1477
- stopRecording,
1478
1487
  subscribe: (subscriber) => {
1479
1488
  subscribers.add(subscriber);
1480
1489
  return () => {
@@ -1490,15 +1499,6 @@ var createVoiceController = (path, options = {}) => {
1490
1499
  },
1491
1500
  get turns() {
1492
1501
  return state.turns;
1493
- },
1494
- get assistantTexts() {
1495
- return state.assistantTexts;
1496
- },
1497
- get assistantAudio() {
1498
- return state.assistantAudio;
1499
- },
1500
- get call() {
1501
- return state.call;
1502
1502
  }
1503
1503
  };
1504
1504
  };
@@ -1522,7 +1522,7 @@ var getAudioContextCtor = () => {
1522
1522
  return window.AudioContext ?? window.webkitAudioContext;
1523
1523
  };
1524
1524
  var decodePCM16LEChunk = (audioContext, chunk) => {
1525
- const format = chunk.format;
1525
+ const { format } = chunk;
1526
1526
  if (format.container !== "raw" || format.encoding !== "pcm_s16le") {
1527
1527
  throw new Error(`Unsupported assistant audio format: ${format.container}/${format.encoding}`);
1528
1528
  }
@@ -1723,6 +1723,9 @@ var createVoiceAudioPlayer = (source, options = {}) => {
1723
1723
  }
1724
1724
  });
1725
1725
  const player = {
1726
+ get activeSourceCount() {
1727
+ return state.activeSourceCount;
1728
+ },
1726
1729
  close: async () => {
1727
1730
  unsubscribeSource();
1728
1731
  stopQueuedPlayback({ forceClear: true });
@@ -1744,19 +1747,10 @@ var createVoiceAudioPlayer = (source, options = {}) => {
1744
1747
  isPlaying: false
1745
1748
  });
1746
1749
  },
1747
- get activeSourceCount() {
1748
- return state.activeSourceCount;
1749
- },
1750
1750
  get error() {
1751
1751
  return state.error;
1752
1752
  },
1753
1753
  getSnapshot: () => state,
1754
- get isActive() {
1755
- return state.isActive;
1756
- },
1757
- get isPlaying() {
1758
- return state.isPlaying;
1759
- },
1760
1754
  interrupt: async () => {
1761
1755
  const startedAt = Date.now();
1762
1756
  const context = await ensureAudioContext();
@@ -1788,6 +1782,12 @@ var createVoiceAudioPlayer = (source, options = {}) => {
1788
1782
  stopQueuedPlayback();
1789
1783
  await interruptPromise;
1790
1784
  },
1785
+ get isActive() {
1786
+ return state.isActive;
1787
+ },
1788
+ get isPlaying() {
1789
+ return state.isPlaying;
1790
+ },
1791
1791
  get lastInterruptLatencyMs() {
1792
1792
  return state.lastInterruptLatencyMs;
1793
1793
  },
@@ -2255,7 +2255,7 @@ var initVoiceHTMXRoot = (root) => {
2255
2255
  const render = () => {
2256
2256
  const voice = currentVoice();
2257
2257
  const hasStarted = (activeMode ? hasStartedModes[activeMode] : false) || voice.turns.length > 0;
2258
- const status = voice.status;
2258
+ const { status } = voice;
2259
2259
  connectionMetric.textContent = voice.isConnected ? "Connected" : "Waiting";
2260
2260
  errorStatus.textContent = micError || voice.error || "None";
2261
2261
  if (reconnectStatus) {
@@ -32,16 +32,7 @@ export type VoiceDashboardHTMXRendererConfig = {
32
32
  replayTimeline?: VoiceReplayTimelineRenderer;
33
33
  };
34
34
  export type ResolvedVoiceDashboardRenderers = Required<VoiceDashboardHTMXRendererConfig>;
35
- export declare const resolveVoiceDashboardRenderers: (custom?: VoiceDashboardHTMXRendererConfig) => ResolvedVoiceDashboardRenderers;
36
- export declare const renderVoiceCostDashboardHTMX: (input: VoiceCostDashboardHTMXInput & {
37
- custom?: VoiceCostDashboardRenderer;
38
- }) => string;
39
- export declare const renderVoiceReplayTimelineHTMX: (input: VoiceReplayTimelineHTMXInput & {
40
- custom?: VoiceReplayTimelineRenderer;
41
- }) => string;
42
- export declare const renderVoiceLiveCallViewerHTMX: (input: VoiceLiveCallViewerHTMXInput & {
43
- custom?: VoiceLiveCallViewerRenderer;
44
- }) => string;
35
+ export declare const createLiveCallViewerFromOptions: (options: import("./liveCallViewer").CreateLiveCallViewerOptions) => LiveCallViewer;
45
36
  export declare const renderVoiceCostDashboardFromEvents: (input: {
46
37
  attributes?: VoiceDashboardHTMXAttributes;
47
38
  currency?: string;
@@ -50,10 +41,13 @@ export declare const renderVoiceCostDashboardFromEvents: (input: {
50
41
  renderer?: VoiceCostDashboardRenderer;
51
42
  title?: string;
52
43
  }) => string;
53
- export declare const renderVoiceReplayTimelineFromArtifact: (input: {
54
- artifact: VoiceCallReviewArtifact;
44
+ export declare const renderVoiceCostDashboardHTMX: (input: VoiceCostDashboardHTMXInput & {
45
+ custom?: VoiceCostDashboardRenderer;
46
+ }) => string;
47
+ export declare const renderVoiceLiveCallViewerFromState: (input: {
55
48
  attributes?: VoiceDashboardHTMXAttributes;
56
- renderer?: VoiceReplayTimelineRenderer;
49
+ renderer?: VoiceLiveCallViewerRenderer;
50
+ state: LiveCallViewState;
57
51
  title?: string;
58
52
  }) => string;
59
53
  export declare const renderVoiceLiveCallViewerFromViewer: (input: {
@@ -62,10 +56,16 @@ export declare const renderVoiceLiveCallViewerFromViewer: (input: {
62
56
  title?: string;
63
57
  viewer: LiveCallViewer;
64
58
  }) => string;
65
- export declare const renderVoiceLiveCallViewerFromState: (input: {
59
+ export declare const renderVoiceLiveCallViewerHTMX: (input: VoiceLiveCallViewerHTMXInput & {
60
+ custom?: VoiceLiveCallViewerRenderer;
61
+ }) => string;
62
+ export declare const renderVoiceReplayTimelineFromArtifact: (input: {
63
+ artifact: VoiceCallReviewArtifact;
66
64
  attributes?: VoiceDashboardHTMXAttributes;
67
- renderer?: VoiceLiveCallViewerRenderer;
68
- state: LiveCallViewState;
65
+ renderer?: VoiceReplayTimelineRenderer;
69
66
  title?: string;
70
67
  }) => string;
71
- export declare const createLiveCallViewerFromOptions: (options: import("./liveCallViewer").CreateLiveCallViewerOptions) => LiveCallViewer;
68
+ export declare const renderVoiceReplayTimelineHTMX: (input: VoiceReplayTimelineHTMXInput & {
69
+ custom?: VoiceReplayTimelineRenderer;
70
+ }) => string;
71
+ export declare const resolveVoiceDashboardRenderers: (custom?: VoiceDashboardHTMXRendererConfig) => ResolvedVoiceDashboardRenderers;