@absolutejs/voice 0.0.22-beta.290 → 0.0.22-beta.292
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 +53 -0
- package/dist/angular/index.d.ts +1 -0
- package/dist/angular/index.js +303 -181
- package/dist/angular/voice-readiness-failures.service.d.ts +13 -0
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.js +367 -183
- package/dist/client/readinessFailures.d.ts +19 -0
- package/dist/client/readinessFailuresWidget.d.ts +42 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +90 -14
- package/dist/modelAdapters.d.ts +37 -0
- package/dist/react/VoiceReadinessFailures.d.ts +6 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +635 -345
- package/dist/react/useVoiceReadinessFailures.d.ts +8 -0
- package/dist/svelte/createVoiceReadinessFailures.d.ts +7 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +86 -0
- package/dist/testing/index.js +87 -12
- package/dist/vue/VoiceReadinessFailures.d.ts +21 -0
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.js +540 -262
- package/dist/vue/useVoiceReadinessFailures.d.ts +755 -0
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -441,9 +441,130 @@ VoiceProofTrendsService = __decorateElement(_init, 0, "VoiceProofTrendsService",
|
|
|
441
441
|
__runInitializers(_init, 1, VoiceProofTrendsService);
|
|
442
442
|
__decoratorMetadata(_init, VoiceProofTrendsService);
|
|
443
443
|
let _VoiceProofTrendsService = VoiceProofTrendsService;
|
|
444
|
-
// src/angular/voice-
|
|
444
|
+
// src/angular/voice-readiness-failures.service.ts
|
|
445
445
|
import { computed as computed4, Injectable as Injectable4, signal as signal4 } from "@angular/core";
|
|
446
446
|
|
|
447
|
+
// src/client/readinessFailures.ts
|
|
448
|
+
var fetchVoiceReadinessFailures = async (path = "/api/production-readiness", options = {}) => {
|
|
449
|
+
const fetchImpl = options.fetch ?? globalThis.fetch;
|
|
450
|
+
const response = await fetchImpl(path);
|
|
451
|
+
if (!response.ok) {
|
|
452
|
+
throw new Error(`Voice readiness failed: HTTP ${response.status}`);
|
|
453
|
+
}
|
|
454
|
+
return await response.json();
|
|
455
|
+
};
|
|
456
|
+
var createVoiceReadinessFailuresStore = (path = "/api/production-readiness", options = {}) => {
|
|
457
|
+
const listeners = new Set;
|
|
458
|
+
let closed = false;
|
|
459
|
+
let timer;
|
|
460
|
+
let snapshot = {
|
|
461
|
+
error: null,
|
|
462
|
+
isLoading: false
|
|
463
|
+
};
|
|
464
|
+
const emit = () => {
|
|
465
|
+
for (const listener of listeners) {
|
|
466
|
+
listener();
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
const refresh = async () => {
|
|
470
|
+
if (closed) {
|
|
471
|
+
return snapshot.report;
|
|
472
|
+
}
|
|
473
|
+
snapshot = { ...snapshot, error: null, isLoading: true };
|
|
474
|
+
emit();
|
|
475
|
+
try {
|
|
476
|
+
const report = await fetchVoiceReadinessFailures(path, options);
|
|
477
|
+
snapshot = {
|
|
478
|
+
error: null,
|
|
479
|
+
isLoading: false,
|
|
480
|
+
report,
|
|
481
|
+
updatedAt: Date.now()
|
|
482
|
+
};
|
|
483
|
+
emit();
|
|
484
|
+
return report;
|
|
485
|
+
} catch (error) {
|
|
486
|
+
snapshot = {
|
|
487
|
+
...snapshot,
|
|
488
|
+
error: error instanceof Error ? error.message : String(error),
|
|
489
|
+
isLoading: false
|
|
490
|
+
};
|
|
491
|
+
emit();
|
|
492
|
+
throw error;
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
const close = () => {
|
|
496
|
+
closed = true;
|
|
497
|
+
if (timer) {
|
|
498
|
+
clearInterval(timer);
|
|
499
|
+
timer = undefined;
|
|
500
|
+
}
|
|
501
|
+
listeners.clear();
|
|
502
|
+
};
|
|
503
|
+
if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
|
|
504
|
+
timer = setInterval(() => {
|
|
505
|
+
refresh().catch(() => {});
|
|
506
|
+
}, options.intervalMs);
|
|
507
|
+
}
|
|
508
|
+
return {
|
|
509
|
+
close,
|
|
510
|
+
getServerSnapshot: () => snapshot,
|
|
511
|
+
getSnapshot: () => snapshot,
|
|
512
|
+
refresh,
|
|
513
|
+
subscribe: (listener) => {
|
|
514
|
+
listeners.add(listener);
|
|
515
|
+
return () => {
|
|
516
|
+
listeners.delete(listener);
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
// src/angular/voice-readiness-failures.service.ts
|
|
523
|
+
var _dec = [
|
|
524
|
+
Injectable4({ providedIn: "root" })
|
|
525
|
+
];
|
|
526
|
+
var _init = __decoratorStart(undefined);
|
|
527
|
+
|
|
528
|
+
class VoiceReadinessFailuresService {
|
|
529
|
+
connect(path = "/api/production-readiness", options = {}) {
|
|
530
|
+
const store = createVoiceReadinessFailuresStore(path, options);
|
|
531
|
+
const errorSignal = signal4(null);
|
|
532
|
+
const isLoadingSignal = signal4(false);
|
|
533
|
+
const reportSignal = signal4(undefined);
|
|
534
|
+
const updatedAtSignal = signal4(undefined);
|
|
535
|
+
const sync = () => {
|
|
536
|
+
const snapshot = store.getSnapshot();
|
|
537
|
+
errorSignal.set(snapshot.error);
|
|
538
|
+
isLoadingSignal.set(snapshot.isLoading);
|
|
539
|
+
reportSignal.set(snapshot.report);
|
|
540
|
+
updatedAtSignal.set(snapshot.updatedAt);
|
|
541
|
+
};
|
|
542
|
+
const unsubscribe = store.subscribe(sync);
|
|
543
|
+
sync();
|
|
544
|
+
if (typeof window !== "undefined") {
|
|
545
|
+
store.refresh().catch(() => {});
|
|
546
|
+
}
|
|
547
|
+
return {
|
|
548
|
+
close: () => {
|
|
549
|
+
unsubscribe();
|
|
550
|
+
store.close();
|
|
551
|
+
},
|
|
552
|
+
error: computed4(() => errorSignal()),
|
|
553
|
+
explanations: computed4(() => reportSignal()?.checks.filter((check) => check.status !== "pass" && !!check.gateExplanation) ?? []),
|
|
554
|
+
isLoading: computed4(() => isLoadingSignal()),
|
|
555
|
+
refresh: store.refresh,
|
|
556
|
+
report: computed4(() => reportSignal()),
|
|
557
|
+
updatedAt: computed4(() => updatedAtSignal())
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
VoiceReadinessFailuresService = __decorateElement(_init, 0, "VoiceReadinessFailuresService", _dec, VoiceReadinessFailuresService);
|
|
562
|
+
__runInitializers(_init, 1, VoiceReadinessFailuresService);
|
|
563
|
+
__decoratorMetadata(_init, VoiceReadinessFailuresService);
|
|
564
|
+
let _VoiceReadinessFailuresService = VoiceReadinessFailuresService;
|
|
565
|
+
// src/angular/voice-ops-action-center.service.ts
|
|
566
|
+
import { computed as computed5, Injectable as Injectable5, signal as signal5 } from "@angular/core";
|
|
567
|
+
|
|
447
568
|
// src/client/opsActionCenter.ts
|
|
448
569
|
var recordVoiceOpsActionResult = async (result, options = {}) => {
|
|
449
570
|
if (options.auditPath === false) {
|
|
@@ -637,18 +758,18 @@ var createVoiceOpsActionCenterStore = (options = {}) => {
|
|
|
637
758
|
|
|
638
759
|
// src/angular/voice-ops-action-center.service.ts
|
|
639
760
|
var _dec = [
|
|
640
|
-
|
|
761
|
+
Injectable5({ providedIn: "root" })
|
|
641
762
|
];
|
|
642
763
|
var _init = __decoratorStart(undefined);
|
|
643
764
|
|
|
644
765
|
class VoiceOpsActionCenterService {
|
|
645
766
|
connect(options = {}) {
|
|
646
767
|
const store = createVoiceOpsActionCenterStore(options);
|
|
647
|
-
const actionsSignal =
|
|
648
|
-
const errorSignal =
|
|
649
|
-
const isRunningSignal =
|
|
650
|
-
const lastResultSignal =
|
|
651
|
-
const runningActionIdSignal =
|
|
768
|
+
const actionsSignal = signal5([]);
|
|
769
|
+
const errorSignal = signal5(null);
|
|
770
|
+
const isRunningSignal = signal5(false);
|
|
771
|
+
const lastResultSignal = signal5(undefined);
|
|
772
|
+
const runningActionIdSignal = signal5(undefined);
|
|
652
773
|
const sync = () => {
|
|
653
774
|
const snapshot = store.getSnapshot();
|
|
654
775
|
actionsSignal.set(snapshot.actions);
|
|
@@ -660,16 +781,16 @@ class VoiceOpsActionCenterService {
|
|
|
660
781
|
const unsubscribe = store.subscribe(sync);
|
|
661
782
|
sync();
|
|
662
783
|
return {
|
|
663
|
-
actions:
|
|
784
|
+
actions: computed5(() => actionsSignal()),
|
|
664
785
|
close: () => {
|
|
665
786
|
unsubscribe();
|
|
666
787
|
store.close();
|
|
667
788
|
},
|
|
668
|
-
error:
|
|
669
|
-
isRunning:
|
|
670
|
-
lastResult:
|
|
789
|
+
error: computed5(() => errorSignal()),
|
|
790
|
+
isRunning: computed5(() => isRunningSignal()),
|
|
791
|
+
lastResult: computed5(() => lastResultSignal()),
|
|
671
792
|
run: store.run,
|
|
672
|
-
runningActionId:
|
|
793
|
+
runningActionId: computed5(() => runningActionIdSignal()),
|
|
673
794
|
setActions: store.setActions
|
|
674
795
|
};
|
|
675
796
|
}
|
|
@@ -679,7 +800,7 @@ __runInitializers(_init, 1, VoiceOpsActionCenterService);
|
|
|
679
800
|
__decoratorMetadata(_init, VoiceOpsActionCenterService);
|
|
680
801
|
let _VoiceOpsActionCenterService = VoiceOpsActionCenterService;
|
|
681
802
|
// src/angular/voice-live-ops.service.ts
|
|
682
|
-
import { computed as
|
|
803
|
+
import { computed as computed6, Injectable as Injectable6, signal as signal6 } from "@angular/core";
|
|
683
804
|
|
|
684
805
|
// src/client/liveOps.ts
|
|
685
806
|
var postVoiceLiveOpsAction = async (input, options = {}) => {
|
|
@@ -769,17 +890,17 @@ var createVoiceLiveOpsStore = (options = {}) => {
|
|
|
769
890
|
|
|
770
891
|
// src/angular/voice-live-ops.service.ts
|
|
771
892
|
var _dec = [
|
|
772
|
-
|
|
893
|
+
Injectable6({ providedIn: "root" })
|
|
773
894
|
];
|
|
774
895
|
var _init = __decoratorStart(undefined);
|
|
775
896
|
|
|
776
897
|
class VoiceLiveOpsService {
|
|
777
898
|
connect(options = {}) {
|
|
778
899
|
const store = createVoiceLiveOpsStore(options);
|
|
779
|
-
const errorSignal =
|
|
780
|
-
const isRunningSignal =
|
|
781
|
-
const lastResultSignal =
|
|
782
|
-
const runningActionSignal =
|
|
900
|
+
const errorSignal = signal6(null);
|
|
901
|
+
const isRunningSignal = signal6(false);
|
|
902
|
+
const lastResultSignal = signal6(undefined);
|
|
903
|
+
const runningActionSignal = signal6(undefined);
|
|
783
904
|
const sync = () => {
|
|
784
905
|
const snapshot = store.getSnapshot();
|
|
785
906
|
errorSignal.set(snapshot.error);
|
|
@@ -794,11 +915,11 @@ class VoiceLiveOpsService {
|
|
|
794
915
|
unsubscribe();
|
|
795
916
|
store.close();
|
|
796
917
|
},
|
|
797
|
-
error:
|
|
798
|
-
isRunning:
|
|
799
|
-
lastResult:
|
|
918
|
+
error: computed6(() => errorSignal()),
|
|
919
|
+
isRunning: computed6(() => isRunningSignal()),
|
|
920
|
+
lastResult: computed6(() => lastResultSignal()),
|
|
800
921
|
run: store.run,
|
|
801
|
-
runningAction:
|
|
922
|
+
runningAction: computed6(() => runningActionSignal())
|
|
802
923
|
};
|
|
803
924
|
}
|
|
804
925
|
}
|
|
@@ -807,7 +928,7 @@ __runInitializers(_init, 1, VoiceLiveOpsService);
|
|
|
807
928
|
__decoratorMetadata(_init, VoiceLiveOpsService);
|
|
808
929
|
let _VoiceLiveOpsService = VoiceLiveOpsService;
|
|
809
930
|
// src/angular/voice-delivery-runtime.service.ts
|
|
810
|
-
import { computed as
|
|
931
|
+
import { computed as computed7, Injectable as Injectable7, signal as signal7 } from "@angular/core";
|
|
811
932
|
|
|
812
933
|
// src/client/deliveryRuntime.ts
|
|
813
934
|
var getDefaultActionPath = (path, action, options) => {
|
|
@@ -948,19 +1069,19 @@ var createVoiceDeliveryRuntimeStore = (path = "/api/voice-delivery-runtime", opt
|
|
|
948
1069
|
|
|
949
1070
|
// src/angular/voice-delivery-runtime.service.ts
|
|
950
1071
|
var _dec = [
|
|
951
|
-
|
|
1072
|
+
Injectable7({ providedIn: "root" })
|
|
952
1073
|
];
|
|
953
1074
|
var _init = __decoratorStart(undefined);
|
|
954
1075
|
|
|
955
1076
|
class VoiceDeliveryRuntimeService {
|
|
956
1077
|
connect(path = "/api/voice-delivery-runtime", options = {}) {
|
|
957
1078
|
const store = createVoiceDeliveryRuntimeStore(path, options);
|
|
958
|
-
const actionErrorSignal =
|
|
959
|
-
const actionStatusSignal =
|
|
960
|
-
const errorSignal =
|
|
961
|
-
const isLoadingSignal =
|
|
962
|
-
const reportSignal =
|
|
963
|
-
const updatedAtSignal =
|
|
1079
|
+
const actionErrorSignal = signal7(null);
|
|
1080
|
+
const actionStatusSignal = signal7("idle");
|
|
1081
|
+
const errorSignal = signal7(null);
|
|
1082
|
+
const isLoadingSignal = signal7(false);
|
|
1083
|
+
const reportSignal = signal7(undefined);
|
|
1084
|
+
const updatedAtSignal = signal7(undefined);
|
|
964
1085
|
const sync = () => {
|
|
965
1086
|
const snapshot = store.getSnapshot();
|
|
966
1087
|
actionErrorSignal.set(snapshot.actionError);
|
|
@@ -980,15 +1101,15 @@ class VoiceDeliveryRuntimeService {
|
|
|
980
1101
|
unsubscribe();
|
|
981
1102
|
store.close();
|
|
982
1103
|
},
|
|
983
|
-
error:
|
|
984
|
-
actionError:
|
|
985
|
-
actionStatus:
|
|
986
|
-
isLoading:
|
|
1104
|
+
error: computed7(() => errorSignal()),
|
|
1105
|
+
actionError: computed7(() => actionErrorSignal()),
|
|
1106
|
+
actionStatus: computed7(() => actionStatusSignal()),
|
|
1107
|
+
isLoading: computed7(() => isLoadingSignal()),
|
|
987
1108
|
requeueDeadLetters: store.requeueDeadLetters,
|
|
988
1109
|
refresh: store.refresh,
|
|
989
|
-
report:
|
|
1110
|
+
report: computed7(() => reportSignal()),
|
|
990
1111
|
tick: store.tick,
|
|
991
|
-
updatedAt:
|
|
1112
|
+
updatedAt: computed7(() => updatedAtSignal())
|
|
992
1113
|
};
|
|
993
1114
|
}
|
|
994
1115
|
}
|
|
@@ -997,7 +1118,7 @@ __runInitializers(_init, 1, VoiceDeliveryRuntimeService);
|
|
|
997
1118
|
__decoratorMetadata(_init, VoiceDeliveryRuntimeService);
|
|
998
1119
|
let _VoiceDeliveryRuntimeService = VoiceDeliveryRuntimeService;
|
|
999
1120
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
1000
|
-
import { computed as
|
|
1121
|
+
import { computed as computed8, Injectable as Injectable8, signal as signal8 } from "@angular/core";
|
|
1001
1122
|
|
|
1002
1123
|
// src/client/campaignDialerProof.ts
|
|
1003
1124
|
var fetchVoiceCampaignDialerProofStatus = async (path = "/api/voice/campaigns/dialer-proof", options = {}) => {
|
|
@@ -1119,18 +1240,18 @@ var createVoiceCampaignDialerProofStore = (path = "/api/voice/campaigns/dialer-p
|
|
|
1119
1240
|
|
|
1120
1241
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
1121
1242
|
var _dec = [
|
|
1122
|
-
|
|
1243
|
+
Injectable8({ providedIn: "root" })
|
|
1123
1244
|
];
|
|
1124
1245
|
var _init = __decoratorStart(undefined);
|
|
1125
1246
|
|
|
1126
1247
|
class VoiceCampaignDialerProofService {
|
|
1127
1248
|
connect(path = "/api/voice/campaigns/dialer-proof", options = {}) {
|
|
1128
1249
|
const store = createVoiceCampaignDialerProofStore(path, options);
|
|
1129
|
-
const errorSignal =
|
|
1130
|
-
const isLoadingSignal =
|
|
1131
|
-
const reportSignal =
|
|
1132
|
-
const statusSignal =
|
|
1133
|
-
const updatedAtSignal =
|
|
1250
|
+
const errorSignal = signal8(null);
|
|
1251
|
+
const isLoadingSignal = signal8(false);
|
|
1252
|
+
const reportSignal = signal8(undefined);
|
|
1253
|
+
const statusSignal = signal8(undefined);
|
|
1254
|
+
const updatedAtSignal = signal8(undefined);
|
|
1134
1255
|
const sync = () => {
|
|
1135
1256
|
const snapshot = store.getSnapshot();
|
|
1136
1257
|
errorSignal.set(snapshot.error);
|
|
@@ -1147,13 +1268,13 @@ class VoiceCampaignDialerProofService {
|
|
|
1147
1268
|
unsubscribe();
|
|
1148
1269
|
store.close();
|
|
1149
1270
|
},
|
|
1150
|
-
error:
|
|
1151
|
-
isLoading:
|
|
1271
|
+
error: computed8(() => errorSignal()),
|
|
1272
|
+
isLoading: computed8(() => isLoadingSignal()),
|
|
1152
1273
|
refresh: store.refresh,
|
|
1153
|
-
report:
|
|
1274
|
+
report: computed8(() => reportSignal()),
|
|
1154
1275
|
runProof: store.runProof,
|
|
1155
|
-
status:
|
|
1156
|
-
updatedAt:
|
|
1276
|
+
status: computed8(() => statusSignal()),
|
|
1277
|
+
updatedAt: computed8(() => updatedAtSignal())
|
|
1157
1278
|
};
|
|
1158
1279
|
}
|
|
1159
1280
|
}
|
|
@@ -1162,7 +1283,7 @@ __runInitializers(_init, 1, VoiceCampaignDialerProofService);
|
|
|
1162
1283
|
__decoratorMetadata(_init, VoiceCampaignDialerProofService);
|
|
1163
1284
|
let _VoiceCampaignDialerProofService = VoiceCampaignDialerProofService;
|
|
1164
1285
|
// src/angular/voice-stream.service.ts
|
|
1165
|
-
import { computed as
|
|
1286
|
+
import { computed as computed9, Injectable as Injectable9, signal as signal9 } from "@angular/core";
|
|
1166
1287
|
|
|
1167
1288
|
// src/client/actions.ts
|
|
1168
1289
|
var normalizeErrorMessage = (value) => {
|
|
@@ -1806,23 +1927,23 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
1806
1927
|
|
|
1807
1928
|
// src/angular/voice-stream.service.ts
|
|
1808
1929
|
var _dec = [
|
|
1809
|
-
|
|
1930
|
+
Injectable9({ providedIn: "root" })
|
|
1810
1931
|
];
|
|
1811
1932
|
var _init = __decoratorStart(undefined);
|
|
1812
1933
|
|
|
1813
1934
|
class VoiceStreamService {
|
|
1814
1935
|
connect(path, options = {}) {
|
|
1815
1936
|
const stream = createVoiceStream(path, options);
|
|
1816
|
-
const assistantAudioSignal =
|
|
1817
|
-
const assistantTextsSignal =
|
|
1818
|
-
const callSignal =
|
|
1819
|
-
const errorSignal =
|
|
1820
|
-
const isConnectedSignal =
|
|
1821
|
-
const partialSignal =
|
|
1822
|
-
const reconnectSignal =
|
|
1823
|
-
const sessionIdSignal =
|
|
1824
|
-
const statusSignal =
|
|
1825
|
-
const turnsSignal =
|
|
1937
|
+
const assistantAudioSignal = signal9([]);
|
|
1938
|
+
const assistantTextsSignal = signal9([]);
|
|
1939
|
+
const callSignal = signal9(null);
|
|
1940
|
+
const errorSignal = signal9(null);
|
|
1941
|
+
const isConnectedSignal = signal9(false);
|
|
1942
|
+
const partialSignal = signal9("");
|
|
1943
|
+
const reconnectSignal = signal9(stream.reconnect);
|
|
1944
|
+
const sessionIdSignal = signal9(stream.sessionId);
|
|
1945
|
+
const statusSignal = signal9(stream.status);
|
|
1946
|
+
const turnsSignal = signal9([]);
|
|
1826
1947
|
const sync = () => {
|
|
1827
1948
|
assistantAudioSignal.set([...stream.assistantAudio]);
|
|
1828
1949
|
assistantTextsSignal.set([...stream.assistantTexts]);
|
|
@@ -1838,23 +1959,23 @@ class VoiceStreamService {
|
|
|
1838
1959
|
const unsubscribe = stream.subscribe(sync);
|
|
1839
1960
|
sync();
|
|
1840
1961
|
return {
|
|
1841
|
-
assistantAudio:
|
|
1842
|
-
assistantTexts:
|
|
1843
|
-
call:
|
|
1962
|
+
assistantAudio: computed9(() => assistantAudioSignal()),
|
|
1963
|
+
assistantTexts: computed9(() => assistantTextsSignal()),
|
|
1964
|
+
call: computed9(() => callSignal()),
|
|
1844
1965
|
callControl: (message) => stream.callControl(message),
|
|
1845
1966
|
close: () => {
|
|
1846
1967
|
unsubscribe();
|
|
1847
1968
|
stream.close();
|
|
1848
1969
|
},
|
|
1849
1970
|
endTurn: () => stream.endTurn(),
|
|
1850
|
-
error:
|
|
1851
|
-
isConnected:
|
|
1852
|
-
partial:
|
|
1853
|
-
reconnect:
|
|
1971
|
+
error: computed9(() => errorSignal()),
|
|
1972
|
+
isConnected: computed9(() => isConnectedSignal()),
|
|
1973
|
+
partial: computed9(() => partialSignal()),
|
|
1974
|
+
reconnect: computed9(() => reconnectSignal()),
|
|
1854
1975
|
sendAudio: (audio) => stream.sendAudio(audio),
|
|
1855
|
-
sessionId:
|
|
1856
|
-
status:
|
|
1857
|
-
turns:
|
|
1976
|
+
sessionId: computed9(() => sessionIdSignal()),
|
|
1977
|
+
status: computed9(() => statusSignal()),
|
|
1978
|
+
turns: computed9(() => turnsSignal())
|
|
1858
1979
|
};
|
|
1859
1980
|
}
|
|
1860
1981
|
}
|
|
@@ -1863,7 +1984,7 @@ __runInitializers(_init, 1, VoiceStreamService);
|
|
|
1863
1984
|
__decoratorMetadata(_init, VoiceStreamService);
|
|
1864
1985
|
let _VoiceStreamService = VoiceStreamService;
|
|
1865
1986
|
// src/angular/voice-controller.service.ts
|
|
1866
|
-
import { computed as
|
|
1987
|
+
import { computed as computed10, Injectable as Injectable10, signal as signal10 } from "@angular/core";
|
|
1867
1988
|
|
|
1868
1989
|
// src/client/htmx.ts
|
|
1869
1990
|
var DEFAULT_EVENT_NAME = "voice-refresh";
|
|
@@ -2508,24 +2629,24 @@ var createVoiceController = (path, options = {}) => {
|
|
|
2508
2629
|
|
|
2509
2630
|
// src/angular/voice-controller.service.ts
|
|
2510
2631
|
var _dec = [
|
|
2511
|
-
|
|
2632
|
+
Injectable10({ providedIn: "root" })
|
|
2512
2633
|
];
|
|
2513
2634
|
var _init = __decoratorStart(undefined);
|
|
2514
2635
|
|
|
2515
2636
|
class VoiceControllerService {
|
|
2516
2637
|
connect(path, options = {}) {
|
|
2517
2638
|
const controller = createVoiceController(path, options);
|
|
2518
|
-
const assistantAudioSignal =
|
|
2519
|
-
const assistantTextsSignal =
|
|
2520
|
-
const errorSignal =
|
|
2521
|
-
const isConnectedSignal =
|
|
2522
|
-
const isRecordingSignal =
|
|
2523
|
-
const partialSignal =
|
|
2524
|
-
const reconnectSignal =
|
|
2525
|
-
const recordingErrorSignal =
|
|
2526
|
-
const sessionIdSignal =
|
|
2527
|
-
const statusSignal =
|
|
2528
|
-
const turnsSignal =
|
|
2639
|
+
const assistantAudioSignal = signal10([]);
|
|
2640
|
+
const assistantTextsSignal = signal10([]);
|
|
2641
|
+
const errorSignal = signal10(null);
|
|
2642
|
+
const isConnectedSignal = signal10(false);
|
|
2643
|
+
const isRecordingSignal = signal10(false);
|
|
2644
|
+
const partialSignal = signal10("");
|
|
2645
|
+
const reconnectSignal = signal10(controller.reconnect);
|
|
2646
|
+
const recordingErrorSignal = signal10(null);
|
|
2647
|
+
const sessionIdSignal = signal10(controller.sessionId);
|
|
2648
|
+
const statusSignal = signal10(controller.status);
|
|
2649
|
+
const turnsSignal = signal10([]);
|
|
2529
2650
|
const sync = () => {
|
|
2530
2651
|
assistantAudioSignal.set([...controller.assistantAudio]);
|
|
2531
2652
|
assistantTextsSignal.set([...controller.assistantTexts]);
|
|
@@ -2542,27 +2663,27 @@ class VoiceControllerService {
|
|
|
2542
2663
|
const unsubscribe = controller.subscribe(sync);
|
|
2543
2664
|
sync();
|
|
2544
2665
|
return {
|
|
2545
|
-
assistantAudio:
|
|
2546
|
-
assistantTexts:
|
|
2666
|
+
assistantAudio: computed10(() => assistantAudioSignal()),
|
|
2667
|
+
assistantTexts: computed10(() => assistantTextsSignal()),
|
|
2547
2668
|
bindHTMX: controller.bindHTMX,
|
|
2548
2669
|
close: () => {
|
|
2549
2670
|
unsubscribe();
|
|
2550
2671
|
controller.close();
|
|
2551
2672
|
},
|
|
2552
2673
|
endTurn: () => controller.endTurn(),
|
|
2553
|
-
error:
|
|
2554
|
-
isConnected:
|
|
2555
|
-
isRecording:
|
|
2556
|
-
partial:
|
|
2557
|
-
reconnect:
|
|
2558
|
-
recordingError:
|
|
2674
|
+
error: computed10(() => errorSignal()),
|
|
2675
|
+
isConnected: computed10(() => isConnectedSignal()),
|
|
2676
|
+
isRecording: computed10(() => isRecordingSignal()),
|
|
2677
|
+
partial: computed10(() => partialSignal()),
|
|
2678
|
+
reconnect: computed10(() => reconnectSignal()),
|
|
2679
|
+
recordingError: computed10(() => recordingErrorSignal()),
|
|
2559
2680
|
sendAudio: (audio) => controller.sendAudio(audio),
|
|
2560
|
-
sessionId:
|
|
2681
|
+
sessionId: computed10(() => sessionIdSignal()),
|
|
2561
2682
|
startRecording: () => controller.startRecording(),
|
|
2562
|
-
status:
|
|
2683
|
+
status: computed10(() => statusSignal()),
|
|
2563
2684
|
stopRecording: () => controller.stopRecording(),
|
|
2564
2685
|
toggleRecording: () => controller.toggleRecording(),
|
|
2565
|
-
turns:
|
|
2686
|
+
turns: computed10(() => turnsSignal())
|
|
2566
2687
|
};
|
|
2567
2688
|
}
|
|
2568
2689
|
}
|
|
@@ -2571,7 +2692,7 @@ __runInitializers(_init, 1, VoiceControllerService);
|
|
|
2571
2692
|
__decoratorMetadata(_init, VoiceControllerService);
|
|
2572
2693
|
let _VoiceControllerService = VoiceControllerService;
|
|
2573
2694
|
// src/angular/voice-provider-capabilities.service.ts
|
|
2574
|
-
import { computed as
|
|
2695
|
+
import { computed as computed11, Injectable as Injectable11, signal as signal11 } from "@angular/core";
|
|
2575
2696
|
|
|
2576
2697
|
// src/client/providerCapabilities.ts
|
|
2577
2698
|
var fetchVoiceProviderCapabilities = async (path = "/api/provider-capabilities", options = {}) => {
|
|
@@ -2654,17 +2775,17 @@ var createVoiceProviderCapabilitiesStore = (path = "/api/provider-capabilities",
|
|
|
2654
2775
|
|
|
2655
2776
|
// src/angular/voice-provider-capabilities.service.ts
|
|
2656
2777
|
var _dec = [
|
|
2657
|
-
|
|
2778
|
+
Injectable11({ providedIn: "root" })
|
|
2658
2779
|
];
|
|
2659
2780
|
var _init = __decoratorStart(undefined);
|
|
2660
2781
|
|
|
2661
2782
|
class VoiceProviderCapabilitiesService {
|
|
2662
2783
|
connect(path = "/api/provider-capabilities", options = {}) {
|
|
2663
2784
|
const store = createVoiceProviderCapabilitiesStore(path, options);
|
|
2664
|
-
const errorSignal =
|
|
2665
|
-
const isLoadingSignal =
|
|
2666
|
-
const reportSignal =
|
|
2667
|
-
const updatedAtSignal =
|
|
2785
|
+
const errorSignal = signal11(null);
|
|
2786
|
+
const isLoadingSignal = signal11(false);
|
|
2787
|
+
const reportSignal = signal11(undefined);
|
|
2788
|
+
const updatedAtSignal = signal11(undefined);
|
|
2668
2789
|
const sync = () => {
|
|
2669
2790
|
const snapshot = store.getSnapshot();
|
|
2670
2791
|
errorSignal.set(snapshot.error);
|
|
@@ -2680,11 +2801,11 @@ class VoiceProviderCapabilitiesService {
|
|
|
2680
2801
|
unsubscribe();
|
|
2681
2802
|
store.close();
|
|
2682
2803
|
},
|
|
2683
|
-
error:
|
|
2684
|
-
isLoading:
|
|
2804
|
+
error: computed11(() => errorSignal()),
|
|
2805
|
+
isLoading: computed11(() => isLoadingSignal()),
|
|
2685
2806
|
refresh: store.refresh,
|
|
2686
|
-
report:
|
|
2687
|
-
updatedAt:
|
|
2807
|
+
report: computed11(() => reportSignal()),
|
|
2808
|
+
updatedAt: computed11(() => updatedAtSignal())
|
|
2688
2809
|
};
|
|
2689
2810
|
}
|
|
2690
2811
|
}
|
|
@@ -2693,7 +2814,7 @@ __runInitializers(_init, 1, VoiceProviderCapabilitiesService);
|
|
|
2693
2814
|
__decoratorMetadata(_init, VoiceProviderCapabilitiesService);
|
|
2694
2815
|
let _VoiceProviderCapabilitiesService = VoiceProviderCapabilitiesService;
|
|
2695
2816
|
// src/angular/voice-provider-contracts.service.ts
|
|
2696
|
-
import { computed as
|
|
2817
|
+
import { computed as computed12, Injectable as Injectable12, signal as signal12 } from "@angular/core";
|
|
2697
2818
|
|
|
2698
2819
|
// src/client/providerContracts.ts
|
|
2699
2820
|
var fetchVoiceProviderContracts = async (path = "/api/provider-contracts", options = {}) => {
|
|
@@ -2772,17 +2893,17 @@ var createVoiceProviderContractsStore = (path = "/api/provider-contracts", optio
|
|
|
2772
2893
|
|
|
2773
2894
|
// src/angular/voice-provider-contracts.service.ts
|
|
2774
2895
|
var _dec = [
|
|
2775
|
-
|
|
2896
|
+
Injectable12({ providedIn: "root" })
|
|
2776
2897
|
];
|
|
2777
2898
|
var _init = __decoratorStart(undefined);
|
|
2778
2899
|
|
|
2779
2900
|
class VoiceProviderContractsService {
|
|
2780
2901
|
connect(path = "/api/provider-contracts", options = {}) {
|
|
2781
2902
|
const store = createVoiceProviderContractsStore(path, options);
|
|
2782
|
-
const errorSignal =
|
|
2783
|
-
const isLoadingSignal =
|
|
2784
|
-
const reportSignal =
|
|
2785
|
-
const updatedAtSignal =
|
|
2903
|
+
const errorSignal = signal12(null);
|
|
2904
|
+
const isLoadingSignal = signal12(false);
|
|
2905
|
+
const reportSignal = signal12(undefined);
|
|
2906
|
+
const updatedAtSignal = signal12(undefined);
|
|
2786
2907
|
const sync = () => {
|
|
2787
2908
|
const snapshot = store.getSnapshot();
|
|
2788
2909
|
errorSignal.set(snapshot.error);
|
|
@@ -2798,11 +2919,11 @@ class VoiceProviderContractsService {
|
|
|
2798
2919
|
unsubscribe();
|
|
2799
2920
|
store.close();
|
|
2800
2921
|
},
|
|
2801
|
-
error:
|
|
2802
|
-
isLoading:
|
|
2922
|
+
error: computed12(() => errorSignal()),
|
|
2923
|
+
isLoading: computed12(() => isLoadingSignal()),
|
|
2803
2924
|
refresh: store.refresh,
|
|
2804
|
-
report:
|
|
2805
|
-
updatedAt:
|
|
2925
|
+
report: computed12(() => reportSignal()),
|
|
2926
|
+
updatedAt: computed12(() => updatedAtSignal())
|
|
2806
2927
|
};
|
|
2807
2928
|
}
|
|
2808
2929
|
}
|
|
@@ -2811,7 +2932,7 @@ __runInitializers(_init, 1, VoiceProviderContractsService);
|
|
|
2811
2932
|
__decoratorMetadata(_init, VoiceProviderContractsService);
|
|
2812
2933
|
let _VoiceProviderContractsService = VoiceProviderContractsService;
|
|
2813
2934
|
// src/angular/voice-provider-status.service.ts
|
|
2814
|
-
import { computed as
|
|
2935
|
+
import { computed as computed13, Injectable as Injectable13, signal as signal13 } from "@angular/core";
|
|
2815
2936
|
|
|
2816
2937
|
// src/client/providerStatus.ts
|
|
2817
2938
|
var fetchVoiceProviderStatus = async (path = "/api/provider-status", options = {}) => {
|
|
@@ -2895,17 +3016,17 @@ var createVoiceProviderStatusStore = (path = "/api/provider-status", options = {
|
|
|
2895
3016
|
|
|
2896
3017
|
// src/angular/voice-provider-status.service.ts
|
|
2897
3018
|
var _dec = [
|
|
2898
|
-
|
|
3019
|
+
Injectable13({ providedIn: "root" })
|
|
2899
3020
|
];
|
|
2900
3021
|
var _init = __decoratorStart(undefined);
|
|
2901
3022
|
|
|
2902
3023
|
class VoiceProviderStatusService {
|
|
2903
3024
|
connect(path = "/api/provider-status", options = {}) {
|
|
2904
3025
|
const store = createVoiceProviderStatusStore(path, options);
|
|
2905
|
-
const errorSignal =
|
|
2906
|
-
const isLoadingSignal =
|
|
2907
|
-
const providersSignal =
|
|
2908
|
-
const updatedAtSignal =
|
|
3026
|
+
const errorSignal = signal13(null);
|
|
3027
|
+
const isLoadingSignal = signal13(false);
|
|
3028
|
+
const providersSignal = signal13([]);
|
|
3029
|
+
const updatedAtSignal = signal13(undefined);
|
|
2909
3030
|
const sync = () => {
|
|
2910
3031
|
const snapshot = store.getSnapshot();
|
|
2911
3032
|
errorSignal.set(snapshot.error);
|
|
@@ -2921,11 +3042,11 @@ class VoiceProviderStatusService {
|
|
|
2921
3042
|
unsubscribe();
|
|
2922
3043
|
store.close();
|
|
2923
3044
|
},
|
|
2924
|
-
error:
|
|
2925
|
-
isLoading:
|
|
2926
|
-
providers:
|
|
3045
|
+
error: computed13(() => errorSignal()),
|
|
3046
|
+
isLoading: computed13(() => isLoadingSignal()),
|
|
3047
|
+
providers: computed13(() => providersSignal()),
|
|
2927
3048
|
refresh: store.refresh,
|
|
2928
|
-
updatedAt:
|
|
3049
|
+
updatedAt: computed13(() => updatedAtSignal())
|
|
2929
3050
|
};
|
|
2930
3051
|
}
|
|
2931
3052
|
}
|
|
@@ -2934,7 +3055,7 @@ __runInitializers(_init, 1, VoiceProviderStatusService);
|
|
|
2934
3055
|
__decoratorMetadata(_init, VoiceProviderStatusService);
|
|
2935
3056
|
let _VoiceProviderStatusService = VoiceProviderStatusService;
|
|
2936
3057
|
// src/angular/voice-routing-status.service.ts
|
|
2937
|
-
import { Injectable as
|
|
3058
|
+
import { Injectable as Injectable14, signal as signal14 } from "@angular/core";
|
|
2938
3059
|
|
|
2939
3060
|
// src/client/routingStatus.ts
|
|
2940
3061
|
var fetchVoiceRoutingStatus = async (path = "/api/routing/latest", options = {}) => {
|
|
@@ -3018,17 +3139,17 @@ var createVoiceRoutingStatusStore = (path = "/api/routing/latest", options = {})
|
|
|
3018
3139
|
|
|
3019
3140
|
// src/angular/voice-routing-status.service.ts
|
|
3020
3141
|
var _dec = [
|
|
3021
|
-
|
|
3142
|
+
Injectable14({ providedIn: "root" })
|
|
3022
3143
|
];
|
|
3023
3144
|
var _init = __decoratorStart(undefined);
|
|
3024
3145
|
|
|
3025
3146
|
class VoiceRoutingStatusService {
|
|
3026
3147
|
connect(path = "/api/routing/latest", options = {}) {
|
|
3027
3148
|
const store = createVoiceRoutingStatusStore(path, options);
|
|
3028
|
-
const decisionSignal =
|
|
3029
|
-
const errorSignal =
|
|
3030
|
-
const isLoadingSignal =
|
|
3031
|
-
const updatedAtSignal =
|
|
3149
|
+
const decisionSignal = signal14(null);
|
|
3150
|
+
const errorSignal = signal14(null);
|
|
3151
|
+
const isLoadingSignal = signal14(false);
|
|
3152
|
+
const updatedAtSignal = signal14(undefined);
|
|
3032
3153
|
const sync = () => {
|
|
3033
3154
|
const snapshot = store.getSnapshot();
|
|
3034
3155
|
decisionSignal.set(snapshot.decision);
|
|
@@ -3057,7 +3178,7 @@ __runInitializers(_init, 1, VoiceRoutingStatusService);
|
|
|
3057
3178
|
__decoratorMetadata(_init, VoiceRoutingStatusService);
|
|
3058
3179
|
let _VoiceRoutingStatusService = VoiceRoutingStatusService;
|
|
3059
3180
|
// src/angular/voice-trace-timeline.service.ts
|
|
3060
|
-
import { computed as
|
|
3181
|
+
import { computed as computed14, Injectable as Injectable15, signal as signal15 } from "@angular/core";
|
|
3061
3182
|
|
|
3062
3183
|
// src/client/traceTimeline.ts
|
|
3063
3184
|
var fetchVoiceTraceTimeline = async (path = "/api/voice-traces", options = {}) => {
|
|
@@ -3141,17 +3262,17 @@ var createVoiceTraceTimelineStore = (path = "/api/voice-traces", options = {}) =
|
|
|
3141
3262
|
|
|
3142
3263
|
// src/angular/voice-trace-timeline.service.ts
|
|
3143
3264
|
var _dec = [
|
|
3144
|
-
|
|
3265
|
+
Injectable15({ providedIn: "root" })
|
|
3145
3266
|
];
|
|
3146
3267
|
var _init = __decoratorStart(undefined);
|
|
3147
3268
|
|
|
3148
3269
|
class VoiceTraceTimelineService {
|
|
3149
3270
|
connect(path = "/api/voice-traces", options = {}) {
|
|
3150
3271
|
const store = createVoiceTraceTimelineStore(path, options);
|
|
3151
|
-
const errorSignal =
|
|
3152
|
-
const isLoadingSignal =
|
|
3153
|
-
const reportSignal =
|
|
3154
|
-
const updatedAtSignal =
|
|
3272
|
+
const errorSignal = signal15(null);
|
|
3273
|
+
const isLoadingSignal = signal15(false);
|
|
3274
|
+
const reportSignal = signal15(null);
|
|
3275
|
+
const updatedAtSignal = signal15(undefined);
|
|
3155
3276
|
const sync = () => {
|
|
3156
3277
|
const snapshot = store.getSnapshot();
|
|
3157
3278
|
errorSignal.set(snapshot.error);
|
|
@@ -3167,11 +3288,11 @@ class VoiceTraceTimelineService {
|
|
|
3167
3288
|
unsubscribe();
|
|
3168
3289
|
store.close();
|
|
3169
3290
|
},
|
|
3170
|
-
error:
|
|
3171
|
-
isLoading:
|
|
3291
|
+
error: computed14(() => errorSignal()),
|
|
3292
|
+
isLoading: computed14(() => isLoadingSignal()),
|
|
3172
3293
|
refresh: store.refresh,
|
|
3173
|
-
report:
|
|
3174
|
-
updatedAt:
|
|
3294
|
+
report: computed14(() => reportSignal()),
|
|
3295
|
+
updatedAt: computed14(() => updatedAtSignal())
|
|
3175
3296
|
};
|
|
3176
3297
|
}
|
|
3177
3298
|
}
|
|
@@ -3180,7 +3301,7 @@ __runInitializers(_init, 1, VoiceTraceTimelineService);
|
|
|
3180
3301
|
__decoratorMetadata(_init, VoiceTraceTimelineService);
|
|
3181
3302
|
let _VoiceTraceTimelineService = VoiceTraceTimelineService;
|
|
3182
3303
|
// src/angular/voice-agent-squad-status.service.ts
|
|
3183
|
-
import { computed as
|
|
3304
|
+
import { computed as computed15, Injectable as Injectable16, signal as signal16 } from "@angular/core";
|
|
3184
3305
|
|
|
3185
3306
|
// src/client/agentSquadStatus.ts
|
|
3186
3307
|
var getString = (value) => typeof value === "string" && value.trim() ? value.trim() : undefined;
|
|
@@ -3258,17 +3379,17 @@ var createVoiceAgentSquadStatusStore = (path = "/api/voice-traces", options = {}
|
|
|
3258
3379
|
|
|
3259
3380
|
// src/angular/voice-agent-squad-status.service.ts
|
|
3260
3381
|
var _dec = [
|
|
3261
|
-
|
|
3382
|
+
Injectable16({ providedIn: "root" })
|
|
3262
3383
|
];
|
|
3263
3384
|
var _init = __decoratorStart(undefined);
|
|
3264
3385
|
|
|
3265
3386
|
class VoiceAgentSquadStatusService {
|
|
3266
3387
|
connect(path = "/api/voice-traces", options = {}) {
|
|
3267
3388
|
const store = createVoiceAgentSquadStatusStore(path, options);
|
|
3268
|
-
const errorSignal =
|
|
3269
|
-
const isLoadingSignal =
|
|
3270
|
-
const reportSignal =
|
|
3271
|
-
const updatedAtSignal =
|
|
3389
|
+
const errorSignal = signal16(null);
|
|
3390
|
+
const isLoadingSignal = signal16(false);
|
|
3391
|
+
const reportSignal = signal16(undefined);
|
|
3392
|
+
const updatedAtSignal = signal16(undefined);
|
|
3272
3393
|
const sync = () => {
|
|
3273
3394
|
const snapshot = store.getSnapshot();
|
|
3274
3395
|
errorSignal.set(snapshot.error);
|
|
@@ -3284,12 +3405,12 @@ class VoiceAgentSquadStatusService {
|
|
|
3284
3405
|
unsubscribe();
|
|
3285
3406
|
store.close();
|
|
3286
3407
|
},
|
|
3287
|
-
current:
|
|
3288
|
-
error:
|
|
3289
|
-
isLoading:
|
|
3408
|
+
current: computed15(() => reportSignal()?.current),
|
|
3409
|
+
error: computed15(() => errorSignal()),
|
|
3410
|
+
isLoading: computed15(() => isLoadingSignal()),
|
|
3290
3411
|
refresh: store.refresh,
|
|
3291
|
-
report:
|
|
3292
|
-
updatedAt:
|
|
3412
|
+
report: computed15(() => reportSignal()),
|
|
3413
|
+
updatedAt: computed15(() => updatedAtSignal())
|
|
3293
3414
|
};
|
|
3294
3415
|
}
|
|
3295
3416
|
}
|
|
@@ -3298,7 +3419,7 @@ __runInitializers(_init, 1, VoiceAgentSquadStatusService);
|
|
|
3298
3419
|
__decoratorMetadata(_init, VoiceAgentSquadStatusService);
|
|
3299
3420
|
let _VoiceAgentSquadStatusService = VoiceAgentSquadStatusService;
|
|
3300
3421
|
// src/angular/voice-turn-latency.service.ts
|
|
3301
|
-
import { computed as
|
|
3422
|
+
import { computed as computed16, Injectable as Injectable17, signal as signal17 } from "@angular/core";
|
|
3302
3423
|
|
|
3303
3424
|
// src/client/turnLatency.ts
|
|
3304
3425
|
var fetchVoiceTurnLatency = async (path = "/api/turn-latency", options = {}) => {
|
|
@@ -3405,17 +3526,17 @@ var createVoiceTurnLatencyStore = (path = "/api/turn-latency", options = {}) =>
|
|
|
3405
3526
|
|
|
3406
3527
|
// src/angular/voice-turn-latency.service.ts
|
|
3407
3528
|
var _dec = [
|
|
3408
|
-
|
|
3529
|
+
Injectable17({ providedIn: "root" })
|
|
3409
3530
|
];
|
|
3410
3531
|
var _init = __decoratorStart(undefined);
|
|
3411
3532
|
|
|
3412
3533
|
class VoiceTurnLatencyService {
|
|
3413
3534
|
connect(path = "/api/turn-latency", options = {}) {
|
|
3414
3535
|
const store = createVoiceTurnLatencyStore(path, options);
|
|
3415
|
-
const errorSignal =
|
|
3416
|
-
const isLoadingSignal =
|
|
3417
|
-
const reportSignal =
|
|
3418
|
-
const updatedAtSignal =
|
|
3536
|
+
const errorSignal = signal17(null);
|
|
3537
|
+
const isLoadingSignal = signal17(false);
|
|
3538
|
+
const reportSignal = signal17(undefined);
|
|
3539
|
+
const updatedAtSignal = signal17(undefined);
|
|
3419
3540
|
const sync = () => {
|
|
3420
3541
|
const snapshot = store.getSnapshot();
|
|
3421
3542
|
errorSignal.set(snapshot.error);
|
|
@@ -3431,12 +3552,12 @@ class VoiceTurnLatencyService {
|
|
|
3431
3552
|
unsubscribe();
|
|
3432
3553
|
store.close();
|
|
3433
3554
|
},
|
|
3434
|
-
error:
|
|
3435
|
-
isLoading:
|
|
3555
|
+
error: computed16(() => errorSignal()),
|
|
3556
|
+
isLoading: computed16(() => isLoadingSignal()),
|
|
3436
3557
|
refresh: store.refresh,
|
|
3437
|
-
report:
|
|
3558
|
+
report: computed16(() => reportSignal()),
|
|
3438
3559
|
runProof: store.runProof,
|
|
3439
|
-
updatedAt:
|
|
3560
|
+
updatedAt: computed16(() => updatedAtSignal())
|
|
3440
3561
|
};
|
|
3441
3562
|
}
|
|
3442
3563
|
}
|
|
@@ -3445,7 +3566,7 @@ __runInitializers(_init, 1, VoiceTurnLatencyService);
|
|
|
3445
3566
|
__decoratorMetadata(_init, VoiceTurnLatencyService);
|
|
3446
3567
|
let _VoiceTurnLatencyService = VoiceTurnLatencyService;
|
|
3447
3568
|
// src/angular/voice-turn-quality.service.ts
|
|
3448
|
-
import { computed as
|
|
3569
|
+
import { computed as computed17, Injectable as Injectable18, signal as signal18 } from "@angular/core";
|
|
3449
3570
|
|
|
3450
3571
|
// src/client/turnQuality.ts
|
|
3451
3572
|
var fetchVoiceTurnQuality = async (path = "/api/turn-quality", options = {}) => {
|
|
@@ -3528,17 +3649,17 @@ var createVoiceTurnQualityStore = (path = "/api/turn-quality", options = {}) =>
|
|
|
3528
3649
|
|
|
3529
3650
|
// src/angular/voice-turn-quality.service.ts
|
|
3530
3651
|
var _dec = [
|
|
3531
|
-
|
|
3652
|
+
Injectable18({ providedIn: "root" })
|
|
3532
3653
|
];
|
|
3533
3654
|
var _init = __decoratorStart(undefined);
|
|
3534
3655
|
|
|
3535
3656
|
class VoiceTurnQualityService {
|
|
3536
3657
|
connect(path = "/api/turn-quality", options = {}) {
|
|
3537
3658
|
const store = createVoiceTurnQualityStore(path, options);
|
|
3538
|
-
const errorSignal =
|
|
3539
|
-
const isLoadingSignal =
|
|
3540
|
-
const reportSignal =
|
|
3541
|
-
const updatedAtSignal =
|
|
3659
|
+
const errorSignal = signal18(null);
|
|
3660
|
+
const isLoadingSignal = signal18(false);
|
|
3661
|
+
const reportSignal = signal18(undefined);
|
|
3662
|
+
const updatedAtSignal = signal18(undefined);
|
|
3542
3663
|
const sync = () => {
|
|
3543
3664
|
const snapshot = store.getSnapshot();
|
|
3544
3665
|
errorSignal.set(snapshot.error);
|
|
@@ -3554,11 +3675,11 @@ class VoiceTurnQualityService {
|
|
|
3554
3675
|
unsubscribe();
|
|
3555
3676
|
store.close();
|
|
3556
3677
|
},
|
|
3557
|
-
error:
|
|
3558
|
-
isLoading:
|
|
3678
|
+
error: computed17(() => errorSignal()),
|
|
3679
|
+
isLoading: computed17(() => isLoadingSignal()),
|
|
3559
3680
|
refresh: store.refresh,
|
|
3560
|
-
report:
|
|
3561
|
-
updatedAt:
|
|
3681
|
+
report: computed17(() => reportSignal()),
|
|
3682
|
+
updatedAt: computed17(() => updatedAtSignal())
|
|
3562
3683
|
};
|
|
3563
3684
|
}
|
|
3564
3685
|
}
|
|
@@ -3567,7 +3688,7 @@ __runInitializers(_init, 1, VoiceTurnQualityService);
|
|
|
3567
3688
|
__decoratorMetadata(_init, VoiceTurnQualityService);
|
|
3568
3689
|
let _VoiceTurnQualityService = VoiceTurnQualityService;
|
|
3569
3690
|
// src/angular/voice-workflow-status.service.ts
|
|
3570
|
-
import { computed as
|
|
3691
|
+
import { computed as computed18, Injectable as Injectable19, signal as signal19 } from "@angular/core";
|
|
3571
3692
|
|
|
3572
3693
|
// src/client/workflowStatus.ts
|
|
3573
3694
|
var fetchVoiceWorkflowStatus = async (path = "/evals/scenarios/json", options = {}) => {
|
|
@@ -3650,17 +3771,17 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
3650
3771
|
|
|
3651
3772
|
// src/angular/voice-workflow-status.service.ts
|
|
3652
3773
|
var _dec = [
|
|
3653
|
-
|
|
3774
|
+
Injectable19({ providedIn: "root" })
|
|
3654
3775
|
];
|
|
3655
3776
|
var _init = __decoratorStart(undefined);
|
|
3656
3777
|
|
|
3657
3778
|
class VoiceWorkflowStatusService {
|
|
3658
3779
|
connect(path = "/evals/scenarios/json", options = {}) {
|
|
3659
3780
|
const store = createVoiceWorkflowStatusStore(path, options);
|
|
3660
|
-
const errorSignal =
|
|
3661
|
-
const isLoadingSignal =
|
|
3662
|
-
const reportSignal =
|
|
3663
|
-
const updatedAtSignal =
|
|
3781
|
+
const errorSignal = signal19(null);
|
|
3782
|
+
const isLoadingSignal = signal19(false);
|
|
3783
|
+
const reportSignal = signal19(undefined);
|
|
3784
|
+
const updatedAtSignal = signal19(undefined);
|
|
3664
3785
|
const sync = () => {
|
|
3665
3786
|
const snapshot = store.getSnapshot();
|
|
3666
3787
|
errorSignal.set(snapshot.error);
|
|
@@ -3678,11 +3799,11 @@ class VoiceWorkflowStatusService {
|
|
|
3678
3799
|
unsubscribe();
|
|
3679
3800
|
store.close();
|
|
3680
3801
|
},
|
|
3681
|
-
error:
|
|
3682
|
-
isLoading:
|
|
3802
|
+
error: computed18(() => errorSignal()),
|
|
3803
|
+
isLoading: computed18(() => isLoadingSignal()),
|
|
3683
3804
|
refresh: store.refresh,
|
|
3684
|
-
report:
|
|
3685
|
-
updatedAt:
|
|
3805
|
+
report: computed18(() => reportSignal()),
|
|
3806
|
+
updatedAt: computed18(() => updatedAtSignal())
|
|
3686
3807
|
};
|
|
3687
3808
|
}
|
|
3688
3809
|
}
|
|
@@ -3697,6 +3818,7 @@ export {
|
|
|
3697
3818
|
VoiceTraceTimelineService,
|
|
3698
3819
|
VoiceStreamService,
|
|
3699
3820
|
VoiceRoutingStatusService,
|
|
3821
|
+
VoiceReadinessFailuresService,
|
|
3700
3822
|
VoiceProviderStatusService,
|
|
3701
3823
|
VoiceProviderContractsService,
|
|
3702
3824
|
VoiceProviderCapabilitiesService,
|