@absolutejs/voice 0.0.22-beta.403 → 0.0.22-beta.405

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,12 @@
1
+ import { type VoiceCallDebuggerClientOptions } from '../client/callDebugger';
2
+ import type { VoiceCallDebuggerReport } from '../callDebugger';
3
+ export declare class VoiceCallDebuggerService {
4
+ connect(path: string, options?: VoiceCallDebuggerClientOptions): {
5
+ close: () => void;
6
+ error: import("@angular/core").Signal<string | null>;
7
+ isLoading: import("@angular/core").Signal<boolean>;
8
+ refresh: () => Promise<VoiceCallDebuggerReport | undefined>;
9
+ report: import("@angular/core").Signal<VoiceCallDebuggerReport | undefined>;
10
+ updatedAt: import("@angular/core").Signal<number | undefined>;
11
+ };
12
+ }
@@ -0,0 +1,19 @@
1
+ import type { VoiceCallDebuggerReport } from '../callDebugger';
2
+ export type VoiceCallDebuggerClientOptions = {
3
+ fetch?: typeof fetch;
4
+ intervalMs?: number;
5
+ };
6
+ export type VoiceCallDebuggerClientState = {
7
+ error: string | null;
8
+ isLoading: boolean;
9
+ report?: VoiceCallDebuggerReport;
10
+ updatedAt?: number;
11
+ };
12
+ export declare const fetchVoiceCallDebugger: (path: string, options?: Pick<VoiceCallDebuggerClientOptions, "fetch">) => Promise<VoiceCallDebuggerReport>;
13
+ export declare const createVoiceCallDebuggerStore: (path: string, options?: VoiceCallDebuggerClientOptions) => {
14
+ close: () => void;
15
+ getServerSnapshot: () => VoiceCallDebuggerClientState;
16
+ getSnapshot: () => VoiceCallDebuggerClientState;
17
+ refresh: () => Promise<VoiceCallDebuggerReport | undefined>;
18
+ subscribe: (listener: () => void) => () => void;
19
+ };
@@ -0,0 +1,30 @@
1
+ import { type VoiceCallDebuggerClientOptions, type VoiceCallDebuggerClientState } from './callDebugger';
2
+ export type VoiceCallDebuggerLaunchViewModel = {
3
+ description: string;
4
+ error: string | null;
5
+ href: string;
6
+ isLoading: boolean;
7
+ label: string;
8
+ rows: Array<{
9
+ label: string;
10
+ value: string;
11
+ }>;
12
+ status: 'empty' | 'error' | 'loading' | 'ready' | 'warning';
13
+ title: string;
14
+ updatedAt?: number;
15
+ };
16
+ export type VoiceCallDebuggerLaunchOptions = VoiceCallDebuggerClientOptions & {
17
+ description?: string;
18
+ href?: string | ((input: {
19
+ report?: VoiceCallDebuggerClientState['report'];
20
+ }) => string);
21
+ linkLabel?: string;
22
+ title?: string;
23
+ };
24
+ export declare const createVoiceCallDebuggerLaunchViewModel: (path: string, state: VoiceCallDebuggerClientState, options?: VoiceCallDebuggerLaunchOptions) => VoiceCallDebuggerLaunchViewModel;
25
+ export declare const renderVoiceCallDebuggerLaunchHTML: (path: string, state: VoiceCallDebuggerClientState, options?: VoiceCallDebuggerLaunchOptions) => string;
26
+ export declare const mountVoiceCallDebuggerLaunch: (element: Element, path: string, options?: VoiceCallDebuggerLaunchOptions) => {
27
+ close: () => void;
28
+ refresh: () => Promise<import("..").VoiceCallDebuggerReport | undefined>;
29
+ };
30
+ export declare const defineVoiceCallDebuggerLaunchElement: (tagName?: string) => void;
@@ -13,6 +13,10 @@ export { createVoiceOpsStatusStore, fetchVoiceOpsStatus } from './opsStatus';
13
13
  export { createVoicePlatformCoverageStore, fetchVoicePlatformCoverage } from './platformCoverage';
14
14
  export { createVoiceProofTrendsStore, fetchVoiceProofTrends } from './proofTrends';
15
15
  export { createVoiceSessionSnapshotStore, fetchVoiceSessionSnapshot } from './sessionSnapshot';
16
+ export { createVoiceCallDebuggerStore, fetchVoiceCallDebugger } from './callDebugger';
17
+ export { createVoiceCallDebuggerLaunchViewModel, defineVoiceCallDebuggerLaunchElement, mountVoiceCallDebuggerLaunch, renderVoiceCallDebuggerLaunchHTML } from './callDebuggerWidget';
18
+ export type { VoiceCallDebuggerClientOptions, VoiceCallDebuggerClientState } from './callDebugger';
19
+ export type { VoiceCallDebuggerLaunchOptions, VoiceCallDebuggerLaunchViewModel } from './callDebuggerWidget';
16
20
  export { createVoiceSessionSnapshotViewModel, defineVoiceSessionSnapshotElement, mountVoiceSessionSnapshot, renderVoiceSessionSnapshotHTML } from './sessionSnapshotWidget';
17
21
  export type { VoiceSessionSnapshotClientOptions, VoiceSessionSnapshotClientState } from './sessionSnapshot';
18
22
  export type { VoiceSessionSnapshotViewModel, VoiceSessionSnapshotWidgetOptions } from './sessionSnapshotWidget';