@absolutejs/voice 0.0.22-beta.333 → 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.
@@ -108,6 +108,49 @@ export type VoiceProofTrendRoutesOptions = {
108
108
  path?: string;
109
109
  source?: (() => Promise<VoiceProofTrendReport | VoiceProofTrendReportInput> | VoiceProofTrendReport | VoiceProofTrendReportInput) | VoiceProofTrendReport | VoiceProofTrendReportInput;
110
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
+ };
111
154
  export declare const DEFAULT_VOICE_PROOF_TRENDS_MAX_AGE_MS: number;
112
155
  export declare const buildVoiceProofTrendReport: (input?: VoiceProofTrendReportInput) => VoiceProofTrendReport;
113
156
  export declare const buildEmptyVoiceProofTrendReport: (source?: string, maxAgeMs?: number) => VoiceProofTrendReport;
@@ -120,6 +163,37 @@ export declare const readVoiceProofTrendReportFile: (path: string, options?: {
120
163
  }) => Promise<VoiceProofTrendReport>;
121
164
  export declare const evaluateVoiceProofTrendEvidence: (report: VoiceProofTrendReport, input?: VoiceProofTrendAssertionInput) => VoiceProofTrendAssertionReport;
122
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
+ }>;
123
197
  export declare const createVoiceProofTrendRoutes: (options: VoiceProofTrendRoutesOptions) => Elysia<"", {
124
198
  decorator: {};
125
199
  store: {};