@absolutejs/voice 0.0.22-beta.35 → 0.0.22-beta.350
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 +3361 -55
- package/dist/agent.d.ts +62 -0
- package/dist/agentSquadContract.d.ts +98 -0
- package/dist/angular/index.d.ts +16 -0
- package/dist/angular/index.js +4240 -1128
- package/dist/angular/voice-agent-squad-status.service.d.ts +12 -0
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +14 -0
- package/dist/angular/voice-controller.service.d.ts +1 -0
- package/dist/angular/voice-delivery-runtime.component.d.ts +17 -0
- package/dist/angular/voice-delivery-runtime.service.d.ts +16 -0
- package/dist/angular/voice-live-ops.service.d.ts +11 -0
- package/dist/angular/voice-ops-action-center.service.d.ts +13 -0
- package/dist/angular/voice-ops-status.component.d.ts +15 -0
- package/dist/angular/voice-ops-status.service.d.ts +12 -0
- package/dist/angular/voice-platform-coverage.service.d.ts +12 -0
- package/dist/angular/voice-proof-trends.service.d.ts +12 -0
- package/dist/angular/voice-provider-capabilities.service.d.ts +12 -0
- package/dist/angular/voice-provider-contracts.service.d.ts +12 -0
- package/dist/angular/voice-readiness-failures.service.d.ts +13 -0
- package/dist/angular/voice-routing-status.service.d.ts +11 -0
- package/dist/angular/voice-stream.service.d.ts +1 -0
- package/dist/angular/voice-trace-timeline.service.d.ts +12 -0
- package/dist/angular/voice-turn-latency.service.d.ts +13 -0
- package/dist/angular/voice-turn-quality.service.d.ts +12 -0
- package/dist/angular/voice-workflow-status.service.d.ts +12 -0
- package/dist/audit.d.ts +128 -0
- package/dist/auditDeliveryRoutes.d.ts +85 -0
- package/dist/auditExport.d.ts +34 -0
- package/dist/auditRoutes.d.ts +66 -0
- package/dist/auditSinks.d.ts +151 -0
- package/dist/bargeInRoutes.d.ts +56 -0
- package/dist/browserCallProfiles.d.ts +120 -0
- package/dist/browserMediaRoutes.d.ts +62 -0
- package/dist/campaign.d.ts +768 -0
- package/dist/campaignDialers.d.ts +111 -0
- package/dist/client/actions.d.ts +83 -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/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 +937 -14
- package/dist/client/index.d.ts +72 -0
- package/dist/client/index.js +6895 -50
- package/dist/client/liveOps.d.ts +22 -0
- package/dist/client/liveOpsWidget.d.ts +23 -0
- package/dist/client/liveTurnLatency.d.ts +41 -0
- package/dist/client/opsActionCenter.d.ts +54 -0
- package/dist/client/opsActionCenterWidget.d.ts +29 -0
- package/dist/client/opsActionHistory.d.ts +19 -0
- package/dist/client/opsActionHistoryWidget.d.ts +11 -0
- package/dist/client/opsStatus.d.ts +19 -0
- package/dist/client/opsStatusWidget.d.ts +40 -0
- package/dist/client/platformCoverage.d.ts +19 -0
- package/dist/client/platformCoverageWidget.d.ts +37 -0
- package/dist/client/proofTrends.d.ts +19 -0
- package/dist/client/proofTrendsWidget.d.ts +37 -0
- package/dist/client/providerCapabilities.d.ts +19 -0
- package/dist/client/providerCapabilitiesWidget.d.ts +32 -0
- package/dist/client/providerContracts.d.ts +19 -0
- package/dist/client/providerContractsWidget.d.ts +37 -0
- package/dist/client/providerSimulationControls.d.ts +33 -0
- package/dist/client/providerSimulationControlsWidget.d.ts +20 -0
- package/dist/client/providerStatusWidget.d.ts +32 -0
- package/dist/client/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 +28 -0
- package/dist/client/traceTimeline.d.ts +19 -0
- package/dist/client/traceTimelineWidget.d.ts +36 -0
- package/dist/client/turnLatency.d.ts +22 -0
- package/dist/client/turnLatencyWidget.d.ts +33 -0
- package/dist/client/turnQuality.d.ts +19 -0
- package/dist/client/turnQualityWidget.d.ts +32 -0
- package/dist/client/workflowStatus.d.ts +19 -0
- package/dist/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/diagnosticsRoutes.d.ts +44 -0
- package/dist/evalRoutes.d.ts +219 -0
- package/dist/fileStore.d.ts +14 -2
- package/dist/guardrails.d.ts +128 -0
- package/dist/incidentBundle.d.ts +116 -0
- package/dist/index.d.ts +151 -14
- package/dist/index.js +31035 -5610
- 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 +481 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/operationsRecord.d.ts +351 -0
- package/dist/opsActionAuditRoutes.d.ts +99 -0
- package/dist/opsConsoleRoutes.d.ts +80 -0
- package/dist/opsRecovery.d.ts +137 -0
- package/dist/opsStatus.d.ts +76 -0
- package/dist/opsStatusRoutes.d.ts +33 -0
- package/dist/outcomeContract.d.ts +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 +615 -0
- package/dist/proofTrends.d.ts +469 -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/providerRoutingContract.d.ts +71 -0
- package/dist/providerSlo.d.ts +142 -0
- package/dist/providerStackRecommendations.d.ts +187 -0
- package/dist/qualityRoutes.d.ts +76 -0
- package/dist/queue.d.ts +9 -0
- package/dist/react/VoiceAgentSquadStatus.d.ts +5 -0
- package/dist/react/VoiceDeliveryRuntime.d.ts +7 -0
- package/dist/react/VoiceOpsActionCenter.d.ts +5 -0
- package/dist/react/VoiceOpsStatus.d.ts +6 -0
- package/dist/react/VoicePlatformCoverage.d.ts +6 -0
- package/dist/react/VoiceProofTrends.d.ts +6 -0
- package/dist/react/VoiceProviderCapabilities.d.ts +6 -0
- package/dist/react/VoiceProviderContracts.d.ts +6 -0
- package/dist/react/VoiceProviderSimulationControls.d.ts +5 -0
- package/dist/react/VoiceProviderStatus.d.ts +6 -0
- package/dist/react/VoiceReadinessFailures.d.ts +6 -0
- package/dist/react/VoiceRoutingStatus.d.ts +6 -0
- package/dist/react/VoiceTraceTimeline.d.ts +6 -0
- package/dist/react/VoiceTurnLatency.d.ts +6 -0
- package/dist/react/VoiceTurnQuality.d.ts +6 -0
- package/dist/react/index.d.ts +32 -0
- package/dist/react/index.js +6665 -31
- package/dist/react/useVoiceAgentSquadStatus.d.ts +8 -0
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +1 -0
- package/dist/react/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/react/useVoiceLiveOps.d.ts +9 -0
- package/dist/react/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/react/useVoiceOpsStatus.d.ts +8 -0
- package/dist/react/useVoicePlatformCoverage.d.ts +8 -0
- package/dist/react/useVoiceProofTrends.d.ts +8 -0
- package/dist/react/useVoiceProviderCapabilities.d.ts +8 -0
- package/dist/react/useVoiceProviderContracts.d.ts +8 -0
- package/dist/react/useVoiceProviderSimulationControls.d.ts +10 -0
- package/dist/react/useVoiceReadinessFailures.d.ts +8 -0
- package/dist/react/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/react/useVoiceStream.d.ts +1 -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 +143 -0
- package/dist/sessionReplay.d.ts +12 -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/createVoiceCampaignDialerProof.d.ts +9 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +11 -0
- package/dist/svelte/createVoiceLiveOps.d.ts +13 -0
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +10 -0
- package/dist/svelte/createVoiceOpsStatus.d.ts +9 -0
- package/dist/svelte/createVoicePlatformCoverage.d.ts +7 -0
- package/dist/svelte/createVoiceProofTrends.d.ts +7 -0
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +10 -0
- package/dist/svelte/createVoiceProviderContracts.d.ts +10 -0
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +11 -0
- package/dist/svelte/createVoiceProviderStatus.d.ts +4 -2
- package/dist/svelte/createVoiceReadinessFailures.d.ts +7 -0
- package/dist/svelte/createVoiceRoutingStatus.d.ts +10 -0
- package/dist/svelte/createVoiceTraceTimeline.d.ts +10 -0
- package/dist/svelte/createVoiceTurnLatency.d.ts +11 -0
- package/dist/svelte/createVoiceTurnQuality.d.ts +10 -0
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +8 -0
- package/dist/svelte/index.d.ts +17 -0
- package/dist/svelte/index.js +5666 -420
- 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 +5242 -192
- package/dist/testing/ioProviderSimulator.d.ts +5 -1
- 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 +19 -1
- package/dist/traceDeliveryRoutes.d.ts +86 -0
- package/dist/traceTimeline.d.ts +97 -0
- package/dist/turnLatency.d.ts +95 -0
- package/dist/turnQuality.d.ts +94 -0
- package/dist/types.d.ts +118 -3
- package/dist/voiceMonitoring.d.ts +444 -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/VoiceTurnLatency.d.ts +69 -0
- package/dist/vue/VoiceTurnQuality.d.ts +51 -0
- package/dist/vue/index.d.ts +30 -0
- package/dist/vue/index.js +6434 -56
- package/dist/vue/useVoiceAgentSquadStatus.d.ts +9 -0
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +11 -0
- package/dist/vue/useVoiceController.d.ts +2 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/vue/useVoiceLiveOps.d.ts +9 -0
- package/dist/vue/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/vue/useVoiceOpsStatus.d.ts +9 -0
- package/dist/vue/useVoicePlatformCoverage.d.ts +9 -0
- package/dist/vue/useVoiceProofTrends.d.ts +9 -0
- package/dist/vue/useVoiceProviderCapabilities.d.ts +9 -0
- package/dist/vue/useVoiceProviderContracts.d.ts +9 -0
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +24 -0
- package/dist/vue/useVoiceProviderStatus.d.ts +1 -1
- package/dist/vue/useVoiceReadinessFailures.d.ts +873 -0
- package/dist/vue/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceStream.d.ts +2 -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,111 @@
|
|
|
1
|
+
import { applyVoiceCampaignTelephonyOutcome, VoiceCampaignDialer, VoiceCampaignDialerInput, type VoiceCampaignRecord, type VoiceCampaignStore, type VoiceCampaignTickResult } from './campaign';
|
|
2
|
+
type VoiceCampaignDialerFetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
|
|
3
|
+
type VoiceCampaignDialerMetadataInput = VoiceCampaignDialerInput & {
|
|
4
|
+
provider: 'plivo' | 'telnyx' | 'twilio';
|
|
5
|
+
};
|
|
6
|
+
type VoiceCampaignDialerMetadata = Record<string, string | number | boolean | undefined> | ((input: VoiceCampaignDialerMetadataInput) => Record<string, string | number | boolean | undefined> | Promise<Record<string, string | number | boolean | undefined>>);
|
|
7
|
+
type VoiceCampaignURLInput = {
|
|
8
|
+
attempt: VoiceCampaignDialerInput['attempt'];
|
|
9
|
+
campaign: VoiceCampaignDialerInput['campaign'];
|
|
10
|
+
recipient: VoiceCampaignDialerInput['recipient'];
|
|
11
|
+
};
|
|
12
|
+
type VoiceCampaignURLResolver = string | ((input: VoiceCampaignURLInput) => string | Promise<string>);
|
|
13
|
+
export type VoiceTwilioCampaignDialerOptions = {
|
|
14
|
+
accountSid: string;
|
|
15
|
+
answerMethod?: 'GET' | 'POST';
|
|
16
|
+
answerUrl: VoiceCampaignURLResolver;
|
|
17
|
+
apiBaseUrl?: string;
|
|
18
|
+
authToken: string;
|
|
19
|
+
fetch?: VoiceCampaignDialerFetch;
|
|
20
|
+
from: string;
|
|
21
|
+
machineDetection?: string;
|
|
22
|
+
metadata?: VoiceCampaignDialerMetadata;
|
|
23
|
+
statusCallbackEvents?: string[];
|
|
24
|
+
statusCallbackMethod?: 'GET' | 'POST';
|
|
25
|
+
statusCallbackUrl?: VoiceCampaignURLResolver;
|
|
26
|
+
};
|
|
27
|
+
export type VoiceTelnyxCampaignDialerOptions = {
|
|
28
|
+
apiBaseUrl?: string;
|
|
29
|
+
apiKey: string;
|
|
30
|
+
clientState?: VoiceCampaignDialerMetadata;
|
|
31
|
+
connectionId: string;
|
|
32
|
+
fetch?: VoiceCampaignDialerFetch;
|
|
33
|
+
from: string;
|
|
34
|
+
webhookUrl?: VoiceCampaignURLResolver;
|
|
35
|
+
webhookUrlMethod?: 'GET' | 'POST';
|
|
36
|
+
};
|
|
37
|
+
export type VoicePlivoCampaignDialerOptions = {
|
|
38
|
+
answerMethod?: 'GET' | 'POST';
|
|
39
|
+
answerUrl: VoiceCampaignURLResolver;
|
|
40
|
+
apiBaseUrl?: string;
|
|
41
|
+
authId: string;
|
|
42
|
+
authToken: string;
|
|
43
|
+
callbackMethod?: 'GET' | 'POST';
|
|
44
|
+
callbackUrl?: VoiceCampaignURLResolver;
|
|
45
|
+
fetch?: VoiceCampaignDialerFetch;
|
|
46
|
+
from: string;
|
|
47
|
+
metadata?: VoiceCampaignDialerMetadata;
|
|
48
|
+
};
|
|
49
|
+
export type VoiceCampaignDialerProofProvider = 'plivo' | 'telnyx' | 'twilio';
|
|
50
|
+
export type VoiceCampaignDialerProofCarrierRequest = {
|
|
51
|
+
body: unknown;
|
|
52
|
+
method: string;
|
|
53
|
+
provider: VoiceCampaignDialerProofProvider;
|
|
54
|
+
url: string;
|
|
55
|
+
};
|
|
56
|
+
export type VoiceCampaignDialerProofProviderResult = {
|
|
57
|
+
campaignId: string;
|
|
58
|
+
carrierRequests: VoiceCampaignDialerProofCarrierRequest[];
|
|
59
|
+
final?: VoiceCampaignRecord;
|
|
60
|
+
outcomes: Awaited<ReturnType<typeof applyVoiceCampaignTelephonyOutcome>>[];
|
|
61
|
+
provider: VoiceCampaignDialerProofProvider;
|
|
62
|
+
tick: VoiceCampaignTickResult;
|
|
63
|
+
};
|
|
64
|
+
export type VoiceCampaignDialerProofReport = {
|
|
65
|
+
generatedAt: number;
|
|
66
|
+
mode: 'dry-run';
|
|
67
|
+
ok: boolean;
|
|
68
|
+
providers: VoiceCampaignDialerProofProviderResult[];
|
|
69
|
+
};
|
|
70
|
+
export type VoiceCampaignDialerProofStatus = {
|
|
71
|
+
generatedAt: number;
|
|
72
|
+
mode: 'dry-run';
|
|
73
|
+
ok: boolean;
|
|
74
|
+
providers: VoiceCampaignDialerProofProvider[];
|
|
75
|
+
runPath?: string;
|
|
76
|
+
safe: true;
|
|
77
|
+
};
|
|
78
|
+
export type VoiceCampaignDialerProofOptions = {
|
|
79
|
+
baseUrl?: string;
|
|
80
|
+
from?: string;
|
|
81
|
+
providers?: VoiceCampaignDialerProofProvider[];
|
|
82
|
+
runPath?: string;
|
|
83
|
+
store?: VoiceCampaignStore;
|
|
84
|
+
};
|
|
85
|
+
export type VoiceCampaignDialerProofAssertionInput = {
|
|
86
|
+
maxFailedProviders?: number;
|
|
87
|
+
minCarrierRequests?: number;
|
|
88
|
+
minProviders?: number;
|
|
89
|
+
minSuccessfulOutcomes?: number;
|
|
90
|
+
requiredProviders?: VoiceCampaignDialerProofProvider[];
|
|
91
|
+
requireDryRun?: boolean;
|
|
92
|
+
requireOk?: boolean;
|
|
93
|
+
};
|
|
94
|
+
export type VoiceCampaignDialerProofAssertionReport = {
|
|
95
|
+
carrierRequests: number;
|
|
96
|
+
failedProviders: number;
|
|
97
|
+
issues: string[];
|
|
98
|
+
mode: VoiceCampaignDialerProofReport['mode'];
|
|
99
|
+
ok: boolean;
|
|
100
|
+
providers: VoiceCampaignDialerProofProvider[];
|
|
101
|
+
successfulOutcomes: number;
|
|
102
|
+
totalProviders: number;
|
|
103
|
+
};
|
|
104
|
+
export declare const createVoiceTwilioCampaignDialer: (options: VoiceTwilioCampaignDialerOptions) => VoiceCampaignDialer;
|
|
105
|
+
export declare const createVoiceTelnyxCampaignDialer: (options: VoiceTelnyxCampaignDialerOptions) => VoiceCampaignDialer;
|
|
106
|
+
export declare const createVoicePlivoCampaignDialer: (options: VoicePlivoCampaignDialerOptions) => VoiceCampaignDialer;
|
|
107
|
+
export declare const getVoiceCampaignDialerProofStatus: (options?: Pick<VoiceCampaignDialerProofOptions, "providers" | "runPath">) => VoiceCampaignDialerProofStatus;
|
|
108
|
+
export declare const runVoiceCampaignDialerProof: (options?: VoiceCampaignDialerProofOptions) => Promise<VoiceCampaignDialerProofReport>;
|
|
109
|
+
export declare const evaluateVoiceCampaignDialerProofEvidence: (report: VoiceCampaignDialerProofReport, input?: VoiceCampaignDialerProofAssertionInput) => VoiceCampaignDialerProofAssertionReport;
|
|
110
|
+
export declare const assertVoiceCampaignDialerProofEvidence: (report: VoiceCampaignDialerProofReport, input?: VoiceCampaignDialerProofAssertionInput) => VoiceCampaignDialerProofAssertionReport;
|
|
111
|
+
export {};
|
package/dist/client/actions.d.ts
CHANGED
|
@@ -7,11 +7,16 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
7
7
|
type: "audio";
|
|
8
8
|
text?: undefined;
|
|
9
9
|
sessionId?: undefined;
|
|
10
|
+
reconnect?: undefined;
|
|
10
11
|
event?: undefined;
|
|
11
12
|
message?: undefined;
|
|
12
13
|
transcript?: undefined;
|
|
14
|
+
assistantTexts?: undefined;
|
|
15
|
+
call?: undefined;
|
|
16
|
+
partial?: undefined;
|
|
13
17
|
scenarioId?: undefined;
|
|
14
18
|
status?: undefined;
|
|
19
|
+
turns?: undefined;
|
|
15
20
|
turn?: undefined;
|
|
16
21
|
} | {
|
|
17
22
|
text: string;
|
|
@@ -21,11 +26,16 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
21
26
|
receivedAt?: undefined;
|
|
22
27
|
turnId?: undefined;
|
|
23
28
|
sessionId?: undefined;
|
|
29
|
+
reconnect?: undefined;
|
|
24
30
|
event?: undefined;
|
|
25
31
|
message?: undefined;
|
|
26
32
|
transcript?: undefined;
|
|
33
|
+
assistantTexts?: undefined;
|
|
34
|
+
call?: undefined;
|
|
35
|
+
partial?: undefined;
|
|
27
36
|
scenarioId?: undefined;
|
|
28
37
|
status?: undefined;
|
|
38
|
+
turns?: undefined;
|
|
29
39
|
turn?: undefined;
|
|
30
40
|
} | {
|
|
31
41
|
sessionId: string;
|
|
@@ -35,11 +45,35 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
35
45
|
receivedAt?: undefined;
|
|
36
46
|
turnId?: undefined;
|
|
37
47
|
text?: undefined;
|
|
48
|
+
reconnect?: undefined;
|
|
38
49
|
event?: undefined;
|
|
39
50
|
message?: undefined;
|
|
40
51
|
transcript?: undefined;
|
|
52
|
+
assistantTexts?: undefined;
|
|
53
|
+
call?: undefined;
|
|
54
|
+
partial?: undefined;
|
|
41
55
|
scenarioId?: undefined;
|
|
42
56
|
status?: undefined;
|
|
57
|
+
turns?: undefined;
|
|
58
|
+
turn?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
reconnect: import("..").VoiceReconnectClientState;
|
|
61
|
+
type: "connection";
|
|
62
|
+
chunk?: undefined;
|
|
63
|
+
format?: undefined;
|
|
64
|
+
receivedAt?: undefined;
|
|
65
|
+
turnId?: undefined;
|
|
66
|
+
text?: undefined;
|
|
67
|
+
sessionId?: undefined;
|
|
68
|
+
event?: undefined;
|
|
69
|
+
message?: undefined;
|
|
70
|
+
transcript?: undefined;
|
|
71
|
+
assistantTexts?: undefined;
|
|
72
|
+
call?: undefined;
|
|
73
|
+
partial?: undefined;
|
|
74
|
+
scenarioId?: undefined;
|
|
75
|
+
status?: undefined;
|
|
76
|
+
turns?: undefined;
|
|
43
77
|
turn?: undefined;
|
|
44
78
|
} | {
|
|
45
79
|
event: import("..").VoiceCallLifecycleEvent;
|
|
@@ -50,10 +84,15 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
50
84
|
receivedAt?: undefined;
|
|
51
85
|
turnId?: undefined;
|
|
52
86
|
text?: undefined;
|
|
87
|
+
reconnect?: undefined;
|
|
53
88
|
message?: undefined;
|
|
54
89
|
transcript?: undefined;
|
|
90
|
+
assistantTexts?: undefined;
|
|
91
|
+
call?: undefined;
|
|
92
|
+
partial?: undefined;
|
|
55
93
|
scenarioId?: undefined;
|
|
56
94
|
status?: undefined;
|
|
95
|
+
turns?: undefined;
|
|
57
96
|
turn?: undefined;
|
|
58
97
|
} | {
|
|
59
98
|
message: string;
|
|
@@ -64,10 +103,15 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
64
103
|
turnId?: undefined;
|
|
65
104
|
text?: undefined;
|
|
66
105
|
sessionId?: undefined;
|
|
106
|
+
reconnect?: undefined;
|
|
67
107
|
event?: undefined;
|
|
68
108
|
transcript?: undefined;
|
|
109
|
+
assistantTexts?: undefined;
|
|
110
|
+
call?: undefined;
|
|
111
|
+
partial?: undefined;
|
|
69
112
|
scenarioId?: undefined;
|
|
70
113
|
status?: undefined;
|
|
114
|
+
turns?: undefined;
|
|
71
115
|
turn?: undefined;
|
|
72
116
|
} | {
|
|
73
117
|
transcript: import("..").Transcript;
|
|
@@ -78,10 +122,15 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
78
122
|
turnId?: undefined;
|
|
79
123
|
text?: undefined;
|
|
80
124
|
sessionId?: undefined;
|
|
125
|
+
reconnect?: undefined;
|
|
81
126
|
event?: undefined;
|
|
82
127
|
message?: undefined;
|
|
128
|
+
assistantTexts?: undefined;
|
|
129
|
+
call?: undefined;
|
|
130
|
+
partial?: undefined;
|
|
83
131
|
scenarioId?: undefined;
|
|
84
132
|
status?: undefined;
|
|
133
|
+
turns?: undefined;
|
|
85
134
|
turn?: undefined;
|
|
86
135
|
} | {
|
|
87
136
|
transcript: import("..").Transcript;
|
|
@@ -92,10 +141,34 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
92
141
|
turnId?: undefined;
|
|
93
142
|
text?: undefined;
|
|
94
143
|
sessionId?: undefined;
|
|
144
|
+
reconnect?: undefined;
|
|
95
145
|
event?: undefined;
|
|
96
146
|
message?: undefined;
|
|
147
|
+
assistantTexts?: undefined;
|
|
148
|
+
call?: undefined;
|
|
149
|
+
partial?: undefined;
|
|
97
150
|
scenarioId?: undefined;
|
|
98
151
|
status?: undefined;
|
|
152
|
+
turns?: undefined;
|
|
153
|
+
turn?: undefined;
|
|
154
|
+
} | {
|
|
155
|
+
assistantTexts: string[];
|
|
156
|
+
call: import("..").VoiceCallLifecycleState | undefined;
|
|
157
|
+
partial: string;
|
|
158
|
+
scenarioId: string | undefined;
|
|
159
|
+
sessionId: string;
|
|
160
|
+
status: import("..").VoiceSessionStatus;
|
|
161
|
+
turns: import("..").VoiceTurnRecord<TResult>[];
|
|
162
|
+
type: "replay";
|
|
163
|
+
chunk?: undefined;
|
|
164
|
+
format?: undefined;
|
|
165
|
+
receivedAt?: undefined;
|
|
166
|
+
turnId?: undefined;
|
|
167
|
+
text?: undefined;
|
|
168
|
+
reconnect?: undefined;
|
|
169
|
+
event?: undefined;
|
|
170
|
+
message?: undefined;
|
|
171
|
+
transcript?: undefined;
|
|
99
172
|
turn?: undefined;
|
|
100
173
|
} | {
|
|
101
174
|
sessionId: string;
|
|
@@ -107,9 +180,14 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
107
180
|
receivedAt?: undefined;
|
|
108
181
|
turnId?: undefined;
|
|
109
182
|
text?: undefined;
|
|
183
|
+
reconnect?: undefined;
|
|
110
184
|
event?: undefined;
|
|
111
185
|
message?: undefined;
|
|
112
186
|
transcript?: undefined;
|
|
187
|
+
assistantTexts?: undefined;
|
|
188
|
+
call?: undefined;
|
|
189
|
+
partial?: undefined;
|
|
190
|
+
turns?: undefined;
|
|
113
191
|
turn?: undefined;
|
|
114
192
|
} | {
|
|
115
193
|
turn: import("..").VoiceTurnRecord<TResult>;
|
|
@@ -120,9 +198,14 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
120
198
|
turnId?: undefined;
|
|
121
199
|
text?: undefined;
|
|
122
200
|
sessionId?: undefined;
|
|
201
|
+
reconnect?: undefined;
|
|
123
202
|
event?: undefined;
|
|
124
203
|
message?: undefined;
|
|
125
204
|
transcript?: undefined;
|
|
205
|
+
assistantTexts?: undefined;
|
|
206
|
+
call?: undefined;
|
|
207
|
+
partial?: undefined;
|
|
126
208
|
scenarioId?: undefined;
|
|
127
209
|
status?: undefined;
|
|
210
|
+
turns?: undefined;
|
|
128
211
|
} | null;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { VoiceTraceTimelineReport } from '../traceTimeline';
|
|
2
|
+
import { type VoiceTraceTimelineClientOptions } from './traceTimeline';
|
|
3
|
+
export type VoiceAgentSquadSpecialistStatus = 'active' | 'blocked' | 'handoff' | 'idle' | 'unknown-target';
|
|
4
|
+
export type VoiceAgentSquadSpecialist = {
|
|
5
|
+
fromAgentId?: string;
|
|
6
|
+
lastEventAt?: number;
|
|
7
|
+
reason?: string;
|
|
8
|
+
sessionId: string;
|
|
9
|
+
status: VoiceAgentSquadSpecialistStatus;
|
|
10
|
+
summary?: string;
|
|
11
|
+
targetAgentId?: string;
|
|
12
|
+
turnId?: string;
|
|
13
|
+
};
|
|
14
|
+
export type VoiceAgentSquadStatusReport = {
|
|
15
|
+
active: VoiceAgentSquadSpecialist[];
|
|
16
|
+
checkedAt?: number;
|
|
17
|
+
current?: VoiceAgentSquadSpecialist;
|
|
18
|
+
sessionCount: number;
|
|
19
|
+
sessions: VoiceAgentSquadSpecialist[];
|
|
20
|
+
};
|
|
21
|
+
export type VoiceAgentSquadStatusSnapshot = {
|
|
22
|
+
error: string | null;
|
|
23
|
+
isLoading: boolean;
|
|
24
|
+
report: VoiceAgentSquadStatusReport;
|
|
25
|
+
updatedAt?: number;
|
|
26
|
+
};
|
|
27
|
+
export type VoiceAgentSquadStatusClientOptions = VoiceTraceTimelineClientOptions & {
|
|
28
|
+
sessionId?: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const buildVoiceAgentSquadStatusReport: (timeline: VoiceTraceTimelineReport | null | undefined, options?: Pick<VoiceAgentSquadStatusClientOptions, "sessionId">) => VoiceAgentSquadStatusReport;
|
|
31
|
+
export declare const createVoiceAgentSquadStatusStore: (path?: string, options?: VoiceAgentSquadStatusClientOptions) => {
|
|
32
|
+
close: () => void;
|
|
33
|
+
getServerSnapshot: () => VoiceAgentSquadStatusSnapshot;
|
|
34
|
+
getSnapshot: () => VoiceAgentSquadStatusSnapshot;
|
|
35
|
+
refresh: () => Promise<VoiceTraceTimelineReport | null>;
|
|
36
|
+
subscribe: (listener: () => void) => () => void;
|
|
37
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type VoiceAgentSquadSpecialist, type VoiceAgentSquadStatusClientOptions, type VoiceAgentSquadStatusSnapshot } from './agentSquadStatus';
|
|
2
|
+
export type VoiceAgentSquadStatusViewModel = {
|
|
3
|
+
current?: VoiceAgentSquadSpecialist;
|
|
4
|
+
description: string;
|
|
5
|
+
error: string | null;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
label: string;
|
|
8
|
+
sessionCount: number;
|
|
9
|
+
sessions: VoiceAgentSquadSpecialist[];
|
|
10
|
+
title: string;
|
|
11
|
+
updatedAt?: number;
|
|
12
|
+
};
|
|
13
|
+
export type VoiceAgentSquadStatusWidgetOptions = VoiceAgentSquadStatusClientOptions & {
|
|
14
|
+
description?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const createVoiceAgentSquadStatusViewModel: (snapshot: VoiceAgentSquadStatusSnapshot, options?: VoiceAgentSquadStatusWidgetOptions) => VoiceAgentSquadStatusViewModel;
|
|
18
|
+
export declare const renderVoiceAgentSquadStatusHTML: (snapshot: VoiceAgentSquadStatusSnapshot, options?: VoiceAgentSquadStatusWidgetOptions) => string;
|
|
19
|
+
export declare const getVoiceAgentSquadStatusCSS: () => string;
|
|
20
|
+
export declare const mountVoiceAgentSquadStatus: (element: Element | null, path?: string, options?: VoiceAgentSquadStatusWidgetOptions) => {
|
|
21
|
+
close: () => void;
|
|
22
|
+
refresh: () => Promise<import("..").VoiceTraceTimelineReport | null>;
|
|
23
|
+
};
|
|
24
|
+
export declare const defineVoiceAgentSquadStatusElement: (tagName?: string, options?: VoiceAgentSquadStatusWidgetOptions) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VoiceBargeInMonitor } from '../types';
|
|
2
|
+
export type VoiceBargeInMonitorOptions = {
|
|
3
|
+
fetch?: typeof fetch;
|
|
4
|
+
path?: string;
|
|
5
|
+
thresholdMs?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const createVoiceBargeInMonitor: (options?: VoiceBargeInMonitorOptions) => VoiceBargeInMonitor;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VoiceBrowserMediaReporterOptions, VoiceBrowserMediaReportPayload } from '../types';
|
|
2
|
+
export type VoiceBrowserMediaReporter = {
|
|
3
|
+
close: () => void;
|
|
4
|
+
reportOnce: () => Promise<VoiceBrowserMediaReportPayload | undefined>;
|
|
5
|
+
start: () => void;
|
|
6
|
+
stop: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const createVoiceBrowserMediaReporter: (options: VoiceBrowserMediaReporterOptions) => VoiceBrowserMediaReporter;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { VoiceCampaignDialerProofReport, VoiceCampaignDialerProofStatus } from '../campaignDialers';
|
|
2
|
+
export type VoiceCampaignDialerProofClientOptions = {
|
|
3
|
+
fetch?: typeof fetch;
|
|
4
|
+
intervalMs?: number;
|
|
5
|
+
runPath?: string;
|
|
6
|
+
};
|
|
7
|
+
export type VoiceCampaignDialerProofSnapshot = {
|
|
8
|
+
error: string | null;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
report?: VoiceCampaignDialerProofReport;
|
|
11
|
+
status?: VoiceCampaignDialerProofStatus;
|
|
12
|
+
updatedAt?: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const fetchVoiceCampaignDialerProofStatus: (path?: string, options?: Pick<VoiceCampaignDialerProofClientOptions, "fetch">) => Promise<VoiceCampaignDialerProofStatus>;
|
|
15
|
+
export declare const runVoiceCampaignDialerProofAction: (path?: string, options?: Pick<VoiceCampaignDialerProofClientOptions, "fetch">) => Promise<VoiceCampaignDialerProofReport>;
|
|
16
|
+
export declare const createVoiceCampaignDialerProofStore: (path?: string, options?: VoiceCampaignDialerProofClientOptions) => {
|
|
17
|
+
close: () => void;
|
|
18
|
+
getServerSnapshot: () => VoiceCampaignDialerProofSnapshot;
|
|
19
|
+
getSnapshot: () => VoiceCampaignDialerProofSnapshot;
|
|
20
|
+
refresh: () => Promise<VoiceCampaignDialerProofStatus | undefined>;
|
|
21
|
+
runProof: () => Promise<VoiceCampaignDialerProofReport>;
|
|
22
|
+
subscribe: (listener: () => void) => () => void;
|
|
23
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { VoiceDeliveryRuntimeReport } from '../deliveryRuntime';
|
|
2
|
+
export type VoiceDeliveryRuntimeClientOptions = {
|
|
3
|
+
fetch?: typeof fetch;
|
|
4
|
+
intervalMs?: number;
|
|
5
|
+
requeueDeadLettersPath?: string;
|
|
6
|
+
tickPath?: string;
|
|
7
|
+
};
|
|
8
|
+
export type VoiceDeliveryRuntimeSnapshot = {
|
|
9
|
+
actionError: string | null;
|
|
10
|
+
actionStatus: 'idle' | 'running' | 'completed' | 'failed';
|
|
11
|
+
error: string | null;
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
lastAction?: VoiceDeliveryRuntimeActionResult;
|
|
14
|
+
report?: VoiceDeliveryRuntimeReport;
|
|
15
|
+
updatedAt?: number;
|
|
16
|
+
};
|
|
17
|
+
export type VoiceDeliveryRuntimeAction = 'tick' | 'requeue-dead-letters';
|
|
18
|
+
export type VoiceDeliveryRuntimeActionResult = {
|
|
19
|
+
action: VoiceDeliveryRuntimeAction;
|
|
20
|
+
result?: unknown;
|
|
21
|
+
summary?: VoiceDeliveryRuntimeReport['summary'];
|
|
22
|
+
updatedAt: number;
|
|
23
|
+
};
|
|
24
|
+
export declare const fetchVoiceDeliveryRuntime: (path?: string, options?: Pick<VoiceDeliveryRuntimeClientOptions, "fetch">) => Promise<VoiceDeliveryRuntimeReport>;
|
|
25
|
+
export declare const runVoiceDeliveryRuntimeAction: (action: VoiceDeliveryRuntimeAction, path?: string, options?: VoiceDeliveryRuntimeClientOptions) => Promise<VoiceDeliveryRuntimeActionResult>;
|
|
26
|
+
export declare const createVoiceDeliveryRuntimeStore: (path?: string, options?: VoiceDeliveryRuntimeClientOptions) => {
|
|
27
|
+
close: () => void;
|
|
28
|
+
getServerSnapshot: () => VoiceDeliveryRuntimeSnapshot;
|
|
29
|
+
getSnapshot: () => VoiceDeliveryRuntimeSnapshot;
|
|
30
|
+
requeueDeadLetters: () => Promise<VoiceDeliveryRuntimeActionResult | undefined>;
|
|
31
|
+
refresh: () => Promise<VoiceDeliveryRuntimeReport | undefined>;
|
|
32
|
+
tick: () => Promise<VoiceDeliveryRuntimeActionResult | undefined>;
|
|
33
|
+
subscribe: (listener: () => void) => () => void;
|
|
34
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type VoiceDeliveryRuntimeClientOptions, type VoiceDeliveryRuntimeSnapshot } from './deliveryRuntime';
|
|
2
|
+
export type VoiceDeliveryRuntimeSurfaceView = {
|
|
3
|
+
deadLettered: number;
|
|
4
|
+
detail: string;
|
|
5
|
+
failed: number;
|
|
6
|
+
id: 'audit' | 'trace';
|
|
7
|
+
label: string;
|
|
8
|
+
pending: number;
|
|
9
|
+
status: 'pass' | 'warn' | 'disabled';
|
|
10
|
+
total: number;
|
|
11
|
+
};
|
|
12
|
+
export type VoiceDeliveryRuntimeViewModel = {
|
|
13
|
+
description: string;
|
|
14
|
+
error: string | null;
|
|
15
|
+
actionError: string | null;
|
|
16
|
+
actionStatus: VoiceDeliveryRuntimeSnapshot['actionStatus'];
|
|
17
|
+
isLoading: boolean;
|
|
18
|
+
isRunning: boolean;
|
|
19
|
+
label: string;
|
|
20
|
+
status: 'pass' | 'warn' | 'loading' | 'error';
|
|
21
|
+
surfaces: VoiceDeliveryRuntimeSurfaceView[];
|
|
22
|
+
title: string;
|
|
23
|
+
updatedAt?: number;
|
|
24
|
+
};
|
|
25
|
+
export type VoiceDeliveryRuntimeWidgetOptions = VoiceDeliveryRuntimeClientOptions & {
|
|
26
|
+
description?: string;
|
|
27
|
+
includeActions?: boolean;
|
|
28
|
+
title?: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const createVoiceDeliveryRuntimeViewModel: (snapshot: VoiceDeliveryRuntimeSnapshot, options?: VoiceDeliveryRuntimeWidgetOptions) => VoiceDeliveryRuntimeViewModel;
|
|
31
|
+
export declare const renderVoiceDeliveryRuntimeHTML: (snapshot: VoiceDeliveryRuntimeSnapshot, options?: VoiceDeliveryRuntimeWidgetOptions) => string;
|
|
32
|
+
export declare const getVoiceDeliveryRuntimeCSS: () => string;
|
|
33
|
+
export declare const mountVoiceDeliveryRuntime: (element: Element, path?: string, options?: VoiceDeliveryRuntimeWidgetOptions) => {
|
|
34
|
+
close: () => void;
|
|
35
|
+
refresh: () => Promise<import("..").VoiceDeliveryRuntimeReport | undefined>;
|
|
36
|
+
};
|
|
37
|
+
export declare const defineVoiceDeliveryRuntimeElement: (tagName?: string) => void;
|
package/dist/client/duplex.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { VoiceAudioPlayer, VoiceBargeInBinding, VoiceBargeInOptions, VoiceController, VoiceDuplexController, VoiceDuplexControllerOptions } from '../types';
|
|
2
|
-
export declare const bindVoiceBargeIn: <TResult = unknown>(controller: Pick<VoiceController<TResult>, "partial" | "sendAudio" | "subscribe">, player: Pick<VoiceAudioPlayer, "interrupt" | "isPlaying">, options?: VoiceBargeInOptions) => VoiceBargeInBinding;
|
|
2
|
+
export declare const bindVoiceBargeIn: <TResult = unknown>(controller: Pick<VoiceController<TResult>, "partial" | "sendAudio" | "sessionId" | "subscribe">, player: Pick<VoiceAudioPlayer, "interrupt" | "isPlaying" | "lastInterruptLatencyMs" | "lastPlaybackStopLatencyMs">, options?: VoiceBargeInOptions) => VoiceBargeInBinding;
|
|
3
3
|
export declare const createVoiceDuplexController: <TResult = unknown>(path: string, options?: VoiceDuplexControllerOptions) => VoiceDuplexController<TResult>;
|