@absolutejs/voice 0.0.22-beta.30 → 0.0.22-beta.301
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 +3232 -82
- package/dist/agent.d.ts +62 -0
- package/dist/agentSquadContract.d.ts +98 -0
- package/dist/angular/index.d.ts +16 -0
- package/dist/angular/index.js +3498 -1128
- 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-readiness-failures.service.d.ts +13 -0
- package/dist/angular/voice-routing-status.service.d.ts +11 -0
- package/dist/angular/voice-stream.service.d.ts +1 -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 +83 -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/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 +703 -13
- package/dist/client/index.d.ts +70 -0
- package/dist/client/index.js +5257 -19
- 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/readinessFailures.d.ts +19 -0
- package/dist/client/readinessFailuresWidget.d.ts +42 -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/competitiveCoverage.d.ts +141 -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 +15 -1
- package/dist/incidentBundle.d.ts +116 -0
- package/dist/index.d.ts +142 -15
- package/dist/index.js +27921 -5100
- package/dist/latencySlo.d.ts +56 -0
- package/dist/liveLatency.d.ts +78 -0
- package/dist/liveOps.d.ts +190 -0
- package/dist/modelAdapters.d.ts +60 -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 +254 -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 +139 -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 +559 -0
- package/dist/proofTrends.d.ts +133 -0
- package/dist/providerAdapters.d.ts +48 -0
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerDecisionTraces.d.ts +130 -0
- package/dist/providerHealth.d.ts +1 -0
- package/dist/providerOrchestration.d.ts +109 -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/VoiceReadinessFailures.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 +32 -0
- package/dist/react/index.js +5059 -31
- package/dist/react/useVoiceAgentSquadStatus.d.ts +8 -0
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +1 -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/useVoiceReadinessFailures.d.ts +8 -0
- package/dist/react/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/react/useVoiceStream.d.ts +1 -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 +38 -0
- package/dist/reconnectContract.d.ts +88 -0
- package/dist/resilienceRoutes.d.ts +143 -0
- package/dist/sessionReplay.d.ts +12 -0
- package/dist/simulationSuite.d.ts +143 -0
- package/dist/sloCalibration.d.ts +185 -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/createVoiceReadinessFailures.d.ts +7 -0
- 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 +17 -0
- package/dist/svelte/index.js +4924 -420
- package/dist/telephony/contract.d.ts +61 -0
- package/dist/telephony/matrix.d.ts +97 -0
- package/dist/telephony/plivo.d.ts +303 -0
- package/dist/telephony/security.d.ts +182 -0
- package/dist/telephony/telnyx.d.ts +291 -0
- package/dist/telephony/twilio.d.ts +135 -2
- package/dist/telephonyOutcome.d.ts +273 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +1861 -44
- 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 +127 -3
- package/dist/voiceMonitoring.d.ts +444 -0
- 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/VoiceReadinessFailures.d.ts +21 -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 +30 -0
- package/dist/vue/index.js +4828 -56
- 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/useVoiceReadinessFailures.d.ts +775 -0
- package/dist/vue/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceStream.d.ts +2 -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
|
+
};
|
|
@@ -12,6 +12,7 @@ export declare const useVoiceController: <TResult = unknown>(path: string, optio
|
|
|
12
12
|
sessionId: string | null;
|
|
13
13
|
scenarioId: string | null;
|
|
14
14
|
status: import("..").VoiceSessionStatus | "idle";
|
|
15
|
+
reconnect: import("..").VoiceReconnectClientState;
|
|
15
16
|
partial: string;
|
|
16
17
|
turns: import("..").VoiceTurnRecord<TResult>[];
|
|
17
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 VoiceProofTrendsClientOptions } from '../client/proofTrends';
|
|
2
|
+
export declare const useVoiceProofTrends: (path?: string, options?: VoiceProofTrendsClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceProofTrendReport | undefined>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
report?: import("..").VoiceProofTrendReport;
|
|
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 VoiceReadinessFailuresClientOptions } from '../client/readinessFailures';
|
|
2
|
+
export declare const useVoiceReadinessFailures: (path?: string, options?: VoiceReadinessFailuresClientOptions) => {
|
|
3
|
+
refresh: () => Promise<import("..").VoiceProductionReadinessReport | undefined>;
|
|
4
|
+
error: string | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
report?: import("..").VoiceProductionReadinessReport;
|
|
7
|
+
updatedAt?: number;
|
|
8
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -8,6 +8,7 @@ export declare const useVoiceStream: <TResult = unknown>(path: string, options?:
|
|
|
8
8
|
sessionId: string | null;
|
|
9
9
|
scenarioId: string | null;
|
|
10
10
|
status: import("..").VoiceSessionStatus | "idle";
|
|
11
|
+
reconnect: import("..").VoiceReconnectClientState;
|
|
11
12
|
partial: string;
|
|
12
13
|
turns: import("..").VoiceTurnRecord<TResult>[];
|
|
13
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,38 @@
|
|
|
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
|
+
telephonyWebhookSecurity?: VoiceProductionReadinessRoutesOptions['telephonyWebhookSecurity'];
|
|
20
|
+
traceDeliveries?: VoiceProductionReadinessTraceDeliveryOptions;
|
|
21
|
+
};
|
|
22
|
+
export type VoiceReadinessProfileRoutesOptions = Partial<Omit<VoiceProductionReadinessRoutesOptions, 'store'>>;
|
|
23
|
+
export type VoiceReadinessProfileRecommendationScore = {
|
|
24
|
+
configured: string[];
|
|
25
|
+
confidence: number;
|
|
26
|
+
missing: string[];
|
|
27
|
+
profile: VoiceReadinessProfileName;
|
|
28
|
+
reasons: string[];
|
|
29
|
+
};
|
|
30
|
+
export type VoiceReadinessProfileRecommendation = {
|
|
31
|
+
confidence: number;
|
|
32
|
+
missing: string[];
|
|
33
|
+
profile: VoiceReadinessProfileName;
|
|
34
|
+
reasons: string[];
|
|
35
|
+
scores: VoiceReadinessProfileRecommendationScore[];
|
|
36
|
+
};
|
|
37
|
+
export declare const createVoiceReadinessProfile: (profile: VoiceReadinessProfileName, options?: VoiceReadinessProfileOptions) => VoiceReadinessProfileRoutesOptions;
|
|
38
|
+
export declare const recommendVoiceReadinessProfile: (options: VoiceReadinessProfileOptions) => VoiceReadinessProfileRecommendation;
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
resumeLatencyP95Ms?: number;
|
|
19
|
+
snapshotCount: number;
|
|
20
|
+
statuses: VoiceReconnectClientState['status'][];
|
|
21
|
+
summary: {
|
|
22
|
+
attempts: number;
|
|
23
|
+
maxAttempts: number;
|
|
24
|
+
reconnected: boolean;
|
|
25
|
+
resumed: boolean;
|
|
26
|
+
exhausted: boolean;
|
|
27
|
+
duplicateTurnIds: string[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export type VoiceReconnectContractOptions = {
|
|
31
|
+
requireReconnect?: boolean;
|
|
32
|
+
requireResume?: boolean;
|
|
33
|
+
requireReplayProtection?: boolean;
|
|
34
|
+
snapshots: readonly VoiceReconnectContractSnapshot[];
|
|
35
|
+
};
|
|
36
|
+
export type VoiceReconnectContractRoutesOptions = Omit<VoiceReconnectContractOptions, 'snapshots'> & {
|
|
37
|
+
getSnapshots: () => readonly VoiceReconnectContractSnapshot[] | Promise<readonly VoiceReconnectContractSnapshot[]>;
|
|
38
|
+
headers?: HeadersInit;
|
|
39
|
+
htmlPath?: false | string;
|
|
40
|
+
name?: string;
|
|
41
|
+
path?: string;
|
|
42
|
+
render?: (report: VoiceReconnectContractReport) => string | Promise<string>;
|
|
43
|
+
};
|
|
44
|
+
export declare const summarizeVoiceReconnectContractSnapshots: (events: readonly StoredVoiceTraceEvent[], options?: {
|
|
45
|
+
sessionId?: string;
|
|
46
|
+
}) => VoiceReconnectContractSnapshot[];
|
|
47
|
+
export declare const runVoiceReconnectContract: (options: VoiceReconnectContractOptions) => VoiceReconnectContractReport;
|
|
48
|
+
export declare const renderVoiceReconnectContractHTML: (report: VoiceReconnectContractReport) => string;
|
|
49
|
+
export declare const createVoiceReconnectContractRoutes: (options: VoiceReconnectContractRoutesOptions) => Elysia<"", {
|
|
50
|
+
decorator: {};
|
|
51
|
+
store: {};
|
|
52
|
+
derive: {};
|
|
53
|
+
resolve: {};
|
|
54
|
+
}, {
|
|
55
|
+
typebox: {};
|
|
56
|
+
error: {};
|
|
57
|
+
}, {
|
|
58
|
+
schema: {};
|
|
59
|
+
standaloneSchema: {};
|
|
60
|
+
macro: {};
|
|
61
|
+
macroFn: {};
|
|
62
|
+
parser: {};
|
|
63
|
+
response: {};
|
|
64
|
+
}, {
|
|
65
|
+
[x: string]: {
|
|
66
|
+
get: {
|
|
67
|
+
body: unknown;
|
|
68
|
+
params: {};
|
|
69
|
+
query: unknown;
|
|
70
|
+
headers: unknown;
|
|
71
|
+
response: {
|
|
72
|
+
200: Response;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
77
|
+
derive: {};
|
|
78
|
+
resolve: {};
|
|
79
|
+
schema: {};
|
|
80
|
+
standaloneSchema: {};
|
|
81
|
+
response: {};
|
|
82
|
+
}, {
|
|
83
|
+
derive: {};
|
|
84
|
+
resolve: {};
|
|
85
|
+
schema: {};
|
|
86
|
+
standaloneSchema: {};
|
|
87
|
+
response: {};
|
|
88
|
+
}>;
|
|
@@ -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,143 @@
|
|
|
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 VoiceSimulationSuiteSection = 'fixtures' | 'outcomes' | 'scenarios' | 'sessions' | 'tools';
|
|
43
|
+
export type VoiceSimulationSuiteAssertionInput = {
|
|
44
|
+
maxActions?: number;
|
|
45
|
+
maxFailed?: number;
|
|
46
|
+
minPassed?: number;
|
|
47
|
+
minSections?: number;
|
|
48
|
+
requiredSections?: VoiceSimulationSuiteSection[];
|
|
49
|
+
sectionMinimums?: Partial<Record<VoiceSimulationSuiteSection, number>>;
|
|
50
|
+
};
|
|
51
|
+
export type VoiceSimulationSuiteAssertionReport = {
|
|
52
|
+
actions: number;
|
|
53
|
+
failed: number;
|
|
54
|
+
issues: string[];
|
|
55
|
+
ok: boolean;
|
|
56
|
+
passed: number;
|
|
57
|
+
sections: VoiceSimulationSuiteSection[];
|
|
58
|
+
sectionTotals: Partial<Record<VoiceSimulationSuiteSection, number>>;
|
|
59
|
+
status: VoiceSimulationSuiteStatus;
|
|
60
|
+
total: number;
|
|
61
|
+
};
|
|
62
|
+
export type VoiceSimulationSuiteOptions<TSession extends VoiceSessionRecord = VoiceSessionRecord> = {
|
|
63
|
+
actionLinks?: {
|
|
64
|
+
fixtures?: string;
|
|
65
|
+
outcomes?: string;
|
|
66
|
+
scenarios?: string;
|
|
67
|
+
sessions?: string;
|
|
68
|
+
tools?: string;
|
|
69
|
+
};
|
|
70
|
+
fixtures?: VoiceScenarioFixture[];
|
|
71
|
+
fixtureStore?: VoiceScenarioFixtureStore;
|
|
72
|
+
include?: {
|
|
73
|
+
fixtures?: boolean;
|
|
74
|
+
outcomes?: boolean;
|
|
75
|
+
scenarios?: boolean;
|
|
76
|
+
sessions?: boolean;
|
|
77
|
+
tools?: boolean;
|
|
78
|
+
};
|
|
79
|
+
limit?: number;
|
|
80
|
+
operationsRecordHref?: false | string | ((sessionId: string) => string);
|
|
81
|
+
outcomes?: Omit<VoiceOutcomeContractOptions<TSession>, 'contracts'> & {
|
|
82
|
+
contracts: VoiceOutcomeContractDefinition[];
|
|
83
|
+
};
|
|
84
|
+
scenarios?: VoiceScenarioEvalDefinition[];
|
|
85
|
+
store?: VoiceTraceEventStore;
|
|
86
|
+
thresholds?: VoiceQualityThresholds;
|
|
87
|
+
tools?: VoiceToolContractDefinition[];
|
|
88
|
+
};
|
|
89
|
+
export type VoiceSimulationSuiteRoutesOptions<TSession extends VoiceSessionRecord = VoiceSessionRecord> = VoiceSimulationSuiteOptions<TSession> & {
|
|
90
|
+
headers?: HeadersInit;
|
|
91
|
+
htmlPath?: false | string;
|
|
92
|
+
name?: string;
|
|
93
|
+
path?: string;
|
|
94
|
+
render?: (report: VoiceSimulationSuiteReport) => string | Promise<string>;
|
|
95
|
+
title?: string;
|
|
96
|
+
};
|
|
97
|
+
export declare const runVoiceSimulationSuite: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceSimulationSuiteOptions<TSession>) => Promise<VoiceSimulationSuiteReport>;
|
|
98
|
+
export declare const evaluateVoiceSimulationSuiteEvidence: (report: VoiceSimulationSuiteReport, input?: VoiceSimulationSuiteAssertionInput) => VoiceSimulationSuiteAssertionReport;
|
|
99
|
+
export declare const assertVoiceSimulationSuiteEvidence: (report: VoiceSimulationSuiteReport, input?: VoiceSimulationSuiteAssertionInput) => VoiceSimulationSuiteAssertionReport;
|
|
100
|
+
export declare const renderVoiceSimulationSuiteHTML: (report: VoiceSimulationSuiteReport, options?: {
|
|
101
|
+
title?: string;
|
|
102
|
+
}) => string;
|
|
103
|
+
export declare const createVoiceSimulationSuiteRoutes: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceSimulationSuiteRoutesOptions<TSession>) => Elysia<"", {
|
|
104
|
+
decorator: {};
|
|
105
|
+
store: {};
|
|
106
|
+
derive: {};
|
|
107
|
+
resolve: {};
|
|
108
|
+
}, {
|
|
109
|
+
typebox: {};
|
|
110
|
+
error: {};
|
|
111
|
+
}, {
|
|
112
|
+
schema: {};
|
|
113
|
+
standaloneSchema: {};
|
|
114
|
+
macro: {};
|
|
115
|
+
macroFn: {};
|
|
116
|
+
parser: {};
|
|
117
|
+
response: {};
|
|
118
|
+
}, {
|
|
119
|
+
[x: string]: {
|
|
120
|
+
get: {
|
|
121
|
+
body: unknown;
|
|
122
|
+
params: {};
|
|
123
|
+
query: unknown;
|
|
124
|
+
headers: unknown;
|
|
125
|
+
response: {
|
|
126
|
+
200: VoiceSimulationSuiteReport;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
}, {
|
|
131
|
+
derive: {};
|
|
132
|
+
resolve: {};
|
|
133
|
+
schema: {};
|
|
134
|
+
standaloneSchema: {};
|
|
135
|
+
response: {};
|
|
136
|
+
}, {
|
|
137
|
+
derive: {};
|
|
138
|
+
resolve: {};
|
|
139
|
+
schema: {};
|
|
140
|
+
standaloneSchema: {};
|
|
141
|
+
response: {};
|
|
142
|
+
}>;
|
|
143
|
+
export type VoiceSimulationSuiteEvalRoutesOptions = VoiceEvalRoutesOptions;
|