@absolutejs/voice 0.0.22-beta.332 → 0.0.22-beta.334
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/client/index.js +359 -167
- package/dist/index.d.ts +2 -2
- package/dist/index.js +482 -285
- package/dist/proofTrends.d.ts +92 -0
- package/dist/react/index.js +319 -127
- package/dist/vue/index.js +294 -102
- package/package.json +1 -1
package/dist/proofTrends.d.ts
CHANGED
|
@@ -4,8 +4,18 @@ export type VoiceProofTrendSummary = {
|
|
|
4
4
|
cycles?: number;
|
|
5
5
|
maxLiveP95Ms?: number;
|
|
6
6
|
maxProviderP95Ms?: number;
|
|
7
|
+
runtimeChannel?: VoiceProofTrendRuntimeChannelSummary;
|
|
7
8
|
maxTurnP95Ms?: number;
|
|
8
9
|
};
|
|
10
|
+
export type VoiceProofTrendRuntimeChannelSummary = {
|
|
11
|
+
maxBackpressureEvents?: number;
|
|
12
|
+
maxFirstAudioLatencyMs?: number;
|
|
13
|
+
maxInterruptionP95Ms?: number;
|
|
14
|
+
maxJitterMs?: number;
|
|
15
|
+
maxTimestampDriftMs?: number;
|
|
16
|
+
samples?: number;
|
|
17
|
+
status?: string;
|
|
18
|
+
};
|
|
9
19
|
export type VoiceProofTrendCycle = {
|
|
10
20
|
at?: string;
|
|
11
21
|
cycle?: number;
|
|
@@ -26,6 +36,7 @@ export type VoiceProofTrendCycle = {
|
|
|
26
36
|
eventsWithLatency?: number;
|
|
27
37
|
status?: string;
|
|
28
38
|
};
|
|
39
|
+
runtimeChannel?: VoiceProofTrendRuntimeChannelSummary;
|
|
29
40
|
turnLatency?: {
|
|
30
41
|
p95Ms?: number;
|
|
31
42
|
samples?: number;
|
|
@@ -61,12 +72,18 @@ export type VoiceProofTrendReport = {
|
|
|
61
72
|
};
|
|
62
73
|
export type VoiceProofTrendAssertionInput = {
|
|
63
74
|
maxAgeMs?: number;
|
|
75
|
+
maxRuntimeBackpressureEvents?: number;
|
|
76
|
+
maxRuntimeFirstAudioLatencyMs?: number;
|
|
77
|
+
maxRuntimeInterruptionP95Ms?: number;
|
|
78
|
+
maxRuntimeJitterMs?: number;
|
|
79
|
+
maxRuntimeTimestampDriftMs?: number;
|
|
64
80
|
maxLiveP95Ms?: number;
|
|
65
81
|
maxProviderP95Ms?: number;
|
|
66
82
|
maxTurnP95Ms?: number;
|
|
67
83
|
minCycles?: number;
|
|
68
84
|
minLiveLatencySamples?: number;
|
|
69
85
|
minProviderSloEventsWithLatency?: number;
|
|
86
|
+
minRuntimeChannelSamples?: number;
|
|
70
87
|
minTurnLatencySamples?: number;
|
|
71
88
|
requireAllCyclesOk?: boolean;
|
|
72
89
|
requireStatus?: VoiceProofTrendStatus;
|
|
@@ -78,6 +95,7 @@ export type VoiceProofTrendAssertionReport = {
|
|
|
78
95
|
issues: string[];
|
|
79
96
|
maxLiveP95Ms?: number;
|
|
80
97
|
maxProviderP95Ms?: number;
|
|
98
|
+
runtimeChannel?: VoiceProofTrendRuntimeChannelSummary;
|
|
81
99
|
maxTurnP95Ms?: number;
|
|
82
100
|
ok: boolean;
|
|
83
101
|
status: VoiceProofTrendStatus;
|
|
@@ -90,6 +108,49 @@ export type VoiceProofTrendRoutesOptions = {
|
|
|
90
108
|
path?: string;
|
|
91
109
|
source?: (() => Promise<VoiceProofTrendReport | VoiceProofTrendReportInput> | VoiceProofTrendReport | VoiceProofTrendReportInput) | VoiceProofTrendReport | VoiceProofTrendReportInput;
|
|
92
110
|
};
|
|
111
|
+
export type VoiceProofTrendRecommendationStatus = 'fail' | 'pass' | 'warn';
|
|
112
|
+
export type VoiceProofTrendRecommendationSurface = 'live-latency' | 'provider-path' | 'runtime-channel' | 'turn-latency';
|
|
113
|
+
export type VoiceProofTrendRecommendation = {
|
|
114
|
+
evidence: Record<string, number | string | undefined>;
|
|
115
|
+
nextMove: string;
|
|
116
|
+
recommendation: string;
|
|
117
|
+
status: VoiceProofTrendRecommendationStatus;
|
|
118
|
+
surface: VoiceProofTrendRecommendationSurface;
|
|
119
|
+
};
|
|
120
|
+
export type VoiceProofTrendRecommendationReport = {
|
|
121
|
+
generatedAt: string;
|
|
122
|
+
issues: string[];
|
|
123
|
+
ok: boolean;
|
|
124
|
+
recommendations: VoiceProofTrendRecommendation[];
|
|
125
|
+
source: string;
|
|
126
|
+
status: VoiceProofTrendRecommendationStatus;
|
|
127
|
+
summary: {
|
|
128
|
+
keepCurrentProviderPath: boolean;
|
|
129
|
+
keepCurrentRuntimeChannel: boolean;
|
|
130
|
+
recommendedActions: number;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
export type VoiceProofTrendRecommendationOptions = {
|
|
134
|
+
maxLiveP95Ms?: number;
|
|
135
|
+
maxProviderP95Ms?: number;
|
|
136
|
+
maxRuntimeBackpressureEvents?: number;
|
|
137
|
+
maxRuntimeFirstAudioLatencyMs?: number;
|
|
138
|
+
maxRuntimeInterruptionP95Ms?: number;
|
|
139
|
+
maxRuntimeJitterMs?: number;
|
|
140
|
+
maxRuntimeTimestampDriftMs?: number;
|
|
141
|
+
maxTurnP95Ms?: number;
|
|
142
|
+
};
|
|
143
|
+
export type VoiceProofTrendRecommendationRoutesOptions = VoiceProofTrendRecommendationOptions & {
|
|
144
|
+
headers?: HeadersInit;
|
|
145
|
+
htmlPath?: false | string;
|
|
146
|
+
jsonPath?: string;
|
|
147
|
+
maxAgeMs?: number;
|
|
148
|
+
markdownPath?: false | string;
|
|
149
|
+
name?: string;
|
|
150
|
+
path?: string;
|
|
151
|
+
source?: (() => Promise<VoiceProofTrendReport | VoiceProofTrendReportInput> | VoiceProofTrendReport | VoiceProofTrendReportInput) | VoiceProofTrendReport | VoiceProofTrendReportInput;
|
|
152
|
+
title?: string;
|
|
153
|
+
};
|
|
93
154
|
export declare const DEFAULT_VOICE_PROOF_TRENDS_MAX_AGE_MS: number;
|
|
94
155
|
export declare const buildVoiceProofTrendReport: (input?: VoiceProofTrendReportInput) => VoiceProofTrendReport;
|
|
95
156
|
export declare const buildEmptyVoiceProofTrendReport: (source?: string, maxAgeMs?: number) => VoiceProofTrendReport;
|
|
@@ -102,6 +163,37 @@ export declare const readVoiceProofTrendReportFile: (path: string, options?: {
|
|
|
102
163
|
}) => Promise<VoiceProofTrendReport>;
|
|
103
164
|
export declare const evaluateVoiceProofTrendEvidence: (report: VoiceProofTrendReport, input?: VoiceProofTrendAssertionInput) => VoiceProofTrendAssertionReport;
|
|
104
165
|
export declare const assertVoiceProofTrendEvidence: (report: VoiceProofTrendReport, input?: VoiceProofTrendAssertionInput) => VoiceProofTrendAssertionReport;
|
|
166
|
+
export declare const buildVoiceProofTrendRecommendationReport: (report: VoiceProofTrendReport, options?: VoiceProofTrendRecommendationOptions) => VoiceProofTrendRecommendationReport;
|
|
167
|
+
export declare const renderVoiceProofTrendRecommendationMarkdown: (report: VoiceProofTrendRecommendationReport, title?: string) => string;
|
|
168
|
+
export declare const renderVoiceProofTrendRecommendationHTML: (report: VoiceProofTrendRecommendationReport, title?: string) => string;
|
|
169
|
+
export declare const createVoiceProofTrendRecommendationRoutes: (options: VoiceProofTrendRecommendationRoutesOptions) => Elysia<"", {
|
|
170
|
+
decorator: {};
|
|
171
|
+
store: {};
|
|
172
|
+
derive: {};
|
|
173
|
+
resolve: {};
|
|
174
|
+
}, {
|
|
175
|
+
typebox: {};
|
|
176
|
+
error: {};
|
|
177
|
+
}, {
|
|
178
|
+
schema: {};
|
|
179
|
+
standaloneSchema: {};
|
|
180
|
+
macro: {};
|
|
181
|
+
macroFn: {};
|
|
182
|
+
parser: {};
|
|
183
|
+
response: {};
|
|
184
|
+
}, {}, {
|
|
185
|
+
derive: {};
|
|
186
|
+
resolve: {};
|
|
187
|
+
schema: {};
|
|
188
|
+
standaloneSchema: {};
|
|
189
|
+
response: {};
|
|
190
|
+
}, {
|
|
191
|
+
derive: {};
|
|
192
|
+
resolve: {};
|
|
193
|
+
schema: {};
|
|
194
|
+
standaloneSchema: {};
|
|
195
|
+
response: {};
|
|
196
|
+
}>;
|
|
105
197
|
export declare const createVoiceProofTrendRoutes: (options: VoiceProofTrendRoutesOptions) => Elysia<"", {
|
|
106
198
|
decorator: {};
|
|
107
199
|
store: {};
|