@absolutejs/voice 0.0.22-beta.26 → 0.0.22-beta.260
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 +3234 -228
- package/dist/agent.d.ts +62 -0
- package/dist/agentSquadContract.d.ts +98 -0
- package/dist/angular/index.d.ts +15 -0
- package/dist/angular/index.js +3387 -1093
- package/dist/angular/voice-agent-squad-status.service.d.ts +12 -0
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +14 -0
- package/dist/angular/voice-controller.service.d.ts +1 -0
- package/dist/angular/voice-delivery-runtime.component.d.ts +17 -0
- package/dist/angular/voice-delivery-runtime.service.d.ts +16 -0
- package/dist/angular/voice-live-ops.service.d.ts +11 -0
- package/dist/angular/voice-ops-action-center.service.d.ts +13 -0
- package/dist/angular/voice-ops-status.component.d.ts +15 -0
- package/dist/angular/voice-ops-status.service.d.ts +12 -0
- package/dist/angular/voice-platform-coverage.service.d.ts +12 -0
- package/dist/angular/voice-proof-trends.service.d.ts +12 -0
- package/dist/angular/voice-provider-capabilities.service.d.ts +12 -0
- package/dist/angular/voice-provider-contracts.service.d.ts +12 -0
- package/dist/angular/voice-routing-status.service.d.ts +11 -0
- package/dist/angular/voice-stream.service.d.ts +3 -0
- package/dist/angular/voice-trace-timeline.service.d.ts +12 -0
- package/dist/angular/voice-turn-latency.service.d.ts +13 -0
- package/dist/angular/voice-turn-quality.service.d.ts +12 -0
- package/dist/angular/voice-workflow-status.service.d.ts +12 -0
- package/dist/audit.d.ts +128 -0
- package/dist/auditDeliveryRoutes.d.ts +85 -0
- package/dist/auditExport.d.ts +34 -0
- package/dist/auditRoutes.d.ts +66 -0
- package/dist/auditSinks.d.ts +151 -0
- package/dist/bargeInRoutes.d.ts +56 -0
- package/dist/campaign.d.ts +768 -0
- package/dist/campaignDialers.d.ts +111 -0
- package/dist/client/actions.d.ts +105 -0
- package/dist/client/agentSquadStatus.d.ts +37 -0
- package/dist/client/agentSquadStatusWidget.d.ts +24 -0
- package/dist/client/bargeInMonitor.d.ts +7 -0
- package/dist/client/campaignDialerProof.d.ts +23 -0
- package/dist/client/connection.d.ts +3 -0
- package/dist/client/deliveryRuntime.d.ts +34 -0
- package/dist/client/deliveryRuntimeWidget.d.ts +37 -0
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmxBootstrap.js +747 -15
- package/dist/client/index.d.ts +66 -0
- package/dist/client/index.js +4972 -21
- package/dist/client/liveOps.d.ts +22 -0
- package/dist/client/liveOpsWidget.d.ts +23 -0
- package/dist/client/liveTurnLatency.d.ts +41 -0
- package/dist/client/opsActionCenter.d.ts +54 -0
- package/dist/client/opsActionCenterWidget.d.ts +29 -0
- package/dist/client/opsActionHistory.d.ts +19 -0
- package/dist/client/opsActionHistoryWidget.d.ts +11 -0
- package/dist/client/opsStatus.d.ts +19 -0
- package/dist/client/opsStatusWidget.d.ts +40 -0
- package/dist/client/platformCoverage.d.ts +19 -0
- package/dist/client/platformCoverageWidget.d.ts +37 -0
- package/dist/client/proofTrends.d.ts +19 -0
- package/dist/client/proofTrendsWidget.d.ts +37 -0
- package/dist/client/providerCapabilities.d.ts +19 -0
- package/dist/client/providerCapabilitiesWidget.d.ts +32 -0
- package/dist/client/providerContracts.d.ts +19 -0
- package/dist/client/providerContractsWidget.d.ts +37 -0
- package/dist/client/providerSimulationControls.d.ts +33 -0
- package/dist/client/providerSimulationControlsWidget.d.ts +20 -0
- package/dist/client/providerStatusWidget.d.ts +32 -0
- package/dist/client/routingStatus.d.ts +19 -0
- package/dist/client/routingStatusWidget.d.ts +28 -0
- package/dist/client/traceTimeline.d.ts +19 -0
- package/dist/client/traceTimelineWidget.d.ts +36 -0
- package/dist/client/turnLatency.d.ts +22 -0
- package/dist/client/turnLatencyWidget.d.ts +33 -0
- package/dist/client/turnQuality.d.ts +19 -0
- package/dist/client/turnQualityWidget.d.ts +32 -0
- package/dist/client/workflowStatus.d.ts +19 -0
- package/dist/dataControl.d.ts +180 -0
- package/dist/deliveryRuntime.d.ts +158 -0
- package/dist/deliverySinkRoutes.d.ts +117 -0
- package/dist/demoReadyRoutes.d.ts +98 -0
- package/dist/diagnosticsRoutes.d.ts +44 -0
- package/dist/evalRoutes.d.ts +219 -0
- package/dist/fileStore.d.ts +14 -2
- package/dist/guardrails.d.ts +128 -0
- package/dist/handoff.d.ts +54 -0
- package/dist/handoffHealth.d.ts +94 -0
- package/dist/incidentBundle.d.ts +116 -0
- package/dist/index.d.ts +132 -13
- package/dist/index.js +25379 -4971
- package/dist/latencySlo.d.ts +56 -0
- package/dist/liveLatency.d.ts +78 -0
- package/dist/liveOps.d.ts +122 -0
- package/dist/modelAdapters.d.ts +23 -2
- package/dist/observabilityExport.d.ts +481 -0
- package/dist/openaiRealtime.d.ts +27 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/operationsRecord.d.ts +210 -0
- package/dist/opsActionAuditRoutes.d.ts +99 -0
- package/dist/opsConsoleRoutes.d.ts +80 -0
- package/dist/opsRecovery.d.ts +137 -0
- package/dist/opsStatus.d.ts +76 -0
- package/dist/opsStatusRoutes.d.ts +33 -0
- package/dist/outcomeContract.d.ts +146 -0
- package/dist/phoneAgent.d.ts +116 -0
- package/dist/phoneAgentProductionSmoke.d.ts +115 -0
- package/dist/platformCoverage.d.ts +91 -0
- package/dist/postCallAnalysis.d.ts +98 -0
- package/dist/postgresStore.d.ts +13 -2
- package/dist/productionReadiness.d.ts +484 -0
- package/dist/proofTrends.d.ts +133 -0
- package/dist/providerAdapters.d.ts +48 -0
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerHealth.d.ts +1 -0
- package/dist/providerRoutingContract.d.ts +71 -0
- package/dist/providerSlo.d.ts +142 -0
- package/dist/providerStackRecommendations.d.ts +187 -0
- package/dist/qualityRoutes.d.ts +76 -0
- package/dist/queue.d.ts +61 -0
- package/dist/react/VoiceAgentSquadStatus.d.ts +5 -0
- package/dist/react/VoiceDeliveryRuntime.d.ts +7 -0
- package/dist/react/VoiceOpsActionCenter.d.ts +5 -0
- package/dist/react/VoiceOpsStatus.d.ts +6 -0
- package/dist/react/VoicePlatformCoverage.d.ts +6 -0
- package/dist/react/VoiceProofTrends.d.ts +6 -0
- package/dist/react/VoiceProviderCapabilities.d.ts +6 -0
- package/dist/react/VoiceProviderContracts.d.ts +6 -0
- package/dist/react/VoiceProviderSimulationControls.d.ts +5 -0
- package/dist/react/VoiceProviderStatus.d.ts +6 -0
- package/dist/react/VoiceRoutingStatus.d.ts +6 -0
- package/dist/react/VoiceTraceTimeline.d.ts +6 -0
- package/dist/react/VoiceTurnLatency.d.ts +6 -0
- package/dist/react/VoiceTurnQuality.d.ts +6 -0
- package/dist/react/index.d.ts +30 -0
- package/dist/react/index.js +4817 -33
- package/dist/react/useVoiceAgentSquadStatus.d.ts +8 -0
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +3 -0
- package/dist/react/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/react/useVoiceLiveOps.d.ts +9 -0
- package/dist/react/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/react/useVoiceOpsStatus.d.ts +8 -0
- package/dist/react/useVoicePlatformCoverage.d.ts +8 -0
- package/dist/react/useVoiceProofTrends.d.ts +8 -0
- package/dist/react/useVoiceProviderCapabilities.d.ts +8 -0
- package/dist/react/useVoiceProviderContracts.d.ts +8 -0
- package/dist/react/useVoiceProviderSimulationControls.d.ts +10 -0
- package/dist/react/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/react/useVoiceStream.d.ts +3 -0
- package/dist/react/useVoiceTraceTimeline.d.ts +8 -0
- package/dist/react/useVoiceTurnLatency.d.ts +9 -0
- package/dist/react/useVoiceTurnQuality.d.ts +8 -0
- package/dist/react/useVoiceWorkflowStatus.d.ts +8 -0
- package/dist/readinessProfiles.d.ts +37 -0
- package/dist/reconnectContract.d.ts +87 -0
- package/dist/resilienceRoutes.d.ts +143 -0
- package/dist/sessionReplay.d.ts +12 -0
- package/dist/simulationSuite.d.ts +143 -0
- package/dist/sqliteStore.d.ts +13 -2
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +9 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +11 -0
- package/dist/svelte/createVoiceLiveOps.d.ts +13 -0
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +10 -0
- package/dist/svelte/createVoiceOpsStatus.d.ts +9 -0
- package/dist/svelte/createVoicePlatformCoverage.d.ts +7 -0
- package/dist/svelte/createVoiceProofTrends.d.ts +7 -0
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +10 -0
- package/dist/svelte/createVoiceProviderContracts.d.ts +10 -0
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +11 -0
- package/dist/svelte/createVoiceProviderStatus.d.ts +4 -2
- package/dist/svelte/createVoiceRoutingStatus.d.ts +10 -0
- package/dist/svelte/createVoiceTraceTimeline.d.ts +10 -0
- package/dist/svelte/createVoiceTurnLatency.d.ts +11 -0
- package/dist/svelte/createVoiceTurnQuality.d.ts +10 -0
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +8 -0
- package/dist/svelte/index.d.ts +16 -0
- package/dist/svelte/index.js +4754 -439
- package/dist/telephony/contract.d.ts +61 -0
- package/dist/telephony/matrix.d.ts +97 -0
- package/dist/telephony/plivo.d.ts +254 -0
- package/dist/telephony/telnyx.d.ts +247 -0
- package/dist/telephony/twilio.d.ts +135 -2
- package/dist/telephonyOutcome.d.ts +201 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +2024 -69
- package/dist/testing/ioProviderSimulator.d.ts +41 -0
- package/dist/toolContract.d.ts +161 -0
- package/dist/toolRuntime.d.ts +50 -0
- package/dist/trace.d.ts +19 -1
- package/dist/traceDeliveryRoutes.d.ts +86 -0
- package/dist/traceTimeline.d.ts +97 -0
- package/dist/turnLatency.d.ts +95 -0
- package/dist/turnQuality.d.ts +94 -0
- package/dist/types.d.ts +180 -4
- package/dist/vue/VoiceDeliveryRuntime.d.ts +30 -0
- package/dist/vue/VoiceOpsActionCenter.d.ts +13 -0
- package/dist/vue/VoiceOpsStatus.d.ts +30 -0
- package/dist/vue/VoicePlatformCoverage.d.ts +23 -0
- package/dist/vue/VoiceProofTrends.d.ts +21 -0
- package/dist/vue/VoiceProviderCapabilities.d.ts +51 -0
- package/dist/vue/VoiceProviderContracts.d.ts +21 -0
- package/dist/vue/VoiceProviderSimulationControls.d.ts +88 -0
- package/dist/vue/VoiceProviderStatus.d.ts +51 -0
- package/dist/vue/VoiceRoutingStatus.d.ts +51 -0
- package/dist/vue/VoiceTurnLatency.d.ts +69 -0
- package/dist/vue/VoiceTurnQuality.d.ts +51 -0
- package/dist/vue/index.d.ts +28 -0
- package/dist/vue/index.js +4597 -57
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +11 -0
- package/dist/vue/useVoiceController.d.ts +2 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/vue/useVoiceLiveOps.d.ts +9 -0
- package/dist/vue/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/vue/useVoiceOpsStatus.d.ts +9 -0
- package/dist/vue/useVoicePlatformCoverage.d.ts +9 -0
- package/dist/vue/useVoiceProofTrends.d.ts +9 -0
- package/dist/vue/useVoiceProviderCapabilities.d.ts +9 -0
- package/dist/vue/useVoiceProviderContracts.d.ts +9 -0
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +24 -0
- package/dist/vue/useVoiceProviderStatus.d.ts +1 -1
- package/dist/vue/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceStream.d.ts +4 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +9 -0
- package/dist/vue/useVoiceTurnLatency.d.ts +10 -0
- package/dist/vue/useVoiceTurnQuality.d.ts +9 -0
- package/dist/vue/useVoiceWorkflowStatus.d.ts +9 -0
- package/dist/workflowContract.d.ts +91 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoiceAgentSquadSpecialist, type VoiceAgentSquadStatusClientOptions, type VoiceAgentSquadStatusReport } from '../client/agentSquadStatus';
|
|
2
|
+
export declare function useVoiceAgentSquadStatus(path?: string, options?: VoiceAgentSquadStatusClientOptions): {
|
|
3
|
+
current: import("vue").ShallowRef<VoiceAgentSquadSpecialist | undefined, VoiceAgentSquadSpecialist | undefined>;
|
|
4
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<import("..").VoiceTraceTimelineReport | null>;
|
|
7
|
+
report: import("vue").ShallowRef<VoiceAgentSquadStatusReport | undefined, VoiceAgentSquadStatusReport | undefined>;
|
|
8
|
+
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VoiceCampaignDialerProofClientOptions } from '../client/campaignDialerProof';
|
|
2
|
+
import type { VoiceCampaignDialerProofReport, VoiceCampaignDialerProofStatus } from '../campaignDialers';
|
|
3
|
+
export declare function useVoiceCampaignDialerProof(path?: string, options?: VoiceCampaignDialerProofClientOptions): {
|
|
4
|
+
error: import("vue").ShallowRef<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").ShallowRef<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<VoiceCampaignDialerProofStatus | undefined>;
|
|
7
|
+
report: import("vue").ShallowRef<VoiceCampaignDialerProofReport | undefined, VoiceCampaignDialerProofReport | undefined>;
|
|
8
|
+
runProof: () => Promise<VoiceCampaignDialerProofReport>;
|
|
9
|
+
status: import("vue").ShallowRef<VoiceCampaignDialerProofStatus | undefined, VoiceCampaignDialerProofStatus | undefined>;
|
|
10
|
+
updatedAt: import("vue").ShallowRef<number | undefined, number | undefined>;
|
|
11
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VoiceControllerOptions, VoiceTurnRecord } from '../types';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function useVoiceController<TResult = unknown>(path: string, options?: VoiceControllerOptions): {
|
|
3
3
|
assistantAudio: import("vue").ShallowRef<{
|
|
4
4
|
chunk: Uint8Array;
|
|
5
5
|
format: import("..").AudioFormat;
|
|
@@ -19,6 +19,7 @@ export declare const useVoiceController: <TResult = unknown>(path: string, optio
|
|
|
19
19
|
isConnected: import("vue").Ref<boolean, boolean>;
|
|
20
20
|
isRecording: import("vue").Ref<boolean, boolean>;
|
|
21
21
|
partial: import("vue").Ref<string, string>;
|
|
22
|
+
reconnect: import("vue").ShallowRef<import("..").VoiceReconnectClientState, import("..").VoiceReconnectClientState>;
|
|
22
23
|
recordingError: import("vue").Ref<string | null, string | null>;
|
|
23
24
|
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
24
25
|
sessionId: import("vue").Ref<string | null, string | null>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VoiceDeliveryRuntimeClientOptions } from '../client/deliveryRuntime';
|
|
2
|
+
import type { VoiceDeliveryRuntimeReport } from '../deliveryRuntime';
|
|
3
|
+
export declare function useVoiceDeliveryRuntime(path?: string, options?: VoiceDeliveryRuntimeClientOptions): {
|
|
4
|
+
actionError: import("vue").Ref<string | null, string | null>;
|
|
5
|
+
actionStatus: import("vue").Ref<"completed" | "failed" | "idle" | "running", "completed" | "failed" | "idle" | "running">;
|
|
6
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
7
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
8
|
+
requeueDeadLetters: () => Promise<import("../client").VoiceDeliveryRuntimeActionResult | undefined>;
|
|
9
|
+
refresh: () => Promise<VoiceDeliveryRuntimeReport | undefined>;
|
|
10
|
+
report: import("vue").ShallowRef<VoiceDeliveryRuntimeReport | undefined, VoiceDeliveryRuntimeReport | undefined>;
|
|
11
|
+
tick: () => Promise<import("../client").VoiceDeliveryRuntimeActionResult | undefined>;
|
|
12
|
+
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoiceLiveOpsClientOptions, type VoiceLiveOpsActionResult } from '../client/liveOps';
|
|
2
|
+
export declare function useVoiceLiveOps(options?: VoiceLiveOpsClientOptions): {
|
|
3
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
4
|
+
isRunning: import("vue").Ref<boolean, boolean>;
|
|
5
|
+
lastResult: import("vue").ShallowRef<VoiceLiveOpsActionResult | undefined, VoiceLiveOpsActionResult | undefined>;
|
|
6
|
+
run: (input: import("..").VoiceLiveOpsActionInput) => Promise<VoiceLiveOpsActionResult | undefined>;
|
|
7
|
+
runningAction: import("vue").Ref<"assign" | "create-task" | "escalate" | "force-handoff" | "inject-instruction" | "operator-takeover" | "pause-assistant" | "resume-assistant" | "tag" | undefined, "assign" | "create-task" | "escalate" | "force-handoff" | "inject-instruction" | "operator-takeover" | "pause-assistant" | "resume-assistant" | "tag" | undefined>;
|
|
8
|
+
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VoiceOpsActionCenterClientOptions, type VoiceOpsActionDescriptor, type VoiceOpsActionRunResult } from '../client/opsActionCenter';
|
|
2
|
+
export declare function useVoiceOpsActionCenter(options?: VoiceOpsActionCenterClientOptions): {
|
|
3
|
+
actions: import("vue").ShallowRef<VoiceOpsActionDescriptor[], VoiceOpsActionDescriptor[]>;
|
|
4
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
5
|
+
isRunning: import("vue").Ref<boolean, boolean>;
|
|
6
|
+
lastResult: import("vue").ShallowRef<VoiceOpsActionRunResult | undefined, VoiceOpsActionRunResult | undefined>;
|
|
7
|
+
run: (actionId: string) => Promise<VoiceOpsActionRunResult | undefined>;
|
|
8
|
+
runningActionId: import("vue").Ref<string | undefined, string | undefined>;
|
|
9
|
+
setActions: (actions: VoiceOpsActionDescriptor[]) => void;
|
|
10
|
+
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoiceOpsStatusClientOptions } from '../client/opsStatus';
|
|
2
|
+
import type { VoiceOpsStatusReport } from '../opsStatus';
|
|
3
|
+
export declare function useVoiceOpsStatus(path?: string, options?: VoiceOpsStatusClientOptions): {
|
|
4
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<VoiceOpsStatusReport | undefined>;
|
|
7
|
+
report: import("vue").ShallowRef<VoiceOpsStatusReport | undefined, VoiceOpsStatusReport | undefined>;
|
|
8
|
+
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoicePlatformCoverageClientOptions } from '../client/platformCoverage';
|
|
2
|
+
import type { VoicePlatformCoverageSummary } from '../platformCoverage';
|
|
3
|
+
export declare function useVoicePlatformCoverage(path?: string, options?: VoicePlatformCoverageClientOptions): {
|
|
4
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<VoicePlatformCoverageSummary | undefined>;
|
|
7
|
+
report: import("vue").ShallowRef<VoicePlatformCoverageSummary | undefined, VoicePlatformCoverageSummary | undefined>;
|
|
8
|
+
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoiceProofTrendsClientOptions } from '../client/proofTrends';
|
|
2
|
+
import type { VoiceProofTrendReport } from '../proofTrends';
|
|
3
|
+
export declare function useVoiceProofTrends(path?: string, options?: VoiceProofTrendsClientOptions): {
|
|
4
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<VoiceProofTrendReport | undefined>;
|
|
7
|
+
report: import("vue").ShallowRef<VoiceProofTrendReport | undefined, VoiceProofTrendReport | undefined>;
|
|
8
|
+
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoiceProviderCapabilitiesClientOptions } from '../client/providerCapabilities';
|
|
2
|
+
import type { VoiceProviderCapabilityReport } from '../providerCapabilities';
|
|
3
|
+
export declare function useVoiceProviderCapabilities<TProvider extends string = string>(path?: string, options?: VoiceProviderCapabilitiesClientOptions): {
|
|
4
|
+
error: import("vue").ShallowRef<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").ShallowRef<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<VoiceProviderCapabilityReport<TProvider> | undefined>;
|
|
7
|
+
report: import("vue").ShallowRef<VoiceProviderCapabilityReport<TProvider> | undefined, VoiceProviderCapabilityReport<TProvider> | undefined>;
|
|
8
|
+
updatedAt: import("vue").ShallowRef<number | undefined, number | undefined>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoiceProviderContractsClientOptions } from '../client/providerContracts';
|
|
2
|
+
import type { VoiceProviderContractMatrixReport } from '../providerStackRecommendations';
|
|
3
|
+
export declare function useVoiceProviderContracts<TProvider extends string = string>(path?: string, options?: VoiceProviderContractsClientOptions): {
|
|
4
|
+
error: import("vue").ShallowRef<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").ShallowRef<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<VoiceProviderContractMatrixReport<TProvider> | undefined>;
|
|
7
|
+
report: import("vue").ShallowRef<VoiceProviderContractMatrixReport<TProvider> | undefined, VoiceProviderContractMatrixReport<TProvider> | undefined>;
|
|
8
|
+
updatedAt: import("vue").ShallowRef<number | undefined, number | undefined>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type VoiceProviderSimulationControlsOptions } from '../client/providerSimulationControls';
|
|
2
|
+
export declare function useVoiceProviderSimulationControls<TProvider extends string = string>(options: VoiceProviderSimulationControlsOptions<TProvider>): {
|
|
3
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
4
|
+
isRunning: import("vue").Ref<boolean, boolean>;
|
|
5
|
+
lastResult: import("vue").Ref<{
|
|
6
|
+
fallbackProvider?: import("vue").UnwrapRef<TProvider> | undefined;
|
|
7
|
+
mode: import("../testing").VoiceIOProviderFailureSimulationMode;
|
|
8
|
+
provider: import("vue").UnwrapRef<TProvider>;
|
|
9
|
+
sessionId: string;
|
|
10
|
+
status: "simulated";
|
|
11
|
+
suppressedUntil?: number | undefined;
|
|
12
|
+
} | null, import("../testing").VoiceIOProviderFailureSimulationResult<TProvider> | {
|
|
13
|
+
fallbackProvider?: import("vue").UnwrapRef<TProvider> | undefined;
|
|
14
|
+
mode: import("../testing").VoiceIOProviderFailureSimulationMode;
|
|
15
|
+
provider: import("vue").UnwrapRef<TProvider>;
|
|
16
|
+
sessionId: string;
|
|
17
|
+
status: "simulated";
|
|
18
|
+
suppressedUntil?: number | undefined;
|
|
19
|
+
} | null>;
|
|
20
|
+
mode: import("vue").Ref<import("../testing").VoiceIOProviderFailureSimulationMode | null, import("../testing").VoiceIOProviderFailureSimulationMode | null>;
|
|
21
|
+
provider: [TProvider | null] extends [import("vue").Ref<any, any>] ? import("@vue/shared").IfAny<import("vue").Ref<any, any> & TProvider, import("vue").Ref<import("vue").Ref<any, any> & TProvider, import("vue").Ref<any, any> & TProvider>, import("vue").Ref<any, any> & TProvider> : import("vue").Ref<import("vue").UnwrapRef<TProvider> | null, TProvider | import("vue").UnwrapRef<TProvider> | null>;
|
|
22
|
+
run: (provider: TProvider, mode: import("../testing").VoiceIOProviderFailureSimulationMode) => Promise<import("../testing").VoiceIOProviderFailureSimulationResult<TProvider> | null>;
|
|
23
|
+
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
24
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VoiceProviderStatusClientOptions } from '../client/providerStatus';
|
|
2
2
|
import type { VoiceProviderHealthSummary } from '../providerHealth';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function useVoiceProviderStatus<TProvider extends string = string>(path?: string, options?: VoiceProviderStatusClientOptions): {
|
|
4
4
|
error: import("vue").Ref<string | null, string | null>;
|
|
5
5
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
6
|
providers: import("vue").ShallowRef<VoiceProviderHealthSummary<TProvider>[], VoiceProviderHealthSummary<TProvider>[]>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VoiceRoutingStatusClientOptions } from '../client/routingStatus';
|
|
2
|
+
export declare function useVoiceRoutingStatus(path?: string, options?: VoiceRoutingStatusClientOptions): {
|
|
3
|
+
decision: import("vue").ShallowRef<import("..").VoiceRoutingEvent | null, import("..").VoiceRoutingEvent | null>;
|
|
4
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<import("..").VoiceRoutingEvent | null>;
|
|
7
|
+
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VoiceConnectionOptions, VoiceTurnRecord } from '../types';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function useVoiceStream<TResult = unknown>(path: string, options?: VoiceConnectionOptions): {
|
|
3
3
|
assistantAudio: import("vue").ShallowRef<{
|
|
4
4
|
chunk: Uint8Array;
|
|
5
5
|
format: import("..").AudioFormat;
|
|
@@ -12,11 +12,14 @@ export declare const useVoiceStream: <TResult = unknown>(path: string, options?:
|
|
|
12
12
|
turnId?: string;
|
|
13
13
|
}[]>;
|
|
14
14
|
assistantTexts: import("vue").ShallowRef<string[], string[]>;
|
|
15
|
+
call: import("vue").ShallowRef<import("..").VoiceCallLifecycleState | null, import("..").VoiceCallLifecycleState | null>;
|
|
16
|
+
callControl: (message: Parameters<(message: Omit<import("..").VoiceClientCallControlMessage, "type">) => void>[0]) => void;
|
|
15
17
|
close: () => void;
|
|
16
18
|
endTurn: () => void;
|
|
17
19
|
error: import("vue").Ref<string | null, string | null>;
|
|
18
20
|
isConnected: import("vue").Ref<boolean, boolean>;
|
|
19
21
|
partial: import("vue").Ref<string, string>;
|
|
22
|
+
reconnect: import("vue").ShallowRef<import("..").VoiceReconnectClientState, import("..").VoiceReconnectClientState>;
|
|
20
23
|
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
21
24
|
sessionId: import("vue").Ref<string | null, string | null>;
|
|
22
25
|
status: import("vue").Ref<import("..").VoiceSessionStatus | "idle", import("..").VoiceSessionStatus | "idle">;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoiceTraceTimelineClientOptions } from '../client/traceTimeline';
|
|
2
|
+
import type { VoiceTraceTimelineReport } from '../traceTimeline';
|
|
3
|
+
export declare function useVoiceTraceTimeline(path?: string, options?: VoiceTraceTimelineClientOptions): {
|
|
4
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<VoiceTraceTimelineReport | null>;
|
|
7
|
+
report: import("vue").ShallowRef<VoiceTraceTimelineReport | null, VoiceTraceTimelineReport | null>;
|
|
8
|
+
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type VoiceTurnLatencyClientOptions } from '../client/turnLatency';
|
|
2
|
+
import type { VoiceTurnLatencyReport } from '../turnLatency';
|
|
3
|
+
export declare function useVoiceTurnLatency(path?: string, options?: VoiceTurnLatencyClientOptions): {
|
|
4
|
+
error: import("vue").ShallowRef<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").ShallowRef<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<VoiceTurnLatencyReport | undefined>;
|
|
7
|
+
report: import("vue").ShallowRef<VoiceTurnLatencyReport | undefined, VoiceTurnLatencyReport | undefined>;
|
|
8
|
+
runProof: () => Promise<VoiceTurnLatencyReport | undefined>;
|
|
9
|
+
updatedAt: import("vue").ShallowRef<number | undefined, number | undefined>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoiceTurnQualityClientOptions } from '../client/turnQuality';
|
|
2
|
+
import type { VoiceTurnQualityReport } from '../turnQuality';
|
|
3
|
+
export declare function useVoiceTurnQuality(path?: string, options?: VoiceTurnQualityClientOptions): {
|
|
4
|
+
error: import("vue").ShallowRef<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").ShallowRef<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<VoiceTurnQualityReport | undefined>;
|
|
7
|
+
report: import("vue").ShallowRef<VoiceTurnQualityReport | undefined, VoiceTurnQualityReport | undefined>;
|
|
8
|
+
updatedAt: import("vue").ShallowRef<number | undefined, number | undefined>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoiceWorkflowStatusClientOptions } from '../client/workflowStatus';
|
|
2
|
+
import type { VoiceScenarioEvalReport } from '../evalRoutes';
|
|
3
|
+
export declare function useVoiceWorkflowStatus(path?: string, options?: VoiceWorkflowStatusClientOptions): {
|
|
4
|
+
error: import("vue").Ref<string | null, string | null>;
|
|
5
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
|
+
refresh: () => Promise<VoiceScenarioEvalReport | undefined>;
|
|
7
|
+
report: import("vue").ShallowRef<VoiceScenarioEvalReport | undefined, VoiceScenarioEvalReport | undefined>;
|
|
8
|
+
updatedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { VoiceScenarioEvalDefinition } from './evalRoutes';
|
|
2
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from './trace';
|
|
3
|
+
import type { VoiceOnTurnHandler, VoiceRouteResult, VoiceSessionRecord, VoiceTurnRecord } from './types';
|
|
4
|
+
export type VoiceWorkflowOutcome = 'complete' | 'transfer' | 'escalate' | 'voicemail' | 'no-answer';
|
|
5
|
+
export type VoiceWorkflowContractFieldMatch = 'boolean' | 'non-empty' | 'number' | 'string' | 'truthy';
|
|
6
|
+
export type VoiceWorkflowContractField = {
|
|
7
|
+
aliases?: string[];
|
|
8
|
+
label?: string;
|
|
9
|
+
match?: VoiceWorkflowContractFieldMatch;
|
|
10
|
+
path: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type VoiceWorkflowContractDefinition<TResult = unknown> = {
|
|
14
|
+
description?: string;
|
|
15
|
+
fields?: VoiceWorkflowContractField[];
|
|
16
|
+
forbiddenHandoffActions?: string[];
|
|
17
|
+
id: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
maxProviderErrors?: number;
|
|
20
|
+
maxSessionErrors?: number;
|
|
21
|
+
minSessions?: number;
|
|
22
|
+
minTurns?: number;
|
|
23
|
+
outcome?: VoiceWorkflowOutcome;
|
|
24
|
+
requiredAssistantIncludes?: string[];
|
|
25
|
+
requiredDisposition?: string;
|
|
26
|
+
requiredHandoffActions?: string[];
|
|
27
|
+
requiredLifecycleTypes?: string[];
|
|
28
|
+
requiredTranscriptIncludes?: string[];
|
|
29
|
+
scenarioId?: string;
|
|
30
|
+
validate?: (input: {
|
|
31
|
+
result: TResult | undefined;
|
|
32
|
+
routeResult: VoiceRouteResult<TResult>;
|
|
33
|
+
}) => VoiceWorkflowContractValidationIssue[];
|
|
34
|
+
};
|
|
35
|
+
export type VoiceWorkflowContractPresetName = 'appointment-booking' | 'lead-qualification' | 'support-triage' | 'transfer-handoff' | 'voicemail-callback';
|
|
36
|
+
export type VoiceWorkflowContractPresetOptions<TResult = unknown> = Partial<Omit<VoiceWorkflowContractDefinition<TResult>, 'fields' | 'id'>> & {
|
|
37
|
+
fields?: VoiceWorkflowContractField[];
|
|
38
|
+
id?: string;
|
|
39
|
+
};
|
|
40
|
+
export type VoiceWorkflowContractValidationIssue = {
|
|
41
|
+
code: string;
|
|
42
|
+
field?: string;
|
|
43
|
+
message: string;
|
|
44
|
+
};
|
|
45
|
+
export type VoiceWorkflowContractValidation = {
|
|
46
|
+
contractId: string;
|
|
47
|
+
issues: VoiceWorkflowContractValidationIssue[];
|
|
48
|
+
missingFields: string[];
|
|
49
|
+
outcome?: VoiceWorkflowOutcome;
|
|
50
|
+
pass: boolean;
|
|
51
|
+
requiredFields: string[];
|
|
52
|
+
};
|
|
53
|
+
export type VoiceWorkflowContract<TResult = unknown> = {
|
|
54
|
+
assertRouteResult: (routeResult: VoiceRouteResult<TResult>) => void;
|
|
55
|
+
definition: VoiceWorkflowContractDefinition<TResult>;
|
|
56
|
+
toScenarioEval: (overrides?: Partial<VoiceScenarioEvalDefinition>) => VoiceScenarioEvalDefinition;
|
|
57
|
+
validateRouteResult: (routeResult: VoiceRouteResult<TResult>) => VoiceWorkflowContractValidation;
|
|
58
|
+
};
|
|
59
|
+
export type VoiceWorkflowContractTracePayload = {
|
|
60
|
+
contractId: string;
|
|
61
|
+
issues: VoiceWorkflowContractValidationIssue[];
|
|
62
|
+
missingFields: string[];
|
|
63
|
+
outcome?: VoiceWorkflowOutcome;
|
|
64
|
+
requiredFields: string[];
|
|
65
|
+
status: 'pass' | 'fail';
|
|
66
|
+
};
|
|
67
|
+
export declare const validateVoiceWorkflowRouteResult: <TResult = unknown>(definition: VoiceWorkflowContractDefinition<TResult>, routeResult: VoiceRouteResult<TResult>) => VoiceWorkflowContractValidation;
|
|
68
|
+
export declare const createVoiceWorkflowScenario: <TResult = unknown>(definition: VoiceWorkflowContractDefinition<TResult>, overrides?: Partial<VoiceScenarioEvalDefinition>) => VoiceScenarioEvalDefinition;
|
|
69
|
+
export declare const createVoiceWorkflowContract: <TResult = unknown>(definition: VoiceWorkflowContractDefinition<TResult>) => VoiceWorkflowContract<TResult>;
|
|
70
|
+
export declare const createVoiceWorkflowContractPreset: <TResult = unknown>(name: VoiceWorkflowContractPresetName, options?: VoiceWorkflowContractPresetOptions<TResult>) => VoiceWorkflowContract<TResult>;
|
|
71
|
+
export declare const recordVoiceWorkflowContractTrace: (input: {
|
|
72
|
+
at?: number;
|
|
73
|
+
contractId?: string;
|
|
74
|
+
scenarioId?: string;
|
|
75
|
+
sessionId: string;
|
|
76
|
+
store: VoiceTraceEventStore;
|
|
77
|
+
traceId?: string;
|
|
78
|
+
turnId?: string;
|
|
79
|
+
validation: VoiceWorkflowContractValidation;
|
|
80
|
+
}) => Promise<StoredVoiceTraceEvent<VoiceWorkflowContractTracePayload>>;
|
|
81
|
+
export declare const createVoiceWorkflowContractHandler: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(input: {
|
|
82
|
+
contract?: VoiceWorkflowContract<TResult> | VoiceWorkflowContractDefinition<TResult>;
|
|
83
|
+
handler: VoiceOnTurnHandler<TContext, TSession, TResult>;
|
|
84
|
+
resolveContract?: (args: {
|
|
85
|
+
context: TContext;
|
|
86
|
+
result: VoiceRouteResult<TResult>;
|
|
87
|
+
session: TSession;
|
|
88
|
+
turn: VoiceTurnRecord;
|
|
89
|
+
}) => VoiceWorkflowContract<TResult> | VoiceWorkflowContractDefinition<TResult> | undefined;
|
|
90
|
+
store?: VoiceTraceEventStore;
|
|
91
|
+
}) => VoiceOnTurnHandler<TContext, TSession, TResult>;
|