@absolutejs/voice 0.0.22-beta.439 → 0.0.22-beta.441
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2729 -2698
- package/dist/agent.d.ts +10 -10
- package/dist/agentSquadContract.d.ts +4 -4
- package/dist/angular/index.d.ts +22 -22
- package/dist/angular/voice-agent-squad-status.service.d.ts +1 -1
- package/dist/angular/voice-call-debugger.service.d.ts +2 -2
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +2 -2
- package/dist/angular/voice-controller.service.d.ts +1 -1
- package/dist/angular/voice-delivery-runtime.component.d.ts +2 -2
- package/dist/angular/voice-delivery-runtime.service.d.ts +2 -2
- package/dist/angular/voice-live-ops.service.d.ts +1 -1
- package/dist/angular/voice-ops-action-center.service.d.ts +1 -1
- package/dist/angular/voice-ops-status.component.d.ts +2 -2
- package/dist/angular/voice-ops-status.service.d.ts +2 -2
- package/dist/angular/voice-platform-coverage.service.d.ts +2 -2
- package/dist/angular/voice-profile-comparison.service.d.ts +2 -2
- package/dist/angular/voice-proof-trends.service.d.ts +2 -2
- package/dist/angular/voice-provider-capabilities.service.d.ts +2 -2
- package/dist/angular/voice-provider-contracts.service.d.ts +2 -2
- package/dist/angular/voice-provider-status.service.d.ts +2 -2
- package/dist/angular/voice-readiness-failures.service.d.ts +2 -2
- package/dist/angular/voice-routing-status.service.d.ts +1 -1
- package/dist/angular/voice-session-snapshot.service.d.ts +2 -2
- package/dist/angular/voice-stream.service.d.ts +1 -1
- package/dist/angular/voice-trace-timeline.service.d.ts +2 -2
- package/dist/angular/voice-turn-latency.service.d.ts +2 -2
- package/dist/angular/voice-turn-quality.service.d.ts +2 -2
- package/dist/angular/voice-workflow-status.service.d.ts +2 -2
- package/dist/assistant.d.ts +11 -11
- package/dist/assistantHealth.d.ts +6 -6
- package/dist/assistantMemory.d.ts +3 -3
- package/dist/audioConditioning.d.ts +1 -1
- package/dist/audit.d.ts +11 -11
- package/dist/auditDeliveryRoutes.d.ts +3 -3
- package/dist/auditExport.d.ts +3 -3
- package/dist/auditRoutes.d.ts +2 -2
- package/dist/auditSinks.d.ts +8 -8
- package/dist/bargeInRoutes.d.ts +3 -3
- package/dist/browserCallProfiles.d.ts +2 -2
- package/dist/browserMediaRoutes.d.ts +4 -4
- package/dist/callDebugger.d.ts +6 -6
- package/dist/campaign.d.ts +22 -22
- package/dist/campaignDialers.d.ts +14 -14
- package/dist/client/actions.d.ts +1 -1
- package/dist/client/agentSquadStatus.d.ts +3 -3
- package/dist/client/agentSquadStatusWidget.d.ts +1 -1
- package/dist/client/audioPlayer.d.ts +2 -2
- package/dist/client/bargeInMonitor.d.ts +1 -1
- package/dist/client/browserMedia.d.ts +1 -1
- package/dist/client/callDebugger.d.ts +1 -1
- package/dist/client/callDebuggerWidget.d.ts +3 -3
- package/dist/client/campaignDialerProof.d.ts +1 -1
- package/dist/client/connection.d.ts +3 -3
- package/dist/client/controller.d.ts +1 -1
- package/dist/client/createVoiceStream.d.ts +1 -1
- package/dist/client/deliveryRuntime.d.ts +4 -4
- package/dist/client/deliveryRuntimeWidget.d.ts +5 -5
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmx.d.ts +1 -1
- package/dist/client/index.d.ts +96 -96
- package/dist/client/index.js +41 -15
- package/dist/client/liveOps.d.ts +2 -2
- package/dist/client/liveOpsWidget.d.ts +2 -2
- package/dist/client/liveTurnLatency.d.ts +3 -3
- package/dist/client/microphone.d.ts +4 -4
- package/dist/client/opsActionCenter.d.ts +1 -1
- package/dist/client/opsActionCenterWidget.d.ts +2 -2
- package/dist/client/opsActionHistory.d.ts +1 -1
- package/dist/client/opsActionHistoryWidget.d.ts +1 -1
- package/dist/client/opsStatus.d.ts +1 -1
- package/dist/client/opsStatusWidget.d.ts +4 -4
- package/dist/client/platformCoverage.d.ts +1 -1
- package/dist/client/platformCoverageWidget.d.ts +3 -3
- package/dist/client/profileComparison.d.ts +1 -1
- package/dist/client/profileComparisonWidget.d.ts +2 -2
- package/dist/client/profileSwitchRecommendation.d.ts +1 -1
- package/dist/client/profileSwitchRecommendationWidget.d.ts +1 -1
- package/dist/client/proofTrends.d.ts +1 -1
- package/dist/client/proofTrendsWidget.d.ts +3 -3
- package/dist/client/providerCapabilities.d.ts +1 -1
- package/dist/client/providerCapabilitiesWidget.d.ts +3 -3
- package/dist/client/providerContracts.d.ts +1 -1
- package/dist/client/providerContractsWidget.d.ts +3 -3
- package/dist/client/providerSimulationControls.d.ts +2 -2
- package/dist/client/providerSimulationControlsWidget.d.ts +1 -1
- package/dist/client/providerStatus.d.ts +1 -1
- package/dist/client/providerStatusWidget.d.ts +3 -3
- package/dist/client/readinessFailures.d.ts +1 -1
- package/dist/client/readinessFailuresWidget.d.ts +4 -4
- package/dist/client/routingStatus.d.ts +1 -1
- package/dist/client/routingStatusWidget.d.ts +3 -3
- package/dist/client/sessionSnapshot.d.ts +1 -1
- package/dist/client/sessionSnapshotWidget.d.ts +2 -2
- package/dist/client/store.d.ts +1 -1
- package/dist/client/traceTimeline.d.ts +1 -1
- package/dist/client/traceTimelineWidget.d.ts +3 -3
- package/dist/client/turnLatency.d.ts +1 -1
- package/dist/client/turnLatencyWidget.d.ts +3 -3
- package/dist/client/turnQuality.d.ts +1 -1
- package/dist/client/turnQualityWidget.d.ts +3 -3
- package/dist/client/workflowStatus.d.ts +1 -1
- package/dist/competitiveCoverage.d.ts +9 -9
- package/dist/correction.d.ts +2 -2
- package/dist/dataControl.d.ts +16 -16
- package/dist/deliveryRuntime.d.ts +9 -9
- package/dist/deliverySinkRoutes.d.ts +6 -6
- package/dist/demoReadyRoutes.d.ts +8 -8
- package/dist/diagnosticsRoutes.d.ts +2 -2
- package/dist/evalRoutes.d.ts +4 -4
- package/dist/fileStore.d.ts +9 -9
- package/dist/guardrails.d.ts +9 -9
- package/dist/handoff.d.ts +6 -6
- package/dist/handoffHealth.d.ts +5 -5
- package/dist/htmx.d.ts +1 -1
- package/dist/incidentBundle.d.ts +7 -7
- package/dist/incidentTimeline.d.ts +30 -16
- package/dist/index.d.ts +215 -215
- package/dist/index.js +375 -111
- package/dist/latencySlo.d.ts +4 -4
- package/dist/liveLatency.d.ts +3 -3
- package/dist/liveOps.d.ts +11 -11
- package/dist/logger.d.ts +1 -1
- package/dist/mediaPipelineRoutes.d.ts +2 -2
- package/dist/memoryStore.d.ts +1 -1
- package/dist/modelAdapters.d.ts +9 -9
- package/dist/observabilityExport.d.ts +44 -44
- package/dist/openaiTTS.d.ts +3 -3
- package/dist/operationalStatus.d.ts +5 -5
- package/dist/operationsRecord.d.ts +12 -12
- package/dist/ops.d.ts +12 -12
- package/dist/opsActionAuditRoutes.d.ts +3 -3
- package/dist/opsConsoleRoutes.d.ts +6 -6
- package/dist/opsPresets.d.ts +2 -2
- package/dist/opsRecovery.d.ts +11 -11
- package/dist/opsRuntime.d.ts +6 -6
- package/dist/opsSinks.d.ts +13 -13
- package/dist/opsStatus.d.ts +7 -7
- package/dist/opsStatusRoutes.d.ts +2 -2
- package/dist/opsWebhook.d.ts +6 -6
- package/dist/outcomeContract.d.ts +5 -5
- package/dist/outcomeRecipes.d.ts +4 -4
- package/dist/phoneAgent.d.ts +18 -18
- package/dist/phoneAgentProductionSmoke.d.ts +8 -8
- package/dist/platformCoverage.d.ts +3 -3
- package/dist/plugin.d.ts +2 -2
- package/dist/postCallAnalysis.d.ts +6 -6
- package/dist/postgresStore.d.ts +8 -8
- package/dist/presets.d.ts +3 -3
- package/dist/productionReadiness.d.ts +62 -36
- package/dist/profileSwitchRecommendation.d.ts +15 -15
- package/dist/proofAssertions.d.ts +1 -1
- package/dist/proofPack.d.ts +12 -12
- package/dist/proofRunner.d.ts +5 -5
- package/dist/proofTrends.d.ts +17 -17
- package/dist/providerAdapters.d.ts +5 -5
- package/dist/providerCapabilities.d.ts +4 -4
- package/dist/providerDecisionTraces.d.ts +8 -8
- package/dist/providerHealth.d.ts +3 -3
- package/dist/providerOrchestration.d.ts +5 -5
- package/dist/providerRouterTraces.d.ts +7 -7
- package/dist/providerRoutingContract.d.ts +3 -3
- package/dist/providerSlo.d.ts +6 -6
- package/dist/providerStackRecommendations.d.ts +6 -6
- package/dist/qualityRoutes.d.ts +4 -4
- package/dist/queue.d.ts +16 -16
- package/dist/react/VoiceAgentSquadStatus.d.ts +1 -1
- package/dist/react/VoiceCallDebuggerLaunch.d.ts +1 -1
- package/dist/react/VoiceDeliveryRuntime.d.ts +1 -1
- package/dist/react/VoiceOpsActionCenter.d.ts +1 -1
- package/dist/react/VoiceOpsStatus.d.ts +1 -1
- package/dist/react/VoicePlatformCoverage.d.ts +1 -1
- package/dist/react/VoiceProfileComparison.d.ts +1 -1
- package/dist/react/VoiceProfileSwitchRecommendation.d.ts +1 -1
- package/dist/react/VoiceProofTrends.d.ts +1 -1
- package/dist/react/VoiceProviderCapabilities.d.ts +1 -1
- package/dist/react/VoiceProviderContracts.d.ts +1 -1
- package/dist/react/VoiceProviderSimulationControls.d.ts +1 -1
- package/dist/react/VoiceProviderStatus.d.ts +1 -1
- package/dist/react/VoiceReadinessFailures.d.ts +1 -1
- package/dist/react/VoiceRoutingStatus.d.ts +1 -1
- package/dist/react/VoiceSessionSnapshot.d.ts +1 -1
- package/dist/react/VoiceTraceTimeline.d.ts +1 -1
- package/dist/react/VoiceTurnLatency.d.ts +1 -1
- package/dist/react/VoiceTurnQuality.d.ts +1 -1
- package/dist/react/index.d.ts +43 -43
- package/dist/react/index.js +41 -15
- package/dist/react/useVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/react/useVoiceCallDebugger.d.ts +1 -1
- package/dist/react/useVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/react/useVoiceController.d.ts +1 -1
- package/dist/react/useVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/react/useVoiceLiveOps.d.ts +1 -1
- package/dist/react/useVoiceOpsActionCenter.d.ts +1 -1
- package/dist/react/useVoiceOpsStatus.d.ts +1 -1
- package/dist/react/useVoicePlatformCoverage.d.ts +1 -1
- package/dist/react/useVoiceProfileComparison.d.ts +1 -1
- package/dist/react/useVoiceProfileSwitchRecommendation.d.ts +1 -1
- package/dist/react/useVoiceProofTrends.d.ts +1 -1
- package/dist/react/useVoiceProviderCapabilities.d.ts +1 -1
- package/dist/react/useVoiceProviderContracts.d.ts +1 -1
- package/dist/react/useVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/react/useVoiceProviderStatus.d.ts +1 -1
- package/dist/react/useVoiceReadinessFailures.d.ts +1 -1
- package/dist/react/useVoiceRoutingStatus.d.ts +1 -1
- package/dist/react/useVoiceSessionSnapshot.d.ts +1 -1
- package/dist/react/useVoiceStream.d.ts +1 -1
- package/dist/react/useVoiceTraceTimeline.d.ts +1 -1
- package/dist/react/useVoiceTurnLatency.d.ts +1 -1
- package/dist/react/useVoiceTurnQuality.d.ts +1 -1
- package/dist/react/useVoiceWorkflowStatus.d.ts +1 -1
- package/dist/readinessProfiles.d.ts +22 -15
- package/dist/realtimeChannel.d.ts +6 -6
- package/dist/realtimeProviderContracts.d.ts +7 -7
- package/dist/reconnectContract.d.ts +6 -6
- package/dist/resilienceRoutes.d.ts +6 -6
- package/dist/routing.d.ts +1 -1
- package/dist/runtimeOps.d.ts +3 -3
- package/dist/s3Store.d.ts +3 -3
- package/dist/session.d.ts +1 -1
- package/dist/sessionReplay.d.ts +9 -9
- package/dist/sessionSnapshot.d.ts +8 -8
- package/dist/simulationSuite.d.ts +12 -12
- package/dist/sloCalibration.d.ts +8 -8
- package/dist/sqliteStore.d.ts +8 -8
- package/dist/store.d.ts +1 -1
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/svelte/createVoiceCallDebugger.d.ts +2 -2
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/svelte/createVoiceLiveOps.d.ts +2 -2
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +1 -1
- package/dist/svelte/createVoiceOpsStatus.d.ts +1 -1
- package/dist/svelte/createVoicePlatformCoverage.d.ts +1 -1
- package/dist/svelte/createVoiceProfileComparison.d.ts +1 -1
- package/dist/svelte/createVoiceProofTrends.d.ts +1 -1
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +1 -1
- package/dist/svelte/createVoiceProviderContracts.d.ts +1 -1
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/svelte/createVoiceProviderStatus.d.ts +1 -1
- package/dist/svelte/createVoiceReadinessFailures.d.ts +1 -1
- package/dist/svelte/createVoiceRoutingStatus.d.ts +1 -1
- package/dist/svelte/createVoiceSessionSnapshot.d.ts +2 -2
- package/dist/svelte/createVoiceStream.d.ts +1 -1
- package/dist/svelte/createVoiceTraceTimeline.d.ts +1 -1
- package/dist/svelte/createVoiceTurnLatency.d.ts +1 -1
- package/dist/svelte/createVoiceTurnQuality.d.ts +1 -1
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +1 -1
- package/dist/svelte/index.d.ts +23 -23
- package/dist/svelte/index.js +30 -8
- package/dist/telephony/contract.d.ts +5 -5
- package/dist/telephony/matrix.d.ts +4 -4
- package/dist/telephony/plivo.d.ts +30 -30
- package/dist/telephony/response.d.ts +1 -1
- package/dist/telephony/security.d.ts +17 -17
- package/dist/telephony/telnyx.d.ts +31 -31
- package/dist/telephony/twilio.d.ts +22 -22
- package/dist/telephonyMediaRoutes.d.ts +4 -4
- package/dist/telephonyOutcome.d.ts +13 -13
- package/dist/testing/accuracy.d.ts +1 -1
- package/dist/testing/benchmark.d.ts +9 -9
- package/dist/testing/corrected.d.ts +5 -5
- package/dist/testing/duplex.d.ts +3 -3
- package/dist/testing/fixtures.d.ts +3 -3
- package/dist/testing/index.d.ts +13 -13
- package/dist/testing/index.js +49 -20
- package/dist/testing/ioProviderSimulator.d.ts +5 -5
- package/dist/testing/providerSimulator.d.ts +5 -5
- package/dist/testing/review.d.ts +4 -4
- package/dist/testing/sessionBenchmark.d.ts +3 -3
- package/dist/testing/stt.d.ts +3 -3
- package/dist/testing/telephony.d.ts +3 -3
- package/dist/testing/tts.d.ts +1 -1
- package/dist/toolContract.d.ts +10 -10
- package/dist/toolRuntime.d.ts +3 -3
- package/dist/trace.d.ts +10 -10
- package/dist/traceDeliveryRoutes.d.ts +4 -4
- package/dist/traceTimeline.d.ts +4 -4
- package/dist/turnDetection.d.ts +1 -1
- package/dist/turnLatency.d.ts +4 -4
- package/dist/turnProfiles.d.ts +2 -2
- package/dist/turnQuality.d.ts +4 -4
- package/dist/types.d.ts +92 -92
- package/dist/voiceMonitoring.d.ts +6 -6
- package/dist/vue/VoiceOpsActionCenter.d.ts +2 -2
- package/dist/vue/VoiceProviderSimulationControls.d.ts +2 -2
- package/dist/vue/index.d.ts +38 -38
- package/dist/vue/index.js +41 -15
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/vue/useVoiceCallDebugger.d.ts +2 -2
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +2 -2
- package/dist/vue/useVoiceController.d.ts +1 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +2 -2
- package/dist/vue/useVoiceLiveOps.d.ts +1 -1
- package/dist/vue/useVoiceOpsActionCenter.d.ts +1 -1
- package/dist/vue/useVoiceOpsStatus.d.ts +2 -2
- package/dist/vue/useVoicePlatformCoverage.d.ts +2 -2
- package/dist/vue/useVoiceProfileComparison.d.ts +2 -2
- package/dist/vue/useVoiceProofTrends.d.ts +2 -2
- package/dist/vue/useVoiceProviderCapabilities.d.ts +2 -2
- package/dist/vue/useVoiceProviderContracts.d.ts +2 -2
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/vue/useVoiceProviderStatus.d.ts +2 -2
- package/dist/vue/useVoiceReadinessFailures.d.ts +30 -2
- package/dist/vue/useVoiceRoutingStatus.d.ts +1 -1
- package/dist/vue/useVoiceSessionSnapshot.d.ts +2 -2
- package/dist/vue/useVoiceStream.d.ts +1 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +2 -2
- package/dist/vue/useVoiceTurnLatency.d.ts +2 -2
- package/dist/vue/useVoiceTurnQuality.d.ts +2 -2
- package/dist/vue/useVoiceWorkflowStatus.d.ts +2 -2
- package/dist/workflowContract.d.ts +8 -8
- package/fixtures/manifest.json +356 -197
- package/package.json +260 -259
package/dist/agent.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { VoiceOnTurnObjectHandler, VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord, VoiceTurnRecord } from
|
|
2
|
-
import type { VoiceTraceEventStore } from
|
|
3
|
-
import type { VoiceToolRuntime } from
|
|
4
|
-
import { type VoiceAuditEventStore, type VoiceAuditLogger } from
|
|
5
|
-
export type VoiceAgentMessageRole =
|
|
1
|
+
import type { VoiceOnTurnObjectHandler, VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord, VoiceTurnRecord } from "./types";
|
|
2
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
3
|
+
import type { VoiceToolRuntime } from "./toolRuntime";
|
|
4
|
+
import { type VoiceAuditEventStore, type VoiceAuditLogger } from "./audit";
|
|
5
|
+
export type VoiceAgentMessageRole = "assistant" | "system" | "tool" | "user";
|
|
6
6
|
export type VoiceAgentMessage = {
|
|
7
7
|
content: string;
|
|
8
8
|
metadata?: Record<string, unknown>;
|
|
@@ -20,7 +20,7 @@ export type VoiceAgentToolResult<TResult = unknown> = {
|
|
|
20
20
|
error?: string;
|
|
21
21
|
metadata?: Record<string, unknown>;
|
|
22
22
|
result?: TResult;
|
|
23
|
-
status:
|
|
23
|
+
status: "error" | "ok";
|
|
24
24
|
toolCallId?: string;
|
|
25
25
|
toolName: string;
|
|
26
26
|
};
|
|
@@ -61,7 +61,7 @@ export type VoiceAgentModelOutput<TResult = unknown> = VoiceRouteResult<TResult>
|
|
|
61
61
|
export type VoiceAgentModel<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
62
62
|
generate: (input: VoiceAgentModelInput<TContext, TSession>) => Promise<VoiceAgentModelOutput<TResult>> | VoiceAgentModelOutput<TResult>;
|
|
63
63
|
};
|
|
64
|
-
export type VoiceAgentSquadHandoffStatus =
|
|
64
|
+
export type VoiceAgentSquadHandoffStatus = "allowed" | "blocked" | "max-exceeded" | "unknown-target";
|
|
65
65
|
export type VoiceAgentSquadStateHandoff = {
|
|
66
66
|
at: number;
|
|
67
67
|
fromAgentId: string;
|
|
@@ -82,14 +82,14 @@ export type VoiceAgentSquadState = {
|
|
|
82
82
|
};
|
|
83
83
|
export type VoiceAgentRunResult<TResult = unknown> = VoiceRouteResult<TResult> & {
|
|
84
84
|
agentId: string;
|
|
85
|
-
handoff?: VoiceAgentModelOutput<TResult>[
|
|
85
|
+
handoff?: VoiceAgentModelOutput<TResult>["handoff"];
|
|
86
86
|
messages: VoiceAgentMessage[];
|
|
87
87
|
squad?: VoiceAgentSquadState;
|
|
88
88
|
toolResults: VoiceAgentToolResult[];
|
|
89
89
|
};
|
|
90
90
|
export type VoiceAgentSquadHandoffPolicyResult<TResult = unknown> = {
|
|
91
91
|
allow?: boolean;
|
|
92
|
-
escalate?: VoiceRouteResult<TResult>[
|
|
92
|
+
escalate?: VoiceRouteResult<TResult>["escalate"];
|
|
93
93
|
metadata?: Record<string, unknown>;
|
|
94
94
|
reason?: string;
|
|
95
95
|
summary?: string;
|
|
@@ -135,7 +135,7 @@ export type VoiceAgentSquadOptions<TContext = unknown, TSession extends VoiceSes
|
|
|
135
135
|
handoffPolicy?: (input: {
|
|
136
136
|
context: TContext;
|
|
137
137
|
fromAgentId: string;
|
|
138
|
-
handoff: NonNullable<VoiceAgentModelOutput<TResult>[
|
|
138
|
+
handoff: NonNullable<VoiceAgentModelOutput<TResult>["handoff"]>;
|
|
139
139
|
messages: VoiceAgentMessage[];
|
|
140
140
|
session: TSession;
|
|
141
141
|
targetAgent?: VoiceAgent<TContext, TSession, TResult>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { VoiceAgent, VoiceAgentRunResult, VoiceAgentSquadHandoffStatus } from
|
|
2
|
-
import type { VoiceTraceEventStore } from
|
|
3
|
-
import type { VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord } from
|
|
4
|
-
export type VoiceAgentSquadContractOutcome =
|
|
1
|
+
import type { VoiceAgent, VoiceAgentRunResult, VoiceAgentSquadHandoffStatus } from "./agent";
|
|
2
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
3
|
+
import type { VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord } from "./types";
|
|
4
|
+
export type VoiceAgentSquadContractOutcome = "assistant" | "complete" | "escalate" | "no-answer" | "transfer" | "voicemail";
|
|
5
5
|
export type VoiceAgentSquadHandoffExpectation = {
|
|
6
6
|
fromAgentId?: string;
|
|
7
7
|
metadata?: Record<string, unknown>;
|
package/dist/angular/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { VoiceOpsStatusService } from
|
|
2
|
-
export { VoicePlatformCoverageService } from
|
|
3
|
-
export { VoiceProofTrendsService } from
|
|
4
|
-
export { VoiceCallDebuggerService } from
|
|
5
|
-
export { VoiceSessionSnapshotService } from
|
|
6
|
-
export { VoiceProfileComparisonService } from
|
|
7
|
-
export { VoiceReadinessFailuresService } from
|
|
8
|
-
export { VoiceOpsActionCenterService } from
|
|
9
|
-
export { VoiceLiveOpsService } from
|
|
10
|
-
export { VoiceDeliveryRuntimeService } from
|
|
11
|
-
export { VoiceCampaignDialerProofService } from
|
|
12
|
-
export { VoiceStreamService } from
|
|
13
|
-
export { VoiceControllerService } from
|
|
14
|
-
export { VoiceProviderCapabilitiesService } from
|
|
15
|
-
export { VoiceProviderContractsService } from
|
|
16
|
-
export { VoiceProviderStatusService } from
|
|
17
|
-
export { VoiceRoutingStatusService } from
|
|
18
|
-
export { VoiceTraceTimelineService } from
|
|
19
|
-
export { VoiceAgentSquadStatusService } from
|
|
20
|
-
export { VoiceTurnLatencyService } from
|
|
21
|
-
export { VoiceTurnQualityService } from
|
|
22
|
-
export { VoiceWorkflowStatusService } from
|
|
1
|
+
export { VoiceOpsStatusService } from "./voice-ops-status.service";
|
|
2
|
+
export { VoicePlatformCoverageService } from "./voice-platform-coverage.service";
|
|
3
|
+
export { VoiceProofTrendsService } from "./voice-proof-trends.service";
|
|
4
|
+
export { VoiceCallDebuggerService } from "./voice-call-debugger.service";
|
|
5
|
+
export { VoiceSessionSnapshotService } from "./voice-session-snapshot.service";
|
|
6
|
+
export { VoiceProfileComparisonService } from "./voice-profile-comparison.service";
|
|
7
|
+
export { VoiceReadinessFailuresService } from "./voice-readiness-failures.service";
|
|
8
|
+
export { VoiceOpsActionCenterService } from "./voice-ops-action-center.service";
|
|
9
|
+
export { VoiceLiveOpsService } from "./voice-live-ops.service";
|
|
10
|
+
export { VoiceDeliveryRuntimeService } from "./voice-delivery-runtime.service";
|
|
11
|
+
export { VoiceCampaignDialerProofService } from "./voice-campaign-dialer-proof.service";
|
|
12
|
+
export { VoiceStreamService } from "./voice-stream.service";
|
|
13
|
+
export { VoiceControllerService } from "./voice-controller.service";
|
|
14
|
+
export { VoiceProviderCapabilitiesService } from "./voice-provider-capabilities.service";
|
|
15
|
+
export { VoiceProviderContractsService } from "./voice-provider-contracts.service";
|
|
16
|
+
export { VoiceProviderStatusService } from "./voice-provider-status.service";
|
|
17
|
+
export { VoiceRoutingStatusService } from "./voice-routing-status.service";
|
|
18
|
+
export { VoiceTraceTimelineService } from "./voice-trace-timeline.service";
|
|
19
|
+
export { VoiceAgentSquadStatusService } from "./voice-agent-squad-status.service";
|
|
20
|
+
export { VoiceTurnLatencyService } from "./voice-turn-latency.service";
|
|
21
|
+
export { VoiceTurnQualityService } from "./voice-turn-quality.service";
|
|
22
|
+
export { VoiceWorkflowStatusService } from "./voice-workflow-status.service";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceAgentSquadStatusClientOptions, type VoiceAgentSquadStatusReport } from
|
|
1
|
+
import { type VoiceAgentSquadStatusClientOptions, type VoiceAgentSquadStatusReport } from "../client/agentSquadStatus";
|
|
2
2
|
export declare class VoiceAgentSquadStatusService {
|
|
3
3
|
connect(path?: string, options?: VoiceAgentSquadStatusClientOptions): {
|
|
4
4
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceCallDebuggerClientOptions } from
|
|
2
|
-
import type { VoiceCallDebuggerReport } from
|
|
1
|
+
import { type VoiceCallDebuggerClientOptions } from "../client/callDebugger";
|
|
2
|
+
import type { VoiceCallDebuggerReport } from "../callDebugger";
|
|
3
3
|
export declare class VoiceCallDebuggerService {
|
|
4
4
|
connect(path: string, options?: VoiceCallDebuggerClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceCampaignDialerProofClientOptions } from
|
|
2
|
-
import type { VoiceCampaignDialerProofReport, VoiceCampaignDialerProofStatus } from
|
|
1
|
+
import { type VoiceCampaignDialerProofClientOptions } from "../client/campaignDialerProof";
|
|
2
|
+
import type { VoiceCampaignDialerProofReport, VoiceCampaignDialerProofStatus } from "../campaignDialers";
|
|
3
3
|
export declare class VoiceCampaignDialerProofService {
|
|
4
4
|
connect(path?: string, options?: VoiceCampaignDialerProofClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceControllerOptions, VoiceTurnRecord } from
|
|
1
|
+
import type { VoiceControllerOptions, VoiceTurnRecord } from "../types";
|
|
2
2
|
export declare class VoiceControllerService {
|
|
3
3
|
connect<TResult = unknown>(path: string, options?: VoiceControllerOptions): {
|
|
4
4
|
assistantAudio: import("@angular/core").Signal<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from
|
|
2
|
-
import { type VoiceDeliveryRuntimeViewModel } from
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { type VoiceDeliveryRuntimeViewModel } from "../client/deliveryRuntimeWidget";
|
|
3
3
|
export declare class VoiceDeliveryRuntimeComponent implements OnDestroy, OnInit {
|
|
4
4
|
description?: string;
|
|
5
5
|
intervalMs?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceDeliveryRuntimeClientOptions } from
|
|
2
|
-
import type { VoiceDeliveryRuntimeReport } from
|
|
1
|
+
import { type VoiceDeliveryRuntimeClientOptions } from "../client/deliveryRuntime";
|
|
2
|
+
import type { VoiceDeliveryRuntimeReport } from "../deliveryRuntime";
|
|
3
3
|
export declare class VoiceDeliveryRuntimeService {
|
|
4
4
|
connect(path?: string, options?: VoiceDeliveryRuntimeClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceLiveOpsActionResult, type VoiceLiveOpsClientOptions } from
|
|
1
|
+
import { type VoiceLiveOpsActionResult, type VoiceLiveOpsClientOptions } from "../client/liveOps";
|
|
2
2
|
export declare class VoiceLiveOpsService {
|
|
3
3
|
connect(options?: VoiceLiveOpsClientOptions): {
|
|
4
4
|
close: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceOpsActionCenterClientOptions, type VoiceOpsActionDescriptor, type VoiceOpsActionRunResult } from
|
|
1
|
+
import { type VoiceOpsActionCenterClientOptions, type VoiceOpsActionDescriptor, type VoiceOpsActionRunResult } from "../client/opsActionCenter";
|
|
2
2
|
export declare class VoiceOpsActionCenterService {
|
|
3
3
|
connect(options?: VoiceOpsActionCenterClientOptions): {
|
|
4
4
|
actions: import("@angular/core").Signal<VoiceOpsActionDescriptor[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from
|
|
2
|
-
import { type VoiceOpsStatusViewModel } from
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { type VoiceOpsStatusViewModel } from "../client/opsStatusWidget";
|
|
3
3
|
export declare class VoiceOpsStatusComponent implements OnDestroy, OnInit {
|
|
4
4
|
description?: string;
|
|
5
5
|
includeLinks: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceOpsStatusClientOptions } from
|
|
2
|
-
import type { VoiceOpsStatusReport } from
|
|
1
|
+
import { type VoiceOpsStatusClientOptions } from "../client/opsStatus";
|
|
2
|
+
import type { VoiceOpsStatusReport } from "../opsStatus";
|
|
3
3
|
export declare class VoiceOpsStatusService {
|
|
4
4
|
connect(path?: string, options?: VoiceOpsStatusClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoicePlatformCoverageClientOptions } from
|
|
2
|
-
import type { VoicePlatformCoverageSummary } from
|
|
1
|
+
import { type VoicePlatformCoverageClientOptions } from "../client/platformCoverage";
|
|
2
|
+
import type { VoicePlatformCoverageSummary } from "../platformCoverage";
|
|
3
3
|
export declare class VoicePlatformCoverageService {
|
|
4
4
|
connect(path?: string, options?: VoicePlatformCoverageClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceProfileComparisonClientOptions } from
|
|
2
|
-
import type { VoiceRealCallProfileHistoryReport } from
|
|
1
|
+
import { type VoiceProfileComparisonClientOptions } from "../client/profileComparison";
|
|
2
|
+
import type { VoiceRealCallProfileHistoryReport } from "../proofTrends";
|
|
3
3
|
export declare class VoiceProfileComparisonService {
|
|
4
4
|
connect(path?: string, options?: VoiceProfileComparisonClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceProofTrendsClientOptions } from
|
|
2
|
-
import type { VoiceProofTrendReport } from
|
|
1
|
+
import { type VoiceProofTrendsClientOptions } from "../client/proofTrends";
|
|
2
|
+
import type { VoiceProofTrendReport } from "../proofTrends";
|
|
3
3
|
export declare class VoiceProofTrendsService {
|
|
4
4
|
connect(path?: string, options?: VoiceProofTrendsClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceProviderCapabilitiesClientOptions } from
|
|
2
|
-
import type { VoiceProviderCapabilityReport } from
|
|
1
|
+
import { type VoiceProviderCapabilitiesClientOptions } from "../client/providerCapabilities";
|
|
2
|
+
import type { VoiceProviderCapabilityReport } from "../providerCapabilities";
|
|
3
3
|
export declare class VoiceProviderCapabilitiesService {
|
|
4
4
|
connect<TProvider extends string = string>(path?: string, options?: VoiceProviderCapabilitiesClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceProviderContractsClientOptions } from
|
|
2
|
-
import type { VoiceProviderContractMatrixReport } from
|
|
1
|
+
import { type VoiceProviderContractsClientOptions } from "../client/providerContracts";
|
|
2
|
+
import type { VoiceProviderContractMatrixReport } from "../providerStackRecommendations";
|
|
3
3
|
export declare class VoiceProviderContractsService {
|
|
4
4
|
connect<TProvider extends string = string>(path?: string, options?: VoiceProviderContractsClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceProviderStatusClientOptions } from
|
|
2
|
-
import type { VoiceProviderHealthSummary } from
|
|
1
|
+
import { type VoiceProviderStatusClientOptions } from "../client/providerStatus";
|
|
2
|
+
import type { VoiceProviderHealthSummary } from "../providerHealth";
|
|
3
3
|
export declare class VoiceProviderStatusService {
|
|
4
4
|
connect<TProvider extends string = string>(path?: string, options?: VoiceProviderStatusClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceReadinessFailuresClientOptions } from
|
|
2
|
-
import type { VoiceProductionReadinessReport } from
|
|
1
|
+
import { type VoiceReadinessFailuresClientOptions } from "../client/readinessFailures";
|
|
2
|
+
import type { VoiceProductionReadinessReport } from "../productionReadiness";
|
|
3
3
|
export declare class VoiceReadinessFailuresService {
|
|
4
4
|
connect(path?: string, options?: VoiceReadinessFailuresClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceRoutingStatusClientOptions } from
|
|
1
|
+
import { type VoiceRoutingStatusClientOptions } from "../client/routingStatus";
|
|
2
2
|
export declare class VoiceRoutingStatusService {
|
|
3
3
|
connect(path?: string, options?: VoiceRoutingStatusClientOptions): {
|
|
4
4
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceSessionSnapshotClientOptions } from
|
|
2
|
-
import type { VoiceSessionSnapshot } from
|
|
1
|
+
import { type VoiceSessionSnapshotClientOptions } from "../client/sessionSnapshot";
|
|
2
|
+
import type { VoiceSessionSnapshot } from "../sessionSnapshot";
|
|
3
3
|
export declare class VoiceSessionSnapshotService {
|
|
4
4
|
connect(path: string, options?: VoiceSessionSnapshotClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceConnectionOptions, VoiceTurnRecord } from
|
|
1
|
+
import type { VoiceConnectionOptions, VoiceTurnRecord } from "../types";
|
|
2
2
|
export declare class VoiceStreamService {
|
|
3
3
|
connect<TResult = unknown>(path: string, options?: VoiceConnectionOptions): {
|
|
4
4
|
assistantAudio: import("@angular/core").Signal<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceTraceTimelineClientOptions } from
|
|
2
|
-
import type { VoiceTraceTimelineReport } from
|
|
1
|
+
import { type VoiceTraceTimelineClientOptions } from "../client/traceTimeline";
|
|
2
|
+
import type { VoiceTraceTimelineReport } from "../traceTimeline";
|
|
3
3
|
export declare class VoiceTraceTimelineService {
|
|
4
4
|
connect(path?: string, options?: VoiceTraceTimelineClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceTurnLatencyClientOptions } from
|
|
2
|
-
import type { VoiceTurnLatencyReport } from
|
|
1
|
+
import { type VoiceTurnLatencyClientOptions } from "../client/turnLatency";
|
|
2
|
+
import type { VoiceTurnLatencyReport } from "../turnLatency";
|
|
3
3
|
export declare class VoiceTurnLatencyService {
|
|
4
4
|
connect(path?: string, options?: VoiceTurnLatencyClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceTurnQualityClientOptions } from
|
|
2
|
-
import type { VoiceTurnQualityReport } from
|
|
1
|
+
import { type VoiceTurnQualityClientOptions } from "../client/turnQuality";
|
|
2
|
+
import type { VoiceTurnQualityReport } from "../turnQuality";
|
|
3
3
|
export declare class VoiceTurnQualityService {
|
|
4
4
|
connect(path?: string, options?: VoiceTurnQualityClientOptions): {
|
|
5
5
|
close: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceWorkflowStatusClientOptions } from
|
|
2
|
-
import type { VoiceScenarioEvalReport } from
|
|
1
|
+
import { type VoiceWorkflowStatusClientOptions } from "../client/workflowStatus";
|
|
2
|
+
import type { VoiceScenarioEvalReport } from "../evalRoutes";
|
|
3
3
|
export declare class VoiceWorkflowStatusService {
|
|
4
4
|
connect(path?: string, options?: VoiceWorkflowStatusClientOptions): {
|
|
5
5
|
close: () => void;
|
package/dist/assistant.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type VoiceAgent, type VoiceAgentModel, type VoiceAgentOptions, type VoiceAgentSquadOptions, type VoiceAgentTool } from
|
|
2
|
-
import { type VoiceOutcomeRecipeName, type VoiceOutcomeRecipeOptions } from
|
|
3
|
-
import { type VoiceAssistantMemoryHandle, type VoiceAssistantMemoryOptions } from
|
|
4
|
-
import type { VoiceNormalizedRouteConfig, VoiceOnTurnObjectHandler, VoiceRouteConfig, VoiceRouteResult, VoiceRuntimeOpsConfig, VoiceSessionRecord } from
|
|
5
|
-
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from
|
|
1
|
+
import { type VoiceAgent, type VoiceAgentModel, type VoiceAgentOptions, type VoiceAgentSquadOptions, type VoiceAgentTool } from "./agent";
|
|
2
|
+
import { type VoiceOutcomeRecipeName, type VoiceOutcomeRecipeOptions } from "./outcomeRecipes";
|
|
3
|
+
import { type VoiceAssistantMemoryHandle, type VoiceAssistantMemoryOptions } from "./assistantMemory";
|
|
4
|
+
import type { VoiceNormalizedRouteConfig, VoiceOnTurnObjectHandler, VoiceRouteConfig, VoiceRouteResult, VoiceRuntimeOpsConfig, VoiceSessionRecord } from "./types";
|
|
5
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from "./trace";
|
|
6
6
|
export type VoiceAssistantPreset = VoiceOutcomeRecipeName;
|
|
7
7
|
export type VoiceAssistantArtifactPlan<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
8
8
|
ops?: VoiceRuntimeOpsConfig<TContext, TSession, TResult>;
|
|
@@ -27,7 +27,7 @@ export type VoiceAssistantVariant<TContext = unknown, TSession extends VoiceSess
|
|
|
27
27
|
maxToolRounds?: number;
|
|
28
28
|
metadata?: Record<string, unknown>;
|
|
29
29
|
model?: VoiceAgentModel<TContext, TSession, TResult>;
|
|
30
|
-
system?: VoiceAgentOptions<TContext, TSession, TResult>[
|
|
30
|
+
system?: VoiceAgentOptions<TContext, TSession, TResult>["system"];
|
|
31
31
|
tools?: Array<VoiceAgentTool<TContext, TSession, Record<string, unknown>, unknown, TResult>>;
|
|
32
32
|
weight?: number;
|
|
33
33
|
};
|
|
@@ -76,7 +76,7 @@ type VoiceAssistantAgentSource<TContext, TSession extends VoiceSessionRecord, TR
|
|
|
76
76
|
maxHandoffsPerTurn?: number;
|
|
77
77
|
maxToolRounds?: never;
|
|
78
78
|
model?: never;
|
|
79
|
-
selectAgent?: VoiceAgentSquadOptions<TContext, TSession, TResult>[
|
|
79
|
+
selectAgent?: VoiceAgentSquadOptions<TContext, TSession, TResult>["selectAgent"];
|
|
80
80
|
system?: never;
|
|
81
81
|
tools?: never;
|
|
82
82
|
} | {
|
|
@@ -87,7 +87,7 @@ type VoiceAssistantAgentSource<TContext, TSession extends VoiceSessionRecord, TR
|
|
|
87
87
|
maxToolRounds?: number;
|
|
88
88
|
model: VoiceAgentModel<TContext, TSession, TResult>;
|
|
89
89
|
selectAgent?: never;
|
|
90
|
-
system?: VoiceAgentOptions<TContext, TSession, TResult>[
|
|
90
|
+
system?: VoiceAgentOptions<TContext, TSession, TResult>["system"];
|
|
91
91
|
tools?: Array<VoiceAgentTool<TContext, TSession, Record<string, unknown>, unknown, TResult>>;
|
|
92
92
|
};
|
|
93
93
|
export type VoiceAssistantOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = VoiceAssistantAgentSource<TContext, TSession, TResult> & {
|
|
@@ -98,15 +98,15 @@ export type VoiceAssistantOptions<TContext = unknown, TSession extends VoiceSess
|
|
|
98
98
|
memory?: VoiceAssistantMemoryOptions<TContext, TSession>;
|
|
99
99
|
memoryLifecycle?: VoiceAssistantMemoryLifecycle<TContext, TSession, TResult>;
|
|
100
100
|
ops?: VoiceRuntimeOpsConfig<TContext, TSession, TResult>;
|
|
101
|
-
trace?: VoiceAgentOptions<TContext, TSession, TResult>[
|
|
101
|
+
trace?: VoiceAgentOptions<TContext, TSession, TResult>["trace"];
|
|
102
102
|
};
|
|
103
103
|
export type VoiceAssistant<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
104
104
|
agent: VoiceAgent<TContext, TSession, TResult>;
|
|
105
105
|
id: string;
|
|
106
106
|
onTurn: VoiceOnTurnObjectHandler<TContext, TSession, TResult>;
|
|
107
107
|
ops?: VoiceRuntimeOpsConfig<TContext, TSession, TResult>;
|
|
108
|
-
route: (overrides: Omit<VoiceRouteConfig<TContext, TSession, TResult>,
|
|
109
|
-
onComplete?: VoiceRouteConfig<TContext, TSession, TResult>[
|
|
108
|
+
route: (overrides: Omit<VoiceRouteConfig<TContext, TSession, TResult>, "onComplete" | "onTurn"> & {
|
|
109
|
+
onComplete?: VoiceRouteConfig<TContext, TSession, TResult>["onComplete"];
|
|
110
110
|
}) => VoiceNormalizedRouteConfig<TContext, TSession, TResult>;
|
|
111
111
|
};
|
|
112
112
|
export type VoiceAssistantRunSummary = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceAssistantRunsSummary } from
|
|
3
|
-
import { type VoiceProviderHealthSummary } from
|
|
4
|
-
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceAssistantRunsSummary } from "./assistant";
|
|
3
|
+
import { type VoiceProviderHealthSummary } from "./providerHealth";
|
|
4
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from "./trace";
|
|
5
5
|
export type VoiceAssistantHealthFailure = {
|
|
6
6
|
at: number;
|
|
7
7
|
assistantId?: string;
|
|
@@ -12,7 +12,7 @@ export type VoiceAssistantHealthFailure = {
|
|
|
12
12
|
sessionId: string;
|
|
13
13
|
status?: string;
|
|
14
14
|
turnId?: string;
|
|
15
|
-
type: StoredVoiceTraceEvent[
|
|
15
|
+
type: StoredVoiceTraceEvent["type"];
|
|
16
16
|
};
|
|
17
17
|
export type VoiceAssistantHealthSummary<TProvider extends string = string> = {
|
|
18
18
|
assistantRuns: VoiceAssistantRunsSummary;
|
|
@@ -23,7 +23,7 @@ export type VoiceAssistantHealthSummaryOptions<TProvider extends string = string
|
|
|
23
23
|
events?: StoredVoiceTraceEvent[];
|
|
24
24
|
maxFailures?: number;
|
|
25
25
|
providers?: readonly TProvider[];
|
|
26
|
-
replayHref?: false | string | ((failure: Omit<VoiceAssistantHealthFailure,
|
|
26
|
+
replayHref?: false | string | ((failure: Omit<VoiceAssistantHealthFailure, "replayHref">) => string);
|
|
27
27
|
store?: VoiceTraceEventStore;
|
|
28
28
|
};
|
|
29
29
|
export type VoiceAssistantHealthHTMLHandlerOptions<TProvider extends string = string> = VoiceAssistantHealthSummaryOptions<TProvider> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VoiceSessionRecord } from
|
|
2
|
-
import type { VoiceTraceEventStore } from
|
|
1
|
+
import type { VoiceSessionRecord } from "./types";
|
|
2
|
+
import type { VoiceTraceEventStore } from "./trace";
|
|
3
3
|
export type VoiceAssistantMemoryRecord<TValue = unknown, TMetadata extends Record<string, unknown> = Record<string, unknown>> = {
|
|
4
4
|
assistantId: string;
|
|
5
5
|
createdAt: number;
|
|
@@ -24,7 +24,7 @@ export type VoiceAssistantMemoryStore<TRecord extends VoiceAssistantMemoryRecord
|
|
|
24
24
|
assistantId: string;
|
|
25
25
|
namespace?: string;
|
|
26
26
|
}) => Promise<TRecord[]>;
|
|
27
|
-
set: (input: Omit<TRecord,
|
|
27
|
+
set: (input: Omit<TRecord, "createdAt" | "updatedAt"> & {
|
|
28
28
|
createdAt?: number;
|
|
29
29
|
updatedAt?: number;
|
|
30
30
|
}) => Promise<TRecord>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AudioChunk, VoiceAudioConditioningConfig, VoiceResolvedAudioConditioningConfig } from
|
|
1
|
+
import type { AudioChunk, VoiceAudioConditioningConfig, VoiceResolvedAudioConditioningConfig } from "./types";
|
|
2
2
|
export declare const resolveAudioConditioningConfig: (config?: VoiceAudioConditioningConfig) => VoiceResolvedAudioConditioningConfig | undefined;
|
|
3
3
|
export declare const conditionAudioChunk: (audio: AudioChunk, config?: VoiceResolvedAudioConditioningConfig) => AudioChunk;
|
package/dist/audit.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export type VoiceAuditEventType =
|
|
1
|
+
export type VoiceAuditEventType = "handoff" | "operator.action" | "profile.switch" | "provider.call" | "retention.policy" | "tool.call";
|
|
2
2
|
export type VoiceAuditActor = {
|
|
3
3
|
id: string;
|
|
4
|
-
kind:
|
|
4
|
+
kind: "agent" | "operator" | "system" | "worker";
|
|
5
5
|
name?: string;
|
|
6
6
|
};
|
|
7
7
|
export type VoiceAuditResource = {
|
|
8
8
|
id?: string;
|
|
9
9
|
type: string;
|
|
10
10
|
};
|
|
11
|
-
export type VoiceAuditOutcome =
|
|
11
|
+
export type VoiceAuditOutcome = "error" | "skipped" | "success";
|
|
12
12
|
export type VoiceAuditEvent<TPayload extends Record<string, unknown> = Record<string, unknown>> = {
|
|
13
13
|
action: string;
|
|
14
14
|
actor?: VoiceAuditActor;
|
|
@@ -22,7 +22,7 @@ export type VoiceAuditEvent<TPayload extends Record<string, unknown> = Record<st
|
|
|
22
22
|
traceId?: string;
|
|
23
23
|
type: VoiceAuditEventType;
|
|
24
24
|
};
|
|
25
|
-
export type StoredVoiceAuditEvent<TPayload extends Record<string, unknown> = Record<string, unknown>> = Omit<VoiceAuditEvent<TPayload>,
|
|
25
|
+
export type StoredVoiceAuditEvent<TPayload extends Record<string, unknown> = Record<string, unknown>> = Omit<VoiceAuditEvent<TPayload>, "at" | "id"> & {
|
|
26
26
|
at: number;
|
|
27
27
|
id: string;
|
|
28
28
|
};
|
|
@@ -34,7 +34,7 @@ export type VoiceAuditEventFilter = {
|
|
|
34
34
|
beforeOrAt?: number;
|
|
35
35
|
limit?: number;
|
|
36
36
|
outcome?: VoiceAuditOutcome | VoiceAuditOutcome[];
|
|
37
|
-
readWindow?:
|
|
37
|
+
readWindow?: "recent";
|
|
38
38
|
resourceId?: string;
|
|
39
39
|
resourceType?: string;
|
|
40
40
|
sessionId?: string;
|
|
@@ -48,19 +48,19 @@ export type VoiceAuditEventStore<TEvent extends StoredVoiceAuditEvent = StoredVo
|
|
|
48
48
|
};
|
|
49
49
|
export type VoiceScopedAuditEventStoreOptions = VoiceAuditEventFilter;
|
|
50
50
|
export type VoiceAuditLogger = {
|
|
51
|
-
handoff: (input: Omit<VoiceHandoffAuditEventInput,
|
|
52
|
-
operatorAction: (input: Omit<VoiceOperatorAuditEventInput,
|
|
53
|
-
providerCall: (input: Omit<VoiceProviderAuditEventInput,
|
|
51
|
+
handoff: (input: Omit<VoiceHandoffAuditEventInput, "store">) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
52
|
+
operatorAction: (input: Omit<VoiceOperatorAuditEventInput, "store">) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
53
|
+
providerCall: (input: Omit<VoiceProviderAuditEventInput, "store">) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
54
54
|
record: (event: VoiceAuditEvent) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
55
|
-
retention: (input: Omit<VoiceRetentionAuditEventInput,
|
|
56
|
-
toolCall: (input: Omit<VoiceToolAuditEventInput,
|
|
55
|
+
retention: (input: Omit<VoiceRetentionAuditEventInput, "store">) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
56
|
+
toolCall: (input: Omit<VoiceToolAuditEventInput, "store">) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
57
57
|
};
|
|
58
58
|
export type VoiceProviderAuditEventInput = {
|
|
59
59
|
actor?: VoiceAuditActor;
|
|
60
60
|
cost?: Record<string, unknown>;
|
|
61
61
|
elapsedMs?: number;
|
|
62
62
|
error?: string;
|
|
63
|
-
kind:
|
|
63
|
+
kind: "llm" | "stt" | "tts" | string;
|
|
64
64
|
metadata?: Record<string, unknown>;
|
|
65
65
|
model?: string;
|
|
66
66
|
outcome: VoiceAuditOutcome;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceAuditSinkDeliveryQueueStatus, type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryRecord, type VoiceAuditSinkDeliveryStore, type VoiceAuditSinkDeliveryWorkerResult } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceAuditSinkDeliveryQueueStatus, type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryRecord, type VoiceAuditSinkDeliveryStore, type VoiceAuditSinkDeliveryWorkerResult } from "./auditSinks";
|
|
3
3
|
export type VoiceAuditDeliveryReport = {
|
|
4
4
|
checkedAt: number;
|
|
5
5
|
deliveries: VoiceAuditSinkDeliveryRecord[];
|
|
@@ -15,7 +15,7 @@ export type VoiceAuditDeliveryDrainReport = VoiceAuditSinkDeliveryWorkerResult &
|
|
|
15
15
|
export type VoiceAuditDeliveryFilter = {
|
|
16
16
|
limit?: number;
|
|
17
17
|
q?: string;
|
|
18
|
-
status?: VoiceAuditSinkDeliveryQueueStatus |
|
|
18
|
+
status?: VoiceAuditSinkDeliveryQueueStatus | "all";
|
|
19
19
|
};
|
|
20
20
|
export type VoiceAuditDeliveryRoutesOptions = {
|
|
21
21
|
deadLetters?: VoiceAuditSinkDeliveryStore;
|
package/dist/auditExport.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { StoredVoiceAuditEvent, VoiceAuditEventFilter, VoiceAuditEventStore } from
|
|
2
|
-
import { type VoiceTraceRedactionConfig } from
|
|
3
|
-
import { type VoiceAuditTrailSummary } from
|
|
1
|
+
import type { StoredVoiceAuditEvent, VoiceAuditEventFilter, VoiceAuditEventStore } from "./audit";
|
|
2
|
+
import { type VoiceTraceRedactionConfig } from "./trace";
|
|
3
|
+
import { type VoiceAuditTrailSummary } from "./auditRoutes";
|
|
4
4
|
export type VoiceAuditExport = {
|
|
5
5
|
events: StoredVoiceAuditEvent[];
|
|
6
6
|
exportedAt: number;
|
package/dist/auditRoutes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { StoredVoiceAuditEvent, VoiceAuditEventFilter, VoiceAuditEventStore, VoiceAuditEventType } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { StoredVoiceAuditEvent, VoiceAuditEventFilter, VoiceAuditEventStore, VoiceAuditEventType } from "./audit";
|
|
3
3
|
export type VoiceAuditTrailSummary = {
|
|
4
4
|
byActor: Array<[string, number]>;
|
|
5
5
|
byOutcome: Array<[string, number]>;
|
package/dist/auditSinks.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { S3Client, S3Options } from
|
|
2
|
-
import type { StoredVoiceAuditEvent, VoiceAuditEventStore, VoiceAuditEventType } from
|
|
3
|
-
import type { VoiceIdempotencyStore, VoiceRedisTaskLeaseCoordinator } from
|
|
4
|
-
import type { VoiceTraceRedactionConfig } from
|
|
5
|
-
export type VoiceAuditSinkDeliveryStatus =
|
|
6
|
-
export type VoiceAuditSinkDeliveryQueueStatus = VoiceAuditSinkDeliveryStatus |
|
|
1
|
+
import type { S3Client, S3Options } from "bun";
|
|
2
|
+
import type { StoredVoiceAuditEvent, VoiceAuditEventStore, VoiceAuditEventType } from "./audit";
|
|
3
|
+
import type { VoiceIdempotencyStore, VoiceRedisTaskLeaseCoordinator } from "./queue";
|
|
4
|
+
import type { VoiceTraceRedactionConfig } from "./trace";
|
|
5
|
+
export type VoiceAuditSinkDeliveryStatus = "delivered" | "failed" | "skipped";
|
|
6
|
+
export type VoiceAuditSinkDeliveryQueueStatus = VoiceAuditSinkDeliveryStatus | "pending";
|
|
7
7
|
export type VoiceAuditSinkDeliveryResult = {
|
|
8
8
|
attempts: number;
|
|
9
9
|
deliveredAt?: number;
|
|
@@ -54,7 +54,7 @@ export type VoiceAuditHTTPSinkOptions<TBody extends Record<string, unknown> = Re
|
|
|
54
54
|
headers?: Record<string, string>;
|
|
55
55
|
id: string;
|
|
56
56
|
kind?: string;
|
|
57
|
-
method?:
|
|
57
|
+
method?: "POST" | "PUT" | "PATCH";
|
|
58
58
|
retries?: number;
|
|
59
59
|
signingSecret?: string;
|
|
60
60
|
timeoutMs?: number;
|
|
@@ -63,7 +63,7 @@ export type VoiceAuditHTTPSinkOptions<TBody extends Record<string, unknown> = Re
|
|
|
63
63
|
export type VoiceS3AuditSinkFile = {
|
|
64
64
|
write: (data: string, options?: BlobPropertyBag) => Promise<number> | number;
|
|
65
65
|
};
|
|
66
|
-
export type VoiceS3AuditSinkClient = Pick<S3Client,
|
|
66
|
+
export type VoiceS3AuditSinkClient = Pick<S3Client, "file">;
|
|
67
67
|
export type VoiceAuditS3SinkOptions<TBody extends Record<string, unknown> = Record<string, unknown>> = S3Options & {
|
|
68
68
|
body?: (input: {
|
|
69
69
|
events: StoredVoiceAuditEvent[];
|
package/dist/bargeInRoutes.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from
|
|
3
|
-
import type { VoiceBargeInMonitorSnapshot } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from "./trace";
|
|
3
|
+
import type { VoiceBargeInMonitorSnapshot } from "./types";
|
|
4
4
|
export type VoiceBargeInRoutesOptions = {
|
|
5
5
|
headers?: HeadersInit;
|
|
6
6
|
htmlPath?: string;
|