@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
package/dist/opsRecovery.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryStore } from
|
|
3
|
-
import { type VoiceLatencySLOGateOptions, type VoiceLatencySLOGateReport } from
|
|
4
|
-
import { type VoiceHandoffDeliveryQueueSummary, type VoiceTraceSinkDeliveryQueueSummary } from
|
|
5
|
-
import { type VoiceProviderHealthSummary } from
|
|
6
|
-
import type { VoiceProductionReadinessCheck } from
|
|
7
|
-
import type { VoiceHandoffDeliveryStore } from
|
|
8
|
-
import type { StoredVoiceTraceEvent, VoiceTraceEventStore, VoiceTraceSinkDeliveryStore } from
|
|
9
|
-
export type VoiceOpsRecoveryStatus =
|
|
10
|
-
export type VoiceOpsRecoveryIssueCode =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceAuditSinkDeliveryQueueSummary, type VoiceAuditSinkDeliveryStore } from "./auditSinks";
|
|
3
|
+
import { type VoiceLatencySLOGateOptions, type VoiceLatencySLOGateReport } from "./latencySlo";
|
|
4
|
+
import { type VoiceHandoffDeliveryQueueSummary, type VoiceTraceSinkDeliveryQueueSummary } from "./queue";
|
|
5
|
+
import { type VoiceProviderHealthSummary } from "./providerHealth";
|
|
6
|
+
import type { VoiceProductionReadinessCheck } from "./productionReadiness";
|
|
7
|
+
import type { VoiceHandoffDeliveryStore } from "./types";
|
|
8
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEventStore, VoiceTraceSinkDeliveryStore } from "./trace";
|
|
9
|
+
export type VoiceOpsRecoveryStatus = "fail" | "pass" | "warn";
|
|
10
|
+
export type VoiceOpsRecoveryIssueCode = "voice.ops_recovery.audit_delivery_failed" | "voice.ops_recovery.audit_delivery_pending" | "voice.ops_recovery.handoff_failed" | "voice.ops_recovery.handoff_pending" | "voice.ops_recovery.latency_slo_failed" | "voice.ops_recovery.latency_slo_warn" | "voice.ops_recovery.provider_unresolved_failure" | "voice.ops_recovery.trace_delivery_failed" | "voice.ops_recovery.trace_delivery_pending";
|
|
11
11
|
export type VoiceOpsRecoveryIssue = {
|
|
12
12
|
code: VoiceOpsRecoveryIssueCode;
|
|
13
13
|
detail?: string;
|
|
14
14
|
href?: string;
|
|
15
15
|
label: string;
|
|
16
|
-
severity: Exclude<VoiceOpsRecoveryStatus,
|
|
16
|
+
severity: Exclude<VoiceOpsRecoveryStatus, "pass">;
|
|
17
17
|
value?: number | string;
|
|
18
18
|
};
|
|
19
19
|
export type VoiceOpsRecoveryProviderSummary<TProvider extends string = string> = {
|
package/dist/opsRuntime.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationWebhookConfig, VoiceOpsSLABreachPolicy } from
|
|
2
|
-
import type { VoiceIntegrationSinkWorkerOptions, VoiceIntegrationSinkWorkerResult, VoiceIntegrationEventQueueSummary, VoiceOpsTaskProcessorWorkerOptions, VoiceOpsTaskProcessorWorkerResult, VoiceOpsTaskQueueSummary, VoiceRedisTaskLeaseCoordinator, VoiceWebhookDeliveryWorkerOptions, VoiceWebhookDeliveryWorkerResult } from
|
|
3
|
-
import type { VoiceCallDisposition, VoiceRuntimeOpsConfig, VoiceSessionHandle, VoiceSessionRecord } from
|
|
4
|
-
export type VoiceOpsRuntimeWebhookWorkerConfig<TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent> = Omit<VoiceWebhookDeliveryWorkerOptions<StoredVoiceIntegrationEvent>,
|
|
1
|
+
import type { StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationWebhookConfig, VoiceOpsSLABreachPolicy } from "./ops";
|
|
2
|
+
import type { VoiceIntegrationSinkWorkerOptions, VoiceIntegrationSinkWorkerResult, VoiceIntegrationEventQueueSummary, VoiceOpsTaskProcessorWorkerOptions, VoiceOpsTaskProcessorWorkerResult, VoiceOpsTaskQueueSummary, VoiceRedisTaskLeaseCoordinator, VoiceWebhookDeliveryWorkerOptions, VoiceWebhookDeliveryWorkerResult } from "./queue";
|
|
3
|
+
import type { VoiceCallDisposition, VoiceRuntimeOpsConfig, VoiceSessionHandle, VoiceSessionRecord } from "./types";
|
|
4
|
+
export type VoiceOpsRuntimeWebhookWorkerConfig<TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent> = Omit<VoiceWebhookDeliveryWorkerOptions<StoredVoiceIntegrationEvent>, "events" | "webhook"> & VoiceIntegrationWebhookConfig & {
|
|
5
5
|
autoStart?: boolean;
|
|
6
6
|
pollIntervalMs?: number;
|
|
7
7
|
};
|
|
8
|
-
export type VoiceOpsRuntimeSinkWorkerConfig<TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent> = Omit<VoiceIntegrationSinkWorkerOptions<StoredVoiceIntegrationEvent>,
|
|
8
|
+
export type VoiceOpsRuntimeSinkWorkerConfig<TEvent extends StoredVoiceIntegrationEvent = StoredVoiceIntegrationEvent> = Omit<VoiceIntegrationSinkWorkerOptions<StoredVoiceIntegrationEvent>, "events" | "sinks"> & {
|
|
9
9
|
autoStart?: boolean;
|
|
10
10
|
pollIntervalMs?: number;
|
|
11
11
|
};
|
|
12
|
-
export type VoiceOpsRuntimeTaskWorkerConfig<TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask> = Omit<VoiceOpsTaskProcessorWorkerOptions<StoredVoiceOpsTask>,
|
|
12
|
+
export type VoiceOpsRuntimeTaskWorkerConfig<TTask extends StoredVoiceOpsTask = StoredVoiceOpsTask> = Omit<VoiceOpsTaskProcessorWorkerOptions<StoredVoiceOpsTask>, "tasks" | "worker"> & {
|
|
13
13
|
autoStart?: boolean;
|
|
14
14
|
leaseMs?: number;
|
|
15
15
|
leases: VoiceRedisTaskLeaseCoordinator;
|
package/dist/opsSinks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StoredVoiceIntegrationEvent, VoiceExternalObjectMapStore, VoiceIntegrationDeliveryStatus, VoiceIntegrationEventType, VoiceIntegrationWebhookConfig } from
|
|
1
|
+
import type { StoredVoiceIntegrationEvent, VoiceExternalObjectMapStore, VoiceIntegrationDeliveryStatus, VoiceIntegrationEventType, VoiceIntegrationWebhookConfig } from "./ops";
|
|
2
2
|
export type VoiceIntegrationSinkDeliveryResult = {
|
|
3
3
|
attempts: number;
|
|
4
4
|
deliveredAt?: number;
|
|
@@ -21,7 +21,7 @@ export type VoiceIntegrationHTTPSinkOptions<TBody extends Record<string, unknown
|
|
|
21
21
|
}) => TBody | Promise<TBody>;
|
|
22
22
|
id: string;
|
|
23
23
|
kind?: string;
|
|
24
|
-
method?:
|
|
24
|
+
method?: "POST" | "PUT" | "PATCH";
|
|
25
25
|
};
|
|
26
26
|
export type VoiceHelpdeskTicketSinkOptions = VoiceIntegrationHTTPSinkOptions & {
|
|
27
27
|
project?: string;
|
|
@@ -29,7 +29,7 @@ export type VoiceHelpdeskTicketSinkOptions = VoiceIntegrationHTTPSinkOptions & {
|
|
|
29
29
|
export type VoiceCRMActivitySinkOptions = VoiceIntegrationHTTPSinkOptions & {
|
|
30
30
|
pipeline?: string;
|
|
31
31
|
};
|
|
32
|
-
export type VoiceZendeskTicketSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions,
|
|
32
|
+
export type VoiceZendeskTicketSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions, "body" | "url"> & {
|
|
33
33
|
accessToken: string;
|
|
34
34
|
baseUrl?: string;
|
|
35
35
|
buildTicket?: (input: {
|
|
@@ -46,7 +46,7 @@ export type VoiceZendeskTicketSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions
|
|
|
46
46
|
};
|
|
47
47
|
subdomain?: string;
|
|
48
48
|
};
|
|
49
|
-
export type VoiceZendeskTicketSyncSinkOptions = Omit<VoiceZendeskTicketSinkOptions,
|
|
49
|
+
export type VoiceZendeskTicketSyncSinkOptions = Omit<VoiceZendeskTicketSinkOptions, "eventTypes"> & {
|
|
50
50
|
create?: Partial<VoiceZendeskTicketSinkOptions>;
|
|
51
51
|
createId?: string;
|
|
52
52
|
update?: Partial<VoiceZendeskTicketUpdateSinkOptions>;
|
|
@@ -55,7 +55,7 @@ export type VoiceZendeskTicketSyncSinkOptions = Omit<VoiceZendeskTicketSinkOptio
|
|
|
55
55
|
type VoiceSinkValueResolver = string | ((input: {
|
|
56
56
|
event: StoredVoiceIntegrationEvent;
|
|
57
57
|
}) => Promise<string | undefined> | string | undefined);
|
|
58
|
-
export type VoiceZendeskTicketUpdateSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions,
|
|
58
|
+
export type VoiceZendeskTicketUpdateSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions, "body" | "url"> & {
|
|
59
59
|
accessToken: string;
|
|
60
60
|
baseUrl?: string;
|
|
61
61
|
buildTicket?: (input: {
|
|
@@ -66,7 +66,7 @@ export type VoiceZendeskTicketUpdateSinkOptions = Omit<VoiceIntegrationHTTPSinkO
|
|
|
66
66
|
subdomain?: string;
|
|
67
67
|
ticketId?: VoiceSinkValueResolver;
|
|
68
68
|
};
|
|
69
|
-
export type VoiceHubSpotTaskSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions,
|
|
69
|
+
export type VoiceHubSpotTaskSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions, "body" | "url"> & {
|
|
70
70
|
accessToken: string;
|
|
71
71
|
associations?: Array<Record<string, unknown>> | ((input: {
|
|
72
72
|
event: StoredVoiceIntegrationEvent;
|
|
@@ -82,13 +82,13 @@ export type VoiceHubSpotTaskSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions,
|
|
|
82
82
|
responseBody: unknown;
|
|
83
83
|
}) => Promise<string | undefined> | string | undefined;
|
|
84
84
|
};
|
|
85
|
-
export type VoiceHubSpotTaskSyncSinkOptions = Omit<VoiceHubSpotTaskSinkOptions,
|
|
85
|
+
export type VoiceHubSpotTaskSyncSinkOptions = Omit<VoiceHubSpotTaskSinkOptions, "eventTypes"> & {
|
|
86
86
|
create?: Partial<VoiceHubSpotTaskSinkOptions>;
|
|
87
87
|
createId?: string;
|
|
88
88
|
update?: Partial<VoiceHubSpotTaskUpdateSinkOptions>;
|
|
89
89
|
updateId?: string;
|
|
90
90
|
};
|
|
91
|
-
export type VoiceHubSpotTaskUpdateSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions,
|
|
91
|
+
export type VoiceHubSpotTaskUpdateSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions, "body" | "url"> & {
|
|
92
92
|
accessToken: string;
|
|
93
93
|
baseUrl?: string;
|
|
94
94
|
buildProperties?: (input: {
|
|
@@ -97,9 +97,9 @@ export type VoiceHubSpotTaskUpdateSinkOptions = Omit<VoiceIntegrationHTTPSinkOpt
|
|
|
97
97
|
externalObjects?: VoiceExternalObjectMapStore;
|
|
98
98
|
taskId?: VoiceSinkValueResolver;
|
|
99
99
|
};
|
|
100
|
-
export type VoiceLinearIssueSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions,
|
|
100
|
+
export type VoiceLinearIssueSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions, "body" | "url"> & {
|
|
101
101
|
apiKey?: string;
|
|
102
|
-
authMode?:
|
|
102
|
+
authMode?: "api-key" | "bearer";
|
|
103
103
|
accessToken?: string;
|
|
104
104
|
apiUrl?: string;
|
|
105
105
|
buildIssueInput?: (input: {
|
|
@@ -112,15 +112,15 @@ export type VoiceLinearIssueSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions,
|
|
|
112
112
|
}) => Promise<string | undefined> | string | undefined;
|
|
113
113
|
teamId: string;
|
|
114
114
|
};
|
|
115
|
-
export type VoiceLinearIssueSyncSinkOptions = Omit<VoiceLinearIssueSinkOptions,
|
|
115
|
+
export type VoiceLinearIssueSyncSinkOptions = Omit<VoiceLinearIssueSinkOptions, "eventTypes"> & {
|
|
116
116
|
create?: Partial<VoiceLinearIssueSinkOptions>;
|
|
117
117
|
createId?: string;
|
|
118
118
|
update?: Partial<VoiceLinearIssueUpdateSinkOptions>;
|
|
119
119
|
updateId?: string;
|
|
120
120
|
};
|
|
121
|
-
export type VoiceLinearIssueUpdateSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions,
|
|
121
|
+
export type VoiceLinearIssueUpdateSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions, "body" | "url"> & {
|
|
122
122
|
apiKey?: string;
|
|
123
|
-
authMode?:
|
|
123
|
+
authMode?: "api-key" | "bearer";
|
|
124
124
|
accessToken?: string;
|
|
125
125
|
apiUrl?: string;
|
|
126
126
|
buildIssueInput?: (input: {
|
package/dist/opsStatus.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type VoiceEvalLink, type VoiceEvalRoutesOptions } from
|
|
2
|
-
import { type VoiceDeliverySinkRoutesOptions } from
|
|
3
|
-
import { type VoiceQualityRoutesOptions } from
|
|
4
|
-
import { type VoiceProviderFallbackRecoverySummary } from
|
|
5
|
-
import { type VoiceTraceEventStore } from
|
|
6
|
-
export type VoiceOpsStatus =
|
|
1
|
+
import { type VoiceEvalLink, type VoiceEvalRoutesOptions } from "./evalRoutes";
|
|
2
|
+
import { type VoiceDeliverySinkRoutesOptions } from "./deliverySinkRoutes";
|
|
3
|
+
import { type VoiceQualityRoutesOptions } from "./qualityRoutes";
|
|
4
|
+
import { type VoiceProviderFallbackRecoverySummary } from "./sessionReplay";
|
|
5
|
+
import { type VoiceTraceEventStore } from "./trace";
|
|
6
|
+
export type VoiceOpsStatus = "pass" | "fail";
|
|
7
7
|
export type VoiceOpsStatusLink = VoiceEvalLink & {
|
|
8
8
|
description?: string;
|
|
9
9
|
statusHref?: string;
|
|
@@ -61,7 +61,7 @@ export type VoiceOpsStatusReport = {
|
|
|
61
61
|
};
|
|
62
62
|
workflows?: {
|
|
63
63
|
failed: number;
|
|
64
|
-
source:
|
|
64
|
+
source: "fixtures" | "live";
|
|
65
65
|
status: VoiceOpsStatus;
|
|
66
66
|
total: number;
|
|
67
67
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type VoiceOpsStatusReport, type VoiceOpsStatusRoutesOptions } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type VoiceOpsStatusReport, type VoiceOpsStatusRoutesOptions } from "./opsStatus";
|
|
3
3
|
export declare const renderVoiceOpsStatusHTML: (report: VoiceOpsStatusReport, options?: {
|
|
4
4
|
title?: string;
|
|
5
5
|
}) => string;
|
package/dist/opsWebhook.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { StoredVoiceIntegrationEvent, VoiceIntegrationEventType } from
|
|
3
|
-
import type { VoiceIntegrationHTTPSinkOptions, VoiceIntegrationSink } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { StoredVoiceIntegrationEvent, VoiceIntegrationEventType } from "./ops";
|
|
3
|
+
import type { VoiceIntegrationHTTPSinkOptions, VoiceIntegrationSink } from "./opsSinks";
|
|
4
4
|
type MaybePromise<T> = T | Promise<T>;
|
|
5
5
|
export type VoiceOpsWebhookLinkResolver = string | ((input: {
|
|
6
6
|
event: StoredVoiceIntegrationEvent;
|
|
@@ -32,9 +32,9 @@ export type VoiceOpsWebhookEnvelope = {
|
|
|
32
32
|
task?: string;
|
|
33
33
|
};
|
|
34
34
|
schemaVersion: 1;
|
|
35
|
-
source:
|
|
35
|
+
source: "absolutejs-voice";
|
|
36
36
|
};
|
|
37
|
-
export type VoiceOpsWebhookSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions<VoiceOpsWebhookEnvelope>,
|
|
37
|
+
export type VoiceOpsWebhookSinkOptions = Omit<VoiceIntegrationHTTPSinkOptions<VoiceOpsWebhookEnvelope>, "body"> & {
|
|
38
38
|
baseUrl?: string;
|
|
39
39
|
eventHref?: VoiceOpsWebhookLinkResolver;
|
|
40
40
|
replayHref?: VoiceOpsWebhookLinkResolver;
|
|
@@ -45,7 +45,7 @@ export type VoiceOpsWebhookVerificationResult = {
|
|
|
45
45
|
ok: true;
|
|
46
46
|
} | {
|
|
47
47
|
ok: false;
|
|
48
|
-
reason:
|
|
48
|
+
reason: "invalid-signature" | "missing-secret" | "missing-signature" | "missing-timestamp" | "stale-timestamp" | "unsupported-algorithm";
|
|
49
49
|
};
|
|
50
50
|
export type VoiceOpsWebhookReceiverRoutesOptions = {
|
|
51
51
|
onEnvelope?: (input: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { StoredVoiceHandoffDelivery, VoiceCallDisposition, VoiceHandoffAction, VoiceHandoffDeliveryStore, VoiceSessionRecord, VoiceSessionStore } from
|
|
3
|
-
import type { StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationEventType } from
|
|
4
|
-
import type { StoredVoiceCallReviewArtifact } from
|
|
5
|
-
export type VoiceOutcomeContractStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { StoredVoiceHandoffDelivery, VoiceCallDisposition, VoiceHandoffAction, VoiceHandoffDeliveryStore, VoiceSessionRecord, VoiceSessionStore } from "./types";
|
|
3
|
+
import type { StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationEventType } from "./ops";
|
|
4
|
+
import type { StoredVoiceCallReviewArtifact } from "./testing/review";
|
|
5
|
+
export type VoiceOutcomeContractStatus = "pass" | "fail";
|
|
6
6
|
export type VoiceOutcomeContractDefinition = {
|
|
7
7
|
description?: string;
|
|
8
8
|
expectedDisposition?: VoiceCallDisposition;
|
package/dist/outcomeRecipes.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { VoiceOpsTaskPriority } from
|
|
2
|
-
import type { VoiceRuntimeOpsConfig, VoiceSessionRecord } from
|
|
3
|
-
export type VoiceOutcomeRecipeName =
|
|
1
|
+
import type { VoiceOpsTaskPriority } from "./ops";
|
|
2
|
+
import type { VoiceRuntimeOpsConfig, VoiceSessionRecord } from "./types";
|
|
3
|
+
export type VoiceOutcomeRecipeName = "appointment-booking" | "lead-qualification" | "support-triage" | "voicemail-callback" | "warm-transfer";
|
|
4
4
|
export type VoiceOutcomeRecipeOptions = {
|
|
5
5
|
assignee?: string;
|
|
6
6
|
completedCreatesTask?: boolean;
|
|
@@ -11,7 +11,7 @@ export type VoiceOutcomeRecipeOptions = {
|
|
|
11
11
|
queue?: string;
|
|
12
12
|
target?: string;
|
|
13
13
|
};
|
|
14
|
-
export type VoiceOutcomeRecipe<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Pick<VoiceRuntimeOpsConfig<TContext, TSession, TResult>,
|
|
14
|
+
export type VoiceOutcomeRecipe<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = Pick<VoiceRuntimeOpsConfig<TContext, TSession, TResult>, "createTaskFromReview" | "resolveTaskPolicy" | "taskAssignmentRules" | "taskPolicies"> & {
|
|
15
15
|
description: string;
|
|
16
16
|
name: VoiceOutcomeRecipeName;
|
|
17
17
|
};
|
package/dist/phoneAgent.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import { type PlivoVoiceRoutesOptions } from
|
|
3
|
-
import { type TelnyxVoiceRoutesOptions } from
|
|
4
|
-
import { type TwilioVoiceRoutesOptions } from
|
|
5
|
-
import { type VoiceTelephonyCarrierMatrix, type VoiceTelephonyCarrierMatrixRoutesOptions } from
|
|
6
|
-
import { type VoicePhoneAgentProductionSmokeRoutesOptions } from
|
|
7
|
-
import { type VoiceCampaignDialerProofAssertionReport, type VoiceCampaignDialerProofProvider, type VoiceCampaignDialerProofReport } from
|
|
8
|
-
import type { VoiceTelephonyProvider } from
|
|
9
|
-
import type { VoicePhoneAgentProductionSmokeReport } from
|
|
10
|
-
import type { VoiceSessionRecord } from
|
|
11
|
-
export type VoicePhoneAgentLifecycleStage =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import { type PlivoVoiceRoutesOptions } from "./telephony/plivo";
|
|
3
|
+
import { type TelnyxVoiceRoutesOptions } from "./telephony/telnyx";
|
|
4
|
+
import { type TwilioVoiceRoutesOptions } from "./telephony/twilio";
|
|
5
|
+
import { type VoiceTelephonyCarrierMatrix, type VoiceTelephonyCarrierMatrixRoutesOptions } from "./telephony/matrix";
|
|
6
|
+
import { type VoicePhoneAgentProductionSmokeRoutesOptions } from "./phoneAgentProductionSmoke";
|
|
7
|
+
import { type VoiceCampaignDialerProofAssertionReport, type VoiceCampaignDialerProofProvider, type VoiceCampaignDialerProofReport } from "./campaignDialers";
|
|
8
|
+
import type { VoiceTelephonyProvider } from "./telephony/contract";
|
|
9
|
+
import type { VoicePhoneAgentProductionSmokeReport } from "./phoneAgentProductionSmoke";
|
|
10
|
+
import type { VoiceSessionRecord } from "./types";
|
|
11
|
+
export type VoicePhoneAgentLifecycleStage = "ringing" | "answered" | "media-started" | "transcript" | "assistant-response" | "transfer" | "voicemail" | "no-answer" | "completed" | "failed";
|
|
12
12
|
type VoicePhoneAgentCarrierBase = {
|
|
13
13
|
name?: string;
|
|
14
14
|
smokePath?: false | string;
|
|
@@ -16,20 +16,20 @@ type VoicePhoneAgentCarrierBase = {
|
|
|
16
16
|
};
|
|
17
17
|
export type VoicePhoneAgentTwilioCarrier<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = VoicePhoneAgentCarrierBase & {
|
|
18
18
|
options: TwilioVoiceRoutesOptions<TContext, TSession, TResult>;
|
|
19
|
-
provider:
|
|
19
|
+
provider: "twilio";
|
|
20
20
|
};
|
|
21
21
|
export type VoicePhoneAgentTelnyxCarrier<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = VoicePhoneAgentCarrierBase & {
|
|
22
22
|
options?: TelnyxVoiceRoutesOptions<TContext, TSession, TResult>;
|
|
23
|
-
provider:
|
|
23
|
+
provider: "telnyx";
|
|
24
24
|
};
|
|
25
25
|
export type VoicePhoneAgentPlivoCarrier<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = VoicePhoneAgentCarrierBase & {
|
|
26
26
|
options?: PlivoVoiceRoutesOptions<TContext, TSession, TResult>;
|
|
27
|
-
provider:
|
|
27
|
+
provider: "plivo";
|
|
28
28
|
};
|
|
29
29
|
export type VoicePhoneAgentCarrier<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = VoicePhoneAgentTwilioCarrier<TContext, TSession, TResult> | VoicePhoneAgentTelnyxCarrier<TContext, TSession, TResult> | VoicePhoneAgentPlivoCarrier<TContext, TSession, TResult>;
|
|
30
30
|
export type VoicePhoneAgentRoutesOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
31
31
|
carriers: readonly VoicePhoneAgentCarrier<TContext, TSession, TResult>[];
|
|
32
|
-
matrix?: false | Omit<VoiceTelephonyCarrierMatrixRoutesOptions,
|
|
32
|
+
matrix?: false | Omit<VoiceTelephonyCarrierMatrixRoutesOptions, "load">;
|
|
33
33
|
name?: string;
|
|
34
34
|
productionSmoke?: false | VoicePhoneAgentProductionSmokeRoutesOptions;
|
|
35
35
|
setup?: false | {
|
|
@@ -39,7 +39,7 @@ export type VoicePhoneAgentRoutesOptions<TContext = unknown, TSession extends Vo
|
|
|
39
39
|
};
|
|
40
40
|
export type VoicePhoneAgentCarrierSummary = {
|
|
41
41
|
name?: string;
|
|
42
|
-
provider:
|
|
42
|
+
provider: "plivo" | "telnyx" | "twilio";
|
|
43
43
|
setupPath?: false | string;
|
|
44
44
|
smokePath?: false | string;
|
|
45
45
|
};
|
|
@@ -48,10 +48,10 @@ export type VoicePhoneAgentSetupInstruction = {
|
|
|
48
48
|
answerUrl?: string;
|
|
49
49
|
carrierName: string;
|
|
50
50
|
issues: string[];
|
|
51
|
-
provider:
|
|
51
|
+
provider: "plivo" | "telnyx" | "twilio";
|
|
52
52
|
setupPath?: false | string;
|
|
53
53
|
smokePath?: false | string;
|
|
54
|
-
status:
|
|
54
|
+
status: "fail" | "pass" | "unknown" | "warn";
|
|
55
55
|
steps: string[];
|
|
56
56
|
streamUrl?: string;
|
|
57
57
|
webhookUrl?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from
|
|
3
|
-
import type { VoiceTelephonyContractReport, VoiceTelephonyProvider } from
|
|
4
|
-
export type VoicePhoneAgentProductionSmokeRequirement =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { StoredVoiceTraceEvent, VoiceTraceEventStore } from "./trace";
|
|
3
|
+
import type { VoiceTelephonyContractReport, VoiceTelephonyProvider } from "./telephony/contract";
|
|
4
|
+
export type VoicePhoneAgentProductionSmokeRequirement = "assistant-response" | "carrier-contract" | "fresh-trace" | "lifecycle-outcome" | "media-started" | "no-session-error" | "transcript";
|
|
5
5
|
export type VoicePhoneAgentProductionSmokeIssue = {
|
|
6
6
|
message: string;
|
|
7
7
|
requirement: VoicePhoneAgentProductionSmokeRequirement;
|
|
8
|
-
severity:
|
|
8
|
+
severity: "error" | "warning";
|
|
9
9
|
};
|
|
10
10
|
export type VoicePhoneAgentProductionSmokeReport<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = {
|
|
11
11
|
contract?: VoiceTelephonyContractReport<TProvider>;
|
|
@@ -42,7 +42,7 @@ export type VoicePhoneAgentProductionSmokeOptions<TProvider extends VoiceTelepho
|
|
|
42
42
|
store?: VoiceTraceEventStore;
|
|
43
43
|
traceId?: string;
|
|
44
44
|
};
|
|
45
|
-
export type VoicePhoneAgentProductionSmokeHandlerOptions<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = Omit<VoicePhoneAgentProductionSmokeOptions<TProvider>,
|
|
45
|
+
export type VoicePhoneAgentProductionSmokeHandlerOptions<TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider> = Omit<VoicePhoneAgentProductionSmokeOptions<TProvider>, "events" | "scenarioId" | "sessionId" | "traceId"> & {
|
|
46
46
|
getContract?: (input: {
|
|
47
47
|
query: Record<string, unknown>;
|
|
48
48
|
request: Request;
|
|
@@ -65,11 +65,11 @@ export declare const runVoicePhoneAgentProductionSmokeContract: <TProvider exten
|
|
|
65
65
|
export declare const renderVoicePhoneAgentProductionSmokeHTML: <TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider>(report: VoicePhoneAgentProductionSmokeReport<TProvider>, options?: {
|
|
66
66
|
title?: string;
|
|
67
67
|
}) => string;
|
|
68
|
-
export declare const createVoicePhoneAgentProductionSmokeJSONHandler: <TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider>(options: VoicePhoneAgentProductionSmokeHandlerOptions<TProvider>) => ({ query, request }: {
|
|
68
|
+
export declare const createVoicePhoneAgentProductionSmokeJSONHandler: <TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider>(options: VoicePhoneAgentProductionSmokeHandlerOptions<TProvider>) => ({ query, request, }: {
|
|
69
69
|
query: Record<string, unknown>;
|
|
70
70
|
request: Request;
|
|
71
71
|
}) => Promise<VoicePhoneAgentProductionSmokeReport<TProvider>>;
|
|
72
|
-
export declare const createVoicePhoneAgentProductionSmokeHTMLHandler: <TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider>(options: VoicePhoneAgentProductionSmokeHTMLHandlerOptions<TProvider>) => ({ query, request }: {
|
|
72
|
+
export declare const createVoicePhoneAgentProductionSmokeHTMLHandler: <TProvider extends VoiceTelephonyProvider = VoiceTelephonyProvider>(options: VoicePhoneAgentProductionSmokeHTMLHandlerOptions<TProvider>) => ({ query, request, }: {
|
|
73
73
|
query: Record<string, unknown>;
|
|
74
74
|
request: Request;
|
|
75
75
|
}) => Promise<Response>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
export type VoicePlatformCoverageStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
export type VoicePlatformCoverageStatus = "fail" | "missing" | "pass" | "stale";
|
|
3
3
|
export type VoicePlatformCoverageEvidence = {
|
|
4
4
|
method?: string;
|
|
5
5
|
name: string;
|
|
@@ -15,7 +15,7 @@ export type VoicePlatformCoverageSurface = {
|
|
|
15
15
|
missing?: number;
|
|
16
16
|
missingEvidence?: string[];
|
|
17
17
|
replacement: string;
|
|
18
|
-
status:
|
|
18
|
+
status: "fail" | "pass" | string;
|
|
19
19
|
surface: string;
|
|
20
20
|
};
|
|
21
21
|
export type VoicePlatformCoverageSummary = {
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { VoicePluginConfig, VoiceSessionRecord } from
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { VoicePluginConfig, VoiceSessionRecord } from "./types";
|
|
3
3
|
export declare const voice: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(config: VoicePluginConfig<TContext, TSession, TResult>) => Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Elysia } from
|
|
2
|
-
import type { StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationEventStore, VoiceOpsTaskKind, VoiceOpsTaskStore } from
|
|
3
|
-
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewStore } from
|
|
4
|
-
export type VoicePostCallAnalysisStatus =
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
import type { StoredVoiceIntegrationEvent, StoredVoiceOpsTask, VoiceIntegrationEventStore, VoiceOpsTaskKind, VoiceOpsTaskStore } from "./ops";
|
|
3
|
+
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewStore } from "./testing/review";
|
|
4
|
+
export type VoicePostCallAnalysisStatus = "fail" | "pass" | "warn";
|
|
5
5
|
export type VoicePostCallAnalysisFieldRequirement = {
|
|
6
6
|
label?: string;
|
|
7
7
|
path: string;
|
|
@@ -14,12 +14,12 @@ export type VoicePostCallAnalysisFieldResult = {
|
|
|
14
14
|
required: boolean;
|
|
15
15
|
value?: unknown;
|
|
16
16
|
};
|
|
17
|
-
export type VoicePostCallAnalysisIssueCode =
|
|
17
|
+
export type VoicePostCallAnalysisIssueCode = "voice.post_call_analysis.integration_failed" | "voice.post_call_analysis.integration_missing" | "voice.post_call_analysis.required_field_missing" | "voice.post_call_analysis.required_task_missing" | "voice.post_call_analysis.review_failed" | "voice.post_call_analysis.review_missing";
|
|
18
18
|
export type VoicePostCallAnalysisIssue = {
|
|
19
19
|
code: VoicePostCallAnalysisIssueCode;
|
|
20
20
|
detail?: string;
|
|
21
21
|
label: string;
|
|
22
|
-
severity: Exclude<VoicePostCallAnalysisStatus,
|
|
22
|
+
severity: Exclude<VoicePostCallAnalysisStatus, "pass">;
|
|
23
23
|
};
|
|
24
24
|
export type VoicePostCallAnalysisReport = {
|
|
25
25
|
checkedAt: number;
|
package/dist/postgresStore.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type StoredVoiceTraceEvent, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore, type VoiceTraceEventStore } from
|
|
2
|
-
import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from
|
|
3
|
-
import type { VoiceAuditSinkDeliveryRecord, VoiceAuditSinkDeliveryStore } from
|
|
4
|
-
import type { StoredVoiceIntegrationEvent, StoredVoiceExternalObjectMap, StoredVoiceOpsTask, VoiceExternalObjectMapStore, VoiceIntegrationEventStore, VoiceOpsTaskStore } from
|
|
5
|
-
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewStore } from
|
|
6
|
-
import type { VoiceTelephonyWebhookIdempotencyStore } from
|
|
7
|
-
import type { VoiceCampaignStore } from
|
|
8
|
-
import type { VoiceSessionRecord, VoiceSessionStore } from
|
|
1
|
+
import { type StoredVoiceTraceEvent, type VoiceTraceSinkDeliveryRecord, type VoiceTraceSinkDeliveryStore, type VoiceTraceEventStore } from "./trace";
|
|
2
|
+
import { type StoredVoiceAuditEvent, type VoiceAuditEventStore } from "./audit";
|
|
3
|
+
import type { VoiceAuditSinkDeliveryRecord, VoiceAuditSinkDeliveryStore } from "./auditSinks";
|
|
4
|
+
import type { StoredVoiceIntegrationEvent, StoredVoiceExternalObjectMap, StoredVoiceOpsTask, VoiceExternalObjectMapStore, VoiceIntegrationEventStore, VoiceOpsTaskStore } from "./ops";
|
|
5
|
+
import type { StoredVoiceCallReviewArtifact, VoiceCallReviewStore } from "./testing/review";
|
|
6
|
+
import type { VoiceTelephonyWebhookIdempotencyStore } from "./telephonyOutcome";
|
|
7
|
+
import type { VoiceCampaignStore } from "./campaign";
|
|
8
|
+
import type { VoiceSessionRecord, VoiceSessionStore } from "./types";
|
|
9
9
|
export type VoicePostgresClient = {
|
|
10
10
|
unsafe: <TRow extends Record<string, unknown> = Record<string, unknown>>(query: string, parameters?: unknown[]) => Promise<TRow[]>;
|
|
11
11
|
};
|
package/dist/presets.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { VoiceCaptureOptions, VoiceConnectionOptions, VoiceResolvedAudioConditioningConfig, VoiceResolvedTurnDetectionConfig, VoiceRuntimePreset, VoiceSTTLifecycle } from
|
|
1
|
+
import type { VoiceCaptureOptions, VoiceConnectionOptions, VoiceResolvedAudioConditioningConfig, VoiceResolvedTurnDetectionConfig, VoiceRuntimePreset, VoiceSTTLifecycle } from "./types";
|
|
2
2
|
export type VoiceResolvedRuntimePreset = {
|
|
3
3
|
audioConditioning?: VoiceResolvedAudioConditioningConfig;
|
|
4
4
|
capture: {
|
|
5
|
-
channelCount: NonNullable<VoiceCaptureOptions[
|
|
6
|
-
sampleRateHz: NonNullable<VoiceCaptureOptions[
|
|
5
|
+
channelCount: NonNullable<VoiceCaptureOptions["channelCount"]>;
|
|
6
|
+
sampleRateHz: NonNullable<VoiceCaptureOptions["sampleRateHz"]>;
|
|
7
7
|
};
|
|
8
8
|
connection: VoiceConnectionOptions;
|
|
9
9
|
name: VoiceRuntimePreset;
|