@absolutejs/voice 0.0.22-beta.17 → 0.0.22-beta.170
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 +1057 -5
- package/dist/agent.d.ts +24 -0
- package/dist/agentSquadContract.d.ts +64 -0
- package/dist/angular/index.d.ts +12 -0
- package/dist/angular/index.js +3196 -1111
- 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-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-provider-capabilities.service.d.ts +12 -0
- package/dist/angular/voice-provider-contracts.service.d.ts +12 -0
- package/dist/angular/voice-routing-status.service.d.ts +11 -0
- package/dist/angular/voice-stream.service.d.ts +3 -0
- package/dist/angular/voice-trace-timeline.service.d.ts +12 -0
- package/dist/angular/voice-turn-latency.service.d.ts +13 -0
- package/dist/angular/voice-turn-quality.service.d.ts +12 -0
- package/dist/angular/voice-workflow-status.service.d.ts +12 -0
- package/dist/assistantHealth.d.ts +81 -0
- package/dist/audit.d.ts +128 -0
- package/dist/auditDeliveryRoutes.d.ts +85 -0
- package/dist/auditExport.d.ts +34 -0
- package/dist/auditRoutes.d.ts +66 -0
- package/dist/auditSinks.d.ts +151 -0
- package/dist/bargeInRoutes.d.ts +56 -0
- package/dist/campaign.d.ts +610 -0
- package/dist/campaignDialers.d.ts +90 -0
- package/dist/client/actions.d.ts +105 -0
- package/dist/client/bargeInMonitor.d.ts +7 -0
- package/dist/client/campaignDialerProof.d.ts +23 -0
- package/dist/client/connection.d.ts +3 -0
- package/dist/client/deliveryRuntime.d.ts +34 -0
- package/dist/client/deliveryRuntimeWidget.d.ts +37 -0
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmxBootstrap.js +747 -15
- package/dist/client/index.d.ts +54 -0
- package/dist/client/index.js +2944 -20
- 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/providerCapabilities.d.ts +19 -0
- package/dist/client/providerCapabilitiesWidget.d.ts +32 -0
- package/dist/client/providerContracts.d.ts +19 -0
- package/dist/client/providerContractsWidget.d.ts +37 -0
- package/dist/client/providerSimulationControls.d.ts +33 -0
- package/dist/client/providerSimulationControlsWidget.d.ts +20 -0
- package/dist/client/providerStatusWidget.d.ts +32 -0
- package/dist/client/routingStatus.d.ts +19 -0
- package/dist/client/routingStatusWidget.d.ts +28 -0
- package/dist/client/traceTimeline.d.ts +19 -0
- package/dist/client/traceTimelineWidget.d.ts +32 -0
- package/dist/client/turnLatency.d.ts +22 -0
- package/dist/client/turnLatencyWidget.d.ts +33 -0
- package/dist/client/turnQuality.d.ts +19 -0
- package/dist/client/turnQualityWidget.d.ts +32 -0
- package/dist/client/workflowStatus.d.ts +19 -0
- package/dist/dataControl.d.ts +47 -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 +213 -0
- package/dist/fileStore.d.ts +11 -2
- package/dist/handoff.d.ts +54 -0
- package/dist/handoffHealth.d.ts +94 -0
- package/dist/index.d.ts +114 -11
- package/dist/index.js +18454 -4316
- package/dist/liveLatency.d.ts +78 -0
- package/dist/modelAdapters.d.ts +23 -2
- package/dist/openaiRealtime.d.ts +27 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/opsActionAuditRoutes.d.ts +99 -0
- package/dist/opsConsoleRoutes.d.ts +80 -0
- package/dist/opsStatus.d.ts +76 -0
- package/dist/opsStatusRoutes.d.ts +33 -0
- package/dist/opsWebhook.d.ts +126 -0
- package/dist/outcomeContract.d.ts +112 -0
- package/dist/phoneAgent.d.ts +62 -0
- package/dist/phoneAgentProductionSmoke.d.ts +115 -0
- package/dist/postgresStore.d.ts +13 -2
- package/dist/productionReadiness.d.ts +368 -0
- package/dist/providerAdapters.d.ts +48 -0
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerHealth.d.ts +1 -0
- package/dist/providerRoutingContract.d.ts +38 -0
- package/dist/providerStackRecommendations.d.ts +145 -0
- package/dist/qualityRoutes.d.ts +76 -0
- package/dist/queue.d.ts +61 -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/VoiceProviderCapabilities.d.ts +6 -0
- package/dist/react/VoiceProviderContracts.d.ts +6 -0
- package/dist/react/VoiceProviderSimulationControls.d.ts +5 -0
- package/dist/react/VoiceProviderStatus.d.ts +6 -0
- package/dist/react/VoiceRoutingStatus.d.ts +6 -0
- package/dist/react/VoiceTraceTimeline.d.ts +6 -0
- package/dist/react/VoiceTurnLatency.d.ts +6 -0
- package/dist/react/VoiceTurnQuality.d.ts +6 -0
- package/dist/react/index.d.ts +23 -0
- package/dist/react/index.js +3695 -33
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +3 -0
- package/dist/react/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/react/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/react/useVoiceOpsStatus.d.ts +8 -0
- package/dist/react/useVoiceProviderCapabilities.d.ts +8 -0
- package/dist/react/useVoiceProviderContracts.d.ts +8 -0
- package/dist/react/useVoiceProviderSimulationControls.d.ts +10 -0
- package/dist/react/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/react/useVoiceStream.d.ts +3 -0
- package/dist/react/useVoiceTraceTimeline.d.ts +8 -0
- package/dist/react/useVoiceTurnLatency.d.ts +9 -0
- package/dist/react/useVoiceTurnQuality.d.ts +8 -0
- package/dist/react/useVoiceWorkflowStatus.d.ts +8 -0
- package/dist/readinessProfiles.d.ts +35 -0
- package/dist/reconnectContract.d.ts +87 -0
- package/dist/resilienceRoutes.d.ts +142 -0
- package/dist/sessionReplay.d.ts +185 -0
- package/dist/simulationSuite.d.ts +120 -0
- package/dist/sqliteStore.d.ts +13 -2
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +9 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +11 -0
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +10 -0
- package/dist/svelte/createVoiceOpsStatus.d.ts +9 -0
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +10 -0
- package/dist/svelte/createVoiceProviderContracts.d.ts +10 -0
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +11 -0
- package/dist/svelte/createVoiceProviderStatus.d.ts +4 -2
- package/dist/svelte/createVoiceRoutingStatus.d.ts +10 -0
- package/dist/svelte/createVoiceTraceTimeline.d.ts +10 -0
- package/dist/svelte/createVoiceTurnLatency.d.ts +11 -0
- package/dist/svelte/createVoiceTurnQuality.d.ts +10 -0
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +8 -0
- package/dist/svelte/index.d.ts +12 -0
- package/dist/svelte/index.js +3095 -439
- package/dist/telephony/contract.d.ts +61 -0
- package/dist/telephony/matrix.d.ts +97 -0
- package/dist/telephony/plivo.d.ts +254 -0
- package/dist/telephony/telnyx.d.ts +247 -0
- package/dist/telephony/twilio.d.ts +135 -2
- package/dist/telephonyOutcome.d.ts +201 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +2008 -69
- package/dist/testing/ioProviderSimulator.d.ts +41 -0
- package/dist/testing/providerSimulator.d.ts +8 -0
- package/dist/toolContract.d.ts +130 -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 +93 -0
- package/dist/turnLatency.d.ts +95 -0
- package/dist/turnQuality.d.ts +94 -0
- package/dist/types.d.ts +170 -4
- package/dist/vue/VoiceDeliveryRuntime.d.ts +30 -0
- package/dist/vue/VoiceOpsActionCenter.d.ts +13 -0
- package/dist/vue/VoiceOpsStatus.d.ts +30 -0
- package/dist/vue/VoiceProviderCapabilities.d.ts +51 -0
- package/dist/vue/VoiceProviderContracts.d.ts +21 -0
- package/dist/vue/VoiceProviderSimulationControls.d.ts +88 -0
- package/dist/vue/VoiceProviderStatus.d.ts +51 -0
- package/dist/vue/VoiceRoutingStatus.d.ts +51 -0
- package/dist/vue/VoiceTurnLatency.d.ts +69 -0
- package/dist/vue/VoiceTurnQuality.d.ts +51 -0
- package/dist/vue/index.d.ts +22 -0
- package/dist/vue/index.js +3617 -53
- 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/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/vue/useVoiceOpsStatus.d.ts +9 -0
- package/dist/vue/useVoiceProviderCapabilities.d.ts +9 -0
- package/dist/vue/useVoiceProviderContracts.d.ts +9 -0
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +24 -0
- package/dist/vue/useVoiceProviderStatus.d.ts +1 -1
- package/dist/vue/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceStream.d.ts +4 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +9 -0
- package/dist/vue/useVoiceTurnLatency.d.ts +10 -0
- package/dist/vue/useVoiceTurnQuality.d.ts +9 -0
- package/dist/vue/useVoiceWorkflowStatus.d.ts +9 -0
- package/dist/workflowContract.d.ts +91 -0
- package/package.json +1 -1
package/dist/client/actions.d.ts
CHANGED
|
@@ -7,10 +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;
|
|
11
|
+
event?: undefined;
|
|
10
12
|
message?: undefined;
|
|
11
13
|
transcript?: undefined;
|
|
14
|
+
assistantTexts?: undefined;
|
|
15
|
+
call?: undefined;
|
|
16
|
+
partial?: undefined;
|
|
12
17
|
scenarioId?: undefined;
|
|
13
18
|
status?: undefined;
|
|
19
|
+
turns?: undefined;
|
|
14
20
|
turn?: undefined;
|
|
15
21
|
} | {
|
|
16
22
|
text: string;
|
|
@@ -20,10 +26,16 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
20
26
|
receivedAt?: undefined;
|
|
21
27
|
turnId?: undefined;
|
|
22
28
|
sessionId?: undefined;
|
|
29
|
+
reconnect?: undefined;
|
|
30
|
+
event?: undefined;
|
|
23
31
|
message?: undefined;
|
|
24
32
|
transcript?: undefined;
|
|
33
|
+
assistantTexts?: undefined;
|
|
34
|
+
call?: undefined;
|
|
35
|
+
partial?: undefined;
|
|
25
36
|
scenarioId?: undefined;
|
|
26
37
|
status?: undefined;
|
|
38
|
+
turns?: undefined;
|
|
27
39
|
turn?: undefined;
|
|
28
40
|
} | {
|
|
29
41
|
sessionId: string;
|
|
@@ -33,10 +45,54 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
33
45
|
receivedAt?: undefined;
|
|
34
46
|
turnId?: undefined;
|
|
35
47
|
text?: undefined;
|
|
48
|
+
reconnect?: undefined;
|
|
49
|
+
event?: undefined;
|
|
36
50
|
message?: undefined;
|
|
37
51
|
transcript?: undefined;
|
|
52
|
+
assistantTexts?: undefined;
|
|
53
|
+
call?: undefined;
|
|
54
|
+
partial?: undefined;
|
|
38
55
|
scenarioId?: undefined;
|
|
39
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;
|
|
77
|
+
turn?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
event: import("..").VoiceCallLifecycleEvent;
|
|
80
|
+
sessionId: string;
|
|
81
|
+
type: "call_lifecycle";
|
|
82
|
+
chunk?: undefined;
|
|
83
|
+
format?: undefined;
|
|
84
|
+
receivedAt?: undefined;
|
|
85
|
+
turnId?: undefined;
|
|
86
|
+
text?: undefined;
|
|
87
|
+
reconnect?: undefined;
|
|
88
|
+
message?: undefined;
|
|
89
|
+
transcript?: undefined;
|
|
90
|
+
assistantTexts?: undefined;
|
|
91
|
+
call?: undefined;
|
|
92
|
+
partial?: undefined;
|
|
93
|
+
scenarioId?: undefined;
|
|
94
|
+
status?: undefined;
|
|
95
|
+
turns?: undefined;
|
|
40
96
|
turn?: undefined;
|
|
41
97
|
} | {
|
|
42
98
|
message: string;
|
|
@@ -47,9 +103,15 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
47
103
|
turnId?: undefined;
|
|
48
104
|
text?: undefined;
|
|
49
105
|
sessionId?: undefined;
|
|
106
|
+
reconnect?: undefined;
|
|
107
|
+
event?: undefined;
|
|
50
108
|
transcript?: undefined;
|
|
109
|
+
assistantTexts?: undefined;
|
|
110
|
+
call?: undefined;
|
|
111
|
+
partial?: undefined;
|
|
51
112
|
scenarioId?: undefined;
|
|
52
113
|
status?: undefined;
|
|
114
|
+
turns?: undefined;
|
|
53
115
|
turn?: undefined;
|
|
54
116
|
} | {
|
|
55
117
|
transcript: import("..").Transcript;
|
|
@@ -60,9 +122,15 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
60
122
|
turnId?: undefined;
|
|
61
123
|
text?: undefined;
|
|
62
124
|
sessionId?: undefined;
|
|
125
|
+
reconnect?: undefined;
|
|
126
|
+
event?: undefined;
|
|
63
127
|
message?: undefined;
|
|
128
|
+
assistantTexts?: undefined;
|
|
129
|
+
call?: undefined;
|
|
130
|
+
partial?: undefined;
|
|
64
131
|
scenarioId?: undefined;
|
|
65
132
|
status?: undefined;
|
|
133
|
+
turns?: undefined;
|
|
66
134
|
turn?: undefined;
|
|
67
135
|
} | {
|
|
68
136
|
transcript: import("..").Transcript;
|
|
@@ -73,9 +141,34 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
73
141
|
turnId?: undefined;
|
|
74
142
|
text?: undefined;
|
|
75
143
|
sessionId?: undefined;
|
|
144
|
+
reconnect?: undefined;
|
|
145
|
+
event?: undefined;
|
|
76
146
|
message?: undefined;
|
|
147
|
+
assistantTexts?: undefined;
|
|
148
|
+
call?: undefined;
|
|
149
|
+
partial?: undefined;
|
|
77
150
|
scenarioId?: undefined;
|
|
78
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;
|
|
79
172
|
turn?: undefined;
|
|
80
173
|
} | {
|
|
81
174
|
sessionId: string;
|
|
@@ -87,8 +180,14 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
87
180
|
receivedAt?: undefined;
|
|
88
181
|
turnId?: undefined;
|
|
89
182
|
text?: undefined;
|
|
183
|
+
reconnect?: undefined;
|
|
184
|
+
event?: undefined;
|
|
90
185
|
message?: undefined;
|
|
91
186
|
transcript?: undefined;
|
|
187
|
+
assistantTexts?: undefined;
|
|
188
|
+
call?: undefined;
|
|
189
|
+
partial?: undefined;
|
|
190
|
+
turns?: undefined;
|
|
92
191
|
turn?: undefined;
|
|
93
192
|
} | {
|
|
94
193
|
turn: import("..").VoiceTurnRecord<TResult>;
|
|
@@ -99,8 +198,14 @@ export declare const serverMessageToAction: <TResult = unknown>(message: VoiceSe
|
|
|
99
198
|
turnId?: undefined;
|
|
100
199
|
text?: undefined;
|
|
101
200
|
sessionId?: undefined;
|
|
201
|
+
reconnect?: undefined;
|
|
202
|
+
event?: undefined;
|
|
102
203
|
message?: undefined;
|
|
103
204
|
transcript?: undefined;
|
|
205
|
+
assistantTexts?: undefined;
|
|
206
|
+
call?: undefined;
|
|
207
|
+
partial?: undefined;
|
|
104
208
|
scenarioId?: undefined;
|
|
105
209
|
status?: undefined;
|
|
210
|
+
turns?: undefined;
|
|
106
211
|
} | null;
|
|
@@ -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,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
|
+
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { VoiceClientMessage, VoiceConnectionOptions, VoiceServerMessage } from '../types';
|
|
2
2
|
type VoiceConnectionHandle = {
|
|
3
|
+
callControl: (message: Omit<VoiceClientMessage & {
|
|
4
|
+
type: 'call_control';
|
|
5
|
+
}, 'type'>) => void;
|
|
3
6
|
start: (input?: {
|
|
4
7
|
sessionId?: string;
|
|
5
8
|
scenarioId?: string;
|
|
@@ -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>;
|