@absolutejs/voice 0.0.22-beta.196 → 0.0.22-beta.198
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -1
- package/dist/campaign.d.ts +7 -3
- package/dist/index.js +641 -525
- package/dist/opsRecovery.d.ts +1 -0
- package/dist/productionReadiness.d.ts +12 -0
- package/dist/sessionReplay.d.ts +2 -0
- package/dist/traceTimeline.d.ts +3 -0
- package/package.json +1 -1
package/dist/opsRecovery.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type { VoiceAuditEventStore, VoiceAuditEventType, VoiceAuditOutcome } fro
|
|
|
13
13
|
import { type VoiceAuditSinkDeliveryStore } from './auditSinks';
|
|
14
14
|
import type { VoiceProviderContractMatrixReport, VoiceProviderStackCapabilityGapReport } from './providerStackRecommendations';
|
|
15
15
|
import type { VoiceCampaignReadinessProofReport } from './campaign';
|
|
16
|
+
import { type VoiceOpsRecoveryReport } from './opsRecovery';
|
|
16
17
|
export type VoiceProductionReadinessStatus = 'fail' | 'pass' | 'warn';
|
|
17
18
|
export type VoiceProductionReadinessAction = {
|
|
18
19
|
description?: string;
|
|
@@ -90,6 +91,7 @@ export type VoiceProductionReadinessReport = {
|
|
|
90
91
|
liveLatency?: string;
|
|
91
92
|
operationsRecords?: string;
|
|
92
93
|
opsActions?: string;
|
|
94
|
+
opsRecovery?: string;
|
|
93
95
|
phoneAgentSmoke?: string;
|
|
94
96
|
providerContracts?: string;
|
|
95
97
|
providerRoutingContracts?: string;
|
|
@@ -145,6 +147,12 @@ export type VoiceProductionReadinessReport = {
|
|
|
145
147
|
warnings: number;
|
|
146
148
|
};
|
|
147
149
|
opsActionHistory?: VoiceProductionReadinessOpsActionHistorySummary;
|
|
150
|
+
opsRecovery?: {
|
|
151
|
+
issues: number;
|
|
152
|
+
recoveredFallbacks: number;
|
|
153
|
+
status: VoiceProductionReadinessStatus;
|
|
154
|
+
unresolvedProviderFailures: number;
|
|
155
|
+
};
|
|
148
156
|
providers: {
|
|
149
157
|
degraded: number;
|
|
150
158
|
total: number;
|
|
@@ -318,6 +326,10 @@ export type VoiceProductionReadinessRoutesOptions = {
|
|
|
318
326
|
llmProviders?: readonly string[];
|
|
319
327
|
name?: string;
|
|
320
328
|
opsActionHistory?: false | VoiceProductionReadinessOpsActionHistoryOptions;
|
|
329
|
+
opsRecovery?: false | VoiceOpsRecoveryReport | ((input: {
|
|
330
|
+
query: Record<string, unknown>;
|
|
331
|
+
request: Request;
|
|
332
|
+
}) => Promise<VoiceOpsRecoveryReport> | VoiceOpsRecoveryReport);
|
|
321
333
|
path?: string;
|
|
322
334
|
phoneAgentSmokes?: false | readonly VoicePhoneAgentProductionSmokeReport[] | ((input: {
|
|
323
335
|
query: Record<string, unknown>;
|
package/dist/sessionReplay.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export type VoiceSessionListItem = {
|
|
|
34
34
|
errorCount: number;
|
|
35
35
|
eventCount: number;
|
|
36
36
|
latestOutcome?: string;
|
|
37
|
+
operationsRecordHref?: string;
|
|
37
38
|
providerErrors: Record<string, number>;
|
|
38
39
|
providers: string[];
|
|
39
40
|
replayHref: string;
|
|
@@ -55,6 +56,7 @@ export type VoiceProviderFallbackRecoverySummary = {
|
|
|
55
56
|
export type VoiceSessionListOptions = {
|
|
56
57
|
events?: StoredVoiceTraceEvent[];
|
|
57
58
|
limit?: number;
|
|
59
|
+
operationsRecordHref?: false | string | ((session: Omit<VoiceSessionListItem, 'operationsRecordHref' | 'replayHref'>) => string);
|
|
58
60
|
provider?: string;
|
|
59
61
|
q?: string;
|
|
60
62
|
replayHref?: false | string | ((session: Omit<VoiceSessionListItem, 'replayHref'>) => string);
|
package/dist/traceTimeline.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export type VoiceTraceTimelineSession = {
|
|
|
26
26
|
evaluation: ReturnType<typeof evaluateVoiceTrace>;
|
|
27
27
|
events: VoiceTraceTimelineEvent[];
|
|
28
28
|
lastEventAt?: number;
|
|
29
|
+
operationsRecordHref?: string;
|
|
29
30
|
providers: VoiceTraceTimelineProviderSummary[];
|
|
30
31
|
sessionId: string;
|
|
31
32
|
startedAt?: number;
|
|
@@ -45,6 +46,7 @@ export type VoiceTraceTimelineRoutesOptions = {
|
|
|
45
46
|
htmlPath?: string;
|
|
46
47
|
limit?: number;
|
|
47
48
|
name?: string;
|
|
49
|
+
operationsRecordHref?: false | string | ((sessionId: string) => string);
|
|
48
50
|
path?: string;
|
|
49
51
|
redact?: VoiceTraceRedactionConfig;
|
|
50
52
|
render?: (report: VoiceTraceTimelineReport) => string | Promise<string>;
|
|
@@ -55,6 +57,7 @@ export type VoiceTraceTimelineRoutesOptions = {
|
|
|
55
57
|
export declare const summarizeVoiceTraceTimeline: (events: StoredVoiceTraceEvent[], options?: {
|
|
56
58
|
evaluation?: VoiceTraceEvaluationOptions;
|
|
57
59
|
limit?: number;
|
|
60
|
+
operationsRecordHref?: false | string | ((sessionId: string) => string);
|
|
58
61
|
redact?: VoiceTraceRedactionConfig;
|
|
59
62
|
}) => VoiceTraceTimelineReport;
|
|
60
63
|
export declare const renderVoiceTraceTimelineSessionHTML: (session: VoiceTraceTimelineSession, options?: {
|