@absolutejs/voice 0.0.22-beta.43 → 0.0.22-beta.431
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 +3690 -55
- package/dist/agent.d.ts +62 -0
- package/dist/agentSquadContract.d.ts +98 -0
- package/dist/angular/index.d.ts +19 -0
- package/dist/angular/index.js +4647 -1140
- package/dist/angular/voice-agent-squad-status.service.d.ts +12 -0
- package/dist/angular/voice-call-debugger.service.d.ts +12 -0
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +14 -0
- package/dist/angular/voice-controller.service.d.ts +1 -0
- package/dist/angular/voice-delivery-runtime.component.d.ts +17 -0
- package/dist/angular/voice-delivery-runtime.service.d.ts +16 -0
- package/dist/angular/voice-live-ops.service.d.ts +11 -0
- package/dist/angular/voice-ops-action-center.service.d.ts +13 -0
- package/dist/angular/voice-ops-status.component.d.ts +15 -0
- package/dist/angular/voice-ops-status.service.d.ts +12 -0
- package/dist/angular/voice-platform-coverage.service.d.ts +12 -0
- package/dist/angular/voice-profile-comparison.service.d.ts +12 -0
- package/dist/angular/voice-proof-trends.service.d.ts +12 -0
- package/dist/angular/voice-provider-capabilities.service.d.ts +12 -0
- package/dist/angular/voice-provider-contracts.service.d.ts +12 -0
- package/dist/angular/voice-readiness-failures.service.d.ts +13 -0
- package/dist/angular/voice-routing-status.service.d.ts +11 -0
- package/dist/angular/voice-session-snapshot.service.d.ts +13 -0
- package/dist/angular/voice-stream.service.d.ts +2 -0
- package/dist/angular/voice-trace-timeline.service.d.ts +12 -0
- package/dist/angular/voice-turn-latency.service.d.ts +13 -0
- package/dist/angular/voice-turn-quality.service.d.ts +12 -0
- package/dist/angular/voice-workflow-status.service.d.ts +12 -0
- package/dist/audit.d.ts +131 -0
- package/dist/auditDeliveryRoutes.d.ts +85 -0
- package/dist/auditExport.d.ts +34 -0
- package/dist/auditRoutes.d.ts +66 -0
- package/dist/auditSinks.d.ts +151 -0
- package/dist/bargeInRoutes.d.ts +56 -0
- package/dist/browserCallProfiles.d.ts +120 -0
- package/dist/browserMediaRoutes.d.ts +62 -0
- package/dist/callDebugger.d.ts +66 -0
- package/dist/campaign.d.ts +794 -0
- package/dist/campaignDialers.d.ts +111 -0
- package/dist/client/actions.d.ts +94 -0
- package/dist/client/agentSquadStatus.d.ts +37 -0
- package/dist/client/agentSquadStatusWidget.d.ts +24 -0
- package/dist/client/bargeInMonitor.d.ts +7 -0
- package/dist/client/browserMedia.d.ts +8 -0
- package/dist/client/callDebugger.d.ts +19 -0
- package/dist/client/callDebuggerWidget.d.ts +30 -0
- package/dist/client/campaignDialerProof.d.ts +23 -0
- package/dist/client/deliveryRuntime.d.ts +34 -0
- package/dist/client/deliveryRuntimeWidget.d.ts +37 -0
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmxBootstrap.js +950 -14
- package/dist/client/index.d.ts +87 -0
- package/dist/client/index.js +9890 -52
- package/dist/client/liveOps.d.ts +22 -0
- package/dist/client/liveOpsWidget.d.ts +23 -0
- package/dist/client/liveTurnLatency.d.ts +41 -0
- package/dist/client/opsActionCenter.d.ts +54 -0
- package/dist/client/opsActionCenterWidget.d.ts +29 -0
- package/dist/client/opsActionHistory.d.ts +19 -0
- package/dist/client/opsActionHistoryWidget.d.ts +11 -0
- package/dist/client/opsStatus.d.ts +19 -0
- package/dist/client/opsStatusWidget.d.ts +40 -0
- package/dist/client/platformCoverage.d.ts +19 -0
- package/dist/client/platformCoverageWidget.d.ts +37 -0
- package/dist/client/profileComparison.d.ts +19 -0
- package/dist/client/profileComparisonWidget.d.ts +41 -0
- package/dist/client/profileSwitchRecommendation.d.ts +19 -0
- package/dist/client/profileSwitchRecommendationWidget.d.ts +12 -0
- package/dist/client/proofTrends.d.ts +19 -0
- package/dist/client/proofTrendsWidget.d.ts +37 -0
- package/dist/client/providerCapabilities.d.ts +19 -0
- package/dist/client/providerCapabilitiesWidget.d.ts +32 -0
- package/dist/client/providerContracts.d.ts +19 -0
- package/dist/client/providerContractsWidget.d.ts +37 -0
- package/dist/client/providerSimulationControls.d.ts +33 -0
- package/dist/client/providerSimulationControlsWidget.d.ts +20 -0
- package/dist/client/providerStatusWidget.d.ts +32 -0
- package/dist/client/readinessFailures.d.ts +19 -0
- package/dist/client/readinessFailuresWidget.d.ts +42 -0
- package/dist/client/routingStatus.d.ts +19 -0
- package/dist/client/routingStatusWidget.d.ts +32 -0
- package/dist/client/sessionSnapshot.d.ts +21 -0
- package/dist/client/sessionSnapshotWidget.d.ts +33 -0
- package/dist/client/traceTimeline.d.ts +19 -0
- package/dist/client/traceTimelineWidget.d.ts +36 -0
- package/dist/client/turnLatency.d.ts +22 -0
- package/dist/client/turnLatencyWidget.d.ts +33 -0
- package/dist/client/turnQuality.d.ts +19 -0
- package/dist/client/turnQualityWidget.d.ts +32 -0
- package/dist/client/workflowStatus.d.ts +19 -0
- package/dist/competitiveCoverage.d.ts +141 -0
- package/dist/dataControl.d.ts +180 -0
- package/dist/deliveryRuntime.d.ts +158 -0
- package/dist/deliverySinkRoutes.d.ts +117 -0
- package/dist/demoReadyRoutes.d.ts +98 -0
- package/dist/evalRoutes.d.ts +96 -0
- package/dist/fileStore.d.ts +14 -2
- package/dist/guardrails.d.ts +128 -0
- package/dist/incidentBundle.d.ts +116 -0
- package/dist/index.d.ts +161 -18
- package/dist/index.js +34906 -6731
- package/dist/latencySlo.d.ts +56 -0
- package/dist/liveLatency.d.ts +78 -0
- package/dist/liveOps.d.ts +190 -0
- package/dist/mediaPipelineRoutes.d.ts +117 -0
- package/dist/modelAdapters.d.ts +54 -2
- package/dist/observabilityExport.d.ts +497 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/operationalStatus.d.ts +87 -0
- package/dist/operationsRecord.d.ts +351 -0
- package/dist/opsActionAuditRoutes.d.ts +99 -0
- package/dist/opsConsoleRoutes.d.ts +3 -0
- package/dist/opsRecovery.d.ts +137 -0
- package/dist/opsStatus.d.ts +76 -0
- package/dist/opsStatusRoutes.d.ts +33 -0
- package/dist/outcomeContract.d.ts +146 -0
- package/dist/phoneAgent.d.ts +139 -0
- package/dist/phoneAgentProductionSmoke.d.ts +115 -0
- package/dist/platformCoverage.d.ts +91 -0
- package/dist/postCallAnalysis.d.ts +98 -0
- package/dist/postgresStore.d.ts +13 -2
- package/dist/productionReadiness.d.ts +698 -0
- package/dist/profileSwitchRecommendation.d.ts +350 -0
- package/dist/proofAssertions.d.ts +32 -0
- package/dist/proofPack.d.ts +206 -0
- package/dist/proofRunner.d.ts +79 -0
- package/dist/proofTrends.d.ts +715 -0
- package/dist/providerAdapters.d.ts +12 -1
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerDecisionTraces.d.ts +130 -0
- package/dist/providerOrchestration.d.ts +109 -0
- package/dist/providerRouterTraces.d.ts +35 -0
- package/dist/providerRoutingContract.d.ts +71 -0
- package/dist/providerSlo.d.ts +142 -0
- package/dist/providerStackRecommendations.d.ts +187 -0
- package/dist/queue.d.ts +9 -0
- package/dist/react/VoiceAgentSquadStatus.d.ts +5 -0
- package/dist/react/VoiceCallDebuggerLaunch.d.ts +6 -0
- package/dist/react/VoiceDeliveryRuntime.d.ts +7 -0
- package/dist/react/VoiceOpsActionCenter.d.ts +5 -0
- package/dist/react/VoiceOpsStatus.d.ts +6 -0
- package/dist/react/VoicePlatformCoverage.d.ts +6 -0
- package/dist/react/VoiceProfileComparison.d.ts +6 -0
- package/dist/react/VoiceProfileSwitchRecommendation.d.ts +6 -0
- package/dist/react/VoiceProofTrends.d.ts +6 -0
- package/dist/react/VoiceProviderCapabilities.d.ts +6 -0
- package/dist/react/VoiceProviderContracts.d.ts +6 -0
- package/dist/react/VoiceProviderSimulationControls.d.ts +5 -0
- package/dist/react/VoiceProviderStatus.d.ts +6 -0
- package/dist/react/VoiceReadinessFailures.d.ts +6 -0
- package/dist/react/VoiceRoutingStatus.d.ts +6 -0
- package/dist/react/VoiceSessionSnapshot.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 +40 -0
- package/dist/react/index.js +10624 -31
- package/dist/react/useVoiceAgentSquadStatus.d.ts +8 -0
- package/dist/react/useVoiceCallDebugger.d.ts +8 -0
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +2 -0
- package/dist/react/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/react/useVoiceLiveOps.d.ts +9 -0
- package/dist/react/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/react/useVoiceOpsStatus.d.ts +8 -0
- package/dist/react/useVoicePlatformCoverage.d.ts +8 -0
- package/dist/react/useVoiceProfileComparison.d.ts +8 -0
- package/dist/react/useVoiceProfileSwitchRecommendation.d.ts +8 -0
- package/dist/react/useVoiceProofTrends.d.ts +8 -0
- package/dist/react/useVoiceProviderCapabilities.d.ts +8 -0
- package/dist/react/useVoiceProviderContracts.d.ts +8 -0
- package/dist/react/useVoiceProviderSimulationControls.d.ts +10 -0
- package/dist/react/useVoiceReadinessFailures.d.ts +8 -0
- package/dist/react/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/react/useVoiceSessionSnapshot.d.ts +9 -0
- package/dist/react/useVoiceStream.d.ts +2 -0
- package/dist/react/useVoiceTraceTimeline.d.ts +8 -0
- package/dist/react/useVoiceTurnLatency.d.ts +9 -0
- package/dist/react/useVoiceTurnQuality.d.ts +8 -0
- package/dist/react/useVoiceWorkflowStatus.d.ts +8 -0
- package/dist/readinessProfiles.d.ts +38 -0
- package/dist/realtimeChannel.d.ts +136 -0
- package/dist/realtimeProviderContracts.d.ts +133 -0
- package/dist/reconnectContract.d.ts +88 -0
- package/dist/resilienceRoutes.d.ts +40 -0
- package/dist/sessionReplay.d.ts +12 -0
- package/dist/sessionSnapshot.d.ts +109 -0
- package/dist/simulationSuite.d.ts +143 -0
- package/dist/sloCalibration.d.ts +185 -0
- package/dist/sqliteStore.d.ts +13 -2
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/svelte/createVoiceCallDebugger.d.ts +12 -0
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +9 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +11 -0
- package/dist/svelte/createVoiceLiveOps.d.ts +13 -0
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +10 -0
- package/dist/svelte/createVoiceOpsStatus.d.ts +9 -0
- package/dist/svelte/createVoicePlatformCoverage.d.ts +7 -0
- package/dist/svelte/createVoiceProfileComparison.d.ts +7 -0
- package/dist/svelte/createVoiceProofTrends.d.ts +7 -0
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +10 -0
- package/dist/svelte/createVoiceProviderContracts.d.ts +10 -0
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +11 -0
- package/dist/svelte/createVoiceProviderStatus.d.ts +4 -2
- package/dist/svelte/createVoiceReadinessFailures.d.ts +7 -0
- package/dist/svelte/createVoiceRoutingStatus.d.ts +10 -0
- package/dist/svelte/createVoiceSessionSnapshot.d.ts +13 -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 +20 -0
- package/dist/svelte/index.js +6403 -460
- package/dist/telephony/contract.d.ts +61 -0
- package/dist/telephony/matrix.d.ts +97 -0
- package/dist/telephony/plivo.d.ts +303 -0
- package/dist/telephony/security.d.ts +182 -0
- package/dist/telephony/telnyx.d.ts +291 -0
- package/dist/telephony/twilio.d.ts +136 -2
- package/dist/telephonyMediaRoutes.d.ts +72 -0
- package/dist/telephonyOutcome.d.ts +273 -0
- package/dist/testing/index.js +5363 -163
- package/dist/testing/telephony.d.ts +25 -0
- package/dist/toolContract.d.ts +161 -0
- package/dist/toolRuntime.d.ts +50 -0
- package/dist/trace.d.ts +40 -1
- package/dist/traceDeliveryRoutes.d.ts +86 -0
- package/dist/traceTimeline.d.ts +97 -0
- package/dist/turnLatency.d.ts +95 -0
- package/dist/turnQuality.d.ts +94 -0
- package/dist/types.d.ts +157 -3
- package/dist/voiceMonitoring.d.ts +444 -0
- package/dist/vue/VoiceCallDebuggerLaunch.d.ts +68 -0
- package/dist/vue/VoiceDeliveryRuntime.d.ts +30 -0
- package/dist/vue/VoiceOpsActionCenter.d.ts +13 -0
- package/dist/vue/VoiceOpsStatus.d.ts +30 -0
- package/dist/vue/VoicePlatformCoverage.d.ts +23 -0
- package/dist/vue/VoiceProofTrends.d.ts +21 -0
- package/dist/vue/VoiceProviderCapabilities.d.ts +51 -0
- package/dist/vue/VoiceProviderContracts.d.ts +21 -0
- package/dist/vue/VoiceProviderSimulationControls.d.ts +88 -0
- package/dist/vue/VoiceProviderStatus.d.ts +51 -0
- package/dist/vue/VoiceReadinessFailures.d.ts +21 -0
- package/dist/vue/VoiceRoutingStatus.d.ts +51 -0
- package/dist/vue/VoiceSessionSnapshot.d.ts +68 -0
- package/dist/vue/VoiceTurnLatency.d.ts +69 -0
- package/dist/vue/VoiceTurnQuality.d.ts +51 -0
- package/dist/vue/index.d.ts +35 -0
- package/dist/vue/index.js +10069 -56
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/vue/useVoiceCallDebugger.d.ts +10 -0
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +11 -0
- package/dist/vue/useVoiceController.d.ts +2 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/vue/useVoiceLiveOps.d.ts +9 -0
- package/dist/vue/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/vue/useVoiceOpsStatus.d.ts +9 -0
- package/dist/vue/useVoicePlatformCoverage.d.ts +9 -0
- package/dist/vue/useVoiceProfileComparison.d.ts +9 -0
- package/dist/vue/useVoiceProofTrends.d.ts +9 -0
- package/dist/vue/useVoiceProviderCapabilities.d.ts +9 -0
- package/dist/vue/useVoiceProviderContracts.d.ts +9 -0
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +24 -0
- package/dist/vue/useVoiceProviderStatus.d.ts +1 -1
- package/dist/vue/useVoiceReadinessFailures.d.ts +899 -0
- package/dist/vue/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceSessionSnapshot.d.ts +10 -0
- package/dist/vue/useVoiceStream.d.ts +3 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +9 -0
- package/dist/vue/useVoiceTurnLatency.d.ts +10 -0
- package/dist/vue/useVoiceTurnQuality.d.ts +9 -0
- package/dist/vue/useVoiceWorkflowStatus.d.ts +9 -0
- package/dist/workflowContract.d.ts +91 -0
- package/package.json +4 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VoiceAgentSquadStatusClientOptions, type VoiceAgentSquadStatusReport } from '../client/agentSquadStatus';
|
|
2
|
+
export declare class VoiceAgentSquadStatusService {
|
|
3
|
+
connect(path?: string, options?: VoiceAgentSquadStatusClientOptions): {
|
|
4
|
+
close: () => void;
|
|
5
|
+
current: import("@angular/core").Signal<import("../client").VoiceAgentSquadSpecialist | undefined>;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<import("..").VoiceTraceTimelineReport | null>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceAgentSquadStatusReport | undefined>;
|
|
10
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VoiceCallDebuggerClientOptions } from '../client/callDebugger';
|
|
2
|
+
import type { VoiceCallDebuggerReport } from '../callDebugger';
|
|
3
|
+
export declare class VoiceCallDebuggerService {
|
|
4
|
+
connect(path: string, options?: VoiceCallDebuggerClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceCallDebuggerReport | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceCallDebuggerReport | undefined>;
|
|
10
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type VoiceCampaignDialerProofClientOptions } from '../client/campaignDialerProof';
|
|
2
|
+
import type { VoiceCampaignDialerProofReport, VoiceCampaignDialerProofStatus } from '../campaignDialers';
|
|
3
|
+
export declare class VoiceCampaignDialerProofService {
|
|
4
|
+
connect(path?: string, options?: VoiceCampaignDialerProofClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceCampaignDialerProofStatus | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceCampaignDialerProofReport | undefined>;
|
|
10
|
+
runProof: () => Promise<VoiceCampaignDialerProofReport>;
|
|
11
|
+
status: import("@angular/core").Signal<VoiceCampaignDialerProofStatus | undefined>;
|
|
12
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -15,6 +15,7 @@ export declare class VoiceControllerService {
|
|
|
15
15
|
isConnected: import("@angular/core").Signal<boolean>;
|
|
16
16
|
isRecording: import("@angular/core").Signal<boolean>;
|
|
17
17
|
partial: import("@angular/core").Signal<string>;
|
|
18
|
+
reconnect: import("@angular/core").Signal<import("..").VoiceReconnectClientState>;
|
|
18
19
|
recordingError: import("@angular/core").Signal<string | null>;
|
|
19
20
|
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
20
21
|
sessionId: import("@angular/core").Signal<string | null>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { type VoiceDeliveryRuntimeViewModel } from '../client/deliveryRuntimeWidget';
|
|
3
|
+
export declare class VoiceDeliveryRuntimeComponent implements OnDestroy, OnInit {
|
|
4
|
+
description?: string;
|
|
5
|
+
intervalMs?: number;
|
|
6
|
+
path: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
private cleanup;
|
|
9
|
+
private store?;
|
|
10
|
+
model: import("@angular/core").WritableSignal<VoiceDeliveryRuntimeViewModel>;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
deadLettered(): number;
|
|
14
|
+
tick(): void;
|
|
15
|
+
requeueDeadLetters(): void;
|
|
16
|
+
private options;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type VoiceDeliveryRuntimeClientOptions } from '../client/deliveryRuntime';
|
|
2
|
+
import type { VoiceDeliveryRuntimeReport } from '../deliveryRuntime';
|
|
3
|
+
export declare class VoiceDeliveryRuntimeService {
|
|
4
|
+
connect(path?: string, options?: VoiceDeliveryRuntimeClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
actionError: import("@angular/core").Signal<string | null>;
|
|
8
|
+
actionStatus: import("@angular/core").Signal<"completed" | "failed" | "idle" | "running">;
|
|
9
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
10
|
+
requeueDeadLetters: () => Promise<import("../client").VoiceDeliveryRuntimeActionResult | undefined>;
|
|
11
|
+
refresh: () => Promise<VoiceDeliveryRuntimeReport | undefined>;
|
|
12
|
+
report: import("@angular/core").Signal<VoiceDeliveryRuntimeReport | undefined>;
|
|
13
|
+
tick: () => Promise<import("../client").VoiceDeliveryRuntimeActionResult | undefined>;
|
|
14
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VoiceLiveOpsActionResult, type VoiceLiveOpsClientOptions } from '../client/liveOps';
|
|
2
|
+
export declare class VoiceLiveOpsService {
|
|
3
|
+
connect(options?: VoiceLiveOpsClientOptions): {
|
|
4
|
+
close: () => void;
|
|
5
|
+
error: import("@angular/core").Signal<string | null>;
|
|
6
|
+
isRunning: import("@angular/core").Signal<boolean>;
|
|
7
|
+
lastResult: import("@angular/core").Signal<VoiceLiveOpsActionResult | undefined>;
|
|
8
|
+
run: (input: import("..").VoiceLiveOpsActionInput) => Promise<VoiceLiveOpsActionResult | undefined>;
|
|
9
|
+
runningAction: import("@angular/core").Signal<"escalate" | "operator-takeover" | "assign" | "create-task" | "force-handoff" | "inject-instruction" | "pause-assistant" | "resume-assistant" | "tag" | undefined>;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VoiceOpsActionCenterClientOptions, type VoiceOpsActionDescriptor, type VoiceOpsActionRunResult } from '../client/opsActionCenter';
|
|
2
|
+
export declare class VoiceOpsActionCenterService {
|
|
3
|
+
connect(options?: VoiceOpsActionCenterClientOptions): {
|
|
4
|
+
actions: import("@angular/core").Signal<VoiceOpsActionDescriptor[]>;
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isRunning: import("@angular/core").Signal<boolean>;
|
|
8
|
+
lastResult: import("@angular/core").Signal<VoiceOpsActionRunResult | undefined>;
|
|
9
|
+
run: (actionId: string) => Promise<VoiceOpsActionRunResult | undefined>;
|
|
10
|
+
runningActionId: import("@angular/core").Signal<string | undefined>;
|
|
11
|
+
setActions: (actions: VoiceOpsActionDescriptor[]) => void;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { type VoiceOpsStatusViewModel } from '../client/opsStatusWidget';
|
|
3
|
+
export declare class VoiceOpsStatusComponent implements OnDestroy, OnInit {
|
|
4
|
+
description?: string;
|
|
5
|
+
includeLinks: boolean;
|
|
6
|
+
intervalMs?: number;
|
|
7
|
+
path: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
private cleanup;
|
|
10
|
+
private store?;
|
|
11
|
+
model: import("@angular/core").WritableSignal<VoiceOpsStatusViewModel>;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
private options;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VoiceOpsStatusClientOptions } from '../client/opsStatus';
|
|
2
|
+
import type { VoiceOpsStatusReport } from '../opsStatus';
|
|
3
|
+
export declare class VoiceOpsStatusService {
|
|
4
|
+
connect(path?: string, options?: VoiceOpsStatusClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceOpsStatusReport | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceOpsStatusReport | undefined>;
|
|
10
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VoicePlatformCoverageClientOptions } from '../client/platformCoverage';
|
|
2
|
+
import type { VoicePlatformCoverageSummary } from '../platformCoverage';
|
|
3
|
+
export declare class VoicePlatformCoverageService {
|
|
4
|
+
connect(path?: string, options?: VoicePlatformCoverageClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoicePlatformCoverageSummary | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoicePlatformCoverageSummary | undefined>;
|
|
10
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VoiceProfileComparisonClientOptions } from '../client/profileComparison';
|
|
2
|
+
import type { VoiceRealCallProfileHistoryReport } from '../proofTrends';
|
|
3
|
+
export declare class VoiceProfileComparisonService {
|
|
4
|
+
connect(path?: string, options?: VoiceProfileComparisonClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceRealCallProfileHistoryReport | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceRealCallProfileHistoryReport | undefined>;
|
|
10
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VoiceProofTrendsClientOptions } from '../client/proofTrends';
|
|
2
|
+
import type { VoiceProofTrendReport } from '../proofTrends';
|
|
3
|
+
export declare class VoiceProofTrendsService {
|
|
4
|
+
connect(path?: string, options?: VoiceProofTrendsClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceProofTrendReport | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceProofTrendReport | undefined>;
|
|
10
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VoiceProviderCapabilitiesClientOptions } from '../client/providerCapabilities';
|
|
2
|
+
import type { VoiceProviderCapabilityReport } from '../providerCapabilities';
|
|
3
|
+
export declare class VoiceProviderCapabilitiesService {
|
|
4
|
+
connect<TProvider extends string = string>(path?: string, options?: VoiceProviderCapabilitiesClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceProviderCapabilityReport<TProvider> | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceProviderCapabilityReport<TProvider> | undefined>;
|
|
10
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VoiceProviderContractsClientOptions } from '../client/providerContracts';
|
|
2
|
+
import type { VoiceProviderContractMatrixReport } from '../providerStackRecommendations';
|
|
3
|
+
export declare class VoiceProviderContractsService {
|
|
4
|
+
connect<TProvider extends string = string>(path?: string, options?: VoiceProviderContractsClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceProviderContractMatrixReport<TProvider> | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceProviderContractMatrixReport<TProvider> | undefined>;
|
|
10
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VoiceReadinessFailuresClientOptions } from '../client/readinessFailures';
|
|
2
|
+
import type { VoiceProductionReadinessReport } from '../productionReadiness';
|
|
3
|
+
export declare class VoiceReadinessFailuresService {
|
|
4
|
+
connect(path?: string, options?: VoiceReadinessFailuresClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
explanations: import("@angular/core").Signal<import("..").VoiceProductionReadinessCheck[]>;
|
|
8
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
9
|
+
refresh: () => Promise<VoiceProductionReadinessReport | undefined>;
|
|
10
|
+
report: import("@angular/core").Signal<VoiceProductionReadinessReport | undefined>;
|
|
11
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VoiceRoutingStatusClientOptions } from '../client/routingStatus';
|
|
2
|
+
export declare class VoiceRoutingStatusService {
|
|
3
|
+
connect(path?: string, options?: VoiceRoutingStatusClientOptions): {
|
|
4
|
+
close: () => void;
|
|
5
|
+
decision: import("@angular/core").Signal<import("..").VoiceRoutingEvent | null>;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<import("..").VoiceRoutingEvent | null>;
|
|
9
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VoiceSessionSnapshotClientOptions } from '../client/sessionSnapshot';
|
|
2
|
+
import type { VoiceSessionSnapshot } from '../sessionSnapshot';
|
|
3
|
+
export declare class VoiceSessionSnapshotService {
|
|
4
|
+
connect(path: string, options?: VoiceSessionSnapshotClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
download: () => Blob;
|
|
7
|
+
error: import("@angular/core").Signal<string | null>;
|
|
8
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
9
|
+
refresh: () => Promise<VoiceSessionSnapshot | undefined>;
|
|
10
|
+
snapshot: import("@angular/core").Signal<VoiceSessionSnapshot | undefined>;
|
|
11
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -15,8 +15,10 @@ export declare class VoiceStreamService {
|
|
|
15
15
|
error: import("@angular/core").Signal<string | null>;
|
|
16
16
|
isConnected: import("@angular/core").Signal<boolean>;
|
|
17
17
|
partial: import("@angular/core").Signal<string>;
|
|
18
|
+
reconnect: import("@angular/core").Signal<import("..").VoiceReconnectClientState>;
|
|
18
19
|
sendAudio: (audio: Uint8Array | ArrayBuffer) => void;
|
|
19
20
|
sessionId: import("@angular/core").Signal<string | null>;
|
|
21
|
+
sessionMetadata: import("@angular/core").Signal<Record<string, unknown> | null>;
|
|
20
22
|
status: import("@angular/core").Signal<import("..").VoiceSessionStatus | "idle">;
|
|
21
23
|
turns: import("@angular/core").Signal<VoiceTurnRecord<TResult>[]>;
|
|
22
24
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VoiceTraceTimelineClientOptions } from '../client/traceTimeline';
|
|
2
|
+
import type { VoiceTraceTimelineReport } from '../traceTimeline';
|
|
3
|
+
export declare class VoiceTraceTimelineService {
|
|
4
|
+
connect(path?: string, options?: VoiceTraceTimelineClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceTraceTimelineReport | null>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceTraceTimelineReport | null>;
|
|
10
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VoiceTurnLatencyClientOptions } from '../client/turnLatency';
|
|
2
|
+
import type { VoiceTurnLatencyReport } from '../turnLatency';
|
|
3
|
+
export declare class VoiceTurnLatencyService {
|
|
4
|
+
connect(path?: string, options?: VoiceTurnLatencyClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceTurnLatencyReport | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceTurnLatencyReport | undefined>;
|
|
10
|
+
runProof: () => Promise<VoiceTurnLatencyReport | undefined>;
|
|
11
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VoiceTurnQualityClientOptions } from '../client/turnQuality';
|
|
2
|
+
import type { VoiceTurnQualityReport } from '../turnQuality';
|
|
3
|
+
export declare class VoiceTurnQualityService {
|
|
4
|
+
connect(path?: string, options?: VoiceTurnQualityClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceTurnQualityReport | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceTurnQualityReport | undefined>;
|
|
10
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type VoiceWorkflowStatusClientOptions } from '../client/workflowStatus';
|
|
2
|
+
import type { VoiceScenarioEvalReport } from '../evalRoutes';
|
|
3
|
+
export declare class VoiceWorkflowStatusService {
|
|
4
|
+
connect(path?: string, options?: VoiceWorkflowStatusClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceScenarioEvalReport | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceScenarioEvalReport | undefined>;
|
|
10
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
11
|
+
};
|
|
12
|
+
}
|
package/dist/audit.d.ts
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export type VoiceAuditEventType = 'handoff' | 'operator.action' | 'profile.switch' | 'provider.call' | 'retention.policy' | 'tool.call';
|
|
2
|
+
export type VoiceAuditActor = {
|
|
3
|
+
id: string;
|
|
4
|
+
kind: 'agent' | 'operator' | 'system' | 'worker';
|
|
5
|
+
name?: string;
|
|
6
|
+
};
|
|
7
|
+
export type VoiceAuditResource = {
|
|
8
|
+
id?: string;
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
export type VoiceAuditOutcome = 'error' | 'skipped' | 'success';
|
|
12
|
+
export type VoiceAuditEvent<TPayload extends Record<string, unknown> = Record<string, unknown>> = {
|
|
13
|
+
action: string;
|
|
14
|
+
actor?: VoiceAuditActor;
|
|
15
|
+
at?: number;
|
|
16
|
+
id?: string;
|
|
17
|
+
metadata?: Record<string, unknown>;
|
|
18
|
+
outcome?: VoiceAuditOutcome;
|
|
19
|
+
payload?: TPayload;
|
|
20
|
+
resource?: VoiceAuditResource;
|
|
21
|
+
sessionId?: string;
|
|
22
|
+
traceId?: string;
|
|
23
|
+
type: VoiceAuditEventType;
|
|
24
|
+
};
|
|
25
|
+
export type StoredVoiceAuditEvent<TPayload extends Record<string, unknown> = Record<string, unknown>> = Omit<VoiceAuditEvent<TPayload>, 'at' | 'id'> & {
|
|
26
|
+
at: number;
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
export type VoiceAuditEventFilter = {
|
|
30
|
+
actorId?: string;
|
|
31
|
+
after?: number;
|
|
32
|
+
afterOrAt?: number;
|
|
33
|
+
before?: number;
|
|
34
|
+
beforeOrAt?: number;
|
|
35
|
+
limit?: number;
|
|
36
|
+
outcome?: VoiceAuditOutcome | VoiceAuditOutcome[];
|
|
37
|
+
readWindow?: 'recent';
|
|
38
|
+
resourceId?: string;
|
|
39
|
+
resourceType?: string;
|
|
40
|
+
sessionId?: string;
|
|
41
|
+
traceId?: string;
|
|
42
|
+
type?: VoiceAuditEventType | VoiceAuditEventType[];
|
|
43
|
+
};
|
|
44
|
+
export type VoiceAuditEventStore<TEvent extends StoredVoiceAuditEvent = StoredVoiceAuditEvent> = {
|
|
45
|
+
append: (event: VoiceAuditEvent | TEvent) => Promise<TEvent> | TEvent;
|
|
46
|
+
get: (id: string) => Promise<TEvent | undefined> | TEvent | undefined;
|
|
47
|
+
list: (filter?: VoiceAuditEventFilter) => Promise<TEvent[]> | TEvent[];
|
|
48
|
+
};
|
|
49
|
+
export type VoiceScopedAuditEventStoreOptions = VoiceAuditEventFilter;
|
|
50
|
+
export type VoiceAuditLogger = {
|
|
51
|
+
handoff: (input: Omit<VoiceHandoffAuditEventInput, 'store'>) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
52
|
+
operatorAction: (input: Omit<VoiceOperatorAuditEventInput, 'store'>) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
53
|
+
providerCall: (input: Omit<VoiceProviderAuditEventInput, 'store'>) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
54
|
+
record: (event: VoiceAuditEvent) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
55
|
+
retention: (input: Omit<VoiceRetentionAuditEventInput, 'store'>) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
56
|
+
toolCall: (input: Omit<VoiceToolAuditEventInput, 'store'>) => Promise<StoredVoiceAuditEvent> | StoredVoiceAuditEvent;
|
|
57
|
+
};
|
|
58
|
+
export type VoiceProviderAuditEventInput = {
|
|
59
|
+
actor?: VoiceAuditActor;
|
|
60
|
+
cost?: Record<string, unknown>;
|
|
61
|
+
elapsedMs?: number;
|
|
62
|
+
error?: string;
|
|
63
|
+
kind: 'llm' | 'stt' | 'tts' | string;
|
|
64
|
+
metadata?: Record<string, unknown>;
|
|
65
|
+
model?: string;
|
|
66
|
+
outcome: VoiceAuditOutcome;
|
|
67
|
+
provider: string;
|
|
68
|
+
sessionId?: string;
|
|
69
|
+
store: VoiceAuditEventStore;
|
|
70
|
+
traceId?: string;
|
|
71
|
+
};
|
|
72
|
+
export type VoiceToolAuditEventInput = {
|
|
73
|
+
actor?: VoiceAuditActor;
|
|
74
|
+
elapsedMs?: number;
|
|
75
|
+
error?: string;
|
|
76
|
+
metadata?: Record<string, unknown>;
|
|
77
|
+
outcome: VoiceAuditOutcome;
|
|
78
|
+
sessionId?: string;
|
|
79
|
+
store: VoiceAuditEventStore;
|
|
80
|
+
toolCallId?: string;
|
|
81
|
+
toolName: string;
|
|
82
|
+
traceId?: string;
|
|
83
|
+
};
|
|
84
|
+
export type VoiceHandoffAuditEventInput = {
|
|
85
|
+
actor?: VoiceAuditActor;
|
|
86
|
+
fromAgentId?: string;
|
|
87
|
+
metadata?: Record<string, unknown>;
|
|
88
|
+
outcome: VoiceAuditOutcome;
|
|
89
|
+
reason?: string;
|
|
90
|
+
sessionId?: string;
|
|
91
|
+
store: VoiceAuditEventStore;
|
|
92
|
+
target?: string;
|
|
93
|
+
toAgentId?: string;
|
|
94
|
+
traceId?: string;
|
|
95
|
+
};
|
|
96
|
+
export type VoiceRetentionAuditEventInput = {
|
|
97
|
+
actor?: VoiceAuditActor;
|
|
98
|
+
dryRun: boolean;
|
|
99
|
+
metadata?: Record<string, unknown>;
|
|
100
|
+
report: {
|
|
101
|
+
deletedCount: number;
|
|
102
|
+
scopes: Array<{
|
|
103
|
+
deletedCount: number;
|
|
104
|
+
scope: string;
|
|
105
|
+
skippedReason?: string;
|
|
106
|
+
}>;
|
|
107
|
+
};
|
|
108
|
+
store: VoiceAuditEventStore;
|
|
109
|
+
};
|
|
110
|
+
export type VoiceOperatorAuditEventInput = {
|
|
111
|
+
action: string;
|
|
112
|
+
actor: VoiceAuditActor;
|
|
113
|
+
metadata?: Record<string, unknown>;
|
|
114
|
+
outcome?: VoiceAuditOutcome;
|
|
115
|
+
payload?: Record<string, unknown>;
|
|
116
|
+
resource?: VoiceAuditResource;
|
|
117
|
+
sessionId?: string;
|
|
118
|
+
store: VoiceAuditEventStore;
|
|
119
|
+
traceId?: string;
|
|
120
|
+
};
|
|
121
|
+
export declare const createVoiceAuditEvent: <TPayload extends Record<string, unknown> = Record<string, unknown>>(event: VoiceAuditEvent<TPayload>) => StoredVoiceAuditEvent<TPayload>;
|
|
122
|
+
export declare const filterVoiceAuditEvents: <TEvent extends StoredVoiceAuditEvent = StoredVoiceAuditEvent>(events: TEvent[], filter?: VoiceAuditEventFilter) => TEvent[];
|
|
123
|
+
export declare const createVoiceScopedAuditEventStore: <TEvent extends StoredVoiceAuditEvent = StoredVoiceAuditEvent>(store: VoiceAuditEventStore<TEvent>, scope: VoiceScopedAuditEventStoreOptions) => VoiceAuditEventStore<TEvent>;
|
|
124
|
+
export declare const createVoiceMemoryAuditEventStore: <TEvent extends StoredVoiceAuditEvent = StoredVoiceAuditEvent>() => VoiceAuditEventStore<TEvent>;
|
|
125
|
+
export declare const recordVoiceAuditEvent: (store: VoiceAuditEventStore, event: VoiceAuditEvent) => StoredVoiceAuditEvent<Record<string, unknown>> | Promise<StoredVoiceAuditEvent<Record<string, unknown>>>;
|
|
126
|
+
export declare const recordVoiceProviderAuditEvent: (input: VoiceProviderAuditEventInput) => StoredVoiceAuditEvent<Record<string, unknown>> | Promise<StoredVoiceAuditEvent<Record<string, unknown>>>;
|
|
127
|
+
export declare const recordVoiceToolAuditEvent: (input: VoiceToolAuditEventInput) => StoredVoiceAuditEvent<Record<string, unknown>> | Promise<StoredVoiceAuditEvent<Record<string, unknown>>>;
|
|
128
|
+
export declare const recordVoiceHandoffAuditEvent: (input: VoiceHandoffAuditEventInput) => StoredVoiceAuditEvent<Record<string, unknown>> | Promise<StoredVoiceAuditEvent<Record<string, unknown>>>;
|
|
129
|
+
export declare const recordVoiceRetentionAuditEvent: (input: VoiceRetentionAuditEventInput) => StoredVoiceAuditEvent<Record<string, unknown>> | Promise<StoredVoiceAuditEvent<Record<string, unknown>>>;
|
|
130
|
+
export declare const recordVoiceOperatorAuditEvent: (input: VoiceOperatorAuditEventInput) => StoredVoiceAuditEvent<Record<string, unknown>> | Promise<StoredVoiceAuditEvent<Record<string, unknown>>>;
|
|
131
|
+
export declare const createVoiceAuditLogger: (store: VoiceAuditEventStore) => VoiceAuditLogger;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { type VoiceAuditSinkDeliveryQueueStatus, type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryRecord, type VoiceAuditSinkDeliveryStore, type VoiceAuditSinkDeliveryWorkerResult } from './auditSinks';
|
|
3
|
+
export type VoiceAuditDeliveryReport = {
|
|
4
|
+
checkedAt: number;
|
|
5
|
+
deliveries: VoiceAuditSinkDeliveryRecord[];
|
|
6
|
+
filter: VoiceAuditDeliveryFilter;
|
|
7
|
+
summary: VoiceAuditSinkDeliveryQueueSummary;
|
|
8
|
+
};
|
|
9
|
+
export type VoiceAuditDeliveryDrainWorker = {
|
|
10
|
+
drain: () => Promise<VoiceAuditSinkDeliveryWorkerResult> | VoiceAuditSinkDeliveryWorkerResult;
|
|
11
|
+
};
|
|
12
|
+
export type VoiceAuditDeliveryDrainReport = VoiceAuditSinkDeliveryWorkerResult & {
|
|
13
|
+
drainedAt: number;
|
|
14
|
+
};
|
|
15
|
+
export type VoiceAuditDeliveryFilter = {
|
|
16
|
+
limit?: number;
|
|
17
|
+
q?: string;
|
|
18
|
+
status?: VoiceAuditSinkDeliveryQueueStatus | 'all';
|
|
19
|
+
};
|
|
20
|
+
export type VoiceAuditDeliveryRoutesOptions = {
|
|
21
|
+
deadLetters?: VoiceAuditSinkDeliveryStore;
|
|
22
|
+
filter?: VoiceAuditDeliveryFilter;
|
|
23
|
+
headers?: HeadersInit;
|
|
24
|
+
htmlPath?: false | string;
|
|
25
|
+
limit?: number;
|
|
26
|
+
name?: string;
|
|
27
|
+
path?: string;
|
|
28
|
+
render?: (report: VoiceAuditDeliveryReport) => string | Promise<string>;
|
|
29
|
+
store: VoiceAuditSinkDeliveryStore;
|
|
30
|
+
title?: string;
|
|
31
|
+
worker?: VoiceAuditDeliveryDrainWorker;
|
|
32
|
+
workerPath?: false | string;
|
|
33
|
+
};
|
|
34
|
+
export declare const resolveVoiceAuditDeliveryFilter: (query?: Record<string, unknown>, base?: VoiceAuditDeliveryFilter) => VoiceAuditDeliveryFilter;
|
|
35
|
+
export declare const buildVoiceAuditDeliveryReport: (options: VoiceAuditDeliveryRoutesOptions, filter?: VoiceAuditDeliveryFilter) => Promise<VoiceAuditDeliveryReport>;
|
|
36
|
+
export declare const renderVoiceAuditDeliveryHTML: (report: VoiceAuditDeliveryReport, options?: {
|
|
37
|
+
title?: string;
|
|
38
|
+
workerPath?: false | string;
|
|
39
|
+
}) => string;
|
|
40
|
+
export declare const createVoiceAuditDeliveryJSONHandler: (options: VoiceAuditDeliveryRoutesOptions) => ({ query }: {
|
|
41
|
+
query?: Record<string, string | undefined>;
|
|
42
|
+
}) => Promise<VoiceAuditDeliveryReport>;
|
|
43
|
+
export declare const createVoiceAuditDeliveryHTMLHandler: (options: VoiceAuditDeliveryRoutesOptions) => ({ query }: {
|
|
44
|
+
query?: Record<string, string | undefined>;
|
|
45
|
+
}) => Promise<Response>;
|
|
46
|
+
export declare const createVoiceAuditDeliveryRoutes: (options: VoiceAuditDeliveryRoutesOptions) => Elysia<"", {
|
|
47
|
+
decorator: {};
|
|
48
|
+
store: {};
|
|
49
|
+
derive: {};
|
|
50
|
+
resolve: {};
|
|
51
|
+
}, {
|
|
52
|
+
typebox: {};
|
|
53
|
+
error: {};
|
|
54
|
+
}, {
|
|
55
|
+
schema: {};
|
|
56
|
+
standaloneSchema: {};
|
|
57
|
+
macro: {};
|
|
58
|
+
macroFn: {};
|
|
59
|
+
parser: {};
|
|
60
|
+
response: {};
|
|
61
|
+
}, {
|
|
62
|
+
[x: string]: {
|
|
63
|
+
get: {
|
|
64
|
+
body: unknown;
|
|
65
|
+
params: {};
|
|
66
|
+
query: unknown;
|
|
67
|
+
headers: unknown;
|
|
68
|
+
response: {
|
|
69
|
+
200: VoiceAuditDeliveryReport;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
derive: {};
|
|
75
|
+
resolve: {};
|
|
76
|
+
schema: {};
|
|
77
|
+
standaloneSchema: {};
|
|
78
|
+
response: {};
|
|
79
|
+
}, {
|
|
80
|
+
derive: {};
|
|
81
|
+
resolve: {};
|
|
82
|
+
schema: {};
|
|
83
|
+
standaloneSchema: {};
|
|
84
|
+
response: {};
|
|
85
|
+
}>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { StoredVoiceAuditEvent, VoiceAuditEventFilter, VoiceAuditEventStore } from './audit';
|
|
2
|
+
import { type VoiceTraceRedactionConfig } from './trace';
|
|
3
|
+
import { type VoiceAuditTrailSummary } from './auditRoutes';
|
|
4
|
+
export type VoiceAuditExport = {
|
|
5
|
+
events: StoredVoiceAuditEvent[];
|
|
6
|
+
exportedAt: number;
|
|
7
|
+
filter?: VoiceAuditEventFilter;
|
|
8
|
+
redacted: boolean;
|
|
9
|
+
summary: VoiceAuditTrailSummary;
|
|
10
|
+
};
|
|
11
|
+
export declare const redactVoiceAuditEvent: <TEvent extends StoredVoiceAuditEvent = StoredVoiceAuditEvent>(event: TEvent, options?: VoiceTraceRedactionConfig) => TEvent;
|
|
12
|
+
export declare const redactVoiceAuditEvents: <TEvent extends StoredVoiceAuditEvent = StoredVoiceAuditEvent>(events: TEvent[], options?: VoiceTraceRedactionConfig) => TEvent[];
|
|
13
|
+
export declare const exportVoiceAuditTrail: (input: {
|
|
14
|
+
filter?: VoiceAuditEventFilter;
|
|
15
|
+
redact?: VoiceTraceRedactionConfig;
|
|
16
|
+
store: VoiceAuditEventStore;
|
|
17
|
+
}) => Promise<VoiceAuditExport>;
|
|
18
|
+
export declare const renderVoiceAuditMarkdown: (events: StoredVoiceAuditEvent[], options?: {
|
|
19
|
+
redact?: VoiceTraceRedactionConfig;
|
|
20
|
+
title?: string;
|
|
21
|
+
}) => string;
|
|
22
|
+
export declare const renderVoiceAuditHTML: (events: StoredVoiceAuditEvent[], options?: {
|
|
23
|
+
redact?: VoiceTraceRedactionConfig;
|
|
24
|
+
title?: string;
|
|
25
|
+
}) => string;
|
|
26
|
+
export declare const buildVoiceAuditExport: (events: StoredVoiceAuditEvent[], options?: {
|
|
27
|
+
redact?: VoiceTraceRedactionConfig;
|
|
28
|
+
title?: string;
|
|
29
|
+
}) => {
|
|
30
|
+
events: StoredVoiceAuditEvent[];
|
|
31
|
+
html: string;
|
|
32
|
+
markdown: string;
|
|
33
|
+
summary: VoiceAuditTrailSummary;
|
|
34
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import type { StoredVoiceAuditEvent, VoiceAuditEventFilter, VoiceAuditEventStore, VoiceAuditEventType } from './audit';
|
|
3
|
+
export type VoiceAuditTrailSummary = {
|
|
4
|
+
byActor: Array<[string, number]>;
|
|
5
|
+
byOutcome: Array<[string, number]>;
|
|
6
|
+
byResourceType: Array<[string, number]>;
|
|
7
|
+
byType: Array<[VoiceAuditEventType, number]>;
|
|
8
|
+
errors: number;
|
|
9
|
+
latestAt?: number;
|
|
10
|
+
total: number;
|
|
11
|
+
};
|
|
12
|
+
export type VoiceAuditTrailReport = {
|
|
13
|
+
checkedAt: number;
|
|
14
|
+
events: StoredVoiceAuditEvent[];
|
|
15
|
+
filter: VoiceAuditEventFilter;
|
|
16
|
+
summary: VoiceAuditTrailSummary;
|
|
17
|
+
};
|
|
18
|
+
export type VoiceAuditTrailOptions = {
|
|
19
|
+
filter?: VoiceAuditEventFilter;
|
|
20
|
+
limit?: number;
|
|
21
|
+
store: VoiceAuditEventStore;
|
|
22
|
+
};
|
|
23
|
+
export type VoiceAuditTrailRoutesOptions = VoiceAuditTrailOptions & {
|
|
24
|
+
exportHtmlPath?: false | string;
|
|
25
|
+
exportPath?: false | string;
|
|
26
|
+
headers?: HeadersInit;
|
|
27
|
+
htmlPath?: false | string;
|
|
28
|
+
name?: string;
|
|
29
|
+
path?: string;
|
|
30
|
+
render?: (report: VoiceAuditTrailReport) => string | Promise<string>;
|
|
31
|
+
title?: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const resolveVoiceAuditTrailFilter: (query?: Record<string, unknown>, base?: VoiceAuditEventFilter) => VoiceAuditEventFilter;
|
|
34
|
+
export declare const summarizeVoiceAuditTrail: (events: StoredVoiceAuditEvent[]) => VoiceAuditTrailSummary;
|
|
35
|
+
export declare const buildVoiceAuditTrailReport: (options: VoiceAuditTrailOptions) => Promise<VoiceAuditTrailReport>;
|
|
36
|
+
export declare const renderVoiceAuditTrailHTML: (report: VoiceAuditTrailReport, options?: {
|
|
37
|
+
title?: string;
|
|
38
|
+
}) => string;
|
|
39
|
+
export declare const createVoiceAuditTrailRoutes: (options: VoiceAuditTrailRoutesOptions) => Elysia<"", {
|
|
40
|
+
decorator: {};
|
|
41
|
+
store: {};
|
|
42
|
+
derive: {};
|
|
43
|
+
resolve: {};
|
|
44
|
+
}, {
|
|
45
|
+
typebox: {};
|
|
46
|
+
error: {};
|
|
47
|
+
}, {
|
|
48
|
+
schema: {};
|
|
49
|
+
standaloneSchema: {};
|
|
50
|
+
macro: {};
|
|
51
|
+
macroFn: {};
|
|
52
|
+
parser: {};
|
|
53
|
+
response: {};
|
|
54
|
+
}, {}, {
|
|
55
|
+
derive: {};
|
|
56
|
+
resolve: {};
|
|
57
|
+
schema: {};
|
|
58
|
+
standaloneSchema: {};
|
|
59
|
+
response: {};
|
|
60
|
+
}, {
|
|
61
|
+
derive: {};
|
|
62
|
+
resolve: {};
|
|
63
|
+
schema: {};
|
|
64
|
+
standaloneSchema: {};
|
|
65
|
+
response: {};
|
|
66
|
+
}>;
|