@absolutejs/voice 0.0.22-beta.500 → 0.0.22-beta.502
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 +6 -0
- package/dist/angular/index.js +605 -264
- package/dist/angular/voice-cost-dashboard.service.d.ts +15 -0
- package/dist/angular/voice-live-call-viewer.service.d.ts +16 -0
- package/dist/angular/voice-replay-timeline.service.d.ts +13 -0
- package/dist/client/htmxDashboardRenderers.d.ts +80 -0
- package/dist/htmxDashboardRoutes.d.ts +249 -0
- package/dist/svelte/createVoiceCostDashboard.d.ts +13 -0
- package/dist/svelte/createVoiceLiveCallViewer.d.ts +26 -0
- package/dist/svelte/createVoiceReplayTimeline.d.ts +13 -0
- package/dist/svelte/index.d.ts +6 -0
- package/dist/svelte/index.js +376 -0
- package/dist/vue/VoiceCostDashboard.d.ts +57 -0
- package/dist/vue/VoiceLiveCallViewer.d.ts +35 -0
- package/dist/vue/VoiceReplayTimeline.d.ts +17 -0
- package/dist/vue/index.d.ts +3 -0
- package/dist/vue/index.js +570 -12
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -1766,9 +1766,347 @@ VoiceWidgetService = __decorateElement(_init, 0, "VoiceWidgetService", _dec, Voi
|
|
|
1766
1766
|
__runInitializers(_init, 1, VoiceWidgetService);
|
|
1767
1767
|
__decoratorMetadata(_init, VoiceWidgetService);
|
|
1768
1768
|
let _VoiceWidgetService = VoiceWidgetService;
|
|
1769
|
-
// src/angular/voice-
|
|
1769
|
+
// src/angular/voice-cost-dashboard.service.ts
|
|
1770
1770
|
import { computed as computed3, Injectable as Injectable3, signal as signal3 } from "@angular/core";
|
|
1771
1771
|
|
|
1772
|
+
// src/client/costDashboard.ts
|
|
1773
|
+
var padTwo = (value) => String(value).padStart(2, "0");
|
|
1774
|
+
var formatBucketKey = (epochMs, bucketBy) => {
|
|
1775
|
+
const date = new Date(epochMs);
|
|
1776
|
+
const y = date.getUTCFullYear();
|
|
1777
|
+
const m = padTwo(date.getUTCMonth() + 1);
|
|
1778
|
+
const d = padTwo(date.getUTCDate());
|
|
1779
|
+
const h = padTwo(date.getUTCHours());
|
|
1780
|
+
if (bucketBy === "month")
|
|
1781
|
+
return `${y}-${m}`;
|
|
1782
|
+
if (bucketBy === "day")
|
|
1783
|
+
return `${y}-${m}-${d}`;
|
|
1784
|
+
return `${y}-${m}-${d}T${h}`;
|
|
1785
|
+
};
|
|
1786
|
+
var isCostBreakdown = (value) => Boolean(value) && typeof value === "object" && typeof value.totalUsd === "number";
|
|
1787
|
+
var emptyBucket = (bucketKey) => ({
|
|
1788
|
+
bucketKey,
|
|
1789
|
+
callCount: 0,
|
|
1790
|
+
llmUsd: 0,
|
|
1791
|
+
sttUsd: 0,
|
|
1792
|
+
telephonyMinutes: 0,
|
|
1793
|
+
telephonyUsd: 0,
|
|
1794
|
+
totalUsd: 0,
|
|
1795
|
+
ttsUsd: 0
|
|
1796
|
+
});
|
|
1797
|
+
var accumulate = (bucket, payload) => {
|
|
1798
|
+
bucket.callCount += 1;
|
|
1799
|
+
bucket.llmUsd += payload.llm.usd;
|
|
1800
|
+
bucket.sttUsd += payload.stt.usd;
|
|
1801
|
+
bucket.ttsUsd += payload.tts.usd;
|
|
1802
|
+
bucket.telephonyUsd += payload.telephony.usd;
|
|
1803
|
+
bucket.telephonyMinutes += payload.telephony.minutes;
|
|
1804
|
+
bucket.totalUsd += payload.totalUsd;
|
|
1805
|
+
};
|
|
1806
|
+
var roundCurrency = (bucket) => {
|
|
1807
|
+
bucket.llmUsd = Math.round(bucket.llmUsd * 1e6) / 1e6;
|
|
1808
|
+
bucket.sttUsd = Math.round(bucket.sttUsd * 1e6) / 1e6;
|
|
1809
|
+
bucket.ttsUsd = Math.round(bucket.ttsUsd * 1e6) / 1e6;
|
|
1810
|
+
bucket.telephonyUsd = Math.round(bucket.telephonyUsd * 1e6) / 1e6;
|
|
1811
|
+
bucket.totalUsd = Math.round(bucket.totalUsd * 1e6) / 1e6;
|
|
1812
|
+
};
|
|
1813
|
+
var buildVoiceCostDashboardReport = (options) => {
|
|
1814
|
+
const bucketBy = options.bucketBy ?? "day";
|
|
1815
|
+
const fromMs = options.fromMs ?? Number.NEGATIVE_INFINITY;
|
|
1816
|
+
const toMs = options.toMs ?? Number.POSITIVE_INFINITY;
|
|
1817
|
+
const buckets = new Map;
|
|
1818
|
+
const grandTotal = emptyBucket("total");
|
|
1819
|
+
let minMs = Number.POSITIVE_INFINITY;
|
|
1820
|
+
let maxMs = Number.NEGATIVE_INFINITY;
|
|
1821
|
+
for (const event of options.events) {
|
|
1822
|
+
if (event.type !== "cost.ready")
|
|
1823
|
+
continue;
|
|
1824
|
+
if (event.at < fromMs || event.at > toMs)
|
|
1825
|
+
continue;
|
|
1826
|
+
if (!isCostBreakdown(event.payload))
|
|
1827
|
+
continue;
|
|
1828
|
+
minMs = Math.min(minMs, event.at);
|
|
1829
|
+
maxMs = Math.max(maxMs, event.at);
|
|
1830
|
+
const bucketKey = formatBucketKey(event.at, bucketBy);
|
|
1831
|
+
let bucket = buckets.get(bucketKey);
|
|
1832
|
+
if (!bucket) {
|
|
1833
|
+
bucket = emptyBucket(bucketKey);
|
|
1834
|
+
buckets.set(bucketKey, bucket);
|
|
1835
|
+
}
|
|
1836
|
+
accumulate(bucket, event.payload);
|
|
1837
|
+
accumulate(grandTotal, event.payload);
|
|
1838
|
+
}
|
|
1839
|
+
for (const bucket of buckets.values()) {
|
|
1840
|
+
roundCurrency(bucket);
|
|
1841
|
+
}
|
|
1842
|
+
roundCurrency(grandTotal);
|
|
1843
|
+
return {
|
|
1844
|
+
buckets: Array.from(buckets.values()).sort((a, b) => a.bucketKey.localeCompare(b.bucketKey)),
|
|
1845
|
+
generatedAt: Date.now(),
|
|
1846
|
+
grandTotal,
|
|
1847
|
+
windowEndMs: Number.isFinite(maxMs) ? maxMs : 0,
|
|
1848
|
+
windowStartMs: Number.isFinite(minMs) ? minMs : 0
|
|
1849
|
+
};
|
|
1850
|
+
};
|
|
1851
|
+
|
|
1852
|
+
// src/angular/voice-cost-dashboard.service.ts
|
|
1853
|
+
var _dec = [
|
|
1854
|
+
Injectable3({ providedIn: "root" })
|
|
1855
|
+
];
|
|
1856
|
+
var _init = __decoratorStart(undefined);
|
|
1857
|
+
|
|
1858
|
+
class VoiceCostDashboardService {
|
|
1859
|
+
build(options) {
|
|
1860
|
+
const events = signal3(options.events);
|
|
1861
|
+
const filters = signal3({
|
|
1862
|
+
bucketBy: options.bucketBy,
|
|
1863
|
+
fromMs: options.fromMs,
|
|
1864
|
+
toMs: options.toMs
|
|
1865
|
+
});
|
|
1866
|
+
const report = computed3(() => {
|
|
1867
|
+
const f = filters();
|
|
1868
|
+
return buildVoiceCostDashboardReport({
|
|
1869
|
+
bucketBy: f.bucketBy,
|
|
1870
|
+
events: events(),
|
|
1871
|
+
fromMs: f.fromMs,
|
|
1872
|
+
toMs: f.toMs
|
|
1873
|
+
});
|
|
1874
|
+
});
|
|
1875
|
+
return {
|
|
1876
|
+
currency: options.currency ?? "USD",
|
|
1877
|
+
report,
|
|
1878
|
+
setEvents: (next) => events.set(next),
|
|
1879
|
+
setFilters: (next) => filters.update((current) => ({
|
|
1880
|
+
...current,
|
|
1881
|
+
bucketBy: next.bucketBy ?? current.bucketBy,
|
|
1882
|
+
fromMs: next.fromMs ?? current.fromMs,
|
|
1883
|
+
toMs: next.toMs ?? current.toMs
|
|
1884
|
+
})),
|
|
1885
|
+
title: options.title ?? "Voice cost dashboard"
|
|
1886
|
+
};
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
VoiceCostDashboardService = __decorateElement(_init, 0, "VoiceCostDashboardService", _dec, VoiceCostDashboardService);
|
|
1890
|
+
__runInitializers(_init, 1, VoiceCostDashboardService);
|
|
1891
|
+
__decoratorMetadata(_init, VoiceCostDashboardService);
|
|
1892
|
+
let _VoiceCostDashboardService = VoiceCostDashboardService;
|
|
1893
|
+
// src/angular/voice-live-call-viewer.service.ts
|
|
1894
|
+
import { computed as computed4, Injectable as Injectable4, signal as signal4 } from "@angular/core";
|
|
1895
|
+
|
|
1896
|
+
// src/client/liveCallViewer.ts
|
|
1897
|
+
var EVENT_BUFFER_LIMIT = 200;
|
|
1898
|
+
var createLiveCallViewer = (options) => {
|
|
1899
|
+
const bufferLimit = options.bufferLimit ?? EVENT_BUFFER_LIMIT;
|
|
1900
|
+
const subscribers = new Set;
|
|
1901
|
+
let state = {
|
|
1902
|
+
agentState: "idle",
|
|
1903
|
+
callDurationMs: 0,
|
|
1904
|
+
events: [],
|
|
1905
|
+
isConnected: true,
|
|
1906
|
+
isLiveListening: true,
|
|
1907
|
+
partialTranscript: "",
|
|
1908
|
+
sessionId: options.sessionId
|
|
1909
|
+
};
|
|
1910
|
+
const startedAt = options.startedAt ?? Date.now();
|
|
1911
|
+
const notify = () => {
|
|
1912
|
+
for (const subscriber of subscribers)
|
|
1913
|
+
subscriber();
|
|
1914
|
+
};
|
|
1915
|
+
const update = (next) => {
|
|
1916
|
+
state = { ...state, ...next };
|
|
1917
|
+
state.callDurationMs = Math.max(0, Date.now() - startedAt);
|
|
1918
|
+
state.agentState = deriveVoiceAgentUIState({
|
|
1919
|
+
hasActivePartial: state.partialTranscript.length > 0,
|
|
1920
|
+
isConnected: state.isConnected,
|
|
1921
|
+
isPlaying: false,
|
|
1922
|
+
isRecording: state.isLiveListening,
|
|
1923
|
+
lastAssistantAt: state.lastAssistantAt,
|
|
1924
|
+
lastTranscriptAt: state.lastTranscriptAt
|
|
1925
|
+
});
|
|
1926
|
+
notify();
|
|
1927
|
+
};
|
|
1928
|
+
const pushEvent = (event) => {
|
|
1929
|
+
const next = state.events.concat(event);
|
|
1930
|
+
if (next.length > bufferLimit) {
|
|
1931
|
+
next.splice(0, next.length - bufferLimit);
|
|
1932
|
+
}
|
|
1933
|
+
update({ events: next });
|
|
1934
|
+
};
|
|
1935
|
+
return {
|
|
1936
|
+
applyControl: (control) => {
|
|
1937
|
+
pushEvent({
|
|
1938
|
+
at: Date.now(),
|
|
1939
|
+
detail: control.reason,
|
|
1940
|
+
kind: "lifecycle",
|
|
1941
|
+
title: `control:${control.type}`
|
|
1942
|
+
});
|
|
1943
|
+
},
|
|
1944
|
+
applyEvent: pushEvent,
|
|
1945
|
+
applyMonitorEvent: ({ payload, type }) => {
|
|
1946
|
+
pushEvent({
|
|
1947
|
+
at: Date.now(),
|
|
1948
|
+
detail: JSON.stringify(payload).slice(0, 240),
|
|
1949
|
+
kind: type === "call.lifecycle" ? "lifecycle" : "lifecycle",
|
|
1950
|
+
title: type
|
|
1951
|
+
});
|
|
1952
|
+
},
|
|
1953
|
+
getState: () => state,
|
|
1954
|
+
noteAgentAudio: (at) => {
|
|
1955
|
+
const ts = at ?? Date.now();
|
|
1956
|
+
update({ lastAssistantAt: ts });
|
|
1957
|
+
pushEvent({
|
|
1958
|
+
at: ts,
|
|
1959
|
+
kind: "agent_audio",
|
|
1960
|
+
title: "Agent audio frame"
|
|
1961
|
+
});
|
|
1962
|
+
},
|
|
1963
|
+
notePartial: (text, at) => {
|
|
1964
|
+
update({ partialTranscript: text });
|
|
1965
|
+
if (text) {
|
|
1966
|
+
pushEvent({
|
|
1967
|
+
at: at ?? Date.now(),
|
|
1968
|
+
detail: text,
|
|
1969
|
+
kind: "transcript",
|
|
1970
|
+
title: "Partial"
|
|
1971
|
+
});
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
noteTranscript: (text, at) => {
|
|
1975
|
+
const ts = at ?? Date.now();
|
|
1976
|
+
update({ lastTranscriptAt: ts, partialTranscript: "" });
|
|
1977
|
+
pushEvent({
|
|
1978
|
+
at: ts,
|
|
1979
|
+
detail: text,
|
|
1980
|
+
kind: "transcript",
|
|
1981
|
+
title: "Final transcript"
|
|
1982
|
+
});
|
|
1983
|
+
},
|
|
1984
|
+
reset: (sessionId, startedAtOverride) => {
|
|
1985
|
+
state = {
|
|
1986
|
+
agentState: "idle",
|
|
1987
|
+
callDurationMs: 0,
|
|
1988
|
+
events: [],
|
|
1989
|
+
isConnected: true,
|
|
1990
|
+
isLiveListening: true,
|
|
1991
|
+
partialTranscript: "",
|
|
1992
|
+
sessionId
|
|
1993
|
+
};
|
|
1994
|
+
if (typeof startedAtOverride === "number") {}
|
|
1995
|
+
notify();
|
|
1996
|
+
},
|
|
1997
|
+
subscribe: (subscriber) => {
|
|
1998
|
+
subscribers.add(subscriber);
|
|
1999
|
+
return () => subscribers.delete(subscriber);
|
|
2000
|
+
}
|
|
2001
|
+
};
|
|
2002
|
+
};
|
|
2003
|
+
|
|
2004
|
+
// src/angular/voice-live-call-viewer.service.ts
|
|
2005
|
+
var _dec = [
|
|
2006
|
+
Injectable4({ providedIn: "root" })
|
|
2007
|
+
];
|
|
2008
|
+
var _init = __decoratorStart(undefined);
|
|
2009
|
+
|
|
2010
|
+
class VoiceLiveCallViewerService {
|
|
2011
|
+
build(options) {
|
|
2012
|
+
const viewer = options.viewer ?? createLiveCallViewer(options);
|
|
2013
|
+
const stateSignal = signal4(viewer.getState());
|
|
2014
|
+
const unsubscribe = viewer.subscribe(() => {
|
|
2015
|
+
stateSignal.set(viewer.getState());
|
|
2016
|
+
});
|
|
2017
|
+
return {
|
|
2018
|
+
noteAgentAudio: (at) => viewer.noteAgentAudio(at),
|
|
2019
|
+
notePartial: (text, at) => viewer.notePartial(text, at),
|
|
2020
|
+
noteTranscript: (text, at) => viewer.noteTranscript(text, at),
|
|
2021
|
+
reset: (sessionId, startedAt) => viewer.reset(sessionId, startedAt),
|
|
2022
|
+
state: computed4(() => stateSignal()),
|
|
2023
|
+
stop: () => unsubscribe(),
|
|
2024
|
+
title: options.title ?? "Live call"
|
|
2025
|
+
};
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
VoiceLiveCallViewerService = __decorateElement(_init, 0, "VoiceLiveCallViewerService", _dec, VoiceLiveCallViewerService);
|
|
2029
|
+
__runInitializers(_init, 1, VoiceLiveCallViewerService);
|
|
2030
|
+
__decoratorMetadata(_init, VoiceLiveCallViewerService);
|
|
2031
|
+
let _VoiceLiveCallViewerService = VoiceLiveCallViewerService;
|
|
2032
|
+
// src/angular/voice-replay-timeline.service.ts
|
|
2033
|
+
import { computed as computed5, Injectable as Injectable5, signal as signal5 } from "@angular/core";
|
|
2034
|
+
|
|
2035
|
+
// src/client/replayTimeline.ts
|
|
2036
|
+
var categorize = (entry) => {
|
|
2037
|
+
const event = entry.event.toLowerCase();
|
|
2038
|
+
if (event.startsWith("stt.") || event.includes("user"))
|
|
2039
|
+
return "user";
|
|
2040
|
+
if (event.startsWith("tts.") || event.includes("assistant") || event.includes("agent"))
|
|
2041
|
+
return "agent";
|
|
2042
|
+
if (event.startsWith("tool.") || event.includes("tool"))
|
|
2043
|
+
return "tool";
|
|
2044
|
+
return "lifecycle";
|
|
2045
|
+
};
|
|
2046
|
+
var buildReplayTimelineReport = (input) => {
|
|
2047
|
+
const events = [];
|
|
2048
|
+
let summaryAgentTurns = 0;
|
|
2049
|
+
let summaryUserTurns = 0;
|
|
2050
|
+
let summaryToolCalls = 0;
|
|
2051
|
+
for (const entry of input.artifact.timeline ?? []) {
|
|
2052
|
+
const category = categorize(entry);
|
|
2053
|
+
if (category === "user")
|
|
2054
|
+
summaryUserTurns += 1;
|
|
2055
|
+
if (category === "agent")
|
|
2056
|
+
summaryAgentTurns += 1;
|
|
2057
|
+
if (category === "tool")
|
|
2058
|
+
summaryToolCalls += 1;
|
|
2059
|
+
events.push({
|
|
2060
|
+
at: entry.atMs,
|
|
2061
|
+
category,
|
|
2062
|
+
detail: entry.text ?? entry.reason,
|
|
2063
|
+
durationMs: entry.chunkDurationMs,
|
|
2064
|
+
label: entry.event
|
|
2065
|
+
});
|
|
2066
|
+
}
|
|
2067
|
+
events.sort((a, b) => a.at - b.at);
|
|
2068
|
+
const first = events[0]?.at ?? 0;
|
|
2069
|
+
const last = events.at(-1)?.at ?? first;
|
|
2070
|
+
return {
|
|
2071
|
+
duration: last - first,
|
|
2072
|
+
events,
|
|
2073
|
+
metadata: {
|
|
2074
|
+
artifactId: input.artifact.id ?? "",
|
|
2075
|
+
title: input.artifact.title
|
|
2076
|
+
},
|
|
2077
|
+
startedAt: first,
|
|
2078
|
+
summary: {
|
|
2079
|
+
agentTurns: summaryAgentTurns,
|
|
2080
|
+
toolCalls: summaryToolCalls,
|
|
2081
|
+
userTurns: summaryUserTurns
|
|
2082
|
+
}
|
|
2083
|
+
};
|
|
2084
|
+
};
|
|
2085
|
+
|
|
2086
|
+
// src/angular/voice-replay-timeline.service.ts
|
|
2087
|
+
var _dec = [
|
|
2088
|
+
Injectable5({ providedIn: "root" })
|
|
2089
|
+
];
|
|
2090
|
+
var _init = __decoratorStart(undefined);
|
|
2091
|
+
|
|
2092
|
+
class VoiceReplayTimelineService {
|
|
2093
|
+
build(options) {
|
|
2094
|
+
const artifact = signal5(options.artifact);
|
|
2095
|
+
const report = computed5(() => buildReplayTimelineReport({ artifact: artifact() }));
|
|
2096
|
+
return {
|
|
2097
|
+
report,
|
|
2098
|
+
setArtifact: (next) => artifact.set(next),
|
|
2099
|
+
title: options.title
|
|
2100
|
+
};
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
VoiceReplayTimelineService = __decorateElement(_init, 0, "VoiceReplayTimelineService", _dec, VoiceReplayTimelineService);
|
|
2104
|
+
__runInitializers(_init, 1, VoiceReplayTimelineService);
|
|
2105
|
+
__decoratorMetadata(_init, VoiceReplayTimelineService);
|
|
2106
|
+
let _VoiceReplayTimelineService = VoiceReplayTimelineService;
|
|
2107
|
+
// src/angular/voice-platform-coverage.service.ts
|
|
2108
|
+
import { computed as computed6, Injectable as Injectable6, signal as signal6 } from "@angular/core";
|
|
2109
|
+
|
|
1772
2110
|
// src/client/platformCoverage.ts
|
|
1773
2111
|
var fetchVoicePlatformCoverage = async (path = "/api/voice/platform-coverage", options = {}) => {
|
|
1774
2112
|
const fetchImpl = options.fetch ?? globalThis.fetch;
|
|
@@ -1850,17 +2188,17 @@ var createVoicePlatformCoverageStore = (path = "/api/voice/platform-coverage", o
|
|
|
1850
2188
|
|
|
1851
2189
|
// src/angular/voice-platform-coverage.service.ts
|
|
1852
2190
|
var _dec = [
|
|
1853
|
-
|
|
2191
|
+
Injectable6({ providedIn: "root" })
|
|
1854
2192
|
];
|
|
1855
2193
|
var _init = __decoratorStart(undefined);
|
|
1856
2194
|
|
|
1857
2195
|
class VoicePlatformCoverageService {
|
|
1858
2196
|
connect(path = "/api/voice/platform-coverage", options = {}) {
|
|
1859
2197
|
const store = createVoicePlatformCoverageStore(path, options);
|
|
1860
|
-
const errorSignal =
|
|
1861
|
-
const isLoadingSignal =
|
|
1862
|
-
const reportSignal =
|
|
1863
|
-
const updatedAtSignal =
|
|
2198
|
+
const errorSignal = signal6(null);
|
|
2199
|
+
const isLoadingSignal = signal6(false);
|
|
2200
|
+
const reportSignal = signal6(undefined);
|
|
2201
|
+
const updatedAtSignal = signal6(undefined);
|
|
1864
2202
|
const sync = () => {
|
|
1865
2203
|
const snapshot = store.getSnapshot();
|
|
1866
2204
|
errorSignal.set(snapshot.error);
|
|
@@ -1878,11 +2216,11 @@ class VoicePlatformCoverageService {
|
|
|
1878
2216
|
unsubscribe();
|
|
1879
2217
|
store.close();
|
|
1880
2218
|
},
|
|
1881
|
-
error:
|
|
1882
|
-
isLoading:
|
|
2219
|
+
error: computed6(() => errorSignal()),
|
|
2220
|
+
isLoading: computed6(() => isLoadingSignal()),
|
|
1883
2221
|
refresh: store.refresh,
|
|
1884
|
-
report:
|
|
1885
|
-
updatedAt:
|
|
2222
|
+
report: computed6(() => reportSignal()),
|
|
2223
|
+
updatedAt: computed6(() => updatedAtSignal())
|
|
1886
2224
|
};
|
|
1887
2225
|
}
|
|
1888
2226
|
}
|
|
@@ -1891,7 +2229,7 @@ __runInitializers(_init, 1, VoicePlatformCoverageService);
|
|
|
1891
2229
|
__decoratorMetadata(_init, VoicePlatformCoverageService);
|
|
1892
2230
|
let _VoicePlatformCoverageService = VoicePlatformCoverageService;
|
|
1893
2231
|
// src/angular/voice-proof-trends.service.ts
|
|
1894
|
-
import { computed as
|
|
2232
|
+
import { computed as computed7, Injectable as Injectable7, signal as signal7 } from "@angular/core";
|
|
1895
2233
|
|
|
1896
2234
|
// src/client/proofTrends.ts
|
|
1897
2235
|
var fetchVoiceProofTrends = async (path = "/api/voice/proof-trends", options = {}) => {
|
|
@@ -1974,17 +2312,17 @@ var createVoiceProofTrendsStore = (path = "/api/voice/proof-trends", options = {
|
|
|
1974
2312
|
|
|
1975
2313
|
// src/angular/voice-proof-trends.service.ts
|
|
1976
2314
|
var _dec = [
|
|
1977
|
-
|
|
2315
|
+
Injectable7({ providedIn: "root" })
|
|
1978
2316
|
];
|
|
1979
2317
|
var _init = __decoratorStart(undefined);
|
|
1980
2318
|
|
|
1981
2319
|
class VoiceProofTrendsService {
|
|
1982
2320
|
connect(path = "/api/voice/proof-trends", options = {}) {
|
|
1983
2321
|
const store = createVoiceProofTrendsStore(path, options);
|
|
1984
|
-
const errorSignal =
|
|
1985
|
-
const isLoadingSignal =
|
|
1986
|
-
const reportSignal =
|
|
1987
|
-
const updatedAtSignal =
|
|
2322
|
+
const errorSignal = signal7(null);
|
|
2323
|
+
const isLoadingSignal = signal7(false);
|
|
2324
|
+
const reportSignal = signal7(undefined);
|
|
2325
|
+
const updatedAtSignal = signal7(undefined);
|
|
1988
2326
|
const sync = () => {
|
|
1989
2327
|
const snapshot = store.getSnapshot();
|
|
1990
2328
|
errorSignal.set(snapshot.error);
|
|
@@ -2002,11 +2340,11 @@ class VoiceProofTrendsService {
|
|
|
2002
2340
|
unsubscribe();
|
|
2003
2341
|
store.close();
|
|
2004
2342
|
},
|
|
2005
|
-
error:
|
|
2006
|
-
isLoading:
|
|
2343
|
+
error: computed7(() => errorSignal()),
|
|
2344
|
+
isLoading: computed7(() => isLoadingSignal()),
|
|
2007
2345
|
refresh: store.refresh,
|
|
2008
|
-
report:
|
|
2009
|
-
updatedAt:
|
|
2346
|
+
report: computed7(() => reportSignal()),
|
|
2347
|
+
updatedAt: computed7(() => updatedAtSignal())
|
|
2010
2348
|
};
|
|
2011
2349
|
}
|
|
2012
2350
|
}
|
|
@@ -2015,7 +2353,7 @@ __runInitializers(_init, 1, VoiceProofTrendsService);
|
|
|
2015
2353
|
__decoratorMetadata(_init, VoiceProofTrendsService);
|
|
2016
2354
|
let _VoiceProofTrendsService = VoiceProofTrendsService;
|
|
2017
2355
|
// src/angular/voice-reconnect-profile-evidence.service.ts
|
|
2018
|
-
import { computed as
|
|
2356
|
+
import { computed as computed8, Injectable as Injectable8, signal as signal8 } from "@angular/core";
|
|
2019
2357
|
|
|
2020
2358
|
// src/client/reconnectProfileEvidence.ts
|
|
2021
2359
|
var fetchVoiceReconnectProfileEvidence = async (path = "/api/voice/reconnect-profile-evidence", options = {}) => {
|
|
@@ -2094,17 +2432,17 @@ var createVoiceReconnectProfileEvidenceStore = (path = "/api/voice/reconnect-pro
|
|
|
2094
2432
|
|
|
2095
2433
|
// src/angular/voice-reconnect-profile-evidence.service.ts
|
|
2096
2434
|
var _dec = [
|
|
2097
|
-
|
|
2435
|
+
Injectable8({ providedIn: "root" })
|
|
2098
2436
|
];
|
|
2099
2437
|
var _init = __decoratorStart(undefined);
|
|
2100
2438
|
|
|
2101
2439
|
class VoiceReconnectProfileEvidenceService {
|
|
2102
2440
|
connect(path = "/api/voice/reconnect-profile-evidence", options = {}) {
|
|
2103
2441
|
const store = createVoiceReconnectProfileEvidenceStore(path, options);
|
|
2104
|
-
const errorSignal =
|
|
2105
|
-
const isLoadingSignal =
|
|
2106
|
-
const reportSignal =
|
|
2107
|
-
const updatedAtSignal =
|
|
2442
|
+
const errorSignal = signal8(null);
|
|
2443
|
+
const isLoadingSignal = signal8(false);
|
|
2444
|
+
const reportSignal = signal8(undefined);
|
|
2445
|
+
const updatedAtSignal = signal8(undefined);
|
|
2108
2446
|
const sync = () => {
|
|
2109
2447
|
const snapshot = store.getSnapshot();
|
|
2110
2448
|
errorSignal.set(snapshot.error);
|
|
@@ -2122,11 +2460,11 @@ class VoiceReconnectProfileEvidenceService {
|
|
|
2122
2460
|
unsubscribe();
|
|
2123
2461
|
store.close();
|
|
2124
2462
|
},
|
|
2125
|
-
error:
|
|
2126
|
-
isLoading:
|
|
2463
|
+
error: computed8(() => errorSignal()),
|
|
2464
|
+
isLoading: computed8(() => isLoadingSignal()),
|
|
2127
2465
|
refresh: store.refresh,
|
|
2128
|
-
report:
|
|
2129
|
-
updatedAt:
|
|
2466
|
+
report: computed8(() => reportSignal()),
|
|
2467
|
+
updatedAt: computed8(() => updatedAtSignal())
|
|
2130
2468
|
};
|
|
2131
2469
|
}
|
|
2132
2470
|
}
|
|
@@ -2135,7 +2473,7 @@ __runInitializers(_init, 1, VoiceReconnectProfileEvidenceService);
|
|
|
2135
2473
|
__decoratorMetadata(_init, VoiceReconnectProfileEvidenceService);
|
|
2136
2474
|
let _VoiceReconnectProfileEvidenceService = VoiceReconnectProfileEvidenceService;
|
|
2137
2475
|
// src/angular/voice-call-debugger.service.ts
|
|
2138
|
-
import { computed as
|
|
2476
|
+
import { computed as computed9, Injectable as Injectable9, signal as signal9 } from "@angular/core";
|
|
2139
2477
|
|
|
2140
2478
|
// src/client/callDebugger.ts
|
|
2141
2479
|
var fetchVoiceCallDebugger = async (path, options = {}) => {
|
|
@@ -2214,17 +2552,17 @@ var createVoiceCallDebuggerStore = (path, options = {}) => {
|
|
|
2214
2552
|
|
|
2215
2553
|
// src/angular/voice-call-debugger.service.ts
|
|
2216
2554
|
var _dec = [
|
|
2217
|
-
|
|
2555
|
+
Injectable9({ providedIn: "root" })
|
|
2218
2556
|
];
|
|
2219
2557
|
var _init = __decoratorStart(undefined);
|
|
2220
2558
|
|
|
2221
2559
|
class VoiceCallDebuggerService {
|
|
2222
2560
|
connect(path, options = {}) {
|
|
2223
2561
|
const store = createVoiceCallDebuggerStore(path, options);
|
|
2224
|
-
const errorSignal =
|
|
2225
|
-
const isLoadingSignal =
|
|
2226
|
-
const reportSignal =
|
|
2227
|
-
const updatedAtSignal =
|
|
2562
|
+
const errorSignal = signal9(null);
|
|
2563
|
+
const isLoadingSignal = signal9(false);
|
|
2564
|
+
const reportSignal = signal9(undefined);
|
|
2565
|
+
const updatedAtSignal = signal9(undefined);
|
|
2228
2566
|
const sync = () => {
|
|
2229
2567
|
const state = store.getSnapshot();
|
|
2230
2568
|
errorSignal.set(state.error);
|
|
@@ -2240,11 +2578,11 @@ class VoiceCallDebuggerService {
|
|
|
2240
2578
|
unsubscribe();
|
|
2241
2579
|
store.close();
|
|
2242
2580
|
},
|
|
2243
|
-
error:
|
|
2244
|
-
isLoading:
|
|
2581
|
+
error: computed9(() => errorSignal()),
|
|
2582
|
+
isLoading: computed9(() => isLoadingSignal()),
|
|
2245
2583
|
refresh: store.refresh,
|
|
2246
|
-
report:
|
|
2247
|
-
updatedAt:
|
|
2584
|
+
report: computed9(() => reportSignal()),
|
|
2585
|
+
updatedAt: computed9(() => updatedAtSignal())
|
|
2248
2586
|
};
|
|
2249
2587
|
}
|
|
2250
2588
|
}
|
|
@@ -2253,7 +2591,7 @@ __runInitializers(_init, 1, VoiceCallDebuggerService);
|
|
|
2253
2591
|
__decoratorMetadata(_init, VoiceCallDebuggerService);
|
|
2254
2592
|
let _VoiceCallDebuggerService = VoiceCallDebuggerService;
|
|
2255
2593
|
// src/angular/voice-session-snapshot.service.ts
|
|
2256
|
-
import { computed as
|
|
2594
|
+
import { computed as computed10, Injectable as Injectable10, signal as signal10 } from "@angular/core";
|
|
2257
2595
|
|
|
2258
2596
|
// src/client/sessionSnapshot.ts
|
|
2259
2597
|
var withTurnId = (path, turnId) => {
|
|
@@ -2350,17 +2688,17 @@ var createVoiceSessionSnapshotStore = (path, options = {}) => {
|
|
|
2350
2688
|
|
|
2351
2689
|
// src/angular/voice-session-snapshot.service.ts
|
|
2352
2690
|
var _dec = [
|
|
2353
|
-
|
|
2691
|
+
Injectable10({ providedIn: "root" })
|
|
2354
2692
|
];
|
|
2355
2693
|
var _init = __decoratorStart(undefined);
|
|
2356
2694
|
|
|
2357
2695
|
class VoiceSessionSnapshotService {
|
|
2358
2696
|
connect(path, options = {}) {
|
|
2359
2697
|
const store = createVoiceSessionSnapshotStore(path, options);
|
|
2360
|
-
const errorSignal =
|
|
2361
|
-
const isLoadingSignal =
|
|
2362
|
-
const snapshotSignal =
|
|
2363
|
-
const updatedAtSignal =
|
|
2698
|
+
const errorSignal = signal10(null);
|
|
2699
|
+
const isLoadingSignal = signal10(false);
|
|
2700
|
+
const snapshotSignal = signal10(undefined);
|
|
2701
|
+
const updatedAtSignal = signal10(undefined);
|
|
2364
2702
|
const sync = () => {
|
|
2365
2703
|
const state = store.getSnapshot();
|
|
2366
2704
|
errorSignal.set(state.error);
|
|
@@ -2377,11 +2715,11 @@ class VoiceSessionSnapshotService {
|
|
|
2377
2715
|
store.close();
|
|
2378
2716
|
},
|
|
2379
2717
|
download: store.download,
|
|
2380
|
-
error:
|
|
2381
|
-
isLoading:
|
|
2718
|
+
error: computed10(() => errorSignal()),
|
|
2719
|
+
isLoading: computed10(() => isLoadingSignal()),
|
|
2382
2720
|
refresh: store.refresh,
|
|
2383
|
-
snapshot:
|
|
2384
|
-
updatedAt:
|
|
2721
|
+
snapshot: computed10(() => snapshotSignal()),
|
|
2722
|
+
updatedAt: computed10(() => updatedAtSignal())
|
|
2385
2723
|
};
|
|
2386
2724
|
}
|
|
2387
2725
|
}
|
|
@@ -2390,7 +2728,7 @@ __runInitializers(_init, 1, VoiceSessionSnapshotService);
|
|
|
2390
2728
|
__decoratorMetadata(_init, VoiceSessionSnapshotService);
|
|
2391
2729
|
let _VoiceSessionSnapshotService = VoiceSessionSnapshotService;
|
|
2392
2730
|
// src/angular/voice-session-observability.service.ts
|
|
2393
|
-
import { computed as
|
|
2731
|
+
import { computed as computed11, Injectable as Injectable11, signal as signal11 } from "@angular/core";
|
|
2394
2732
|
|
|
2395
2733
|
// src/client/sessionObservability.ts
|
|
2396
2734
|
var fetchVoiceSessionObservability = async (path, options = {}) => {
|
|
@@ -2474,17 +2812,17 @@ var createVoiceSessionObservabilityStore = (path, options = {}) => {
|
|
|
2474
2812
|
|
|
2475
2813
|
// src/angular/voice-session-observability.service.ts
|
|
2476
2814
|
var _dec = [
|
|
2477
|
-
|
|
2815
|
+
Injectable11({ providedIn: "root" })
|
|
2478
2816
|
];
|
|
2479
2817
|
var _init = __decoratorStart(undefined);
|
|
2480
2818
|
|
|
2481
2819
|
class VoiceSessionObservabilityService {
|
|
2482
2820
|
connect(path = "/api/voice/session-observability/latest", options = {}) {
|
|
2483
2821
|
const store = createVoiceSessionObservabilityStore(path, options);
|
|
2484
|
-
const errorSignal =
|
|
2485
|
-
const isLoadingSignal =
|
|
2486
|
-
const reportSignal =
|
|
2487
|
-
const updatedAtSignal =
|
|
2822
|
+
const errorSignal = signal11(null);
|
|
2823
|
+
const isLoadingSignal = signal11(false);
|
|
2824
|
+
const reportSignal = signal11(null);
|
|
2825
|
+
const updatedAtSignal = signal11(undefined);
|
|
2488
2826
|
const sync = () => {
|
|
2489
2827
|
const snapshot = store.getSnapshot();
|
|
2490
2828
|
errorSignal.set(snapshot.error);
|
|
@@ -2500,11 +2838,11 @@ class VoiceSessionObservabilityService {
|
|
|
2500
2838
|
unsubscribe();
|
|
2501
2839
|
store.close();
|
|
2502
2840
|
},
|
|
2503
|
-
error:
|
|
2504
|
-
isLoading:
|
|
2841
|
+
error: computed11(() => errorSignal()),
|
|
2842
|
+
isLoading: computed11(() => isLoadingSignal()),
|
|
2505
2843
|
refresh: store.refresh,
|
|
2506
|
-
report:
|
|
2507
|
-
updatedAt:
|
|
2844
|
+
report: computed11(() => reportSignal()),
|
|
2845
|
+
updatedAt: computed11(() => updatedAtSignal())
|
|
2508
2846
|
};
|
|
2509
2847
|
}
|
|
2510
2848
|
}
|
|
@@ -2513,7 +2851,7 @@ __runInitializers(_init, 1, VoiceSessionObservabilityService);
|
|
|
2513
2851
|
__decoratorMetadata(_init, VoiceSessionObservabilityService);
|
|
2514
2852
|
let _VoiceSessionObservabilityService = VoiceSessionObservabilityService;
|
|
2515
2853
|
// src/angular/voice-profile-comparison.service.ts
|
|
2516
|
-
import { computed as
|
|
2854
|
+
import { computed as computed12, Injectable as Injectable12, signal as signal12 } from "@angular/core";
|
|
2517
2855
|
|
|
2518
2856
|
// src/client/profileComparison.ts
|
|
2519
2857
|
var fetchVoiceProfileComparison = async (path = "/api/voice/real-call-profile-history", options = {}) => {
|
|
@@ -2592,17 +2930,17 @@ var createVoiceProfileComparisonStore = (path = "/api/voice/real-call-profile-hi
|
|
|
2592
2930
|
|
|
2593
2931
|
// src/angular/voice-profile-comparison.service.ts
|
|
2594
2932
|
var _dec = [
|
|
2595
|
-
|
|
2933
|
+
Injectable12({ providedIn: "root" })
|
|
2596
2934
|
];
|
|
2597
2935
|
var _init = __decoratorStart(undefined);
|
|
2598
2936
|
|
|
2599
2937
|
class VoiceProfileComparisonService {
|
|
2600
2938
|
connect(path = "/api/voice/real-call-profile-history", options = {}) {
|
|
2601
2939
|
const store = createVoiceProfileComparisonStore(path, options);
|
|
2602
|
-
const errorSignal =
|
|
2603
|
-
const isLoadingSignal =
|
|
2604
|
-
const reportSignal =
|
|
2605
|
-
const updatedAtSignal =
|
|
2940
|
+
const errorSignal = signal12(null);
|
|
2941
|
+
const isLoadingSignal = signal12(false);
|
|
2942
|
+
const reportSignal = signal12(undefined);
|
|
2943
|
+
const updatedAtSignal = signal12(undefined);
|
|
2606
2944
|
const sync = () => {
|
|
2607
2945
|
const snapshot = store.getSnapshot();
|
|
2608
2946
|
errorSignal.set(snapshot.error);
|
|
@@ -2620,11 +2958,11 @@ class VoiceProfileComparisonService {
|
|
|
2620
2958
|
unsubscribe();
|
|
2621
2959
|
store.close();
|
|
2622
2960
|
},
|
|
2623
|
-
error:
|
|
2624
|
-
isLoading:
|
|
2961
|
+
error: computed12(() => errorSignal()),
|
|
2962
|
+
isLoading: computed12(() => isLoadingSignal()),
|
|
2625
2963
|
refresh: store.refresh,
|
|
2626
|
-
report:
|
|
2627
|
-
updatedAt:
|
|
2964
|
+
report: computed12(() => reportSignal()),
|
|
2965
|
+
updatedAt: computed12(() => updatedAtSignal())
|
|
2628
2966
|
};
|
|
2629
2967
|
}
|
|
2630
2968
|
}
|
|
@@ -2633,7 +2971,7 @@ __runInitializers(_init, 1, VoiceProfileComparisonService);
|
|
|
2633
2971
|
__decoratorMetadata(_init, VoiceProfileComparisonService);
|
|
2634
2972
|
let _VoiceProfileComparisonService = VoiceProfileComparisonService;
|
|
2635
2973
|
// src/angular/voice-readiness-failures.service.ts
|
|
2636
|
-
import { computed as
|
|
2974
|
+
import { computed as computed13, Injectable as Injectable13, signal as signal13 } from "@angular/core";
|
|
2637
2975
|
|
|
2638
2976
|
// src/client/readinessFailures.ts
|
|
2639
2977
|
var fetchVoiceReadinessFailures = async (path = "/api/production-readiness", options = {}) => {
|
|
@@ -2712,17 +3050,17 @@ var createVoiceReadinessFailuresStore = (path = "/api/production-readiness", opt
|
|
|
2712
3050
|
|
|
2713
3051
|
// src/angular/voice-readiness-failures.service.ts
|
|
2714
3052
|
var _dec = [
|
|
2715
|
-
|
|
3053
|
+
Injectable13({ providedIn: "root" })
|
|
2716
3054
|
];
|
|
2717
3055
|
var _init = __decoratorStart(undefined);
|
|
2718
3056
|
|
|
2719
3057
|
class VoiceReadinessFailuresService {
|
|
2720
3058
|
connect(path = "/api/production-readiness", options = {}) {
|
|
2721
3059
|
const store = createVoiceReadinessFailuresStore(path, options);
|
|
2722
|
-
const errorSignal =
|
|
2723
|
-
const isLoadingSignal =
|
|
2724
|
-
const reportSignal =
|
|
2725
|
-
const updatedAtSignal =
|
|
3060
|
+
const errorSignal = signal13(null);
|
|
3061
|
+
const isLoadingSignal = signal13(false);
|
|
3062
|
+
const reportSignal = signal13(undefined);
|
|
3063
|
+
const updatedAtSignal = signal13(undefined);
|
|
2726
3064
|
const sync = () => {
|
|
2727
3065
|
const snapshot = store.getSnapshot();
|
|
2728
3066
|
errorSignal.set(snapshot.error);
|
|
@@ -2740,12 +3078,12 @@ class VoiceReadinessFailuresService {
|
|
|
2740
3078
|
unsubscribe();
|
|
2741
3079
|
store.close();
|
|
2742
3080
|
},
|
|
2743
|
-
error:
|
|
2744
|
-
explanations:
|
|
2745
|
-
isLoading:
|
|
3081
|
+
error: computed13(() => errorSignal()),
|
|
3082
|
+
explanations: computed13(() => reportSignal()?.checks.filter((check) => check.status !== "pass" && !!check.gateExplanation) ?? []),
|
|
3083
|
+
isLoading: computed13(() => isLoadingSignal()),
|
|
2746
3084
|
refresh: store.refresh,
|
|
2747
|
-
report:
|
|
2748
|
-
updatedAt:
|
|
3085
|
+
report: computed13(() => reportSignal()),
|
|
3086
|
+
updatedAt: computed13(() => updatedAtSignal())
|
|
2749
3087
|
};
|
|
2750
3088
|
}
|
|
2751
3089
|
}
|
|
@@ -2754,7 +3092,7 @@ __runInitializers(_init, 1, VoiceReadinessFailuresService);
|
|
|
2754
3092
|
__decoratorMetadata(_init, VoiceReadinessFailuresService);
|
|
2755
3093
|
let _VoiceReadinessFailuresService = VoiceReadinessFailuresService;
|
|
2756
3094
|
// src/angular/voice-ops-action-center.service.ts
|
|
2757
|
-
import { computed as
|
|
3095
|
+
import { computed as computed14, Injectable as Injectable14, signal as signal14 } from "@angular/core";
|
|
2758
3096
|
|
|
2759
3097
|
// src/client/opsActionCenter.ts
|
|
2760
3098
|
var recordVoiceOpsActionResult = async (result, options = {}) => {
|
|
@@ -2949,18 +3287,18 @@ var createVoiceOpsActionCenterStore = (options = {}) => {
|
|
|
2949
3287
|
|
|
2950
3288
|
// src/angular/voice-ops-action-center.service.ts
|
|
2951
3289
|
var _dec = [
|
|
2952
|
-
|
|
3290
|
+
Injectable14({ providedIn: "root" })
|
|
2953
3291
|
];
|
|
2954
3292
|
var _init = __decoratorStart(undefined);
|
|
2955
3293
|
|
|
2956
3294
|
class VoiceOpsActionCenterService {
|
|
2957
3295
|
connect(options = {}) {
|
|
2958
3296
|
const store = createVoiceOpsActionCenterStore(options);
|
|
2959
|
-
const actionsSignal =
|
|
2960
|
-
const errorSignal =
|
|
2961
|
-
const isRunningSignal =
|
|
2962
|
-
const lastResultSignal =
|
|
2963
|
-
const runningActionIdSignal =
|
|
3297
|
+
const actionsSignal = signal14([]);
|
|
3298
|
+
const errorSignal = signal14(null);
|
|
3299
|
+
const isRunningSignal = signal14(false);
|
|
3300
|
+
const lastResultSignal = signal14(undefined);
|
|
3301
|
+
const runningActionIdSignal = signal14(undefined);
|
|
2964
3302
|
const sync = () => {
|
|
2965
3303
|
const snapshot = store.getSnapshot();
|
|
2966
3304
|
actionsSignal.set(snapshot.actions);
|
|
@@ -2972,16 +3310,16 @@ class VoiceOpsActionCenterService {
|
|
|
2972
3310
|
const unsubscribe = store.subscribe(sync);
|
|
2973
3311
|
sync();
|
|
2974
3312
|
return {
|
|
2975
|
-
actions:
|
|
3313
|
+
actions: computed14(() => actionsSignal()),
|
|
2976
3314
|
close: () => {
|
|
2977
3315
|
unsubscribe();
|
|
2978
3316
|
store.close();
|
|
2979
3317
|
},
|
|
2980
|
-
error:
|
|
2981
|
-
isRunning:
|
|
2982
|
-
lastResult:
|
|
3318
|
+
error: computed14(() => errorSignal()),
|
|
3319
|
+
isRunning: computed14(() => isRunningSignal()),
|
|
3320
|
+
lastResult: computed14(() => lastResultSignal()),
|
|
2983
3321
|
run: store.run,
|
|
2984
|
-
runningActionId:
|
|
3322
|
+
runningActionId: computed14(() => runningActionIdSignal()),
|
|
2985
3323
|
setActions: store.setActions
|
|
2986
3324
|
};
|
|
2987
3325
|
}
|
|
@@ -2991,7 +3329,7 @@ __runInitializers(_init, 1, VoiceOpsActionCenterService);
|
|
|
2991
3329
|
__decoratorMetadata(_init, VoiceOpsActionCenterService);
|
|
2992
3330
|
let _VoiceOpsActionCenterService = VoiceOpsActionCenterService;
|
|
2993
3331
|
// src/angular/voice-live-ops.service.ts
|
|
2994
|
-
import { computed as
|
|
3332
|
+
import { computed as computed15, Injectable as Injectable15, signal as signal15 } from "@angular/core";
|
|
2995
3333
|
|
|
2996
3334
|
// src/client/liveOps.ts
|
|
2997
3335
|
var postVoiceLiveOpsAction = async (input, options = {}) => {
|
|
@@ -3081,17 +3419,17 @@ var createVoiceLiveOpsStore = (options = {}) => {
|
|
|
3081
3419
|
|
|
3082
3420
|
// src/angular/voice-live-ops.service.ts
|
|
3083
3421
|
var _dec = [
|
|
3084
|
-
|
|
3422
|
+
Injectable15({ providedIn: "root" })
|
|
3085
3423
|
];
|
|
3086
3424
|
var _init = __decoratorStart(undefined);
|
|
3087
3425
|
|
|
3088
3426
|
class VoiceLiveOpsService {
|
|
3089
3427
|
connect(options = {}) {
|
|
3090
3428
|
const store = createVoiceLiveOpsStore(options);
|
|
3091
|
-
const errorSignal =
|
|
3092
|
-
const isRunningSignal =
|
|
3093
|
-
const lastResultSignal =
|
|
3094
|
-
const runningActionSignal =
|
|
3429
|
+
const errorSignal = signal15(null);
|
|
3430
|
+
const isRunningSignal = signal15(false);
|
|
3431
|
+
const lastResultSignal = signal15(undefined);
|
|
3432
|
+
const runningActionSignal = signal15(undefined);
|
|
3095
3433
|
const sync = () => {
|
|
3096
3434
|
const snapshot = store.getSnapshot();
|
|
3097
3435
|
errorSignal.set(snapshot.error);
|
|
@@ -3106,11 +3444,11 @@ class VoiceLiveOpsService {
|
|
|
3106
3444
|
unsubscribe();
|
|
3107
3445
|
store.close();
|
|
3108
3446
|
},
|
|
3109
|
-
error:
|
|
3110
|
-
isRunning:
|
|
3111
|
-
lastResult:
|
|
3447
|
+
error: computed15(() => errorSignal()),
|
|
3448
|
+
isRunning: computed15(() => isRunningSignal()),
|
|
3449
|
+
lastResult: computed15(() => lastResultSignal()),
|
|
3112
3450
|
run: store.run,
|
|
3113
|
-
runningAction:
|
|
3451
|
+
runningAction: computed15(() => runningActionSignal())
|
|
3114
3452
|
};
|
|
3115
3453
|
}
|
|
3116
3454
|
}
|
|
@@ -3119,7 +3457,7 @@ __runInitializers(_init, 1, VoiceLiveOpsService);
|
|
|
3119
3457
|
__decoratorMetadata(_init, VoiceLiveOpsService);
|
|
3120
3458
|
let _VoiceLiveOpsService = VoiceLiveOpsService;
|
|
3121
3459
|
// src/angular/voice-delivery-runtime.service.ts
|
|
3122
|
-
import { computed as
|
|
3460
|
+
import { computed as computed16, Injectable as Injectable16, signal as signal16 } from "@angular/core";
|
|
3123
3461
|
|
|
3124
3462
|
// src/client/deliveryRuntime.ts
|
|
3125
3463
|
var getDefaultActionPath = (path, action, options) => {
|
|
@@ -3260,19 +3598,19 @@ var createVoiceDeliveryRuntimeStore = (path = "/api/voice-delivery-runtime", opt
|
|
|
3260
3598
|
|
|
3261
3599
|
// src/angular/voice-delivery-runtime.service.ts
|
|
3262
3600
|
var _dec = [
|
|
3263
|
-
|
|
3601
|
+
Injectable16({ providedIn: "root" })
|
|
3264
3602
|
];
|
|
3265
3603
|
var _init = __decoratorStart(undefined);
|
|
3266
3604
|
|
|
3267
3605
|
class VoiceDeliveryRuntimeService {
|
|
3268
3606
|
connect(path = "/api/voice-delivery-runtime", options = {}) {
|
|
3269
3607
|
const store = createVoiceDeliveryRuntimeStore(path, options);
|
|
3270
|
-
const actionErrorSignal =
|
|
3271
|
-
const actionStatusSignal =
|
|
3272
|
-
const errorSignal =
|
|
3273
|
-
const isLoadingSignal =
|
|
3274
|
-
const reportSignal =
|
|
3275
|
-
const updatedAtSignal =
|
|
3608
|
+
const actionErrorSignal = signal16(null);
|
|
3609
|
+
const actionStatusSignal = signal16("idle");
|
|
3610
|
+
const errorSignal = signal16(null);
|
|
3611
|
+
const isLoadingSignal = signal16(false);
|
|
3612
|
+
const reportSignal = signal16(undefined);
|
|
3613
|
+
const updatedAtSignal = signal16(undefined);
|
|
3276
3614
|
const sync = () => {
|
|
3277
3615
|
const snapshot = store.getSnapshot();
|
|
3278
3616
|
actionErrorSignal.set(snapshot.actionError);
|
|
@@ -3292,15 +3630,15 @@ class VoiceDeliveryRuntimeService {
|
|
|
3292
3630
|
unsubscribe();
|
|
3293
3631
|
store.close();
|
|
3294
3632
|
},
|
|
3295
|
-
error:
|
|
3296
|
-
actionError:
|
|
3297
|
-
actionStatus:
|
|
3298
|
-
isLoading:
|
|
3633
|
+
error: computed16(() => errorSignal()),
|
|
3634
|
+
actionError: computed16(() => actionErrorSignal()),
|
|
3635
|
+
actionStatus: computed16(() => actionStatusSignal()),
|
|
3636
|
+
isLoading: computed16(() => isLoadingSignal()),
|
|
3299
3637
|
requeueDeadLetters: store.requeueDeadLetters,
|
|
3300
3638
|
refresh: store.refresh,
|
|
3301
|
-
report:
|
|
3639
|
+
report: computed16(() => reportSignal()),
|
|
3302
3640
|
tick: store.tick,
|
|
3303
|
-
updatedAt:
|
|
3641
|
+
updatedAt: computed16(() => updatedAtSignal())
|
|
3304
3642
|
};
|
|
3305
3643
|
}
|
|
3306
3644
|
}
|
|
@@ -3309,7 +3647,7 @@ __runInitializers(_init, 1, VoiceDeliveryRuntimeService);
|
|
|
3309
3647
|
__decoratorMetadata(_init, VoiceDeliveryRuntimeService);
|
|
3310
3648
|
let _VoiceDeliveryRuntimeService = VoiceDeliveryRuntimeService;
|
|
3311
3649
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
3312
|
-
import { computed as
|
|
3650
|
+
import { computed as computed17, Injectable as Injectable17, signal as signal17 } from "@angular/core";
|
|
3313
3651
|
|
|
3314
3652
|
// src/client/campaignDialerProof.ts
|
|
3315
3653
|
var fetchVoiceCampaignDialerProofStatus = async (path = "/api/voice/campaigns/dialer-proof", options = {}) => {
|
|
@@ -3431,18 +3769,18 @@ var createVoiceCampaignDialerProofStore = (path = "/api/voice/campaigns/dialer-p
|
|
|
3431
3769
|
|
|
3432
3770
|
// src/angular/voice-campaign-dialer-proof.service.ts
|
|
3433
3771
|
var _dec = [
|
|
3434
|
-
|
|
3772
|
+
Injectable17({ providedIn: "root" })
|
|
3435
3773
|
];
|
|
3436
3774
|
var _init = __decoratorStart(undefined);
|
|
3437
3775
|
|
|
3438
3776
|
class VoiceCampaignDialerProofService {
|
|
3439
3777
|
connect(path = "/api/voice/campaigns/dialer-proof", options = {}) {
|
|
3440
3778
|
const store = createVoiceCampaignDialerProofStore(path, options);
|
|
3441
|
-
const errorSignal =
|
|
3442
|
-
const isLoadingSignal =
|
|
3443
|
-
const reportSignal =
|
|
3444
|
-
const statusSignal =
|
|
3445
|
-
const updatedAtSignal =
|
|
3779
|
+
const errorSignal = signal17(null);
|
|
3780
|
+
const isLoadingSignal = signal17(false);
|
|
3781
|
+
const reportSignal = signal17(undefined);
|
|
3782
|
+
const statusSignal = signal17(undefined);
|
|
3783
|
+
const updatedAtSignal = signal17(undefined);
|
|
3446
3784
|
const sync = () => {
|
|
3447
3785
|
const snapshot = store.getSnapshot();
|
|
3448
3786
|
errorSignal.set(snapshot.error);
|
|
@@ -3459,13 +3797,13 @@ class VoiceCampaignDialerProofService {
|
|
|
3459
3797
|
unsubscribe();
|
|
3460
3798
|
store.close();
|
|
3461
3799
|
},
|
|
3462
|
-
error:
|
|
3463
|
-
isLoading:
|
|
3800
|
+
error: computed17(() => errorSignal()),
|
|
3801
|
+
isLoading: computed17(() => isLoadingSignal()),
|
|
3464
3802
|
refresh: store.refresh,
|
|
3465
|
-
report:
|
|
3803
|
+
report: computed17(() => reportSignal()),
|
|
3466
3804
|
runProof: store.runProof,
|
|
3467
|
-
status:
|
|
3468
|
-
updatedAt:
|
|
3805
|
+
status: computed17(() => statusSignal()),
|
|
3806
|
+
updatedAt: computed17(() => updatedAtSignal())
|
|
3469
3807
|
};
|
|
3470
3808
|
}
|
|
3471
3809
|
}
|
|
@@ -3474,26 +3812,26 @@ __runInitializers(_init, 1, VoiceCampaignDialerProofService);
|
|
|
3474
3812
|
__decoratorMetadata(_init, VoiceCampaignDialerProofService);
|
|
3475
3813
|
let _VoiceCampaignDialerProofService = VoiceCampaignDialerProofService;
|
|
3476
3814
|
// src/angular/voice-stream.service.ts
|
|
3477
|
-
import { computed as
|
|
3815
|
+
import { computed as computed18, Injectable as Injectable18, signal as signal18 } from "@angular/core";
|
|
3478
3816
|
var _dec = [
|
|
3479
|
-
|
|
3817
|
+
Injectable18({ providedIn: "root" })
|
|
3480
3818
|
];
|
|
3481
3819
|
var _init = __decoratorStart(undefined);
|
|
3482
3820
|
|
|
3483
3821
|
class VoiceStreamService {
|
|
3484
3822
|
connect(path, options = {}) {
|
|
3485
3823
|
const stream = createVoiceStream(path, options);
|
|
3486
|
-
const assistantAudioSignal =
|
|
3487
|
-
const assistantTextsSignal =
|
|
3488
|
-
const callSignal =
|
|
3489
|
-
const errorSignal =
|
|
3490
|
-
const isConnectedSignal =
|
|
3491
|
-
const partialSignal =
|
|
3492
|
-
const reconnectSignal =
|
|
3493
|
-
const sessionIdSignal =
|
|
3494
|
-
const sessionMetadataSignal =
|
|
3495
|
-
const statusSignal =
|
|
3496
|
-
const turnsSignal =
|
|
3824
|
+
const assistantAudioSignal = signal18([]);
|
|
3825
|
+
const assistantTextsSignal = signal18([]);
|
|
3826
|
+
const callSignal = signal18(null);
|
|
3827
|
+
const errorSignal = signal18(null);
|
|
3828
|
+
const isConnectedSignal = signal18(false);
|
|
3829
|
+
const partialSignal = signal18("");
|
|
3830
|
+
const reconnectSignal = signal18(stream.reconnect);
|
|
3831
|
+
const sessionIdSignal = signal18(stream.sessionId);
|
|
3832
|
+
const sessionMetadataSignal = signal18(stream.sessionMetadata);
|
|
3833
|
+
const statusSignal = signal18(stream.status);
|
|
3834
|
+
const turnsSignal = signal18([]);
|
|
3497
3835
|
const sync = () => {
|
|
3498
3836
|
assistantAudioSignal.set([...stream.assistantAudio]);
|
|
3499
3837
|
assistantTextsSignal.set([...stream.assistantTexts]);
|
|
@@ -3510,25 +3848,25 @@ class VoiceStreamService {
|
|
|
3510
3848
|
const unsubscribe = stream.subscribe(sync);
|
|
3511
3849
|
sync();
|
|
3512
3850
|
return {
|
|
3513
|
-
assistantAudio:
|
|
3514
|
-
assistantTexts:
|
|
3515
|
-
call:
|
|
3851
|
+
assistantAudio: computed18(() => assistantAudioSignal()),
|
|
3852
|
+
assistantTexts: computed18(() => assistantTextsSignal()),
|
|
3853
|
+
call: computed18(() => callSignal()),
|
|
3516
3854
|
callControl: (message) => stream.callControl(message),
|
|
3517
3855
|
close: () => {
|
|
3518
3856
|
unsubscribe();
|
|
3519
3857
|
stream.close();
|
|
3520
3858
|
},
|
|
3521
3859
|
endTurn: () => stream.endTurn(),
|
|
3522
|
-
error:
|
|
3523
|
-
isConnected:
|
|
3524
|
-
partial:
|
|
3525
|
-
reconnect:
|
|
3860
|
+
error: computed18(() => errorSignal()),
|
|
3861
|
+
isConnected: computed18(() => isConnectedSignal()),
|
|
3862
|
+
partial: computed18(() => partialSignal()),
|
|
3863
|
+
reconnect: computed18(() => reconnectSignal()),
|
|
3526
3864
|
sendAudio: (audio) => stream.sendAudio(audio),
|
|
3527
3865
|
simulateDisconnect: () => stream.simulateDisconnect(),
|
|
3528
|
-
sessionId:
|
|
3529
|
-
sessionMetadata:
|
|
3530
|
-
status:
|
|
3531
|
-
turns:
|
|
3866
|
+
sessionId: computed18(() => sessionIdSignal()),
|
|
3867
|
+
sessionMetadata: computed18(() => sessionMetadataSignal()),
|
|
3868
|
+
status: computed18(() => statusSignal()),
|
|
3869
|
+
turns: computed18(() => turnsSignal())
|
|
3532
3870
|
};
|
|
3533
3871
|
}
|
|
3534
3872
|
}
|
|
@@ -3537,26 +3875,26 @@ __runInitializers(_init, 1, VoiceStreamService);
|
|
|
3537
3875
|
__decoratorMetadata(_init, VoiceStreamService);
|
|
3538
3876
|
let _VoiceStreamService = VoiceStreamService;
|
|
3539
3877
|
// src/angular/voice-controller.service.ts
|
|
3540
|
-
import { computed as
|
|
3878
|
+
import { computed as computed19, Injectable as Injectable19, signal as signal19 } from "@angular/core";
|
|
3541
3879
|
var _dec = [
|
|
3542
|
-
|
|
3880
|
+
Injectable19({ providedIn: "root" })
|
|
3543
3881
|
];
|
|
3544
3882
|
var _init = __decoratorStart(undefined);
|
|
3545
3883
|
|
|
3546
3884
|
class VoiceControllerService {
|
|
3547
3885
|
connect(path, options = {}) {
|
|
3548
3886
|
const controller = createVoiceController(path, options);
|
|
3549
|
-
const assistantAudioSignal =
|
|
3550
|
-
const assistantTextsSignal =
|
|
3551
|
-
const errorSignal =
|
|
3552
|
-
const isConnectedSignal =
|
|
3553
|
-
const isRecordingSignal =
|
|
3554
|
-
const partialSignal =
|
|
3555
|
-
const reconnectSignal =
|
|
3556
|
-
const recordingErrorSignal =
|
|
3557
|
-
const sessionIdSignal =
|
|
3558
|
-
const statusSignal =
|
|
3559
|
-
const turnsSignal =
|
|
3887
|
+
const assistantAudioSignal = signal19([]);
|
|
3888
|
+
const assistantTextsSignal = signal19([]);
|
|
3889
|
+
const errorSignal = signal19(null);
|
|
3890
|
+
const isConnectedSignal = signal19(false);
|
|
3891
|
+
const isRecordingSignal = signal19(false);
|
|
3892
|
+
const partialSignal = signal19("");
|
|
3893
|
+
const reconnectSignal = signal19(controller.reconnect);
|
|
3894
|
+
const recordingErrorSignal = signal19(null);
|
|
3895
|
+
const sessionIdSignal = signal19(controller.sessionId);
|
|
3896
|
+
const statusSignal = signal19(controller.status);
|
|
3897
|
+
const turnsSignal = signal19([]);
|
|
3560
3898
|
const sync = () => {
|
|
3561
3899
|
assistantAudioSignal.set([...controller.assistantAudio]);
|
|
3562
3900
|
assistantTextsSignal.set([...controller.assistantTexts]);
|
|
@@ -3573,28 +3911,28 @@ class VoiceControllerService {
|
|
|
3573
3911
|
const unsubscribe = controller.subscribe(sync);
|
|
3574
3912
|
sync();
|
|
3575
3913
|
return {
|
|
3576
|
-
assistantAudio:
|
|
3577
|
-
assistantTexts:
|
|
3914
|
+
assistantAudio: computed19(() => assistantAudioSignal()),
|
|
3915
|
+
assistantTexts: computed19(() => assistantTextsSignal()),
|
|
3578
3916
|
bindHTMX: controller.bindHTMX,
|
|
3579
3917
|
close: () => {
|
|
3580
3918
|
unsubscribe();
|
|
3581
3919
|
controller.close();
|
|
3582
3920
|
},
|
|
3583
3921
|
endTurn: () => controller.endTurn(),
|
|
3584
|
-
error:
|
|
3585
|
-
isConnected:
|
|
3586
|
-
isRecording:
|
|
3587
|
-
partial:
|
|
3588
|
-
reconnect:
|
|
3589
|
-
recordingError:
|
|
3922
|
+
error: computed19(() => errorSignal()),
|
|
3923
|
+
isConnected: computed19(() => isConnectedSignal()),
|
|
3924
|
+
isRecording: computed19(() => isRecordingSignal()),
|
|
3925
|
+
partial: computed19(() => partialSignal()),
|
|
3926
|
+
reconnect: computed19(() => reconnectSignal()),
|
|
3927
|
+
recordingError: computed19(() => recordingErrorSignal()),
|
|
3590
3928
|
sendAudio: (audio) => controller.sendAudio(audio),
|
|
3591
3929
|
simulateDisconnect: () => controller.simulateDisconnect(),
|
|
3592
|
-
sessionId:
|
|
3930
|
+
sessionId: computed19(() => sessionIdSignal()),
|
|
3593
3931
|
startRecording: () => controller.startRecording(),
|
|
3594
|
-
status:
|
|
3932
|
+
status: computed19(() => statusSignal()),
|
|
3595
3933
|
stopRecording: () => controller.stopRecording(),
|
|
3596
3934
|
toggleRecording: () => controller.toggleRecording(),
|
|
3597
|
-
turns:
|
|
3935
|
+
turns: computed19(() => turnsSignal())
|
|
3598
3936
|
};
|
|
3599
3937
|
}
|
|
3600
3938
|
}
|
|
@@ -3603,7 +3941,7 @@ __runInitializers(_init, 1, VoiceControllerService);
|
|
|
3603
3941
|
__decoratorMetadata(_init, VoiceControllerService);
|
|
3604
3942
|
let _VoiceControllerService = VoiceControllerService;
|
|
3605
3943
|
// src/angular/voice-provider-capabilities.service.ts
|
|
3606
|
-
import { computed as
|
|
3944
|
+
import { computed as computed20, Injectable as Injectable20, signal as signal20 } from "@angular/core";
|
|
3607
3945
|
|
|
3608
3946
|
// src/client/providerCapabilities.ts
|
|
3609
3947
|
var fetchVoiceProviderCapabilities = async (path = "/api/provider-capabilities", options = {}) => {
|
|
@@ -3686,17 +4024,17 @@ var createVoiceProviderCapabilitiesStore = (path = "/api/provider-capabilities",
|
|
|
3686
4024
|
|
|
3687
4025
|
// src/angular/voice-provider-capabilities.service.ts
|
|
3688
4026
|
var _dec = [
|
|
3689
|
-
|
|
4027
|
+
Injectable20({ providedIn: "root" })
|
|
3690
4028
|
];
|
|
3691
4029
|
var _init = __decoratorStart(undefined);
|
|
3692
4030
|
|
|
3693
4031
|
class VoiceProviderCapabilitiesService {
|
|
3694
4032
|
connect(path = "/api/provider-capabilities", options = {}) {
|
|
3695
4033
|
const store = createVoiceProviderCapabilitiesStore(path, options);
|
|
3696
|
-
const errorSignal =
|
|
3697
|
-
const isLoadingSignal =
|
|
3698
|
-
const reportSignal =
|
|
3699
|
-
const updatedAtSignal =
|
|
4034
|
+
const errorSignal = signal20(null);
|
|
4035
|
+
const isLoadingSignal = signal20(false);
|
|
4036
|
+
const reportSignal = signal20(undefined);
|
|
4037
|
+
const updatedAtSignal = signal20(undefined);
|
|
3700
4038
|
const sync = () => {
|
|
3701
4039
|
const snapshot = store.getSnapshot();
|
|
3702
4040
|
errorSignal.set(snapshot.error);
|
|
@@ -3712,11 +4050,11 @@ class VoiceProviderCapabilitiesService {
|
|
|
3712
4050
|
unsubscribe();
|
|
3713
4051
|
store.close();
|
|
3714
4052
|
},
|
|
3715
|
-
error:
|
|
3716
|
-
isLoading:
|
|
4053
|
+
error: computed20(() => errorSignal()),
|
|
4054
|
+
isLoading: computed20(() => isLoadingSignal()),
|
|
3717
4055
|
refresh: store.refresh,
|
|
3718
|
-
report:
|
|
3719
|
-
updatedAt:
|
|
4056
|
+
report: computed20(() => reportSignal()),
|
|
4057
|
+
updatedAt: computed20(() => updatedAtSignal())
|
|
3720
4058
|
};
|
|
3721
4059
|
}
|
|
3722
4060
|
}
|
|
@@ -3725,7 +4063,7 @@ __runInitializers(_init, 1, VoiceProviderCapabilitiesService);
|
|
|
3725
4063
|
__decoratorMetadata(_init, VoiceProviderCapabilitiesService);
|
|
3726
4064
|
let _VoiceProviderCapabilitiesService = VoiceProviderCapabilitiesService;
|
|
3727
4065
|
// src/angular/voice-provider-contracts.service.ts
|
|
3728
|
-
import { computed as
|
|
4066
|
+
import { computed as computed21, Injectable as Injectable21, signal as signal21 } from "@angular/core";
|
|
3729
4067
|
|
|
3730
4068
|
// src/client/providerContracts.ts
|
|
3731
4069
|
var fetchVoiceProviderContracts = async (path = "/api/provider-contracts", options = {}) => {
|
|
@@ -3804,17 +4142,17 @@ var createVoiceProviderContractsStore = (path = "/api/provider-contracts", optio
|
|
|
3804
4142
|
|
|
3805
4143
|
// src/angular/voice-provider-contracts.service.ts
|
|
3806
4144
|
var _dec = [
|
|
3807
|
-
|
|
4145
|
+
Injectable21({ providedIn: "root" })
|
|
3808
4146
|
];
|
|
3809
4147
|
var _init = __decoratorStart(undefined);
|
|
3810
4148
|
|
|
3811
4149
|
class VoiceProviderContractsService {
|
|
3812
4150
|
connect(path = "/api/provider-contracts", options = {}) {
|
|
3813
4151
|
const store = createVoiceProviderContractsStore(path, options);
|
|
3814
|
-
const errorSignal =
|
|
3815
|
-
const isLoadingSignal =
|
|
3816
|
-
const reportSignal =
|
|
3817
|
-
const updatedAtSignal =
|
|
4152
|
+
const errorSignal = signal21(null);
|
|
4153
|
+
const isLoadingSignal = signal21(false);
|
|
4154
|
+
const reportSignal = signal21(undefined);
|
|
4155
|
+
const updatedAtSignal = signal21(undefined);
|
|
3818
4156
|
const sync = () => {
|
|
3819
4157
|
const snapshot = store.getSnapshot();
|
|
3820
4158
|
errorSignal.set(snapshot.error);
|
|
@@ -3830,11 +4168,11 @@ class VoiceProviderContractsService {
|
|
|
3830
4168
|
unsubscribe();
|
|
3831
4169
|
store.close();
|
|
3832
4170
|
},
|
|
3833
|
-
error:
|
|
3834
|
-
isLoading:
|
|
4171
|
+
error: computed21(() => errorSignal()),
|
|
4172
|
+
isLoading: computed21(() => isLoadingSignal()),
|
|
3835
4173
|
refresh: store.refresh,
|
|
3836
|
-
report:
|
|
3837
|
-
updatedAt:
|
|
4174
|
+
report: computed21(() => reportSignal()),
|
|
4175
|
+
updatedAt: computed21(() => updatedAtSignal())
|
|
3838
4176
|
};
|
|
3839
4177
|
}
|
|
3840
4178
|
}
|
|
@@ -3843,7 +4181,7 @@ __runInitializers(_init, 1, VoiceProviderContractsService);
|
|
|
3843
4181
|
__decoratorMetadata(_init, VoiceProviderContractsService);
|
|
3844
4182
|
let _VoiceProviderContractsService = VoiceProviderContractsService;
|
|
3845
4183
|
// src/angular/voice-provider-status.service.ts
|
|
3846
|
-
import { computed as
|
|
4184
|
+
import { computed as computed22, Injectable as Injectable22, signal as signal22 } from "@angular/core";
|
|
3847
4185
|
|
|
3848
4186
|
// src/client/providerStatus.ts
|
|
3849
4187
|
var fetchVoiceProviderStatus = async (path = "/api/provider-status", options = {}) => {
|
|
@@ -3927,17 +4265,17 @@ var createVoiceProviderStatusStore = (path = "/api/provider-status", options = {
|
|
|
3927
4265
|
|
|
3928
4266
|
// src/angular/voice-provider-status.service.ts
|
|
3929
4267
|
var _dec = [
|
|
3930
|
-
|
|
4268
|
+
Injectable22({ providedIn: "root" })
|
|
3931
4269
|
];
|
|
3932
4270
|
var _init = __decoratorStart(undefined);
|
|
3933
4271
|
|
|
3934
4272
|
class VoiceProviderStatusService {
|
|
3935
4273
|
connect(path = "/api/provider-status", options = {}) {
|
|
3936
4274
|
const store = createVoiceProviderStatusStore(path, options);
|
|
3937
|
-
const errorSignal =
|
|
3938
|
-
const isLoadingSignal =
|
|
3939
|
-
const providersSignal =
|
|
3940
|
-
const updatedAtSignal =
|
|
4275
|
+
const errorSignal = signal22(null);
|
|
4276
|
+
const isLoadingSignal = signal22(false);
|
|
4277
|
+
const providersSignal = signal22([]);
|
|
4278
|
+
const updatedAtSignal = signal22(undefined);
|
|
3941
4279
|
const sync = () => {
|
|
3942
4280
|
const snapshot = store.getSnapshot();
|
|
3943
4281
|
errorSignal.set(snapshot.error);
|
|
@@ -3953,11 +4291,11 @@ class VoiceProviderStatusService {
|
|
|
3953
4291
|
unsubscribe();
|
|
3954
4292
|
store.close();
|
|
3955
4293
|
},
|
|
3956
|
-
error:
|
|
3957
|
-
isLoading:
|
|
3958
|
-
providers:
|
|
4294
|
+
error: computed22(() => errorSignal()),
|
|
4295
|
+
isLoading: computed22(() => isLoadingSignal()),
|
|
4296
|
+
providers: computed22(() => providersSignal()),
|
|
3959
4297
|
refresh: store.refresh,
|
|
3960
|
-
updatedAt:
|
|
4298
|
+
updatedAt: computed22(() => updatedAtSignal())
|
|
3961
4299
|
};
|
|
3962
4300
|
}
|
|
3963
4301
|
}
|
|
@@ -3966,7 +4304,7 @@ __runInitializers(_init, 1, VoiceProviderStatusService);
|
|
|
3966
4304
|
__decoratorMetadata(_init, VoiceProviderStatusService);
|
|
3967
4305
|
let _VoiceProviderStatusService = VoiceProviderStatusService;
|
|
3968
4306
|
// src/angular/voice-routing-status.service.ts
|
|
3969
|
-
import { Injectable as
|
|
4307
|
+
import { Injectable as Injectable23, signal as signal23 } from "@angular/core";
|
|
3970
4308
|
|
|
3971
4309
|
// src/client/routingStatus.ts
|
|
3972
4310
|
var fetchVoiceRoutingStatus = async (path = "/api/routing/latest", options = {}) => {
|
|
@@ -4050,17 +4388,17 @@ var createVoiceRoutingStatusStore = (path = "/api/routing/latest", options = {})
|
|
|
4050
4388
|
|
|
4051
4389
|
// src/angular/voice-routing-status.service.ts
|
|
4052
4390
|
var _dec = [
|
|
4053
|
-
|
|
4391
|
+
Injectable23({ providedIn: "root" })
|
|
4054
4392
|
];
|
|
4055
4393
|
var _init = __decoratorStart(undefined);
|
|
4056
4394
|
|
|
4057
4395
|
class VoiceRoutingStatusService {
|
|
4058
4396
|
connect(path = "/api/routing/latest", options = {}) {
|
|
4059
4397
|
const store = createVoiceRoutingStatusStore(path, options);
|
|
4060
|
-
const decisionSignal =
|
|
4061
|
-
const errorSignal =
|
|
4062
|
-
const isLoadingSignal =
|
|
4063
|
-
const updatedAtSignal =
|
|
4398
|
+
const decisionSignal = signal23(null);
|
|
4399
|
+
const errorSignal = signal23(null);
|
|
4400
|
+
const isLoadingSignal = signal23(false);
|
|
4401
|
+
const updatedAtSignal = signal23(undefined);
|
|
4064
4402
|
const sync = () => {
|
|
4065
4403
|
const snapshot = store.getSnapshot();
|
|
4066
4404
|
decisionSignal.set(snapshot.decision);
|
|
@@ -4089,7 +4427,7 @@ __runInitializers(_init, 1, VoiceRoutingStatusService);
|
|
|
4089
4427
|
__decoratorMetadata(_init, VoiceRoutingStatusService);
|
|
4090
4428
|
let _VoiceRoutingStatusService = VoiceRoutingStatusService;
|
|
4091
4429
|
// src/angular/voice-trace-timeline.service.ts
|
|
4092
|
-
import { computed as
|
|
4430
|
+
import { computed as computed23, Injectable as Injectable24, signal as signal24 } from "@angular/core";
|
|
4093
4431
|
|
|
4094
4432
|
// src/client/traceTimeline.ts
|
|
4095
4433
|
var fetchVoiceTraceTimeline = async (path = "/api/voice-traces", options = {}) => {
|
|
@@ -4173,17 +4511,17 @@ var createVoiceTraceTimelineStore = (path = "/api/voice-traces", options = {}) =
|
|
|
4173
4511
|
|
|
4174
4512
|
// src/angular/voice-trace-timeline.service.ts
|
|
4175
4513
|
var _dec = [
|
|
4176
|
-
|
|
4514
|
+
Injectable24({ providedIn: "root" })
|
|
4177
4515
|
];
|
|
4178
4516
|
var _init = __decoratorStart(undefined);
|
|
4179
4517
|
|
|
4180
4518
|
class VoiceTraceTimelineService {
|
|
4181
4519
|
connect(path = "/api/voice-traces", options = {}) {
|
|
4182
4520
|
const store = createVoiceTraceTimelineStore(path, options);
|
|
4183
|
-
const errorSignal =
|
|
4184
|
-
const isLoadingSignal =
|
|
4185
|
-
const reportSignal =
|
|
4186
|
-
const updatedAtSignal =
|
|
4521
|
+
const errorSignal = signal24(null);
|
|
4522
|
+
const isLoadingSignal = signal24(false);
|
|
4523
|
+
const reportSignal = signal24(null);
|
|
4524
|
+
const updatedAtSignal = signal24(undefined);
|
|
4187
4525
|
const sync = () => {
|
|
4188
4526
|
const snapshot = store.getSnapshot();
|
|
4189
4527
|
errorSignal.set(snapshot.error);
|
|
@@ -4199,11 +4537,11 @@ class VoiceTraceTimelineService {
|
|
|
4199
4537
|
unsubscribe();
|
|
4200
4538
|
store.close();
|
|
4201
4539
|
},
|
|
4202
|
-
error:
|
|
4203
|
-
isLoading:
|
|
4540
|
+
error: computed23(() => errorSignal()),
|
|
4541
|
+
isLoading: computed23(() => isLoadingSignal()),
|
|
4204
4542
|
refresh: store.refresh,
|
|
4205
|
-
report:
|
|
4206
|
-
updatedAt:
|
|
4543
|
+
report: computed23(() => reportSignal()),
|
|
4544
|
+
updatedAt: computed23(() => updatedAtSignal())
|
|
4207
4545
|
};
|
|
4208
4546
|
}
|
|
4209
4547
|
}
|
|
@@ -4212,7 +4550,7 @@ __runInitializers(_init, 1, VoiceTraceTimelineService);
|
|
|
4212
4550
|
__decoratorMetadata(_init, VoiceTraceTimelineService);
|
|
4213
4551
|
let _VoiceTraceTimelineService = VoiceTraceTimelineService;
|
|
4214
4552
|
// src/angular/voice-agent-squad-status.service.ts
|
|
4215
|
-
import { computed as
|
|
4553
|
+
import { computed as computed24, Injectable as Injectable25, signal as signal25 } from "@angular/core";
|
|
4216
4554
|
|
|
4217
4555
|
// src/client/agentSquadStatus.ts
|
|
4218
4556
|
var getString = (value) => typeof value === "string" && value.trim() ? value.trim() : undefined;
|
|
@@ -4290,17 +4628,17 @@ var createVoiceAgentSquadStatusStore = (path = "/api/voice-traces", options = {}
|
|
|
4290
4628
|
|
|
4291
4629
|
// src/angular/voice-agent-squad-status.service.ts
|
|
4292
4630
|
var _dec = [
|
|
4293
|
-
|
|
4631
|
+
Injectable25({ providedIn: "root" })
|
|
4294
4632
|
];
|
|
4295
4633
|
var _init = __decoratorStart(undefined);
|
|
4296
4634
|
|
|
4297
4635
|
class VoiceAgentSquadStatusService {
|
|
4298
4636
|
connect(path = "/api/voice-traces", options = {}) {
|
|
4299
4637
|
const store = createVoiceAgentSquadStatusStore(path, options);
|
|
4300
|
-
const errorSignal =
|
|
4301
|
-
const isLoadingSignal =
|
|
4302
|
-
const reportSignal =
|
|
4303
|
-
const updatedAtSignal =
|
|
4638
|
+
const errorSignal = signal25(null);
|
|
4639
|
+
const isLoadingSignal = signal25(false);
|
|
4640
|
+
const reportSignal = signal25(undefined);
|
|
4641
|
+
const updatedAtSignal = signal25(undefined);
|
|
4304
4642
|
const sync = () => {
|
|
4305
4643
|
const snapshot = store.getSnapshot();
|
|
4306
4644
|
errorSignal.set(snapshot.error);
|
|
@@ -4316,12 +4654,12 @@ class VoiceAgentSquadStatusService {
|
|
|
4316
4654
|
unsubscribe();
|
|
4317
4655
|
store.close();
|
|
4318
4656
|
},
|
|
4319
|
-
current:
|
|
4320
|
-
error:
|
|
4321
|
-
isLoading:
|
|
4657
|
+
current: computed24(() => reportSignal()?.current),
|
|
4658
|
+
error: computed24(() => errorSignal()),
|
|
4659
|
+
isLoading: computed24(() => isLoadingSignal()),
|
|
4322
4660
|
refresh: store.refresh,
|
|
4323
|
-
report:
|
|
4324
|
-
updatedAt:
|
|
4661
|
+
report: computed24(() => reportSignal()),
|
|
4662
|
+
updatedAt: computed24(() => updatedAtSignal())
|
|
4325
4663
|
};
|
|
4326
4664
|
}
|
|
4327
4665
|
}
|
|
@@ -4330,7 +4668,7 @@ __runInitializers(_init, 1, VoiceAgentSquadStatusService);
|
|
|
4330
4668
|
__decoratorMetadata(_init, VoiceAgentSquadStatusService);
|
|
4331
4669
|
let _VoiceAgentSquadStatusService = VoiceAgentSquadStatusService;
|
|
4332
4670
|
// src/angular/voice-turn-latency.service.ts
|
|
4333
|
-
import { computed as
|
|
4671
|
+
import { computed as computed25, Injectable as Injectable26, signal as signal26 } from "@angular/core";
|
|
4334
4672
|
|
|
4335
4673
|
// src/client/turnLatency.ts
|
|
4336
4674
|
var fetchVoiceTurnLatency = async (path = "/api/turn-latency", options = {}) => {
|
|
@@ -4437,17 +4775,17 @@ var createVoiceTurnLatencyStore = (path = "/api/turn-latency", options = {}) =>
|
|
|
4437
4775
|
|
|
4438
4776
|
// src/angular/voice-turn-latency.service.ts
|
|
4439
4777
|
var _dec = [
|
|
4440
|
-
|
|
4778
|
+
Injectable26({ providedIn: "root" })
|
|
4441
4779
|
];
|
|
4442
4780
|
var _init = __decoratorStart(undefined);
|
|
4443
4781
|
|
|
4444
4782
|
class VoiceTurnLatencyService {
|
|
4445
4783
|
connect(path = "/api/turn-latency", options = {}) {
|
|
4446
4784
|
const store = createVoiceTurnLatencyStore(path, options);
|
|
4447
|
-
const errorSignal =
|
|
4448
|
-
const isLoadingSignal =
|
|
4449
|
-
const reportSignal =
|
|
4450
|
-
const updatedAtSignal =
|
|
4785
|
+
const errorSignal = signal26(null);
|
|
4786
|
+
const isLoadingSignal = signal26(false);
|
|
4787
|
+
const reportSignal = signal26(undefined);
|
|
4788
|
+
const updatedAtSignal = signal26(undefined);
|
|
4451
4789
|
const sync = () => {
|
|
4452
4790
|
const snapshot = store.getSnapshot();
|
|
4453
4791
|
errorSignal.set(snapshot.error);
|
|
@@ -4463,12 +4801,12 @@ class VoiceTurnLatencyService {
|
|
|
4463
4801
|
unsubscribe();
|
|
4464
4802
|
store.close();
|
|
4465
4803
|
},
|
|
4466
|
-
error:
|
|
4467
|
-
isLoading:
|
|
4804
|
+
error: computed25(() => errorSignal()),
|
|
4805
|
+
isLoading: computed25(() => isLoadingSignal()),
|
|
4468
4806
|
refresh: store.refresh,
|
|
4469
|
-
report:
|
|
4807
|
+
report: computed25(() => reportSignal()),
|
|
4470
4808
|
runProof: store.runProof,
|
|
4471
|
-
updatedAt:
|
|
4809
|
+
updatedAt: computed25(() => updatedAtSignal())
|
|
4472
4810
|
};
|
|
4473
4811
|
}
|
|
4474
4812
|
}
|
|
@@ -4477,7 +4815,7 @@ __runInitializers(_init, 1, VoiceTurnLatencyService);
|
|
|
4477
4815
|
__decoratorMetadata(_init, VoiceTurnLatencyService);
|
|
4478
4816
|
let _VoiceTurnLatencyService = VoiceTurnLatencyService;
|
|
4479
4817
|
// src/angular/voice-turn-quality.service.ts
|
|
4480
|
-
import { computed as
|
|
4818
|
+
import { computed as computed26, Injectable as Injectable27, signal as signal27 } from "@angular/core";
|
|
4481
4819
|
|
|
4482
4820
|
// src/client/turnQuality.ts
|
|
4483
4821
|
var fetchVoiceTurnQuality = async (path = "/api/turn-quality", options = {}) => {
|
|
@@ -4560,17 +4898,17 @@ var createVoiceTurnQualityStore = (path = "/api/turn-quality", options = {}) =>
|
|
|
4560
4898
|
|
|
4561
4899
|
// src/angular/voice-turn-quality.service.ts
|
|
4562
4900
|
var _dec = [
|
|
4563
|
-
|
|
4901
|
+
Injectable27({ providedIn: "root" })
|
|
4564
4902
|
];
|
|
4565
4903
|
var _init = __decoratorStart(undefined);
|
|
4566
4904
|
|
|
4567
4905
|
class VoiceTurnQualityService {
|
|
4568
4906
|
connect(path = "/api/turn-quality", options = {}) {
|
|
4569
4907
|
const store = createVoiceTurnQualityStore(path, options);
|
|
4570
|
-
const errorSignal =
|
|
4571
|
-
const isLoadingSignal =
|
|
4572
|
-
const reportSignal =
|
|
4573
|
-
const updatedAtSignal =
|
|
4908
|
+
const errorSignal = signal27(null);
|
|
4909
|
+
const isLoadingSignal = signal27(false);
|
|
4910
|
+
const reportSignal = signal27(undefined);
|
|
4911
|
+
const updatedAtSignal = signal27(undefined);
|
|
4574
4912
|
const sync = () => {
|
|
4575
4913
|
const snapshot = store.getSnapshot();
|
|
4576
4914
|
errorSignal.set(snapshot.error);
|
|
@@ -4586,11 +4924,11 @@ class VoiceTurnQualityService {
|
|
|
4586
4924
|
unsubscribe();
|
|
4587
4925
|
store.close();
|
|
4588
4926
|
},
|
|
4589
|
-
error:
|
|
4590
|
-
isLoading:
|
|
4927
|
+
error: computed26(() => errorSignal()),
|
|
4928
|
+
isLoading: computed26(() => isLoadingSignal()),
|
|
4591
4929
|
refresh: store.refresh,
|
|
4592
|
-
report:
|
|
4593
|
-
updatedAt:
|
|
4930
|
+
report: computed26(() => reportSignal()),
|
|
4931
|
+
updatedAt: computed26(() => updatedAtSignal())
|
|
4594
4932
|
};
|
|
4595
4933
|
}
|
|
4596
4934
|
}
|
|
@@ -4599,7 +4937,7 @@ __runInitializers(_init, 1, VoiceTurnQualityService);
|
|
|
4599
4937
|
__decoratorMetadata(_init, VoiceTurnQualityService);
|
|
4600
4938
|
let _VoiceTurnQualityService = VoiceTurnQualityService;
|
|
4601
4939
|
// src/angular/voice-workflow-status.service.ts
|
|
4602
|
-
import { computed as
|
|
4940
|
+
import { computed as computed27, Injectable as Injectable28, signal as signal28 } from "@angular/core";
|
|
4603
4941
|
|
|
4604
4942
|
// src/client/workflowStatus.ts
|
|
4605
4943
|
var fetchVoiceWorkflowStatus = async (path = "/evals/scenarios/json", options = {}) => {
|
|
@@ -4682,17 +5020,17 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
4682
5020
|
|
|
4683
5021
|
// src/angular/voice-workflow-status.service.ts
|
|
4684
5022
|
var _dec = [
|
|
4685
|
-
|
|
5023
|
+
Injectable28({ providedIn: "root" })
|
|
4686
5024
|
];
|
|
4687
5025
|
var _init = __decoratorStart(undefined);
|
|
4688
5026
|
|
|
4689
5027
|
class VoiceWorkflowStatusService {
|
|
4690
5028
|
connect(path = "/evals/scenarios/json", options = {}) {
|
|
4691
5029
|
const store = createVoiceWorkflowStatusStore(path, options);
|
|
4692
|
-
const errorSignal =
|
|
4693
|
-
const isLoadingSignal =
|
|
4694
|
-
const reportSignal =
|
|
4695
|
-
const updatedAtSignal =
|
|
5030
|
+
const errorSignal = signal28(null);
|
|
5031
|
+
const isLoadingSignal = signal28(false);
|
|
5032
|
+
const reportSignal = signal28(undefined);
|
|
5033
|
+
const updatedAtSignal = signal28(undefined);
|
|
4696
5034
|
const sync = () => {
|
|
4697
5035
|
const snapshot = store.getSnapshot();
|
|
4698
5036
|
errorSignal.set(snapshot.error);
|
|
@@ -4710,11 +5048,11 @@ class VoiceWorkflowStatusService {
|
|
|
4710
5048
|
unsubscribe();
|
|
4711
5049
|
store.close();
|
|
4712
5050
|
},
|
|
4713
|
-
error:
|
|
4714
|
-
isLoading:
|
|
5051
|
+
error: computed27(() => errorSignal()),
|
|
5052
|
+
isLoading: computed27(() => isLoadingSignal()),
|
|
4715
5053
|
refresh: store.refresh,
|
|
4716
|
-
report:
|
|
4717
|
-
updatedAt:
|
|
5054
|
+
report: computed27(() => reportSignal()),
|
|
5055
|
+
updatedAt: computed27(() => updatedAtSignal())
|
|
4718
5056
|
};
|
|
4719
5057
|
}
|
|
4720
5058
|
}
|
|
@@ -4732,6 +5070,7 @@ export {
|
|
|
4732
5070
|
VoiceSessionSnapshotService,
|
|
4733
5071
|
VoiceSessionObservabilityService,
|
|
4734
5072
|
VoiceRoutingStatusService,
|
|
5073
|
+
VoiceReplayTimelineService,
|
|
4735
5074
|
VoiceReconnectProfileEvidenceService,
|
|
4736
5075
|
VoiceReadinessFailuresService,
|
|
4737
5076
|
VoiceProviderStatusService,
|
|
@@ -4743,7 +5082,9 @@ export {
|
|
|
4743
5082
|
VoiceOpsStatusService,
|
|
4744
5083
|
VoiceOpsActionCenterService,
|
|
4745
5084
|
VoiceLiveOpsService,
|
|
5085
|
+
VoiceLiveCallViewerService,
|
|
4746
5086
|
VoiceDeliveryRuntimeService,
|
|
5087
|
+
VoiceCostDashboardService,
|
|
4747
5088
|
VoiceControllerService,
|
|
4748
5089
|
VoiceCampaignDialerProofService,
|
|
4749
5090
|
VoiceCallDebuggerService,
|