@absolutejs/voice 0.0.22-beta.39 → 0.0.22-beta.390
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 +3537 -55
- package/dist/agent.d.ts +62 -0
- package/dist/agentSquadContract.d.ts +98 -0
- package/dist/angular/index.d.ts +17 -0
- package/dist/angular/index.js +4382 -1132
- 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-profile-comparison.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 +2 -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/browserCallProfiles.d.ts +120 -0
- package/dist/browserMediaRoutes.d.ts +62 -0
- package/dist/campaign.d.ts +768 -0
- package/dist/campaignDialers.d.ts +111 -0
- package/dist/client/actions.d.ts +94 -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/browserMedia.d.ts +8 -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 +950 -14
- package/dist/client/index.d.ts +79 -0
- package/dist/client/index.js +9395 -52
- 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/profileComparison.d.ts +19 -0
- package/dist/client/profileComparisonWidget.d.ts +41 -0
- package/dist/client/profileSwitchRecommendation.d.ts +19 -0
- package/dist/client/profileSwitchRecommendationWidget.d.ts +12 -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 +32 -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/evalRoutes.d.ts +219 -0
- package/dist/fileStore.d.ts +14 -2
- package/dist/guardrails.d.ts +128 -0
- package/dist/incidentBundle.d.ts +116 -0
- package/dist/index.d.ts +150 -17
- package/dist/index.js +33089 -6169
- package/dist/latencySlo.d.ts +56 -0
- package/dist/liveLatency.d.ts +78 -0
- package/dist/liveOps.d.ts +190 -0
- package/dist/mediaPipelineRoutes.d.ts +117 -0
- package/dist/modelAdapters.d.ts +54 -2
- package/dist/observabilityExport.d.ts +481 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/operationsRecord.d.ts +351 -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 +691 -0
- package/dist/profileSwitchRecommendation.d.ts +350 -0
- package/dist/proofTrends.d.ts +715 -0
- package/dist/providerAdapters.d.ts +12 -1
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerDecisionTraces.d.ts +130 -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 +8 -1
- package/dist/queue.d.ts +9 -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/VoiceProfileComparison.d.ts +6 -0
- package/dist/react/VoiceProfileSwitchRecommendation.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 +36 -0
- package/dist/react/index.js +10012 -31
- package/dist/react/useVoiceAgentSquadStatus.d.ts +8 -0
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +2 -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/useVoiceProfileComparison.d.ts +8 -0
- package/dist/react/useVoiceProfileSwitchRecommendation.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 +2 -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/realtimeChannel.d.ts +136 -0
- package/dist/realtimeProviderContracts.d.ts +133 -0
- package/dist/reconnectContract.d.ts +88 -0
- package/dist/resilienceRoutes.d.ts +40 -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/createVoiceProfileComparison.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 +18 -0
- package/dist/svelte/index.js +5856 -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 +136 -2
- package/dist/telephonyMediaRoutes.d.ts +72 -0
- package/dist/telephonyOutcome.d.ts +273 -0
- package/dist/testing/index.js +5303 -191
- package/dist/testing/telephony.d.ts +25 -0
- package/dist/toolContract.d.ts +161 -0
- package/dist/toolRuntime.d.ts +50 -0
- package/dist/trace.d.ts +31 -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 +157 -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 +31 -0
- package/dist/vue/index.js +9442 -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/useVoiceProfileComparison.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 +899 -0
- package/dist/vue/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceStream.d.ts +3 -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 +4 -1
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { createVoiceAuditSinkDeliveryWorker, type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryRecord, type VoiceAuditSinkDeliveryStore, type VoiceAuditSinkDeliveryWorkerOptions, type VoiceAuditSinkDeliveryWorkerResult, type VoiceS3AuditSinkClient } from './auditSinks';
|
|
3
|
+
import { createVoiceTraceSinkDeliveryWorker, type VoiceRedisTaskLeaseCoordinator, type VoiceTraceSinkDeliveryQueueSummary, type VoiceTraceSinkDeliveryWorkerOptions, type VoiceTraceSinkDeliveryWorkerResult } from './queue';
|
|
4
|
+
import { type StoredVoiceTraceEvent, type VoiceS3TraceSinkClient, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore } from './trace';
|
|
5
|
+
import type { StoredVoiceAuditEvent } from './audit';
|
|
6
|
+
export type VoiceDeliveryRuntimeAuditConfig<TDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord> = VoiceAuditSinkDeliveryWorkerOptions<TDelivery> & {
|
|
7
|
+
autoStart?: boolean;
|
|
8
|
+
onError?: (error: unknown) => Promise<void> | void;
|
|
9
|
+
pollIntervalMs?: number;
|
|
10
|
+
};
|
|
11
|
+
export type VoiceDeliveryRuntimeTraceConfig<TDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord> = VoiceTraceSinkDeliveryWorkerOptions<TDelivery> & {
|
|
12
|
+
autoStart?: boolean;
|
|
13
|
+
onError?: (error: unknown) => Promise<void> | void;
|
|
14
|
+
pollIntervalMs?: number;
|
|
15
|
+
};
|
|
16
|
+
export type VoiceDeliveryRuntimeConfig<TAuditDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord> = {
|
|
17
|
+
audit?: VoiceDeliveryRuntimeAuditConfig<TAuditDelivery>;
|
|
18
|
+
trace?: VoiceDeliveryRuntimeTraceConfig<TTraceDelivery>;
|
|
19
|
+
};
|
|
20
|
+
export type VoiceDeliveryRuntimeTickResult = {
|
|
21
|
+
audit?: VoiceAuditSinkDeliveryWorkerResult;
|
|
22
|
+
trace?: VoiceTraceSinkDeliveryWorkerResult;
|
|
23
|
+
};
|
|
24
|
+
export type VoiceDeliveryRuntimeRequeueDeadLettersResult = {
|
|
25
|
+
audit: number;
|
|
26
|
+
trace: number;
|
|
27
|
+
total: number;
|
|
28
|
+
};
|
|
29
|
+
export type VoiceDeliveryRuntimeSummary = {
|
|
30
|
+
audit?: VoiceAuditSinkDeliveryQueueSummary;
|
|
31
|
+
trace?: VoiceTraceSinkDeliveryQueueSummary;
|
|
32
|
+
};
|
|
33
|
+
export type VoiceDeliveryRuntime = {
|
|
34
|
+
audit?: ReturnType<typeof createVoiceAuditSinkDeliveryWorker>;
|
|
35
|
+
isRunning: () => boolean;
|
|
36
|
+
requeueDeadLetters: () => Promise<VoiceDeliveryRuntimeRequeueDeadLettersResult>;
|
|
37
|
+
start: () => void;
|
|
38
|
+
stop: () => void;
|
|
39
|
+
summarize: () => Promise<VoiceDeliveryRuntimeSummary>;
|
|
40
|
+
tick: () => Promise<VoiceDeliveryRuntimeTickResult>;
|
|
41
|
+
trace?: ReturnType<typeof createVoiceTraceSinkDeliveryWorker>;
|
|
42
|
+
};
|
|
43
|
+
export type VoiceDeliveryRuntimeReport = {
|
|
44
|
+
checkedAt: number;
|
|
45
|
+
isRunning: boolean;
|
|
46
|
+
summary: VoiceDeliveryRuntimeSummary;
|
|
47
|
+
};
|
|
48
|
+
export type VoiceDeliveryRuntimeRoutesOptions = {
|
|
49
|
+
headers?: HeadersInit;
|
|
50
|
+
htmlPath?: false | string;
|
|
51
|
+
name?: string;
|
|
52
|
+
path?: string;
|
|
53
|
+
render?: (report: VoiceDeliveryRuntimeReport, options: {
|
|
54
|
+
requeueDeadLettersPath?: false | string;
|
|
55
|
+
tickPath?: false | string;
|
|
56
|
+
title?: string;
|
|
57
|
+
}) => string | Promise<string>;
|
|
58
|
+
runtime: VoiceDeliveryRuntime;
|
|
59
|
+
requeueDeadLettersPath?: false | string;
|
|
60
|
+
tickPath?: false | string;
|
|
61
|
+
title?: string;
|
|
62
|
+
};
|
|
63
|
+
export type VoiceDeliveryRuntimePresetMode = 'file' | 's3' | 'webhook';
|
|
64
|
+
export type VoiceDeliveryRuntimePresetLeaseConfig = VoiceRedisTaskLeaseCoordinator | {
|
|
65
|
+
audit: VoiceRedisTaskLeaseCoordinator;
|
|
66
|
+
trace: VoiceRedisTaskLeaseCoordinator;
|
|
67
|
+
};
|
|
68
|
+
export type VoiceDeliveryRuntimePresetBaseOptions = {
|
|
69
|
+
auditDeliveries: VoiceAuditSinkDeliveryStore;
|
|
70
|
+
auditSinkId?: string;
|
|
71
|
+
auditWorkerId?: string;
|
|
72
|
+
autoStart?: boolean;
|
|
73
|
+
failures?: {
|
|
74
|
+
maxFailures?: number;
|
|
75
|
+
};
|
|
76
|
+
leases: VoiceDeliveryRuntimePresetLeaseConfig;
|
|
77
|
+
pollIntervalMs?: number;
|
|
78
|
+
traceDeliveries: VoiceTraceSinkDeliveryStore;
|
|
79
|
+
traceSinkId?: string;
|
|
80
|
+
traceWorkerId?: string;
|
|
81
|
+
};
|
|
82
|
+
export type VoiceDeliveryRuntimeWebhookPresetOptions = VoiceDeliveryRuntimePresetBaseOptions & {
|
|
83
|
+
backoffMs?: number;
|
|
84
|
+
body?: {
|
|
85
|
+
audit?: (input: {
|
|
86
|
+
events: StoredVoiceAuditEvent[];
|
|
87
|
+
}) => Promise<Record<string, unknown>> | Record<string, unknown>;
|
|
88
|
+
trace?: (input: {
|
|
89
|
+
events: StoredVoiceTraceEvent[];
|
|
90
|
+
}) => Promise<Record<string, unknown>> | Record<string, unknown>;
|
|
91
|
+
};
|
|
92
|
+
fetch?: typeof fetch;
|
|
93
|
+
headers?: Record<string, string>;
|
|
94
|
+
mode: 'webhook';
|
|
95
|
+
retries?: number;
|
|
96
|
+
signingSecret?: string;
|
|
97
|
+
timeoutMs?: number;
|
|
98
|
+
url: string;
|
|
99
|
+
};
|
|
100
|
+
export type VoiceDeliveryRuntimeS3PresetOptions = VoiceDeliveryRuntimePresetBaseOptions & {
|
|
101
|
+
bucket?: string;
|
|
102
|
+
client?: VoiceS3AuditSinkClient & VoiceS3TraceSinkClient;
|
|
103
|
+
keyPrefix?: string;
|
|
104
|
+
mode: 's3';
|
|
105
|
+
};
|
|
106
|
+
export type VoiceDeliveryRuntimeFilePresetOptions = VoiceDeliveryRuntimePresetBaseOptions & {
|
|
107
|
+
directory: string;
|
|
108
|
+
mode: 'file';
|
|
109
|
+
};
|
|
110
|
+
export type VoiceDeliveryRuntimePresetOptions = VoiceDeliveryRuntimeFilePresetOptions | VoiceDeliveryRuntimeS3PresetOptions | VoiceDeliveryRuntimeWebhookPresetOptions;
|
|
111
|
+
export declare const createVoiceDeliveryRuntimePresetConfig: (options: VoiceDeliveryRuntimePresetOptions) => VoiceDeliveryRuntimeConfig;
|
|
112
|
+
export declare const createVoiceDeliveryRuntime: <TAuditDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord, TTraceDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>(config: VoiceDeliveryRuntimeConfig<TAuditDelivery, TTraceDelivery>) => VoiceDeliveryRuntime;
|
|
113
|
+
export declare const buildVoiceDeliveryRuntimeReport: (runtime: VoiceDeliveryRuntime) => Promise<VoiceDeliveryRuntimeReport>;
|
|
114
|
+
export declare const renderVoiceDeliveryRuntimeHTML: (report: VoiceDeliveryRuntimeReport, options?: {
|
|
115
|
+
requeueDeadLettersPath?: false | string;
|
|
116
|
+
tickPath?: false | string;
|
|
117
|
+
title?: string;
|
|
118
|
+
}) => string;
|
|
119
|
+
export declare const createVoiceDeliveryRuntimeRoutes: (options: VoiceDeliveryRuntimeRoutesOptions) => Elysia<"", {
|
|
120
|
+
decorator: {};
|
|
121
|
+
store: {};
|
|
122
|
+
derive: {};
|
|
123
|
+
resolve: {};
|
|
124
|
+
}, {
|
|
125
|
+
typebox: {};
|
|
126
|
+
error: {};
|
|
127
|
+
}, {
|
|
128
|
+
schema: {};
|
|
129
|
+
standaloneSchema: {};
|
|
130
|
+
macro: {};
|
|
131
|
+
macroFn: {};
|
|
132
|
+
parser: {};
|
|
133
|
+
response: {};
|
|
134
|
+
}, {
|
|
135
|
+
[x: string]: {
|
|
136
|
+
get: {
|
|
137
|
+
body: unknown;
|
|
138
|
+
params: {};
|
|
139
|
+
query: unknown;
|
|
140
|
+
headers: unknown;
|
|
141
|
+
response: {
|
|
142
|
+
200: VoiceDeliveryRuntimeReport;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
}, {
|
|
147
|
+
derive: {};
|
|
148
|
+
resolve: {};
|
|
149
|
+
schema: {};
|
|
150
|
+
standaloneSchema: {};
|
|
151
|
+
response: {};
|
|
152
|
+
}, {
|
|
153
|
+
derive: {};
|
|
154
|
+
resolve: {};
|
|
155
|
+
schema: {};
|
|
156
|
+
standaloneSchema: {};
|
|
157
|
+
response: {};
|
|
158
|
+
}>;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { type VoiceAuditSinkDeliveryStore, type VoiceAuditSinkDeliveryQueueSummary } from './auditSinks';
|
|
3
|
+
import { type VoiceTraceSinkDeliveryQueueSummary } from './queue';
|
|
4
|
+
import type { VoiceTraceSinkDeliveryStore } from './trace';
|
|
5
|
+
export type VoiceDeliverySinkKind = 'file' | 'postgres' | 's3' | 'sqlite' | 'webhook' | (string & {});
|
|
6
|
+
export type VoiceDeliverySinkDescriptor = {
|
|
7
|
+
description?: string;
|
|
8
|
+
href?: string;
|
|
9
|
+
id: string;
|
|
10
|
+
kind: VoiceDeliverySinkKind;
|
|
11
|
+
label: string;
|
|
12
|
+
mode?: string;
|
|
13
|
+
target?: string;
|
|
14
|
+
};
|
|
15
|
+
export type VoiceDeliverySinkDescriptorInput = {
|
|
16
|
+
description?: string;
|
|
17
|
+
href?: string;
|
|
18
|
+
id?: string;
|
|
19
|
+
kind: VoiceDeliverySinkKind;
|
|
20
|
+
label?: string;
|
|
21
|
+
mode?: string;
|
|
22
|
+
target?: string;
|
|
23
|
+
};
|
|
24
|
+
export type VoiceDeliverySinkPairOptions = {
|
|
25
|
+
auditHref?: string;
|
|
26
|
+
auditId?: string;
|
|
27
|
+
auditLabel?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
kind: VoiceDeliverySinkKind;
|
|
30
|
+
mode?: string;
|
|
31
|
+
target?: string;
|
|
32
|
+
traceHref?: string;
|
|
33
|
+
traceId?: string;
|
|
34
|
+
traceLabel?: string;
|
|
35
|
+
};
|
|
36
|
+
export type VoiceDeliverySinkReport = {
|
|
37
|
+
auditDeliveries?: VoiceTraceDeliverySinkSurface<VoiceAuditSinkDeliveryQueueSummary>;
|
|
38
|
+
checkedAt: number;
|
|
39
|
+
sinks: VoiceDeliverySinkDescriptor[];
|
|
40
|
+
status: 'fail' | 'pass' | 'warn';
|
|
41
|
+
traceDeliveries?: VoiceTraceDeliverySinkSurface<VoiceTraceSinkDeliveryQueueSummary>;
|
|
42
|
+
};
|
|
43
|
+
export type VoiceTraceDeliverySinkSurface<TSummary> = {
|
|
44
|
+
href?: string;
|
|
45
|
+
label: string;
|
|
46
|
+
summary: TSummary;
|
|
47
|
+
};
|
|
48
|
+
export type VoiceDeliverySinkRoutesOptions = {
|
|
49
|
+
auditDeliveries?: {
|
|
50
|
+
href?: string;
|
|
51
|
+
label?: string;
|
|
52
|
+
store: VoiceAuditSinkDeliveryStore;
|
|
53
|
+
};
|
|
54
|
+
headers?: HeadersInit;
|
|
55
|
+
htmlPath?: false | string;
|
|
56
|
+
name?: string;
|
|
57
|
+
path?: string;
|
|
58
|
+
render?: (report: VoiceDeliverySinkReport) => string | Promise<string>;
|
|
59
|
+
sinks?: readonly VoiceDeliverySinkDescriptor[];
|
|
60
|
+
title?: string;
|
|
61
|
+
traceDeliveries?: {
|
|
62
|
+
href?: string;
|
|
63
|
+
label?: string;
|
|
64
|
+
store: VoiceTraceSinkDeliveryStore;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export declare const createVoiceDeliverySinkDescriptor: (input: VoiceDeliverySinkDescriptorInput) => VoiceDeliverySinkDescriptor;
|
|
68
|
+
export declare const createVoiceFileDeliverySink: (input?: Omit<VoiceDeliverySinkDescriptorInput, "kind">) => VoiceDeliverySinkDescriptor;
|
|
69
|
+
export declare const createVoiceWebhookDeliverySink: (input?: Omit<VoiceDeliverySinkDescriptorInput, "kind">) => VoiceDeliverySinkDescriptor;
|
|
70
|
+
export declare const createVoiceS3DeliverySink: (input?: Omit<VoiceDeliverySinkDescriptorInput, "kind">) => VoiceDeliverySinkDescriptor;
|
|
71
|
+
export declare const createVoicePostgresDeliverySink: (input?: Omit<VoiceDeliverySinkDescriptorInput, "kind">) => VoiceDeliverySinkDescriptor;
|
|
72
|
+
export declare const createVoiceSQLiteDeliverySink: (input?: Omit<VoiceDeliverySinkDescriptorInput, "kind">) => VoiceDeliverySinkDescriptor;
|
|
73
|
+
export declare const createVoiceDeliverySinkPair: (options: VoiceDeliverySinkPairOptions) => VoiceDeliverySinkDescriptor[];
|
|
74
|
+
export declare const buildVoiceDeliverySinkReport: (options: VoiceDeliverySinkRoutesOptions) => Promise<VoiceDeliverySinkReport>;
|
|
75
|
+
export declare const renderVoiceDeliverySinkHTML: (report: VoiceDeliverySinkReport, options?: {
|
|
76
|
+
title?: string;
|
|
77
|
+
}) => string;
|
|
78
|
+
export declare const createVoiceDeliverySinkRoutes: (options: VoiceDeliverySinkRoutesOptions) => Elysia<"", {
|
|
79
|
+
decorator: {};
|
|
80
|
+
store: {};
|
|
81
|
+
derive: {};
|
|
82
|
+
resolve: {};
|
|
83
|
+
}, {
|
|
84
|
+
typebox: {};
|
|
85
|
+
error: {};
|
|
86
|
+
}, {
|
|
87
|
+
schema: {};
|
|
88
|
+
standaloneSchema: {};
|
|
89
|
+
macro: {};
|
|
90
|
+
macroFn: {};
|
|
91
|
+
parser: {};
|
|
92
|
+
response: {};
|
|
93
|
+
}, {
|
|
94
|
+
[x: string]: {
|
|
95
|
+
get: {
|
|
96
|
+
body: unknown;
|
|
97
|
+
params: {};
|
|
98
|
+
query: unknown;
|
|
99
|
+
headers: unknown;
|
|
100
|
+
response: {
|
|
101
|
+
200: VoiceDeliverySinkReport;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
derive: {};
|
|
107
|
+
resolve: {};
|
|
108
|
+
schema: {};
|
|
109
|
+
standaloneSchema: {};
|
|
110
|
+
response: {};
|
|
111
|
+
}, {
|
|
112
|
+
derive: {};
|
|
113
|
+
resolve: {};
|
|
114
|
+
schema: {};
|
|
115
|
+
standaloneSchema: {};
|
|
116
|
+
response: {};
|
|
117
|
+
}>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import type { VoiceOpsStatusReport } from './opsStatus';
|
|
3
|
+
import type { VoicePhoneAgentProductionSmokeReport } from './phoneAgentProductionSmoke';
|
|
4
|
+
import type { VoicePhoneAgentSetupReport } from './phoneAgent';
|
|
5
|
+
import type { VoiceProductionReadinessReport } from './productionReadiness';
|
|
6
|
+
export type VoiceDemoReadyStatus = 'fail' | 'pass' | 'warn';
|
|
7
|
+
export type VoiceDemoReadySection = {
|
|
8
|
+
description?: string;
|
|
9
|
+
href?: string;
|
|
10
|
+
label: string;
|
|
11
|
+
status: VoiceDemoReadyStatus;
|
|
12
|
+
value?: number | string;
|
|
13
|
+
};
|
|
14
|
+
export type VoiceDemoReadyReport = {
|
|
15
|
+
checkedAt: number;
|
|
16
|
+
sections: VoiceDemoReadySection[];
|
|
17
|
+
status: VoiceDemoReadyStatus;
|
|
18
|
+
summary: {
|
|
19
|
+
opsStatus?: Pick<VoiceOpsStatusReport, 'failed' | 'passed' | 'status' | 'total'>;
|
|
20
|
+
phoneSetup?: {
|
|
21
|
+
carriers: number;
|
|
22
|
+
ready: boolean;
|
|
23
|
+
};
|
|
24
|
+
phoneSmoke?: {
|
|
25
|
+
issues: number;
|
|
26
|
+
pass: boolean;
|
|
27
|
+
provider?: string;
|
|
28
|
+
sessionId?: string;
|
|
29
|
+
};
|
|
30
|
+
productionReadiness?: {
|
|
31
|
+
checks: number;
|
|
32
|
+
status: VoiceProductionReadinessReport['status'];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
title: string;
|
|
36
|
+
};
|
|
37
|
+
type VoiceDemoReadyLoader<TValue> = TValue | ((input: {
|
|
38
|
+
query: Record<string, unknown>;
|
|
39
|
+
request: Request;
|
|
40
|
+
}) => Promise<TValue | undefined> | TValue | undefined);
|
|
41
|
+
export type VoiceDemoReadyRoutesOptions = {
|
|
42
|
+
opsStatus?: false | {
|
|
43
|
+
href?: string;
|
|
44
|
+
load: VoiceDemoReadyLoader<VoiceOpsStatusReport>;
|
|
45
|
+
};
|
|
46
|
+
headers?: HeadersInit;
|
|
47
|
+
htmlPath?: false | string;
|
|
48
|
+
name?: string;
|
|
49
|
+
path?: string;
|
|
50
|
+
phoneSetup?: false | {
|
|
51
|
+
href?: string;
|
|
52
|
+
load: VoiceDemoReadyLoader<VoicePhoneAgentSetupReport>;
|
|
53
|
+
};
|
|
54
|
+
phoneSmoke?: false | {
|
|
55
|
+
href?: string;
|
|
56
|
+
load: VoiceDemoReadyLoader<VoicePhoneAgentProductionSmokeReport>;
|
|
57
|
+
};
|
|
58
|
+
productionReadiness?: false | {
|
|
59
|
+
href?: string;
|
|
60
|
+
load: VoiceDemoReadyLoader<VoiceProductionReadinessReport>;
|
|
61
|
+
};
|
|
62
|
+
render?: (report: VoiceDemoReadyReport) => Promise<string> | string;
|
|
63
|
+
title?: string;
|
|
64
|
+
};
|
|
65
|
+
export declare const buildVoiceDemoReadyReport: (options: VoiceDemoReadyRoutesOptions, input?: {
|
|
66
|
+
query?: Record<string, unknown>;
|
|
67
|
+
request?: Request;
|
|
68
|
+
}) => Promise<VoiceDemoReadyReport>;
|
|
69
|
+
export declare const renderVoiceDemoReadyHTML: (report: VoiceDemoReadyReport) => string;
|
|
70
|
+
export declare const createVoiceDemoReadyRoutes: (options: VoiceDemoReadyRoutesOptions) => Elysia<"", {
|
|
71
|
+
decorator: {};
|
|
72
|
+
store: {};
|
|
73
|
+
derive: {};
|
|
74
|
+
resolve: {};
|
|
75
|
+
}, {
|
|
76
|
+
typebox: {};
|
|
77
|
+
error: {};
|
|
78
|
+
}, {
|
|
79
|
+
schema: {};
|
|
80
|
+
standaloneSchema: {};
|
|
81
|
+
macro: {};
|
|
82
|
+
macroFn: {};
|
|
83
|
+
parser: {};
|
|
84
|
+
response: {};
|
|
85
|
+
}, {}, {
|
|
86
|
+
derive: {};
|
|
87
|
+
resolve: {};
|
|
88
|
+
schema: {};
|
|
89
|
+
standaloneSchema: {};
|
|
90
|
+
response: {};
|
|
91
|
+
}, {
|
|
92
|
+
derive: {};
|
|
93
|
+
resolve: {};
|
|
94
|
+
schema: {};
|
|
95
|
+
standaloneSchema: {};
|
|
96
|
+
response: {};
|
|
97
|
+
}>;
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { type VoiceQualityReport, type VoiceQualityThresholds } from './qualityRoutes';
|
|
3
|
+
import { summarizeVoiceTrace, type StoredVoiceTraceEvent, type VoiceTraceEventStore } from './trace';
|
|
4
|
+
export type VoiceEvalStatus = 'pass' | 'fail';
|
|
5
|
+
export type VoiceEvalSessionReport = {
|
|
6
|
+
endedAt?: number;
|
|
7
|
+
eventCount: number;
|
|
8
|
+
operationsRecordHref?: string;
|
|
9
|
+
quality: VoiceQualityReport;
|
|
10
|
+
scenarioId?: string;
|
|
11
|
+
sessionId: string;
|
|
12
|
+
startedAt?: number;
|
|
13
|
+
status: VoiceEvalStatus;
|
|
14
|
+
summary: ReturnType<typeof summarizeVoiceTrace>;
|
|
15
|
+
};
|
|
16
|
+
export type VoiceEvalTrendBucket = {
|
|
17
|
+
endedAt: number;
|
|
18
|
+
failed: number;
|
|
19
|
+
key: string;
|
|
20
|
+
passed: number;
|
|
21
|
+
total: number;
|
|
22
|
+
};
|
|
23
|
+
export type VoiceEvalReport = {
|
|
24
|
+
checkedAt: number;
|
|
25
|
+
failed: number;
|
|
26
|
+
passed: number;
|
|
27
|
+
sessions: VoiceEvalSessionReport[];
|
|
28
|
+
status: VoiceEvalStatus;
|
|
29
|
+
total: number;
|
|
30
|
+
trend: VoiceEvalTrendBucket[];
|
|
31
|
+
};
|
|
32
|
+
export type VoiceEvalBaselineSummary = {
|
|
33
|
+
failed: number;
|
|
34
|
+
failedSessionIds: string[];
|
|
35
|
+
passRate: number;
|
|
36
|
+
passed: number;
|
|
37
|
+
total: number;
|
|
38
|
+
};
|
|
39
|
+
export type VoiceEvalBaselineComparison = {
|
|
40
|
+
baseline: VoiceEvalBaselineSummary;
|
|
41
|
+
checkedAt: number;
|
|
42
|
+
current: VoiceEvalBaselineSummary;
|
|
43
|
+
deltas: {
|
|
44
|
+
failed: number;
|
|
45
|
+
passRate: number;
|
|
46
|
+
passed: number;
|
|
47
|
+
total: number;
|
|
48
|
+
};
|
|
49
|
+
newFailedSessionIds: string[];
|
|
50
|
+
recoveredSessionIds: string[];
|
|
51
|
+
reasons: string[];
|
|
52
|
+
status: VoiceEvalStatus;
|
|
53
|
+
};
|
|
54
|
+
export type VoiceEvalBaselineComparisonOptions = {
|
|
55
|
+
failOnNewFailedSessions?: boolean;
|
|
56
|
+
maxFailedDelta?: number;
|
|
57
|
+
maxPassRateDrop?: number;
|
|
58
|
+
};
|
|
59
|
+
export type VoiceEvalBaselineStore = {
|
|
60
|
+
get: () => Promise<VoiceEvalReport | undefined>;
|
|
61
|
+
set: (report: VoiceEvalReport) => Promise<void>;
|
|
62
|
+
};
|
|
63
|
+
export type VoiceScenarioEvalDefinition = {
|
|
64
|
+
description?: string;
|
|
65
|
+
forbiddenHandoffActions?: string[];
|
|
66
|
+
forbiddenLifecycleTypes?: string[];
|
|
67
|
+
id: string;
|
|
68
|
+
label?: string;
|
|
69
|
+
maxProviderErrors?: number;
|
|
70
|
+
maxSessionErrors?: number;
|
|
71
|
+
minSessions?: number;
|
|
72
|
+
minTurns?: number;
|
|
73
|
+
requiredAssistantIncludes?: string[];
|
|
74
|
+
requiredDisposition?: string;
|
|
75
|
+
requiredHandoffActions?: string[];
|
|
76
|
+
requiredLifecycleTypes?: string[];
|
|
77
|
+
requiredPayloadPaths?: string[];
|
|
78
|
+
requiredTranscriptIncludes?: string[];
|
|
79
|
+
requiredWorkflowContracts?: string[];
|
|
80
|
+
scenarioId?: string;
|
|
81
|
+
};
|
|
82
|
+
export type VoiceScenarioEvalSessionResult = {
|
|
83
|
+
eventCount: number;
|
|
84
|
+
issues: string[];
|
|
85
|
+
operationsRecordHref?: string;
|
|
86
|
+
sessionId: string;
|
|
87
|
+
status: VoiceEvalStatus;
|
|
88
|
+
};
|
|
89
|
+
export type VoiceScenarioEvalResult = {
|
|
90
|
+
description?: string;
|
|
91
|
+
failed: number;
|
|
92
|
+
id: string;
|
|
93
|
+
issues: string[];
|
|
94
|
+
label: string;
|
|
95
|
+
matchedSessions: number;
|
|
96
|
+
passed: number;
|
|
97
|
+
sessions: VoiceScenarioEvalSessionResult[];
|
|
98
|
+
status: VoiceEvalStatus;
|
|
99
|
+
};
|
|
100
|
+
export type VoiceScenarioEvalReport = {
|
|
101
|
+
checkedAt: number;
|
|
102
|
+
failed: number;
|
|
103
|
+
passed: number;
|
|
104
|
+
scenarios: VoiceScenarioEvalResult[];
|
|
105
|
+
status: VoiceEvalStatus;
|
|
106
|
+
total: number;
|
|
107
|
+
};
|
|
108
|
+
export type VoiceScenarioFixture = {
|
|
109
|
+
description?: string;
|
|
110
|
+
events: StoredVoiceTraceEvent[];
|
|
111
|
+
id: string;
|
|
112
|
+
label?: string;
|
|
113
|
+
};
|
|
114
|
+
export type VoiceScenarioFixtureStore = {
|
|
115
|
+
list: () => Promise<VoiceScenarioFixture[]>;
|
|
116
|
+
};
|
|
117
|
+
export type VoiceScenarioFixtureEvalResult = {
|
|
118
|
+
description?: string;
|
|
119
|
+
fixtureId: string;
|
|
120
|
+
label: string;
|
|
121
|
+
report: VoiceScenarioEvalReport;
|
|
122
|
+
status: VoiceEvalStatus;
|
|
123
|
+
};
|
|
124
|
+
export type VoiceScenarioFixtureEvalReport = {
|
|
125
|
+
checkedAt: number;
|
|
126
|
+
failed: number;
|
|
127
|
+
fixtures: VoiceScenarioFixtureEvalResult[];
|
|
128
|
+
passed: number;
|
|
129
|
+
status: VoiceEvalStatus;
|
|
130
|
+
total: number;
|
|
131
|
+
};
|
|
132
|
+
export type VoiceEvalLink = {
|
|
133
|
+
href: string;
|
|
134
|
+
label: string;
|
|
135
|
+
};
|
|
136
|
+
export type VoiceEvalRoutesOptions = {
|
|
137
|
+
baseline?: VoiceEvalReport | (() => Promise<VoiceEvalReport | undefined>);
|
|
138
|
+
baselineComparison?: VoiceEvalBaselineComparisonOptions;
|
|
139
|
+
baselineStore?: VoiceEvalBaselineStore;
|
|
140
|
+
events?: StoredVoiceTraceEvent[];
|
|
141
|
+
fixtures?: VoiceScenarioFixture[];
|
|
142
|
+
fixtureStore?: VoiceScenarioFixtureStore;
|
|
143
|
+
headers?: HeadersInit;
|
|
144
|
+
links?: VoiceEvalLink[];
|
|
145
|
+
limit?: number;
|
|
146
|
+
name?: string;
|
|
147
|
+
operationsRecordHref?: false | string | ((sessionId: string) => string);
|
|
148
|
+
path?: string;
|
|
149
|
+
scenarios?: VoiceScenarioEvalDefinition[];
|
|
150
|
+
store?: VoiceTraceEventStore;
|
|
151
|
+
thresholds?: VoiceQualityThresholds;
|
|
152
|
+
title?: string;
|
|
153
|
+
};
|
|
154
|
+
export declare const runVoiceSessionEvals: (options?: {
|
|
155
|
+
events?: StoredVoiceTraceEvent[];
|
|
156
|
+
limit?: number;
|
|
157
|
+
operationsRecordHref?: false | string | ((sessionId: string) => string);
|
|
158
|
+
store?: VoiceTraceEventStore;
|
|
159
|
+
thresholds?: VoiceQualityThresholds;
|
|
160
|
+
}) => Promise<VoiceEvalReport>;
|
|
161
|
+
export declare const runVoiceScenarioEvals: (options?: {
|
|
162
|
+
events?: StoredVoiceTraceEvent[];
|
|
163
|
+
operationsRecordHref?: false | string | ((sessionId: string) => string);
|
|
164
|
+
scenarios?: VoiceScenarioEvalDefinition[];
|
|
165
|
+
store?: VoiceTraceEventStore;
|
|
166
|
+
}) => Promise<VoiceScenarioEvalReport>;
|
|
167
|
+
export declare const runVoiceScenarioFixtureEvals: (options?: {
|
|
168
|
+
fixtures?: VoiceScenarioFixture[];
|
|
169
|
+
fixtureStore?: VoiceScenarioFixtureStore;
|
|
170
|
+
operationsRecordHref?: false | string | ((sessionId: string) => string);
|
|
171
|
+
scenarios?: VoiceScenarioEvalDefinition[];
|
|
172
|
+
}) => Promise<VoiceScenarioFixtureEvalReport>;
|
|
173
|
+
export declare const compareVoiceEvalBaseline: (currentReport: VoiceEvalReport, baselineReport: VoiceEvalReport, options?: VoiceEvalBaselineComparisonOptions) => VoiceEvalBaselineComparison;
|
|
174
|
+
export declare const createVoiceFileEvalBaselineStore: (filePath: string) => VoiceEvalBaselineStore;
|
|
175
|
+
export declare const createVoiceFileScenarioFixtureStore: (filePath: string) => VoiceScenarioFixtureStore;
|
|
176
|
+
export declare const renderVoiceEvalHTML: (report: VoiceEvalReport, options?: {
|
|
177
|
+
links?: VoiceEvalLink[];
|
|
178
|
+
title?: string;
|
|
179
|
+
}) => string;
|
|
180
|
+
export declare const renderVoiceEvalBaselineHTML: (comparison: VoiceEvalBaselineComparison, options?: {
|
|
181
|
+
links?: VoiceEvalLink[];
|
|
182
|
+
title?: string;
|
|
183
|
+
}) => string;
|
|
184
|
+
export declare const renderVoiceScenarioEvalHTML: (report: VoiceScenarioEvalReport, options?: {
|
|
185
|
+
links?: VoiceEvalLink[];
|
|
186
|
+
title?: string;
|
|
187
|
+
}) => string;
|
|
188
|
+
export declare const renderVoiceScenarioFixtureEvalHTML: (report: VoiceScenarioFixtureEvalReport, options?: {
|
|
189
|
+
links?: VoiceEvalLink[];
|
|
190
|
+
title?: string;
|
|
191
|
+
}) => string;
|
|
192
|
+
export declare const createVoiceEvalRoutes: (options: VoiceEvalRoutesOptions) => Elysia<"", {
|
|
193
|
+
decorator: {};
|
|
194
|
+
store: {};
|
|
195
|
+
derive: {};
|
|
196
|
+
resolve: {};
|
|
197
|
+
}, {
|
|
198
|
+
typebox: {};
|
|
199
|
+
error: {};
|
|
200
|
+
}, {
|
|
201
|
+
schema: {};
|
|
202
|
+
standaloneSchema: {};
|
|
203
|
+
macro: {};
|
|
204
|
+
macroFn: {};
|
|
205
|
+
parser: {};
|
|
206
|
+
response: {};
|
|
207
|
+
}, {}, {
|
|
208
|
+
derive: {};
|
|
209
|
+
resolve: {};
|
|
210
|
+
schema: {};
|
|
211
|
+
standaloneSchema: {};
|
|
212
|
+
response: {};
|
|
213
|
+
}, {
|
|
214
|
+
derive: {};
|
|
215
|
+
resolve: {};
|
|
216
|
+
schema: {};
|
|
217
|
+
standaloneSchema: {};
|
|
218
|
+
response: {};
|
|
219
|
+
}>;
|
package/dist/fileStore.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from './audit';
|
|
2
|
+
import type { VoiceAuditSinkDeliveryRecord, VoiceAuditSinkDeliveryStore } from './auditSinks';
|
|
3
|
+
import type { VoiceCampaignStore } from './campaign';
|
|
1
4
|
import { type VoiceAssistantMemoryRecord, type VoiceAssistantMemoryStore } from './assistantMemory';
|
|
5
|
+
import type { StoredVoiceIncidentBundleArtifact, VoiceIncidentBundleStore } from './incidentBundle';
|
|
2
6
|
import { type StoredVoiceTraceEvent, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore, type VoiceTraceEventStore } from './trace';
|
|
3
7
|
import type { StoredVoiceIntegrationEvent, StoredVoiceExternalObjectMap, StoredVoiceOpsTask, VoiceExternalObjectMap, VoiceExternalObjectMapStore, VoiceIntegrationEvent, VoiceIntegrationEventStore, VoiceOpsTask, VoiceOpsTaskStore } from './ops';
|
|
4
8
|
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewArtifact, VoiceCallReviewStore } from './testing/review';
|
|
@@ -7,9 +11,13 @@ export type VoiceFileStoreOptions = {
|
|
|
7
11
|
directory: string;
|
|
8
12
|
pretty?: boolean;
|
|
9
13
|
};
|
|
10
|
-
export type VoiceFileRuntimeStorage<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, TMemory extends VoiceAssistantMemoryRecord = VoiceAssistantMemoryRecord> = {
|
|
14
|
+
export type VoiceFileRuntimeStorage<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, TIncident extends StoredVoiceIncidentBundleArtifact = StoredVoiceIncidentBundleArtifact, TMemory extends VoiceAssistantMemoryRecord = VoiceAssistantMemoryRecord> = {
|
|
15
|
+
audit: VoiceAuditEventStore<TAudit>;
|
|
16
|
+
auditDeliveries: VoiceAuditSinkDeliveryStore<TAuditDelivery>;
|
|
17
|
+
campaigns: VoiceCampaignStore;
|
|
11
18
|
events: VoiceIntegrationEventStore<TEvent>;
|
|
12
19
|
externalObjects: VoiceExternalObjectMapStore<TMapping>;
|
|
20
|
+
incidentBundles: VoiceIncidentBundleStore<TIncident>;
|
|
13
21
|
memories: VoiceAssistantMemoryStore<TMemory>;
|
|
14
22
|
reviews: VoiceCallReviewStore<TReview>;
|
|
15
23
|
session: VoiceSessionStore<TSession>;
|
|
@@ -20,12 +28,16 @@ export type VoiceFileRuntimeStorage<TSession extends VoiceSessionRecord = VoiceS
|
|
|
20
28
|
export declare const createVoiceFileSessionStore: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceFileStoreOptions) => VoiceSessionStore<TSession>;
|
|
21
29
|
export declare const createVoiceFileReviewStore: <TArtifact extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact>(options: VoiceFileStoreOptions) => VoiceCallReviewStore<TArtifact>;
|
|
22
30
|
export declare const createVoiceFileTaskStore: <TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask>(options: VoiceFileStoreOptions) => VoiceOpsTaskStore<TTask>;
|
|
31
|
+
export declare const createVoiceFileCampaignStore: (options: VoiceFileStoreOptions) => VoiceCampaignStore;
|
|
23
32
|
export declare const createVoiceFileIntegrationEventStore: <TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent>(options: VoiceFileStoreOptions) => VoiceIntegrationEventStore<TEvent>;
|
|
24
33
|
export declare const createVoiceFileExternalObjectMapStore: <TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap>(options: VoiceFileStoreOptions) => VoiceExternalObjectMapStore<TMapping>;
|
|
25
34
|
export declare const createVoiceFileTraceEventStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options: VoiceFileStoreOptions) => VoiceTraceEventStore<TEvent>;
|
|
26
35
|
export declare const createVoiceFileTraceSinkDeliveryStore: <TDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>(options: VoiceFileStoreOptions) => VoiceTraceSinkDeliveryStore<TDelivery>;
|
|
36
|
+
export declare const createVoiceFileAuditEventStore: <TEvent extends StoredVoiceAuditEvent = StoredVoiceAuditEvent>(options: VoiceFileStoreOptions) => VoiceAuditEventStore<TEvent>;
|
|
37
|
+
export declare const createVoiceFileAuditSinkDeliveryStore: <TDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord>(options: VoiceFileStoreOptions) => VoiceAuditSinkDeliveryStore<TDelivery>;
|
|
27
38
|
export declare const createVoiceFileAssistantMemoryStore: <TRecord extends VoiceAssistantMemoryRecord = VoiceAssistantMemoryRecord>(options: VoiceFileStoreOptions) => VoiceAssistantMemoryStore<TRecord>;
|
|
28
|
-
export declare const
|
|
39
|
+
export declare const createVoiceFileIncidentBundleStore: <TArtifact extends StoredVoiceIncidentBundleArtifact = StoredVoiceIncidentBundleArtifact>(options: VoiceFileStoreOptions) => VoiceIncidentBundleStore<TArtifact>;
|
|
40
|
+
export declare const createVoiceFileRuntimeStorage: <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, TIncident extends StoredVoiceIncidentBundleArtifact = StoredVoiceIncidentBundleArtifact, TMemory extends VoiceAssistantMemoryRecord = VoiceAssistantMemoryRecord>(options: VoiceFileStoreOptions) => VoiceFileRuntimeStorage<TSession, TReview, TTask, TEvent, TMapping, TTrace, TTraceDelivery, TAudit, TAuditDelivery, TIncident, TMemory>;
|
|
29
41
|
export declare const createStoredVoiceCallReviewArtifact: <TArtifact extends VoiceCallReviewArtifact = VoiceCallReviewArtifact>(id: string, artifact: TArtifact) => TArtifact & {
|
|
30
42
|
id: string;
|
|
31
43
|
};
|