@absolutejs/voice 0.0.22-beta.459 → 0.0.22-beta.460
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 +328 -204
- package/dist/angular/voice-session-observability.service.d.ts +12 -0
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.js +528 -362
- package/dist/client/sessionObservability.d.ts +19 -0
- package/dist/client/sessionObservabilityWidget.d.ts +31 -0
- package/dist/react/VoiceSessionObservability.d.ts +6 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +716 -460
- package/dist/react/useVoiceSessionObservability.d.ts +8 -0
- package/dist/svelte/createVoiceSessionObservability.d.ts +10 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +313 -142
- package/dist/vue/VoiceSessionObservability.d.ts +23 -0
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.js +589 -339
- package/dist/vue/useVoiceSessionObservability.d.ts +9 -0
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -817,9 +817,132 @@ VoiceSessionSnapshotService = __decorateElement(_init, 0, "VoiceSessionSnapshotS
|
|
|
817
817
|
__runInitializers(_init, 1, VoiceSessionSnapshotService);
|
|
818
818
|
__decoratorMetadata(_init, VoiceSessionSnapshotService);
|
|
819
819
|
let _VoiceSessionSnapshotService = VoiceSessionSnapshotService;
|
|
820
|
-
// src/angular/voice-
|
|
820
|
+
// src/angular/voice-session-observability.service.ts
|
|
821
821
|
import { computed as computed7, Injectable as Injectable7, signal as signal7 } from "@angular/core";
|
|
822
822
|
|
|
823
|
+
// src/client/sessionObservability.ts
|
|
824
|
+
var fetchVoiceSessionObservability = async (path, options = {}) => {
|
|
825
|
+
const fetchImpl = options.fetch ?? globalThis.fetch;
|
|
826
|
+
const response = await fetchImpl(path);
|
|
827
|
+
if (!response.ok) {
|
|
828
|
+
throw new Error(`Voice session observability failed: HTTP ${response.status}`);
|
|
829
|
+
}
|
|
830
|
+
return await response.json();
|
|
831
|
+
};
|
|
832
|
+
var createVoiceSessionObservabilityStore = (path, options = {}) => {
|
|
833
|
+
const listeners = new Set;
|
|
834
|
+
let closed = false;
|
|
835
|
+
let timer;
|
|
836
|
+
let snapshot = {
|
|
837
|
+
error: null,
|
|
838
|
+
isLoading: false,
|
|
839
|
+
report: null
|
|
840
|
+
};
|
|
841
|
+
const emit = () => {
|
|
842
|
+
for (const listener of listeners) {
|
|
843
|
+
listener();
|
|
844
|
+
}
|
|
845
|
+
};
|
|
846
|
+
const refresh = async () => {
|
|
847
|
+
if (closed) {
|
|
848
|
+
return snapshot.report;
|
|
849
|
+
}
|
|
850
|
+
snapshot = {
|
|
851
|
+
...snapshot,
|
|
852
|
+
error: null,
|
|
853
|
+
isLoading: true
|
|
854
|
+
};
|
|
855
|
+
emit();
|
|
856
|
+
try {
|
|
857
|
+
const report = await fetchVoiceSessionObservability(path, options);
|
|
858
|
+
snapshot = {
|
|
859
|
+
error: null,
|
|
860
|
+
isLoading: false,
|
|
861
|
+
report,
|
|
862
|
+
updatedAt: Date.now()
|
|
863
|
+
};
|
|
864
|
+
emit();
|
|
865
|
+
return report;
|
|
866
|
+
} catch (error) {
|
|
867
|
+
snapshot = {
|
|
868
|
+
...snapshot,
|
|
869
|
+
error: error instanceof Error ? error.message : String(error),
|
|
870
|
+
isLoading: false
|
|
871
|
+
};
|
|
872
|
+
emit();
|
|
873
|
+
throw error;
|
|
874
|
+
}
|
|
875
|
+
};
|
|
876
|
+
const close = () => {
|
|
877
|
+
closed = true;
|
|
878
|
+
if (timer) {
|
|
879
|
+
clearInterval(timer);
|
|
880
|
+
timer = undefined;
|
|
881
|
+
}
|
|
882
|
+
listeners.clear();
|
|
883
|
+
};
|
|
884
|
+
if (options.intervalMs && options.intervalMs > 0) {
|
|
885
|
+
timer = setInterval(() => {
|
|
886
|
+
refresh().catch(() => {});
|
|
887
|
+
}, options.intervalMs);
|
|
888
|
+
}
|
|
889
|
+
return {
|
|
890
|
+
close,
|
|
891
|
+
getServerSnapshot: () => snapshot,
|
|
892
|
+
getSnapshot: () => snapshot,
|
|
893
|
+
refresh,
|
|
894
|
+
subscribe: (listener) => {
|
|
895
|
+
listeners.add(listener);
|
|
896
|
+
return () => {
|
|
897
|
+
listeners.delete(listener);
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
|
|
903
|
+
// src/angular/voice-session-observability.service.ts
|
|
904
|
+
var _dec = [
|
|
905
|
+
Injectable7({ providedIn: "root" })
|
|
906
|
+
];
|
|
907
|
+
var _init = __decoratorStart(undefined);
|
|
908
|
+
|
|
909
|
+
class VoiceSessionObservabilityService {
|
|
910
|
+
connect(path = "/api/voice/session-observability/latest", options = {}) {
|
|
911
|
+
const store = createVoiceSessionObservabilityStore(path, options);
|
|
912
|
+
const errorSignal = signal7(null);
|
|
913
|
+
const isLoadingSignal = signal7(false);
|
|
914
|
+
const reportSignal = signal7(null);
|
|
915
|
+
const updatedAtSignal = signal7(undefined);
|
|
916
|
+
const sync = () => {
|
|
917
|
+
const snapshot = store.getSnapshot();
|
|
918
|
+
errorSignal.set(snapshot.error);
|
|
919
|
+
isLoadingSignal.set(snapshot.isLoading);
|
|
920
|
+
reportSignal.set(snapshot.report);
|
|
921
|
+
updatedAtSignal.set(snapshot.updatedAt);
|
|
922
|
+
};
|
|
923
|
+
const unsubscribe = store.subscribe(sync);
|
|
924
|
+
sync();
|
|
925
|
+
store.refresh().catch(() => {});
|
|
926
|
+
return {
|
|
927
|
+
close: () => {
|
|
928
|
+
unsubscribe();
|
|
929
|
+
store.close();
|
|
930
|
+
},
|
|
931
|
+
error: computed7(() => errorSignal()),
|
|
932
|
+
isLoading: computed7(() => isLoadingSignal()),
|
|
933
|
+
refresh: store.refresh,
|
|
934
|
+
report: computed7(() => reportSignal()),
|
|
935
|
+
updatedAt: computed7(() => updatedAtSignal())
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
VoiceSessionObservabilityService = __decorateElement(_init, 0, "VoiceSessionObservabilityService", _dec, VoiceSessionObservabilityService);
|
|
940
|
+
__runInitializers(_init, 1, VoiceSessionObservabilityService);
|
|
941
|
+
__decoratorMetadata(_init, VoiceSessionObservabilityService);
|
|
942
|
+
let _VoiceSessionObservabilityService = VoiceSessionObservabilityService;
|
|
943
|
+
// src/angular/voice-profile-comparison.service.ts
|
|
944
|
+
import { computed as computed8, Injectable as Injectable8, signal as signal8 } from "@angular/core";
|
|
945
|
+
|
|
823
946
|
// src/client/profileComparison.ts
|
|
824
947
|
var fetchVoiceProfileComparison = async (path = "/api/voice/real-call-profile-history", options = {}) => {
|
|
825
948
|
const fetchImpl = options.fetch ?? globalThis.fetch;
|
|
@@ -897,17 +1020,17 @@ var createVoiceProfileComparisonStore = (path = "/api/voice/real-call-profile-hi
|
|
|
897
1020
|
|
|
898
1021
|
// src/angular/voice-profile-comparison.service.ts
|
|
899
1022
|
var _dec = [
|
|
900
|
-
|
|
1023
|
+
Injectable8({ providedIn: "root" })
|
|
901
1024
|
];
|
|
902
1025
|
var _init = __decoratorStart(undefined);
|
|
903
1026
|
|
|
904
1027
|
class VoiceProfileComparisonService {
|
|
905
1028
|
connect(path = "/api/voice/real-call-profile-history", options = {}) {
|
|
906
1029
|
const store = createVoiceProfileComparisonStore(path, options);
|
|
907
|
-
const errorSignal =
|
|
908
|
-
const isLoadingSignal =
|
|
909
|
-
const reportSignal =
|
|
910
|
-
const updatedAtSignal =
|
|
1030
|
+
const errorSignal = signal8(null);
|
|
1031
|
+
const isLoadingSignal = signal8(false);
|
|
1032
|
+
const reportSignal = signal8(undefined);
|
|
1033
|
+
const updatedAtSignal = signal8(undefined);
|
|
911
1034
|
const sync = () => {
|
|
912
1035
|
const snapshot = store.getSnapshot();
|
|
913
1036
|
errorSignal.set(snapshot.error);
|
|
@@ -925,11 +1048,11 @@ class VoiceProfileComparisonService {
|
|
|
925
1048
|
unsubscribe();
|
|
926
1049
|
store.close();
|
|
927
1050
|
},
|
|
928
|
-
error:
|
|
929
|
-
isLoading:
|
|
1051
|
+
error: computed8(() => errorSignal()),
|
|
1052
|
+
isLoading: computed8(() => isLoadingSignal()),
|
|
930
1053
|
refresh: store.refresh,
|
|
931
|
-
report:
|
|
932
|
-
updatedAt:
|
|
1054
|
+
report: computed8(() => reportSignal()),
|
|
1055
|
+
updatedAt: computed8(() => updatedAtSignal())
|
|
933
1056
|
};
|
|
934
1057
|
}
|
|
935
1058
|
}
|
|
@@ -938,7 +1061,7 @@ __runInitializers(_init, 1, VoiceProfileComparisonService);
|
|
|
938
1061
|
__decoratorMetadata(_init, VoiceProfileComparisonService);
|
|
939
1062
|
let _VoiceProfileComparisonService = VoiceProfileComparisonService;
|
|
940
1063
|
// src/angular/voice-readiness-failures.service.ts
|
|
941
|
-
import { computed as
|
|
1064
|
+
import { computed as computed9, Injectable as Injectable9, signal as signal9 } from "@angular/core";
|
|
942
1065
|
|
|
943
1066
|
// src/client/readinessFailures.ts
|
|
944
1067
|
var fetchVoiceReadinessFailures = async (path = "/api/production-readiness", options = {}) => {
|
|
@@ -1017,17 +1140,17 @@ var createVoiceReadinessFailuresStore = (path = "/api/production-readiness", opt
|
|
|
1017
1140
|
|
|
1018
1141
|
// src/angular/voice-readiness-failures.service.ts
|
|
1019
1142
|
var _dec = [
|
|
1020
|
-
|
|
1143
|
+
Injectable9({ providedIn: "root" })
|
|
1021
1144
|
];
|
|
1022
1145
|
var _init = __decoratorStart(undefined);
|
|
1023
1146
|
|
|
1024
1147
|
class VoiceReadinessFailuresService {
|
|
1025
1148
|
connect(path = "/api/production-readiness", options = {}) {
|
|
1026
1149
|
const store = createVoiceReadinessFailuresStore(path, options);
|
|
1027
|
-
const errorSignal =
|
|
1028
|
-
const isLoadingSignal =
|
|
1029
|
-
const reportSignal =
|
|
1030
|
-
const updatedAtSignal =
|
|
1150
|
+
const errorSignal = signal9(null);
|
|
1151
|
+
const isLoadingSignal = signal9(false);
|
|
1152
|
+
const reportSignal = signal9(undefined);
|
|
1153
|
+
const updatedAtSignal = signal9(undefined);
|
|
1031
1154
|
const sync = () => {
|
|
1032
1155
|
const snapshot = store.getSnapshot();
|
|
1033
1156
|
errorSignal.set(snapshot.error);
|
|
@@ -1045,12 +1168,12 @@ class VoiceReadinessFailuresService {
|
|
|
1045
1168
|
unsubscribe();
|
|
1046
1169
|
store.close();
|
|
1047
1170
|
},
|
|
1048
|
-
error:
|
|
1049
|
-
explanations:
|
|
1050
|
-
isLoading:
|
|
1171
|
+
error: computed9(() => errorSignal()),
|
|
1172
|
+
explanations: computed9(() => reportSignal()?.checks.filter((check) => check.status !== "pass" && !!check.gateExplanation) ?? []),
|
|
1173
|
+
isLoading: computed9(() => isLoadingSignal()),
|
|
1051
1174
|
refresh: store.refresh,
|
|
1052
|
-
report:
|
|
1053
|
-
updatedAt:
|
|
1175
|
+
report: computed9(() => reportSignal()),
|
|
1176
|
+
updatedAt: computed9(() => updatedAtSignal())
|
|
1054
1177
|
};
|
|
1055
1178
|
}
|
|
1056
1179
|
}
|
|
@@ -1059,7 +1182,7 @@ __runInitializers(_init, 1, VoiceReadinessFailuresService);
|
|
|
1059
1182
|
__decoratorMetadata(_init, VoiceReadinessFailuresService);
|
|
1060
1183
|
let _VoiceReadinessFailuresService = VoiceReadinessFailuresService;
|
|
1061
1184
|
// src/angular/voice-ops-action-center.service.ts
|
|
1062
|
-
import { computed as
|
|
1185
|
+
import { computed as computed10, Injectable as Injectable10, signal as signal10 } from "@angular/core";
|
|
1063
1186
|
|
|
1064
1187
|
// src/client/opsActionCenter.ts
|
|
1065
1188
|
var recordVoiceOpsActionResult = async (result, options = {}) => {
|
|
@@ -1254,18 +1377,18 @@ var createVoiceOpsActionCenterStore = (options = {}) => {
|
|
|
1254
1377
|
|
|
1255
1378
|
// src/angular/voice-ops-action-center.service.ts
|
|
1256
1379
|
var _dec = [
|
|
1257
|
-
|
|
1380
|
+
Injectable10({ providedIn: "root" })
|
|
1258
1381
|
];
|
|
1259
1382
|
var _init = __decoratorStart(undefined);
|
|
1260
1383
|
|
|
1261
1384
|
class VoiceOpsActionCenterService {
|
|
1262
1385
|
connect(options = {}) {
|
|
1263
1386
|
const store = createVoiceOpsActionCenterStore(options);
|
|
1264
|
-
const actionsSignal =
|
|
1265
|
-
const errorSignal =
|
|
1266
|
-
const isRunningSignal =
|
|
1267
|
-
const lastResultSignal =
|
|
1268
|
-
const runningActionIdSignal =
|
|
1387
|
+
const actionsSignal = signal10([]);
|
|
1388
|
+
const errorSignal = signal10(null);
|
|
1389
|
+
const isRunningSignal = signal10(false);
|
|
1390
|
+
const lastResultSignal = signal10(undefined);
|
|
1391
|
+
const runningActionIdSignal = signal10(undefined);
|
|
1269
1392
|
const sync = () => {
|
|
1270
1393
|
const snapshot = store.getSnapshot();
|
|
1271
1394
|
actionsSignal.set(snapshot.actions);
|
|
@@ -1277,16 +1400,16 @@ class VoiceOpsActionCenterService {
|
|
|
1277
1400
|
const unsubscribe = store.subscribe(sync);
|
|
1278
1401
|
sync();
|
|
1279
1402
|
return {
|
|
1280
|
-
actions:
|
|
1403
|
+
actions: computed10(() => actionsSignal()),
|
|
1281
1404
|
close: () => {
|
|
1282
1405
|
unsubscribe();
|
|
1283
1406
|
store.close();
|
|
1284
1407
|
},
|
|
1285
|
-
error:
|
|
1286
|
-
isRunning:
|
|
1287
|
-
lastResult:
|
|
1408
|
+
error: computed10(() => errorSignal()),
|
|
1409
|
+
isRunning: computed10(() => isRunningSignal()),
|
|
1410
|
+
lastResult: computed10(() => lastResultSignal()),
|
|
1288
1411
|
run: store.run,
|
|
1289
|
-
runningActionId:
|
|
1412
|
+
runningActionId: computed10(() => runningActionIdSignal()),
|
|
1290
1413
|
setActions: store.setActions
|
|
1291
1414
|
};
|
|
1292
1415
|
}
|
|
@@ -1296,7 +1419,7 @@ __runInitializers(_init, 1, VoiceOpsActionCenterService);
|
|
|
1296
1419
|
__decoratorMetadata(_init, VoiceOpsActionCenterService);
|
|
1297
1420
|
let _VoiceOpsActionCenterService = VoiceOpsActionCenterService;
|
|
1298
1421
|
// src/angular/voice-live-ops.service.ts
|
|
1299
|
-
import { computed as
|
|
1422
|
+
import { computed as computed11, Injectable as Injectable11, signal as signal11 } from "@angular/core";
|
|
1300
1423
|
|
|
1301
1424
|
// src/client/liveOps.ts
|
|
1302
1425
|
var postVoiceLiveOpsAction = async (input, options = {}) => {
|
|
@@ -1386,17 +1509,17 @@ var createVoiceLiveOpsStore = (options = {}) => {
|
|
|
1386
1509
|
|
|
1387
1510
|
// src/angular/voice-live-ops.service.ts
|
|
1388
1511
|
var _dec = [
|
|
1389
|
-
|
|
1512
|
+
Injectable11({ providedIn: "root" })
|
|
1390
1513
|
];
|
|
1391
1514
|
var _init = __decoratorStart(undefined);
|
|
1392
1515
|
|
|
1393
1516
|
class VoiceLiveOpsService {
|
|
1394
1517
|
connect(options = {}) {
|
|
1395
1518
|
const store = createVoiceLiveOpsStore(options);
|
|
1396
|
-
const errorSignal =
|
|
1397
|
-
const isRunningSignal =
|
|
1398
|
-
const lastResultSignal =
|
|
1399
|
-
const runningActionSignal =
|
|
1519
|
+
const errorSignal = signal11(null);
|
|
1520
|
+
const isRunningSignal = signal11(false);
|
|
1521
|
+
const lastResultSignal = signal11(undefined);
|
|
1522
|
+
const runningActionSignal = signal11(undefined);
|
|
1400
1523
|
const sync = () => {
|
|
1401
1524
|
const snapshot = store.getSnapshot();
|
|
1402
1525
|
errorSignal.set(snapshot.error);
|
|
@@ -1411,11 +1534,11 @@ class VoiceLiveOpsService {
|
|
|
1411
1534
|
unsubscribe();
|
|
1412
1535
|
store.close();
|
|
1413
1536
|
},
|
|
1414
|
-
error:
|
|
1415
|
-
isRunning:
|
|
1416
|
-
lastResult:
|
|
1537
|
+
error: computed11(() => errorSignal()),
|
|
1538
|
+
isRunning: computed11(() => isRunningSignal()),
|
|
1539
|
+
lastResult: computed11(() => lastResultSignal()),
|
|
1417
1540
|
run: store.run,
|
|
1418
|
-
runningAction:
|
|
1541
|
+
runningAction: computed11(() => runningActionSignal())
|
|
1419
1542
|
};
|
|
1420
1543
|
}
|
|
1421
1544
|
}
|
|
@@ -1424,7 +1547,7 @@ __runInitializers(_init, 1, VoiceLiveOpsService);
|
|
|
1424
1547
|
__decoratorMetadata(_init, VoiceLiveOpsService);
|
|
1425
1548
|
let _VoiceLiveOpsService = VoiceLiveOpsService;
|
|
1426
1549
|
// src/angular/voice-delivery-runtime.service.ts
|
|
1427
|
-
import { computed as
|
|
1550
|
+
import { computed as computed12, Injectable as Injectable12, signal as signal12 } from "@angular/core";
|
|
1428
1551
|
|
|
1429
1552
|
// src/client/deliveryRuntime.ts
|
|
1430
1553
|
var getDefaultActionPath = (path, action, options) => {
|
|
@@ -1565,19 +1688,19 @@ var createVoiceDeliveryRuntimeStore = (path = "/api/voice-delivery-runtime", opt
|
|
|
1565
1688
|
|
|
1566
1689
|
// src/angular/voice-delivery-runtime.service.ts
|
|
1567
1690
|
var _dec = [
|
|
1568
|
-
|
|
1691
|
+
Injectable12({ providedIn: "root" })
|
|
1569
1692
|
];
|
|
1570
1693
|
var _init = __decoratorStart(undefined);
|
|
1571
1694
|
|
|
1572
1695
|
class VoiceDeliveryRuntimeService {
|
|
1573
1696
|
connect(path = "/api/voice-delivery-runtime", options = {}) {
|
|
1574
1697
|
const store = createVoiceDeliveryRuntimeStore(path, options);
|
|
1575
|
-
const actionErrorSignal =
|
|
1576
|
-
const actionStatusSignal =
|
|
1577
|
-
const errorSignal =
|
|
1578
|
-
const isLoadingSignal =
|
|
1579
|
-
const reportSignal =
|
|
1580
|
-
const updatedAtSignal =
|
|
1698
|
+
const actionErrorSignal = signal12(null);
|
|
1699
|
+
const actionStatusSignal = signal12("idle");
|
|
1700
|
+
const errorSignal = signal12(null);
|
|
1701
|
+
const isLoadingSignal = signal12(false);
|
|
1702
|
+
const reportSignal = signal12(undefined);
|
|
1703
|
+
const updatedAtSignal = signal12(undefined);
|
|
1581
1704
|
const sync = () => {
|
|
1582
1705
|
const snapshot = store.getSnapshot();
|
|
1583
1706
|
actionErrorSignal.set(snapshot.actionError);
|
|
@@ -1597,15 +1720,15 @@ class VoiceDeliveryRuntimeService {
|
|
|
1597
1720
|
unsubscribe();
|
|
1598
1721
|
store.close();
|
|
1599
1722
|
},
|
|
1600
|
-
error:
|
|
1601
|
-
actionError:
|
|
1602
|
-
actionStatus:
|
|
1603
|
-
isLoading:
|
|
1723
|
+
error: computed12(() => errorSignal()),
|
|
1724
|
+
actionError: computed12(() => actionErrorSignal()),
|
|
1725
|
+
actionStatus: computed12(() => actionStatusSignal()),
|
|
1726
|
+
isLoading: computed12(() => isLoadingSignal()),
|
|
1604
1727
|
requeueDeadLetters: store.requeueDeadLetters,
|
|
1605
1728
|
refresh: store.refresh,
|
|
1606
|
-
report:
|
|
1729
|
+
report: computed12(() => reportSignal()),
|
|
1607
1730
|
tick: store.tick,
|
|
1608
|
-
updatedAt:
|
|
1731
|
+
updatedAt: computed12(() => updatedAtSignal())
|
|
1609
1732
|
};
|
|
1610
1733
|
}
|
|
1611
1734
|
}
|
|
@@ -1614,7 +1737,7 @@ __runInitializers(_init, 1, VoiceDeliveryRuntimeService);
|
|
|
1614
1737
|
__decoratorMetadata(_init, VoiceDeliveryRuntimeService);
|
|
1615
1738
|
let _VoiceDeliveryRuntimeService = VoiceDeliveryRuntimeService;
|
|
1616
1739
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
1617
|
-
import { computed as
|
|
1740
|
+
import { computed as computed13, Injectable as Injectable13, signal as signal13 } from "@angular/core";
|
|
1618
1741
|
|
|
1619
1742
|
// src/client/campaignDialerProof.ts
|
|
1620
1743
|
var fetchVoiceCampaignDialerProofStatus = async (path = "/api/voice/campaigns/dialer-proof", options = {}) => {
|
|
@@ -1736,18 +1859,18 @@ var createVoiceCampaignDialerProofStore = (path = "/api/voice/campaigns/dialer-p
|
|
|
1736
1859
|
|
|
1737
1860
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
1738
1861
|
var _dec = [
|
|
1739
|
-
|
|
1862
|
+
Injectable13({ providedIn: "root" })
|
|
1740
1863
|
];
|
|
1741
1864
|
var _init = __decoratorStart(undefined);
|
|
1742
1865
|
|
|
1743
1866
|
class VoiceCampaignDialerProofService {
|
|
1744
1867
|
connect(path = "/api/voice/campaigns/dialer-proof", options = {}) {
|
|
1745
1868
|
const store = createVoiceCampaignDialerProofStore(path, options);
|
|
1746
|
-
const errorSignal =
|
|
1747
|
-
const isLoadingSignal =
|
|
1748
|
-
const reportSignal =
|
|
1749
|
-
const statusSignal =
|
|
1750
|
-
const updatedAtSignal =
|
|
1869
|
+
const errorSignal = signal13(null);
|
|
1870
|
+
const isLoadingSignal = signal13(false);
|
|
1871
|
+
const reportSignal = signal13(undefined);
|
|
1872
|
+
const statusSignal = signal13(undefined);
|
|
1873
|
+
const updatedAtSignal = signal13(undefined);
|
|
1751
1874
|
const sync = () => {
|
|
1752
1875
|
const snapshot = store.getSnapshot();
|
|
1753
1876
|
errorSignal.set(snapshot.error);
|
|
@@ -1764,13 +1887,13 @@ class VoiceCampaignDialerProofService {
|
|
|
1764
1887
|
unsubscribe();
|
|
1765
1888
|
store.close();
|
|
1766
1889
|
},
|
|
1767
|
-
error:
|
|
1768
|
-
isLoading:
|
|
1890
|
+
error: computed13(() => errorSignal()),
|
|
1891
|
+
isLoading: computed13(() => isLoadingSignal()),
|
|
1769
1892
|
refresh: store.refresh,
|
|
1770
|
-
report:
|
|
1893
|
+
report: computed13(() => reportSignal()),
|
|
1771
1894
|
runProof: store.runProof,
|
|
1772
|
-
status:
|
|
1773
|
-
updatedAt:
|
|
1895
|
+
status: computed13(() => statusSignal()),
|
|
1896
|
+
updatedAt: computed13(() => updatedAtSignal())
|
|
1774
1897
|
};
|
|
1775
1898
|
}
|
|
1776
1899
|
}
|
|
@@ -1779,7 +1902,7 @@ __runInitializers(_init, 1, VoiceCampaignDialerProofService);
|
|
|
1779
1902
|
__decoratorMetadata(_init, VoiceCampaignDialerProofService);
|
|
1780
1903
|
let _VoiceCampaignDialerProofService = VoiceCampaignDialerProofService;
|
|
1781
1904
|
// src/angular/voice-stream.service.ts
|
|
1782
|
-
import { computed as
|
|
1905
|
+
import { computed as computed14, Injectable as Injectable14, signal as signal14 } from "@angular/core";
|
|
1783
1906
|
|
|
1784
1907
|
// src/client/actions.ts
|
|
1785
1908
|
var normalizeErrorMessage = (value) => {
|
|
@@ -3183,24 +3306,24 @@ var createVoiceStream = (path, options = {}) => {
|
|
|
3183
3306
|
|
|
3184
3307
|
// src/angular/voice-stream.service.ts
|
|
3185
3308
|
var _dec = [
|
|
3186
|
-
|
|
3309
|
+
Injectable14({ providedIn: "root" })
|
|
3187
3310
|
];
|
|
3188
3311
|
var _init = __decoratorStart(undefined);
|
|
3189
3312
|
|
|
3190
3313
|
class VoiceStreamService {
|
|
3191
3314
|
connect(path, options = {}) {
|
|
3192
3315
|
const stream = createVoiceStream(path, options);
|
|
3193
|
-
const assistantAudioSignal =
|
|
3194
|
-
const assistantTextsSignal =
|
|
3195
|
-
const callSignal =
|
|
3196
|
-
const errorSignal =
|
|
3197
|
-
const isConnectedSignal =
|
|
3198
|
-
const partialSignal =
|
|
3199
|
-
const reconnectSignal =
|
|
3200
|
-
const sessionIdSignal =
|
|
3201
|
-
const sessionMetadataSignal =
|
|
3202
|
-
const statusSignal =
|
|
3203
|
-
const turnsSignal =
|
|
3316
|
+
const assistantAudioSignal = signal14([]);
|
|
3317
|
+
const assistantTextsSignal = signal14([]);
|
|
3318
|
+
const callSignal = signal14(null);
|
|
3319
|
+
const errorSignal = signal14(null);
|
|
3320
|
+
const isConnectedSignal = signal14(false);
|
|
3321
|
+
const partialSignal = signal14("");
|
|
3322
|
+
const reconnectSignal = signal14(stream.reconnect);
|
|
3323
|
+
const sessionIdSignal = signal14(stream.sessionId);
|
|
3324
|
+
const sessionMetadataSignal = signal14(stream.sessionMetadata);
|
|
3325
|
+
const statusSignal = signal14(stream.status);
|
|
3326
|
+
const turnsSignal = signal14([]);
|
|
3204
3327
|
const sync = () => {
|
|
3205
3328
|
assistantAudioSignal.set([...stream.assistantAudio]);
|
|
3206
3329
|
assistantTextsSignal.set([...stream.assistantTexts]);
|
|
@@ -3217,25 +3340,25 @@ class VoiceStreamService {
|
|
|
3217
3340
|
const unsubscribe = stream.subscribe(sync);
|
|
3218
3341
|
sync();
|
|
3219
3342
|
return {
|
|
3220
|
-
assistantAudio:
|
|
3221
|
-
assistantTexts:
|
|
3222
|
-
call:
|
|
3343
|
+
assistantAudio: computed14(() => assistantAudioSignal()),
|
|
3344
|
+
assistantTexts: computed14(() => assistantTextsSignal()),
|
|
3345
|
+
call: computed14(() => callSignal()),
|
|
3223
3346
|
callControl: (message) => stream.callControl(message),
|
|
3224
3347
|
close: () => {
|
|
3225
3348
|
unsubscribe();
|
|
3226
3349
|
stream.close();
|
|
3227
3350
|
},
|
|
3228
3351
|
endTurn: () => stream.endTurn(),
|
|
3229
|
-
error:
|
|
3230
|
-
isConnected:
|
|
3231
|
-
partial:
|
|
3232
|
-
reconnect:
|
|
3352
|
+
error: computed14(() => errorSignal()),
|
|
3353
|
+
isConnected: computed14(() => isConnectedSignal()),
|
|
3354
|
+
partial: computed14(() => partialSignal()),
|
|
3355
|
+
reconnect: computed14(() => reconnectSignal()),
|
|
3233
3356
|
sendAudio: (audio) => stream.sendAudio(audio),
|
|
3234
3357
|
simulateDisconnect: () => stream.simulateDisconnect(),
|
|
3235
|
-
sessionId:
|
|
3236
|
-
sessionMetadata:
|
|
3237
|
-
status:
|
|
3238
|
-
turns:
|
|
3358
|
+
sessionId: computed14(() => sessionIdSignal()),
|
|
3359
|
+
sessionMetadata: computed14(() => sessionMetadataSignal()),
|
|
3360
|
+
status: computed14(() => statusSignal()),
|
|
3361
|
+
turns: computed14(() => turnsSignal())
|
|
3239
3362
|
};
|
|
3240
3363
|
}
|
|
3241
3364
|
}
|
|
@@ -3244,7 +3367,7 @@ __runInitializers(_init, 1, VoiceStreamService);
|
|
|
3244
3367
|
__decoratorMetadata(_init, VoiceStreamService);
|
|
3245
3368
|
let _VoiceStreamService = VoiceStreamService;
|
|
3246
3369
|
// src/angular/voice-controller.service.ts
|
|
3247
|
-
import { computed as
|
|
3370
|
+
import { computed as computed15, Injectable as Injectable15, signal as signal15 } from "@angular/core";
|
|
3248
3371
|
|
|
3249
3372
|
// src/client/htmx.ts
|
|
3250
3373
|
var DEFAULT_EVENT_NAME = "voice-refresh";
|
|
@@ -3895,24 +4018,24 @@ var createVoiceController = (path, options = {}) => {
|
|
|
3895
4018
|
|
|
3896
4019
|
// src/angular/voice-controller.service.ts
|
|
3897
4020
|
var _dec = [
|
|
3898
|
-
|
|
4021
|
+
Injectable15({ providedIn: "root" })
|
|
3899
4022
|
];
|
|
3900
4023
|
var _init = __decoratorStart(undefined);
|
|
3901
4024
|
|
|
3902
4025
|
class VoiceControllerService {
|
|
3903
4026
|
connect(path, options = {}) {
|
|
3904
4027
|
const controller = createVoiceController(path, options);
|
|
3905
|
-
const assistantAudioSignal =
|
|
3906
|
-
const assistantTextsSignal =
|
|
3907
|
-
const errorSignal =
|
|
3908
|
-
const isConnectedSignal =
|
|
3909
|
-
const isRecordingSignal =
|
|
3910
|
-
const partialSignal =
|
|
3911
|
-
const reconnectSignal =
|
|
3912
|
-
const recordingErrorSignal =
|
|
3913
|
-
const sessionIdSignal =
|
|
3914
|
-
const statusSignal =
|
|
3915
|
-
const turnsSignal =
|
|
4028
|
+
const assistantAudioSignal = signal15([]);
|
|
4029
|
+
const assistantTextsSignal = signal15([]);
|
|
4030
|
+
const errorSignal = signal15(null);
|
|
4031
|
+
const isConnectedSignal = signal15(false);
|
|
4032
|
+
const isRecordingSignal = signal15(false);
|
|
4033
|
+
const partialSignal = signal15("");
|
|
4034
|
+
const reconnectSignal = signal15(controller.reconnect);
|
|
4035
|
+
const recordingErrorSignal = signal15(null);
|
|
4036
|
+
const sessionIdSignal = signal15(controller.sessionId);
|
|
4037
|
+
const statusSignal = signal15(controller.status);
|
|
4038
|
+
const turnsSignal = signal15([]);
|
|
3916
4039
|
const sync = () => {
|
|
3917
4040
|
assistantAudioSignal.set([...controller.assistantAudio]);
|
|
3918
4041
|
assistantTextsSignal.set([...controller.assistantTexts]);
|
|
@@ -3929,28 +4052,28 @@ class VoiceControllerService {
|
|
|
3929
4052
|
const unsubscribe = controller.subscribe(sync);
|
|
3930
4053
|
sync();
|
|
3931
4054
|
return {
|
|
3932
|
-
assistantAudio:
|
|
3933
|
-
assistantTexts:
|
|
4055
|
+
assistantAudio: computed15(() => assistantAudioSignal()),
|
|
4056
|
+
assistantTexts: computed15(() => assistantTextsSignal()),
|
|
3934
4057
|
bindHTMX: controller.bindHTMX,
|
|
3935
4058
|
close: () => {
|
|
3936
4059
|
unsubscribe();
|
|
3937
4060
|
controller.close();
|
|
3938
4061
|
},
|
|
3939
4062
|
endTurn: () => controller.endTurn(),
|
|
3940
|
-
error:
|
|
3941
|
-
isConnected:
|
|
3942
|
-
isRecording:
|
|
3943
|
-
partial:
|
|
3944
|
-
reconnect:
|
|
3945
|
-
recordingError:
|
|
4063
|
+
error: computed15(() => errorSignal()),
|
|
4064
|
+
isConnected: computed15(() => isConnectedSignal()),
|
|
4065
|
+
isRecording: computed15(() => isRecordingSignal()),
|
|
4066
|
+
partial: computed15(() => partialSignal()),
|
|
4067
|
+
reconnect: computed15(() => reconnectSignal()),
|
|
4068
|
+
recordingError: computed15(() => recordingErrorSignal()),
|
|
3946
4069
|
sendAudio: (audio) => controller.sendAudio(audio),
|
|
3947
4070
|
simulateDisconnect: () => controller.simulateDisconnect(),
|
|
3948
|
-
sessionId:
|
|
4071
|
+
sessionId: computed15(() => sessionIdSignal()),
|
|
3949
4072
|
startRecording: () => controller.startRecording(),
|
|
3950
|
-
status:
|
|
4073
|
+
status: computed15(() => statusSignal()),
|
|
3951
4074
|
stopRecording: () => controller.stopRecording(),
|
|
3952
4075
|
toggleRecording: () => controller.toggleRecording(),
|
|
3953
|
-
turns:
|
|
4076
|
+
turns: computed15(() => turnsSignal())
|
|
3954
4077
|
};
|
|
3955
4078
|
}
|
|
3956
4079
|
}
|
|
@@ -3959,7 +4082,7 @@ __runInitializers(_init, 1, VoiceControllerService);
|
|
|
3959
4082
|
__decoratorMetadata(_init, VoiceControllerService);
|
|
3960
4083
|
let _VoiceControllerService = VoiceControllerService;
|
|
3961
4084
|
// src/angular/voice-provider-capabilities.service.ts
|
|
3962
|
-
import { computed as
|
|
4085
|
+
import { computed as computed16, Injectable as Injectable16, signal as signal16 } from "@angular/core";
|
|
3963
4086
|
|
|
3964
4087
|
// src/client/providerCapabilities.ts
|
|
3965
4088
|
var fetchVoiceProviderCapabilities = async (path = "/api/provider-capabilities", options = {}) => {
|
|
@@ -4042,17 +4165,17 @@ var createVoiceProviderCapabilitiesStore = (path = "/api/provider-capabilities",
|
|
|
4042
4165
|
|
|
4043
4166
|
// src/angular/voice-provider-capabilities.service.ts
|
|
4044
4167
|
var _dec = [
|
|
4045
|
-
|
|
4168
|
+
Injectable16({ providedIn: "root" })
|
|
4046
4169
|
];
|
|
4047
4170
|
var _init = __decoratorStart(undefined);
|
|
4048
4171
|
|
|
4049
4172
|
class VoiceProviderCapabilitiesService {
|
|
4050
4173
|
connect(path = "/api/provider-capabilities", options = {}) {
|
|
4051
4174
|
const store = createVoiceProviderCapabilitiesStore(path, options);
|
|
4052
|
-
const errorSignal =
|
|
4053
|
-
const isLoadingSignal =
|
|
4054
|
-
const reportSignal =
|
|
4055
|
-
const updatedAtSignal =
|
|
4175
|
+
const errorSignal = signal16(null);
|
|
4176
|
+
const isLoadingSignal = signal16(false);
|
|
4177
|
+
const reportSignal = signal16(undefined);
|
|
4178
|
+
const updatedAtSignal = signal16(undefined);
|
|
4056
4179
|
const sync = () => {
|
|
4057
4180
|
const snapshot = store.getSnapshot();
|
|
4058
4181
|
errorSignal.set(snapshot.error);
|
|
@@ -4068,11 +4191,11 @@ class VoiceProviderCapabilitiesService {
|
|
|
4068
4191
|
unsubscribe();
|
|
4069
4192
|
store.close();
|
|
4070
4193
|
},
|
|
4071
|
-
error:
|
|
4072
|
-
isLoading:
|
|
4194
|
+
error: computed16(() => errorSignal()),
|
|
4195
|
+
isLoading: computed16(() => isLoadingSignal()),
|
|
4073
4196
|
refresh: store.refresh,
|
|
4074
|
-
report:
|
|
4075
|
-
updatedAt:
|
|
4197
|
+
report: computed16(() => reportSignal()),
|
|
4198
|
+
updatedAt: computed16(() => updatedAtSignal())
|
|
4076
4199
|
};
|
|
4077
4200
|
}
|
|
4078
4201
|
}
|
|
@@ -4081,7 +4204,7 @@ __runInitializers(_init, 1, VoiceProviderCapabilitiesService);
|
|
|
4081
4204
|
__decoratorMetadata(_init, VoiceProviderCapabilitiesService);
|
|
4082
4205
|
let _VoiceProviderCapabilitiesService = VoiceProviderCapabilitiesService;
|
|
4083
4206
|
// src/angular/voice-provider-contracts.service.ts
|
|
4084
|
-
import { computed as
|
|
4207
|
+
import { computed as computed17, Injectable as Injectable17, signal as signal17 } from "@angular/core";
|
|
4085
4208
|
|
|
4086
4209
|
// src/client/providerContracts.ts
|
|
4087
4210
|
var fetchVoiceProviderContracts = async (path = "/api/provider-contracts", options = {}) => {
|
|
@@ -4160,17 +4283,17 @@ var createVoiceProviderContractsStore = (path = "/api/provider-contracts", optio
|
|
|
4160
4283
|
|
|
4161
4284
|
// src/angular/voice-provider-contracts.service.ts
|
|
4162
4285
|
var _dec = [
|
|
4163
|
-
|
|
4286
|
+
Injectable17({ providedIn: "root" })
|
|
4164
4287
|
];
|
|
4165
4288
|
var _init = __decoratorStart(undefined);
|
|
4166
4289
|
|
|
4167
4290
|
class VoiceProviderContractsService {
|
|
4168
4291
|
connect(path = "/api/provider-contracts", options = {}) {
|
|
4169
4292
|
const store = createVoiceProviderContractsStore(path, options);
|
|
4170
|
-
const errorSignal =
|
|
4171
|
-
const isLoadingSignal =
|
|
4172
|
-
const reportSignal =
|
|
4173
|
-
const updatedAtSignal =
|
|
4293
|
+
const errorSignal = signal17(null);
|
|
4294
|
+
const isLoadingSignal = signal17(false);
|
|
4295
|
+
const reportSignal = signal17(undefined);
|
|
4296
|
+
const updatedAtSignal = signal17(undefined);
|
|
4174
4297
|
const sync = () => {
|
|
4175
4298
|
const snapshot = store.getSnapshot();
|
|
4176
4299
|
errorSignal.set(snapshot.error);
|
|
@@ -4186,11 +4309,11 @@ class VoiceProviderContractsService {
|
|
|
4186
4309
|
unsubscribe();
|
|
4187
4310
|
store.close();
|
|
4188
4311
|
},
|
|
4189
|
-
error:
|
|
4190
|
-
isLoading:
|
|
4312
|
+
error: computed17(() => errorSignal()),
|
|
4313
|
+
isLoading: computed17(() => isLoadingSignal()),
|
|
4191
4314
|
refresh: store.refresh,
|
|
4192
|
-
report:
|
|
4193
|
-
updatedAt:
|
|
4315
|
+
report: computed17(() => reportSignal()),
|
|
4316
|
+
updatedAt: computed17(() => updatedAtSignal())
|
|
4194
4317
|
};
|
|
4195
4318
|
}
|
|
4196
4319
|
}
|
|
@@ -4199,7 +4322,7 @@ __runInitializers(_init, 1, VoiceProviderContractsService);
|
|
|
4199
4322
|
__decoratorMetadata(_init, VoiceProviderContractsService);
|
|
4200
4323
|
let _VoiceProviderContractsService = VoiceProviderContractsService;
|
|
4201
4324
|
// src/angular/voice-provider-status.service.ts
|
|
4202
|
-
import { computed as
|
|
4325
|
+
import { computed as computed18, Injectable as Injectable18, signal as signal18 } from "@angular/core";
|
|
4203
4326
|
|
|
4204
4327
|
// src/client/providerStatus.ts
|
|
4205
4328
|
var fetchVoiceProviderStatus = async (path = "/api/provider-status", options = {}) => {
|
|
@@ -4283,17 +4406,17 @@ var createVoiceProviderStatusStore = (path = "/api/provider-status", options = {
|
|
|
4283
4406
|
|
|
4284
4407
|
// src/angular/voice-provider-status.service.ts
|
|
4285
4408
|
var _dec = [
|
|
4286
|
-
|
|
4409
|
+
Injectable18({ providedIn: "root" })
|
|
4287
4410
|
];
|
|
4288
4411
|
var _init = __decoratorStart(undefined);
|
|
4289
4412
|
|
|
4290
4413
|
class VoiceProviderStatusService {
|
|
4291
4414
|
connect(path = "/api/provider-status", options = {}) {
|
|
4292
4415
|
const store = createVoiceProviderStatusStore(path, options);
|
|
4293
|
-
const errorSignal =
|
|
4294
|
-
const isLoadingSignal =
|
|
4295
|
-
const providersSignal =
|
|
4296
|
-
const updatedAtSignal =
|
|
4416
|
+
const errorSignal = signal18(null);
|
|
4417
|
+
const isLoadingSignal = signal18(false);
|
|
4418
|
+
const providersSignal = signal18([]);
|
|
4419
|
+
const updatedAtSignal = signal18(undefined);
|
|
4297
4420
|
const sync = () => {
|
|
4298
4421
|
const snapshot = store.getSnapshot();
|
|
4299
4422
|
errorSignal.set(snapshot.error);
|
|
@@ -4309,11 +4432,11 @@ class VoiceProviderStatusService {
|
|
|
4309
4432
|
unsubscribe();
|
|
4310
4433
|
store.close();
|
|
4311
4434
|
},
|
|
4312
|
-
error:
|
|
4313
|
-
isLoading:
|
|
4314
|
-
providers:
|
|
4435
|
+
error: computed18(() => errorSignal()),
|
|
4436
|
+
isLoading: computed18(() => isLoadingSignal()),
|
|
4437
|
+
providers: computed18(() => providersSignal()),
|
|
4315
4438
|
refresh: store.refresh,
|
|
4316
|
-
updatedAt:
|
|
4439
|
+
updatedAt: computed18(() => updatedAtSignal())
|
|
4317
4440
|
};
|
|
4318
4441
|
}
|
|
4319
4442
|
}
|
|
@@ -4322,7 +4445,7 @@ __runInitializers(_init, 1, VoiceProviderStatusService);
|
|
|
4322
4445
|
__decoratorMetadata(_init, VoiceProviderStatusService);
|
|
4323
4446
|
let _VoiceProviderStatusService = VoiceProviderStatusService;
|
|
4324
4447
|
// src/angular/voice-routing-status.service.ts
|
|
4325
|
-
import { Injectable as
|
|
4448
|
+
import { Injectable as Injectable19, signal as signal19 } from "@angular/core";
|
|
4326
4449
|
|
|
4327
4450
|
// src/client/routingStatus.ts
|
|
4328
4451
|
var fetchVoiceRoutingStatus = async (path = "/api/routing/latest", options = {}) => {
|
|
@@ -4406,17 +4529,17 @@ var createVoiceRoutingStatusStore = (path = "/api/routing/latest", options = {})
|
|
|
4406
4529
|
|
|
4407
4530
|
// src/angular/voice-routing-status.service.ts
|
|
4408
4531
|
var _dec = [
|
|
4409
|
-
|
|
4532
|
+
Injectable19({ providedIn: "root" })
|
|
4410
4533
|
];
|
|
4411
4534
|
var _init = __decoratorStart(undefined);
|
|
4412
4535
|
|
|
4413
4536
|
class VoiceRoutingStatusService {
|
|
4414
4537
|
connect(path = "/api/routing/latest", options = {}) {
|
|
4415
4538
|
const store = createVoiceRoutingStatusStore(path, options);
|
|
4416
|
-
const decisionSignal =
|
|
4417
|
-
const errorSignal =
|
|
4418
|
-
const isLoadingSignal =
|
|
4419
|
-
const updatedAtSignal =
|
|
4539
|
+
const decisionSignal = signal19(null);
|
|
4540
|
+
const errorSignal = signal19(null);
|
|
4541
|
+
const isLoadingSignal = signal19(false);
|
|
4542
|
+
const updatedAtSignal = signal19(undefined);
|
|
4420
4543
|
const sync = () => {
|
|
4421
4544
|
const snapshot = store.getSnapshot();
|
|
4422
4545
|
decisionSignal.set(snapshot.decision);
|
|
@@ -4445,7 +4568,7 @@ __runInitializers(_init, 1, VoiceRoutingStatusService);
|
|
|
4445
4568
|
__decoratorMetadata(_init, VoiceRoutingStatusService);
|
|
4446
4569
|
let _VoiceRoutingStatusService = VoiceRoutingStatusService;
|
|
4447
4570
|
// src/angular/voice-trace-timeline.service.ts
|
|
4448
|
-
import { computed as
|
|
4571
|
+
import { computed as computed19, Injectable as Injectable20, signal as signal20 } from "@angular/core";
|
|
4449
4572
|
|
|
4450
4573
|
// src/client/traceTimeline.ts
|
|
4451
4574
|
var fetchVoiceTraceTimeline = async (path = "/api/voice-traces", options = {}) => {
|
|
@@ -4529,17 +4652,17 @@ var createVoiceTraceTimelineStore = (path = "/api/voice-traces", options = {}) =
|
|
|
4529
4652
|
|
|
4530
4653
|
// src/angular/voice-trace-timeline.service.ts
|
|
4531
4654
|
var _dec = [
|
|
4532
|
-
|
|
4655
|
+
Injectable20({ providedIn: "root" })
|
|
4533
4656
|
];
|
|
4534
4657
|
var _init = __decoratorStart(undefined);
|
|
4535
4658
|
|
|
4536
4659
|
class VoiceTraceTimelineService {
|
|
4537
4660
|
connect(path = "/api/voice-traces", options = {}) {
|
|
4538
4661
|
const store = createVoiceTraceTimelineStore(path, options);
|
|
4539
|
-
const errorSignal =
|
|
4540
|
-
const isLoadingSignal =
|
|
4541
|
-
const reportSignal =
|
|
4542
|
-
const updatedAtSignal =
|
|
4662
|
+
const errorSignal = signal20(null);
|
|
4663
|
+
const isLoadingSignal = signal20(false);
|
|
4664
|
+
const reportSignal = signal20(null);
|
|
4665
|
+
const updatedAtSignal = signal20(undefined);
|
|
4543
4666
|
const sync = () => {
|
|
4544
4667
|
const snapshot = store.getSnapshot();
|
|
4545
4668
|
errorSignal.set(snapshot.error);
|
|
@@ -4555,11 +4678,11 @@ class VoiceTraceTimelineService {
|
|
|
4555
4678
|
unsubscribe();
|
|
4556
4679
|
store.close();
|
|
4557
4680
|
},
|
|
4558
|
-
error:
|
|
4559
|
-
isLoading:
|
|
4681
|
+
error: computed19(() => errorSignal()),
|
|
4682
|
+
isLoading: computed19(() => isLoadingSignal()),
|
|
4560
4683
|
refresh: store.refresh,
|
|
4561
|
-
report:
|
|
4562
|
-
updatedAt:
|
|
4684
|
+
report: computed19(() => reportSignal()),
|
|
4685
|
+
updatedAt: computed19(() => updatedAtSignal())
|
|
4563
4686
|
};
|
|
4564
4687
|
}
|
|
4565
4688
|
}
|
|
@@ -4568,7 +4691,7 @@ __runInitializers(_init, 1, VoiceTraceTimelineService);
|
|
|
4568
4691
|
__decoratorMetadata(_init, VoiceTraceTimelineService);
|
|
4569
4692
|
let _VoiceTraceTimelineService = VoiceTraceTimelineService;
|
|
4570
4693
|
// src/angular/voice-agent-squad-status.service.ts
|
|
4571
|
-
import { computed as
|
|
4694
|
+
import { computed as computed20, Injectable as Injectable21, signal as signal21 } from "@angular/core";
|
|
4572
4695
|
|
|
4573
4696
|
// src/client/agentSquadStatus.ts
|
|
4574
4697
|
var getString = (value) => typeof value === "string" && value.trim() ? value.trim() : undefined;
|
|
@@ -4646,17 +4769,17 @@ var createVoiceAgentSquadStatusStore = (path = "/api/voice-traces", options = {}
|
|
|
4646
4769
|
|
|
4647
4770
|
// src/angular/voice-agent-squad-status.service.ts
|
|
4648
4771
|
var _dec = [
|
|
4649
|
-
|
|
4772
|
+
Injectable21({ providedIn: "root" })
|
|
4650
4773
|
];
|
|
4651
4774
|
var _init = __decoratorStart(undefined);
|
|
4652
4775
|
|
|
4653
4776
|
class VoiceAgentSquadStatusService {
|
|
4654
4777
|
connect(path = "/api/voice-traces", options = {}) {
|
|
4655
4778
|
const store = createVoiceAgentSquadStatusStore(path, options);
|
|
4656
|
-
const errorSignal =
|
|
4657
|
-
const isLoadingSignal =
|
|
4658
|
-
const reportSignal =
|
|
4659
|
-
const updatedAtSignal =
|
|
4779
|
+
const errorSignal = signal21(null);
|
|
4780
|
+
const isLoadingSignal = signal21(false);
|
|
4781
|
+
const reportSignal = signal21(undefined);
|
|
4782
|
+
const updatedAtSignal = signal21(undefined);
|
|
4660
4783
|
const sync = () => {
|
|
4661
4784
|
const snapshot = store.getSnapshot();
|
|
4662
4785
|
errorSignal.set(snapshot.error);
|
|
@@ -4672,12 +4795,12 @@ class VoiceAgentSquadStatusService {
|
|
|
4672
4795
|
unsubscribe();
|
|
4673
4796
|
store.close();
|
|
4674
4797
|
},
|
|
4675
|
-
current:
|
|
4676
|
-
error:
|
|
4677
|
-
isLoading:
|
|
4798
|
+
current: computed20(() => reportSignal()?.current),
|
|
4799
|
+
error: computed20(() => errorSignal()),
|
|
4800
|
+
isLoading: computed20(() => isLoadingSignal()),
|
|
4678
4801
|
refresh: store.refresh,
|
|
4679
|
-
report:
|
|
4680
|
-
updatedAt:
|
|
4802
|
+
report: computed20(() => reportSignal()),
|
|
4803
|
+
updatedAt: computed20(() => updatedAtSignal())
|
|
4681
4804
|
};
|
|
4682
4805
|
}
|
|
4683
4806
|
}
|
|
@@ -4686,7 +4809,7 @@ __runInitializers(_init, 1, VoiceAgentSquadStatusService);
|
|
|
4686
4809
|
__decoratorMetadata(_init, VoiceAgentSquadStatusService);
|
|
4687
4810
|
let _VoiceAgentSquadStatusService = VoiceAgentSquadStatusService;
|
|
4688
4811
|
// src/angular/voice-turn-latency.service.ts
|
|
4689
|
-
import { computed as
|
|
4812
|
+
import { computed as computed21, Injectable as Injectable22, signal as signal22 } from "@angular/core";
|
|
4690
4813
|
|
|
4691
4814
|
// src/client/turnLatency.ts
|
|
4692
4815
|
var fetchVoiceTurnLatency = async (path = "/api/turn-latency", options = {}) => {
|
|
@@ -4793,17 +4916,17 @@ var createVoiceTurnLatencyStore = (path = "/api/turn-latency", options = {}) =>
|
|
|
4793
4916
|
|
|
4794
4917
|
// src/angular/voice-turn-latency.service.ts
|
|
4795
4918
|
var _dec = [
|
|
4796
|
-
|
|
4919
|
+
Injectable22({ providedIn: "root" })
|
|
4797
4920
|
];
|
|
4798
4921
|
var _init = __decoratorStart(undefined);
|
|
4799
4922
|
|
|
4800
4923
|
class VoiceTurnLatencyService {
|
|
4801
4924
|
connect(path = "/api/turn-latency", options = {}) {
|
|
4802
4925
|
const store = createVoiceTurnLatencyStore(path, options);
|
|
4803
|
-
const errorSignal =
|
|
4804
|
-
const isLoadingSignal =
|
|
4805
|
-
const reportSignal =
|
|
4806
|
-
const updatedAtSignal =
|
|
4926
|
+
const errorSignal = signal22(null);
|
|
4927
|
+
const isLoadingSignal = signal22(false);
|
|
4928
|
+
const reportSignal = signal22(undefined);
|
|
4929
|
+
const updatedAtSignal = signal22(undefined);
|
|
4807
4930
|
const sync = () => {
|
|
4808
4931
|
const snapshot = store.getSnapshot();
|
|
4809
4932
|
errorSignal.set(snapshot.error);
|
|
@@ -4819,12 +4942,12 @@ class VoiceTurnLatencyService {
|
|
|
4819
4942
|
unsubscribe();
|
|
4820
4943
|
store.close();
|
|
4821
4944
|
},
|
|
4822
|
-
error:
|
|
4823
|
-
isLoading:
|
|
4945
|
+
error: computed21(() => errorSignal()),
|
|
4946
|
+
isLoading: computed21(() => isLoadingSignal()),
|
|
4824
4947
|
refresh: store.refresh,
|
|
4825
|
-
report:
|
|
4948
|
+
report: computed21(() => reportSignal()),
|
|
4826
4949
|
runProof: store.runProof,
|
|
4827
|
-
updatedAt:
|
|
4950
|
+
updatedAt: computed21(() => updatedAtSignal())
|
|
4828
4951
|
};
|
|
4829
4952
|
}
|
|
4830
4953
|
}
|
|
@@ -4833,7 +4956,7 @@ __runInitializers(_init, 1, VoiceTurnLatencyService);
|
|
|
4833
4956
|
__decoratorMetadata(_init, VoiceTurnLatencyService);
|
|
4834
4957
|
let _VoiceTurnLatencyService = VoiceTurnLatencyService;
|
|
4835
4958
|
// src/angular/voice-turn-quality.service.ts
|
|
4836
|
-
import { computed as
|
|
4959
|
+
import { computed as computed22, Injectable as Injectable23, signal as signal23 } from "@angular/core";
|
|
4837
4960
|
|
|
4838
4961
|
// src/client/turnQuality.ts
|
|
4839
4962
|
var fetchVoiceTurnQuality = async (path = "/api/turn-quality", options = {}) => {
|
|
@@ -4916,17 +5039,17 @@ var createVoiceTurnQualityStore = (path = "/api/turn-quality", options = {}) =>
|
|
|
4916
5039
|
|
|
4917
5040
|
// src/angular/voice-turn-quality.service.ts
|
|
4918
5041
|
var _dec = [
|
|
4919
|
-
|
|
5042
|
+
Injectable23({ providedIn: "root" })
|
|
4920
5043
|
];
|
|
4921
5044
|
var _init = __decoratorStart(undefined);
|
|
4922
5045
|
|
|
4923
5046
|
class VoiceTurnQualityService {
|
|
4924
5047
|
connect(path = "/api/turn-quality", options = {}) {
|
|
4925
5048
|
const store = createVoiceTurnQualityStore(path, options);
|
|
4926
|
-
const errorSignal =
|
|
4927
|
-
const isLoadingSignal =
|
|
4928
|
-
const reportSignal =
|
|
4929
|
-
const updatedAtSignal =
|
|
5049
|
+
const errorSignal = signal23(null);
|
|
5050
|
+
const isLoadingSignal = signal23(false);
|
|
5051
|
+
const reportSignal = signal23(undefined);
|
|
5052
|
+
const updatedAtSignal = signal23(undefined);
|
|
4930
5053
|
const sync = () => {
|
|
4931
5054
|
const snapshot = store.getSnapshot();
|
|
4932
5055
|
errorSignal.set(snapshot.error);
|
|
@@ -4942,11 +5065,11 @@ class VoiceTurnQualityService {
|
|
|
4942
5065
|
unsubscribe();
|
|
4943
5066
|
store.close();
|
|
4944
5067
|
},
|
|
4945
|
-
error:
|
|
4946
|
-
isLoading:
|
|
5068
|
+
error: computed22(() => errorSignal()),
|
|
5069
|
+
isLoading: computed22(() => isLoadingSignal()),
|
|
4947
5070
|
refresh: store.refresh,
|
|
4948
|
-
report:
|
|
4949
|
-
updatedAt:
|
|
5071
|
+
report: computed22(() => reportSignal()),
|
|
5072
|
+
updatedAt: computed22(() => updatedAtSignal())
|
|
4950
5073
|
};
|
|
4951
5074
|
}
|
|
4952
5075
|
}
|
|
@@ -4955,7 +5078,7 @@ __runInitializers(_init, 1, VoiceTurnQualityService);
|
|
|
4955
5078
|
__decoratorMetadata(_init, VoiceTurnQualityService);
|
|
4956
5079
|
let _VoiceTurnQualityService = VoiceTurnQualityService;
|
|
4957
5080
|
// src/angular/voice-workflow-status.service.ts
|
|
4958
|
-
import { computed as
|
|
5081
|
+
import { computed as computed23, Injectable as Injectable24, signal as signal24 } from "@angular/core";
|
|
4959
5082
|
|
|
4960
5083
|
// src/client/workflowStatus.ts
|
|
4961
5084
|
var fetchVoiceWorkflowStatus = async (path = "/evals/scenarios/json", options = {}) => {
|
|
@@ -5038,17 +5161,17 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
5038
5161
|
|
|
5039
5162
|
// src/angular/voice-workflow-status.service.ts
|
|
5040
5163
|
var _dec = [
|
|
5041
|
-
|
|
5164
|
+
Injectable24({ providedIn: "root" })
|
|
5042
5165
|
];
|
|
5043
5166
|
var _init = __decoratorStart(undefined);
|
|
5044
5167
|
|
|
5045
5168
|
class VoiceWorkflowStatusService {
|
|
5046
5169
|
connect(path = "/evals/scenarios/json", options = {}) {
|
|
5047
5170
|
const store = createVoiceWorkflowStatusStore(path, options);
|
|
5048
|
-
const errorSignal =
|
|
5049
|
-
const isLoadingSignal =
|
|
5050
|
-
const reportSignal =
|
|
5051
|
-
const updatedAtSignal =
|
|
5171
|
+
const errorSignal = signal24(null);
|
|
5172
|
+
const isLoadingSignal = signal24(false);
|
|
5173
|
+
const reportSignal = signal24(undefined);
|
|
5174
|
+
const updatedAtSignal = signal24(undefined);
|
|
5052
5175
|
const sync = () => {
|
|
5053
5176
|
const snapshot = store.getSnapshot();
|
|
5054
5177
|
errorSignal.set(snapshot.error);
|
|
@@ -5066,11 +5189,11 @@ class VoiceWorkflowStatusService {
|
|
|
5066
5189
|
unsubscribe();
|
|
5067
5190
|
store.close();
|
|
5068
5191
|
},
|
|
5069
|
-
error:
|
|
5070
|
-
isLoading:
|
|
5192
|
+
error: computed23(() => errorSignal()),
|
|
5193
|
+
isLoading: computed23(() => isLoadingSignal()),
|
|
5071
5194
|
refresh: store.refresh,
|
|
5072
|
-
report:
|
|
5073
|
-
updatedAt:
|
|
5195
|
+
report: computed23(() => reportSignal()),
|
|
5196
|
+
updatedAt: computed23(() => updatedAtSignal())
|
|
5074
5197
|
};
|
|
5075
5198
|
}
|
|
5076
5199
|
}
|
|
@@ -5085,6 +5208,7 @@ export {
|
|
|
5085
5208
|
VoiceTraceTimelineService,
|
|
5086
5209
|
VoiceStreamService,
|
|
5087
5210
|
VoiceSessionSnapshotService,
|
|
5211
|
+
VoiceSessionObservabilityService,
|
|
5088
5212
|
VoiceRoutingStatusService,
|
|
5089
5213
|
VoiceReconnectProfileEvidenceService,
|
|
5090
5214
|
VoiceReadinessFailuresService,
|