@absolutejs/voice 0.0.22-beta.241 → 0.0.22-beta.243

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,19 @@
1
+ import type { VoiceProofTrendReport } from '../proofTrends';
2
+ export type VoiceProofTrendsClientOptions = {
3
+ fetch?: typeof fetch;
4
+ intervalMs?: number;
5
+ };
6
+ export type VoiceProofTrendsSnapshot = {
7
+ error: string | null;
8
+ isLoading: boolean;
9
+ report?: VoiceProofTrendReport;
10
+ updatedAt?: number;
11
+ };
12
+ export declare const fetchVoiceProofTrends: (path?: string, options?: Pick<VoiceProofTrendsClientOptions, "fetch">) => Promise<VoiceProofTrendReport>;
13
+ export declare const createVoiceProofTrendsStore: (path?: string, options?: VoiceProofTrendsClientOptions) => {
14
+ close: () => void;
15
+ getServerSnapshot: () => VoiceProofTrendsSnapshot;
16
+ getSnapshot: () => VoiceProofTrendsSnapshot;
17
+ refresh: () => Promise<VoiceProofTrendReport | undefined>;
18
+ subscribe: (listener: () => void) => () => void;
19
+ };
@@ -0,0 +1,37 @@
1
+ import { type VoiceProofTrendReport } from '../proofTrends';
2
+ import { type VoiceProofTrendsClientOptions, type VoiceProofTrendsSnapshot } from './proofTrends';
3
+ export type VoiceProofTrendsMetricView = {
4
+ label: string;
5
+ value: string;
6
+ };
7
+ export type VoiceProofTrendsViewModel = {
8
+ description: string;
9
+ error: string | null;
10
+ isLoading: boolean;
11
+ label: string;
12
+ links: Array<{
13
+ href: string;
14
+ label: string;
15
+ }>;
16
+ metrics: VoiceProofTrendsMetricView[];
17
+ report?: VoiceProofTrendReport;
18
+ status: 'empty' | 'error' | 'loading' | 'ready' | 'warning';
19
+ title: string;
20
+ updatedAt?: number;
21
+ };
22
+ export type VoiceProofTrendsWidgetOptions = VoiceProofTrendsClientOptions & {
23
+ description?: string;
24
+ links?: Array<{
25
+ href: string;
26
+ label: string;
27
+ }>;
28
+ title?: string;
29
+ };
30
+ export declare const createVoiceProofTrendsViewModel: (snapshot: VoiceProofTrendsSnapshot, options?: VoiceProofTrendsWidgetOptions) => VoiceProofTrendsViewModel;
31
+ export declare const renderVoiceProofTrendsHTML: (snapshot: VoiceProofTrendsSnapshot, options?: VoiceProofTrendsWidgetOptions) => string;
32
+ export declare const getVoiceProofTrendsCSS: () => string;
33
+ export declare const mountVoiceProofTrends: (element: Element, path?: string, options?: VoiceProofTrendsWidgetOptions) => {
34
+ close: () => void;
35
+ refresh: () => Promise<VoiceProofTrendReport | undefined>;
36
+ };
37
+ export declare const defineVoiceProofTrendsElement: (tagName?: string) => void;
package/dist/index.d.ts CHANGED
@@ -16,8 +16,8 @@ export { buildVoiceDeliverySinkReport, createVoiceDeliverySinkDescriptor, create
16
16
  export { buildVoiceOpsActionHistoryReport, createVoiceOpsActionAuditRoutes, recordVoiceOpsActionAudit, renderVoiceOpsActionHistoryHTML } from './opsActionAuditRoutes';
17
17
  export { buildVoicePlatformCoverageSummary, createVoicePlatformCoverageRoutes } from './platformCoverage';
18
18
  export type { VoicePlatformCoverageEvidence, VoicePlatformCoverageRoutesOptions, VoicePlatformCoverageStatus, VoicePlatformCoverageSummary, VoicePlatformCoverageSummaryInput, VoicePlatformCoverageSurface } from './platformCoverage';
19
- export { buildEmptyVoiceProofTrendReport, buildVoiceProofTrendReport, DEFAULT_VOICE_PROOF_TRENDS_MAX_AGE_MS, formatVoiceProofTrendAge } from './proofTrends';
20
- export type { VoiceProofTrendCycle, VoiceProofTrendReport, VoiceProofTrendReportInput, VoiceProofTrendStatus, VoiceProofTrendSummary } from './proofTrends';
19
+ export { buildEmptyVoiceProofTrendReport, buildVoiceProofTrendReport, createVoiceProofTrendRoutes, DEFAULT_VOICE_PROOF_TRENDS_MAX_AGE_MS, formatVoiceProofTrendAge, normalizeVoiceProofTrendReport, readVoiceProofTrendReportFile } from './proofTrends';
20
+ export type { VoiceProofTrendCycle, VoiceProofTrendReport, VoiceProofTrendReportInput, VoiceProofTrendRoutesOptions, VoiceProofTrendStatus, VoiceProofTrendSummary } from './proofTrends';
21
21
  export { buildVoiceLiveOpsControlState, createVoiceLiveOpsController, createVoiceLiveOpsRoutes, createVoiceMemoryLiveOpsControlStore, getVoiceLiveOpsControlStatus, VOICE_LIVE_OPS_ACTIONS } from './liveOps';
22
22
  export type { VoiceLiveOpsAction, VoiceLiveOpsActionInput, VoiceLiveOpsActionResult, VoiceLiveOpsControllerOptions, VoiceLiveOpsControlState, VoiceLiveOpsControlStatus, VoiceLiveOpsControlStore, VoiceLiveOpsRoutesOptions } from './liveOps';
23
23
  export { buildVoiceDeliveryRuntimeReport, createVoiceDeliveryRuntime, createVoiceDeliveryRuntimePresetConfig, createVoiceDeliveryRuntimeRoutes, renderVoiceDeliveryRuntimeHTML } from './deliveryRuntime';