@absolutejs/voice 0.0.22-beta.24 → 0.0.22-beta.241
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 +3112 -236
- package/dist/agent.d.ts +62 -0
- package/dist/agentSquadContract.d.ts +69 -0
- package/dist/angular/index.d.ts +14 -0
- package/dist/angular/index.js +3266 -1097
- 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-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 +746 -0
- package/dist/campaignDialers.d.ts +90 -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 +64 -0
- package/dist/client/index.js +4594 -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/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 +140 -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/handoff.d.ts +54 -0
- package/dist/handoffHealth.d.ts +94 -0
- package/dist/incidentBundle.d.ts +116 -0
- package/dist/index.d.ts +130 -13
- package/dist/index.js +23751 -5201
- 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 +428 -0
- package/dist/openaiRealtime.d.ts +27 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/operationsRecord.d.ts +158 -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/opsWebhook.d.ts +126 -0
- package/dist/outcomeContract.d.ts +115 -0
- package/dist/phoneAgent.d.ts +76 -0
- package/dist/phoneAgentProductionSmoke.d.ts +115 -0
- package/dist/platformCoverage.d.ts +73 -0
- package/dist/postgresStore.d.ts +13 -2
- package/dist/productionReadiness.d.ts +466 -0
- package/dist/proofTrends.d.ts +64 -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 +38 -0
- package/dist/providerSlo.d.ts +114 -0
- package/dist/providerStackRecommendations.d.ts +145 -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/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 +28 -0
- package/dist/react/index.js +4359 -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/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 +121 -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/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 +15 -0
- package/dist/svelte/index.js +4664 -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 +133 -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/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 +26 -0
- package/dist/vue/index.js +4136 -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/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,8 @@
|
|
|
1
|
+
import { type VoiceAgentSquadStatusClientOptions } from '../client/agentSquadStatus';
|
|
2
|
+
export declare const useVoiceAgentSquadStatus: (path?: string, options?: VoiceAgentSquadStatusClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceTraceTimelineReport | null>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
report: import("../client").VoiceAgentSquadStatusReport;
|
|
7
|
+
updatedAt?: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type VoiceCampaignDialerProofClientOptions } from '../client/campaignDialerProof';
|
|
2
|
+
export declare const useVoiceCampaignDialerProof: (path?: string, options?: VoiceCampaignDialerProofClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceCampaignDialerProofStatus | undefined>;
|
|
4
|
+
runProof: () => Promise<import("..").VoiceCampaignDialerProofReport>;
|
|
5
|
+
error: string | null;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
report?: import("..").VoiceCampaignDialerProofReport;
|
|
8
|
+
status?: import("..").VoiceCampaignDialerProofStatus;
|
|
9
|
+
updatedAt?: number;
|
|
10
|
+
};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import type { VoiceControllerOptions } from '../types';
|
|
2
2
|
export declare const useVoiceController: <TResult = unknown>(path: string, options?: VoiceControllerOptions) => {
|
|
3
3
|
bindHTMX: (options: import("..").VoiceHTMXBindingOptions) => () => void;
|
|
4
|
+
callControl: (message: Parameters<(message: Omit<import("..").VoiceClientCallControlMessage, "type">) => void>[0]) => void;
|
|
4
5
|
close: () => void;
|
|
5
6
|
endTurn: () => void;
|
|
6
7
|
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
7
8
|
startRecording: () => Promise<void>;
|
|
8
9
|
stopRecording: () => void;
|
|
9
10
|
toggleRecording: () => Promise<void>;
|
|
11
|
+
call: import("..").VoiceCallLifecycleState | null;
|
|
10
12
|
sessionId: string | null;
|
|
11
13
|
scenarioId: string | null;
|
|
12
14
|
status: import("..").VoiceSessionStatus | "idle";
|
|
15
|
+
reconnect: import("..").VoiceReconnectClientState;
|
|
13
16
|
partial: string;
|
|
14
17
|
turns: import("..").VoiceTurnRecord<TResult>[];
|
|
15
18
|
assistantTexts: string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VoiceDeliveryRuntimeClientOptions } from '../client/deliveryRuntime';
|
|
2
|
+
export declare const useVoiceDeliveryRuntime: (path?: string, options?: VoiceDeliveryRuntimeClientOptions) => {
|
|
3
|
+
requeueDeadLetters: () => Promise<import("../client").VoiceDeliveryRuntimeActionResult | undefined>;
|
|
4
|
+
refresh: () => Promise<import("..").VoiceDeliveryRuntimeReport | undefined>;
|
|
5
|
+
tick: () => Promise<import("../client").VoiceDeliveryRuntimeActionResult | undefined>;
|
|
6
|
+
actionError: string | null;
|
|
7
|
+
actionStatus: "idle" | "running" | "completed" | "failed";
|
|
8
|
+
error: string | null;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
lastAction?: import("../client").VoiceDeliveryRuntimeActionResult;
|
|
11
|
+
report?: import("..").VoiceDeliveryRuntimeReport;
|
|
12
|
+
updatedAt?: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoiceLiveOpsClientOptions } from '../client/liveOps';
|
|
2
|
+
export declare const useVoiceLiveOps: (options?: VoiceLiveOpsClientOptions) => {
|
|
3
|
+
run: (input: import("..").VoiceLiveOpsActionInput) => Promise<import("..").VoiceLiveOpsActionResult | undefined>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isRunning: boolean;
|
|
6
|
+
lastResult?: import("..").VoiceLiveOpsActionResult;
|
|
7
|
+
runningAction?: import("..").VoiceLiveOpsAction;
|
|
8
|
+
updatedAt?: number;
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VoiceOpsActionCenterClientOptions } from '../client/opsActionCenter';
|
|
2
|
+
export declare const useVoiceOpsActionCenter: (options?: VoiceOpsActionCenterClientOptions) => {
|
|
3
|
+
run: (actionId: string) => Promise<import("../client").VoiceOpsActionRunResult | undefined>;
|
|
4
|
+
setActions: (actions: import("../client").VoiceOpsActionDescriptor[]) => void;
|
|
5
|
+
actions: import("../client").VoiceOpsActionDescriptor[];
|
|
6
|
+
error: string | null;
|
|
7
|
+
isRunning: boolean;
|
|
8
|
+
lastResult?: import("../client").VoiceOpsActionRunResult;
|
|
9
|
+
runningActionId?: string;
|
|
10
|
+
updatedAt?: number;
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VoiceOpsStatusClientOptions } from '../client/opsStatus';
|
|
2
|
+
export declare const useVoiceOpsStatus: (path?: string, options?: VoiceOpsStatusClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceOpsStatusReport | undefined>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
report?: import("..").VoiceOpsStatusReport;
|
|
7
|
+
updatedAt?: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VoicePlatformCoverageClientOptions } from '../client/platformCoverage';
|
|
2
|
+
export declare const useVoicePlatformCoverage: (path?: string, options?: VoicePlatformCoverageClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoicePlatformCoverageSummary | undefined>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
report?: import("..").VoicePlatformCoverageSummary;
|
|
7
|
+
updatedAt?: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VoiceProviderCapabilitiesClientOptions } from '../client/providerCapabilities';
|
|
2
|
+
export declare const useVoiceProviderCapabilities: <TProvider extends string = string>(path?: string, options?: VoiceProviderCapabilitiesClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceProviderCapabilityReport<TProvider> | undefined>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
report?: import("..").VoiceProviderCapabilityReport<TProvider> | undefined;
|
|
7
|
+
updatedAt?: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VoiceProviderContractsClientOptions } from '../client/providerContracts';
|
|
2
|
+
export declare const useVoiceProviderContracts: <TProvider extends string = string>(path?: string, options?: VoiceProviderContractsClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceProviderContractMatrixReport<TProvider> | undefined>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
report?: import("..").VoiceProviderContractMatrixReport<TProvider> | undefined;
|
|
7
|
+
updatedAt?: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type VoiceProviderSimulationControlsOptions } from '../client/providerSimulationControls';
|
|
2
|
+
export declare const useVoiceProviderSimulationControls: <TProvider extends string = string>(options: VoiceProviderSimulationControlsOptions<TProvider>) => {
|
|
3
|
+
run: (provider: TProvider, mode: import("../testing").VoiceIOProviderFailureSimulationMode) => Promise<import("../testing").VoiceIOProviderFailureSimulationResult<TProvider> | null>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isRunning: boolean;
|
|
6
|
+
lastResult: import("../testing").VoiceIOProviderFailureSimulationResult<TProvider> | null;
|
|
7
|
+
mode: import("../testing").VoiceIOProviderFailureSimulationMode | null;
|
|
8
|
+
provider: TProvider | null;
|
|
9
|
+
updatedAt?: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VoiceRoutingStatusClientOptions } from '../client/routingStatus';
|
|
2
|
+
export declare const useVoiceRoutingStatus: (path?: string, options?: VoiceRoutingStatusClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceRoutingEvent | null>;
|
|
4
|
+
decision: import("..").VoiceRoutingDecisionSummary | null;
|
|
5
|
+
error: string | null;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
updatedAt?: number;
|
|
8
|
+
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { VoiceConnectionOptions } from '../types';
|
|
2
2
|
export declare const useVoiceStream: <TResult = unknown>(path: string, options?: VoiceConnectionOptions) => {
|
|
3
|
+
callControl: (message: Parameters<(message: Omit<import("..").VoiceClientCallControlMessage, "type">) => void>[0]) => void;
|
|
3
4
|
close: () => void;
|
|
4
5
|
endTurn: () => void;
|
|
5
6
|
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
7
|
+
call: import("..").VoiceCallLifecycleState | null;
|
|
6
8
|
sessionId: string | null;
|
|
7
9
|
scenarioId: string | null;
|
|
8
10
|
status: import("..").VoiceSessionStatus | "idle";
|
|
11
|
+
reconnect: import("..").VoiceReconnectClientState;
|
|
9
12
|
partial: string;
|
|
10
13
|
turns: import("..").VoiceTurnRecord<TResult>[];
|
|
11
14
|
assistantTexts: string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VoiceTraceTimelineClientOptions } from '../client/traceTimeline';
|
|
2
|
+
export declare const useVoiceTraceTimeline: (path?: string, options?: VoiceTraceTimelineClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceTraceTimelineReport | null>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
report: import("..").VoiceTraceTimelineReport | null;
|
|
7
|
+
updatedAt?: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VoiceTurnLatencyClientOptions } from '../client/turnLatency';
|
|
2
|
+
export declare const useVoiceTurnLatency: (path?: string, options?: VoiceTurnLatencyClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceTurnLatencyReport | undefined>;
|
|
4
|
+
runProof: () => Promise<import("..").VoiceTurnLatencyReport | undefined>;
|
|
5
|
+
error: string | null;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
report?: import("..").VoiceTurnLatencyReport;
|
|
8
|
+
updatedAt?: number;
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VoiceTurnQualityClientOptions } from '../client/turnQuality';
|
|
2
|
+
export declare const useVoiceTurnQuality: (path?: string, options?: VoiceTurnQualityClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceTurnQualityReport | undefined>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
report?: import("..").VoiceTurnQualityReport;
|
|
7
|
+
updatedAt?: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VoiceWorkflowStatusClientOptions } from '../client/workflowStatus';
|
|
2
|
+
export declare const useVoiceWorkflowStatus: (path?: string, options?: VoiceWorkflowStatusClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceScenarioEvalReport | undefined>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
report?: import("..").VoiceScenarioEvalReport;
|
|
7
|
+
updatedAt?: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { VoiceProductionReadinessAuditOptions, VoiceProductionReadinessAuditDeliveryOptions, VoiceProductionReadinessOpsActionHistoryOptions, VoiceProductionReadinessRoutesOptions, VoiceProductionReadinessTraceDeliveryOptions } from './productionReadiness';
|
|
2
|
+
export type VoiceReadinessProfileName = 'meeting-recorder' | 'ops-heavy' | 'phone-agent';
|
|
3
|
+
export type VoiceReadinessProfileOptions = {
|
|
4
|
+
audit?: VoiceProductionReadinessAuditOptions;
|
|
5
|
+
auditDeliveries?: VoiceProductionReadinessAuditDeliveryOptions;
|
|
6
|
+
bargeInReports?: VoiceProductionReadinessRoutesOptions['bargeInReports'];
|
|
7
|
+
campaignReadiness?: VoiceProductionReadinessRoutesOptions['campaignReadiness'];
|
|
8
|
+
carriers?: VoiceProductionReadinessRoutesOptions['carriers'];
|
|
9
|
+
deliveryRuntime?: VoiceProductionReadinessRoutesOptions['deliveryRuntime'];
|
|
10
|
+
explain?: boolean;
|
|
11
|
+
gate?: VoiceProductionReadinessRoutesOptions['gate'];
|
|
12
|
+
links?: VoiceProductionReadinessRoutesOptions['links'];
|
|
13
|
+
observabilityExportDeliveryHistory?: VoiceProductionReadinessRoutesOptions['observabilityExportDeliveryHistory'];
|
|
14
|
+
opsActionHistory?: VoiceProductionReadinessOpsActionHistoryOptions;
|
|
15
|
+
phoneAgentSmokes?: VoiceProductionReadinessRoutesOptions['phoneAgentSmokes'];
|
|
16
|
+
proofSources?: VoiceProductionReadinessRoutesOptions['proofSources'];
|
|
17
|
+
providerRoutingContracts?: VoiceProductionReadinessRoutesOptions['providerRoutingContracts'];
|
|
18
|
+
reconnectContracts?: VoiceProductionReadinessRoutesOptions['reconnectContracts'];
|
|
19
|
+
traceDeliveries?: VoiceProductionReadinessTraceDeliveryOptions;
|
|
20
|
+
};
|
|
21
|
+
export type VoiceReadinessProfileRoutesOptions = Partial<Omit<VoiceProductionReadinessRoutesOptions, 'store'>>;
|
|
22
|
+
export type VoiceReadinessProfileRecommendationScore = {
|
|
23
|
+
configured: string[];
|
|
24
|
+
confidence: number;
|
|
25
|
+
missing: string[];
|
|
26
|
+
profile: VoiceReadinessProfileName;
|
|
27
|
+
reasons: string[];
|
|
28
|
+
};
|
|
29
|
+
export type VoiceReadinessProfileRecommendation = {
|
|
30
|
+
confidence: number;
|
|
31
|
+
missing: string[];
|
|
32
|
+
profile: VoiceReadinessProfileName;
|
|
33
|
+
reasons: string[];
|
|
34
|
+
scores: VoiceReadinessProfileRecommendationScore[];
|
|
35
|
+
};
|
|
36
|
+
export declare const createVoiceReadinessProfile: (profile: VoiceReadinessProfileName, options?: VoiceReadinessProfileOptions) => VoiceReadinessProfileRoutesOptions;
|
|
37
|
+
export declare const recommendVoiceReadinessProfile: (options: VoiceReadinessProfileOptions) => VoiceReadinessProfileRecommendation;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import type { VoiceReconnectClientState } from './types';
|
|
3
|
+
import type { StoredVoiceTraceEvent } from './trace';
|
|
4
|
+
export type VoiceReconnectContractSnapshot = {
|
|
5
|
+
at: number;
|
|
6
|
+
reconnect: VoiceReconnectClientState;
|
|
7
|
+
turnIds?: readonly string[];
|
|
8
|
+
};
|
|
9
|
+
export type VoiceReconnectContractIssue = {
|
|
10
|
+
code: string;
|
|
11
|
+
message: string;
|
|
12
|
+
severity: 'error' | 'warning';
|
|
13
|
+
};
|
|
14
|
+
export type VoiceReconnectContractReport = {
|
|
15
|
+
checkedAt: number;
|
|
16
|
+
issues: VoiceReconnectContractIssue[];
|
|
17
|
+
pass: boolean;
|
|
18
|
+
snapshotCount: number;
|
|
19
|
+
statuses: VoiceReconnectClientState['status'][];
|
|
20
|
+
summary: {
|
|
21
|
+
attempts: number;
|
|
22
|
+
maxAttempts: number;
|
|
23
|
+
reconnected: boolean;
|
|
24
|
+
resumed: boolean;
|
|
25
|
+
exhausted: boolean;
|
|
26
|
+
duplicateTurnIds: string[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type VoiceReconnectContractOptions = {
|
|
30
|
+
requireReconnect?: boolean;
|
|
31
|
+
requireResume?: boolean;
|
|
32
|
+
requireReplayProtection?: boolean;
|
|
33
|
+
snapshots: readonly VoiceReconnectContractSnapshot[];
|
|
34
|
+
};
|
|
35
|
+
export type VoiceReconnectContractRoutesOptions = Omit<VoiceReconnectContractOptions, 'snapshots'> & {
|
|
36
|
+
getSnapshots: () => readonly VoiceReconnectContractSnapshot[] | Promise<readonly VoiceReconnectContractSnapshot[]>;
|
|
37
|
+
headers?: HeadersInit;
|
|
38
|
+
htmlPath?: false | string;
|
|
39
|
+
name?: string;
|
|
40
|
+
path?: string;
|
|
41
|
+
render?: (report: VoiceReconnectContractReport) => string | Promise<string>;
|
|
42
|
+
};
|
|
43
|
+
export declare const summarizeVoiceReconnectContractSnapshots: (events: readonly StoredVoiceTraceEvent[], options?: {
|
|
44
|
+
sessionId?: string;
|
|
45
|
+
}) => VoiceReconnectContractSnapshot[];
|
|
46
|
+
export declare const runVoiceReconnectContract: (options: VoiceReconnectContractOptions) => VoiceReconnectContractReport;
|
|
47
|
+
export declare const renderVoiceReconnectContractHTML: (report: VoiceReconnectContractReport) => string;
|
|
48
|
+
export declare const createVoiceReconnectContractRoutes: (options: VoiceReconnectContractRoutesOptions) => Elysia<"", {
|
|
49
|
+
decorator: {};
|
|
50
|
+
store: {};
|
|
51
|
+
derive: {};
|
|
52
|
+
resolve: {};
|
|
53
|
+
}, {
|
|
54
|
+
typebox: {};
|
|
55
|
+
error: {};
|
|
56
|
+
}, {
|
|
57
|
+
schema: {};
|
|
58
|
+
standaloneSchema: {};
|
|
59
|
+
macro: {};
|
|
60
|
+
macroFn: {};
|
|
61
|
+
parser: {};
|
|
62
|
+
response: {};
|
|
63
|
+
}, {
|
|
64
|
+
[x: string]: {
|
|
65
|
+
get: {
|
|
66
|
+
body: unknown;
|
|
67
|
+
params: {};
|
|
68
|
+
query: unknown;
|
|
69
|
+
headers: unknown;
|
|
70
|
+
response: {
|
|
71
|
+
200: Response;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}, {
|
|
76
|
+
derive: {};
|
|
77
|
+
resolve: {};
|
|
78
|
+
schema: {};
|
|
79
|
+
standaloneSchema: {};
|
|
80
|
+
response: {};
|
|
81
|
+
}, {
|
|
82
|
+
derive: {};
|
|
83
|
+
resolve: {};
|
|
84
|
+
schema: {};
|
|
85
|
+
standaloneSchema: {};
|
|
86
|
+
response: {};
|
|
87
|
+
}>;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { type VoiceProviderHealthSummary } from './providerHealth';
|
|
3
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from './trace';
|
|
4
|
+
import type { VoiceIOProviderFailureSimulationMode, VoiceIOProviderFailureSimulationResult } from './testing/ioProviderSimulator';
|
|
5
|
+
export type VoiceRoutingEventKind = 'llm' | 'stt' | 'tts';
|
|
6
|
+
export type VoiceRoutingEvent = {
|
|
7
|
+
at: number;
|
|
8
|
+
attempt?: number;
|
|
9
|
+
elapsedMs?: number;
|
|
10
|
+
error?: string;
|
|
11
|
+
fallbackProvider?: string;
|
|
12
|
+
kind: VoiceRoutingEventKind;
|
|
13
|
+
latencyBudgetMs?: number;
|
|
14
|
+
operation?: string;
|
|
15
|
+
provider?: string;
|
|
16
|
+
routing?: string;
|
|
17
|
+
scenarioId?: string;
|
|
18
|
+
selectedProvider?: string;
|
|
19
|
+
sessionId: string;
|
|
20
|
+
status?: string;
|
|
21
|
+
suppressionRemainingMs?: number;
|
|
22
|
+
timedOut: boolean;
|
|
23
|
+
turnId?: string;
|
|
24
|
+
};
|
|
25
|
+
export type VoiceRoutingDecisionSummary = VoiceRoutingEvent;
|
|
26
|
+
export type VoiceRoutingDecisionSummaryOptions = {
|
|
27
|
+
kind?: VoiceRoutingEventKind;
|
|
28
|
+
limit?: number;
|
|
29
|
+
sessionId?: string;
|
|
30
|
+
store: VoiceTraceEventStore;
|
|
31
|
+
};
|
|
32
|
+
export type VoiceRoutingKindSummary = {
|
|
33
|
+
errorCount: number;
|
|
34
|
+
fallbackCount: number;
|
|
35
|
+
latest?: VoiceRoutingEvent;
|
|
36
|
+
providers: string[];
|
|
37
|
+
runCount: number;
|
|
38
|
+
timeoutCount: number;
|
|
39
|
+
};
|
|
40
|
+
export type VoiceRoutingSessionSummary = {
|
|
41
|
+
errorCount: number;
|
|
42
|
+
eventCount: number;
|
|
43
|
+
fallbackCount: number;
|
|
44
|
+
kinds: Record<VoiceRoutingEventKind, VoiceRoutingKindSummary>;
|
|
45
|
+
lastEventAt: number;
|
|
46
|
+
sessionId: string;
|
|
47
|
+
startedAt: number;
|
|
48
|
+
status: 'healthy' | 'fallback' | 'degraded';
|
|
49
|
+
timeoutCount: number;
|
|
50
|
+
};
|
|
51
|
+
export type VoiceRoutingSessionSummaryOptions = {
|
|
52
|
+
limit?: number;
|
|
53
|
+
sessionId?: string;
|
|
54
|
+
};
|
|
55
|
+
export type VoiceResilienceLink = {
|
|
56
|
+
href: string;
|
|
57
|
+
label: string;
|
|
58
|
+
};
|
|
59
|
+
export type VoiceResilienceSimulationProvider<TProvider extends string = string> = {
|
|
60
|
+
configured?: boolean;
|
|
61
|
+
provider: TProvider;
|
|
62
|
+
};
|
|
63
|
+
export type VoiceResilienceIOSimulator<TProvider extends string = string> = {
|
|
64
|
+
failureProviders?: readonly TProvider[];
|
|
65
|
+
fallbackRequiredProvider?: TProvider;
|
|
66
|
+
fallbackRequiredMessage?: string;
|
|
67
|
+
failureMessage?: string;
|
|
68
|
+
label?: string;
|
|
69
|
+
pathPrefix?: string;
|
|
70
|
+
providers: readonly VoiceResilienceSimulationProvider<TProvider>[];
|
|
71
|
+
recoveryMessage?: string;
|
|
72
|
+
run: (provider: TProvider, mode: VoiceIOProviderFailureSimulationMode) => Promise<VoiceIOProviderFailureSimulationResult<TProvider>>;
|
|
73
|
+
};
|
|
74
|
+
export type VoiceResiliencePageData = {
|
|
75
|
+
links?: readonly VoiceResilienceLink[];
|
|
76
|
+
llmProviderHealth: VoiceProviderHealthSummary<string>[];
|
|
77
|
+
routingEvents: VoiceRoutingEvent[];
|
|
78
|
+
routingSessions: VoiceRoutingSessionSummary[];
|
|
79
|
+
sttProviderHealth: VoiceProviderHealthSummary<string>[];
|
|
80
|
+
sttSimulation?: VoiceResilienceIOSimulator<string>;
|
|
81
|
+
title?: string;
|
|
82
|
+
ttsProviderHealth: VoiceProviderHealthSummary<string>[];
|
|
83
|
+
ttsSimulation?: VoiceResilienceIOSimulator<string>;
|
|
84
|
+
};
|
|
85
|
+
export type VoiceResilienceRoutesOptions = {
|
|
86
|
+
headers?: HeadersInit;
|
|
87
|
+
links?: readonly VoiceResilienceLink[];
|
|
88
|
+
llmProviders?: readonly string[];
|
|
89
|
+
name?: string;
|
|
90
|
+
path?: string;
|
|
91
|
+
render?: (input: VoiceResiliencePageData) => string | Promise<string>;
|
|
92
|
+
sttProviders?: readonly string[];
|
|
93
|
+
sttSimulation?: VoiceResilienceIOSimulator<string>;
|
|
94
|
+
store: VoiceTraceEventStore;
|
|
95
|
+
title?: string;
|
|
96
|
+
ttsProviders?: readonly string[];
|
|
97
|
+
ttsSimulation?: VoiceResilienceIOSimulator<string>;
|
|
98
|
+
};
|
|
99
|
+
export declare const listVoiceRoutingEvents: (events: StoredVoiceTraceEvent[]) => VoiceRoutingEvent[];
|
|
100
|
+
export declare const summarizeVoiceRoutingDecision: (events: StoredVoiceTraceEvent[], options?: Omit<VoiceRoutingDecisionSummaryOptions, "store">) => VoiceRoutingDecisionSummary | null;
|
|
101
|
+
export declare const summarizeVoiceRoutingSessions: (events: StoredVoiceTraceEvent[] | VoiceRoutingEvent[], options?: VoiceRoutingSessionSummaryOptions) => VoiceRoutingSessionSummary[];
|
|
102
|
+
export declare const createVoiceRoutingDecisionSummary: (options: VoiceRoutingDecisionSummaryOptions) => Promise<VoiceRoutingDecisionSummary | null>;
|
|
103
|
+
export declare const renderVoiceResilienceHTML: (input: VoiceResiliencePageData) => string;
|
|
104
|
+
export declare const createVoiceResilienceRoutes: (options: VoiceResilienceRoutesOptions) => Elysia<"", {
|
|
105
|
+
decorator: {};
|
|
106
|
+
store: {};
|
|
107
|
+
derive: {};
|
|
108
|
+
resolve: {};
|
|
109
|
+
}, {
|
|
110
|
+
typebox: {};
|
|
111
|
+
error: {};
|
|
112
|
+
}, {
|
|
113
|
+
schema: {};
|
|
114
|
+
standaloneSchema: {};
|
|
115
|
+
macro: {};
|
|
116
|
+
macroFn: {};
|
|
117
|
+
parser: {};
|
|
118
|
+
response: {};
|
|
119
|
+
}, {
|
|
120
|
+
[x: string]: {
|
|
121
|
+
get: {
|
|
122
|
+
body: unknown;
|
|
123
|
+
params: {};
|
|
124
|
+
query: unknown;
|
|
125
|
+
headers: unknown;
|
|
126
|
+
response: {
|
|
127
|
+
200: Response;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
}, {
|
|
132
|
+
derive: {};
|
|
133
|
+
resolve: {};
|
|
134
|
+
schema: {};
|
|
135
|
+
standaloneSchema: {};
|
|
136
|
+
response: {};
|
|
137
|
+
}, {
|
|
138
|
+
derive: {};
|
|
139
|
+
resolve: {};
|
|
140
|
+
schema: {};
|
|
141
|
+
standaloneSchema: {};
|
|
142
|
+
response: {};
|
|
143
|
+
}>;
|
package/dist/sessionReplay.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export type VoiceSessionListItem = {
|
|
|
34
34
|
errorCount: number;
|
|
35
35
|
eventCount: number;
|
|
36
36
|
latestOutcome?: string;
|
|
37
|
+
operationsRecordHref?: string;
|
|
37
38
|
providerErrors: Record<string, number>;
|
|
38
39
|
providers: string[];
|
|
39
40
|
replayHref: string;
|
|
@@ -43,9 +44,19 @@ export type VoiceSessionListItem = {
|
|
|
43
44
|
transcriptCount: number;
|
|
44
45
|
turnCount: number;
|
|
45
46
|
};
|
|
47
|
+
export type VoiceProviderFallbackRecoverySummary = {
|
|
48
|
+
recovered: number;
|
|
49
|
+
recoveredSessions: number;
|
|
50
|
+
recoveredTurns: number;
|
|
51
|
+
status: 'fail' | 'pass';
|
|
52
|
+
total: number;
|
|
53
|
+
unresolvedErrors: number;
|
|
54
|
+
unresolvedSessions: number;
|
|
55
|
+
};
|
|
46
56
|
export type VoiceSessionListOptions = {
|
|
47
57
|
events?: StoredVoiceTraceEvent[];
|
|
48
58
|
limit?: number;
|
|
59
|
+
operationsRecordHref?: false | string | ((session: Omit<VoiceSessionListItem, 'operationsRecordHref' | 'replayHref'>) => string);
|
|
49
60
|
provider?: string;
|
|
50
61
|
q?: string;
|
|
51
62
|
replayHref?: false | string | ((session: Omit<VoiceSessionListItem, 'replayHref'>) => string);
|
|
@@ -78,6 +89,7 @@ export type VoiceSessionReplayRoutesOptions = VoiceSessionReplayHTMLHandlerOptio
|
|
|
78
89
|
name?: string;
|
|
79
90
|
path?: string;
|
|
80
91
|
};
|
|
92
|
+
export declare const summarizeVoiceProviderFallbackRecovery: (events: StoredVoiceTraceEvent[]) => VoiceProviderFallbackRecoverySummary;
|
|
81
93
|
export declare const summarizeVoiceSessionReplay: (options: VoiceSessionReplayOptions) => Promise<VoiceSessionReplay>;
|
|
82
94
|
export declare const summarizeVoiceSessions: (options?: VoiceSessionListOptions) => Promise<VoiceSessionListItem[]>;
|
|
83
95
|
export declare const renderVoiceSessionsHTML: (sessions: VoiceSessionListItem[]) => string;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { type VoiceEvalReport, type VoiceEvalRoutesOptions, type VoiceScenarioEvalDefinition, type VoiceScenarioEvalReport, type VoiceScenarioFixture, type VoiceScenarioFixtureEvalReport, type VoiceScenarioFixtureStore } from './evalRoutes';
|
|
3
|
+
import { type VoiceOutcomeContractDefinition, type VoiceOutcomeContractOptions, type VoiceOutcomeContractSuiteReport } from './outcomeContract';
|
|
4
|
+
import { type VoiceToolContractDefinition, type VoiceToolContractSuiteReport } from './toolContract';
|
|
5
|
+
import type { VoiceQualityThresholds } from './qualityRoutes';
|
|
6
|
+
import type { VoiceTraceEventStore } from './trace';
|
|
7
|
+
import type { VoiceSessionRecord } from './types';
|
|
8
|
+
export type VoiceSimulationSuiteStatus = 'pass' | 'fail';
|
|
9
|
+
export type VoiceSimulationSuiteReport = {
|
|
10
|
+
actions: VoiceSimulationSuiteAction[];
|
|
11
|
+
checkedAt: number;
|
|
12
|
+
failed: number;
|
|
13
|
+
fixtures?: VoiceScenarioFixtureEvalReport;
|
|
14
|
+
outcomes?: VoiceOutcomeContractSuiteReport;
|
|
15
|
+
passed: number;
|
|
16
|
+
scenarios?: VoiceScenarioEvalReport;
|
|
17
|
+
sessions?: VoiceEvalReport;
|
|
18
|
+
status: VoiceSimulationSuiteStatus;
|
|
19
|
+
summary: {
|
|
20
|
+
fixtures?: VoiceSimulationSuiteSectionSummary;
|
|
21
|
+
outcomes?: VoiceSimulationSuiteSectionSummary;
|
|
22
|
+
scenarios?: VoiceSimulationSuiteSectionSummary;
|
|
23
|
+
sessions?: VoiceSimulationSuiteSectionSummary;
|
|
24
|
+
tools?: VoiceSimulationSuiteSectionSummary;
|
|
25
|
+
};
|
|
26
|
+
tools?: VoiceToolContractSuiteReport;
|
|
27
|
+
total: number;
|
|
28
|
+
};
|
|
29
|
+
export type VoiceSimulationSuiteAction = {
|
|
30
|
+
description: string;
|
|
31
|
+
href?: string;
|
|
32
|
+
label: string;
|
|
33
|
+
section: 'fixtures' | 'outcomes' | 'scenarios' | 'sessions' | 'tools';
|
|
34
|
+
severity: 'error' | 'warning';
|
|
35
|
+
};
|
|
36
|
+
export type VoiceSimulationSuiteSectionSummary = {
|
|
37
|
+
failed: number;
|
|
38
|
+
passed: number;
|
|
39
|
+
status: VoiceSimulationSuiteStatus;
|
|
40
|
+
total: number;
|
|
41
|
+
};
|
|
42
|
+
export type VoiceSimulationSuiteOptions<TSession extends VoiceSessionRecord = VoiceSessionRecord> = {
|
|
43
|
+
actionLinks?: {
|
|
44
|
+
fixtures?: string;
|
|
45
|
+
outcomes?: string;
|
|
46
|
+
scenarios?: string;
|
|
47
|
+
sessions?: string;
|
|
48
|
+
tools?: string;
|
|
49
|
+
};
|
|
50
|
+
fixtures?: VoiceScenarioFixture[];
|
|
51
|
+
fixtureStore?: VoiceScenarioFixtureStore;
|
|
52
|
+
include?: {
|
|
53
|
+
fixtures?: boolean;
|
|
54
|
+
outcomes?: boolean;
|
|
55
|
+
scenarios?: boolean;
|
|
56
|
+
sessions?: boolean;
|
|
57
|
+
tools?: boolean;
|
|
58
|
+
};
|
|
59
|
+
limit?: number;
|
|
60
|
+
operationsRecordHref?: false | string | ((sessionId: string) => string);
|
|
61
|
+
outcomes?: Omit<VoiceOutcomeContractOptions<TSession>, 'contracts'> & {
|
|
62
|
+
contracts: VoiceOutcomeContractDefinition[];
|
|
63
|
+
};
|
|
64
|
+
scenarios?: VoiceScenarioEvalDefinition[];
|
|
65
|
+
store?: VoiceTraceEventStore;
|
|
66
|
+
thresholds?: VoiceQualityThresholds;
|
|
67
|
+
tools?: VoiceToolContractDefinition[];
|
|
68
|
+
};
|
|
69
|
+
export type VoiceSimulationSuiteRoutesOptions<TSession extends VoiceSessionRecord = VoiceSessionRecord> = VoiceSimulationSuiteOptions<TSession> & {
|
|
70
|
+
headers?: HeadersInit;
|
|
71
|
+
htmlPath?: false | string;
|
|
72
|
+
name?: string;
|
|
73
|
+
path?: string;
|
|
74
|
+
render?: (report: VoiceSimulationSuiteReport) => string | Promise<string>;
|
|
75
|
+
title?: string;
|
|
76
|
+
};
|
|
77
|
+
export declare const runVoiceSimulationSuite: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceSimulationSuiteOptions<TSession>) => Promise<VoiceSimulationSuiteReport>;
|
|
78
|
+
export declare const renderVoiceSimulationSuiteHTML: (report: VoiceSimulationSuiteReport, options?: {
|
|
79
|
+
title?: string;
|
|
80
|
+
}) => string;
|
|
81
|
+
export declare const createVoiceSimulationSuiteRoutes: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceSimulationSuiteRoutesOptions<TSession>) => Elysia<"", {
|
|
82
|
+
decorator: {};
|
|
83
|
+
store: {};
|
|
84
|
+
derive: {};
|
|
85
|
+
resolve: {};
|
|
86
|
+
}, {
|
|
87
|
+
typebox: {};
|
|
88
|
+
error: {};
|
|
89
|
+
}, {
|
|
90
|
+
schema: {};
|
|
91
|
+
standaloneSchema: {};
|
|
92
|
+
macro: {};
|
|
93
|
+
macroFn: {};
|
|
94
|
+
parser: {};
|
|
95
|
+
response: {};
|
|
96
|
+
}, {
|
|
97
|
+
[x: string]: {
|
|
98
|
+
get: {
|
|
99
|
+
body: unknown;
|
|
100
|
+
params: {};
|
|
101
|
+
query: unknown;
|
|
102
|
+
headers: unknown;
|
|
103
|
+
response: {
|
|
104
|
+
200: VoiceSimulationSuiteReport;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}, {
|
|
109
|
+
derive: {};
|
|
110
|
+
resolve: {};
|
|
111
|
+
schema: {};
|
|
112
|
+
standaloneSchema: {};
|
|
113
|
+
response: {};
|
|
114
|
+
}, {
|
|
115
|
+
derive: {};
|
|
116
|
+
resolve: {};
|
|
117
|
+
schema: {};
|
|
118
|
+
standaloneSchema: {};
|
|
119
|
+
response: {};
|
|
120
|
+
}>;
|
|
121
|
+
export type VoiceSimulationSuiteEvalRoutesOptions = VoiceEvalRoutesOptions;
|
package/dist/sqliteStore.d.ts
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { type StoredVoiceTraceEvent, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore, type VoiceTraceEventStore } from './trace';
|
|
2
|
+
import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from './audit';
|
|
3
|
+
import type { VoiceAuditSinkDeliveryRecord, VoiceAuditSinkDeliveryStore } from './auditSinks';
|
|
2
4
|
import type { StoredVoiceIntegrationEvent, StoredVoiceExternalObjectMap, StoredVoiceOpsTask, VoiceExternalObjectMapStore, VoiceIntegrationEventStore, VoiceOpsTaskStore } from './ops';
|
|
3
5
|
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewStore } from './testing/review';
|
|
6
|
+
import type { VoiceTelephonyWebhookIdempotencyStore } from './telephonyOutcome';
|
|
7
|
+
import type { VoiceCampaignStore } from './campaign';
|
|
4
8
|
import type { VoiceSessionRecord, VoiceSessionStore } from './types';
|
|
5
9
|
export type VoiceSQLiteStoreOptions = {
|
|
6
10
|
path: string;
|
|
7
11
|
tableName?: string;
|
|
8
12
|
tablePrefix?: string;
|
|
9
13
|
};
|
|
10
|
-
export type VoiceSQLiteRuntimeStorage<TSession extends VoiceSessionRecord = VoiceSessionRecord, TReview extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact, TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask, TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent, TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap, TTrace extends StoredVoiceTraceEvent = StoredVoiceTraceEvent, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord> = {
|
|
14
|
+
export type VoiceSQLiteRuntimeStorage<TSession extends VoiceSessionRecord = VoiceSessionRecord, TReview extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact, TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask, TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent, TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap, TTrace extends StoredVoiceTraceEvent = StoredVoiceTraceEvent, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord, TAudit extends StoredVoiceAuditEvent = StoredVoiceAuditEvent, TAuditDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord> = {
|
|
15
|
+
audit: VoiceAuditEventStore<TAudit>;
|
|
16
|
+
auditDeliveries: VoiceAuditSinkDeliveryStore<TAuditDelivery>;
|
|
17
|
+
campaigns: VoiceCampaignStore;
|
|
11
18
|
events: VoiceIntegrationEventStore<TEvent>;
|
|
12
19
|
externalObjects: VoiceExternalObjectMapStore<TMapping>;
|
|
13
20
|
reviews: VoiceCallReviewStore<TReview>;
|
|
@@ -23,4 +30,8 @@ export declare const createVoiceSQLiteIntegrationEventStore: <TEvent extends Sto
|
|
|
23
30
|
export declare const createVoiceSQLiteExternalObjectMapStore: <TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap>(options: VoiceSQLiteStoreOptions) => VoiceExternalObjectMapStore<TMapping>;
|
|
24
31
|
export declare const createVoiceSQLiteTraceEventStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options: VoiceSQLiteStoreOptions) => VoiceTraceEventStore<TEvent>;
|
|
25
32
|
export declare const createVoiceSQLiteTraceSinkDeliveryStore: <TDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>(options: VoiceSQLiteStoreOptions) => VoiceTraceSinkDeliveryStore<TDelivery>;
|
|
26
|
-
export declare const
|
|
33
|
+
export declare const createVoiceSQLiteAuditEventStore: <TEvent extends StoredVoiceAuditEvent = StoredVoiceAuditEvent>(options: VoiceSQLiteStoreOptions) => VoiceAuditEventStore<TEvent>;
|
|
34
|
+
export declare const createVoiceSQLiteAuditSinkDeliveryStore: <TDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord>(options: VoiceSQLiteStoreOptions) => VoiceAuditSinkDeliveryStore<TDelivery>;
|
|
35
|
+
export declare const createVoiceSQLiteTelephonyWebhookIdempotencyStore: <TResult = unknown>(options: VoiceSQLiteStoreOptions) => VoiceTelephonyWebhookIdempotencyStore<TResult>;
|
|
36
|
+
export declare const createVoiceSQLiteCampaignStore: (options: VoiceSQLiteStoreOptions) => VoiceCampaignStore;
|
|
37
|
+
export declare const createVoiceSQLiteRuntimeStorage: <TSession extends VoiceSessionRecord = VoiceSessionRecord, TReview extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact, TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask, TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent, TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap, TTrace extends StoredVoiceTraceEvent = StoredVoiceTraceEvent, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord, TAudit extends StoredVoiceAuditEvent = StoredVoiceAuditEvent, TAuditDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord>(options: VoiceSQLiteStoreOptions) => VoiceSQLiteRuntimeStorage<TSession, TReview, TTask, TEvent, TMapping, TTrace, TTraceDelivery, TAudit, TAuditDelivery>;
|