@absolutejs/voice 0.0.22-beta.343 → 0.0.22-beta.345
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/browserCallProfiles.d.ts +120 -0
- package/dist/client/index.js +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +606 -412
- package/dist/react/index.js +3 -0
- package/dist/vue/index.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
export type VoiceBrowserCallProfileStatus = 'empty' | 'fail' | 'pass' | 'stale' | 'warn';
|
|
3
|
+
export type VoiceBrowserCallProfileFrameworkSummary = {
|
|
4
|
+
messageCount?: number;
|
|
5
|
+
openSockets?: number;
|
|
6
|
+
receivedBytes?: number;
|
|
7
|
+
sentBytes?: number;
|
|
8
|
+
};
|
|
9
|
+
export type VoiceBrowserCallProfileFrameworkEvidence = {
|
|
10
|
+
error?: string;
|
|
11
|
+
framework: string;
|
|
12
|
+
ok?: boolean;
|
|
13
|
+
summary?: VoiceBrowserCallProfileFrameworkSummary;
|
|
14
|
+
url?: string;
|
|
15
|
+
};
|
|
16
|
+
export type VoiceBrowserCallProfileSummary = {
|
|
17
|
+
failedFrameworks: string[];
|
|
18
|
+
openSockets: number;
|
|
19
|
+
passedFrameworks: string[];
|
|
20
|
+
receivedBytes: number;
|
|
21
|
+
sentBytes: number;
|
|
22
|
+
totalFrameworks: number;
|
|
23
|
+
totalMessages: number;
|
|
24
|
+
};
|
|
25
|
+
export type VoiceBrowserCallProfileReportInput = {
|
|
26
|
+
ageMs?: number;
|
|
27
|
+
baseUrl?: string;
|
|
28
|
+
frameworks?: string[];
|
|
29
|
+
freshUntil?: string;
|
|
30
|
+
generatedAt?: string;
|
|
31
|
+
maxAgeMs?: number;
|
|
32
|
+
now?: Date | number | string;
|
|
33
|
+
ok?: boolean;
|
|
34
|
+
outputDir?: string;
|
|
35
|
+
profileId?: string;
|
|
36
|
+
results?: VoiceBrowserCallProfileFrameworkEvidence[];
|
|
37
|
+
runId?: string;
|
|
38
|
+
source?: string;
|
|
39
|
+
status?: VoiceBrowserCallProfileStatus;
|
|
40
|
+
summary?: Partial<VoiceBrowserCallProfileSummary> & VoiceBrowserCallProfileFrameworkSummary;
|
|
41
|
+
};
|
|
42
|
+
export type VoiceBrowserCallProfileReport = {
|
|
43
|
+
ageMs?: number;
|
|
44
|
+
baseUrl?: string;
|
|
45
|
+
frameworks: string[];
|
|
46
|
+
freshUntil?: string;
|
|
47
|
+
generatedAt: string;
|
|
48
|
+
maxAgeMs: number;
|
|
49
|
+
ok: boolean;
|
|
50
|
+
outputDir?: string;
|
|
51
|
+
profileId: string;
|
|
52
|
+
results: VoiceBrowserCallProfileFrameworkEvidence[];
|
|
53
|
+
runId?: string;
|
|
54
|
+
source: string;
|
|
55
|
+
status: VoiceBrowserCallProfileStatus;
|
|
56
|
+
summary: VoiceBrowserCallProfileSummary;
|
|
57
|
+
};
|
|
58
|
+
export type VoiceBrowserCallProfileAssertionInput = {
|
|
59
|
+
maxAgeMs?: number;
|
|
60
|
+
minMessageCountPerFramework?: number;
|
|
61
|
+
minOpenSocketsPerFramework?: number;
|
|
62
|
+
minSentBytesPerFramework?: number;
|
|
63
|
+
requireAllFrameworksPass?: boolean;
|
|
64
|
+
requiredFrameworks?: string[];
|
|
65
|
+
};
|
|
66
|
+
export type VoiceBrowserCallProfileAssertionReport = {
|
|
67
|
+
failedFrameworks: string[];
|
|
68
|
+
issues: string[];
|
|
69
|
+
ok: boolean;
|
|
70
|
+
passedFrameworks: string[];
|
|
71
|
+
status: VoiceBrowserCallProfileStatus;
|
|
72
|
+
summary: VoiceBrowserCallProfileSummary;
|
|
73
|
+
};
|
|
74
|
+
export type VoiceBrowserCallProfileRoutesOptions = {
|
|
75
|
+
headers?: HeadersInit;
|
|
76
|
+
htmlPath?: false | string;
|
|
77
|
+
jsonPath?: string;
|
|
78
|
+
markdownPath?: false | string;
|
|
79
|
+
maxAgeMs?: number;
|
|
80
|
+
name?: string;
|
|
81
|
+
source?: (() => Promise<VoiceBrowserCallProfileReport | VoiceBrowserCallProfileReportInput> | VoiceBrowserCallProfileReport | VoiceBrowserCallProfileReportInput) | VoiceBrowserCallProfileReport | VoiceBrowserCallProfileReportInput;
|
|
82
|
+
title?: string;
|
|
83
|
+
};
|
|
84
|
+
export declare const buildVoiceBrowserCallProfileReport: (input?: VoiceBrowserCallProfileReportInput) => VoiceBrowserCallProfileReport;
|
|
85
|
+
export declare const evaluateVoiceBrowserCallProfileEvidence: (report: VoiceBrowserCallProfileReport | VoiceBrowserCallProfileReportInput, input?: VoiceBrowserCallProfileAssertionInput) => VoiceBrowserCallProfileAssertionReport;
|
|
86
|
+
export declare const assertVoiceBrowserCallProfileEvidence: (report: VoiceBrowserCallProfileReport | VoiceBrowserCallProfileReportInput, input?: VoiceBrowserCallProfileAssertionInput) => VoiceBrowserCallProfileAssertionReport;
|
|
87
|
+
export declare const renderVoiceBrowserCallProfileMarkdown: (report: VoiceBrowserCallProfileReport | VoiceBrowserCallProfileReportInput, options?: {
|
|
88
|
+
title?: string;
|
|
89
|
+
}) => string;
|
|
90
|
+
export declare const renderVoiceBrowserCallProfileHTML: (report: VoiceBrowserCallProfileReport | VoiceBrowserCallProfileReportInput, options?: {
|
|
91
|
+
title?: string;
|
|
92
|
+
}) => string;
|
|
93
|
+
export declare const createVoiceBrowserCallProfileRoutes: (options?: VoiceBrowserCallProfileRoutesOptions) => Elysia<"", {
|
|
94
|
+
decorator: {};
|
|
95
|
+
store: {};
|
|
96
|
+
derive: {};
|
|
97
|
+
resolve: {};
|
|
98
|
+
}, {
|
|
99
|
+
typebox: {};
|
|
100
|
+
error: {};
|
|
101
|
+
}, {
|
|
102
|
+
schema: {};
|
|
103
|
+
standaloneSchema: {};
|
|
104
|
+
macro: {};
|
|
105
|
+
macroFn: {};
|
|
106
|
+
parser: {};
|
|
107
|
+
response: {};
|
|
108
|
+
}, {}, {
|
|
109
|
+
derive: {};
|
|
110
|
+
resolve: {};
|
|
111
|
+
schema: {};
|
|
112
|
+
standaloneSchema: {};
|
|
113
|
+
response: {};
|
|
114
|
+
}, {
|
|
115
|
+
derive: {};
|
|
116
|
+
resolve: {};
|
|
117
|
+
schema: {};
|
|
118
|
+
standaloneSchema: {};
|
|
119
|
+
response: {};
|
|
120
|
+
}>;
|
package/dist/client/index.js
CHANGED
|
@@ -3886,6 +3886,9 @@ var aggregateProofTrendProviders = (providers) => {
|
|
|
3886
3886
|
if (!provider.id) {
|
|
3887
3887
|
continue;
|
|
3888
3888
|
}
|
|
3889
|
+
if (provider.p95Ms === undefined && provider.p50Ms === undefined && provider.averageMs === undefined && (provider.samples ?? 0) <= 0) {
|
|
3890
|
+
continue;
|
|
3891
|
+
}
|
|
3889
3892
|
const existing = providersById.get(provider.id);
|
|
3890
3893
|
providersById.set(provider.id, {
|
|
3891
3894
|
averageMs: maxNumber([existing?.averageMs, provider.averageMs]),
|
package/dist/index.d.ts
CHANGED
|
@@ -18,9 +18,11 @@ export { buildVoiceDiagnosticsMarkdown, createVoiceDiagnosticsRoutes, resolveVoi
|
|
|
18
18
|
export { assertVoiceMediaPipelineEvidence, buildVoiceMediaPipelineReport, createVoiceMediaPipelineRoutes, evaluateVoiceMediaPipelineEvidence, renderVoiceMediaPipelineHTML, renderVoiceMediaPipelineMarkdown } from './mediaPipelineRoutes';
|
|
19
19
|
export { buildVoiceTelephonyMediaReport, createVoiceTelephonyMediaRoutes, getLatestVoiceTelephonyMediaReport, renderVoiceTelephonyMediaHTML } from './telephonyMediaRoutes';
|
|
20
20
|
export { createVoiceBrowserMediaRoutes, getLatestVoiceBrowserMediaReport, renderVoiceBrowserMediaHTML, summarizeVoiceBrowserMedia } from './browserMediaRoutes';
|
|
21
|
+
export { assertVoiceBrowserCallProfileEvidence, buildVoiceBrowserCallProfileReport, createVoiceBrowserCallProfileRoutes, evaluateVoiceBrowserCallProfileEvidence, renderVoiceBrowserCallProfileHTML, renderVoiceBrowserCallProfileMarkdown } from './browserCallProfiles';
|
|
21
22
|
export type { VoiceMediaPipelineAssertionInput, VoiceMediaPipelineAssertionReport, VoiceMediaPipelineReport, VoiceMediaPipelineReportOptions, VoiceMediaPipelineRoutesOptions } from './mediaPipelineRoutes';
|
|
22
23
|
export type { VoiceTelephonyMediaCarrierInput, VoiceTelephonyMediaCarrierReport, VoiceTelephonyMediaReport, VoiceTelephonyMediaRoutesOptions, VoiceTelephonyMediaTraceReportOptions, VoiceTelephonyMediaStatus } from './telephonyMediaRoutes';
|
|
23
24
|
export type { VoiceBrowserMediaReport, VoiceBrowserMediaRoutesOptions, VoiceBrowserMediaSample, VoiceBrowserMediaStatus } from './browserMediaRoutes';
|
|
25
|
+
export type { VoiceBrowserCallProfileAssertionInput, VoiceBrowserCallProfileAssertionReport, VoiceBrowserCallProfileFrameworkEvidence, VoiceBrowserCallProfileFrameworkSummary, VoiceBrowserCallProfileReport, VoiceBrowserCallProfileReportInput, VoiceBrowserCallProfileRoutesOptions, VoiceBrowserCallProfileStatus, VoiceBrowserCallProfileSummary } from './browserCallProfiles';
|
|
24
26
|
export { buildVoiceDemoReadyReport, createVoiceDemoReadyRoutes, renderVoiceDemoReadyHTML } from './demoReadyRoutes';
|
|
25
27
|
export { buildVoiceDeliverySinkReport, createVoiceDeliverySinkDescriptor, createVoiceDeliverySinkPair, createVoiceDeliverySinkRoutes, createVoiceFileDeliverySink, createVoicePostgresDeliverySink, createVoiceS3DeliverySink, createVoiceSQLiteDeliverySink, createVoiceWebhookDeliverySink, renderVoiceDeliverySinkHTML } from './deliverySinkRoutes';
|
|
26
28
|
export { buildVoiceOpsActionHistoryReport, createVoiceOpsActionAuditRoutes, recordVoiceOpsActionAudit, renderVoiceOpsActionHistoryHTML } from './opsActionAuditRoutes';
|