@absolutejs/voice 0.0.22-beta.439 → 0.0.22-beta.441
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 +2729 -2698
- package/dist/agent.d.ts +10 -10
- package/dist/agentSquadContract.d.ts +4 -4
- package/dist/angular/index.d.ts +22 -22
- package/dist/angular/voice-agent-squad-status.service.d.ts +1 -1
- package/dist/angular/voice-call-debugger.service.d.ts +2 -2
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +2 -2
- package/dist/angular/voice-controller.service.d.ts +1 -1
- package/dist/angular/voice-delivery-runtime.component.d.ts +2 -2
- package/dist/angular/voice-delivery-runtime.service.d.ts +2 -2
- package/dist/angular/voice-live-ops.service.d.ts +1 -1
- package/dist/angular/voice-ops-action-center.service.d.ts +1 -1
- package/dist/angular/voice-ops-status.component.d.ts +2 -2
- package/dist/angular/voice-ops-status.service.d.ts +2 -2
- package/dist/angular/voice-platform-coverage.service.d.ts +2 -2
- package/dist/angular/voice-profile-comparison.service.d.ts +2 -2
- package/dist/angular/voice-proof-trends.service.d.ts +2 -2
- package/dist/angular/voice-provider-capabilities.service.d.ts +2 -2
- package/dist/angular/voice-provider-contracts.service.d.ts +2 -2
- package/dist/angular/voice-provider-status.service.d.ts +2 -2
- package/dist/angular/voice-readiness-failures.service.d.ts +2 -2
- package/dist/angular/voice-routing-status.service.d.ts +1 -1
- package/dist/angular/voice-session-snapshot.service.d.ts +2 -2
- package/dist/angular/voice-stream.service.d.ts +1 -1
- package/dist/angular/voice-trace-timeline.service.d.ts +2 -2
- package/dist/angular/voice-turn-latency.service.d.ts +2 -2
- package/dist/angular/voice-turn-quality.service.d.ts +2 -2
- package/dist/angular/voice-workflow-status.service.d.ts +2 -2
- package/dist/assistant.d.ts +11 -11
- package/dist/assistantHealth.d.ts +6 -6
- package/dist/assistantMemory.d.ts +3 -3
- package/dist/audioConditioning.d.ts +1 -1
- package/dist/audit.d.ts +11 -11
- package/dist/auditDeliveryRoutes.d.ts +3 -3
- package/dist/auditExport.d.ts +3 -3
- package/dist/auditRoutes.d.ts +2 -2
- package/dist/auditSinks.d.ts +8 -8
- package/dist/bargeInRoutes.d.ts +3 -3
- package/dist/browserCallProfiles.d.ts +2 -2
- package/dist/browserMediaRoutes.d.ts +4 -4
- package/dist/callDebugger.d.ts +6 -6
- package/dist/campaign.d.ts +22 -22
- package/dist/campaignDialers.d.ts +14 -14
- package/dist/client/actions.d.ts +1 -1
- package/dist/client/agentSquadStatus.d.ts +3 -3
- package/dist/client/agentSquadStatusWidget.d.ts +1 -1
- package/dist/client/audioPlayer.d.ts +2 -2
- package/dist/client/bargeInMonitor.d.ts +1 -1
- package/dist/client/browserMedia.d.ts +1 -1
- package/dist/client/callDebugger.d.ts +1 -1
- package/dist/client/callDebuggerWidget.d.ts +3 -3
- package/dist/client/campaignDialerProof.d.ts +1 -1
- package/dist/client/connection.d.ts +3 -3
- package/dist/client/controller.d.ts +1 -1
- package/dist/client/createVoiceStream.d.ts +1 -1
- package/dist/client/deliveryRuntime.d.ts +4 -4
- package/dist/client/deliveryRuntimeWidget.d.ts +5 -5
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmx.d.ts +1 -1
- package/dist/client/index.d.ts +96 -96
- package/dist/client/index.js +41 -15
- package/dist/client/liveOps.d.ts +2 -2
- package/dist/client/liveOpsWidget.d.ts +2 -2
- package/dist/client/liveTurnLatency.d.ts +3 -3
- package/dist/client/microphone.d.ts +4 -4
- package/dist/client/opsActionCenter.d.ts +1 -1
- package/dist/client/opsActionCenterWidget.d.ts +2 -2
- package/dist/client/opsActionHistory.d.ts +1 -1
- package/dist/client/opsActionHistoryWidget.d.ts +1 -1
- package/dist/client/opsStatus.d.ts +1 -1
- package/dist/client/opsStatusWidget.d.ts +4 -4
- package/dist/client/platformCoverage.d.ts +1 -1
- package/dist/client/platformCoverageWidget.d.ts +3 -3
- package/dist/client/profileComparison.d.ts +1 -1
- package/dist/client/profileComparisonWidget.d.ts +2 -2
- package/dist/client/profileSwitchRecommendation.d.ts +1 -1
- package/dist/client/profileSwitchRecommendationWidget.d.ts +1 -1
- package/dist/client/proofTrends.d.ts +1 -1
- package/dist/client/proofTrendsWidget.d.ts +3 -3
- package/dist/client/providerCapabilities.d.ts +1 -1
- package/dist/client/providerCapabilitiesWidget.d.ts +3 -3
- package/dist/client/providerContracts.d.ts +1 -1
- package/dist/client/providerContractsWidget.d.ts +3 -3
- package/dist/client/providerSimulationControls.d.ts +2 -2
- package/dist/client/providerSimulationControlsWidget.d.ts +1 -1
- package/dist/client/providerStatus.d.ts +1 -1
- package/dist/client/providerStatusWidget.d.ts +3 -3
- package/dist/client/readinessFailures.d.ts +1 -1
- package/dist/client/readinessFailuresWidget.d.ts +4 -4
- package/dist/client/routingStatus.d.ts +1 -1
- package/dist/client/routingStatusWidget.d.ts +3 -3
- package/dist/client/sessionSnapshot.d.ts +1 -1
- package/dist/client/sessionSnapshotWidget.d.ts +2 -2
- package/dist/client/store.d.ts +1 -1
- package/dist/client/traceTimeline.d.ts +1 -1
- package/dist/client/traceTimelineWidget.d.ts +3 -3
- package/dist/client/turnLatency.d.ts +1 -1
- package/dist/client/turnLatencyWidget.d.ts +3 -3
- package/dist/client/turnQuality.d.ts +1 -1
- package/dist/client/turnQualityWidget.d.ts +3 -3
- package/dist/client/workflowStatus.d.ts +1 -1
- package/dist/competitiveCoverage.d.ts +9 -9
- package/dist/correction.d.ts +2 -2
- package/dist/dataControl.d.ts +16 -16
- package/dist/deliveryRuntime.d.ts +9 -9
- package/dist/deliverySinkRoutes.d.ts +6 -6
- package/dist/demoReadyRoutes.d.ts +8 -8
- package/dist/diagnosticsRoutes.d.ts +2 -2
- package/dist/evalRoutes.d.ts +4 -4
- package/dist/fileStore.d.ts +9 -9
- package/dist/guardrails.d.ts +9 -9
- package/dist/handoff.d.ts +6 -6
- package/dist/handoffHealth.d.ts +5 -5
- package/dist/htmx.d.ts +1 -1
- package/dist/incidentBundle.d.ts +7 -7
- package/dist/incidentTimeline.d.ts +30 -16
- package/dist/index.d.ts +215 -215
- package/dist/index.js +375 -111
- package/dist/latencySlo.d.ts +4 -4
- package/dist/liveLatency.d.ts +3 -3
- package/dist/liveOps.d.ts +11 -11
- package/dist/logger.d.ts +1 -1
- package/dist/mediaPipelineRoutes.d.ts +2 -2
- package/dist/memoryStore.d.ts +1 -1
- package/dist/modelAdapters.d.ts +9 -9
- package/dist/observabilityExport.d.ts +44 -44
- package/dist/openaiTTS.d.ts +3 -3
- package/dist/operationalStatus.d.ts +5 -5
- package/dist/operationsRecord.d.ts +12 -12
- package/dist/ops.d.ts +12 -12
- package/dist/opsActionAuditRoutes.d.ts +3 -3
- package/dist/opsConsoleRoutes.d.ts +6 -6
- package/dist/opsPresets.d.ts +2 -2
- package/dist/opsRecovery.d.ts +11 -11
- package/dist/opsRuntime.d.ts +6 -6
- package/dist/opsSinks.d.ts +13 -13
- package/dist/opsStatus.d.ts +7 -7
- package/dist/opsStatusRoutes.d.ts +2 -2
- package/dist/opsWebhook.d.ts +6 -6
- package/dist/outcomeContract.d.ts +5 -5
- package/dist/outcomeRecipes.d.ts +4 -4
- package/dist/phoneAgent.d.ts +18 -18
- package/dist/phoneAgentProductionSmoke.d.ts +8 -8
- package/dist/platformCoverage.d.ts +3 -3
- package/dist/plugin.d.ts +2 -2
- package/dist/postCallAnalysis.d.ts +6 -6
- package/dist/postgresStore.d.ts +8 -8
- package/dist/presets.d.ts +3 -3
- package/dist/productionReadiness.d.ts +62 -36
- package/dist/profileSwitchRecommendation.d.ts +15 -15
- package/dist/proofAssertions.d.ts +1 -1
- package/dist/proofPack.d.ts +12 -12
- package/dist/proofRunner.d.ts +5 -5
- package/dist/proofTrends.d.ts +17 -17
- package/dist/providerAdapters.d.ts +5 -5
- package/dist/providerCapabilities.d.ts +4 -4
- package/dist/providerDecisionTraces.d.ts +8 -8
- package/dist/providerHealth.d.ts +3 -3
- package/dist/providerOrchestration.d.ts +5 -5
- package/dist/providerRouterTraces.d.ts +7 -7
- package/dist/providerRoutingContract.d.ts +3 -3
- package/dist/providerSlo.d.ts +6 -6
- package/dist/providerStackRecommendations.d.ts +6 -6
- package/dist/qualityRoutes.d.ts +4 -4
- package/dist/queue.d.ts +16 -16
- package/dist/react/VoiceAgentSquadStatus.d.ts +1 -1
- package/dist/react/VoiceCallDebuggerLaunch.d.ts +1 -1
- package/dist/react/VoiceDeliveryRuntime.d.ts +1 -1
- package/dist/react/VoiceOpsActionCenter.d.ts +1 -1
- package/dist/react/VoiceOpsStatus.d.ts +1 -1
- package/dist/react/VoicePlatformCoverage.d.ts +1 -1
- package/dist/react/VoiceProfileComparison.d.ts +1 -1
- package/dist/react/VoiceProfileSwitchRecommendation.d.ts +1 -1
- package/dist/react/VoiceProofTrends.d.ts +1 -1
- package/dist/react/VoiceProviderCapabilities.d.ts +1 -1
- package/dist/react/VoiceProviderContracts.d.ts +1 -1
- package/dist/react/VoiceProviderSimulationControls.d.ts +1 -1
- package/dist/react/VoiceProviderStatus.d.ts +1 -1
- package/dist/react/VoiceReadinessFailures.d.ts +1 -1
- package/dist/react/VoiceRoutingStatus.d.ts +1 -1
- package/dist/react/VoiceSessionSnapshot.d.ts +1 -1
- package/dist/react/VoiceTraceTimeline.d.ts +1 -1
- package/dist/react/VoiceTurnLatency.d.ts +1 -1
- package/dist/react/VoiceTurnQuality.d.ts +1 -1
- package/dist/react/index.d.ts +43 -43
- package/dist/react/index.js +41 -15
- package/dist/react/useVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/react/useVoiceCallDebugger.d.ts +1 -1
- package/dist/react/useVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/react/useVoiceController.d.ts +1 -1
- package/dist/react/useVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/react/useVoiceLiveOps.d.ts +1 -1
- package/dist/react/useVoiceOpsActionCenter.d.ts +1 -1
- package/dist/react/useVoiceOpsStatus.d.ts +1 -1
- package/dist/react/useVoicePlatformCoverage.d.ts +1 -1
- package/dist/react/useVoiceProfileComparison.d.ts +1 -1
- package/dist/react/useVoiceProfileSwitchRecommendation.d.ts +1 -1
- package/dist/react/useVoiceProofTrends.d.ts +1 -1
- package/dist/react/useVoiceProviderCapabilities.d.ts +1 -1
- package/dist/react/useVoiceProviderContracts.d.ts +1 -1
- package/dist/react/useVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/react/useVoiceProviderStatus.d.ts +1 -1
- package/dist/react/useVoiceReadinessFailures.d.ts +1 -1
- package/dist/react/useVoiceRoutingStatus.d.ts +1 -1
- package/dist/react/useVoiceSessionSnapshot.d.ts +1 -1
- package/dist/react/useVoiceStream.d.ts +1 -1
- package/dist/react/useVoiceTraceTimeline.d.ts +1 -1
- package/dist/react/useVoiceTurnLatency.d.ts +1 -1
- package/dist/react/useVoiceTurnQuality.d.ts +1 -1
- package/dist/react/useVoiceWorkflowStatus.d.ts +1 -1
- package/dist/readinessProfiles.d.ts +22 -15
- package/dist/realtimeChannel.d.ts +6 -6
- package/dist/realtimeProviderContracts.d.ts +7 -7
- package/dist/reconnectContract.d.ts +6 -6
- package/dist/resilienceRoutes.d.ts +6 -6
- package/dist/routing.d.ts +1 -1
- package/dist/runtimeOps.d.ts +3 -3
- package/dist/s3Store.d.ts +3 -3
- package/dist/session.d.ts +1 -1
- package/dist/sessionReplay.d.ts +9 -9
- package/dist/sessionSnapshot.d.ts +8 -8
- package/dist/simulationSuite.d.ts +12 -12
- package/dist/sloCalibration.d.ts +8 -8
- package/dist/sqliteStore.d.ts +8 -8
- package/dist/store.d.ts +1 -1
- package/dist/svelte/createVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/svelte/createVoiceCallDebugger.d.ts +2 -2
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +1 -1
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +1 -1
- package/dist/svelte/createVoiceLiveOps.d.ts +2 -2
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +1 -1
- package/dist/svelte/createVoiceOpsStatus.d.ts +1 -1
- package/dist/svelte/createVoicePlatformCoverage.d.ts +1 -1
- package/dist/svelte/createVoiceProfileComparison.d.ts +1 -1
- package/dist/svelte/createVoiceProofTrends.d.ts +1 -1
- 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/createVoiceReadinessFailures.d.ts +1 -1
- package/dist/svelte/createVoiceRoutingStatus.d.ts +1 -1
- package/dist/svelte/createVoiceSessionSnapshot.d.ts +2 -2
- package/dist/svelte/createVoiceStream.d.ts +1 -1
- package/dist/svelte/createVoiceTraceTimeline.d.ts +1 -1
- package/dist/svelte/createVoiceTurnLatency.d.ts +1 -1
- package/dist/svelte/createVoiceTurnQuality.d.ts +1 -1
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +1 -1
- package/dist/svelte/index.d.ts +23 -23
- package/dist/svelte/index.js +30 -8
- package/dist/telephony/contract.d.ts +5 -5
- package/dist/telephony/matrix.d.ts +4 -4
- package/dist/telephony/plivo.d.ts +30 -30
- package/dist/telephony/response.d.ts +1 -1
- package/dist/telephony/security.d.ts +17 -17
- package/dist/telephony/telnyx.d.ts +31 -31
- package/dist/telephony/twilio.d.ts +22 -22
- package/dist/telephonyMediaRoutes.d.ts +4 -4
- package/dist/telephonyOutcome.d.ts +13 -13
- package/dist/testing/accuracy.d.ts +1 -1
- package/dist/testing/benchmark.d.ts +9 -9
- package/dist/testing/corrected.d.ts +5 -5
- package/dist/testing/duplex.d.ts +3 -3
- package/dist/testing/fixtures.d.ts +3 -3
- package/dist/testing/index.d.ts +13 -13
- package/dist/testing/index.js +49 -20
- package/dist/testing/ioProviderSimulator.d.ts +5 -5
- package/dist/testing/providerSimulator.d.ts +5 -5
- package/dist/testing/review.d.ts +4 -4
- package/dist/testing/sessionBenchmark.d.ts +3 -3
- package/dist/testing/stt.d.ts +3 -3
- package/dist/testing/telephony.d.ts +3 -3
- package/dist/testing/tts.d.ts +1 -1
- package/dist/toolContract.d.ts +10 -10
- package/dist/toolRuntime.d.ts +3 -3
- package/dist/trace.d.ts +10 -10
- package/dist/traceDeliveryRoutes.d.ts +4 -4
- package/dist/traceTimeline.d.ts +4 -4
- package/dist/turnDetection.d.ts +1 -1
- package/dist/turnLatency.d.ts +4 -4
- package/dist/turnProfiles.d.ts +2 -2
- package/dist/turnQuality.d.ts +4 -4
- package/dist/types.d.ts +92 -92
- package/dist/voiceMonitoring.d.ts +6 -6
- package/dist/vue/VoiceOpsActionCenter.d.ts +2 -2
- package/dist/vue/VoiceProviderSimulationControls.d.ts +2 -2
- package/dist/vue/index.d.ts +38 -38
- package/dist/vue/index.js +41 -15
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +1 -1
- package/dist/vue/useVoiceCallDebugger.d.ts +2 -2
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +2 -2
- package/dist/vue/useVoiceController.d.ts +1 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +2 -2
- package/dist/vue/useVoiceLiveOps.d.ts +1 -1
- package/dist/vue/useVoiceOpsActionCenter.d.ts +1 -1
- package/dist/vue/useVoiceOpsStatus.d.ts +2 -2
- package/dist/vue/useVoicePlatformCoverage.d.ts +2 -2
- package/dist/vue/useVoiceProfileComparison.d.ts +2 -2
- package/dist/vue/useVoiceProofTrends.d.ts +2 -2
- package/dist/vue/useVoiceProviderCapabilities.d.ts +2 -2
- package/dist/vue/useVoiceProviderContracts.d.ts +2 -2
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +1 -1
- package/dist/vue/useVoiceProviderStatus.d.ts +2 -2
- package/dist/vue/useVoiceReadinessFailures.d.ts +30 -2
- package/dist/vue/useVoiceRoutingStatus.d.ts +1 -1
- package/dist/vue/useVoiceSessionSnapshot.d.ts +2 -2
- package/dist/vue/useVoiceStream.d.ts +1 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +2 -2
- package/dist/vue/useVoiceTurnLatency.d.ts +2 -2
- package/dist/vue/useVoiceTurnQuality.d.ts +2 -2
- package/dist/vue/useVoiceWorkflowStatus.d.ts +2 -2
- package/dist/workflowContract.d.ts +8 -8
- package/fixtures/manifest.json +356 -197
- package/package.json +260 -259
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoicePlatformCoverageClientOptions } from
|
|
1
|
+
import type { VoicePlatformCoverageClientOptions } from "../client/platformCoverage";
|
|
2
2
|
export declare const createVoicePlatformCoverage: (path?: string, options?: VoicePlatformCoverageClientOptions) => {
|
|
3
3
|
close: () => void;
|
|
4
4
|
getSnapshot: () => import("../client/platformCoverage").VoicePlatformCoverageSnapshot;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceProfileComparisonClientOptions } from
|
|
1
|
+
import type { VoiceProfileComparisonClientOptions } from "../client/profileComparison";
|
|
2
2
|
export declare const createVoiceProfileComparison: (path?: string, options?: VoiceProfileComparisonClientOptions) => {
|
|
3
3
|
close: () => void;
|
|
4
4
|
getSnapshot: () => import("../client").VoiceProfileComparisonSnapshot;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceProofTrendsClientOptions } from
|
|
1
|
+
import type { VoiceProofTrendsClientOptions } from "../client/proofTrends";
|
|
2
2
|
export declare const createVoiceProofTrends: (path?: string, options?: VoiceProofTrendsClientOptions) => {
|
|
3
3
|
close: () => void;
|
|
4
4
|
getSnapshot: () => import("../client/proofTrends").VoiceProofTrendsSnapshot;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceProviderCapabilitiesWidgetOptions } from
|
|
1
|
+
import { type VoiceProviderCapabilitiesWidgetOptions } from "../client/providerCapabilitiesWidget";
|
|
2
2
|
export declare const createVoiceProviderCapabilities: <TProvider extends string = string>(path?: string, options?: VoiceProviderCapabilitiesWidgetOptions) => {
|
|
3
3
|
getHTML: () => string;
|
|
4
4
|
getViewModel: () => import("../client").VoiceProviderCapabilitiesViewModel<TProvider>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceProviderContractsWidgetOptions } from
|
|
1
|
+
import { type VoiceProviderContractsWidgetOptions } from "../client/providerContractsWidget";
|
|
2
2
|
export declare const createVoiceProviderContracts: <TProvider extends string = string>(path?: string, options?: VoiceProviderContractsWidgetOptions) => {
|
|
3
3
|
getHTML: () => string;
|
|
4
4
|
getViewModel: () => import("../client").VoiceProviderContractsViewModel<TProvider>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceProviderSimulationControlsOptions } from
|
|
1
|
+
import type { VoiceProviderSimulationControlsOptions } from "../client/providerSimulationControls";
|
|
2
2
|
export declare const createVoiceProviderSimulationControls: <TProvider extends string = string>(options: VoiceProviderSimulationControlsOptions<TProvider>) => {
|
|
3
3
|
bind: (element: Element) => () => void;
|
|
4
4
|
getHTML: () => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceProviderStatusWidgetOptions } from
|
|
1
|
+
import { type VoiceProviderStatusWidgetOptions } from "../client/providerStatusWidget";
|
|
2
2
|
export declare const createVoiceProviderStatus: <TProvider extends string = string>(path?: string, options?: VoiceProviderStatusWidgetOptions) => {
|
|
3
3
|
getHTML: () => string;
|
|
4
4
|
getViewModel: () => import("../client").VoiceProviderStatusViewModel<TProvider>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceReadinessFailuresClientOptions } from
|
|
1
|
+
import type { VoiceReadinessFailuresClientOptions } from "../client/readinessFailures";
|
|
2
2
|
export declare const createVoiceReadinessFailures: (path?: string, options?: VoiceReadinessFailuresClientOptions) => {
|
|
3
3
|
close: () => void;
|
|
4
4
|
getSnapshot: () => import("../client").VoiceReadinessFailuresSnapshot;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceRoutingStatusWidgetOptions } from
|
|
1
|
+
import { type VoiceRoutingStatusWidgetOptions } from "../client/routingStatusWidget";
|
|
2
2
|
export declare const createVoiceRoutingStatus: (path?: string, options?: VoiceRoutingStatusWidgetOptions) => {
|
|
3
3
|
getHTML: () => string;
|
|
4
4
|
getViewModel: () => import("../client").VoiceRoutingStatusViewModel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VoiceSessionSnapshotClientOptions } from
|
|
2
|
-
import { type VoiceSessionSnapshotWidgetOptions } from
|
|
1
|
+
import { type VoiceSessionSnapshotClientOptions } from "../client/sessionSnapshot";
|
|
2
|
+
import { type VoiceSessionSnapshotWidgetOptions } from "../client/sessionSnapshotWidget";
|
|
3
3
|
export declare const createVoiceSessionSnapshot: (path: string, options?: VoiceSessionSnapshotWidgetOptions) => {
|
|
4
4
|
getHTML: () => string;
|
|
5
5
|
getViewModel: () => import("../client").VoiceSessionSnapshotViewModel;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { VoiceConnectionOptions } from
|
|
1
|
+
import type { VoiceConnectionOptions } from "../types";
|
|
2
2
|
export declare const createVoiceStream: <TResult = unknown>(path: string, options?: VoiceConnectionOptions) => import("..").VoiceStream<TResult>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceTraceTimelineWidgetOptions } from
|
|
1
|
+
import { type VoiceTraceTimelineWidgetOptions } from "../client/traceTimelineWidget";
|
|
2
2
|
export declare const createVoiceTraceTimeline: (path?: string, options?: VoiceTraceTimelineWidgetOptions) => {
|
|
3
3
|
getHTML: () => string;
|
|
4
4
|
getViewModel: () => import("../client").VoiceTraceTimelineViewModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceTurnLatencyWidgetOptions } from
|
|
1
|
+
import { type VoiceTurnLatencyWidgetOptions } from "../client/turnLatencyWidget";
|
|
2
2
|
export declare const createVoiceTurnLatency: (path?: string, options?: VoiceTurnLatencyWidgetOptions) => {
|
|
3
3
|
getHTML: () => string;
|
|
4
4
|
getViewModel: () => import("../client").VoiceTurnLatencyViewModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VoiceTurnQualityWidgetOptions } from
|
|
1
|
+
import { type VoiceTurnQualityWidgetOptions } from "../client/turnQualityWidget";
|
|
2
2
|
export declare const createVoiceTurnQuality: (path?: string, options?: VoiceTurnQualityWidgetOptions) => {
|
|
3
3
|
getHTML: () => string;
|
|
4
4
|
getViewModel: () => import("../client").VoiceTurnQualityViewModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VoiceWorkflowStatusClientOptions } from
|
|
1
|
+
import type { VoiceWorkflowStatusClientOptions } from "../client/workflowStatus";
|
|
2
2
|
export declare const createVoiceWorkflowStatus: (path?: string, options?: VoiceWorkflowStatusClientOptions) => {
|
|
3
3
|
close: () => void;
|
|
4
4
|
getServerSnapshot: () => import("../client").VoiceWorkflowStatusSnapshot;
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export { createVoiceCampaignDialerProof } from
|
|
2
|
-
export { createVoiceDeliveryRuntime } from
|
|
3
|
-
export { createVoiceOpsActionCenter } from
|
|
4
|
-
export { createVoiceLiveOps } from
|
|
5
|
-
export { createVoiceOpsStatus } from
|
|
6
|
-
export { createVoicePlatformCoverage } from
|
|
7
|
-
export { createVoiceProofTrends } from
|
|
8
|
-
export { createVoiceCallDebugger } from
|
|
9
|
-
export { createVoiceSessionSnapshot } from
|
|
10
|
-
export { createVoiceProfileComparison } from
|
|
11
|
-
export { createVoiceReadinessFailures } from
|
|
12
|
-
export { createVoiceProviderSimulationControls } from
|
|
13
|
-
export { createVoiceProviderCapabilities } from
|
|
14
|
-
export { createVoiceProviderContracts } from
|
|
15
|
-
export { createVoiceStream } from
|
|
16
|
-
export { createVoiceProviderStatus } from
|
|
17
|
-
export { createVoiceRoutingStatus } from
|
|
18
|
-
export { createVoiceTraceTimeline } from
|
|
19
|
-
export { createVoiceAgentSquadStatus } from
|
|
20
|
-
export { createVoiceTurnLatency } from
|
|
21
|
-
export { createVoiceTurnQuality } from
|
|
22
|
-
export { createVoiceWorkflowStatus } from
|
|
23
|
-
export { createVoiceController } from
|
|
1
|
+
export { createVoiceCampaignDialerProof } from "./createVoiceCampaignDialerProof";
|
|
2
|
+
export { createVoiceDeliveryRuntime } from "./createVoiceDeliveryRuntime";
|
|
3
|
+
export { createVoiceOpsActionCenter } from "./createVoiceOpsActionCenter";
|
|
4
|
+
export { createVoiceLiveOps } from "./createVoiceLiveOps";
|
|
5
|
+
export { createVoiceOpsStatus } from "./createVoiceOpsStatus";
|
|
6
|
+
export { createVoicePlatformCoverage } from "./createVoicePlatformCoverage";
|
|
7
|
+
export { createVoiceProofTrends } from "./createVoiceProofTrends";
|
|
8
|
+
export { createVoiceCallDebugger } from "./createVoiceCallDebugger";
|
|
9
|
+
export { createVoiceSessionSnapshot } from "./createVoiceSessionSnapshot";
|
|
10
|
+
export { createVoiceProfileComparison } from "./createVoiceProfileComparison";
|
|
11
|
+
export { createVoiceReadinessFailures } from "./createVoiceReadinessFailures";
|
|
12
|
+
export { createVoiceProviderSimulationControls } from "./createVoiceProviderSimulationControls";
|
|
13
|
+
export { createVoiceProviderCapabilities } from "./createVoiceProviderCapabilities";
|
|
14
|
+
export { createVoiceProviderContracts } from "./createVoiceProviderContracts";
|
|
15
|
+
export { createVoiceStream } from "./createVoiceStream";
|
|
16
|
+
export { createVoiceProviderStatus } from "./createVoiceProviderStatus";
|
|
17
|
+
export { createVoiceRoutingStatus } from "./createVoiceRoutingStatus";
|
|
18
|
+
export { createVoiceTraceTimeline } from "./createVoiceTraceTimeline";
|
|
19
|
+
export { createVoiceAgentSquadStatus } from "./createVoiceAgentSquadStatus";
|
|
20
|
+
export { createVoiceTurnLatency } from "./createVoiceTurnLatency";
|
|
21
|
+
export { createVoiceTurnQuality } from "./createVoiceTurnQuality";
|
|
22
|
+
export { createVoiceWorkflowStatus } from "./createVoiceWorkflowStatus";
|
|
23
|
+
export { createVoiceController } from "../client/controller";
|
package/dist/svelte/index.js
CHANGED
|
@@ -1630,8 +1630,12 @@ var redactVoiceTraceEvent = (event, options = {}) => {
|
|
|
1630
1630
|
const resolved = resolveVoiceTraceRedactionOptions(options);
|
|
1631
1631
|
return {
|
|
1632
1632
|
...event,
|
|
1633
|
-
metadata: redactTraceValue(event.metadata, resolved, [
|
|
1634
|
-
|
|
1633
|
+
metadata: redactTraceValue(event.metadata, resolved, [
|
|
1634
|
+
"metadata"
|
|
1635
|
+
]),
|
|
1636
|
+
payload: redactTraceValue(event.payload, resolved, [
|
|
1637
|
+
"payload"
|
|
1638
|
+
])
|
|
1635
1639
|
};
|
|
1636
1640
|
};
|
|
1637
1641
|
var redactVoiceTraceEvents = (events, options = {}) => events.map((event) => redactVoiceTraceEvent(event, options));
|
|
@@ -2819,9 +2823,18 @@ var createVoiceCallDebuggerLaunchViewModel = (path, state, options = {}) => {
|
|
|
2819
2823
|
isLoading: state.isLoading,
|
|
2820
2824
|
label: state.error ? "Unavailable" : report ? `${report.status} \xB7 ${report.sessionId}` : state.isLoading ? "Loading" : "No call loaded",
|
|
2821
2825
|
rows: report ? [
|
|
2822
|
-
{
|
|
2823
|
-
|
|
2824
|
-
|
|
2826
|
+
{
|
|
2827
|
+
label: "Events",
|
|
2828
|
+
value: String(report.operationsRecord.summary.eventCount)
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
label: "Turns",
|
|
2832
|
+
value: String(report.operationsRecord.summary.turnCount)
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
label: "Errors",
|
|
2836
|
+
value: String(report.operationsRecord.summary.errorCount)
|
|
2837
|
+
},
|
|
2825
2838
|
{
|
|
2826
2839
|
label: "Provider recovery",
|
|
2827
2840
|
value: report.operationsRecord.providerDecisionSummary.recoveryStatus
|
|
@@ -3026,7 +3039,10 @@ var createVoiceSessionSnapshotViewModel = (state, options = {}) => {
|
|
|
3026
3039
|
{ label: "Backpressure drops", value: String(backpressureDrops) },
|
|
3027
3040
|
{ label: "Proof failures", value: String(failedProofs) },
|
|
3028
3041
|
{ label: "Quality warnings", value: String(qualityWarnings) },
|
|
3029
|
-
{
|
|
3042
|
+
{
|
|
3043
|
+
label: "Debug artifacts",
|
|
3044
|
+
value: String(snapshot.artifacts.length)
|
|
3045
|
+
},
|
|
3030
3046
|
{ label: "Artifact warnings", value: String(artifactWarnings) },
|
|
3031
3047
|
{
|
|
3032
3048
|
label: "Provider routing",
|
|
@@ -6404,8 +6420,14 @@ var createVoiceTurnQualityViewModel = (snapshot, options = {}) => {
|
|
|
6404
6420
|
{ label: "Source", value: turn.source ?? "unknown" },
|
|
6405
6421
|
{ label: "Confidence", value: formatConfidence(turn.averageConfidence) },
|
|
6406
6422
|
{ label: "Fallback", value: turn.fallbackUsed ? "Yes" : "No" },
|
|
6407
|
-
{
|
|
6408
|
-
|
|
6423
|
+
{
|
|
6424
|
+
label: "Correction",
|
|
6425
|
+
value: turn.correctionChanged ? "Changed" : "None"
|
|
6426
|
+
},
|
|
6427
|
+
{
|
|
6428
|
+
label: "Transcripts",
|
|
6429
|
+
value: `${turn.selectedTranscriptCount} selected`
|
|
6430
|
+
},
|
|
6409
6431
|
{ label: "Cost", value: formatMaybe(turn.costUnits) }
|
|
6410
6432
|
]
|
|
6411
6433
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type VoiceTelephonyProvider =
|
|
1
|
+
export type VoiceTelephonyProvider = "generic" | "plivo" | "telnyx" | "twilio";
|
|
2
2
|
export type VoiceTelephonySetupStatus<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = {
|
|
3
3
|
generatedAt: number;
|
|
4
4
|
missing: string[];
|
|
@@ -6,7 +6,7 @@ export type VoiceTelephonySetupStatus<TProvider extends VoiceTelephonyProvider =
|
|
|
6
6
|
ready: boolean;
|
|
7
7
|
signing: {
|
|
8
8
|
configured: boolean;
|
|
9
|
-
mode:
|
|
9
|
+
mode: "custom" | "none" | "provider-signature" | "twilio-signature";
|
|
10
10
|
verificationUrl?: string;
|
|
11
11
|
};
|
|
12
12
|
urls: {
|
|
@@ -20,7 +20,7 @@ export type VoiceTelephonySmokeCheck = {
|
|
|
20
20
|
details?: Record<string, unknown>;
|
|
21
21
|
message?: string;
|
|
22
22
|
name: string;
|
|
23
|
-
status:
|
|
23
|
+
status: "fail" | "pass" | "warn";
|
|
24
24
|
};
|
|
25
25
|
export type VoiceTelephonySmokeReport<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = {
|
|
26
26
|
checks: VoiceTelephonySmokeCheck[];
|
|
@@ -37,10 +37,10 @@ export type VoiceTelephonySmokeReport<TProvider extends VoiceTelephonyProvider =
|
|
|
37
37
|
status: number;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
-
export type VoiceTelephonyContractRequirement =
|
|
40
|
+
export type VoiceTelephonyContractRequirement = "signed-webhook" | "smoke-pass" | "stream-url" | "webhook-url" | "wss-stream";
|
|
41
41
|
export type VoiceTelephonyContractIssue = {
|
|
42
42
|
requirement: VoiceTelephonyContractRequirement;
|
|
43
|
-
severity:
|
|
43
|
+
severity: "error" | "warning";
|
|
44
44
|
message: string;
|
|
45
45
|
};
|
|
46
46
|
export type VoiceTelephonyContractReport<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceTelephonyContractOptions, type VoiceTelephonyContractReport, type VoiceTelephonyProvider, type VoiceTelephonySetupStatus, type VoiceTelephonySmokeReport } from
|
|
3
|
-
export type VoiceTelephonyCarrierMatrixStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceTelephonyContractOptions, type VoiceTelephonyContractReport, type VoiceTelephonyProvider, type VoiceTelephonySetupStatus, type VoiceTelephonySmokeReport } from "./contract";
|
|
3
|
+
export type VoiceTelephonyCarrierMatrixStatus = "fail" | "pass" | "warn";
|
|
4
4
|
export type VoiceTelephonyCarrierMatrixInput<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = {
|
|
5
5
|
contract?: VoiceTelephonyContractReport<TProvider>;
|
|
6
6
|
name?: string;
|
|
@@ -9,7 +9,7 @@ export type VoiceTelephonyCarrierMatrixInput<TProvider extends VoiceTelephonyPro
|
|
|
9
9
|
};
|
|
10
10
|
export type VoiceTelephonyCarrierMatrixEntry<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = {
|
|
11
11
|
contract: VoiceTelephonyContractReport<TProvider>;
|
|
12
|
-
issues: VoiceTelephonyContractReport<TProvider>[
|
|
12
|
+
issues: VoiceTelephonyContractReport<TProvider>["issues"];
|
|
13
13
|
name: string;
|
|
14
14
|
provider: TProvider;
|
|
15
15
|
ready: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Database } from
|
|
2
|
-
import type { RedisClient } from
|
|
3
|
-
import { Elysia } from
|
|
4
|
-
import { type VoiceTelephonyContractReport, type VoiceTelephonySetupStatus, type VoiceTelephonySmokeCheck, type VoiceTelephonySmokeReport } from
|
|
5
|
-
import { type VoiceTelephonyOutcomePolicy, type VoiceTelephonyWebhookRoutesOptions, type VoiceTelephonyWebhookVerificationResult } from
|
|
6
|
-
import type { VoiceServerMessage, VoiceSessionRecord } from
|
|
7
|
-
import type { VoicePostgresClient } from
|
|
8
|
-
import { type TwilioMediaStreamBridgeOptions } from
|
|
1
|
+
import { Database } from "bun:sqlite";
|
|
2
|
+
import type { RedisClient } from "bun";
|
|
3
|
+
import { Elysia } from "elysia";
|
|
4
|
+
import { type VoiceTelephonyContractReport, type VoiceTelephonySetupStatus, type VoiceTelephonySmokeCheck, type VoiceTelephonySmokeReport } from "./contract";
|
|
5
|
+
import { type VoiceTelephonyOutcomePolicy, type VoiceTelephonyWebhookRoutesOptions, type VoiceTelephonyWebhookVerificationResult } from "../telephonyOutcome";
|
|
6
|
+
import type { VoiceServerMessage, VoiceSessionRecord } from "../types";
|
|
7
|
+
import type { VoicePostgresClient } from "../postgresStore";
|
|
8
|
+
import { type TwilioMediaStreamBridgeOptions } from "./twilio";
|
|
9
9
|
export type PlivoInboundMessage = {
|
|
10
|
-
event:
|
|
10
|
+
event: "start";
|
|
11
11
|
sequenceNumber?: number;
|
|
12
12
|
start?: {
|
|
13
13
|
callId?: string;
|
|
@@ -22,16 +22,16 @@ export type PlivoInboundMessage = {
|
|
|
22
22
|
};
|
|
23
23
|
streamId?: string;
|
|
24
24
|
} | {
|
|
25
|
-
event:
|
|
25
|
+
event: "media";
|
|
26
26
|
media: {
|
|
27
27
|
payload: string;
|
|
28
28
|
timestamp?: string;
|
|
29
|
-
track?:
|
|
29
|
+
track?: "inbound" | "outbound";
|
|
30
30
|
};
|
|
31
31
|
sequenceNumber?: number;
|
|
32
32
|
streamId?: string;
|
|
33
33
|
} | {
|
|
34
|
-
event:
|
|
34
|
+
event: "dtmf";
|
|
35
35
|
dtmf?: {
|
|
36
36
|
digit?: string;
|
|
37
37
|
timestamp?: string;
|
|
@@ -40,16 +40,16 @@ export type PlivoInboundMessage = {
|
|
|
40
40
|
sequenceNumber?: number;
|
|
41
41
|
streamId?: string;
|
|
42
42
|
} | {
|
|
43
|
-
event:
|
|
43
|
+
event: "playedStream";
|
|
44
44
|
name?: string;
|
|
45
45
|
sequenceNumber?: number;
|
|
46
46
|
streamId?: string;
|
|
47
47
|
} | {
|
|
48
|
-
event:
|
|
48
|
+
event: "clearedAudio";
|
|
49
49
|
sequenceNumber?: number;
|
|
50
50
|
streamId?: string;
|
|
51
51
|
} | {
|
|
52
|
-
event:
|
|
52
|
+
event: "stop";
|
|
53
53
|
sequenceNumber?: number;
|
|
54
54
|
stop?: {
|
|
55
55
|
callId?: string;
|
|
@@ -58,19 +58,19 @@ export type PlivoInboundMessage = {
|
|
|
58
58
|
streamId?: string;
|
|
59
59
|
};
|
|
60
60
|
export type PlivoOutboundPlayAudioMessage = {
|
|
61
|
-
event:
|
|
61
|
+
event: "playAudio";
|
|
62
62
|
media: {
|
|
63
|
-
contentType:
|
|
63
|
+
contentType: "audio/x-mulaw";
|
|
64
64
|
payload: string;
|
|
65
65
|
sampleRate: 8000;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
export type PlivoOutboundClearAudioMessage = {
|
|
69
|
-
event:
|
|
69
|
+
event: "clearAudio";
|
|
70
70
|
streamId?: string;
|
|
71
71
|
};
|
|
72
72
|
export type PlivoOutboundCheckpointMessage = {
|
|
73
|
-
event:
|
|
73
|
+
event: "checkpoint";
|
|
74
74
|
name: string;
|
|
75
75
|
streamId?: string;
|
|
76
76
|
};
|
|
@@ -79,7 +79,7 @@ export type PlivoMediaStreamSocket = {
|
|
|
79
79
|
close: (code?: number, reason?: string) => void | Promise<void>;
|
|
80
80
|
send: (data: string) => void | Promise<void>;
|
|
81
81
|
};
|
|
82
|
-
export type PlivoMediaStreamBridgeOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Omit<TwilioMediaStreamBridgeOptions<TContext, TSession, TResult>,
|
|
82
|
+
export type PlivoMediaStreamBridgeOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Omit<TwilioMediaStreamBridgeOptions<TContext, TSession, TResult>, "onVoiceMessage"> & {
|
|
83
83
|
onVoiceMessage?: (input: {
|
|
84
84
|
callId?: string;
|
|
85
85
|
message: VoiceServerMessage<TResult>;
|
|
@@ -94,20 +94,20 @@ export type PlivoMediaStreamBridge = {
|
|
|
94
94
|
handleMessage: (raw: string | PlivoInboundMessage) => Promise<void>;
|
|
95
95
|
};
|
|
96
96
|
export type PlivoVoiceResponseOptions = {
|
|
97
|
-
audioTrack?:
|
|
97
|
+
audioTrack?: "both" | "inbound" | "outbound";
|
|
98
98
|
bidirectional?: boolean;
|
|
99
|
-
contentType?:
|
|
99
|
+
contentType?: "audio/x-l16;rate=8000" | "audio/x-l16;rate=16000" | "audio/x-mulaw;rate=8000";
|
|
100
100
|
extraHeaders?: Record<string, string | number | boolean | undefined> | string;
|
|
101
101
|
keepCallAlive?: boolean;
|
|
102
102
|
noiseCancellation?: boolean;
|
|
103
103
|
noiseCancellationLevel?: number;
|
|
104
|
-
statusCallbackMethod?:
|
|
104
|
+
statusCallbackMethod?: "GET" | "POST";
|
|
105
105
|
statusCallbackUrl?: string;
|
|
106
106
|
streamTimeout?: number;
|
|
107
107
|
streamUrl: string;
|
|
108
108
|
};
|
|
109
|
-
export type PlivoVoiceSetupStatus = VoiceTelephonySetupStatus<
|
|
110
|
-
urls: VoiceTelephonySetupStatus<
|
|
109
|
+
export type PlivoVoiceSetupStatus = VoiceTelephonySetupStatus<"plivo"> & {
|
|
110
|
+
urls: VoiceTelephonySetupStatus<"plivo">["urls"] & {
|
|
111
111
|
answer: string;
|
|
112
112
|
};
|
|
113
113
|
};
|
|
@@ -117,12 +117,12 @@ export type PlivoVoiceSetupOptions = {
|
|
|
117
117
|
title?: string;
|
|
118
118
|
};
|
|
119
119
|
export type PlivoVoiceSmokeCheck = VoiceTelephonySmokeCheck;
|
|
120
|
-
export type PlivoVoiceSmokeReport = VoiceTelephonySmokeReport<
|
|
120
|
+
export type PlivoVoiceSmokeReport = VoiceTelephonySmokeReport<"plivo"> & {
|
|
121
121
|
answer?: {
|
|
122
122
|
status: number;
|
|
123
123
|
streamUrl?: string;
|
|
124
124
|
};
|
|
125
|
-
contract: VoiceTelephonyContractReport<
|
|
125
|
+
contract: VoiceTelephonyContractReport<"plivo">;
|
|
126
126
|
setup: PlivoVoiceSetupStatus;
|
|
127
127
|
};
|
|
128
128
|
export type PlivoVoiceSmokeOptions = {
|
|
@@ -155,7 +155,7 @@ export type VoicePostgresPlivoWebhookNonceStoreOptions = VoicePlivoWebhookNonceS
|
|
|
155
155
|
tableName?: string;
|
|
156
156
|
tablePrefix?: string;
|
|
157
157
|
};
|
|
158
|
-
export type VoiceRedisPlivoWebhookNonceClient = Pick<RedisClient,
|
|
158
|
+
export type VoiceRedisPlivoWebhookNonceClient = Pick<RedisClient, "exists" | "set">;
|
|
159
159
|
export type VoiceRedisPlivoWebhookNonceStoreOptions = VoicePlivoWebhookNonceStoreOptions & {
|
|
160
160
|
client?: VoiceRedisPlivoWebhookNonceClient;
|
|
161
161
|
keyPrefix?: string;
|
|
@@ -172,7 +172,7 @@ export type VoicePlivoWebhookVerifierOptions = {
|
|
|
172
172
|
export type PlivoVoiceRoutesOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
173
173
|
answer?: {
|
|
174
174
|
path?: string;
|
|
175
|
-
response?: Omit<PlivoVoiceResponseOptions,
|
|
175
|
+
response?: Omit<PlivoVoiceResponseOptions, "streamUrl">;
|
|
176
176
|
streamUrl?: string | ((input: {
|
|
177
177
|
query: Record<string, unknown>;
|
|
178
178
|
request: Request;
|
|
@@ -186,7 +186,7 @@ export type PlivoVoiceRoutesOptions<TContext = unknown, TSession extends VoiceSe
|
|
|
186
186
|
setup?: PlivoVoiceSetupOptions;
|
|
187
187
|
smoke?: PlivoVoiceSmokeOptions;
|
|
188
188
|
streamPath?: string;
|
|
189
|
-
webhook?: Omit<VoiceTelephonyWebhookRoutesOptions<TContext, TSession, TResult>,
|
|
189
|
+
webhook?: Omit<VoiceTelephonyWebhookRoutesOptions<TContext, TSession, TResult>, "context" | "path" | "policy" | "provider"> & {
|
|
190
190
|
authToken?: string;
|
|
191
191
|
nonceStore?: VoicePlivoWebhookNonceStore;
|
|
192
192
|
path?: string;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { type VoiceTelephonyWebhookIdempotencyStore, type VoiceTelephonyWebhookProvider, type VoiceTelephonyWebhookVerificationResult } from
|
|
2
|
-
import { Elysia } from
|
|
3
|
-
import { type VoicePostgresClient } from
|
|
4
|
-
import { type VoiceRedisTelephonyWebhookIdempotencyClient } from
|
|
5
|
-
import { type VoicePlivoWebhookNonceStore, type VoiceRedisPlivoWebhookNonceClient } from
|
|
6
|
-
import { type VoiceRedisTelnyxWebhookEventClient, type VoiceTelnyxWebhookEventStore } from
|
|
1
|
+
import { type VoiceTelephonyWebhookIdempotencyStore, type VoiceTelephonyWebhookProvider, type VoiceTelephonyWebhookVerificationResult } from "../telephonyOutcome";
|
|
2
|
+
import { Elysia } from "elysia";
|
|
3
|
+
import { type VoicePostgresClient } from "../postgresStore";
|
|
4
|
+
import { type VoiceRedisTelephonyWebhookIdempotencyClient } from "../queue";
|
|
5
|
+
import { type VoicePlivoWebhookNonceStore, type VoiceRedisPlivoWebhookNonceClient } from "./plivo";
|
|
6
|
+
import { type VoiceRedisTelnyxWebhookEventClient, type VoiceTelnyxWebhookEventStore } from "./telnyx";
|
|
7
7
|
export type VoiceTelephonyWebhookSecurityStorePreset = {
|
|
8
|
-
kind?:
|
|
8
|
+
kind?: "memory";
|
|
9
9
|
} | {
|
|
10
|
-
kind:
|
|
10
|
+
kind: "sqlite";
|
|
11
11
|
path: string;
|
|
12
12
|
tablePrefix?: string;
|
|
13
13
|
} | {
|
|
14
14
|
connectionString?: string;
|
|
15
|
-
kind:
|
|
15
|
+
kind: "postgres";
|
|
16
16
|
schemaName?: string;
|
|
17
17
|
sql?: VoicePostgresClient;
|
|
18
18
|
tablePrefix?: string;
|
|
19
19
|
} | {
|
|
20
20
|
idempotencyClient?: VoiceRedisTelephonyWebhookIdempotencyClient;
|
|
21
21
|
keyPrefix?: string;
|
|
22
|
-
kind:
|
|
22
|
+
kind: "redis";
|
|
23
23
|
plivoClient?: VoiceRedisPlivoWebhookNonceClient;
|
|
24
24
|
telnyxClient?: VoiceRedisTelnyxWebhookEventClient;
|
|
25
25
|
url?: string;
|
|
@@ -88,9 +88,9 @@ export type VoiceTelephonyWebhookSecurityPreset<TResult = unknown> = {
|
|
|
88
88
|
}) => Promise<VoiceTelephonyWebhookVerificationResult>;
|
|
89
89
|
};
|
|
90
90
|
verify: {
|
|
91
|
-
plivo: VoiceTelephonyWebhookSecurityPreset<TResult>[
|
|
92
|
-
telnyx: VoiceTelephonyWebhookSecurityPreset<TResult>[
|
|
93
|
-
twilio: VoiceTelephonyWebhookSecurityPreset<TResult>[
|
|
91
|
+
plivo: VoiceTelephonyWebhookSecurityPreset<TResult>["plivo"]["verify"];
|
|
92
|
+
telnyx: VoiceTelephonyWebhookSecurityPreset<TResult>["telnyx"]["verify"];
|
|
93
|
+
twilio: VoiceTelephonyWebhookSecurityPreset<TResult>["twilio"]["verify"];
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
export type VoiceTelephonyWebhookSecurityProviderStatus = {
|
|
@@ -103,14 +103,14 @@ export type VoiceTelephonyWebhookSecurityProviderStatus = {
|
|
|
103
103
|
enabled: boolean;
|
|
104
104
|
issues: string[];
|
|
105
105
|
provider: VoiceTelephonyWebhookProvider;
|
|
106
|
-
status:
|
|
107
|
-
store: VoiceTelephonyWebhookSecurityStorePreset[
|
|
106
|
+
status: "fail" | "pass" | "warn";
|
|
107
|
+
store: VoiceTelephonyWebhookSecurityStorePreset["kind"] | "memory";
|
|
108
108
|
};
|
|
109
109
|
export type VoiceTelephonyWebhookSecurityReport = {
|
|
110
110
|
generatedAt: number;
|
|
111
111
|
ok: boolean;
|
|
112
112
|
providers: VoiceTelephonyWebhookSecurityProviderStatus[];
|
|
113
|
-
status:
|
|
113
|
+
status: "fail" | "pass" | "warn";
|
|
114
114
|
summary: {
|
|
115
115
|
enabled: number;
|
|
116
116
|
failed: number;
|
|
@@ -129,7 +129,7 @@ export type VoiceTelephonyWebhookSecurityAssertionReport = {
|
|
|
129
129
|
issues: string[];
|
|
130
130
|
ok: boolean;
|
|
131
131
|
passingProviders: VoiceTelephonyWebhookProvider[];
|
|
132
|
-
status: VoiceTelephonyWebhookSecurityReport[
|
|
132
|
+
status: VoiceTelephonyWebhookSecurityReport["status"];
|
|
133
133
|
};
|
|
134
134
|
export type VoiceTelephonyWebhookSecurityRoutesOptions<TResult = unknown> = {
|
|
135
135
|
name?: string;
|