@absolutejs/voice 0.0.22-beta.186 → 0.0.22-beta.187
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/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22610,22 +22610,22 @@ var resolveOutcome4 = (events) => {
|
|
|
22610
22610
|
};
|
|
22611
22611
|
var buildVoiceOperationsRecord = async (options) => {
|
|
22612
22612
|
const sourceEvents = options.events ?? await options.store?.list({ sessionId: options.sessionId }) ?? [];
|
|
22613
|
-
const
|
|
22613
|
+
const rawTraceEvents = filterVoiceTraceEvents(sourceEvents, {
|
|
22614
22614
|
sessionId: options.sessionId
|
|
22615
22615
|
});
|
|
22616
|
+
const traceEvents = options.redact ? redactVoiceTraceEvents(rawTraceEvents, options.redact) : rawTraceEvents;
|
|
22616
22617
|
const timelineReport = summarizeVoiceTraceTimeline(traceEvents, {
|
|
22617
22618
|
evaluation: options.evaluation,
|
|
22618
|
-
limit: 1
|
|
22619
|
-
redact: options.redact
|
|
22619
|
+
limit: 1
|
|
22620
22620
|
});
|
|
22621
22621
|
const timelineSession = timelineReport.sessions[0];
|
|
22622
22622
|
const replay = await summarizeVoiceSessionReplay({
|
|
22623
22623
|
evaluation: options.evaluation,
|
|
22624
22624
|
events: traceEvents,
|
|
22625
|
-
redact: options.redact,
|
|
22626
22625
|
sessionId: options.sessionId
|
|
22627
22626
|
});
|
|
22628
|
-
const
|
|
22627
|
+
const rawAuditEvents = options.audit ? filterVoiceAuditEvents(await options.audit.list({ sessionId: options.sessionId })) : undefined;
|
|
22628
|
+
const auditEvents = options.redact && rawAuditEvents ? redactVoiceAuditEvents(rawAuditEvents, options.redact) : rawAuditEvents;
|
|
22629
22629
|
return {
|
|
22630
22630
|
audit: auditEvents ? {
|
|
22631
22631
|
error: countOutcome(auditEvents, "error"),
|