@absolutejs/voice 0.0.22-beta.333 → 0.0.22-beta.335
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 +433 -168
- package/dist/index.d.ts +2 -2
- package/dist/index.js +555 -286
- package/dist/proofTrends.d.ts +107 -0
- package/dist/react/index.js +393 -128
- package/dist/vue/index.js +368 -103
- package/package.json +1 -1
package/dist/proofTrends.d.ts
CHANGED
|
@@ -4,9 +4,20 @@ export type VoiceProofTrendSummary = {
|
|
|
4
4
|
cycles?: number;
|
|
5
5
|
maxLiveP95Ms?: number;
|
|
6
6
|
maxProviderP95Ms?: number;
|
|
7
|
+
providers?: VoiceProofTrendProviderSummary[];
|
|
7
8
|
runtimeChannel?: VoiceProofTrendRuntimeChannelSummary;
|
|
8
9
|
maxTurnP95Ms?: number;
|
|
9
10
|
};
|
|
11
|
+
export type VoiceProofTrendProviderSummary = {
|
|
12
|
+
averageMs?: number;
|
|
13
|
+
id: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
p50Ms?: number;
|
|
16
|
+
p95Ms?: number;
|
|
17
|
+
role?: string;
|
|
18
|
+
samples?: number;
|
|
19
|
+
status?: string;
|
|
20
|
+
};
|
|
10
21
|
export type VoiceProofTrendRuntimeChannelSummary = {
|
|
11
22
|
maxBackpressureEvents?: number;
|
|
12
23
|
maxFirstAudioLatencyMs?: number;
|
|
@@ -36,6 +47,7 @@ export type VoiceProofTrendCycle = {
|
|
|
36
47
|
eventsWithLatency?: number;
|
|
37
48
|
status?: string;
|
|
38
49
|
};
|
|
50
|
+
providers?: VoiceProofTrendProviderSummary[];
|
|
39
51
|
runtimeChannel?: VoiceProofTrendRuntimeChannelSummary;
|
|
40
52
|
turnLatency?: {
|
|
41
53
|
p95Ms?: number;
|
|
@@ -108,6 +120,70 @@ export type VoiceProofTrendRoutesOptions = {
|
|
|
108
120
|
path?: string;
|
|
109
121
|
source?: (() => Promise<VoiceProofTrendReport | VoiceProofTrendReportInput> | VoiceProofTrendReport | VoiceProofTrendReportInput) | VoiceProofTrendReport | VoiceProofTrendReportInput;
|
|
110
122
|
};
|
|
123
|
+
export type VoiceProofTrendRecommendationStatus = 'fail' | 'pass' | 'warn';
|
|
124
|
+
export type VoiceProofTrendRecommendationSurface = 'live-latency' | 'provider-path' | 'runtime-channel' | 'turn-latency';
|
|
125
|
+
export type VoiceProofTrendRecommendation = {
|
|
126
|
+
evidence: Record<string, number | string | undefined>;
|
|
127
|
+
nextMove: string;
|
|
128
|
+
providerId?: string;
|
|
129
|
+
role?: string;
|
|
130
|
+
recommendation: string;
|
|
131
|
+
status: VoiceProofTrendRecommendationStatus;
|
|
132
|
+
surface: VoiceProofTrendRecommendationSurface;
|
|
133
|
+
};
|
|
134
|
+
export type VoiceProofTrendProviderRecommendation = {
|
|
135
|
+
averageMs?: number;
|
|
136
|
+
id: string;
|
|
137
|
+
label?: string;
|
|
138
|
+
nextMove: string;
|
|
139
|
+
p50Ms?: number;
|
|
140
|
+
p95Ms?: number;
|
|
141
|
+
rank: number;
|
|
142
|
+
role?: string;
|
|
143
|
+
samples?: number;
|
|
144
|
+
status: VoiceProofTrendRecommendationStatus;
|
|
145
|
+
};
|
|
146
|
+
export type VoiceProofTrendRecommendationReport = {
|
|
147
|
+
bestProvider?: VoiceProofTrendProviderRecommendation;
|
|
148
|
+
generatedAt: string;
|
|
149
|
+
issues: string[];
|
|
150
|
+
ok: boolean;
|
|
151
|
+
providers: VoiceProofTrendProviderRecommendation[];
|
|
152
|
+
recommendations: VoiceProofTrendRecommendation[];
|
|
153
|
+
source: string;
|
|
154
|
+
status: VoiceProofTrendRecommendationStatus;
|
|
155
|
+
summary: {
|
|
156
|
+
keepCurrentProviderPath: boolean;
|
|
157
|
+
keepCurrentRuntimeChannel: boolean;
|
|
158
|
+
providerComparisonCount: number;
|
|
159
|
+
recommendedActions: number;
|
|
160
|
+
switchRecommended: boolean;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
export type VoiceProofTrendRecommendationOptions = {
|
|
164
|
+
currentProviderId?: string;
|
|
165
|
+
maxLiveP95Ms?: number;
|
|
166
|
+
maxProviderP95Ms?: number;
|
|
167
|
+
maxRuntimeBackpressureEvents?: number;
|
|
168
|
+
maxRuntimeFirstAudioLatencyMs?: number;
|
|
169
|
+
maxRuntimeInterruptionP95Ms?: number;
|
|
170
|
+
maxRuntimeJitterMs?: number;
|
|
171
|
+
maxRuntimeTimestampDriftMs?: number;
|
|
172
|
+
maxTurnP95Ms?: number;
|
|
173
|
+
providerSwitchMinImprovementMs?: number;
|
|
174
|
+
providerSwitchMinImprovementRatio?: number;
|
|
175
|
+
};
|
|
176
|
+
export type VoiceProofTrendRecommendationRoutesOptions = VoiceProofTrendRecommendationOptions & {
|
|
177
|
+
headers?: HeadersInit;
|
|
178
|
+
htmlPath?: false | string;
|
|
179
|
+
jsonPath?: string;
|
|
180
|
+
maxAgeMs?: number;
|
|
181
|
+
markdownPath?: false | string;
|
|
182
|
+
name?: string;
|
|
183
|
+
path?: string;
|
|
184
|
+
source?: (() => Promise<VoiceProofTrendReport | VoiceProofTrendReportInput> | VoiceProofTrendReport | VoiceProofTrendReportInput) | VoiceProofTrendReport | VoiceProofTrendReportInput;
|
|
185
|
+
title?: string;
|
|
186
|
+
};
|
|
111
187
|
export declare const DEFAULT_VOICE_PROOF_TRENDS_MAX_AGE_MS: number;
|
|
112
188
|
export declare const buildVoiceProofTrendReport: (input?: VoiceProofTrendReportInput) => VoiceProofTrendReport;
|
|
113
189
|
export declare const buildEmptyVoiceProofTrendReport: (source?: string, maxAgeMs?: number) => VoiceProofTrendReport;
|
|
@@ -120,6 +196,37 @@ export declare const readVoiceProofTrendReportFile: (path: string, options?: {
|
|
|
120
196
|
}) => Promise<VoiceProofTrendReport>;
|
|
121
197
|
export declare const evaluateVoiceProofTrendEvidence: (report: VoiceProofTrendReport, input?: VoiceProofTrendAssertionInput) => VoiceProofTrendAssertionReport;
|
|
122
198
|
export declare const assertVoiceProofTrendEvidence: (report: VoiceProofTrendReport, input?: VoiceProofTrendAssertionInput) => VoiceProofTrendAssertionReport;
|
|
199
|
+
export declare const buildVoiceProofTrendRecommendationReport: (report: VoiceProofTrendReport, options?: VoiceProofTrendRecommendationOptions) => VoiceProofTrendRecommendationReport;
|
|
200
|
+
export declare const renderVoiceProofTrendRecommendationMarkdown: (report: VoiceProofTrendRecommendationReport, title?: string) => string;
|
|
201
|
+
export declare const renderVoiceProofTrendRecommendationHTML: (report: VoiceProofTrendRecommendationReport, title?: string) => string;
|
|
202
|
+
export declare const createVoiceProofTrendRecommendationRoutes: (options: VoiceProofTrendRecommendationRoutesOptions) => Elysia<"", {
|
|
203
|
+
decorator: {};
|
|
204
|
+
store: {};
|
|
205
|
+
derive: {};
|
|
206
|
+
resolve: {};
|
|
207
|
+
}, {
|
|
208
|
+
typebox: {};
|
|
209
|
+
error: {};
|
|
210
|
+
}, {
|
|
211
|
+
schema: {};
|
|
212
|
+
standaloneSchema: {};
|
|
213
|
+
macro: {};
|
|
214
|
+
macroFn: {};
|
|
215
|
+
parser: {};
|
|
216
|
+
response: {};
|
|
217
|
+
}, {}, {
|
|
218
|
+
derive: {};
|
|
219
|
+
resolve: {};
|
|
220
|
+
schema: {};
|
|
221
|
+
standaloneSchema: {};
|
|
222
|
+
response: {};
|
|
223
|
+
}, {
|
|
224
|
+
derive: {};
|
|
225
|
+
resolve: {};
|
|
226
|
+
schema: {};
|
|
227
|
+
standaloneSchema: {};
|
|
228
|
+
response: {};
|
|
229
|
+
}>;
|
|
123
230
|
export declare const createVoiceProofTrendRoutes: (options: VoiceProofTrendRoutesOptions) => Elysia<"", {
|
|
124
231
|
decorator: {};
|
|
125
232
|
store: {};
|