@absolutejs/voice 0.0.22-beta.25 → 0.0.22-beta.250
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 +3208 -232
- package/dist/agent.d.ts +62 -0
- package/dist/agentSquadContract.d.ts +69 -0
- package/dist/angular/index.d.ts +15 -0
- package/dist/angular/index.js +3387 -1093
- package/dist/angular/voice-agent-squad-status.service.d.ts +12 -0
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +14 -0
- package/dist/angular/voice-controller.service.d.ts +1 -0
- package/dist/angular/voice-delivery-runtime.component.d.ts +17 -0
- package/dist/angular/voice-delivery-runtime.service.d.ts +16 -0
- package/dist/angular/voice-live-ops.service.d.ts +11 -0
- package/dist/angular/voice-ops-action-center.service.d.ts +13 -0
- package/dist/angular/voice-ops-status.component.d.ts +15 -0
- package/dist/angular/voice-ops-status.service.d.ts +12 -0
- package/dist/angular/voice-platform-coverage.service.d.ts +12 -0
- package/dist/angular/voice-proof-trends.service.d.ts +12 -0
- package/dist/angular/voice-provider-capabilities.service.d.ts +12 -0
- package/dist/angular/voice-provider-contracts.service.d.ts +12 -0
- package/dist/angular/voice-routing-status.service.d.ts +11 -0
- package/dist/angular/voice-stream.service.d.ts +3 -0
- package/dist/angular/voice-trace-timeline.service.d.ts +12 -0
- package/dist/angular/voice-turn-latency.service.d.ts +13 -0
- package/dist/angular/voice-turn-quality.service.d.ts +12 -0
- package/dist/angular/voice-workflow-status.service.d.ts +12 -0
- package/dist/audit.d.ts +128 -0
- package/dist/auditDeliveryRoutes.d.ts +85 -0
- package/dist/auditExport.d.ts +34 -0
- package/dist/auditRoutes.d.ts +66 -0
- package/dist/auditSinks.d.ts +151 -0
- package/dist/bargeInRoutes.d.ts +56 -0
- package/dist/campaign.d.ts +746 -0
- package/dist/campaignDialers.d.ts +90 -0
- package/dist/client/actions.d.ts +105 -0
- package/dist/client/agentSquadStatus.d.ts +37 -0
- package/dist/client/agentSquadStatusWidget.d.ts +24 -0
- package/dist/client/bargeInMonitor.d.ts +7 -0
- package/dist/client/campaignDialerProof.d.ts +23 -0
- package/dist/client/connection.d.ts +3 -0
- package/dist/client/deliveryRuntime.d.ts +34 -0
- package/dist/client/deliveryRuntimeWidget.d.ts +37 -0
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmxBootstrap.js +747 -15
- package/dist/client/index.d.ts +66 -0
- package/dist/client/index.js +4894 -21
- package/dist/client/liveOps.d.ts +22 -0
- package/dist/client/liveOpsWidget.d.ts +23 -0
- package/dist/client/liveTurnLatency.d.ts +41 -0
- package/dist/client/opsActionCenter.d.ts +54 -0
- package/dist/client/opsActionCenterWidget.d.ts +29 -0
- package/dist/client/opsActionHistory.d.ts +19 -0
- package/dist/client/opsActionHistoryWidget.d.ts +11 -0
- package/dist/client/opsStatus.d.ts +19 -0
- package/dist/client/opsStatusWidget.d.ts +40 -0
- package/dist/client/platformCoverage.d.ts +19 -0
- package/dist/client/platformCoverageWidget.d.ts +37 -0
- package/dist/client/proofTrends.d.ts +19 -0
- package/dist/client/proofTrendsWidget.d.ts +37 -0
- package/dist/client/providerCapabilities.d.ts +19 -0
- package/dist/client/providerCapabilitiesWidget.d.ts +32 -0
- package/dist/client/providerContracts.d.ts +19 -0
- package/dist/client/providerContractsWidget.d.ts +37 -0
- package/dist/client/providerSimulationControls.d.ts +33 -0
- package/dist/client/providerSimulationControlsWidget.d.ts +20 -0
- package/dist/client/providerStatusWidget.d.ts +32 -0
- package/dist/client/routingStatus.d.ts +19 -0
- package/dist/client/routingStatusWidget.d.ts +28 -0
- package/dist/client/traceTimeline.d.ts +19 -0
- package/dist/client/traceTimelineWidget.d.ts +36 -0
- package/dist/client/turnLatency.d.ts +22 -0
- package/dist/client/turnLatencyWidget.d.ts +33 -0
- package/dist/client/turnQuality.d.ts +19 -0
- package/dist/client/turnQualityWidget.d.ts +32 -0
- package/dist/client/workflowStatus.d.ts +19 -0
- package/dist/dataControl.d.ts +140 -0
- package/dist/deliveryRuntime.d.ts +158 -0
- package/dist/deliverySinkRoutes.d.ts +117 -0
- package/dist/demoReadyRoutes.d.ts +98 -0
- package/dist/diagnosticsRoutes.d.ts +44 -0
- package/dist/evalRoutes.d.ts +219 -0
- package/dist/fileStore.d.ts +14 -2
- package/dist/guardrails.d.ts +128 -0
- package/dist/handoff.d.ts +54 -0
- package/dist/handoffHealth.d.ts +94 -0
- package/dist/incidentBundle.d.ts +116 -0
- package/dist/index.d.ts +132 -13
- package/dist/index.js +24237 -5012
- package/dist/latencySlo.d.ts +56 -0
- package/dist/liveLatency.d.ts +78 -0
- package/dist/liveOps.d.ts +122 -0
- package/dist/modelAdapters.d.ts +23 -2
- package/dist/observabilityExport.d.ts +428 -0
- package/dist/openaiRealtime.d.ts +27 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/operationsRecord.d.ts +210 -0
- package/dist/opsActionAuditRoutes.d.ts +99 -0
- package/dist/opsConsoleRoutes.d.ts +80 -0
- package/dist/opsRecovery.d.ts +137 -0
- package/dist/opsStatus.d.ts +76 -0
- package/dist/opsStatusRoutes.d.ts +33 -0
- package/dist/outcomeContract.d.ts +115 -0
- package/dist/phoneAgent.d.ts +76 -0
- package/dist/phoneAgentProductionSmoke.d.ts +115 -0
- package/dist/platformCoverage.d.ts +73 -0
- package/dist/postCallAnalysis.d.ts +98 -0
- package/dist/postgresStore.d.ts +13 -2
- package/dist/productionReadiness.d.ts +466 -0
- package/dist/proofTrends.d.ts +108 -0
- package/dist/providerAdapters.d.ts +48 -0
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerHealth.d.ts +1 -0
- package/dist/providerRoutingContract.d.ts +38 -0
- package/dist/providerSlo.d.ts +142 -0
- package/dist/providerStackRecommendations.d.ts +145 -0
- package/dist/qualityRoutes.d.ts +76 -0
- package/dist/queue.d.ts +61 -0
- package/dist/react/VoiceAgentSquadStatus.d.ts +5 -0
- package/dist/react/VoiceDeliveryRuntime.d.ts +7 -0
- package/dist/react/VoiceOpsActionCenter.d.ts +5 -0
- package/dist/react/VoiceOpsStatus.d.ts +6 -0
- package/dist/react/VoicePlatformCoverage.d.ts +6 -0
- package/dist/react/VoiceProofTrends.d.ts +6 -0
- package/dist/react/VoiceProviderCapabilities.d.ts +6 -0
- package/dist/react/VoiceProviderContracts.d.ts +6 -0
- package/dist/react/VoiceProviderSimulationControls.d.ts +5 -0
- package/dist/react/VoiceProviderStatus.d.ts +6 -0
- package/dist/react/VoiceRoutingStatus.d.ts +6 -0
- package/dist/react/VoiceTraceTimeline.d.ts +6 -0
- package/dist/react/VoiceTurnLatency.d.ts +6 -0
- package/dist/react/VoiceTurnQuality.d.ts +6 -0
- package/dist/react/index.d.ts +30 -0
- package/dist/react/index.js +4739 -33
- package/dist/react/useVoiceAgentSquadStatus.d.ts +8 -0
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +3 -0
- package/dist/react/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/react/useVoiceLiveOps.d.ts +9 -0
- package/dist/react/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/react/useVoiceOpsStatus.d.ts +8 -0
- package/dist/react/useVoicePlatformCoverage.d.ts +8 -0
- package/dist/react/useVoiceProofTrends.d.ts +8 -0
- package/dist/react/useVoiceProviderCapabilities.d.ts +8 -0
- package/dist/react/useVoiceProviderContracts.d.ts +8 -0
- package/dist/react/useVoiceProviderSimulationControls.d.ts +10 -0
- package/dist/react/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/react/useVoiceStream.d.ts +3 -0
- package/dist/react/useVoiceTraceTimeline.d.ts +8 -0
- package/dist/react/useVoiceTurnLatency.d.ts +9 -0
- package/dist/react/useVoiceTurnQuality.d.ts +8 -0
- package/dist/react/useVoiceWorkflowStatus.d.ts +8 -0
- package/dist/readinessProfiles.d.ts +37 -0
- package/dist/reconnectContract.d.ts +87 -0
- package/dist/resilienceRoutes.d.ts +143 -0
- package/dist/sessionReplay.d.ts +12 -0
- package/dist/simulationSuite.d.ts +121 -0
- package/dist/sqliteStore.d.ts +13 -2
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +9 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +11 -0
- package/dist/svelte/createVoiceLiveOps.d.ts +13 -0
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +10 -0
- package/dist/svelte/createVoiceOpsStatus.d.ts +9 -0
- package/dist/svelte/createVoicePlatformCoverage.d.ts +7 -0
- package/dist/svelte/createVoiceProofTrends.d.ts +7 -0
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +10 -0
- package/dist/svelte/createVoiceProviderContracts.d.ts +10 -0
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +11 -0
- package/dist/svelte/createVoiceProviderStatus.d.ts +4 -2
- package/dist/svelte/createVoiceRoutingStatus.d.ts +10 -0
- package/dist/svelte/createVoiceTraceTimeline.d.ts +10 -0
- package/dist/svelte/createVoiceTurnLatency.d.ts +11 -0
- package/dist/svelte/createVoiceTurnQuality.d.ts +10 -0
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +8 -0
- package/dist/svelte/index.d.ts +16 -0
- package/dist/svelte/index.js +4754 -439
- package/dist/telephony/contract.d.ts +61 -0
- package/dist/telephony/matrix.d.ts +97 -0
- package/dist/telephony/plivo.d.ts +254 -0
- package/dist/telephony/telnyx.d.ts +247 -0
- package/dist/telephony/twilio.d.ts +135 -2
- package/dist/telephonyOutcome.d.ts +201 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +2024 -69
- package/dist/testing/ioProviderSimulator.d.ts +41 -0
- package/dist/toolContract.d.ts +133 -0
- package/dist/toolRuntime.d.ts +50 -0
- package/dist/trace.d.ts +19 -1
- package/dist/traceDeliveryRoutes.d.ts +86 -0
- package/dist/traceTimeline.d.ts +97 -0
- package/dist/turnLatency.d.ts +95 -0
- package/dist/turnQuality.d.ts +94 -0
- package/dist/types.d.ts +180 -4
- package/dist/vue/VoiceDeliveryRuntime.d.ts +30 -0
- package/dist/vue/VoiceOpsActionCenter.d.ts +13 -0
- package/dist/vue/VoiceOpsStatus.d.ts +30 -0
- package/dist/vue/VoicePlatformCoverage.d.ts +23 -0
- package/dist/vue/VoiceProofTrends.d.ts +21 -0
- package/dist/vue/VoiceProviderCapabilities.d.ts +51 -0
- package/dist/vue/VoiceProviderContracts.d.ts +21 -0
- package/dist/vue/VoiceProviderSimulationControls.d.ts +88 -0
- package/dist/vue/VoiceProviderStatus.d.ts +51 -0
- package/dist/vue/VoiceRoutingStatus.d.ts +51 -0
- package/dist/vue/VoiceTurnLatency.d.ts +69 -0
- package/dist/vue/VoiceTurnQuality.d.ts +51 -0
- package/dist/vue/index.d.ts +28 -0
- package/dist/vue/index.js +4519 -57
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +11 -0
- package/dist/vue/useVoiceController.d.ts +2 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/vue/useVoiceLiveOps.d.ts +9 -0
- package/dist/vue/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/vue/useVoiceOpsStatus.d.ts +9 -0
- package/dist/vue/useVoicePlatformCoverage.d.ts +9 -0
- package/dist/vue/useVoiceProofTrends.d.ts +9 -0
- package/dist/vue/useVoiceProviderCapabilities.d.ts +9 -0
- package/dist/vue/useVoiceProviderContracts.d.ts +9 -0
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +24 -0
- package/dist/vue/useVoiceProviderStatus.d.ts +1 -1
- package/dist/vue/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceStream.d.ts +4 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +9 -0
- package/dist/vue/useVoiceTurnLatency.d.ts +10 -0
- package/dist/vue/useVoiceTurnQuality.d.ts +9 -0
- package/dist/vue/useVoiceWorkflowStatus.d.ts +9 -0
- package/dist/workflowContract.d.ts +91 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VoiceTraceTimelineReport } from '../traceTimeline';
|
|
2
|
+
export type VoiceTraceTimelineClientOptions = {
|
|
3
|
+
fetch?: typeof fetch;
|
|
4
|
+
intervalMs?: number;
|
|
5
|
+
};
|
|
6
|
+
export type VoiceTraceTimelineSnapshot = {
|
|
7
|
+
error: string | null;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
report: VoiceTraceTimelineReport | null;
|
|
10
|
+
updatedAt?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const fetchVoiceTraceTimeline: (path?: string, options?: Pick<VoiceTraceTimelineClientOptions, "fetch">) => Promise<VoiceTraceTimelineReport>;
|
|
13
|
+
export declare const createVoiceTraceTimelineStore: (path?: string, options?: VoiceTraceTimelineClientOptions) => {
|
|
14
|
+
close: () => void;
|
|
15
|
+
getServerSnapshot: () => VoiceTraceTimelineSnapshot;
|
|
16
|
+
getSnapshot: () => VoiceTraceTimelineSnapshot;
|
|
17
|
+
refresh: () => Promise<VoiceTraceTimelineReport | null>;
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { VoiceTraceTimelineSession } from '../traceTimeline';
|
|
2
|
+
import { type VoiceTraceTimelineClientOptions, type VoiceTraceTimelineSnapshot } from './traceTimeline';
|
|
3
|
+
export type VoiceTraceTimelineSessionView = VoiceTraceTimelineSession & {
|
|
4
|
+
detailHref: string;
|
|
5
|
+
durationLabel: string;
|
|
6
|
+
incidentBundleHref?: string;
|
|
7
|
+
label: string;
|
|
8
|
+
operationsRecordHref?: string;
|
|
9
|
+
providerLabel: string;
|
|
10
|
+
};
|
|
11
|
+
export type VoiceTraceTimelineViewModel = {
|
|
12
|
+
description: string;
|
|
13
|
+
error: string | null;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
label: string;
|
|
16
|
+
sessions: VoiceTraceTimelineSessionView[];
|
|
17
|
+
status: 'empty' | 'error' | 'failed' | 'loading' | 'ready' | 'warning';
|
|
18
|
+
title: string;
|
|
19
|
+
updatedAt?: number;
|
|
20
|
+
};
|
|
21
|
+
export type VoiceTraceTimelineWidgetOptions = VoiceTraceTimelineClientOptions & {
|
|
22
|
+
description?: string;
|
|
23
|
+
detailBasePath?: string;
|
|
24
|
+
incidentBundleBasePath?: false | string;
|
|
25
|
+
limit?: number;
|
|
26
|
+
operationsRecordBasePath?: false | string;
|
|
27
|
+
title?: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const createVoiceTraceTimelineViewModel: (snapshot: VoiceTraceTimelineSnapshot, options?: VoiceTraceTimelineWidgetOptions) => VoiceTraceTimelineViewModel;
|
|
30
|
+
export declare const renderVoiceTraceTimelineWidgetHTML: (snapshot: VoiceTraceTimelineSnapshot, options?: VoiceTraceTimelineWidgetOptions) => string;
|
|
31
|
+
export declare const getVoiceTraceTimelineCSS: () => string;
|
|
32
|
+
export declare const mountVoiceTraceTimeline: (element: Element, path?: string, options?: VoiceTraceTimelineWidgetOptions) => {
|
|
33
|
+
close: () => void;
|
|
34
|
+
refresh: () => Promise<import("..").VoiceTraceTimelineReport | null>;
|
|
35
|
+
};
|
|
36
|
+
export declare const defineVoiceTraceTimelineElement: (tagName?: string) => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { VoiceTurnLatencyReport } from '../turnLatency';
|
|
2
|
+
export type VoiceTurnLatencyClientOptions = {
|
|
3
|
+
fetch?: typeof fetch;
|
|
4
|
+
intervalMs?: number;
|
|
5
|
+
proofPath?: string;
|
|
6
|
+
};
|
|
7
|
+
export type VoiceTurnLatencySnapshot = {
|
|
8
|
+
error: string | null;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
report?: VoiceTurnLatencyReport;
|
|
11
|
+
updatedAt?: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const fetchVoiceTurnLatency: (path?: string, options?: Pick<VoiceTurnLatencyClientOptions, "fetch">) => Promise<VoiceTurnLatencyReport>;
|
|
14
|
+
export declare const runVoiceTurnLatencyProof: (path: string, options?: Pick<VoiceTurnLatencyClientOptions, "fetch">) => Promise<unknown>;
|
|
15
|
+
export declare const createVoiceTurnLatencyStore: (path?: string, options?: VoiceTurnLatencyClientOptions) => {
|
|
16
|
+
close: () => void;
|
|
17
|
+
getServerSnapshot: () => VoiceTurnLatencySnapshot;
|
|
18
|
+
getSnapshot: () => VoiceTurnLatencySnapshot;
|
|
19
|
+
refresh: () => Promise<VoiceTurnLatencyReport | undefined>;
|
|
20
|
+
runProof: () => Promise<VoiceTurnLatencyReport | undefined>;
|
|
21
|
+
subscribe: (listener: () => void) => () => void;
|
|
22
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { VoiceTurnLatencyItem } from '../turnLatency';
|
|
2
|
+
import { type VoiceTurnLatencyClientOptions, type VoiceTurnLatencySnapshot } from './turnLatency';
|
|
3
|
+
export type VoiceTurnLatencyCardView = VoiceTurnLatencyItem & {
|
|
4
|
+
label: string;
|
|
5
|
+
rows: Array<{
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
10
|
+
export type VoiceTurnLatencyViewModel = {
|
|
11
|
+
description: string;
|
|
12
|
+
error: string | null;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
label: string;
|
|
15
|
+
proofLabel?: string;
|
|
16
|
+
showProofAction: boolean;
|
|
17
|
+
status: 'empty' | 'error' | 'loading' | 'ready' | 'warning';
|
|
18
|
+
title: string;
|
|
19
|
+
turns: VoiceTurnLatencyCardView[];
|
|
20
|
+
updatedAt?: number;
|
|
21
|
+
};
|
|
22
|
+
export type VoiceTurnLatencyWidgetOptions = VoiceTurnLatencyClientOptions & {
|
|
23
|
+
description?: string;
|
|
24
|
+
proofLabel?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const createVoiceTurnLatencyViewModel: (snapshot: VoiceTurnLatencySnapshot, options?: VoiceTurnLatencyWidgetOptions) => VoiceTurnLatencyViewModel;
|
|
28
|
+
export declare const renderVoiceTurnLatencyHTML: (snapshot: VoiceTurnLatencySnapshot, options?: VoiceTurnLatencyWidgetOptions) => string;
|
|
29
|
+
export declare const mountVoiceTurnLatency: (element: Element, path?: string, options?: VoiceTurnLatencyWidgetOptions) => {
|
|
30
|
+
close: () => void;
|
|
31
|
+
refresh: () => Promise<import("..").VoiceTurnLatencyReport | undefined>;
|
|
32
|
+
};
|
|
33
|
+
export declare const defineVoiceTurnLatencyElement: (tagName?: string) => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VoiceTurnQualityReport } from '../turnQuality';
|
|
2
|
+
export type VoiceTurnQualityClientOptions = {
|
|
3
|
+
fetch?: typeof fetch;
|
|
4
|
+
intervalMs?: number;
|
|
5
|
+
};
|
|
6
|
+
export type VoiceTurnQualitySnapshot = {
|
|
7
|
+
error: string | null;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
report?: VoiceTurnQualityReport;
|
|
10
|
+
updatedAt?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const fetchVoiceTurnQuality: (path?: string, options?: Pick<VoiceTurnQualityClientOptions, "fetch">) => Promise<VoiceTurnQualityReport>;
|
|
13
|
+
export declare const createVoiceTurnQualityStore: (path?: string, options?: VoiceTurnQualityClientOptions) => {
|
|
14
|
+
close: () => void;
|
|
15
|
+
getServerSnapshot: () => VoiceTurnQualitySnapshot;
|
|
16
|
+
getSnapshot: () => VoiceTurnQualitySnapshot;
|
|
17
|
+
refresh: () => Promise<VoiceTurnQualityReport | undefined>;
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { VoiceTurnQualityItem } from '../turnQuality';
|
|
2
|
+
import { type VoiceTurnQualityClientOptions, type VoiceTurnQualitySnapshot } from './turnQuality';
|
|
3
|
+
export type VoiceTurnQualityCardView = VoiceTurnQualityItem & {
|
|
4
|
+
detail: string;
|
|
5
|
+
label: string;
|
|
6
|
+
rows: Array<{
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
export type VoiceTurnQualityViewModel = {
|
|
12
|
+
description: string;
|
|
13
|
+
error: string | null;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
label: string;
|
|
16
|
+
status: 'empty' | 'error' | 'loading' | 'ready' | 'warning';
|
|
17
|
+
title: string;
|
|
18
|
+
turns: VoiceTurnQualityCardView[];
|
|
19
|
+
updatedAt?: number;
|
|
20
|
+
};
|
|
21
|
+
export type VoiceTurnQualityWidgetOptions = VoiceTurnQualityClientOptions & {
|
|
22
|
+
description?: string;
|
|
23
|
+
title?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const createVoiceTurnQualityViewModel: (snapshot: VoiceTurnQualitySnapshot, options?: VoiceTurnQualityWidgetOptions) => VoiceTurnQualityViewModel;
|
|
26
|
+
export declare const renderVoiceTurnQualityHTML: (snapshot: VoiceTurnQualitySnapshot, options?: VoiceTurnQualityWidgetOptions) => string;
|
|
27
|
+
export declare const getVoiceTurnQualityCSS: () => string;
|
|
28
|
+
export declare const mountVoiceTurnQuality: (element: Element, path?: string, options?: VoiceTurnQualityWidgetOptions) => {
|
|
29
|
+
close: () => void;
|
|
30
|
+
refresh: () => Promise<import("..").VoiceTurnQualityReport | undefined>;
|
|
31
|
+
};
|
|
32
|
+
export declare const defineVoiceTurnQualityElement: (tagName?: string) => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VoiceScenarioEvalReport } from '../evalRoutes';
|
|
2
|
+
export type VoiceWorkflowStatusClientOptions = {
|
|
3
|
+
fetch?: typeof fetch;
|
|
4
|
+
intervalMs?: number;
|
|
5
|
+
};
|
|
6
|
+
export type VoiceWorkflowStatusSnapshot = {
|
|
7
|
+
error: string | null;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
report?: VoiceScenarioEvalReport;
|
|
10
|
+
updatedAt?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const fetchVoiceWorkflowStatus: (path?: string, options?: Pick<VoiceWorkflowStatusClientOptions, "fetch">) => Promise<VoiceScenarioEvalReport>;
|
|
13
|
+
export declare const createVoiceWorkflowStatusStore: (path?: string, options?: VoiceWorkflowStatusClientOptions) => {
|
|
14
|
+
close: () => void;
|
|
15
|
+
getServerSnapshot: () => VoiceWorkflowStatusSnapshot;
|
|
16
|
+
getSnapshot: () => VoiceWorkflowStatusSnapshot;
|
|
17
|
+
refresh: () => Promise<VoiceScenarioEvalReport | undefined>;
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import type { VoiceCampaignStore } from './campaign';
|
|
2
|
+
import { Elysia } from 'elysia';
|
|
3
|
+
import { type VoiceAuditActor, type VoiceAuditEventFilter, type VoiceAuditEventStore } from './audit';
|
|
4
|
+
import { exportVoiceAuditTrail } from './auditExport';
|
|
5
|
+
import type { VoiceAuditSinkDeliveryStore } from './auditSinks';
|
|
6
|
+
import type { VoiceIntegrationEventStore, VoiceOpsTaskStore } from './ops';
|
|
7
|
+
import type { VoiceIncidentBundleStore } from './incidentBundle';
|
|
8
|
+
import type { VoiceCallReviewStore } from './testing/review';
|
|
9
|
+
import type { VoiceTraceEventStore, VoiceTracePruneFilter, VoiceTraceSinkDeliveryStore } from './trace';
|
|
10
|
+
import type { VoiceSessionStore } from './types';
|
|
11
|
+
export declare const voiceComplianceRedactionDefaults: {
|
|
12
|
+
keys: string[];
|
|
13
|
+
redactEmails: true;
|
|
14
|
+
redactPhoneNumbers: true;
|
|
15
|
+
};
|
|
16
|
+
export type VoiceDataRetentionScope = 'auditDeliveries' | 'campaigns' | 'events' | 'incidentBundles' | 'reviews' | 'sessions' | 'tasks' | 'traceDeliveries' | 'traces';
|
|
17
|
+
export type VoiceDataRetentionStores = {
|
|
18
|
+
campaigns?: VoiceCampaignStore;
|
|
19
|
+
events?: VoiceIntegrationEventStore;
|
|
20
|
+
incidentBundles?: VoiceIncidentBundleStore;
|
|
21
|
+
reviews?: VoiceCallReviewStore;
|
|
22
|
+
session?: VoiceSessionStore;
|
|
23
|
+
sessions?: VoiceSessionStore;
|
|
24
|
+
tasks?: VoiceOpsTaskStore;
|
|
25
|
+
traceDeliveries?: VoiceTraceSinkDeliveryStore;
|
|
26
|
+
traces?: VoiceTraceEventStore;
|
|
27
|
+
};
|
|
28
|
+
export type VoiceDataRetentionPolicy = VoiceDataRetentionStores & {
|
|
29
|
+
audit?: VoiceAuditEventStore;
|
|
30
|
+
auditDeliveries?: VoiceAuditSinkDeliveryStore;
|
|
31
|
+
auditActor?: VoiceAuditActor;
|
|
32
|
+
before?: number;
|
|
33
|
+
beforeOrAt?: number;
|
|
34
|
+
dryRun?: boolean;
|
|
35
|
+
keepNewest?: Partial<Record<VoiceDataRetentionScope, number>>;
|
|
36
|
+
limit?: number;
|
|
37
|
+
scopes?: VoiceDataRetentionScope[];
|
|
38
|
+
traceFilter?: VoiceTracePruneFilter;
|
|
39
|
+
};
|
|
40
|
+
export type VoiceDataRetentionScopeReport = {
|
|
41
|
+
deletedIds: string[];
|
|
42
|
+
deletedCount: number;
|
|
43
|
+
dryRun: boolean;
|
|
44
|
+
keepNewest?: number;
|
|
45
|
+
scannedCount: number;
|
|
46
|
+
scope: VoiceDataRetentionScope;
|
|
47
|
+
skippedReason?: 'missing-store' | 'missing-selector';
|
|
48
|
+
};
|
|
49
|
+
export type VoiceDataRetentionReport = {
|
|
50
|
+
checkedAt: number;
|
|
51
|
+
deletedCount: number;
|
|
52
|
+
dryRun: boolean;
|
|
53
|
+
scopes: VoiceDataRetentionScopeReport[];
|
|
54
|
+
};
|
|
55
|
+
export type VoiceDataControlStorageSurface = {
|
|
56
|
+
configured: boolean;
|
|
57
|
+
control: 'audit' | 'artifact' | 'queue' | 'session' | 'workflow';
|
|
58
|
+
name: string;
|
|
59
|
+
selfHosted: boolean;
|
|
60
|
+
};
|
|
61
|
+
export type VoiceDataControlProviderKeySurface = {
|
|
62
|
+
env?: string;
|
|
63
|
+
name: string;
|
|
64
|
+
recommendation: string;
|
|
65
|
+
required: boolean;
|
|
66
|
+
};
|
|
67
|
+
export type VoiceDataControlReport = {
|
|
68
|
+
auditExport?: Awaited<ReturnType<typeof exportVoiceAuditTrail>>;
|
|
69
|
+
checkedAt: number;
|
|
70
|
+
deletionProof?: VoiceDataRetentionReport;
|
|
71
|
+
redaction: {
|
|
72
|
+
defaults: typeof voiceComplianceRedactionDefaults;
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
};
|
|
75
|
+
retentionPlan: VoiceDataRetentionReport;
|
|
76
|
+
storage: VoiceDataControlStorageSurface[];
|
|
77
|
+
providerKeys: VoiceDataControlProviderKeySurface[];
|
|
78
|
+
zeroRetentionAvailable: boolean;
|
|
79
|
+
};
|
|
80
|
+
export type VoiceDataControlRoutesOptions = VoiceDataRetentionStores & {
|
|
81
|
+
audit?: VoiceAuditEventStore;
|
|
82
|
+
auditActor?: VoiceAuditActor;
|
|
83
|
+
auditDeliveries?: VoiceAuditSinkDeliveryStore;
|
|
84
|
+
headers?: HeadersInit;
|
|
85
|
+
name?: string;
|
|
86
|
+
path?: string;
|
|
87
|
+
providerKeys?: VoiceDataControlProviderKeySurface[];
|
|
88
|
+
redact?: import('./trace').VoiceTraceRedactionConfig | boolean;
|
|
89
|
+
title?: string;
|
|
90
|
+
traceDeliveries?: VoiceTraceSinkDeliveryStore;
|
|
91
|
+
};
|
|
92
|
+
export declare const applyVoiceDataRetentionPolicy: (options: VoiceDataRetentionPolicy) => Promise<VoiceDataRetentionReport>;
|
|
93
|
+
export declare const buildVoiceDataRetentionPlan: (options: Omit<VoiceDataRetentionPolicy, "dryRun">) => Promise<VoiceDataRetentionReport>;
|
|
94
|
+
export declare const createVoiceZeroRetentionPolicy: (options: VoiceDataRetentionStores & {
|
|
95
|
+
audit?: VoiceAuditEventStore;
|
|
96
|
+
auditActor?: VoiceAuditActor;
|
|
97
|
+
auditDeliveries?: VoiceAuditSinkDeliveryStore;
|
|
98
|
+
beforeOrAt?: number;
|
|
99
|
+
dryRun?: boolean;
|
|
100
|
+
scopes?: VoiceDataRetentionScope[];
|
|
101
|
+
traceDeliveries?: VoiceTraceSinkDeliveryStore;
|
|
102
|
+
}) => VoiceDataRetentionPolicy;
|
|
103
|
+
export declare const buildVoiceDataControlReport: (options: VoiceDataControlRoutesOptions & {
|
|
104
|
+
auditFilter?: VoiceAuditEventFilter;
|
|
105
|
+
retention?: Omit<VoiceDataRetentionPolicy, "dryRun">;
|
|
106
|
+
}) => Promise<VoiceDataControlReport>;
|
|
107
|
+
export declare const renderVoiceDataControlHTML: (report: VoiceDataControlReport, options?: {
|
|
108
|
+
title?: string;
|
|
109
|
+
}) => string;
|
|
110
|
+
export declare const renderVoiceDataControlMarkdown: (report: VoiceDataControlReport, options?: {
|
|
111
|
+
title?: string;
|
|
112
|
+
}) => string;
|
|
113
|
+
export declare const createVoiceDataControlRoutes: (options: VoiceDataControlRoutesOptions) => Elysia<"", {
|
|
114
|
+
decorator: {};
|
|
115
|
+
store: {};
|
|
116
|
+
derive: {};
|
|
117
|
+
resolve: {};
|
|
118
|
+
}, {
|
|
119
|
+
typebox: {};
|
|
120
|
+
error: {};
|
|
121
|
+
}, {
|
|
122
|
+
schema: {};
|
|
123
|
+
standaloneSchema: {};
|
|
124
|
+
macro: {};
|
|
125
|
+
macroFn: {};
|
|
126
|
+
parser: {};
|
|
127
|
+
response: {};
|
|
128
|
+
}, {}, {
|
|
129
|
+
derive: {};
|
|
130
|
+
resolve: {};
|
|
131
|
+
schema: {};
|
|
132
|
+
standaloneSchema: {};
|
|
133
|
+
response: {};
|
|
134
|
+
}, {
|
|
135
|
+
derive: {};
|
|
136
|
+
resolve: {};
|
|
137
|
+
schema: {};
|
|
138
|
+
standaloneSchema: {};
|
|
139
|
+
response: {};
|
|
140
|
+
}>;
|
|
@@ -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
|
+
}>;
|