@absolutejs/voice 0.0.22-beta.40 → 0.0.22-beta.42

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.
@@ -0,0 +1,77 @@
1
+ import { Elysia } from 'elysia';
2
+ import { type VoiceQualityReport } from './qualityRoutes';
3
+ import { type VoiceRoutingEvent } from './resilienceRoutes';
4
+ import { type VoiceSessionListItem } from './sessionReplay';
5
+ import { summarizeVoiceTrace, type VoiceTraceEventStore } from './trace';
6
+ export type VoiceOpsConsoleLink = {
7
+ description?: string;
8
+ href: string;
9
+ label: string;
10
+ statusHref?: string;
11
+ };
12
+ export type VoiceOpsConsoleReport = {
13
+ checkedAt: number;
14
+ eventCount: number;
15
+ handoffs: {
16
+ failed: number;
17
+ total: number;
18
+ };
19
+ links: VoiceOpsConsoleLink[];
20
+ providers: {
21
+ degraded: number;
22
+ healthy: number;
23
+ total: number;
24
+ };
25
+ quality: VoiceQualityReport;
26
+ recentRoutingEvents: VoiceRoutingEvent[];
27
+ recentSessions: VoiceSessionListItem[];
28
+ sessions: {
29
+ failed: number;
30
+ healthy: number;
31
+ total: number;
32
+ };
33
+ trace: ReturnType<typeof summarizeVoiceTrace>;
34
+ };
35
+ export type VoiceOpsConsoleRoutesOptions = {
36
+ headers?: HeadersInit;
37
+ links?: VoiceOpsConsoleLink[];
38
+ llmProviders?: readonly string[];
39
+ name?: string;
40
+ path?: string;
41
+ store: VoiceTraceEventStore;
42
+ sttProviders?: readonly string[];
43
+ title?: string;
44
+ ttsProviders?: readonly string[];
45
+ };
46
+ export declare const buildVoiceOpsConsoleReport: (options: VoiceOpsConsoleRoutesOptions) => Promise<VoiceOpsConsoleReport>;
47
+ export declare const renderVoiceOpsConsoleHTML: (report: VoiceOpsConsoleReport, options?: {
48
+ title?: string;
49
+ }) => string;
50
+ export declare const createVoiceOpsConsoleRoutes: (options: VoiceOpsConsoleRoutesOptions) => Elysia<"", {
51
+ decorator: {};
52
+ store: {};
53
+ derive: {};
54
+ resolve: {};
55
+ }, {
56
+ typebox: {};
57
+ error: {};
58
+ }, {
59
+ schema: {};
60
+ standaloneSchema: {};
61
+ macro: {};
62
+ macroFn: {};
63
+ parser: {};
64
+ response: {};
65
+ }, {}, {
66
+ derive: {};
67
+ resolve: {};
68
+ schema: {};
69
+ standaloneSchema: {};
70
+ response: {};
71
+ }, {
72
+ derive: {};
73
+ resolve: {};
74
+ schema: {};
75
+ standaloneSchema: {};
76
+ response: {};
77
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.40",
3
+ "version": "0.0.22-beta.42",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",