@absolutejs/voice 0.0.22-beta.242 → 0.0.22-beta.244
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 +32 -1
- package/dist/angular/index.d.ts +1 -0
- package/dist/angular/index.js +306 -181
- package/dist/angular/voice-proof-trends.service.d.ts +12 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +490 -190
- package/dist/client/proofTrends.d.ts +19 -0
- package/dist/client/proofTrendsWidget.d.ts +37 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +207 -0
- package/dist/postCallAnalysis.d.ts +98 -0
- package/dist/react/VoiceProofTrends.d.ts +6 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +730 -350
- package/dist/react/useVoiceProofTrends.d.ts +8 -0
- package/dist/svelte/createVoiceProofTrends.d.ts +7 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +90 -0
- package/dist/vue/VoiceProofTrends.d.ts +21 -0
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.js +704 -321
- package/dist/vue/useVoiceProofTrends.d.ts +9 -0
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -317,9 +317,133 @@ VoicePlatformCoverageService = __decorateElement(_init, 0, "VoicePlatformCoverag
|
|
|
317
317
|
__runInitializers(_init, 1, VoicePlatformCoverageService);
|
|
318
318
|
__decoratorMetadata(_init, VoicePlatformCoverageService);
|
|
319
319
|
let _VoicePlatformCoverageService = VoicePlatformCoverageService;
|
|
320
|
-
// src/angular/voice-
|
|
320
|
+
// src/angular/voice-proof-trends.service.ts
|
|
321
321
|
import { computed as computed3, Injectable as Injectable3, signal as signal3 } from "@angular/core";
|
|
322
322
|
|
|
323
|
+
// src/client/proofTrends.ts
|
|
324
|
+
var fetchVoiceProofTrends = async (path = "/api/voice/proof-trends", options = {}) => {
|
|
325
|
+
const fetchImpl = options.fetch ?? globalThis.fetch;
|
|
326
|
+
const response = await fetchImpl(path);
|
|
327
|
+
if (!response.ok) {
|
|
328
|
+
throw new Error(`Voice proof trends failed: HTTP ${response.status}`);
|
|
329
|
+
}
|
|
330
|
+
return await response.json();
|
|
331
|
+
};
|
|
332
|
+
var createVoiceProofTrendsStore = (path = "/api/voice/proof-trends", options = {}) => {
|
|
333
|
+
const listeners = new Set;
|
|
334
|
+
let closed = false;
|
|
335
|
+
let timer;
|
|
336
|
+
let snapshot = {
|
|
337
|
+
error: null,
|
|
338
|
+
isLoading: false
|
|
339
|
+
};
|
|
340
|
+
const emit = () => {
|
|
341
|
+
for (const listener of listeners) {
|
|
342
|
+
listener();
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
const refresh = async () => {
|
|
346
|
+
if (closed) {
|
|
347
|
+
return snapshot.report;
|
|
348
|
+
}
|
|
349
|
+
snapshot = {
|
|
350
|
+
...snapshot,
|
|
351
|
+
error: null,
|
|
352
|
+
isLoading: true
|
|
353
|
+
};
|
|
354
|
+
emit();
|
|
355
|
+
try {
|
|
356
|
+
const report = await fetchVoiceProofTrends(path, options);
|
|
357
|
+
snapshot = {
|
|
358
|
+
error: null,
|
|
359
|
+
isLoading: false,
|
|
360
|
+
report,
|
|
361
|
+
updatedAt: Date.now()
|
|
362
|
+
};
|
|
363
|
+
emit();
|
|
364
|
+
return report;
|
|
365
|
+
} catch (error) {
|
|
366
|
+
snapshot = {
|
|
367
|
+
...snapshot,
|
|
368
|
+
error: error instanceof Error ? error.message : String(error),
|
|
369
|
+
isLoading: false
|
|
370
|
+
};
|
|
371
|
+
emit();
|
|
372
|
+
throw error;
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
const close = () => {
|
|
376
|
+
closed = true;
|
|
377
|
+
if (timer) {
|
|
378
|
+
clearInterval(timer);
|
|
379
|
+
timer = undefined;
|
|
380
|
+
}
|
|
381
|
+
listeners.clear();
|
|
382
|
+
};
|
|
383
|
+
if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
|
|
384
|
+
timer = setInterval(() => {
|
|
385
|
+
refresh().catch(() => {});
|
|
386
|
+
}, options.intervalMs);
|
|
387
|
+
}
|
|
388
|
+
return {
|
|
389
|
+
close,
|
|
390
|
+
getServerSnapshot: () => snapshot,
|
|
391
|
+
getSnapshot: () => snapshot,
|
|
392
|
+
refresh,
|
|
393
|
+
subscribe: (listener) => {
|
|
394
|
+
listeners.add(listener);
|
|
395
|
+
return () => {
|
|
396
|
+
listeners.delete(listener);
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
// src/angular/voice-proof-trends.service.ts
|
|
403
|
+
var _dec = [
|
|
404
|
+
Injectable3({ providedIn: "root" })
|
|
405
|
+
];
|
|
406
|
+
var _init = __decoratorStart(undefined);
|
|
407
|
+
|
|
408
|
+
class VoiceProofTrendsService {
|
|
409
|
+
connect(path = "/api/voice/proof-trends", options = {}) {
|
|
410
|
+
const store = createVoiceProofTrendsStore(path, options);
|
|
411
|
+
const errorSignal = signal3(null);
|
|
412
|
+
const isLoadingSignal = signal3(false);
|
|
413
|
+
const reportSignal = signal3(undefined);
|
|
414
|
+
const updatedAtSignal = signal3(undefined);
|
|
415
|
+
const sync = () => {
|
|
416
|
+
const snapshot = store.getSnapshot();
|
|
417
|
+
errorSignal.set(snapshot.error);
|
|
418
|
+
isLoadingSignal.set(snapshot.isLoading);
|
|
419
|
+
reportSignal.set(snapshot.report);
|
|
420
|
+
updatedAtSignal.set(snapshot.updatedAt);
|
|
421
|
+
};
|
|
422
|
+
const unsubscribe = store.subscribe(sync);
|
|
423
|
+
sync();
|
|
424
|
+
if (typeof window !== "undefined") {
|
|
425
|
+
store.refresh().catch(() => {});
|
|
426
|
+
}
|
|
427
|
+
return {
|
|
428
|
+
close: () => {
|
|
429
|
+
unsubscribe();
|
|
430
|
+
store.close();
|
|
431
|
+
},
|
|
432
|
+
error: computed3(() => errorSignal()),
|
|
433
|
+
isLoading: computed3(() => isLoadingSignal()),
|
|
434
|
+
refresh: store.refresh,
|
|
435
|
+
report: computed3(() => reportSignal()),
|
|
436
|
+
updatedAt: computed3(() => updatedAtSignal())
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
VoiceProofTrendsService = __decorateElement(_init, 0, "VoiceProofTrendsService", _dec, VoiceProofTrendsService);
|
|
441
|
+
__runInitializers(_init, 1, VoiceProofTrendsService);
|
|
442
|
+
__decoratorMetadata(_init, VoiceProofTrendsService);
|
|
443
|
+
let _VoiceProofTrendsService = VoiceProofTrendsService;
|
|
444
|
+
// src/angular/voice-ops-action-center.service.ts
|
|
445
|
+
import { computed as computed4, Injectable as Injectable4, signal as signal4 } from "@angular/core";
|
|
446
|
+
|
|
323
447
|
// src/client/opsActionCenter.ts
|
|
324
448
|
var recordVoiceOpsActionResult = async (result, options = {}) => {
|
|
325
449
|
if (options.auditPath === false) {
|
|
@@ -513,18 +637,18 @@ var createVoiceOpsActionCenterStore = (options = {}) => {
|
|
|
513
637
|
|
|
514
638
|
// src/angular/voice-ops-action-center.service.ts
|
|
515
639
|
var _dec = [
|
|
516
|
-
|
|
640
|
+
Injectable4({ providedIn: "root" })
|
|
517
641
|
];
|
|
518
642
|
var _init = __decoratorStart(undefined);
|
|
519
643
|
|
|
520
644
|
class VoiceOpsActionCenterService {
|
|
521
645
|
connect(options = {}) {
|
|
522
646
|
const store = createVoiceOpsActionCenterStore(options);
|
|
523
|
-
const actionsSignal =
|
|
524
|
-
const errorSignal =
|
|
525
|
-
const isRunningSignal =
|
|
526
|
-
const lastResultSignal =
|
|
527
|
-
const runningActionIdSignal =
|
|
647
|
+
const actionsSignal = signal4([]);
|
|
648
|
+
const errorSignal = signal4(null);
|
|
649
|
+
const isRunningSignal = signal4(false);
|
|
650
|
+
const lastResultSignal = signal4(undefined);
|
|
651
|
+
const runningActionIdSignal = signal4(undefined);
|
|
528
652
|
const sync = () => {
|
|
529
653
|
const snapshot = store.getSnapshot();
|
|
530
654
|
actionsSignal.set(snapshot.actions);
|
|
@@ -536,16 +660,16 @@ class VoiceOpsActionCenterService {
|
|
|
536
660
|
const unsubscribe = store.subscribe(sync);
|
|
537
661
|
sync();
|
|
538
662
|
return {
|
|
539
|
-
actions:
|
|
663
|
+
actions: computed4(() => actionsSignal()),
|
|
540
664
|
close: () => {
|
|
541
665
|
unsubscribe();
|
|
542
666
|
store.close();
|
|
543
667
|
},
|
|
544
|
-
error:
|
|
545
|
-
isRunning:
|
|
546
|
-
lastResult:
|
|
668
|
+
error: computed4(() => errorSignal()),
|
|
669
|
+
isRunning: computed4(() => isRunningSignal()),
|
|
670
|
+
lastResult: computed4(() => lastResultSignal()),
|
|
547
671
|
run: store.run,
|
|
548
|
-
runningActionId:
|
|
672
|
+
runningActionId: computed4(() => runningActionIdSignal()),
|
|
549
673
|
setActions: store.setActions
|
|
550
674
|
};
|
|
551
675
|
}
|
|
@@ -555,7 +679,7 @@ __runInitializers(_init, 1, VoiceOpsActionCenterService);
|
|
|
555
679
|
__decoratorMetadata(_init, VoiceOpsActionCenterService);
|
|
556
680
|
let _VoiceOpsActionCenterService = VoiceOpsActionCenterService;
|
|
557
681
|
// src/angular/voice-live-ops.service.ts
|
|
558
|
-
import { computed as
|
|
682
|
+
import { computed as computed5, Injectable as Injectable5, signal as signal5 } from "@angular/core";
|
|
559
683
|
|
|
560
684
|
// src/client/liveOps.ts
|
|
561
685
|
var postVoiceLiveOpsAction = async (input, options = {}) => {
|
|
@@ -645,17 +769,17 @@ var createVoiceLiveOpsStore = (options = {}) => {
|
|
|
645
769
|
|
|
646
770
|
// src/angular/voice-live-ops.service.ts
|
|
647
771
|
var _dec = [
|
|
648
|
-
|
|
772
|
+
Injectable5({ providedIn: "root" })
|
|
649
773
|
];
|
|
650
774
|
var _init = __decoratorStart(undefined);
|
|
651
775
|
|
|
652
776
|
class VoiceLiveOpsService {
|
|
653
777
|
connect(options = {}) {
|
|
654
778
|
const store = createVoiceLiveOpsStore(options);
|
|
655
|
-
const errorSignal =
|
|
656
|
-
const isRunningSignal =
|
|
657
|
-
const lastResultSignal =
|
|
658
|
-
const runningActionSignal =
|
|
779
|
+
const errorSignal = signal5(null);
|
|
780
|
+
const isRunningSignal = signal5(false);
|
|
781
|
+
const lastResultSignal = signal5(undefined);
|
|
782
|
+
const runningActionSignal = signal5(undefined);
|
|
659
783
|
const sync = () => {
|
|
660
784
|
const snapshot = store.getSnapshot();
|
|
661
785
|
errorSignal.set(snapshot.error);
|
|
@@ -670,11 +794,11 @@ class VoiceLiveOpsService {
|
|
|
670
794
|
unsubscribe();
|
|
671
795
|
store.close();
|
|
672
796
|
},
|
|
673
|
-
error:
|
|
674
|
-
isRunning:
|
|
675
|
-
lastResult:
|
|
797
|
+
error: computed5(() => errorSignal()),
|
|
798
|
+
isRunning: computed5(() => isRunningSignal()),
|
|
799
|
+
lastResult: computed5(() => lastResultSignal()),
|
|
676
800
|
run: store.run,
|
|
677
|
-
runningAction:
|
|
801
|
+
runningAction: computed5(() => runningActionSignal())
|
|
678
802
|
};
|
|
679
803
|
}
|
|
680
804
|
}
|
|
@@ -683,7 +807,7 @@ __runInitializers(_init, 1, VoiceLiveOpsService);
|
|
|
683
807
|
__decoratorMetadata(_init, VoiceLiveOpsService);
|
|
684
808
|
let _VoiceLiveOpsService = VoiceLiveOpsService;
|
|
685
809
|
// src/angular/voice-delivery-runtime.service.ts
|
|
686
|
-
import { computed as
|
|
810
|
+
import { computed as computed6, Injectable as Injectable6, signal as signal6 } from "@angular/core";
|
|
687
811
|
|
|
688
812
|
// src/client/deliveryRuntime.ts
|
|
689
813
|
var getDefaultActionPath = (path, action, options) => {
|
|
@@ -824,19 +948,19 @@ var createVoiceDeliveryRuntimeStore = (path = "/api/voice-delivery-runtime", opt
|
|
|
824
948
|
|
|
825
949
|
// src/angular/voice-delivery-runtime.service.ts
|
|
826
950
|
var _dec = [
|
|
827
|
-
|
|
951
|
+
Injectable6({ providedIn: "root" })
|
|
828
952
|
];
|
|
829
953
|
var _init = __decoratorStart(undefined);
|
|
830
954
|
|
|
831
955
|
class VoiceDeliveryRuntimeService {
|
|
832
956
|
connect(path = "/api/voice-delivery-runtime", options = {}) {
|
|
833
957
|
const store = createVoiceDeliveryRuntimeStore(path, options);
|
|
834
|
-
const actionErrorSignal =
|
|
835
|
-
const actionStatusSignal =
|
|
836
|
-
const errorSignal =
|
|
837
|
-
const isLoadingSignal =
|
|
838
|
-
const reportSignal =
|
|
839
|
-
const updatedAtSignal =
|
|
958
|
+
const actionErrorSignal = signal6(null);
|
|
959
|
+
const actionStatusSignal = signal6("idle");
|
|
960
|
+
const errorSignal = signal6(null);
|
|
961
|
+
const isLoadingSignal = signal6(false);
|
|
962
|
+
const reportSignal = signal6(undefined);
|
|
963
|
+
const updatedAtSignal = signal6(undefined);
|
|
840
964
|
const sync = () => {
|
|
841
965
|
const snapshot = store.getSnapshot();
|
|
842
966
|
actionErrorSignal.set(snapshot.actionError);
|
|
@@ -856,15 +980,15 @@ class VoiceDeliveryRuntimeService {
|
|
|
856
980
|
unsubscribe();
|
|
857
981
|
store.close();
|
|
858
982
|
},
|
|
859
|
-
error:
|
|
860
|
-
actionError:
|
|
861
|
-
actionStatus:
|
|
862
|
-
isLoading:
|
|
983
|
+
error: computed6(() => errorSignal()),
|
|
984
|
+
actionError: computed6(() => actionErrorSignal()),
|
|
985
|
+
actionStatus: computed6(() => actionStatusSignal()),
|
|
986
|
+
isLoading: computed6(() => isLoadingSignal()),
|
|
863
987
|
requeueDeadLetters: store.requeueDeadLetters,
|
|
864
988
|
refresh: store.refresh,
|
|
865
|
-
report:
|
|
989
|
+
report: computed6(() => reportSignal()),
|
|
866
990
|
tick: store.tick,
|
|
867
|
-
updatedAt:
|
|
991
|
+
updatedAt: computed6(() => updatedAtSignal())
|
|
868
992
|
};
|
|
869
993
|
}
|
|
870
994
|
}
|
|
@@ -873,7 +997,7 @@ __runInitializers(_init, 1, VoiceDeliveryRuntimeService);
|
|
|
873
997
|
__decoratorMetadata(_init, VoiceDeliveryRuntimeService);
|
|
874
998
|
let _VoiceDeliveryRuntimeService = VoiceDeliveryRuntimeService;
|
|
875
999
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
876
|
-
import { computed as
|
|
1000
|
+
import { computed as computed7, Injectable as Injectable7, signal as signal7 } from "@angular/core";
|
|
877
1001
|
|
|
878
1002
|
// src/client/campaignDialerProof.ts
|
|
879
1003
|
var fetchVoiceCampaignDialerProofStatus = async (path = "/api/voice/campaigns/dialer-proof", options = {}) => {
|
|
@@ -995,18 +1119,18 @@ var createVoiceCampaignDialerProofStore = (path = "/api/voice/campaigns/dialer-p
|
|
|
995
1119
|
|
|
996
1120
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
997
1121
|
var _dec = [
|
|
998
|
-
|
|
1122
|
+
Injectable7({ providedIn: "root" })
|
|
999
1123
|
];
|
|
1000
1124
|
var _init = __decoratorStart(undefined);
|
|
1001
1125
|
|
|
1002
1126
|
class VoiceCampaignDialerProofService {
|
|
1003
1127
|
connect(path = "/api/voice/campaigns/dialer-proof", options = {}) {
|
|
1004
1128
|
const store = createVoiceCampaignDialerProofStore(path, options);
|
|
1005
|
-
const errorSignal =
|
|
1006
|
-
const isLoadingSignal =
|
|
1007
|
-
const reportSignal =
|
|
1008
|
-
const statusSignal =
|
|
1009
|
-
const updatedAtSignal =
|
|
1129
|
+
const errorSignal = signal7(null);
|
|
1130
|
+
const isLoadingSignal = signal7(false);
|
|
1131
|
+
const reportSignal = signal7(undefined);
|
|
1132
|
+
const statusSignal = signal7(undefined);
|
|
1133
|
+
const updatedAtSignal = signal7(undefined);
|
|
1010
1134
|
const sync = () => {
|
|
1011
1135
|
const snapshot = store.getSnapshot();
|
|
1012
1136
|
errorSignal.set(snapshot.error);
|
|
@@ -1023,13 +1147,13 @@ class VoiceCampaignDialerProofService {
|
|
|
1023
1147
|
unsubscribe();
|
|
1024
1148
|
store.close();
|
|
1025
1149
|
},
|
|
1026
|
-
error:
|
|
1027
|
-
isLoading:
|
|
1150
|
+
error: computed7(() => errorSignal()),
|
|
1151
|
+
isLoading: computed7(() => isLoadingSignal()),
|
|
1028
1152
|
refresh: store.refresh,
|
|
1029
|
-
report:
|
|
1153
|
+
report: computed7(() => reportSignal()),
|
|
1030
1154
|
runProof: store.runProof,
|
|
1031
|
-
status:
|
|
1032
|
-
updatedAt:
|
|
1155
|
+
status: computed7(() => statusSignal()),
|
|
1156
|
+
updatedAt: computed7(() => updatedAtSignal())
|
|
1033
1157
|
};
|
|
1034
1158
|
}
|
|
1035
1159
|
}
|
|
@@ -1038,7 +1162,7 @@ __runInitializers(_init, 1, VoiceCampaignDialerProofService);
|
|
|
1038
1162
|
__decoratorMetadata(_init, VoiceCampaignDialerProofService);
|
|
1039
1163
|
let _VoiceCampaignDialerProofService = VoiceCampaignDialerProofService;
|
|
1040
1164
|
// src/angular/voice-stream.service.ts
|
|
1041
|
-
import { computed as
|
|
1165
|
+
import { computed as computed8, Injectable as Injectable8, signal as signal8 } from "@angular/core";
|
|
1042
1166
|
|
|
1043
1167
|
// src/client/actions.ts
|
|
1044
1168
|
var normalizeErrorMessage = (value) => {
|
|
@@ -1682,23 +1806,23 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
1682
1806
|
|
|
1683
1807
|
// src/angular/voice-stream.service.ts
|
|
1684
1808
|
var _dec = [
|
|
1685
|
-
|
|
1809
|
+
Injectable8({ providedIn: "root" })
|
|
1686
1810
|
];
|
|
1687
1811
|
var _init = __decoratorStart(undefined);
|
|
1688
1812
|
|
|
1689
1813
|
class VoiceStreamService {
|
|
1690
1814
|
connect(path, options = {}) {
|
|
1691
1815
|
const stream = createVoiceStream(path, options);
|
|
1692
|
-
const assistantAudioSignal =
|
|
1693
|
-
const assistantTextsSignal =
|
|
1694
|
-
const callSignal =
|
|
1695
|
-
const errorSignal =
|
|
1696
|
-
const isConnectedSignal =
|
|
1697
|
-
const partialSignal =
|
|
1698
|
-
const reconnectSignal =
|
|
1699
|
-
const sessionIdSignal =
|
|
1700
|
-
const statusSignal =
|
|
1701
|
-
const turnsSignal =
|
|
1816
|
+
const assistantAudioSignal = signal8([]);
|
|
1817
|
+
const assistantTextsSignal = signal8([]);
|
|
1818
|
+
const callSignal = signal8(null);
|
|
1819
|
+
const errorSignal = signal8(null);
|
|
1820
|
+
const isConnectedSignal = signal8(false);
|
|
1821
|
+
const partialSignal = signal8("");
|
|
1822
|
+
const reconnectSignal = signal8(stream.reconnect);
|
|
1823
|
+
const sessionIdSignal = signal8(stream.sessionId);
|
|
1824
|
+
const statusSignal = signal8(stream.status);
|
|
1825
|
+
const turnsSignal = signal8([]);
|
|
1702
1826
|
const sync = () => {
|
|
1703
1827
|
assistantAudioSignal.set([...stream.assistantAudio]);
|
|
1704
1828
|
assistantTextsSignal.set([...stream.assistantTexts]);
|
|
@@ -1714,23 +1838,23 @@ class VoiceStreamService {
|
|
|
1714
1838
|
const unsubscribe = stream.subscribe(sync);
|
|
1715
1839
|
sync();
|
|
1716
1840
|
return {
|
|
1717
|
-
assistantAudio:
|
|
1718
|
-
assistantTexts:
|
|
1719
|
-
call:
|
|
1841
|
+
assistantAudio: computed8(() => assistantAudioSignal()),
|
|
1842
|
+
assistantTexts: computed8(() => assistantTextsSignal()),
|
|
1843
|
+
call: computed8(() => callSignal()),
|
|
1720
1844
|
callControl: (message) => stream.callControl(message),
|
|
1721
1845
|
close: () => {
|
|
1722
1846
|
unsubscribe();
|
|
1723
1847
|
stream.close();
|
|
1724
1848
|
},
|
|
1725
1849
|
endTurn: () => stream.endTurn(),
|
|
1726
|
-
error:
|
|
1727
|
-
isConnected:
|
|
1728
|
-
partial:
|
|
1729
|
-
reconnect:
|
|
1850
|
+
error: computed8(() => errorSignal()),
|
|
1851
|
+
isConnected: computed8(() => isConnectedSignal()),
|
|
1852
|
+
partial: computed8(() => partialSignal()),
|
|
1853
|
+
reconnect: computed8(() => reconnectSignal()),
|
|
1730
1854
|
sendAudio: (audio) => stream.sendAudio(audio),
|
|
1731
|
-
sessionId:
|
|
1732
|
-
status:
|
|
1733
|
-
turns:
|
|
1855
|
+
sessionId: computed8(() => sessionIdSignal()),
|
|
1856
|
+
status: computed8(() => statusSignal()),
|
|
1857
|
+
turns: computed8(() => turnsSignal())
|
|
1734
1858
|
};
|
|
1735
1859
|
}
|
|
1736
1860
|
}
|
|
@@ -1739,7 +1863,7 @@ __runInitializers(_init, 1, VoiceStreamService);
|
|
|
1739
1863
|
__decoratorMetadata(_init, VoiceStreamService);
|
|
1740
1864
|
let _VoiceStreamService = VoiceStreamService;
|
|
1741
1865
|
// src/angular/voice-controller.service.ts
|
|
1742
|
-
import { computed as
|
|
1866
|
+
import { computed as computed9, Injectable as Injectable9, signal as signal9 } from "@angular/core";
|
|
1743
1867
|
|
|
1744
1868
|
// src/client/htmx.ts
|
|
1745
1869
|
var DEFAULT_EVENT_NAME = "voice-refresh";
|
|
@@ -2384,24 +2508,24 @@ var createVoiceController = (path, options = {}) => {
|
|
|
2384
2508
|
|
|
2385
2509
|
// src/angular/voice-controller.service.ts
|
|
2386
2510
|
var _dec = [
|
|
2387
|
-
|
|
2511
|
+
Injectable9({ providedIn: "root" })
|
|
2388
2512
|
];
|
|
2389
2513
|
var _init = __decoratorStart(undefined);
|
|
2390
2514
|
|
|
2391
2515
|
class VoiceControllerService {
|
|
2392
2516
|
connect(path, options = {}) {
|
|
2393
2517
|
const controller = createVoiceController(path, options);
|
|
2394
|
-
const assistantAudioSignal =
|
|
2395
|
-
const assistantTextsSignal =
|
|
2396
|
-
const errorSignal =
|
|
2397
|
-
const isConnectedSignal =
|
|
2398
|
-
const isRecordingSignal =
|
|
2399
|
-
const partialSignal =
|
|
2400
|
-
const reconnectSignal =
|
|
2401
|
-
const recordingErrorSignal =
|
|
2402
|
-
const sessionIdSignal =
|
|
2403
|
-
const statusSignal =
|
|
2404
|
-
const turnsSignal =
|
|
2518
|
+
const assistantAudioSignal = signal9([]);
|
|
2519
|
+
const assistantTextsSignal = signal9([]);
|
|
2520
|
+
const errorSignal = signal9(null);
|
|
2521
|
+
const isConnectedSignal = signal9(false);
|
|
2522
|
+
const isRecordingSignal = signal9(false);
|
|
2523
|
+
const partialSignal = signal9("");
|
|
2524
|
+
const reconnectSignal = signal9(controller.reconnect);
|
|
2525
|
+
const recordingErrorSignal = signal9(null);
|
|
2526
|
+
const sessionIdSignal = signal9(controller.sessionId);
|
|
2527
|
+
const statusSignal = signal9(controller.status);
|
|
2528
|
+
const turnsSignal = signal9([]);
|
|
2405
2529
|
const sync = () => {
|
|
2406
2530
|
assistantAudioSignal.set([...controller.assistantAudio]);
|
|
2407
2531
|
assistantTextsSignal.set([...controller.assistantTexts]);
|
|
@@ -2418,27 +2542,27 @@ class VoiceControllerService {
|
|
|
2418
2542
|
const unsubscribe = controller.subscribe(sync);
|
|
2419
2543
|
sync();
|
|
2420
2544
|
return {
|
|
2421
|
-
assistantAudio:
|
|
2422
|
-
assistantTexts:
|
|
2545
|
+
assistantAudio: computed9(() => assistantAudioSignal()),
|
|
2546
|
+
assistantTexts: computed9(() => assistantTextsSignal()),
|
|
2423
2547
|
bindHTMX: controller.bindHTMX,
|
|
2424
2548
|
close: () => {
|
|
2425
2549
|
unsubscribe();
|
|
2426
2550
|
controller.close();
|
|
2427
2551
|
},
|
|
2428
2552
|
endTurn: () => controller.endTurn(),
|
|
2429
|
-
error:
|
|
2430
|
-
isConnected:
|
|
2431
|
-
isRecording:
|
|
2432
|
-
partial:
|
|
2433
|
-
reconnect:
|
|
2434
|
-
recordingError:
|
|
2553
|
+
error: computed9(() => errorSignal()),
|
|
2554
|
+
isConnected: computed9(() => isConnectedSignal()),
|
|
2555
|
+
isRecording: computed9(() => isRecordingSignal()),
|
|
2556
|
+
partial: computed9(() => partialSignal()),
|
|
2557
|
+
reconnect: computed9(() => reconnectSignal()),
|
|
2558
|
+
recordingError: computed9(() => recordingErrorSignal()),
|
|
2435
2559
|
sendAudio: (audio) => controller.sendAudio(audio),
|
|
2436
|
-
sessionId:
|
|
2560
|
+
sessionId: computed9(() => sessionIdSignal()),
|
|
2437
2561
|
startRecording: () => controller.startRecording(),
|
|
2438
|
-
status:
|
|
2562
|
+
status: computed9(() => statusSignal()),
|
|
2439
2563
|
stopRecording: () => controller.stopRecording(),
|
|
2440
2564
|
toggleRecording: () => controller.toggleRecording(),
|
|
2441
|
-
turns:
|
|
2565
|
+
turns: computed9(() => turnsSignal())
|
|
2442
2566
|
};
|
|
2443
2567
|
}
|
|
2444
2568
|
}
|
|
@@ -2447,7 +2571,7 @@ __runInitializers(_init, 1, VoiceControllerService);
|
|
|
2447
2571
|
__decoratorMetadata(_init, VoiceControllerService);
|
|
2448
2572
|
let _VoiceControllerService = VoiceControllerService;
|
|
2449
2573
|
// src/angular/voice-provider-capabilities.service.ts
|
|
2450
|
-
import { computed as
|
|
2574
|
+
import { computed as computed10, Injectable as Injectable10, signal as signal10 } from "@angular/core";
|
|
2451
2575
|
|
|
2452
2576
|
// src/client/providerCapabilities.ts
|
|
2453
2577
|
var fetchVoiceProviderCapabilities = async (path = "/api/provider-capabilities", options = {}) => {
|
|
@@ -2530,17 +2654,17 @@ var createVoiceProviderCapabilitiesStore = (path = "/api/provider-capabilities",
|
|
|
2530
2654
|
|
|
2531
2655
|
// src/angular/voice-provider-capabilities.service.ts
|
|
2532
2656
|
var _dec = [
|
|
2533
|
-
|
|
2657
|
+
Injectable10({ providedIn: "root" })
|
|
2534
2658
|
];
|
|
2535
2659
|
var _init = __decoratorStart(undefined);
|
|
2536
2660
|
|
|
2537
2661
|
class VoiceProviderCapabilitiesService {
|
|
2538
2662
|
connect(path = "/api/provider-capabilities", options = {}) {
|
|
2539
2663
|
const store = createVoiceProviderCapabilitiesStore(path, options);
|
|
2540
|
-
const errorSignal =
|
|
2541
|
-
const isLoadingSignal =
|
|
2542
|
-
const reportSignal =
|
|
2543
|
-
const updatedAtSignal =
|
|
2664
|
+
const errorSignal = signal10(null);
|
|
2665
|
+
const isLoadingSignal = signal10(false);
|
|
2666
|
+
const reportSignal = signal10(undefined);
|
|
2667
|
+
const updatedAtSignal = signal10(undefined);
|
|
2544
2668
|
const sync = () => {
|
|
2545
2669
|
const snapshot = store.getSnapshot();
|
|
2546
2670
|
errorSignal.set(snapshot.error);
|
|
@@ -2556,11 +2680,11 @@ class VoiceProviderCapabilitiesService {
|
|
|
2556
2680
|
unsubscribe();
|
|
2557
2681
|
store.close();
|
|
2558
2682
|
},
|
|
2559
|
-
error:
|
|
2560
|
-
isLoading:
|
|
2683
|
+
error: computed10(() => errorSignal()),
|
|
2684
|
+
isLoading: computed10(() => isLoadingSignal()),
|
|
2561
2685
|
refresh: store.refresh,
|
|
2562
|
-
report:
|
|
2563
|
-
updatedAt:
|
|
2686
|
+
report: computed10(() => reportSignal()),
|
|
2687
|
+
updatedAt: computed10(() => updatedAtSignal())
|
|
2564
2688
|
};
|
|
2565
2689
|
}
|
|
2566
2690
|
}
|
|
@@ -2569,7 +2693,7 @@ __runInitializers(_init, 1, VoiceProviderCapabilitiesService);
|
|
|
2569
2693
|
__decoratorMetadata(_init, VoiceProviderCapabilitiesService);
|
|
2570
2694
|
let _VoiceProviderCapabilitiesService = VoiceProviderCapabilitiesService;
|
|
2571
2695
|
// src/angular/voice-provider-contracts.service.ts
|
|
2572
|
-
import { computed as
|
|
2696
|
+
import { computed as computed11, Injectable as Injectable11, signal as signal11 } from "@angular/core";
|
|
2573
2697
|
|
|
2574
2698
|
// src/client/providerContracts.ts
|
|
2575
2699
|
var fetchVoiceProviderContracts = async (path = "/api/provider-contracts", options = {}) => {
|
|
@@ -2648,17 +2772,17 @@ var createVoiceProviderContractsStore = (path = "/api/provider-contracts", optio
|
|
|
2648
2772
|
|
|
2649
2773
|
// src/angular/voice-provider-contracts.service.ts
|
|
2650
2774
|
var _dec = [
|
|
2651
|
-
|
|
2775
|
+
Injectable11({ providedIn: "root" })
|
|
2652
2776
|
];
|
|
2653
2777
|
var _init = __decoratorStart(undefined);
|
|
2654
2778
|
|
|
2655
2779
|
class VoiceProviderContractsService {
|
|
2656
2780
|
connect(path = "/api/provider-contracts", options = {}) {
|
|
2657
2781
|
const store = createVoiceProviderContractsStore(path, options);
|
|
2658
|
-
const errorSignal =
|
|
2659
|
-
const isLoadingSignal =
|
|
2660
|
-
const reportSignal =
|
|
2661
|
-
const updatedAtSignal =
|
|
2782
|
+
const errorSignal = signal11(null);
|
|
2783
|
+
const isLoadingSignal = signal11(false);
|
|
2784
|
+
const reportSignal = signal11(undefined);
|
|
2785
|
+
const updatedAtSignal = signal11(undefined);
|
|
2662
2786
|
const sync = () => {
|
|
2663
2787
|
const snapshot = store.getSnapshot();
|
|
2664
2788
|
errorSignal.set(snapshot.error);
|
|
@@ -2674,11 +2798,11 @@ class VoiceProviderContractsService {
|
|
|
2674
2798
|
unsubscribe();
|
|
2675
2799
|
store.close();
|
|
2676
2800
|
},
|
|
2677
|
-
error:
|
|
2678
|
-
isLoading:
|
|
2801
|
+
error: computed11(() => errorSignal()),
|
|
2802
|
+
isLoading: computed11(() => isLoadingSignal()),
|
|
2679
2803
|
refresh: store.refresh,
|
|
2680
|
-
report:
|
|
2681
|
-
updatedAt:
|
|
2804
|
+
report: computed11(() => reportSignal()),
|
|
2805
|
+
updatedAt: computed11(() => updatedAtSignal())
|
|
2682
2806
|
};
|
|
2683
2807
|
}
|
|
2684
2808
|
}
|
|
@@ -2687,7 +2811,7 @@ __runInitializers(_init, 1, VoiceProviderContractsService);
|
|
|
2687
2811
|
__decoratorMetadata(_init, VoiceProviderContractsService);
|
|
2688
2812
|
let _VoiceProviderContractsService = VoiceProviderContractsService;
|
|
2689
2813
|
// src/angular/voice-provider-status.service.ts
|
|
2690
|
-
import { computed as
|
|
2814
|
+
import { computed as computed12, Injectable as Injectable12, signal as signal12 } from "@angular/core";
|
|
2691
2815
|
|
|
2692
2816
|
// src/client/providerStatus.ts
|
|
2693
2817
|
var fetchVoiceProviderStatus = async (path = "/api/provider-status", options = {}) => {
|
|
@@ -2771,17 +2895,17 @@ var createVoiceProviderStatusStore = (path = "/api/provider-status", options = {
|
|
|
2771
2895
|
|
|
2772
2896
|
// src/angular/voice-provider-status.service.ts
|
|
2773
2897
|
var _dec = [
|
|
2774
|
-
|
|
2898
|
+
Injectable12({ providedIn: "root" })
|
|
2775
2899
|
];
|
|
2776
2900
|
var _init = __decoratorStart(undefined);
|
|
2777
2901
|
|
|
2778
2902
|
class VoiceProviderStatusService {
|
|
2779
2903
|
connect(path = "/api/provider-status", options = {}) {
|
|
2780
2904
|
const store = createVoiceProviderStatusStore(path, options);
|
|
2781
|
-
const errorSignal =
|
|
2782
|
-
const isLoadingSignal =
|
|
2783
|
-
const providersSignal =
|
|
2784
|
-
const updatedAtSignal =
|
|
2905
|
+
const errorSignal = signal12(null);
|
|
2906
|
+
const isLoadingSignal = signal12(false);
|
|
2907
|
+
const providersSignal = signal12([]);
|
|
2908
|
+
const updatedAtSignal = signal12(undefined);
|
|
2785
2909
|
const sync = () => {
|
|
2786
2910
|
const snapshot = store.getSnapshot();
|
|
2787
2911
|
errorSignal.set(snapshot.error);
|
|
@@ -2797,11 +2921,11 @@ class VoiceProviderStatusService {
|
|
|
2797
2921
|
unsubscribe();
|
|
2798
2922
|
store.close();
|
|
2799
2923
|
},
|
|
2800
|
-
error:
|
|
2801
|
-
isLoading:
|
|
2802
|
-
providers:
|
|
2924
|
+
error: computed12(() => errorSignal()),
|
|
2925
|
+
isLoading: computed12(() => isLoadingSignal()),
|
|
2926
|
+
providers: computed12(() => providersSignal()),
|
|
2803
2927
|
refresh: store.refresh,
|
|
2804
|
-
updatedAt:
|
|
2928
|
+
updatedAt: computed12(() => updatedAtSignal())
|
|
2805
2929
|
};
|
|
2806
2930
|
}
|
|
2807
2931
|
}
|
|
@@ -2810,7 +2934,7 @@ __runInitializers(_init, 1, VoiceProviderStatusService);
|
|
|
2810
2934
|
__decoratorMetadata(_init, VoiceProviderStatusService);
|
|
2811
2935
|
let _VoiceProviderStatusService = VoiceProviderStatusService;
|
|
2812
2936
|
// src/angular/voice-routing-status.service.ts
|
|
2813
|
-
import { Injectable as
|
|
2937
|
+
import { Injectable as Injectable13, signal as signal13 } from "@angular/core";
|
|
2814
2938
|
|
|
2815
2939
|
// src/client/routingStatus.ts
|
|
2816
2940
|
var fetchVoiceRoutingStatus = async (path = "/api/routing/latest", options = {}) => {
|
|
@@ -2894,17 +3018,17 @@ var createVoiceRoutingStatusStore = (path = "/api/routing/latest", options = {})
|
|
|
2894
3018
|
|
|
2895
3019
|
// src/angular/voice-routing-status.service.ts
|
|
2896
3020
|
var _dec = [
|
|
2897
|
-
|
|
3021
|
+
Injectable13({ providedIn: "root" })
|
|
2898
3022
|
];
|
|
2899
3023
|
var _init = __decoratorStart(undefined);
|
|
2900
3024
|
|
|
2901
3025
|
class VoiceRoutingStatusService {
|
|
2902
3026
|
connect(path = "/api/routing/latest", options = {}) {
|
|
2903
3027
|
const store = createVoiceRoutingStatusStore(path, options);
|
|
2904
|
-
const decisionSignal =
|
|
2905
|
-
const errorSignal =
|
|
2906
|
-
const isLoadingSignal =
|
|
2907
|
-
const updatedAtSignal =
|
|
3028
|
+
const decisionSignal = signal13(null);
|
|
3029
|
+
const errorSignal = signal13(null);
|
|
3030
|
+
const isLoadingSignal = signal13(false);
|
|
3031
|
+
const updatedAtSignal = signal13(undefined);
|
|
2908
3032
|
const sync = () => {
|
|
2909
3033
|
const snapshot = store.getSnapshot();
|
|
2910
3034
|
decisionSignal.set(snapshot.decision);
|
|
@@ -2933,7 +3057,7 @@ __runInitializers(_init, 1, VoiceRoutingStatusService);
|
|
|
2933
3057
|
__decoratorMetadata(_init, VoiceRoutingStatusService);
|
|
2934
3058
|
let _VoiceRoutingStatusService = VoiceRoutingStatusService;
|
|
2935
3059
|
// src/angular/voice-trace-timeline.service.ts
|
|
2936
|
-
import { computed as
|
|
3060
|
+
import { computed as computed13, Injectable as Injectable14, signal as signal14 } from "@angular/core";
|
|
2937
3061
|
|
|
2938
3062
|
// src/client/traceTimeline.ts
|
|
2939
3063
|
var fetchVoiceTraceTimeline = async (path = "/api/voice-traces", options = {}) => {
|
|
@@ -3017,17 +3141,17 @@ var createVoiceTraceTimelineStore = (path = "/api/voice-traces", options = {}) =
|
|
|
3017
3141
|
|
|
3018
3142
|
// src/angular/voice-trace-timeline.service.ts
|
|
3019
3143
|
var _dec = [
|
|
3020
|
-
|
|
3144
|
+
Injectable14({ providedIn: "root" })
|
|
3021
3145
|
];
|
|
3022
3146
|
var _init = __decoratorStart(undefined);
|
|
3023
3147
|
|
|
3024
3148
|
class VoiceTraceTimelineService {
|
|
3025
3149
|
connect(path = "/api/voice-traces", options = {}) {
|
|
3026
3150
|
const store = createVoiceTraceTimelineStore(path, options);
|
|
3027
|
-
const errorSignal =
|
|
3028
|
-
const isLoadingSignal =
|
|
3029
|
-
const reportSignal =
|
|
3030
|
-
const updatedAtSignal =
|
|
3151
|
+
const errorSignal = signal14(null);
|
|
3152
|
+
const isLoadingSignal = signal14(false);
|
|
3153
|
+
const reportSignal = signal14(null);
|
|
3154
|
+
const updatedAtSignal = signal14(undefined);
|
|
3031
3155
|
const sync = () => {
|
|
3032
3156
|
const snapshot = store.getSnapshot();
|
|
3033
3157
|
errorSignal.set(snapshot.error);
|
|
@@ -3043,11 +3167,11 @@ class VoiceTraceTimelineService {
|
|
|
3043
3167
|
unsubscribe();
|
|
3044
3168
|
store.close();
|
|
3045
3169
|
},
|
|
3046
|
-
error:
|
|
3047
|
-
isLoading:
|
|
3170
|
+
error: computed13(() => errorSignal()),
|
|
3171
|
+
isLoading: computed13(() => isLoadingSignal()),
|
|
3048
3172
|
refresh: store.refresh,
|
|
3049
|
-
report:
|
|
3050
|
-
updatedAt:
|
|
3173
|
+
report: computed13(() => reportSignal()),
|
|
3174
|
+
updatedAt: computed13(() => updatedAtSignal())
|
|
3051
3175
|
};
|
|
3052
3176
|
}
|
|
3053
3177
|
}
|
|
@@ -3056,7 +3180,7 @@ __runInitializers(_init, 1, VoiceTraceTimelineService);
|
|
|
3056
3180
|
__decoratorMetadata(_init, VoiceTraceTimelineService);
|
|
3057
3181
|
let _VoiceTraceTimelineService = VoiceTraceTimelineService;
|
|
3058
3182
|
// src/angular/voice-agent-squad-status.service.ts
|
|
3059
|
-
import { computed as
|
|
3183
|
+
import { computed as computed14, Injectable as Injectable15, signal as signal15 } from "@angular/core";
|
|
3060
3184
|
|
|
3061
3185
|
// src/client/agentSquadStatus.ts
|
|
3062
3186
|
var getString = (value) => typeof value === "string" && value.trim() ? value.trim() : undefined;
|
|
@@ -3134,17 +3258,17 @@ var createVoiceAgentSquadStatusStore = (path = "/api/voice-traces", options = {}
|
|
|
3134
3258
|
|
|
3135
3259
|
// src/angular/voice-agent-squad-status.service.ts
|
|
3136
3260
|
var _dec = [
|
|
3137
|
-
|
|
3261
|
+
Injectable15({ providedIn: "root" })
|
|
3138
3262
|
];
|
|
3139
3263
|
var _init = __decoratorStart(undefined);
|
|
3140
3264
|
|
|
3141
3265
|
class VoiceAgentSquadStatusService {
|
|
3142
3266
|
connect(path = "/api/voice-traces", options = {}) {
|
|
3143
3267
|
const store = createVoiceAgentSquadStatusStore(path, options);
|
|
3144
|
-
const errorSignal =
|
|
3145
|
-
const isLoadingSignal =
|
|
3146
|
-
const reportSignal =
|
|
3147
|
-
const updatedAtSignal =
|
|
3268
|
+
const errorSignal = signal15(null);
|
|
3269
|
+
const isLoadingSignal = signal15(false);
|
|
3270
|
+
const reportSignal = signal15(undefined);
|
|
3271
|
+
const updatedAtSignal = signal15(undefined);
|
|
3148
3272
|
const sync = () => {
|
|
3149
3273
|
const snapshot = store.getSnapshot();
|
|
3150
3274
|
errorSignal.set(snapshot.error);
|
|
@@ -3160,12 +3284,12 @@ class VoiceAgentSquadStatusService {
|
|
|
3160
3284
|
unsubscribe();
|
|
3161
3285
|
store.close();
|
|
3162
3286
|
},
|
|
3163
|
-
current:
|
|
3164
|
-
error:
|
|
3165
|
-
isLoading:
|
|
3287
|
+
current: computed14(() => reportSignal()?.current),
|
|
3288
|
+
error: computed14(() => errorSignal()),
|
|
3289
|
+
isLoading: computed14(() => isLoadingSignal()),
|
|
3166
3290
|
refresh: store.refresh,
|
|
3167
|
-
report:
|
|
3168
|
-
updatedAt:
|
|
3291
|
+
report: computed14(() => reportSignal()),
|
|
3292
|
+
updatedAt: computed14(() => updatedAtSignal())
|
|
3169
3293
|
};
|
|
3170
3294
|
}
|
|
3171
3295
|
}
|
|
@@ -3174,7 +3298,7 @@ __runInitializers(_init, 1, VoiceAgentSquadStatusService);
|
|
|
3174
3298
|
__decoratorMetadata(_init, VoiceAgentSquadStatusService);
|
|
3175
3299
|
let _VoiceAgentSquadStatusService = VoiceAgentSquadStatusService;
|
|
3176
3300
|
// src/angular/voice-turn-latency.service.ts
|
|
3177
|
-
import { computed as
|
|
3301
|
+
import { computed as computed15, Injectable as Injectable16, signal as signal16 } from "@angular/core";
|
|
3178
3302
|
|
|
3179
3303
|
// src/client/turnLatency.ts
|
|
3180
3304
|
var fetchVoiceTurnLatency = async (path = "/api/turn-latency", options = {}) => {
|
|
@@ -3281,17 +3405,17 @@ var createVoiceTurnLatencyStore = (path = "/api/turn-latency", options = {}) =>
|
|
|
3281
3405
|
|
|
3282
3406
|
// src/angular/voice-turn-latency.service.ts
|
|
3283
3407
|
var _dec = [
|
|
3284
|
-
|
|
3408
|
+
Injectable16({ providedIn: "root" })
|
|
3285
3409
|
];
|
|
3286
3410
|
var _init = __decoratorStart(undefined);
|
|
3287
3411
|
|
|
3288
3412
|
class VoiceTurnLatencyService {
|
|
3289
3413
|
connect(path = "/api/turn-latency", options = {}) {
|
|
3290
3414
|
const store = createVoiceTurnLatencyStore(path, options);
|
|
3291
|
-
const errorSignal =
|
|
3292
|
-
const isLoadingSignal =
|
|
3293
|
-
const reportSignal =
|
|
3294
|
-
const updatedAtSignal =
|
|
3415
|
+
const errorSignal = signal16(null);
|
|
3416
|
+
const isLoadingSignal = signal16(false);
|
|
3417
|
+
const reportSignal = signal16(undefined);
|
|
3418
|
+
const updatedAtSignal = signal16(undefined);
|
|
3295
3419
|
const sync = () => {
|
|
3296
3420
|
const snapshot = store.getSnapshot();
|
|
3297
3421
|
errorSignal.set(snapshot.error);
|
|
@@ -3307,12 +3431,12 @@ class VoiceTurnLatencyService {
|
|
|
3307
3431
|
unsubscribe();
|
|
3308
3432
|
store.close();
|
|
3309
3433
|
},
|
|
3310
|
-
error:
|
|
3311
|
-
isLoading:
|
|
3434
|
+
error: computed15(() => errorSignal()),
|
|
3435
|
+
isLoading: computed15(() => isLoadingSignal()),
|
|
3312
3436
|
refresh: store.refresh,
|
|
3313
|
-
report:
|
|
3437
|
+
report: computed15(() => reportSignal()),
|
|
3314
3438
|
runProof: store.runProof,
|
|
3315
|
-
updatedAt:
|
|
3439
|
+
updatedAt: computed15(() => updatedAtSignal())
|
|
3316
3440
|
};
|
|
3317
3441
|
}
|
|
3318
3442
|
}
|
|
@@ -3321,7 +3445,7 @@ __runInitializers(_init, 1, VoiceTurnLatencyService);
|
|
|
3321
3445
|
__decoratorMetadata(_init, VoiceTurnLatencyService);
|
|
3322
3446
|
let _VoiceTurnLatencyService = VoiceTurnLatencyService;
|
|
3323
3447
|
// src/angular/voice-turn-quality.service.ts
|
|
3324
|
-
import { computed as
|
|
3448
|
+
import { computed as computed16, Injectable as Injectable17, signal as signal17 } from "@angular/core";
|
|
3325
3449
|
|
|
3326
3450
|
// src/client/turnQuality.ts
|
|
3327
3451
|
var fetchVoiceTurnQuality = async (path = "/api/turn-quality", options = {}) => {
|
|
@@ -3404,17 +3528,17 @@ var createVoiceTurnQualityStore = (path = "/api/turn-quality", options = {}) =>
|
|
|
3404
3528
|
|
|
3405
3529
|
// src/angular/voice-turn-quality.service.ts
|
|
3406
3530
|
var _dec = [
|
|
3407
|
-
|
|
3531
|
+
Injectable17({ providedIn: "root" })
|
|
3408
3532
|
];
|
|
3409
3533
|
var _init = __decoratorStart(undefined);
|
|
3410
3534
|
|
|
3411
3535
|
class VoiceTurnQualityService {
|
|
3412
3536
|
connect(path = "/api/turn-quality", options = {}) {
|
|
3413
3537
|
const store = createVoiceTurnQualityStore(path, options);
|
|
3414
|
-
const errorSignal =
|
|
3415
|
-
const isLoadingSignal =
|
|
3416
|
-
const reportSignal =
|
|
3417
|
-
const updatedAtSignal =
|
|
3538
|
+
const errorSignal = signal17(null);
|
|
3539
|
+
const isLoadingSignal = signal17(false);
|
|
3540
|
+
const reportSignal = signal17(undefined);
|
|
3541
|
+
const updatedAtSignal = signal17(undefined);
|
|
3418
3542
|
const sync = () => {
|
|
3419
3543
|
const snapshot = store.getSnapshot();
|
|
3420
3544
|
errorSignal.set(snapshot.error);
|
|
@@ -3430,11 +3554,11 @@ class VoiceTurnQualityService {
|
|
|
3430
3554
|
unsubscribe();
|
|
3431
3555
|
store.close();
|
|
3432
3556
|
},
|
|
3433
|
-
error:
|
|
3434
|
-
isLoading:
|
|
3557
|
+
error: computed16(() => errorSignal()),
|
|
3558
|
+
isLoading: computed16(() => isLoadingSignal()),
|
|
3435
3559
|
refresh: store.refresh,
|
|
3436
|
-
report:
|
|
3437
|
-
updatedAt:
|
|
3560
|
+
report: computed16(() => reportSignal()),
|
|
3561
|
+
updatedAt: computed16(() => updatedAtSignal())
|
|
3438
3562
|
};
|
|
3439
3563
|
}
|
|
3440
3564
|
}
|
|
@@ -3443,7 +3567,7 @@ __runInitializers(_init, 1, VoiceTurnQualityService);
|
|
|
3443
3567
|
__decoratorMetadata(_init, VoiceTurnQualityService);
|
|
3444
3568
|
let _VoiceTurnQualityService = VoiceTurnQualityService;
|
|
3445
3569
|
// src/angular/voice-workflow-status.service.ts
|
|
3446
|
-
import { computed as
|
|
3570
|
+
import { computed as computed17, Injectable as Injectable18, signal as signal18 } from "@angular/core";
|
|
3447
3571
|
|
|
3448
3572
|
// src/client/workflowStatus.ts
|
|
3449
3573
|
var fetchVoiceWorkflowStatus = async (path = "/evals/scenarios/json", options = {}) => {
|
|
@@ -3526,17 +3650,17 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
3526
3650
|
|
|
3527
3651
|
// src/angular/voice-workflow-status.service.ts
|
|
3528
3652
|
var _dec = [
|
|
3529
|
-
|
|
3653
|
+
Injectable18({ providedIn: "root" })
|
|
3530
3654
|
];
|
|
3531
3655
|
var _init = __decoratorStart(undefined);
|
|
3532
3656
|
|
|
3533
3657
|
class VoiceWorkflowStatusService {
|
|
3534
3658
|
connect(path = "/evals/scenarios/json", options = {}) {
|
|
3535
3659
|
const store = createVoiceWorkflowStatusStore(path, options);
|
|
3536
|
-
const errorSignal =
|
|
3537
|
-
const isLoadingSignal =
|
|
3538
|
-
const reportSignal =
|
|
3539
|
-
const updatedAtSignal =
|
|
3660
|
+
const errorSignal = signal18(null);
|
|
3661
|
+
const isLoadingSignal = signal18(false);
|
|
3662
|
+
const reportSignal = signal18(undefined);
|
|
3663
|
+
const updatedAtSignal = signal18(undefined);
|
|
3540
3664
|
const sync = () => {
|
|
3541
3665
|
const snapshot = store.getSnapshot();
|
|
3542
3666
|
errorSignal.set(snapshot.error);
|
|
@@ -3554,11 +3678,11 @@ class VoiceWorkflowStatusService {
|
|
|
3554
3678
|
unsubscribe();
|
|
3555
3679
|
store.close();
|
|
3556
3680
|
},
|
|
3557
|
-
error:
|
|
3558
|
-
isLoading:
|
|
3681
|
+
error: computed17(() => errorSignal()),
|
|
3682
|
+
isLoading: computed17(() => isLoadingSignal()),
|
|
3559
3683
|
refresh: store.refresh,
|
|
3560
|
-
report:
|
|
3561
|
-
updatedAt:
|
|
3684
|
+
report: computed17(() => reportSignal()),
|
|
3685
|
+
updatedAt: computed17(() => updatedAtSignal())
|
|
3562
3686
|
};
|
|
3563
3687
|
}
|
|
3564
3688
|
}
|
|
@@ -3576,6 +3700,7 @@ export {
|
|
|
3576
3700
|
VoiceProviderStatusService,
|
|
3577
3701
|
VoiceProviderContractsService,
|
|
3578
3702
|
VoiceProviderCapabilitiesService,
|
|
3703
|
+
VoiceProofTrendsService,
|
|
3579
3704
|
VoicePlatformCoverageService,
|
|
3580
3705
|
VoiceOpsStatusService,
|
|
3581
3706
|
VoiceOpsActionCenterService,
|