@absolutejs/voice 0.0.22-beta.116 → 0.0.22-beta.117
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/dist/angular/index.d.ts +1 -0
- package/dist/angular/index.js +274 -108
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +14 -0
- package/dist/client/campaignDialerProof.d.ts +23 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +120 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +151 -12
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +9 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +121 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.js +172 -17
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +11 -0
- package/package.json +1 -1
package/dist/angular/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { VoiceAppKitStatusService } from './voice-app-kit-status.service';
|
|
2
|
+
export { VoiceCampaignDialerProofService } from './voice-campaign-dialer-proof.service';
|
|
2
3
|
export { VoiceStreamService } from './voice-stream.service';
|
|
3
4
|
export { VoiceControllerService } from './voice-controller.service';
|
|
4
5
|
export { VoiceProviderCapabilitiesService } from './voice-provider-capabilities.service';
|
package/dist/angular/index.js
CHANGED
|
@@ -193,9 +193,174 @@ VoiceAppKitStatusService = __decorateElement(_init, 0, "VoiceAppKitStatusService
|
|
|
193
193
|
__runInitializers(_init, 1, VoiceAppKitStatusService);
|
|
194
194
|
__decoratorMetadata(_init, VoiceAppKitStatusService);
|
|
195
195
|
let _VoiceAppKitStatusService = VoiceAppKitStatusService;
|
|
196
|
-
// src/angular/voice-
|
|
196
|
+
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
197
197
|
import { computed as computed2, Injectable as Injectable2, signal as signal2 } from "@angular/core";
|
|
198
198
|
|
|
199
|
+
// src/client/campaignDialerProof.ts
|
|
200
|
+
var fetchVoiceCampaignDialerProofStatus = async (path = "/api/voice/campaigns/dialer-proof", options = {}) => {
|
|
201
|
+
const fetchImpl = options.fetch ?? globalThis.fetch;
|
|
202
|
+
const response = await fetchImpl(path);
|
|
203
|
+
if (!response.ok) {
|
|
204
|
+
throw new Error(`Voice campaign dialer proof status failed: HTTP ${response.status}`);
|
|
205
|
+
}
|
|
206
|
+
return await response.json();
|
|
207
|
+
};
|
|
208
|
+
var runVoiceCampaignDialerProofAction = async (path = "/api/voice/campaigns/dialer-proof", options = {}) => {
|
|
209
|
+
const fetchImpl = options.fetch ?? globalThis.fetch;
|
|
210
|
+
const response = await fetchImpl(path, { method: "POST" });
|
|
211
|
+
if (!response.ok) {
|
|
212
|
+
throw new Error(`Voice campaign dialer proof failed: HTTP ${response.status}`);
|
|
213
|
+
}
|
|
214
|
+
return await response.json();
|
|
215
|
+
};
|
|
216
|
+
var createVoiceCampaignDialerProofStore = (path = "/api/voice/campaigns/dialer-proof", options = {}) => {
|
|
217
|
+
const listeners = new Set;
|
|
218
|
+
let closed = false;
|
|
219
|
+
let timer;
|
|
220
|
+
let snapshot = {
|
|
221
|
+
error: null,
|
|
222
|
+
isLoading: false
|
|
223
|
+
};
|
|
224
|
+
const emit = () => {
|
|
225
|
+
for (const listener of listeners) {
|
|
226
|
+
listener();
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
const refresh = async () => {
|
|
230
|
+
if (closed) {
|
|
231
|
+
return snapshot.status;
|
|
232
|
+
}
|
|
233
|
+
snapshot = { ...snapshot, error: null, isLoading: true };
|
|
234
|
+
emit();
|
|
235
|
+
try {
|
|
236
|
+
const status = await fetchVoiceCampaignDialerProofStatus(path, options);
|
|
237
|
+
snapshot = {
|
|
238
|
+
...snapshot,
|
|
239
|
+
error: null,
|
|
240
|
+
isLoading: false,
|
|
241
|
+
status,
|
|
242
|
+
updatedAt: Date.now()
|
|
243
|
+
};
|
|
244
|
+
emit();
|
|
245
|
+
return status;
|
|
246
|
+
} catch (error) {
|
|
247
|
+
snapshot = {
|
|
248
|
+
...snapshot,
|
|
249
|
+
error: error instanceof Error ? error.message : String(error),
|
|
250
|
+
isLoading: false
|
|
251
|
+
};
|
|
252
|
+
emit();
|
|
253
|
+
throw error;
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
const runProof = async () => {
|
|
257
|
+
const runPath = options.runPath ?? snapshot.status?.runPath ?? path;
|
|
258
|
+
snapshot = { ...snapshot, error: null, isLoading: true };
|
|
259
|
+
emit();
|
|
260
|
+
try {
|
|
261
|
+
const report = await runVoiceCampaignDialerProofAction(runPath, options);
|
|
262
|
+
snapshot = {
|
|
263
|
+
...snapshot,
|
|
264
|
+
error: null,
|
|
265
|
+
isLoading: false,
|
|
266
|
+
report,
|
|
267
|
+
status: {
|
|
268
|
+
generatedAt: Date.now(),
|
|
269
|
+
mode: report.mode,
|
|
270
|
+
ok: report.ok,
|
|
271
|
+
providers: report.providers.map((provider) => provider.provider),
|
|
272
|
+
runPath,
|
|
273
|
+
safe: true
|
|
274
|
+
},
|
|
275
|
+
updatedAt: Date.now()
|
|
276
|
+
};
|
|
277
|
+
emit();
|
|
278
|
+
return report;
|
|
279
|
+
} catch (error) {
|
|
280
|
+
snapshot = {
|
|
281
|
+
...snapshot,
|
|
282
|
+
error: error instanceof Error ? error.message : String(error),
|
|
283
|
+
isLoading: false
|
|
284
|
+
};
|
|
285
|
+
emit();
|
|
286
|
+
throw error;
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
const close = () => {
|
|
290
|
+
closed = true;
|
|
291
|
+
if (timer) {
|
|
292
|
+
clearInterval(timer);
|
|
293
|
+
timer = undefined;
|
|
294
|
+
}
|
|
295
|
+
listeners.clear();
|
|
296
|
+
};
|
|
297
|
+
if (options.intervalMs && options.intervalMs > 0) {
|
|
298
|
+
timer = setInterval(() => {
|
|
299
|
+
refresh().catch(() => {});
|
|
300
|
+
}, options.intervalMs);
|
|
301
|
+
}
|
|
302
|
+
return {
|
|
303
|
+
close,
|
|
304
|
+
getServerSnapshot: () => snapshot,
|
|
305
|
+
getSnapshot: () => snapshot,
|
|
306
|
+
refresh,
|
|
307
|
+
runProof,
|
|
308
|
+
subscribe: (listener) => {
|
|
309
|
+
listeners.add(listener);
|
|
310
|
+
return () => {
|
|
311
|
+
listeners.delete(listener);
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
318
|
+
var _dec = [
|
|
319
|
+
Injectable2({ providedIn: "root" })
|
|
320
|
+
];
|
|
321
|
+
var _init = __decoratorStart(undefined);
|
|
322
|
+
|
|
323
|
+
class VoiceCampaignDialerProofService {
|
|
324
|
+
connect(path = "/api/voice/campaigns/dialer-proof", options = {}) {
|
|
325
|
+
const store = createVoiceCampaignDialerProofStore(path, options);
|
|
326
|
+
const errorSignal = signal2(null);
|
|
327
|
+
const isLoadingSignal = signal2(false);
|
|
328
|
+
const reportSignal = signal2(undefined);
|
|
329
|
+
const statusSignal = signal2(undefined);
|
|
330
|
+
const updatedAtSignal = signal2(undefined);
|
|
331
|
+
const sync = () => {
|
|
332
|
+
const snapshot = store.getSnapshot();
|
|
333
|
+
errorSignal.set(snapshot.error);
|
|
334
|
+
isLoadingSignal.set(snapshot.isLoading);
|
|
335
|
+
reportSignal.set(snapshot.report);
|
|
336
|
+
statusSignal.set(snapshot.status);
|
|
337
|
+
updatedAtSignal.set(snapshot.updatedAt);
|
|
338
|
+
};
|
|
339
|
+
const unsubscribe = store.subscribe(sync);
|
|
340
|
+
sync();
|
|
341
|
+
store.refresh().catch(() => {});
|
|
342
|
+
return {
|
|
343
|
+
close: () => {
|
|
344
|
+
unsubscribe();
|
|
345
|
+
store.close();
|
|
346
|
+
},
|
|
347
|
+
error: computed2(() => errorSignal()),
|
|
348
|
+
isLoading: computed2(() => isLoadingSignal()),
|
|
349
|
+
refresh: store.refresh,
|
|
350
|
+
report: computed2(() => reportSignal()),
|
|
351
|
+
runProof: store.runProof,
|
|
352
|
+
status: computed2(() => statusSignal()),
|
|
353
|
+
updatedAt: computed2(() => updatedAtSignal())
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
VoiceCampaignDialerProofService = __decorateElement(_init, 0, "VoiceCampaignDialerProofService", _dec, VoiceCampaignDialerProofService);
|
|
358
|
+
__runInitializers(_init, 1, VoiceCampaignDialerProofService);
|
|
359
|
+
__decoratorMetadata(_init, VoiceCampaignDialerProofService);
|
|
360
|
+
let _VoiceCampaignDialerProofService = VoiceCampaignDialerProofService;
|
|
361
|
+
// src/angular/voice-stream.service.ts
|
|
362
|
+
import { computed as computed3, Injectable as Injectable3, signal as signal3 } from "@angular/core";
|
|
363
|
+
|
|
199
364
|
// src/client/actions.ts
|
|
200
365
|
var normalizeErrorMessage = (value) => {
|
|
201
366
|
if (typeof value === "string" && value.trim()) {
|
|
@@ -711,22 +876,22 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
711
876
|
|
|
712
877
|
// src/angular/voice-stream.service.ts
|
|
713
878
|
var _dec = [
|
|
714
|
-
|
|
879
|
+
Injectable3({ providedIn: "root" })
|
|
715
880
|
];
|
|
716
881
|
var _init = __decoratorStart(undefined);
|
|
717
882
|
|
|
718
883
|
class VoiceStreamService {
|
|
719
884
|
connect(path, options = {}) {
|
|
720
885
|
const stream = createVoiceStream(path, options);
|
|
721
|
-
const assistantAudioSignal =
|
|
722
|
-
const assistantTextsSignal =
|
|
723
|
-
const callSignal =
|
|
724
|
-
const errorSignal =
|
|
725
|
-
const isConnectedSignal =
|
|
726
|
-
const partialSignal =
|
|
727
|
-
const sessionIdSignal =
|
|
728
|
-
const statusSignal =
|
|
729
|
-
const turnsSignal =
|
|
886
|
+
const assistantAudioSignal = signal3([]);
|
|
887
|
+
const assistantTextsSignal = signal3([]);
|
|
888
|
+
const callSignal = signal3(null);
|
|
889
|
+
const errorSignal = signal3(null);
|
|
890
|
+
const isConnectedSignal = signal3(false);
|
|
891
|
+
const partialSignal = signal3("");
|
|
892
|
+
const sessionIdSignal = signal3(stream.sessionId);
|
|
893
|
+
const statusSignal = signal3(stream.status);
|
|
894
|
+
const turnsSignal = signal3([]);
|
|
730
895
|
const sync = () => {
|
|
731
896
|
assistantAudioSignal.set([...stream.assistantAudio]);
|
|
732
897
|
assistantTextsSignal.set([...stream.assistantTexts]);
|
|
@@ -741,22 +906,22 @@ class VoiceStreamService {
|
|
|
741
906
|
const unsubscribe = stream.subscribe(sync);
|
|
742
907
|
sync();
|
|
743
908
|
return {
|
|
744
|
-
assistantAudio:
|
|
745
|
-
assistantTexts:
|
|
746
|
-
call:
|
|
909
|
+
assistantAudio: computed3(() => assistantAudioSignal()),
|
|
910
|
+
assistantTexts: computed3(() => assistantTextsSignal()),
|
|
911
|
+
call: computed3(() => callSignal()),
|
|
747
912
|
callControl: (message) => stream.callControl(message),
|
|
748
913
|
close: () => {
|
|
749
914
|
unsubscribe();
|
|
750
915
|
stream.close();
|
|
751
916
|
},
|
|
752
917
|
endTurn: () => stream.endTurn(),
|
|
753
|
-
error:
|
|
754
|
-
isConnected:
|
|
755
|
-
partial:
|
|
918
|
+
error: computed3(() => errorSignal()),
|
|
919
|
+
isConnected: computed3(() => isConnectedSignal()),
|
|
920
|
+
partial: computed3(() => partialSignal()),
|
|
756
921
|
sendAudio: (audio) => stream.sendAudio(audio),
|
|
757
|
-
sessionId:
|
|
758
|
-
status:
|
|
759
|
-
turns:
|
|
922
|
+
sessionId: computed3(() => sessionIdSignal()),
|
|
923
|
+
status: computed3(() => statusSignal()),
|
|
924
|
+
turns: computed3(() => turnsSignal())
|
|
760
925
|
};
|
|
761
926
|
}
|
|
762
927
|
}
|
|
@@ -765,7 +930,7 @@ __runInitializers(_init, 1, VoiceStreamService);
|
|
|
765
930
|
__decoratorMetadata(_init, VoiceStreamService);
|
|
766
931
|
let _VoiceStreamService = VoiceStreamService;
|
|
767
932
|
// src/angular/voice-controller.service.ts
|
|
768
|
-
import { computed as
|
|
933
|
+
import { computed as computed4, Injectable as Injectable4, signal as signal4 } from "@angular/core";
|
|
769
934
|
|
|
770
935
|
// src/client/htmx.ts
|
|
771
936
|
var DEFAULT_EVENT_NAME = "voice-refresh";
|
|
@@ -1405,23 +1570,23 @@ var createVoiceController = (path, options = {}) => {
|
|
|
1405
1570
|
|
|
1406
1571
|
// src/angular/voice-controller.service.ts
|
|
1407
1572
|
var _dec = [
|
|
1408
|
-
|
|
1573
|
+
Injectable4({ providedIn: "root" })
|
|
1409
1574
|
];
|
|
1410
1575
|
var _init = __decoratorStart(undefined);
|
|
1411
1576
|
|
|
1412
1577
|
class VoiceControllerService {
|
|
1413
1578
|
connect(path, options = {}) {
|
|
1414
1579
|
const controller = createVoiceController(path, options);
|
|
1415
|
-
const assistantAudioSignal =
|
|
1416
|
-
const assistantTextsSignal =
|
|
1417
|
-
const errorSignal =
|
|
1418
|
-
const isConnectedSignal =
|
|
1419
|
-
const isRecordingSignal =
|
|
1420
|
-
const partialSignal =
|
|
1421
|
-
const recordingErrorSignal =
|
|
1422
|
-
const sessionIdSignal =
|
|
1423
|
-
const statusSignal =
|
|
1424
|
-
const turnsSignal =
|
|
1580
|
+
const assistantAudioSignal = signal4([]);
|
|
1581
|
+
const assistantTextsSignal = signal4([]);
|
|
1582
|
+
const errorSignal = signal4(null);
|
|
1583
|
+
const isConnectedSignal = signal4(false);
|
|
1584
|
+
const isRecordingSignal = signal4(false);
|
|
1585
|
+
const partialSignal = signal4("");
|
|
1586
|
+
const recordingErrorSignal = signal4(null);
|
|
1587
|
+
const sessionIdSignal = signal4(controller.sessionId);
|
|
1588
|
+
const statusSignal = signal4(controller.status);
|
|
1589
|
+
const turnsSignal = signal4([]);
|
|
1425
1590
|
const sync = () => {
|
|
1426
1591
|
assistantAudioSignal.set([...controller.assistantAudio]);
|
|
1427
1592
|
assistantTextsSignal.set([...controller.assistantTexts]);
|
|
@@ -1437,26 +1602,26 @@ class VoiceControllerService {
|
|
|
1437
1602
|
const unsubscribe = controller.subscribe(sync);
|
|
1438
1603
|
sync();
|
|
1439
1604
|
return {
|
|
1440
|
-
assistantAudio:
|
|
1441
|
-
assistantTexts:
|
|
1605
|
+
assistantAudio: computed4(() => assistantAudioSignal()),
|
|
1606
|
+
assistantTexts: computed4(() => assistantTextsSignal()),
|
|
1442
1607
|
bindHTMX: controller.bindHTMX,
|
|
1443
1608
|
close: () => {
|
|
1444
1609
|
unsubscribe();
|
|
1445
1610
|
controller.close();
|
|
1446
1611
|
},
|
|
1447
1612
|
endTurn: () => controller.endTurn(),
|
|
1448
|
-
error:
|
|
1449
|
-
isConnected:
|
|
1450
|
-
isRecording:
|
|
1451
|
-
partial:
|
|
1452
|
-
recordingError:
|
|
1613
|
+
error: computed4(() => errorSignal()),
|
|
1614
|
+
isConnected: computed4(() => isConnectedSignal()),
|
|
1615
|
+
isRecording: computed4(() => isRecordingSignal()),
|
|
1616
|
+
partial: computed4(() => partialSignal()),
|
|
1617
|
+
recordingError: computed4(() => recordingErrorSignal()),
|
|
1453
1618
|
sendAudio: (audio) => controller.sendAudio(audio),
|
|
1454
|
-
sessionId:
|
|
1619
|
+
sessionId: computed4(() => sessionIdSignal()),
|
|
1455
1620
|
startRecording: () => controller.startRecording(),
|
|
1456
|
-
status:
|
|
1621
|
+
status: computed4(() => statusSignal()),
|
|
1457
1622
|
stopRecording: () => controller.stopRecording(),
|
|
1458
1623
|
toggleRecording: () => controller.toggleRecording(),
|
|
1459
|
-
turns:
|
|
1624
|
+
turns: computed4(() => turnsSignal())
|
|
1460
1625
|
};
|
|
1461
1626
|
}
|
|
1462
1627
|
}
|
|
@@ -1465,7 +1630,7 @@ __runInitializers(_init, 1, VoiceControllerService);
|
|
|
1465
1630
|
__decoratorMetadata(_init, VoiceControllerService);
|
|
1466
1631
|
let _VoiceControllerService = VoiceControllerService;
|
|
1467
1632
|
// src/angular/voice-provider-capabilities.service.ts
|
|
1468
|
-
import { computed as
|
|
1633
|
+
import { computed as computed5, Injectable as Injectable5, signal as signal5 } from "@angular/core";
|
|
1469
1634
|
|
|
1470
1635
|
// src/client/providerCapabilities.ts
|
|
1471
1636
|
var fetchVoiceProviderCapabilities = async (path = "/api/provider-capabilities", options = {}) => {
|
|
@@ -1548,17 +1713,17 @@ var createVoiceProviderCapabilitiesStore = (path = "/api/provider-capabilities",
|
|
|
1548
1713
|
|
|
1549
1714
|
// src/angular/voice-provider-capabilities.service.ts
|
|
1550
1715
|
var _dec = [
|
|
1551
|
-
|
|
1716
|
+
Injectable5({ providedIn: "root" })
|
|
1552
1717
|
];
|
|
1553
1718
|
var _init = __decoratorStart(undefined);
|
|
1554
1719
|
|
|
1555
1720
|
class VoiceProviderCapabilitiesService {
|
|
1556
1721
|
connect(path = "/api/provider-capabilities", options = {}) {
|
|
1557
1722
|
const store = createVoiceProviderCapabilitiesStore(path, options);
|
|
1558
|
-
const errorSignal =
|
|
1559
|
-
const isLoadingSignal =
|
|
1560
|
-
const reportSignal =
|
|
1561
|
-
const updatedAtSignal =
|
|
1723
|
+
const errorSignal = signal5(null);
|
|
1724
|
+
const isLoadingSignal = signal5(false);
|
|
1725
|
+
const reportSignal = signal5(undefined);
|
|
1726
|
+
const updatedAtSignal = signal5(undefined);
|
|
1562
1727
|
const sync = () => {
|
|
1563
1728
|
const snapshot = store.getSnapshot();
|
|
1564
1729
|
errorSignal.set(snapshot.error);
|
|
@@ -1574,11 +1739,11 @@ class VoiceProviderCapabilitiesService {
|
|
|
1574
1739
|
unsubscribe();
|
|
1575
1740
|
store.close();
|
|
1576
1741
|
},
|
|
1577
|
-
error:
|
|
1578
|
-
isLoading:
|
|
1742
|
+
error: computed5(() => errorSignal()),
|
|
1743
|
+
isLoading: computed5(() => isLoadingSignal()),
|
|
1579
1744
|
refresh: store.refresh,
|
|
1580
|
-
report:
|
|
1581
|
-
updatedAt:
|
|
1745
|
+
report: computed5(() => reportSignal()),
|
|
1746
|
+
updatedAt: computed5(() => updatedAtSignal())
|
|
1582
1747
|
};
|
|
1583
1748
|
}
|
|
1584
1749
|
}
|
|
@@ -1587,7 +1752,7 @@ __runInitializers(_init, 1, VoiceProviderCapabilitiesService);
|
|
|
1587
1752
|
__decoratorMetadata(_init, VoiceProviderCapabilitiesService);
|
|
1588
1753
|
let _VoiceProviderCapabilitiesService = VoiceProviderCapabilitiesService;
|
|
1589
1754
|
// src/angular/voice-provider-status.service.ts
|
|
1590
|
-
import { computed as
|
|
1755
|
+
import { computed as computed6, Injectable as Injectable6, signal as signal6 } from "@angular/core";
|
|
1591
1756
|
|
|
1592
1757
|
// src/client/providerStatus.ts
|
|
1593
1758
|
var fetchVoiceProviderStatus = async (path = "/api/provider-status", options = {}) => {
|
|
@@ -1671,17 +1836,17 @@ var createVoiceProviderStatusStore = (path = "/api/provider-status", options = {
|
|
|
1671
1836
|
|
|
1672
1837
|
// src/angular/voice-provider-status.service.ts
|
|
1673
1838
|
var _dec = [
|
|
1674
|
-
|
|
1839
|
+
Injectable6({ providedIn: "root" })
|
|
1675
1840
|
];
|
|
1676
1841
|
var _init = __decoratorStart(undefined);
|
|
1677
1842
|
|
|
1678
1843
|
class VoiceProviderStatusService {
|
|
1679
1844
|
connect(path = "/api/provider-status", options = {}) {
|
|
1680
1845
|
const store = createVoiceProviderStatusStore(path, options);
|
|
1681
|
-
const errorSignal =
|
|
1682
|
-
const isLoadingSignal =
|
|
1683
|
-
const providersSignal =
|
|
1684
|
-
const updatedAtSignal =
|
|
1846
|
+
const errorSignal = signal6(null);
|
|
1847
|
+
const isLoadingSignal = signal6(false);
|
|
1848
|
+
const providersSignal = signal6([]);
|
|
1849
|
+
const updatedAtSignal = signal6(undefined);
|
|
1685
1850
|
const sync = () => {
|
|
1686
1851
|
const snapshot = store.getSnapshot();
|
|
1687
1852
|
errorSignal.set(snapshot.error);
|
|
@@ -1697,11 +1862,11 @@ class VoiceProviderStatusService {
|
|
|
1697
1862
|
unsubscribe();
|
|
1698
1863
|
store.close();
|
|
1699
1864
|
},
|
|
1700
|
-
error:
|
|
1701
|
-
isLoading:
|
|
1702
|
-
providers:
|
|
1865
|
+
error: computed6(() => errorSignal()),
|
|
1866
|
+
isLoading: computed6(() => isLoadingSignal()),
|
|
1867
|
+
providers: computed6(() => providersSignal()),
|
|
1703
1868
|
refresh: store.refresh,
|
|
1704
|
-
updatedAt:
|
|
1869
|
+
updatedAt: computed6(() => updatedAtSignal())
|
|
1705
1870
|
};
|
|
1706
1871
|
}
|
|
1707
1872
|
}
|
|
@@ -1710,7 +1875,7 @@ __runInitializers(_init, 1, VoiceProviderStatusService);
|
|
|
1710
1875
|
__decoratorMetadata(_init, VoiceProviderStatusService);
|
|
1711
1876
|
let _VoiceProviderStatusService = VoiceProviderStatusService;
|
|
1712
1877
|
// src/angular/voice-routing-status.service.ts
|
|
1713
|
-
import { Injectable as
|
|
1878
|
+
import { Injectable as Injectable7, signal as signal7 } from "@angular/core";
|
|
1714
1879
|
|
|
1715
1880
|
// src/client/routingStatus.ts
|
|
1716
1881
|
var fetchVoiceRoutingStatus = async (path = "/api/routing/latest", options = {}) => {
|
|
@@ -1794,17 +1959,17 @@ var createVoiceRoutingStatusStore = (path = "/api/routing/latest", options = {})
|
|
|
1794
1959
|
|
|
1795
1960
|
// src/angular/voice-routing-status.service.ts
|
|
1796
1961
|
var _dec = [
|
|
1797
|
-
|
|
1962
|
+
Injectable7({ providedIn: "root" })
|
|
1798
1963
|
];
|
|
1799
1964
|
var _init = __decoratorStart(undefined);
|
|
1800
1965
|
|
|
1801
1966
|
class VoiceRoutingStatusService {
|
|
1802
1967
|
connect(path = "/api/routing/latest", options = {}) {
|
|
1803
1968
|
const store = createVoiceRoutingStatusStore(path, options);
|
|
1804
|
-
const decisionSignal =
|
|
1805
|
-
const errorSignal =
|
|
1806
|
-
const isLoadingSignal =
|
|
1807
|
-
const updatedAtSignal =
|
|
1969
|
+
const decisionSignal = signal7(null);
|
|
1970
|
+
const errorSignal = signal7(null);
|
|
1971
|
+
const isLoadingSignal = signal7(false);
|
|
1972
|
+
const updatedAtSignal = signal7(undefined);
|
|
1808
1973
|
const sync = () => {
|
|
1809
1974
|
const snapshot = store.getSnapshot();
|
|
1810
1975
|
decisionSignal.set(snapshot.decision);
|
|
@@ -1833,7 +1998,7 @@ __runInitializers(_init, 1, VoiceRoutingStatusService);
|
|
|
1833
1998
|
__decoratorMetadata(_init, VoiceRoutingStatusService);
|
|
1834
1999
|
let _VoiceRoutingStatusService = VoiceRoutingStatusService;
|
|
1835
2000
|
// src/angular/voice-trace-timeline.service.ts
|
|
1836
|
-
import { computed as
|
|
2001
|
+
import { computed as computed7, Injectable as Injectable8, signal as signal8 } from "@angular/core";
|
|
1837
2002
|
|
|
1838
2003
|
// src/client/traceTimeline.ts
|
|
1839
2004
|
var fetchVoiceTraceTimeline = async (path = "/api/voice-traces", options = {}) => {
|
|
@@ -1917,17 +2082,17 @@ var createVoiceTraceTimelineStore = (path = "/api/voice-traces", options = {}) =
|
|
|
1917
2082
|
|
|
1918
2083
|
// src/angular/voice-trace-timeline.service.ts
|
|
1919
2084
|
var _dec = [
|
|
1920
|
-
|
|
2085
|
+
Injectable8({ providedIn: "root" })
|
|
1921
2086
|
];
|
|
1922
2087
|
var _init = __decoratorStart(undefined);
|
|
1923
2088
|
|
|
1924
2089
|
class VoiceTraceTimelineService {
|
|
1925
2090
|
connect(path = "/api/voice-traces", options = {}) {
|
|
1926
2091
|
const store = createVoiceTraceTimelineStore(path, options);
|
|
1927
|
-
const errorSignal =
|
|
1928
|
-
const isLoadingSignal =
|
|
1929
|
-
const reportSignal =
|
|
1930
|
-
const updatedAtSignal =
|
|
2092
|
+
const errorSignal = signal8(null);
|
|
2093
|
+
const isLoadingSignal = signal8(false);
|
|
2094
|
+
const reportSignal = signal8(null);
|
|
2095
|
+
const updatedAtSignal = signal8(undefined);
|
|
1931
2096
|
const sync = () => {
|
|
1932
2097
|
const snapshot = store.getSnapshot();
|
|
1933
2098
|
errorSignal.set(snapshot.error);
|
|
@@ -1943,11 +2108,11 @@ class VoiceTraceTimelineService {
|
|
|
1943
2108
|
unsubscribe();
|
|
1944
2109
|
store.close();
|
|
1945
2110
|
},
|
|
1946
|
-
error:
|
|
1947
|
-
isLoading:
|
|
2111
|
+
error: computed7(() => errorSignal()),
|
|
2112
|
+
isLoading: computed7(() => isLoadingSignal()),
|
|
1948
2113
|
refresh: store.refresh,
|
|
1949
|
-
report:
|
|
1950
|
-
updatedAt:
|
|
2114
|
+
report: computed7(() => reportSignal()),
|
|
2115
|
+
updatedAt: computed7(() => updatedAtSignal())
|
|
1951
2116
|
};
|
|
1952
2117
|
}
|
|
1953
2118
|
}
|
|
@@ -1956,7 +2121,7 @@ __runInitializers(_init, 1, VoiceTraceTimelineService);
|
|
|
1956
2121
|
__decoratorMetadata(_init, VoiceTraceTimelineService);
|
|
1957
2122
|
let _VoiceTraceTimelineService = VoiceTraceTimelineService;
|
|
1958
2123
|
// src/angular/voice-turn-latency.service.ts
|
|
1959
|
-
import { computed as
|
|
2124
|
+
import { computed as computed8, Injectable as Injectable9, signal as signal9 } from "@angular/core";
|
|
1960
2125
|
|
|
1961
2126
|
// src/client/turnLatency.ts
|
|
1962
2127
|
var fetchVoiceTurnLatency = async (path = "/api/turn-latency", options = {}) => {
|
|
@@ -2063,17 +2228,17 @@ var createVoiceTurnLatencyStore = (path = "/api/turn-latency", options = {}) =>
|
|
|
2063
2228
|
|
|
2064
2229
|
// src/angular/voice-turn-latency.service.ts
|
|
2065
2230
|
var _dec = [
|
|
2066
|
-
|
|
2231
|
+
Injectable9({ providedIn: "root" })
|
|
2067
2232
|
];
|
|
2068
2233
|
var _init = __decoratorStart(undefined);
|
|
2069
2234
|
|
|
2070
2235
|
class VoiceTurnLatencyService {
|
|
2071
2236
|
connect(path = "/api/turn-latency", options = {}) {
|
|
2072
2237
|
const store = createVoiceTurnLatencyStore(path, options);
|
|
2073
|
-
const errorSignal =
|
|
2074
|
-
const isLoadingSignal =
|
|
2075
|
-
const reportSignal =
|
|
2076
|
-
const updatedAtSignal =
|
|
2238
|
+
const errorSignal = signal9(null);
|
|
2239
|
+
const isLoadingSignal = signal9(false);
|
|
2240
|
+
const reportSignal = signal9(undefined);
|
|
2241
|
+
const updatedAtSignal = signal9(undefined);
|
|
2077
2242
|
const sync = () => {
|
|
2078
2243
|
const snapshot = store.getSnapshot();
|
|
2079
2244
|
errorSignal.set(snapshot.error);
|
|
@@ -2089,12 +2254,12 @@ class VoiceTurnLatencyService {
|
|
|
2089
2254
|
unsubscribe();
|
|
2090
2255
|
store.close();
|
|
2091
2256
|
},
|
|
2092
|
-
error:
|
|
2093
|
-
isLoading:
|
|
2257
|
+
error: computed8(() => errorSignal()),
|
|
2258
|
+
isLoading: computed8(() => isLoadingSignal()),
|
|
2094
2259
|
refresh: store.refresh,
|
|
2095
|
-
report:
|
|
2260
|
+
report: computed8(() => reportSignal()),
|
|
2096
2261
|
runProof: store.runProof,
|
|
2097
|
-
updatedAt:
|
|
2262
|
+
updatedAt: computed8(() => updatedAtSignal())
|
|
2098
2263
|
};
|
|
2099
2264
|
}
|
|
2100
2265
|
}
|
|
@@ -2103,7 +2268,7 @@ __runInitializers(_init, 1, VoiceTurnLatencyService);
|
|
|
2103
2268
|
__decoratorMetadata(_init, VoiceTurnLatencyService);
|
|
2104
2269
|
let _VoiceTurnLatencyService = VoiceTurnLatencyService;
|
|
2105
2270
|
// src/angular/voice-turn-quality.service.ts
|
|
2106
|
-
import { computed as
|
|
2271
|
+
import { computed as computed9, Injectable as Injectable10, signal as signal10 } from "@angular/core";
|
|
2107
2272
|
|
|
2108
2273
|
// src/client/turnQuality.ts
|
|
2109
2274
|
var fetchVoiceTurnQuality = async (path = "/api/turn-quality", options = {}) => {
|
|
@@ -2186,17 +2351,17 @@ var createVoiceTurnQualityStore = (path = "/api/turn-quality", options = {}) =>
|
|
|
2186
2351
|
|
|
2187
2352
|
// src/angular/voice-turn-quality.service.ts
|
|
2188
2353
|
var _dec = [
|
|
2189
|
-
|
|
2354
|
+
Injectable10({ providedIn: "root" })
|
|
2190
2355
|
];
|
|
2191
2356
|
var _init = __decoratorStart(undefined);
|
|
2192
2357
|
|
|
2193
2358
|
class VoiceTurnQualityService {
|
|
2194
2359
|
connect(path = "/api/turn-quality", options = {}) {
|
|
2195
2360
|
const store = createVoiceTurnQualityStore(path, options);
|
|
2196
|
-
const errorSignal =
|
|
2197
|
-
const isLoadingSignal =
|
|
2198
|
-
const reportSignal =
|
|
2199
|
-
const updatedAtSignal =
|
|
2361
|
+
const errorSignal = signal10(null);
|
|
2362
|
+
const isLoadingSignal = signal10(false);
|
|
2363
|
+
const reportSignal = signal10(undefined);
|
|
2364
|
+
const updatedAtSignal = signal10(undefined);
|
|
2200
2365
|
const sync = () => {
|
|
2201
2366
|
const snapshot = store.getSnapshot();
|
|
2202
2367
|
errorSignal.set(snapshot.error);
|
|
@@ -2212,11 +2377,11 @@ class VoiceTurnQualityService {
|
|
|
2212
2377
|
unsubscribe();
|
|
2213
2378
|
store.close();
|
|
2214
2379
|
},
|
|
2215
|
-
error:
|
|
2216
|
-
isLoading:
|
|
2380
|
+
error: computed9(() => errorSignal()),
|
|
2381
|
+
isLoading: computed9(() => isLoadingSignal()),
|
|
2217
2382
|
refresh: store.refresh,
|
|
2218
|
-
report:
|
|
2219
|
-
updatedAt:
|
|
2383
|
+
report: computed9(() => reportSignal()),
|
|
2384
|
+
updatedAt: computed9(() => updatedAtSignal())
|
|
2220
2385
|
};
|
|
2221
2386
|
}
|
|
2222
2387
|
}
|
|
@@ -2225,7 +2390,7 @@ __runInitializers(_init, 1, VoiceTurnQualityService);
|
|
|
2225
2390
|
__decoratorMetadata(_init, VoiceTurnQualityService);
|
|
2226
2391
|
let _VoiceTurnQualityService = VoiceTurnQualityService;
|
|
2227
2392
|
// src/angular/voice-workflow-status.service.ts
|
|
2228
|
-
import { computed as
|
|
2393
|
+
import { computed as computed10, Injectable as Injectable11, signal as signal11 } from "@angular/core";
|
|
2229
2394
|
|
|
2230
2395
|
// src/client/workflowStatus.ts
|
|
2231
2396
|
var fetchVoiceWorkflowStatus = async (path = "/evals/scenarios/json", options = {}) => {
|
|
@@ -2308,17 +2473,17 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
2308
2473
|
|
|
2309
2474
|
// src/angular/voice-workflow-status.service.ts
|
|
2310
2475
|
var _dec = [
|
|
2311
|
-
|
|
2476
|
+
Injectable11({ providedIn: "root" })
|
|
2312
2477
|
];
|
|
2313
2478
|
var _init = __decoratorStart(undefined);
|
|
2314
2479
|
|
|
2315
2480
|
class VoiceWorkflowStatusService {
|
|
2316
2481
|
connect(path = "/evals/scenarios/json", options = {}) {
|
|
2317
2482
|
const store = createVoiceWorkflowStatusStore(path, options);
|
|
2318
|
-
const errorSignal =
|
|
2319
|
-
const isLoadingSignal =
|
|
2320
|
-
const reportSignal =
|
|
2321
|
-
const updatedAtSignal =
|
|
2483
|
+
const errorSignal = signal11(null);
|
|
2484
|
+
const isLoadingSignal = signal11(false);
|
|
2485
|
+
const reportSignal = signal11(undefined);
|
|
2486
|
+
const updatedAtSignal = signal11(undefined);
|
|
2322
2487
|
const sync = () => {
|
|
2323
2488
|
const snapshot = store.getSnapshot();
|
|
2324
2489
|
errorSignal.set(snapshot.error);
|
|
@@ -2336,11 +2501,11 @@ class VoiceWorkflowStatusService {
|
|
|
2336
2501
|
unsubscribe();
|
|
2337
2502
|
store.close();
|
|
2338
2503
|
},
|
|
2339
|
-
error:
|
|
2340
|
-
isLoading:
|
|
2504
|
+
error: computed10(() => errorSignal()),
|
|
2505
|
+
isLoading: computed10(() => isLoadingSignal()),
|
|
2341
2506
|
refresh: store.refresh,
|
|
2342
|
-
report:
|
|
2343
|
-
updatedAt:
|
|
2507
|
+
report: computed10(() => reportSignal()),
|
|
2508
|
+
updatedAt: computed10(() => updatedAtSignal())
|
|
2344
2509
|
};
|
|
2345
2510
|
}
|
|
2346
2511
|
}
|
|
@@ -2358,5 +2523,6 @@ export {
|
|
|
2358
2523
|
VoiceProviderStatusService,
|
|
2359
2524
|
VoiceProviderCapabilitiesService,
|
|
2360
2525
|
VoiceControllerService,
|
|
2526
|
+
VoiceCampaignDialerProofService,
|
|
2361
2527
|
VoiceAppKitStatusService
|
|
2362
2528
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type VoiceCampaignDialerProofClientOptions } from '../client/campaignDialerProof';
|
|
2
|
+
import type { VoiceCampaignDialerProofReport, VoiceCampaignDialerProofStatus } from '../campaignDialers';
|
|
3
|
+
export declare class VoiceCampaignDialerProofService {
|
|
4
|
+
connect(path?: string, options?: VoiceCampaignDialerProofClientOptions): {
|
|
5
|
+
close: () => void;
|
|
6
|
+
error: import("@angular/core").Signal<string | null>;
|
|
7
|
+
isLoading: import("@angular/core").Signal<boolean>;
|
|
8
|
+
refresh: () => Promise<VoiceCampaignDialerProofStatus | undefined>;
|
|
9
|
+
report: import("@angular/core").Signal<VoiceCampaignDialerProofReport | undefined>;
|
|
10
|
+
runProof: () => Promise<VoiceCampaignDialerProofReport>;
|
|
11
|
+
status: import("@angular/core").Signal<VoiceCampaignDialerProofStatus | undefined>;
|
|
12
|
+
updatedAt: import("@angular/core").Signal<number | undefined>;
|
|
13
|
+
};
|
|
14
|
+
}
|