@absolutejs/voice 0.0.22-beta.534 → 0.0.22-beta.536
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/dist/angular/index.js +347 -347
- package/dist/angular/voice-cost-dashboard.service.d.ts +1 -1
- package/dist/angular/voice-replay-timeline.service.d.ts +1 -1
- package/dist/client/agentSquadStatusWidget.d.ts +3 -3
- package/dist/client/browserVoiceSupport.d.ts +1 -1
- package/dist/client/callDebugger.d.ts +2 -2
- package/dist/client/callDebuggerWidget.d.ts +3 -3
- package/dist/client/campaignDialerProof.d.ts +4 -4
- package/dist/client/deliveryRuntime.d.ts +4 -4
- package/dist/client/deliveryRuntimeWidget.d.ts +3 -3
- package/dist/client/htmxAttributes.d.ts +1 -5
- package/dist/client/htmxBootstrap.js +82 -82
- package/dist/client/htmxDashboardRenderers.d.ts +17 -17
- package/dist/client/index.js +2478 -2484
- package/dist/client/liveOps.d.ts +2 -2
- package/dist/client/liveOpsWidget.d.ts +3 -3
- package/dist/client/opsActionCenter.d.ts +3 -3
- package/dist/client/opsActionCenterWidget.d.ts +3 -3
- package/dist/client/opsActionHistory.d.ts +2 -2
- package/dist/client/opsActionHistoryWidget.d.ts +2 -2
- package/dist/client/opsStatus.d.ts +2 -2
- package/dist/client/opsStatusWidget.d.ts +4 -4
- package/dist/client/platformCoverage.d.ts +2 -2
- package/dist/client/platformCoverageWidget.d.ts +3 -3
- package/dist/client/profileComparison.d.ts +2 -2
- package/dist/client/profileComparisonWidget.d.ts +3 -3
- package/dist/client/profileSwitchRecommendation.d.ts +2 -2
- package/dist/client/profileSwitchRecommendationWidget.d.ts +3 -3
- package/dist/client/proofTrends.d.ts +2 -2
- package/dist/client/proofTrendsWidget.d.ts +3 -3
- package/dist/client/providerCapabilities.d.ts +2 -2
- package/dist/client/providerCapabilitiesWidget.d.ts +3 -3
- package/dist/client/providerContracts.d.ts +2 -2
- package/dist/client/providerContractsWidget.d.ts +3 -3
- package/dist/client/providerSimulationControls.d.ts +1 -1
- package/dist/client/providerSimulationControlsWidget.d.ts +4 -4
- package/dist/client/providerStatus.d.ts +2 -2
- package/dist/client/providerStatusWidget.d.ts +3 -3
- package/dist/client/readinessFailures.d.ts +2 -2
- package/dist/client/readinessFailuresWidget.d.ts +3 -3
- package/dist/client/reconnectProfileEvidence.d.ts +2 -2
- package/dist/client/reconnectProfileEvidenceWidget.d.ts +3 -3
- package/dist/client/routingStatus.d.ts +2 -2
- package/dist/client/routingStatusWidget.d.ts +3 -3
- package/dist/client/sessionObservability.d.ts +2 -2
- package/dist/client/sessionObservabilityWidget.d.ts +3 -3
- package/dist/client/sessionSnapshot.d.ts +2 -2
- package/dist/client/sessionSnapshotWidget.d.ts +2 -2
- package/dist/client/traceTimeline.d.ts +2 -2
- package/dist/client/traceTimelineWidget.d.ts +3 -3
- package/dist/client/turnLatency.d.ts +4 -4
- package/dist/client/turnLatencyWidget.d.ts +3 -3
- package/dist/client/turnQuality.d.ts +2 -2
- package/dist/client/turnQualityWidget.d.ts +3 -3
- package/dist/client/workflowStatus.d.ts +2 -2
- package/dist/core/agent.d.ts +1 -1
- package/dist/core/agentSquadContract.d.ts +2 -2
- package/dist/core/agentState.d.ts +1 -1
- package/dist/core/aiScorecard.d.ts +1 -1
- package/dist/core/assistant.d.ts +1 -1
- package/dist/core/assistantHealth.d.ts +3 -3
- package/dist/core/assistantMemory.d.ts +7 -7
- package/dist/core/audioConditioning.d.ts +1 -1
- package/dist/core/audit.d.ts +6 -6
- package/dist/core/auditDeliveryRoutes.d.ts +7 -7
- package/dist/core/auditExport.d.ts +10 -10
- package/dist/core/auditRoutes.d.ts +5 -5
- package/dist/core/auditSinks.d.ts +7 -7
- package/dist/core/bargeInRoutes.d.ts +6 -6
- package/dist/core/bookingFlow.d.ts +1 -1
- package/dist/core/browserCallProfiles.d.ts +3 -3
- package/dist/core/browserMediaRoutes.d.ts +5 -5
- package/dist/core/callDebugger.d.ts +1 -1
- package/dist/core/callDisposition.d.ts +1 -1
- package/dist/core/callScorecard.d.ts +1 -1
- package/dist/core/campaign.d.ts +5 -5
- package/dist/core/campaignControls.d.ts +1 -1
- package/dist/core/campaignDialers.d.ts +4 -4
- package/dist/core/campaignTemplate.d.ts +1 -1
- package/dist/core/competitiveCoverage.d.ts +2 -2
- package/dist/core/conversationSimulator.d.ts +1 -1
- package/dist/core/correction.d.ts +1 -1
- package/dist/core/dataControl.d.ts +5 -5
- package/dist/core/deliveryRuntime.d.ts +7 -7
- package/dist/core/deliverySinkRoutes.d.ts +7 -7
- package/dist/core/demoReadyRoutes.d.ts +1 -1
- package/dist/core/dncRegistry.d.ts +1 -1
- package/dist/core/dtmfCollector.d.ts +1 -1
- package/dist/core/evalRoutes.d.ts +16 -16
- package/dist/core/fileStore.d.ts +18 -18
- package/dist/core/guardrails.d.ts +2 -2
- package/dist/core/handoff.d.ts +4 -4
- package/dist/core/handoffHealth.d.ts +4 -4
- package/dist/core/htmx.d.ts +1 -1
- package/dist/core/incidentBundle.d.ts +1 -1
- package/dist/core/incidentTimeline.d.ts +11 -11
- package/dist/core/latencySlo.d.ts +1 -1
- package/dist/core/liveCoach.d.ts +1 -1
- package/dist/core/liveLatency.d.ts +3 -3
- package/dist/core/liveOps.d.ts +6 -6
- package/dist/core/mediaPipelineRoutes.d.ts +4 -4
- package/dist/core/monitor.d.ts +1 -1
- package/dist/core/multilingualProof.d.ts +1 -1
- package/dist/core/observabilityExport.d.ts +15 -15
- package/dist/core/operationalStatus.d.ts +3 -3
- package/dist/core/operationsRecord.d.ts +8 -8
- package/dist/core/ops.d.ts +58 -58
- package/dist/core/opsActionAuditRoutes.d.ts +10 -10
- package/dist/core/opsConsoleRoutes.d.ts +3 -3
- package/dist/core/opsRecovery.d.ts +4 -4
- package/dist/core/opsSinks.d.ts +6 -6
- package/dist/core/opsStatusRoutes.d.ts +3 -3
- package/dist/core/opsWebhook.d.ts +9 -9
- package/dist/core/otelExporter.d.ts +1 -1
- package/dist/core/outcomeContract.d.ts +6 -6
- package/dist/core/pathway.d.ts +2 -2
- package/dist/core/pathwayRuntime.d.ts +2 -2
- package/dist/core/phoneAgent.d.ts +2 -2
- package/dist/core/phoneAgentProductionSmoke.d.ts +7 -7
- package/dist/core/platformCoverage.d.ts +1 -1
- package/dist/core/postCallSurvey.d.ts +1 -1
- package/dist/core/postgresStore.d.ts +8 -8
- package/dist/core/productionReadiness.d.ts +9 -9
- package/dist/core/profileSwitchRecommendation.d.ts +9 -9
- package/dist/core/proofAssertions.d.ts +1 -1
- package/dist/core/proofPack.d.ts +12 -12
- package/dist/core/proofRunner.d.ts +2 -2
- package/dist/core/proofTrends.d.ts +26 -26
- package/dist/core/providerCapabilities.d.ts +5 -5
- package/dist/core/providerDecisionTraces.d.ts +4 -4
- package/dist/core/providerHealth.d.ts +3 -3
- package/dist/core/providerOrchestration.d.ts +4 -4
- package/dist/core/providerRouterTraces.d.ts +2 -2
- package/dist/core/providerRoutingContract.d.ts +2 -2
- package/dist/core/providerSlo.d.ts +5 -5
- package/dist/core/providerStackRecommendations.d.ts +8 -8
- package/dist/core/qualityRoutes.d.ts +3 -3
- package/dist/core/queue.d.ts +26 -26
- package/dist/core/realtimeChannel.d.ts +5 -5
- package/dist/core/realtimeProviderContracts.d.ts +3 -3
- package/dist/core/reconnectContract.d.ts +16 -16
- package/dist/core/recordingStore.d.ts +2 -2
- package/dist/core/reminderScheduler.d.ts +1 -1
- package/dist/core/resilienceRoutes.d.ts +1 -1
- package/dist/core/routing.d.ts +1 -1
- package/dist/core/sessionObservability.d.ts +2 -2
- package/dist/core/sessionReplay.d.ts +12 -12
- package/dist/core/sessionSnapshot.d.ts +1 -1
- package/dist/core/simulationSuite.d.ts +4 -4
- package/dist/core/sloCalibration.d.ts +12 -12
- package/dist/core/sqliteStore.d.ts +8 -8
- package/dist/core/telephonyMediaRoutes.d.ts +4 -4
- package/dist/core/telephonyOutcome.d.ts +2 -2
- package/dist/core/toolContract.d.ts +10 -10
- package/dist/core/toolRuntime.d.ts +1 -1
- package/dist/core/trace.d.ts +18 -18
- package/dist/core/traceDeliveryRoutes.d.ts +7 -7
- package/dist/core/traceTimeline.d.ts +3 -3
- package/dist/core/turnLatency.d.ts +4 -4
- package/dist/core/turnQuality.d.ts +5 -5
- package/dist/core/types.d.ts +7 -2
- package/dist/core/voiceMonitoring.d.ts +11 -11
- package/dist/core/webhookVerification.d.ts +4 -4
- package/dist/core/whisperChannel.d.ts +4 -4
- package/dist/core/workflowContract.d.ts +13 -13
- package/dist/core/zeroDataRetention.d.ts +3 -13
- package/dist/drizzle/assistantMemory.d.ts +95 -0
- package/dist/drizzle/eval.d.ts +61 -0
- package/dist/drizzle/handoff.d.ts +62 -0
- package/dist/drizzle/incidentBundle.d.ts +61 -0
- package/dist/drizzle/index.d.ts +1088 -0
- package/dist/drizzle/index.js +3064 -0
- package/dist/drizzle/observabilityExport.d.ts +61 -0
- package/dist/drizzle/proofTrends.d.ts +126 -0
- package/dist/drizzle/runtimeStorage.d.ts +1315 -0
- package/dist/drizzle/shared.d.ts +76 -0
- package/dist/embed/index.js +72 -72
- package/dist/embed/voice-widget.js +2 -2
- package/dist/index.js +7034 -7101
- package/dist/react/index.js +2148 -2150
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +2 -2
- package/dist/svelte/createVoiceCallDebugger.d.ts +1 -1
- package/dist/svelte/createVoiceCallPlayer.d.ts +8 -8
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +2 -2
- package/dist/svelte/createVoiceCostDashboard.d.ts +4 -4
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +3 -3
- package/dist/svelte/createVoiceLiveAgentConsole.d.ts +4 -4
- package/dist/svelte/createVoiceLiveOps.d.ts +4 -4
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +2 -2
- package/dist/svelte/createVoiceOpsStatus.d.ts +2 -2
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +1 -1
- package/dist/svelte/createVoiceProviderContracts.d.ts +1 -1
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/svelte/createVoiceProviderStatus.d.ts +1 -1
- package/dist/svelte/createVoiceReplayTimeline.d.ts +1 -1
- package/dist/svelte/createVoiceRoutingStatus.d.ts +1 -1
- package/dist/svelte/createVoiceSessionObservability.d.ts +1 -1
- package/dist/svelte/createVoiceSessionSnapshot.d.ts +1 -1
- package/dist/svelte/createVoiceTraceTimeline.d.ts +1 -1
- package/dist/svelte/createVoiceTurnLatency.d.ts +2 -2
- package/dist/svelte/createVoiceTurnQuality.d.ts +1 -1
- package/dist/svelte/createVoiceWidget.d.ts +2 -2
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +1 -1
- package/dist/svelte/index.js +1518 -1522
- package/dist/telephony/matrix.d.ts +3 -3
- package/dist/telephony/plivo.d.ts +2 -2
- package/dist/telephony/security.d.ts +3 -3
- package/dist/telephony/telnyx.d.ts +1 -1
- package/dist/telephony/twilio.d.ts +2 -2
- package/dist/testing/benchmark.d.ts +6 -6
- package/dist/testing/corrected.d.ts +4 -4
- package/dist/testing/duplex.d.ts +2 -2
- package/dist/testing/fixtures.d.ts +1 -1
- package/dist/testing/index.js +1382 -1388
- package/dist/testing/review.d.ts +4 -4
- package/dist/testing/sessionBenchmark.d.ts +10 -10
- package/dist/testing/telephony.d.ts +3 -3
- package/dist/testing/tts.d.ts +1 -1
- package/dist/vue/VoiceCostDashboard.d.ts +2 -2
- package/dist/vue/index.js +2110 -2112
- package/dist/vue/useVoiceController.d.ts +5 -5
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/vue/useVoiceStream.d.ts +5 -5
- package/package.json +28 -6
package/dist/core/routing.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { VoiceSTTRoutingCorrectionMode, VoiceSTTRoutingGoal, VoiceSTTRoutingStrategy, VoiceTurnCorrectionHandler } from "./types";
|
|
2
|
-
export declare const resolveVoiceSTTRoutingStrategy: (goal?: VoiceSTTRoutingGoal) => VoiceSTTRoutingStrategy;
|
|
3
2
|
export declare const createVoiceSTTRoutingCorrectionHandler: (mode?: VoiceSTTRoutingCorrectionMode) => VoiceTurnCorrectionHandler | undefined;
|
|
3
|
+
export declare const resolveVoiceSTTRoutingStrategy: (goal?: VoiceSTTRoutingGoal) => VoiceSTTRoutingStrategy;
|
|
@@ -109,11 +109,10 @@ export type VoiceSessionObservabilityRoutesOptions = Omit<VoiceSessionObservabil
|
|
|
109
109
|
title?: string;
|
|
110
110
|
};
|
|
111
111
|
export declare const buildVoiceSessionObservabilityReport: (options: VoiceSessionObservabilityReportOptions) => Promise<VoiceSessionObservabilityReport>;
|
|
112
|
-
export declare const renderVoiceSessionObservabilityMarkdown: (report: VoiceSessionObservabilityReport) => string;
|
|
113
112
|
export declare const renderVoiceSessionObservabilityHTML: (report: VoiceSessionObservabilityReport, options?: {
|
|
114
113
|
title?: string;
|
|
115
114
|
}) => string;
|
|
116
|
-
export declare const
|
|
115
|
+
export declare const renderVoiceSessionObservabilityMarkdown: (report: VoiceSessionObservabilityReport) => string;
|
|
117
116
|
export declare const assertVoiceSessionObservabilityEvidence: (report: VoiceSessionObservabilityReport, input?: VoiceSessionObservabilityEvidenceInput) => VoiceSessionObservabilityEvidenceReport;
|
|
118
117
|
export declare const createVoiceSessionObservabilityRoutes: (options: VoiceSessionObservabilityRoutesOptions) => Elysia<"", {
|
|
119
118
|
decorator: {};
|
|
@@ -143,3 +142,4 @@ export declare const createVoiceSessionObservabilityRoutes: (options: VoiceSessi
|
|
|
143
142
|
standaloneSchema: {};
|
|
144
143
|
response: {};
|
|
145
144
|
}>;
|
|
145
|
+
export declare const evaluateVoiceSessionObservabilityEvidence: (report: VoiceSessionObservabilityReport, input?: VoiceSessionObservabilityEvidenceInput) => VoiceSessionObservabilityEvidenceReport;
|
|
@@ -90,15 +90,6 @@ export type VoiceSessionReplayRoutesOptions = VoiceSessionReplayHTMLHandlerOptio
|
|
|
90
90
|
path?: string;
|
|
91
91
|
};
|
|
92
92
|
export declare const summarizeVoiceProviderFallbackRecovery: (events: StoredVoiceTraceEvent[]) => VoiceProviderFallbackRecoverySummary;
|
|
93
|
-
export declare const summarizeVoiceSessionReplay: (options: VoiceSessionReplayOptions) => Promise<VoiceSessionReplay>;
|
|
94
|
-
export declare const summarizeVoiceSessions: (options?: VoiceSessionListOptions) => Promise<VoiceSessionListItem[]>;
|
|
95
|
-
export declare const renderVoiceSessionsHTML: (sessions: VoiceSessionListItem[]) => string;
|
|
96
|
-
export declare const createVoiceSessionsJSONHandler: (options?: VoiceSessionListOptions) => ({ query }: {
|
|
97
|
-
query?: Record<string, string | undefined>;
|
|
98
|
-
}) => Promise<VoiceSessionListItem[]>;
|
|
99
|
-
export declare const createVoiceSessionsHTMLHandler: (options?: VoiceSessionListHTMLHandlerOptions) => ({ query }: {
|
|
100
|
-
query?: Record<string, string | undefined>;
|
|
101
|
-
}) => Promise<Response>;
|
|
102
93
|
export declare const createVoiceSessionListRoutes: (options?: VoiceSessionListRoutesOptions) => Elysia<"", {
|
|
103
94
|
decorator: {};
|
|
104
95
|
store: {};
|
|
@@ -139,12 +130,12 @@ export declare const createVoiceSessionListRoutes: (options?: VoiceSessionListRo
|
|
|
139
130
|
standaloneSchema: {};
|
|
140
131
|
response: {};
|
|
141
132
|
}>;
|
|
142
|
-
export declare const createVoiceSessionReplayJSONHandler: (options: Omit<VoiceSessionReplayOptions, "sessionId">) => ({ params }: {
|
|
143
|
-
params: Record<string, string | undefined>;
|
|
144
|
-
}) => Promise<VoiceSessionReplay>;
|
|
145
133
|
export declare const createVoiceSessionReplayHTMLHandler: (options: VoiceSessionReplayHTMLHandlerOptions) => ({ params }: {
|
|
146
134
|
params: Record<string, string | undefined>;
|
|
147
135
|
}) => Promise<Response>;
|
|
136
|
+
export declare const createVoiceSessionReplayJSONHandler: (options: Omit<VoiceSessionReplayOptions, "sessionId">) => ({ params }: {
|
|
137
|
+
params: Record<string, string | undefined>;
|
|
138
|
+
}) => Promise<VoiceSessionReplay>;
|
|
148
139
|
export declare const createVoiceSessionReplayRoutes: (options: VoiceSessionReplayRoutesOptions) => Elysia<"", {
|
|
149
140
|
decorator: {};
|
|
150
141
|
store: {};
|
|
@@ -185,3 +176,12 @@ export declare const createVoiceSessionReplayRoutes: (options: VoiceSessionRepla
|
|
|
185
176
|
standaloneSchema: {};
|
|
186
177
|
response: {};
|
|
187
178
|
}>;
|
|
179
|
+
export declare const createVoiceSessionsHTMLHandler: (options?: VoiceSessionListHTMLHandlerOptions) => ({ query }: {
|
|
180
|
+
query?: Record<string, string | undefined>;
|
|
181
|
+
}) => Promise<Response>;
|
|
182
|
+
export declare const createVoiceSessionsJSONHandler: (options?: VoiceSessionListOptions) => ({ query }: {
|
|
183
|
+
query?: Record<string, string | undefined>;
|
|
184
|
+
}) => Promise<VoiceSessionListItem[]>;
|
|
185
|
+
export declare const renderVoiceSessionsHTML: (sessions: VoiceSessionListItem[]) => string;
|
|
186
|
+
export declare const summarizeVoiceSessionReplay: (options: VoiceSessionReplayOptions) => Promise<VoiceSessionReplay>;
|
|
187
|
+
export declare const summarizeVoiceSessions: (options?: VoiceSessionListOptions) => Promise<VoiceSessionListItem[]>;
|
|
@@ -58,6 +58,7 @@ export type VoiceSessionSnapshotRoutesOptions = Partial<VoiceSessionSnapshotInpu
|
|
|
58
58
|
path?: string;
|
|
59
59
|
source?: VoiceSessionSnapshotRouteSource;
|
|
60
60
|
};
|
|
61
|
+
export declare const buildVoiceSessionSnapshot: (input: VoiceSessionSnapshotInput) => VoiceSessionSnapshot;
|
|
61
62
|
export declare const buildVoiceSessionSnapshotStatus: (input: {
|
|
62
63
|
artifacts?: readonly Pick<VoiceSessionSnapshotArtifact, "status">[];
|
|
63
64
|
media?: readonly Pick<MediaProcessorGraphSnapshot, "report">[];
|
|
@@ -65,7 +66,6 @@ export declare const buildVoiceSessionSnapshotStatus: (input: {
|
|
|
65
66
|
quality?: readonly Pick<VoiceSessionSnapshotQualityEvidence, "status">[];
|
|
66
67
|
telephonyOutcomes?: readonly Pick<VoiceCampaignTelephonyOutcomeSnapshot, "campaignOutcome" | "duplicate">[];
|
|
67
68
|
}) => VoiceSessionSnapshotStatus;
|
|
68
|
-
export declare const buildVoiceSessionSnapshot: (input: VoiceSessionSnapshotInput) => VoiceSessionSnapshot;
|
|
69
69
|
export declare const parseVoiceSessionSnapshot: (snapshot: VoiceSessionSnapshot) => VoiceSessionSnapshot;
|
|
70
70
|
export declare const createVoiceSessionSnapshotRoutes: (options?: VoiceSessionSnapshotRoutesOptions) => Elysia<"", {
|
|
71
71
|
decorator: {};
|
|
@@ -95,11 +95,8 @@ export type VoiceSimulationSuiteRoutesOptions<TSession extends VoiceSessionRecor
|
|
|
95
95
|
title?: string;
|
|
96
96
|
};
|
|
97
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
98
|
export declare const assertVoiceSimulationSuiteEvidence: (report: VoiceSimulationSuiteReport, input?: VoiceSimulationSuiteAssertionInput) => VoiceSimulationSuiteAssertionReport;
|
|
100
|
-
export declare const
|
|
101
|
-
title?: string;
|
|
102
|
-
}) => string;
|
|
99
|
+
export declare const evaluateVoiceSimulationSuiteEvidence: (report: VoiceSimulationSuiteReport, input?: VoiceSimulationSuiteAssertionInput) => VoiceSimulationSuiteAssertionReport;
|
|
103
100
|
export declare const createVoiceSimulationSuiteRoutes: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceSimulationSuiteRoutesOptions<TSession>) => Elysia<"", {
|
|
104
101
|
decorator: {};
|
|
105
102
|
store: {};
|
|
@@ -140,5 +137,8 @@ export declare const createVoiceSimulationSuiteRoutes: <TSession extends VoiceSe
|
|
|
140
137
|
standaloneSchema: {};
|
|
141
138
|
response: {};
|
|
142
139
|
}>;
|
|
140
|
+
export declare const renderVoiceSimulationSuiteHTML: (report: VoiceSimulationSuiteReport, options?: {
|
|
141
|
+
title?: string;
|
|
142
|
+
}) => string;
|
|
143
143
|
export type VoiceSimulationSuiteEvalRoutesOptions = VoiceEvalRoutesOptions;
|
|
144
144
|
export {};
|
|
@@ -113,20 +113,11 @@ export type VoiceSloReadinessThresholdRoutesOptions = VoiceSloReadinessThreshold
|
|
|
113
113
|
source: (() => Promise<VoiceSloCalibrationReport | VoiceSloThresholdProfile | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>> | VoiceSloCalibrationReport | VoiceSloThresholdProfile | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>) | VoiceSloCalibrationReport | VoiceSloThresholdProfile | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>;
|
|
114
114
|
title?: string;
|
|
115
115
|
};
|
|
116
|
-
export declare const buildVoiceSloCalibrationReport: (input: Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloCalibrationReport;
|
|
117
116
|
export declare const assertVoiceSloCalibration: (input: Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloCalibrationReport;
|
|
118
|
-
export declare const
|
|
119
|
-
export declare const createVoiceSloReadinessThresholdOptions: (input: VoiceSloCalibrationReport | VoiceSloThresholdProfile | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloReadinessThresholdOptions;
|
|
117
|
+
export declare const buildVoiceSloCalibrationReport: (input: Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloCalibrationReport;
|
|
120
118
|
export declare const buildVoiceSloReadinessThresholdReport: (input: VoiceSloCalibrationReport | VoiceSloThresholdProfile | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloReadinessThresholdReportOptions) => VoiceSloReadinessThresholdReport;
|
|
121
|
-
export declare const
|
|
122
|
-
|
|
123
|
-
}) => string;
|
|
124
|
-
export declare const renderVoiceSloReadinessThresholdMarkdown: (report: VoiceSloReadinessThresholdReport, options?: {
|
|
125
|
-
title?: string;
|
|
126
|
-
}) => string;
|
|
127
|
-
export declare const renderVoiceSloReadinessThresholdHTML: (report: VoiceSloReadinessThresholdReport, options?: {
|
|
128
|
-
title?: string;
|
|
129
|
-
}) => string;
|
|
119
|
+
export declare const createVoiceSloReadinessThresholdOptions: (input: VoiceSloCalibrationReport | VoiceSloThresholdProfile | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloReadinessThresholdOptions;
|
|
120
|
+
export declare const createVoiceSloThresholdProfile: (input: VoiceSloCalibrationReport | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloThresholdProfile;
|
|
130
121
|
export declare const createVoiceSloCalibrationRoutes: (options: VoiceSloCalibrationRoutesOptions) => Elysia<"", {
|
|
131
122
|
decorator: {};
|
|
132
123
|
store: {};
|
|
@@ -183,3 +174,12 @@ export declare const createVoiceSloReadinessThresholdRoutes: (options: VoiceSloR
|
|
|
183
174
|
standaloneSchema: {};
|
|
184
175
|
response: {};
|
|
185
176
|
}>;
|
|
177
|
+
export declare const renderVoiceSloCalibrationMarkdown: (report: VoiceSloCalibrationReport, options?: {
|
|
178
|
+
title?: string;
|
|
179
|
+
}) => string;
|
|
180
|
+
export declare const renderVoiceSloReadinessThresholdHTML: (report: VoiceSloReadinessThresholdReport, options?: {
|
|
181
|
+
title?: string;
|
|
182
|
+
}) => string;
|
|
183
|
+
export declare const renderVoiceSloReadinessThresholdMarkdown: (report: VoiceSloReadinessThresholdReport, options?: {
|
|
184
|
+
title?: string;
|
|
185
|
+
}) => string;
|
|
@@ -23,15 +23,15 @@ export type VoiceSQLiteRuntimeStorage<TSession extends VoiceSessionRecord = Voic
|
|
|
23
23
|
traceDeliveries: VoiceTraceSinkDeliveryStore<TTraceDelivery>;
|
|
24
24
|
traces: VoiceTraceEventStore<TTrace>;
|
|
25
25
|
};
|
|
26
|
-
export declare const createVoiceSQLiteSessionStore: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceSQLiteStoreOptions) => VoiceSessionStore<TSession>;
|
|
27
|
-
export declare const createVoiceSQLiteReviewStore: <TArtifact extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact>(options: VoiceSQLiteStoreOptions) => VoiceCallReviewStore<TArtifact>;
|
|
28
|
-
export declare const createVoiceSQLiteTaskStore: <TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask>(options: VoiceSQLiteStoreOptions) => VoiceOpsTaskStore<TTask>;
|
|
29
|
-
export declare const createVoiceSQLiteIntegrationEventStore: <TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent>(options: VoiceSQLiteStoreOptions) => VoiceIntegrationEventStore<TEvent>;
|
|
30
|
-
export declare const createVoiceSQLiteExternalObjectMapStore: <TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap>(options: VoiceSQLiteStoreOptions) => VoiceExternalObjectMapStore<TMapping>;
|
|
31
|
-
export declare const createVoiceSQLiteTraceEventStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options: VoiceSQLiteStoreOptions) => VoiceTraceEventStore<TEvent>;
|
|
32
|
-
export declare const createVoiceSQLiteTraceSinkDeliveryStore: <TDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>(options: VoiceSQLiteStoreOptions) => VoiceTraceSinkDeliveryStore<TDelivery>;
|
|
33
26
|
export declare const createVoiceSQLiteAuditEventStore: <TEvent extends StoredVoiceAuditEvent = StoredVoiceAuditEvent>(options: VoiceSQLiteStoreOptions) => VoiceAuditEventStore<TEvent>;
|
|
34
27
|
export declare const createVoiceSQLiteAuditSinkDeliveryStore: <TDelivery extends VoiceAuditSinkDeliveryRecord = VoiceAuditSinkDeliveryRecord>(options: VoiceSQLiteStoreOptions) => VoiceAuditSinkDeliveryStore<TDelivery>;
|
|
35
|
-
export declare const createVoiceSQLiteTelephonyWebhookIdempotencyStore: <TResult = unknown>(options: VoiceSQLiteStoreOptions) => VoiceTelephonyWebhookIdempotencyStore<TResult>;
|
|
36
28
|
export declare const createVoiceSQLiteCampaignStore: (options: VoiceSQLiteStoreOptions) => VoiceCampaignStore;
|
|
29
|
+
export declare const createVoiceSQLiteExternalObjectMapStore: <TMapping extends StoredVoiceExternalObjectMap = StoredVoiceExternalObjectMap>(options: VoiceSQLiteStoreOptions) => VoiceExternalObjectMapStore<TMapping>;
|
|
30
|
+
export declare const createVoiceSQLiteIntegrationEventStore: <TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent>(options: VoiceSQLiteStoreOptions) => VoiceIntegrationEventStore<TEvent>;
|
|
31
|
+
export declare const createVoiceSQLiteReviewStore: <TArtifact extends StoredVoiceCallReviewArtifact = StoredVoiceCallReviewArtifact>(options: VoiceSQLiteStoreOptions) => VoiceCallReviewStore<TArtifact>;
|
|
37
32
|
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>;
|
|
33
|
+
export declare const createVoiceSQLiteSessionStore: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceSQLiteStoreOptions) => VoiceSessionStore<TSession>;
|
|
34
|
+
export declare const createVoiceSQLiteTaskStore: <TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask>(options: VoiceSQLiteStoreOptions) => VoiceOpsTaskStore<TTask>;
|
|
35
|
+
export declare const createVoiceSQLiteTelephonyWebhookIdempotencyStore: <TResult = unknown>(options: VoiceSQLiteStoreOptions) => VoiceTelephonyWebhookIdempotencyStore<TResult>;
|
|
36
|
+
export declare const createVoiceSQLiteTraceEventStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options: VoiceSQLiteStoreOptions) => VoiceTraceEventStore<TEvent>;
|
|
37
|
+
export declare const createVoiceSQLiteTraceSinkDeliveryStore: <TDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>(options: VoiceSQLiteStoreOptions) => VoiceTraceSinkDeliveryStore<TDelivery>;
|
|
@@ -38,10 +38,6 @@ export type VoiceTelephonyMediaTraceReportOptions = {
|
|
|
38
38
|
export declare const buildVoiceTelephonyMediaReport: (input?: {
|
|
39
39
|
carriers?: readonly VoiceTelephonyMediaCarrierInput[];
|
|
40
40
|
}) => VoiceTelephonyMediaReport;
|
|
41
|
-
export declare const getLatestVoiceTelephonyMediaReport: (options: VoiceTelephonyMediaTraceReportOptions) => Promise<VoiceTelephonyMediaReport | undefined>;
|
|
42
|
-
export declare const renderVoiceTelephonyMediaHTML: (report: VoiceTelephonyMediaReport, options?: {
|
|
43
|
-
title?: string;
|
|
44
|
-
}) => string;
|
|
45
41
|
export declare const createVoiceTelephonyMediaRoutes: (options?: VoiceTelephonyMediaRoutesOptions) => Elysia<"", {
|
|
46
42
|
decorator: {};
|
|
47
43
|
store: {};
|
|
@@ -70,3 +66,7 @@ export declare const createVoiceTelephonyMediaRoutes: (options?: VoiceTelephonyM
|
|
|
70
66
|
standaloneSchema: {};
|
|
71
67
|
response: {};
|
|
72
68
|
}>;
|
|
69
|
+
export declare const getLatestVoiceTelephonyMediaReport: (options: VoiceTelephonyMediaTraceReportOptions) => Promise<VoiceTelephonyMediaReport | undefined>;
|
|
70
|
+
export declare const renderVoiceTelephonyMediaHTML: (report: VoiceTelephonyMediaReport, options?: {
|
|
71
|
+
title?: string;
|
|
72
|
+
}) => string;
|
|
@@ -205,12 +205,12 @@ export type VoiceTelephonyWebhookRoutesOptions<TContext = unknown, TSession exte
|
|
|
205
205
|
path?: string;
|
|
206
206
|
};
|
|
207
207
|
export declare const createMemoryVoiceTelephonyWebhookIdempotencyStore: <TResult = unknown>() => VoiceTelephonyWebhookIdempotencyStore<TResult>;
|
|
208
|
-
export declare const evaluateVoiceTelephonyWebhookNormalizationEvidence: (input?: VoiceTelephonyWebhookNormalizationEvidenceInput) => VoiceTelephonyWebhookNormalizationEvidenceReport;
|
|
209
208
|
export declare const assertVoiceTelephonyWebhookNormalizationEvidence: (input?: VoiceTelephonyWebhookNormalizationEvidenceInput) => VoiceTelephonyWebhookNormalizationEvidenceReport;
|
|
209
|
+
export declare const evaluateVoiceTelephonyWebhookNormalizationEvidence: (input?: VoiceTelephonyWebhookNormalizationEvidenceInput) => VoiceTelephonyWebhookNormalizationEvidenceReport;
|
|
210
|
+
export declare const applyVoiceTelephonyOutcome: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(api: VoiceSessionHandle<TContext, TSession, TResult>, decision: VoiceTelephonyOutcomeDecision, result?: TResult) => Promise<void>;
|
|
210
211
|
export declare const createVoiceTelephonyOutcomePolicy: (policy?: VoiceTelephonyOutcomePolicy) => Required<Pick<VoiceTelephonyOutcomePolicy, "completedStatuses" | "escalationStatuses" | "failedAsNoAnswer" | "failedStatuses" | "includeProviderPayload" | "machineDetectionVoicemailValues" | "noAnswerOnZeroDuration" | "noAnswerSipCodes" | "noAnswerStatuses" | "transferStatuses" | "voicemailStatuses">> & VoiceTelephonyOutcomePolicy;
|
|
211
212
|
export declare const resolveVoiceTelephonyOutcome: (event: VoiceTelephonyOutcomeProviderEvent, policyInput?: VoiceTelephonyOutcomePolicy) => VoiceTelephonyOutcomeDecision;
|
|
212
213
|
export declare const voiceTelephonyOutcomeToRouteResult: <TResult = unknown>(decision: VoiceTelephonyOutcomeDecision, result?: TResult) => VoiceTelephonyOutcomeRouteResult<TResult>;
|
|
213
|
-
export declare const applyVoiceTelephonyOutcome: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(api: VoiceSessionHandle<TContext, TSession, TResult>, decision: VoiceTelephonyOutcomeDecision, result?: TResult) => Promise<void>;
|
|
214
214
|
export declare const signVoiceTwilioWebhook: (input: {
|
|
215
215
|
authToken: string;
|
|
216
216
|
body?: unknown;
|
|
@@ -104,21 +104,14 @@ export type VoiceToolContractRoutesOptions = VoiceToolContractHTMLHandlerOptions
|
|
|
104
104
|
name?: string;
|
|
105
105
|
path?: string;
|
|
106
106
|
};
|
|
107
|
-
export declare const
|
|
107
|
+
export declare const assertVoiceToolContractEvidence: (report: VoiceToolContractSuiteReport, input?: VoiceToolContractAssertionInput) => VoiceToolContractAssertionReport;
|
|
108
108
|
export declare const createVoiceToolContract: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TArgs = Record<string, unknown>, TToolResult = unknown, TRouteResult = unknown>(definition: VoiceToolContractDefinition<TContext, TSession, TArgs, TToolResult, TRouteResult>) => {
|
|
109
|
-
assert: () => Promise<VoiceToolContractReport>;
|
|
110
109
|
definition: VoiceToolContractDefinition<TContext, TSession, TArgs, TToolResult, TRouteResult>;
|
|
110
|
+
assert: () => Promise<VoiceToolContractReport>;
|
|
111
111
|
run: () => Promise<VoiceToolContractReport>;
|
|
112
112
|
};
|
|
113
|
-
export declare const createVoiceToolRuntimeContractDefaults: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TRouteResult = unknown>() => VoiceToolRuntimeOptions<TContext, TSession, TRouteResult>;
|
|
114
|
-
export declare const runVoiceToolContractSuite: (options: VoiceToolContractHandlerOptions) => Promise<VoiceToolContractSuiteReport>;
|
|
115
|
-
export declare const evaluateVoiceToolContractEvidence: (report: VoiceToolContractSuiteReport, input?: VoiceToolContractAssertionInput) => VoiceToolContractAssertionReport;
|
|
116
|
-
export declare const assertVoiceToolContractEvidence: (report: VoiceToolContractSuiteReport, input?: VoiceToolContractAssertionInput) => VoiceToolContractAssertionReport;
|
|
117
|
-
export declare const renderVoiceToolContractHTML: (report: VoiceToolContractSuiteReport, options?: {
|
|
118
|
-
title?: string;
|
|
119
|
-
}) => string;
|
|
120
|
-
export declare const createVoiceToolContractJSONHandler: (options: VoiceToolContractHandlerOptions) => () => Promise<VoiceToolContractSuiteReport>;
|
|
121
113
|
export declare const createVoiceToolContractHTMLHandler: (options: VoiceToolContractHTMLHandlerOptions) => () => Promise<Response>;
|
|
114
|
+
export declare const createVoiceToolContractJSONHandler: (options: VoiceToolContractHandlerOptions) => () => Promise<VoiceToolContractSuiteReport>;
|
|
122
115
|
export declare const createVoiceToolContractRoutes: (options: VoiceToolContractRoutesOptions) => Elysia<"", {
|
|
123
116
|
decorator: {};
|
|
124
117
|
store: {};
|
|
@@ -159,3 +152,10 @@ export declare const createVoiceToolContractRoutes: (options: VoiceToolContractR
|
|
|
159
152
|
standaloneSchema: {};
|
|
160
153
|
response: {};
|
|
161
154
|
}>;
|
|
155
|
+
export declare const createVoiceToolRuntimeContractDefaults: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TRouteResult = unknown>() => VoiceToolRuntimeOptions<TContext, TSession, TRouteResult>;
|
|
156
|
+
export declare const evaluateVoiceToolContractEvidence: (report: VoiceToolContractSuiteReport, input?: VoiceToolContractAssertionInput) => VoiceToolContractAssertionReport;
|
|
157
|
+
export declare const renderVoiceToolContractHTML: (report: VoiceToolContractSuiteReport, options?: {
|
|
158
|
+
title?: string;
|
|
159
|
+
}) => string;
|
|
160
|
+
export declare const runVoiceToolContract: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TArgs = Record<string, unknown>, TToolResult = unknown, TRouteResult = unknown>(definition: VoiceToolContractDefinition<TContext, TSession, TArgs, TToolResult, TRouteResult>, options?: Pick<VoiceToolContractHandlerOptions, "operationsRecordHref">) => Promise<VoiceToolContractReport>;
|
|
161
|
+
export declare const runVoiceToolContractSuite: (options: VoiceToolContractHandlerOptions) => Promise<VoiceToolContractSuiteReport>;
|
|
@@ -40,7 +40,6 @@ export type VoiceToolRuntime<TContext = unknown, TSession extends VoiceSessionRe
|
|
|
40
40
|
execute: <TArgs = Record<string, unknown>, TToolResult = unknown>(input: VoiceToolRuntimeExecuteInput<TContext, TSession, TArgs, TToolResult, TRouteResult>) => Promise<VoiceToolRuntimeResult<TToolResult>>;
|
|
41
41
|
wrapTool: <TArgs = Record<string, unknown>, TToolResult = unknown>(tool: VoiceAgentTool<TContext, TSession, TArgs, TToolResult, TRouteResult>) => VoiceAgentTool<TContext, TSession, TArgs, TToolResult, TRouteResult>;
|
|
42
42
|
};
|
|
43
|
-
export declare const createVoiceToolRuntime: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TRouteResult = unknown>(options?: VoiceToolRuntimeOptions<TContext, TSession, TRouteResult>) => VoiceToolRuntime<TContext, TSession, TRouteResult>;
|
|
44
43
|
export declare const createVoiceToolIdempotencyKey: (input: {
|
|
45
44
|
args: unknown;
|
|
46
45
|
sessionId: string;
|
|
@@ -48,3 +47,4 @@ export declare const createVoiceToolIdempotencyKey: (input: {
|
|
|
48
47
|
toolName: string;
|
|
49
48
|
turnId: string;
|
|
50
49
|
}) => string;
|
|
50
|
+
export declare const createVoiceToolRuntime: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TRouteResult = unknown>(options?: VoiceToolRuntimeOptions<TContext, TSession, TRouteResult>) => VoiceToolRuntime<TContext, TSession, TRouteResult>;
|
package/dist/core/trace.d.ts
CHANGED
|
@@ -205,35 +205,35 @@ export type VoiceResolvedTraceRedactionOptions = Required<Pick<VoiceTraceRedacti
|
|
|
205
205
|
replacement: VoiceTraceRedactionReplacement;
|
|
206
206
|
textKeys: string[];
|
|
207
207
|
};
|
|
208
|
+
export declare const createVoiceTraceEvent: <TEvent extends VoiceTraceEvent = VoiceTraceEvent>(event: TEvent) => StoredVoiceTraceEvent<TEvent["payload"]>;
|
|
208
209
|
export declare const createVoiceTraceEventId: (event: {
|
|
209
210
|
at?: number;
|
|
210
211
|
sessionId: string;
|
|
211
212
|
turnId?: string;
|
|
212
213
|
type: VoiceTraceEventType;
|
|
213
214
|
}) => string;
|
|
214
|
-
export declare const createVoiceTraceEvent: <TEvent extends VoiceTraceEvent = VoiceTraceEvent>(event: TEvent) => StoredVoiceTraceEvent<TEvent["payload"]>;
|
|
215
215
|
export declare const createVoiceTraceSinkDeliveryId: (events: StoredVoiceTraceEvent[]) => string;
|
|
216
216
|
export declare const createVoiceTraceSinkDeliveryRecord: (input: {
|
|
217
217
|
createdAt?: number;
|
|
218
218
|
events: StoredVoiceTraceEvent[];
|
|
219
219
|
id?: string;
|
|
220
220
|
} & Partial<Omit<VoiceTraceSinkDeliveryRecord, "createdAt" | "events" | "id">>) => VoiceTraceSinkDeliveryRecord;
|
|
221
|
-
export declare const filterVoiceTraceEvents: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(events: TEvent[], filter?: VoiceTraceEventFilter) => TEvent[];
|
|
222
|
-
export declare const createVoiceScopedTraceEventStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(store: VoiceTraceEventStore<TEvent>, scope: VoiceScopedTraceEventStoreOptions) => VoiceTraceEventStore<TEvent>;
|
|
223
221
|
export declare const createVoiceProofTraceStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options?: VoiceProofTraceStoreOptions<TEvent>) => VoiceTraceEventStore<TEvent>;
|
|
224
|
-
export declare const
|
|
222
|
+
export declare const createVoiceScopedTraceEventStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(store: VoiceTraceEventStore<TEvent>, scope: VoiceScopedTraceEventStoreOptions) => VoiceTraceEventStore<TEvent>;
|
|
223
|
+
export declare const filterVoiceTraceEvents: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(events: TEvent[], filter?: VoiceTraceEventFilter) => TEvent[];
|
|
225
224
|
export declare const pruneVoiceTraceEvents: (options: VoiceTracePruneOptions) => Promise<VoiceTracePruneResult>;
|
|
225
|
+
export declare const selectVoiceTraceEventsForPrune: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(events: TEvent[], options?: Omit<VoiceTracePruneOptions, "store">) => TEvent[];
|
|
226
226
|
export declare const createVoiceTraceHTTPSink: <TBody extends Record<string, unknown> = Record<string, unknown>>(options: VoiceTraceHTTPSinkOptions<TBody>) => VoiceTraceSink;
|
|
227
227
|
export declare const createVoiceTraceS3Sink: <TBody extends Record<string, unknown> = Record<string, unknown>>(options: VoiceTraceS3SinkOptions<TBody>) => VoiceTraceSink;
|
|
228
|
+
export declare const createVoiceTraceSinkStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options: VoiceTraceSinkStoreOptions<TEvent>) => VoiceTraceEventStore<TEvent>;
|
|
228
229
|
export declare const deliverVoiceTraceEventsToSinks: (input: {
|
|
229
230
|
events: StoredVoiceTraceEvent[];
|
|
230
231
|
redact?: VoiceTraceRedactionConfig;
|
|
231
232
|
sinks: VoiceTraceSink[];
|
|
232
233
|
}) => Promise<VoiceTraceSinkFanoutResult>;
|
|
233
|
-
export declare const createVoiceTraceSinkStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options: VoiceTraceSinkStoreOptions<TEvent>) => VoiceTraceEventStore<TEvent>;
|
|
234
|
-
export declare const createVoiceProfileTraceTagger: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options: VoiceProfileTraceTaggerOptions<TEvent>) => VoiceTraceEventStore<TEvent>;
|
|
235
|
-
export declare const createVoiceMemoryTraceSinkDeliveryStore: <TDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>() => VoiceTraceSinkDeliveryStore<TDelivery>;
|
|
236
234
|
export declare const createVoiceMemoryTraceEventStore: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>() => VoiceTraceEventStore<TEvent>;
|
|
235
|
+
export declare const createVoiceMemoryTraceSinkDeliveryStore: <TDelivery extends VoiceTraceSinkDeliveryRecord = VoiceTraceSinkDeliveryRecord>() => VoiceTraceSinkDeliveryStore<TDelivery>;
|
|
236
|
+
export declare const createVoiceProfileTraceTagger: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(options: VoiceProfileTraceTaggerOptions<TEvent>) => VoiceTraceEventStore<TEvent>;
|
|
237
237
|
export declare const exportVoiceTrace: (input: {
|
|
238
238
|
filter?: VoiceTraceEventFilter;
|
|
239
239
|
redact?: VoiceTraceRedactionConfig;
|
|
@@ -249,20 +249,10 @@ export declare const redactVoiceTraceText: (value: string, options?: VoiceTraceR
|
|
|
249
249
|
key?: string;
|
|
250
250
|
path?: string[];
|
|
251
251
|
}) => string;
|
|
252
|
+
export declare const evaluateVoiceTrace: (events: StoredVoiceTraceEvent[], options?: VoiceTraceEvaluationOptions) => VoiceTraceEvaluation;
|
|
252
253
|
export declare const redactVoiceTraceEvent: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(event: TEvent, options?: VoiceTraceRedactionConfig) => TEvent;
|
|
253
254
|
export declare const redactVoiceTraceEvents: <TEvent extends StoredVoiceTraceEvent = StoredVoiceTraceEvent>(events: TEvent[], options?: VoiceTraceRedactionConfig) => TEvent[];
|
|
254
255
|
export declare const summarizeVoiceTrace: (events: StoredVoiceTraceEvent[]) => VoiceTraceSummary;
|
|
255
|
-
export declare const evaluateVoiceTrace: (events: StoredVoiceTraceEvent[], options?: VoiceTraceEvaluationOptions) => VoiceTraceEvaluation;
|
|
256
|
-
export declare const renderVoiceTraceMarkdown: (events: StoredVoiceTraceEvent[], options?: {
|
|
257
|
-
title?: string;
|
|
258
|
-
evaluation?: VoiceTraceEvaluationOptions;
|
|
259
|
-
redact?: VoiceTraceRedactionConfig;
|
|
260
|
-
}) => string;
|
|
261
|
-
export declare const renderVoiceTraceHTML: (events: StoredVoiceTraceEvent[], options?: {
|
|
262
|
-
title?: string;
|
|
263
|
-
evaluation?: VoiceTraceEvaluationOptions;
|
|
264
|
-
redact?: VoiceTraceRedactionConfig;
|
|
265
|
-
}) => string;
|
|
266
256
|
export declare const buildVoiceTraceReplay: (events: StoredVoiceTraceEvent[], options?: {
|
|
267
257
|
evaluation?: VoiceTraceEvaluationOptions;
|
|
268
258
|
redact?: VoiceTraceRedactionConfig;
|
|
@@ -273,3 +263,13 @@ export declare const buildVoiceTraceReplay: (events: StoredVoiceTraceEvent[], op
|
|
|
273
263
|
markdown: string;
|
|
274
264
|
summary: VoiceTraceSummary;
|
|
275
265
|
};
|
|
266
|
+
export declare const renderVoiceTraceHTML: (events: StoredVoiceTraceEvent[], options?: {
|
|
267
|
+
title?: string;
|
|
268
|
+
evaluation?: VoiceTraceEvaluationOptions;
|
|
269
|
+
redact?: VoiceTraceRedactionConfig;
|
|
270
|
+
}) => string;
|
|
271
|
+
export declare const renderVoiceTraceMarkdown: (events: StoredVoiceTraceEvent[], options?: {
|
|
272
|
+
title?: string;
|
|
273
|
+
evaluation?: VoiceTraceEvaluationOptions;
|
|
274
|
+
redact?: VoiceTraceRedactionConfig;
|
|
275
|
+
}) => string;
|
|
@@ -34,16 +34,12 @@ export type VoiceTraceDeliveryRoutesOptions = {
|
|
|
34
34
|
};
|
|
35
35
|
export declare const resolveVoiceTraceDeliveryFilter: (query?: Record<string, unknown>, base?: VoiceTraceDeliveryFilter) => VoiceTraceDeliveryFilter;
|
|
36
36
|
export declare const buildVoiceTraceDeliveryReport: (options: VoiceTraceDeliveryRoutesOptions, filter?: VoiceTraceDeliveryFilter) => Promise<VoiceTraceDeliveryReport>;
|
|
37
|
-
export declare const renderVoiceTraceDeliveryHTML: (report: VoiceTraceDeliveryReport, options?: {
|
|
38
|
-
title?: string;
|
|
39
|
-
workerPath?: false | string;
|
|
40
|
-
}) => string;
|
|
41
|
-
export declare const createVoiceTraceDeliveryJSONHandler: (options: VoiceTraceDeliveryRoutesOptions) => ({ query }: {
|
|
42
|
-
query?: Record<string, string | undefined>;
|
|
43
|
-
}) => Promise<VoiceTraceDeliveryReport>;
|
|
44
37
|
export declare const createVoiceTraceDeliveryHTMLHandler: (options: VoiceTraceDeliveryRoutesOptions) => ({ query }: {
|
|
45
38
|
query?: Record<string, string | undefined>;
|
|
46
39
|
}) => Promise<Response>;
|
|
40
|
+
export declare const createVoiceTraceDeliveryJSONHandler: (options: VoiceTraceDeliveryRoutesOptions) => ({ query }: {
|
|
41
|
+
query?: Record<string, string | undefined>;
|
|
42
|
+
}) => Promise<VoiceTraceDeliveryReport>;
|
|
47
43
|
export declare const createVoiceTraceDeliveryRoutes: (options: VoiceTraceDeliveryRoutesOptions) => Elysia<"", {
|
|
48
44
|
decorator: {};
|
|
49
45
|
store: {};
|
|
@@ -84,3 +80,7 @@ export declare const createVoiceTraceDeliveryRoutes: (options: VoiceTraceDeliver
|
|
|
84
80
|
standaloneSchema: {};
|
|
85
81
|
response: {};
|
|
86
82
|
}>;
|
|
83
|
+
export declare const renderVoiceTraceDeliveryHTML: (report: VoiceTraceDeliveryReport, options?: {
|
|
84
|
+
title?: string;
|
|
85
|
+
workerPath?: false | string;
|
|
86
|
+
}) => string;
|
|
@@ -64,9 +64,6 @@ export declare const summarizeVoiceTraceTimeline: (events: StoredVoiceTraceEvent
|
|
|
64
64
|
export declare const renderVoiceTraceTimelineSessionHTML: (session: VoiceTraceTimelineSession, options?: {
|
|
65
65
|
title?: string;
|
|
66
66
|
}) => string;
|
|
67
|
-
export declare const renderVoiceTraceTimelineHTML: (report: VoiceTraceTimelineReport, options?: {
|
|
68
|
-
title?: string;
|
|
69
|
-
}) => string;
|
|
70
67
|
export declare const createVoiceTraceTimelineRoutes: (options: VoiceTraceTimelineRoutesOptions) => Elysia<"", {
|
|
71
68
|
decorator: {};
|
|
72
69
|
store: {};
|
|
@@ -95,3 +92,6 @@ export declare const createVoiceTraceTimelineRoutes: (options: VoiceTraceTimelin
|
|
|
95
92
|
standaloneSchema: {};
|
|
96
93
|
response: {};
|
|
97
94
|
}>;
|
|
95
|
+
export declare const renderVoiceTraceTimelineHTML: (report: VoiceTraceTimelineReport, options?: {
|
|
96
|
+
title?: string;
|
|
97
|
+
}) => string;
|
|
@@ -48,11 +48,8 @@ export type VoiceTurnLatencyRoutesOptions<TSession extends VoiceSessionRecord =
|
|
|
48
48
|
path?: string;
|
|
49
49
|
};
|
|
50
50
|
export declare const summarizeVoiceTurnLatency: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceTurnLatencyOptions<TSession>) => Promise<VoiceTurnLatencyReport>;
|
|
51
|
-
export declare const renderVoiceTurnLatencyHTML: (report: VoiceTurnLatencyReport, options?: {
|
|
52
|
-
title?: string;
|
|
53
|
-
}) => string;
|
|
54
|
-
export declare const createVoiceTurnLatencyJSONHandler: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceTurnLatencyOptions<TSession>) => () => Promise<VoiceTurnLatencyReport>;
|
|
55
51
|
export declare const createVoiceTurnLatencyHTMLHandler: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceTurnLatencyHTMLHandlerOptions<TSession>) => () => Promise<Response>;
|
|
52
|
+
export declare const createVoiceTurnLatencyJSONHandler: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceTurnLatencyOptions<TSession>) => () => Promise<VoiceTurnLatencyReport>;
|
|
56
53
|
export declare const createVoiceTurnLatencyRoutes: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceTurnLatencyRoutesOptions<TSession>) => Elysia<"", {
|
|
57
54
|
decorator: {};
|
|
58
55
|
store: {};
|
|
@@ -93,3 +90,6 @@ export declare const createVoiceTurnLatencyRoutes: <TSession extends VoiceSessio
|
|
|
93
90
|
standaloneSchema: {};
|
|
94
91
|
response: {};
|
|
95
92
|
}>;
|
|
93
|
+
export declare const renderVoiceTurnLatencyHTML: (report: VoiceTurnLatencyReport, options?: {
|
|
94
|
+
title?: string;
|
|
95
|
+
}) => string;
|
|
@@ -46,12 +46,8 @@ export type VoiceTurnQualityRoutesOptions<TSession extends VoiceSessionRecord =
|
|
|
46
46
|
name?: string;
|
|
47
47
|
path?: string;
|
|
48
48
|
};
|
|
49
|
-
export declare const summarizeVoiceTurnQuality: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceTurnQualityOptions<TSession>) => Promise<VoiceTurnQualityReport>;
|
|
50
|
-
export declare const renderVoiceTurnQualityHTML: (report: VoiceTurnQualityReport, options?: {
|
|
51
|
-
title?: string;
|
|
52
|
-
}) => string;
|
|
53
|
-
export declare const createVoiceTurnQualityJSONHandler: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceTurnQualityOptions<TSession>) => () => Promise<VoiceTurnQualityReport>;
|
|
54
49
|
export declare const createVoiceTurnQualityHTMLHandler: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceTurnQualityHTMLHandlerOptions<TSession>) => () => Promise<Response>;
|
|
50
|
+
export declare const createVoiceTurnQualityJSONHandler: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceTurnQualityOptions<TSession>) => () => Promise<VoiceTurnQualityReport>;
|
|
55
51
|
export declare const createVoiceTurnQualityRoutes: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceTurnQualityRoutesOptions<TSession>) => Elysia<"", {
|
|
56
52
|
decorator: {};
|
|
57
53
|
store: {};
|
|
@@ -92,3 +88,7 @@ export declare const createVoiceTurnQualityRoutes: <TSession extends VoiceSessio
|
|
|
92
88
|
standaloneSchema: {};
|
|
93
89
|
response: {};
|
|
94
90
|
}>;
|
|
91
|
+
export declare const renderVoiceTurnQualityHTML: (report: VoiceTurnQualityReport, options?: {
|
|
92
|
+
title?: string;
|
|
93
|
+
}) => string;
|
|
94
|
+
export declare const summarizeVoiceTurnQuality: <TSession extends VoiceSessionRecord = VoiceSessionRecord>(options: VoiceTurnQualityOptions<TSession>) => Promise<VoiceTurnQualityReport>;
|
package/dist/core/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { SessionStore } from "@absolutejs/absolute";
|
|
2
1
|
import type { MediaWebRTCStatsCollector, MediaWebRTCStatsReport, MediaWebRTCStatsReportInput, MediaWebRTCStreamContinuityInput, MediaWebRTCStreamContinuityReport } from "@absolutejs/media";
|
|
3
2
|
import type { VoiceOpsDispositionTaskPolicies, VoiceOpsTaskAssignmentRule, VoiceOpsTaskAssignmentRules, VoiceIntegrationWebhookConfig, StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationEventStore, VoiceOpsTaskPolicy, VoiceOpsTask, VoiceOpsTaskStore } from "./ops";
|
|
4
3
|
import type { VoiceIntegrationSink } from "./opsSinks";
|
|
@@ -390,7 +389,13 @@ export type VoiceHandoffConfig<TContext = unknown, TSession extends VoiceSession
|
|
|
390
389
|
enqueueOnly?: boolean;
|
|
391
390
|
failMode?: "record" | "throw";
|
|
392
391
|
};
|
|
393
|
-
export type VoiceSessionStore<TSession extends VoiceSessionRecord = VoiceSessionRecord> =
|
|
392
|
+
export type VoiceSessionStore<TSession extends VoiceSessionRecord = VoiceSessionRecord> = {
|
|
393
|
+
get: (id: string) => Promise<TSession | undefined>;
|
|
394
|
+
getOrCreate: (id: string) => Promise<TSession>;
|
|
395
|
+
set: (id: string, value: TSession) => Promise<void>;
|
|
396
|
+
list: () => Promise<VoiceSessionSummary[]>;
|
|
397
|
+
remove: (id: string) => Promise<void>;
|
|
398
|
+
};
|
|
394
399
|
export type VoiceLogger = {
|
|
395
400
|
debug?: (message: string, meta?: Record<string, unknown>) => void;
|
|
396
401
|
info?: (message: string, meta?: Record<string, unknown>) => void;
|
|
@@ -173,28 +173,28 @@ export type VoiceMonitorRunnerRoutesOptions = {
|
|
|
173
173
|
path?: string;
|
|
174
174
|
runner: VoiceMonitorRunner;
|
|
175
175
|
};
|
|
176
|
-
export declare const createVoiceMemoryMonitorIssueStore: (initial?: readonly VoiceMonitorIssue[]) => VoiceMonitorIssueStore;
|
|
177
|
-
export declare const createVoiceMemoryMonitorNotifierDeliveryReceiptStore: (initial?: readonly VoiceMonitorNotifierDeliveryReceipt[]) => VoiceMonitorNotifierDeliveryReceiptStore;
|
|
178
|
-
export declare const buildVoiceMonitorRunReport: <TEvidence = unknown>(options: VoiceMonitorRunOptions<TEvidence>) => Promise<VoiceMonitorRunReport>;
|
|
179
176
|
export declare const acknowledgeVoiceMonitorIssue: (store: VoiceMonitorIssueStore, id: string, input?: {
|
|
180
177
|
actorId?: string;
|
|
181
178
|
now?: number;
|
|
182
179
|
}) => Promise<VoiceMonitorIssue | undefined>;
|
|
183
|
-
export declare const
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
180
|
+
export declare const buildVoiceMonitorRunReport: <TEvidence = unknown>(options: VoiceMonitorRunOptions<TEvidence>) => Promise<VoiceMonitorRunReport>;
|
|
181
|
+
export declare const createVoiceMemoryMonitorIssueStore: (initial?: readonly VoiceMonitorIssue[]) => VoiceMonitorIssueStore;
|
|
182
|
+
export declare const createVoiceMemoryMonitorNotifierDeliveryReceiptStore: (initial?: readonly VoiceMonitorNotifierDeliveryReceipt[]) => VoiceMonitorNotifierDeliveryReceiptStore;
|
|
183
|
+
export declare const createVoiceMonitorRunner: <TEvidence = unknown>(options: VoiceMonitorRunnerOptions<TEvidence>) => VoiceMonitorRunner;
|
|
184
|
+
export declare const createVoiceMonitorWebhookNotifier: (options: VoiceMonitorWebhookNotifierOptions) => VoiceMonitorNotifier;
|
|
185
|
+
export declare const deliverVoiceMonitorIssueNotifications: (options: VoiceMonitorNotifierDeliveryOptions) => Promise<VoiceMonitorNotifierDeliveryReport>;
|
|
187
186
|
export declare const muteVoiceMonitorIssue: (store: VoiceMonitorIssueStore, id: string, input?: {
|
|
188
187
|
actorId?: string;
|
|
189
188
|
now?: number;
|
|
190
189
|
}) => Promise<VoiceMonitorIssue | undefined>;
|
|
191
|
-
export declare const createVoiceMonitorWebhookNotifier: (options: VoiceMonitorWebhookNotifierOptions) => VoiceMonitorNotifier;
|
|
192
|
-
export declare const deliverVoiceMonitorIssueNotifications: (options: VoiceMonitorNotifierDeliveryOptions) => Promise<VoiceMonitorNotifierDeliveryReport>;
|
|
193
|
-
export declare const createVoiceMonitorRunner: <TEvidence = unknown>(options: VoiceMonitorRunnerOptions<TEvidence>) => VoiceMonitorRunner;
|
|
194
|
-
export declare const renderVoiceMonitorMarkdown: (report: VoiceMonitorRunReport) => string;
|
|
195
190
|
export declare const renderVoiceMonitorHTML: (report: VoiceMonitorRunReport, options?: {
|
|
196
191
|
title?: string;
|
|
197
192
|
}) => string;
|
|
193
|
+
export declare const renderVoiceMonitorMarkdown: (report: VoiceMonitorRunReport) => string;
|
|
194
|
+
export declare const resolveVoiceMonitorIssue: (store: VoiceMonitorIssueStore, id: string, input?: {
|
|
195
|
+
actorId?: string;
|
|
196
|
+
now?: number;
|
|
197
|
+
}) => Promise<VoiceMonitorIssue | undefined>;
|
|
198
198
|
export declare const createVoiceMonitorRoutes: <TEvidence = unknown>(options: VoiceMonitorRoutesOptions<TEvidence>) => Elysia<"", {
|
|
199
199
|
decorator: {};
|
|
200
200
|
store: {};
|
|
@@ -15,13 +15,13 @@ export type VoiceWebhookVerificationInput = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const VOICE_WEBHOOK_SIGNATURE_HEADER = "x-absolutejs-signature";
|
|
17
17
|
export declare const VOICE_WEBHOOK_TIMESTAMP_HEADER = "x-absolutejs-timestamp";
|
|
18
|
+
export declare const extractVoiceWebhookSignatureFromHeaders: (headers: Headers | Record<string, string | string[] | undefined>) => {
|
|
19
|
+
signature: string | null;
|
|
20
|
+
timestamp: string | null;
|
|
21
|
+
};
|
|
18
22
|
export declare const signVoiceWebhookBody: (input: {
|
|
19
23
|
body: string;
|
|
20
24
|
secret: string;
|
|
21
25
|
timestamp: string;
|
|
22
26
|
}) => Promise<string>;
|
|
23
27
|
export declare const verifyVoiceWebhookSignature: (input: VoiceWebhookVerificationInput) => Promise<VoiceWebhookVerificationResult>;
|
|
24
|
-
export declare const extractVoiceWebhookSignatureFromHeaders: (headers: Headers | Record<string, string | string[] | undefined>) => {
|
|
25
|
-
signature: string | null;
|
|
26
|
-
timestamp: string | null;
|
|
27
|
-
};
|
|
@@ -36,14 +36,14 @@ type ActiveWhisper = {
|
|
|
36
36
|
startedAt: number;
|
|
37
37
|
};
|
|
38
38
|
export declare const createVoiceWhisperChannel: (options: CreateVoiceWhisperChannelOptions) => {
|
|
39
|
-
activeSupervisors: () => string[];
|
|
40
|
-
isWhispering: (supervisorId: string) => boolean;
|
|
41
39
|
pushFrame: (frame: VoiceWhisperFrame) => VoiceWhisperRoute;
|
|
42
|
-
routeFor: (supervisorId: string) => VoiceWhisperRoute | null;
|
|
43
40
|
sessionId: string;
|
|
44
|
-
setRoute(supervisorId: string, route: VoiceWhisperRoute): boolean;
|
|
45
41
|
start: (supervisorId: string, route?: VoiceWhisperRoute) => ActiveWhisper | undefined;
|
|
46
42
|
stop: (supervisorId: string) => boolean;
|
|
43
|
+
activeSupervisors: () => string[];
|
|
44
|
+
isWhispering: (supervisorId: string) => boolean;
|
|
45
|
+
routeFor: (supervisorId: string) => VoiceWhisperRoute | null;
|
|
46
|
+
setRoute(supervisorId: string, route: VoiceWhisperRoute): boolean;
|
|
47
47
|
subscribe(listener: (event: VoiceWhisperEvent) => void): () => void;
|
|
48
48
|
};
|
|
49
49
|
export type VoiceWhisperChannel = ReturnType<typeof createVoiceWhisperChannel>;
|
|
@@ -64,20 +64,9 @@ export type VoiceWorkflowContractTracePayload = {
|
|
|
64
64
|
requiredFields: string[];
|
|
65
65
|
status: "pass" | "fail";
|
|
66
66
|
};
|
|
67
|
-
export declare const validateVoiceWorkflowRouteResult: <TResult = unknown>(definition: VoiceWorkflowContractDefinition<TResult>, routeResult: VoiceRouteResult<TResult>) => VoiceWorkflowContractValidation;
|
|
68
|
-
export declare const createVoiceWorkflowScenario: <TResult = unknown>(definition: VoiceWorkflowContractDefinition<TResult>, overrides?: Partial<VoiceScenarioEvalDefinition>) => VoiceScenarioEvalDefinition;
|
|
69
67
|
export declare const createVoiceWorkflowContract: <TResult = unknown>(definition: VoiceWorkflowContractDefinition<TResult>) => VoiceWorkflowContract<TResult>;
|
|
70
|
-
export declare const
|
|
71
|
-
export declare const
|
|
72
|
-
at?: number;
|
|
73
|
-
contractId?: string;
|
|
74
|
-
scenarioId?: string;
|
|
75
|
-
sessionId: string;
|
|
76
|
-
store: VoiceTraceEventStore;
|
|
77
|
-
traceId?: string;
|
|
78
|
-
turnId?: string;
|
|
79
|
-
validation: VoiceWorkflowContractValidation;
|
|
80
|
-
}) => Promise<StoredVoiceTraceEvent<VoiceWorkflowContractTracePayload>>;
|
|
68
|
+
export declare const createVoiceWorkflowScenario: <TResult = unknown>(definition: VoiceWorkflowContractDefinition<TResult>, overrides?: Partial<VoiceScenarioEvalDefinition>) => VoiceScenarioEvalDefinition;
|
|
69
|
+
export declare const validateVoiceWorkflowRouteResult: <TResult = unknown>(definition: VoiceWorkflowContractDefinition<TResult>, routeResult: VoiceRouteResult<TResult>) => VoiceWorkflowContractValidation;
|
|
81
70
|
export declare const createVoiceWorkflowContractHandler: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(input: {
|
|
82
71
|
contract?: VoiceWorkflowContract<TResult> | VoiceWorkflowContractDefinition<TResult>;
|
|
83
72
|
handler: VoiceOnTurnHandler<TContext, TSession, TResult>;
|
|
@@ -89,3 +78,14 @@ export declare const createVoiceWorkflowContractHandler: <TContext = unknown, TS
|
|
|
89
78
|
}) => VoiceWorkflowContract<TResult> | VoiceWorkflowContractDefinition<TResult> | undefined;
|
|
90
79
|
store?: VoiceTraceEventStore;
|
|
91
80
|
}) => VoiceOnTurnHandler<TContext, TSession, TResult>;
|
|
81
|
+
export declare const createVoiceWorkflowContractPreset: <TResult = unknown>(name: VoiceWorkflowContractPresetName, options?: VoiceWorkflowContractPresetOptions<TResult>) => VoiceWorkflowContract<TResult>;
|
|
82
|
+
export declare const recordVoiceWorkflowContractTrace: (input: {
|
|
83
|
+
at?: number;
|
|
84
|
+
contractId?: string;
|
|
85
|
+
scenarioId?: string;
|
|
86
|
+
sessionId: string;
|
|
87
|
+
store: VoiceTraceEventStore;
|
|
88
|
+
traceId?: string;
|
|
89
|
+
turnId?: string;
|
|
90
|
+
validation: VoiceWorkflowContractValidation;
|
|
91
|
+
}) => Promise<StoredVoiceTraceEvent<VoiceWorkflowContractTracePayload>>;
|
|
@@ -22,20 +22,10 @@ export type CreateVoiceZeroDataRetentionPolicyOptions = {
|
|
|
22
22
|
/** Per-flag overrides; only meaningful with mode "custom" (or to relax "strict"). */
|
|
23
23
|
retain?: Partial<VoiceZeroDataRetentionRetainFlags>;
|
|
24
24
|
};
|
|
25
|
+
export declare const VOICE_ZERO_DATA_RETENTION_REDACTION_MARKER = "[redacted:zdr]";
|
|
25
26
|
export declare const createVoiceZeroDataRetentionPolicy: (options?: CreateVoiceZeroDataRetentionPolicyOptions) => VoiceZeroDataRetentionPolicy;
|
|
26
27
|
export declare const isVoiceZeroDataRetentionActive: (policy: VoiceZeroDataRetentionPolicy) => boolean;
|
|
28
|
+
export declare const scrubVoiceTraceForZeroDataRetention: (event: VoiceTraceEvent, policy: VoiceZeroDataRetentionPolicy) => VoiceTraceEvent;
|
|
29
|
+
export declare const scrubVoiceTurnForZeroDataRetention: <TResult = unknown>(turn: VoiceTurnRecord<TResult>, policy: VoiceZeroDataRetentionPolicy) => VoiceTurnRecord<TResult>;
|
|
27
30
|
export declare const shouldRetainVoiceRecording: (policy: VoiceZeroDataRetentionPolicy) => boolean;
|
|
28
31
|
export declare const shouldRetainVoiceTranscript: (policy: VoiceZeroDataRetentionPolicy) => boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Returns a scrubbed copy of a turn record honoring the ZDR policy. Structural
|
|
31
|
-
* fields (ids, timestamps, transcript count, citation ids) are preserved;
|
|
32
|
-
* content fields are replaced with a redaction marker or dropped.
|
|
33
|
-
*/
|
|
34
|
-
export declare const scrubVoiceTurnForZeroDataRetention: <TResult = unknown>(turn: VoiceTurnRecord<TResult>, policy: VoiceZeroDataRetentionPolicy) => VoiceTurnRecord<TResult>;
|
|
35
|
-
/**
|
|
36
|
-
* Returns a scrubbed copy of a trace event honoring the ZDR policy. Drops or
|
|
37
|
-
* masks free-text payload fields while keeping the event type, ids, and
|
|
38
|
-
* timestamps so observability/lifecycle accounting still works.
|
|
39
|
-
*/
|
|
40
|
-
export declare const scrubVoiceTraceForZeroDataRetention: (event: VoiceTraceEvent, policy: VoiceZeroDataRetentionPolicy) => VoiceTraceEvent;
|
|
41
|
-
export declare const VOICE_ZERO_DATA_RETENTION_REDACTION_MARKER = "[redacted:zdr]";
|