@absolutejs/voice 0.0.22-beta.16 → 0.0.22-beta.160
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/README.md +1053 -5
- package/dist/agent.d.ts +24 -0
- package/dist/agentSquadContract.d.ts +64 -0
- package/dist/angular/index.d.ts +11 -0
- package/dist/angular/index.js +3072 -1106
- package/dist/angular/voice-campaign-dialer-proof.service.d.ts +14 -0
- package/dist/angular/voice-controller.service.d.ts +1 -0
- package/dist/angular/voice-delivery-runtime.component.d.ts +17 -0
- package/dist/angular/voice-delivery-runtime.service.d.ts +16 -0
- package/dist/angular/voice-ops-action-center.service.d.ts +13 -0
- package/dist/angular/voice-ops-status.component.d.ts +15 -0
- package/dist/angular/voice-ops-status.service.d.ts +12 -0
- package/dist/angular/voice-provider-capabilities.service.d.ts +12 -0
- package/dist/angular/voice-routing-status.service.d.ts +11 -0
- package/dist/angular/voice-stream.service.d.ts +3 -0
- package/dist/angular/voice-trace-timeline.service.d.ts +12 -0
- package/dist/angular/voice-turn-latency.service.d.ts +13 -0
- package/dist/angular/voice-turn-quality.service.d.ts +12 -0
- package/dist/angular/voice-workflow-status.service.d.ts +12 -0
- package/dist/assistantHealth.d.ts +81 -0
- package/dist/audit.d.ts +128 -0
- package/dist/auditDeliveryRoutes.d.ts +85 -0
- package/dist/auditExport.d.ts +34 -0
- package/dist/auditRoutes.d.ts +66 -0
- package/dist/auditSinks.d.ts +151 -0
- package/dist/bargeInRoutes.d.ts +56 -0
- package/dist/campaign.d.ts +610 -0
- package/dist/campaignDialers.d.ts +90 -0
- package/dist/client/actions.d.ts +105 -0
- package/dist/client/bargeInMonitor.d.ts +7 -0
- package/dist/client/campaignDialerProof.d.ts +23 -0
- package/dist/client/connection.d.ts +3 -0
- package/dist/client/deliveryRuntime.d.ts +34 -0
- package/dist/client/deliveryRuntimeWidget.d.ts +37 -0
- package/dist/client/duplex.d.ts +1 -1
- package/dist/client/htmxBootstrap.js +747 -15
- package/dist/client/index.d.ts +50 -0
- package/dist/client/index.js +2757 -20
- package/dist/client/liveTurnLatency.d.ts +41 -0
- package/dist/client/opsActionCenter.d.ts +54 -0
- package/dist/client/opsActionCenterWidget.d.ts +29 -0
- package/dist/client/opsActionHistory.d.ts +19 -0
- package/dist/client/opsActionHistoryWidget.d.ts +11 -0
- package/dist/client/opsStatus.d.ts +19 -0
- package/dist/client/opsStatusWidget.d.ts +40 -0
- package/dist/client/providerCapabilities.d.ts +19 -0
- package/dist/client/providerCapabilitiesWidget.d.ts +32 -0
- package/dist/client/providerSimulationControls.d.ts +33 -0
- package/dist/client/providerSimulationControlsWidget.d.ts +20 -0
- package/dist/client/providerStatusWidget.d.ts +32 -0
- package/dist/client/routingStatus.d.ts +19 -0
- package/dist/client/routingStatusWidget.d.ts +28 -0
- package/dist/client/traceTimeline.d.ts +19 -0
- package/dist/client/traceTimelineWidget.d.ts +32 -0
- package/dist/client/turnLatency.d.ts +22 -0
- package/dist/client/turnLatencyWidget.d.ts +33 -0
- package/dist/client/turnQuality.d.ts +19 -0
- package/dist/client/turnQualityWidget.d.ts +32 -0
- package/dist/client/workflowStatus.d.ts +19 -0
- package/dist/dataControl.d.ts +47 -0
- package/dist/deliveryRuntime.d.ts +158 -0
- package/dist/deliverySinkRoutes.d.ts +117 -0
- package/dist/demoReadyRoutes.d.ts +98 -0
- package/dist/diagnosticsRoutes.d.ts +44 -0
- package/dist/evalRoutes.d.ts +213 -0
- package/dist/fileStore.d.ts +11 -2
- package/dist/handoff.d.ts +54 -0
- package/dist/handoffHealth.d.ts +94 -0
- package/dist/index.d.ts +112 -11
- package/dist/index.js +17792 -4316
- package/dist/liveLatency.d.ts +78 -0
- package/dist/modelAdapters.d.ts +23 -2
- package/dist/openaiRealtime.d.ts +27 -0
- package/dist/openaiTTS.d.ts +18 -0
- package/dist/opsActionAuditRoutes.d.ts +99 -0
- package/dist/opsConsoleRoutes.d.ts +80 -0
- package/dist/opsStatus.d.ts +76 -0
- package/dist/opsStatusRoutes.d.ts +33 -0
- package/dist/opsWebhook.d.ts +126 -0
- package/dist/outcomeContract.d.ts +112 -0
- package/dist/phoneAgent.d.ts +62 -0
- package/dist/phoneAgentProductionSmoke.d.ts +115 -0
- package/dist/postgresStore.d.ts +13 -2
- package/dist/productionReadiness.d.ts +335 -0
- package/dist/providerAdapters.d.ts +48 -0
- package/dist/providerCapabilities.d.ts +92 -0
- package/dist/providerHealth.d.ts +1 -0
- package/dist/providerRoutingContract.d.ts +38 -0
- package/dist/qualityRoutes.d.ts +76 -0
- package/dist/queue.d.ts +61 -0
- package/dist/react/VoiceDeliveryRuntime.d.ts +7 -0
- package/dist/react/VoiceOpsActionCenter.d.ts +5 -0
- package/dist/react/VoiceOpsStatus.d.ts +6 -0
- package/dist/react/VoiceProviderCapabilities.d.ts +6 -0
- package/dist/react/VoiceProviderSimulationControls.d.ts +5 -0
- package/dist/react/VoiceProviderStatus.d.ts +6 -0
- package/dist/react/VoiceRoutingStatus.d.ts +6 -0
- package/dist/react/VoiceTraceTimeline.d.ts +6 -0
- package/dist/react/VoiceTurnLatency.d.ts +6 -0
- package/dist/react/VoiceTurnQuality.d.ts +6 -0
- package/dist/react/index.d.ts +21 -0
- package/dist/react/index.js +3396 -33
- package/dist/react/useVoiceCampaignDialerProof.d.ts +10 -0
- package/dist/react/useVoiceController.d.ts +3 -0
- package/dist/react/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/react/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/react/useVoiceOpsStatus.d.ts +8 -0
- package/dist/react/useVoiceProviderCapabilities.d.ts +8 -0
- package/dist/react/useVoiceProviderSimulationControls.d.ts +10 -0
- package/dist/react/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/react/useVoiceStream.d.ts +3 -0
- package/dist/react/useVoiceTraceTimeline.d.ts +8 -0
- package/dist/react/useVoiceTurnLatency.d.ts +9 -0
- package/dist/react/useVoiceTurnQuality.d.ts +8 -0
- package/dist/react/useVoiceWorkflowStatus.d.ts +8 -0
- package/dist/readinessProfiles.d.ts +19 -0
- package/dist/reconnectContract.d.ts +87 -0
- package/dist/resilienceRoutes.d.ts +142 -0
- package/dist/sessionReplay.d.ts +185 -0
- package/dist/simulationSuite.d.ts +120 -0
- package/dist/sqliteStore.d.ts +13 -2
- package/dist/svelte/createVoiceCampaignDialerProof.d.ts +9 -0
- package/dist/svelte/createVoiceDeliveryRuntime.d.ts +11 -0
- package/dist/svelte/createVoiceOpsActionCenter.d.ts +10 -0
- package/dist/svelte/createVoiceOpsStatus.d.ts +9 -0
- package/dist/svelte/createVoiceProviderCapabilities.d.ts +10 -0
- package/dist/svelte/createVoiceProviderSimulationControls.d.ts +11 -0
- package/dist/svelte/createVoiceProviderStatus.d.ts +4 -2
- package/dist/svelte/createVoiceRoutingStatus.d.ts +10 -0
- package/dist/svelte/createVoiceTraceTimeline.d.ts +10 -0
- package/dist/svelte/createVoiceTurnLatency.d.ts +11 -0
- package/dist/svelte/createVoiceTurnQuality.d.ts +10 -0
- package/dist/svelte/createVoiceWorkflowStatus.d.ts +8 -0
- package/dist/svelte/index.d.ts +11 -0
- package/dist/svelte/index.js +2903 -439
- package/dist/telephony/contract.d.ts +61 -0
- package/dist/telephony/matrix.d.ts +97 -0
- package/dist/telephony/plivo.d.ts +254 -0
- package/dist/telephony/telnyx.d.ts +247 -0
- package/dist/telephony/twilio.d.ts +135 -2
- package/dist/telephonyOutcome.d.ts +201 -0
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.js +2973 -156
- package/dist/testing/ioProviderSimulator.d.ts +41 -0
- package/dist/testing/providerSimulator.d.ts +44 -0
- package/dist/toolContract.d.ts +130 -0
- package/dist/toolRuntime.d.ts +50 -0
- package/dist/trace.d.ts +19 -1
- package/dist/traceDeliveryRoutes.d.ts +86 -0
- package/dist/traceTimeline.d.ts +93 -0
- package/dist/turnLatency.d.ts +95 -0
- package/dist/turnQuality.d.ts +94 -0
- package/dist/types.d.ts +170 -4
- package/dist/vue/VoiceDeliveryRuntime.d.ts +30 -0
- package/dist/vue/VoiceOpsActionCenter.d.ts +13 -0
- package/dist/vue/VoiceOpsStatus.d.ts +30 -0
- package/dist/vue/VoiceProviderCapabilities.d.ts +51 -0
- package/dist/vue/VoiceProviderSimulationControls.d.ts +88 -0
- package/dist/vue/VoiceProviderStatus.d.ts +51 -0
- package/dist/vue/VoiceRoutingStatus.d.ts +51 -0
- package/dist/vue/VoiceTurnLatency.d.ts +69 -0
- package/dist/vue/VoiceTurnQuality.d.ts +51 -0
- package/dist/vue/index.d.ts +20 -0
- package/dist/vue/index.js +3327 -53
- package/dist/vue/useVoiceCampaignDialerProof.d.ts +11 -0
- package/dist/vue/useVoiceController.d.ts +2 -1
- package/dist/vue/useVoiceDeliveryRuntime.d.ts +13 -0
- package/dist/vue/useVoiceOpsActionCenter.d.ts +11 -0
- package/dist/vue/useVoiceOpsStatus.d.ts +9 -0
- package/dist/vue/useVoiceProviderCapabilities.d.ts +9 -0
- package/dist/vue/useVoiceProviderSimulationControls.d.ts +24 -0
- package/dist/vue/useVoiceProviderStatus.d.ts +1 -1
- package/dist/vue/useVoiceRoutingStatus.d.ts +8 -0
- package/dist/vue/useVoiceStream.d.ts +4 -1
- package/dist/vue/useVoiceTraceTimeline.d.ts +9 -0
- package/dist/vue/useVoiceTurnLatency.d.ts +10 -0
- package/dist/vue/useVoiceTurnQuality.d.ts +9 -0
- package/dist/vue/useVoiceWorkflowStatus.d.ts +9 -0
- package/dist/workflowContract.d.ts +91 -0
- package/package.json +1 -1
package/dist/agent.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { VoiceOnTurnObjectHandler, VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord, VoiceTurnRecord } from './types';
|
|
2
2
|
import type { VoiceTraceEventStore } from './trace';
|
|
3
|
+
import type { VoiceToolRuntime } from './toolRuntime';
|
|
4
|
+
import { type VoiceAuditEventStore, type VoiceAuditLogger } from './audit';
|
|
3
5
|
export type VoiceAgentMessageRole = 'assistant' | 'system' | 'tool' | 'user';
|
|
4
6
|
export type VoiceAgentMessage = {
|
|
5
7
|
content: string;
|
|
@@ -65,6 +67,14 @@ export type VoiceAgentRunResult<TResult = unknown> = VoiceRouteResult<TResult> &
|
|
|
65
67
|
messages: VoiceAgentMessage[];
|
|
66
68
|
toolResults: VoiceAgentToolResult[];
|
|
67
69
|
};
|
|
70
|
+
export type VoiceAgentSquadHandoffPolicyResult<TResult = unknown> = {
|
|
71
|
+
allow?: boolean;
|
|
72
|
+
escalate?: VoiceRouteResult<TResult>['escalate'];
|
|
73
|
+
metadata?: Record<string, unknown>;
|
|
74
|
+
reason?: string;
|
|
75
|
+
summary?: string;
|
|
76
|
+
targetAgentId?: string;
|
|
77
|
+
};
|
|
68
78
|
export type VoiceAgent<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
69
79
|
id: string;
|
|
70
80
|
onTurn: VoiceOnTurnObjectHandler<TContext, TSession, TResult>;
|
|
@@ -77,6 +87,9 @@ export type VoiceAgent<TContext = unknown, TSession extends VoiceSessionRecord =
|
|
|
77
87
|
}) => Promise<VoiceAgentRunResult<TResult>>;
|
|
78
88
|
};
|
|
79
89
|
export type VoiceAgentOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
90
|
+
audit?: VoiceAuditEventStore | VoiceAuditLogger;
|
|
91
|
+
auditModel?: string;
|
|
92
|
+
auditProvider?: string;
|
|
80
93
|
id: string;
|
|
81
94
|
maxToolRounds?: number;
|
|
82
95
|
model: VoiceAgentModel<TContext, TSession, TResult>;
|
|
@@ -86,11 +99,22 @@ export type VoiceAgentOptions<TContext = unknown, TSession extends VoiceSessionR
|
|
|
86
99
|
turn: VoiceTurnRecord;
|
|
87
100
|
}) => Promise<string | undefined> | string | undefined);
|
|
88
101
|
trace?: VoiceTraceEventStore;
|
|
102
|
+
toolRuntime?: VoiceToolRuntime<TContext, TSession, TResult>;
|
|
89
103
|
tools?: Array<VoiceAgentTool<TContext, TSession, Record<string, unknown>, unknown, TResult>>;
|
|
90
104
|
};
|
|
91
105
|
export type VoiceAgentSquadOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
106
|
+
audit?: VoiceAuditEventStore | VoiceAuditLogger;
|
|
92
107
|
agents: Array<VoiceAgent<TContext, TSession, TResult>>;
|
|
93
108
|
defaultAgentId: string;
|
|
109
|
+
handoffPolicy?: (input: {
|
|
110
|
+
context: TContext;
|
|
111
|
+
fromAgentId: string;
|
|
112
|
+
handoff: NonNullable<VoiceAgentModelOutput<TResult>['handoff']>;
|
|
113
|
+
messages: VoiceAgentMessage[];
|
|
114
|
+
session: TSession;
|
|
115
|
+
targetAgent?: VoiceAgent<TContext, TSession, TResult>;
|
|
116
|
+
turn: VoiceTurnRecord;
|
|
117
|
+
}) => Promise<VoiceAgentSquadHandoffPolicyResult<TResult> | void> | VoiceAgentSquadHandoffPolicyResult<TResult> | void;
|
|
94
118
|
id: string;
|
|
95
119
|
maxHandoffsPerTurn?: number;
|
|
96
120
|
onHandoff?: (input: {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { VoiceAgent, VoiceAgentRunResult } from './agent';
|
|
2
|
+
import type { VoiceTraceEventStore } from './trace';
|
|
3
|
+
import type { VoiceRouteResult, VoiceSessionHandle, VoiceSessionRecord } from './types';
|
|
4
|
+
export type VoiceAgentSquadContractOutcome = 'assistant' | 'complete' | 'escalate' | 'no-answer' | 'transfer' | 'voicemail';
|
|
5
|
+
export type VoiceAgentSquadHandoffExpectation = {
|
|
6
|
+
fromAgentId?: string;
|
|
7
|
+
status?: 'allowed' | 'blocked' | 'max-exceeded' | 'unknown-target';
|
|
8
|
+
targetAgentId?: string;
|
|
9
|
+
};
|
|
10
|
+
export type VoiceAgentSquadTurnExpectation<TResult = unknown> = {
|
|
11
|
+
assistantIncludes?: string[];
|
|
12
|
+
finalAgentId?: string;
|
|
13
|
+
handoffs?: VoiceAgentSquadHandoffExpectation[];
|
|
14
|
+
outcome?: VoiceAgentSquadContractOutcome;
|
|
15
|
+
result?: (input: {
|
|
16
|
+
result: TResult | undefined;
|
|
17
|
+
routeResult: VoiceRouteResult<TResult>;
|
|
18
|
+
}) => VoiceAgentSquadContractIssue[];
|
|
19
|
+
transferTarget?: string;
|
|
20
|
+
};
|
|
21
|
+
export type VoiceAgentSquadContractTurn<TResult = unknown> = {
|
|
22
|
+
expect?: VoiceAgentSquadTurnExpectation<TResult>;
|
|
23
|
+
id?: string;
|
|
24
|
+
text: string;
|
|
25
|
+
};
|
|
26
|
+
export type VoiceAgentSquadContractDefinition<TResult = unknown> = {
|
|
27
|
+
description?: string;
|
|
28
|
+
id: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
scenarioId?: string;
|
|
31
|
+
turns: Array<VoiceAgentSquadContractTurn<TResult>>;
|
|
32
|
+
};
|
|
33
|
+
export type VoiceAgentSquadContractIssue = {
|
|
34
|
+
code: string;
|
|
35
|
+
message: string;
|
|
36
|
+
turnId?: string;
|
|
37
|
+
};
|
|
38
|
+
export type VoiceAgentSquadContractTurnReport<TResult = unknown> = {
|
|
39
|
+
agentId: string;
|
|
40
|
+
handoffs: VoiceAgentSquadHandoffExpectation[];
|
|
41
|
+
issues: VoiceAgentSquadContractIssue[];
|
|
42
|
+
outcome?: VoiceAgentSquadContractOutcome;
|
|
43
|
+
pass: boolean;
|
|
44
|
+
result: VoiceAgentRunResult<TResult>;
|
|
45
|
+
turnId: string;
|
|
46
|
+
};
|
|
47
|
+
export type VoiceAgentSquadContractReport<TResult = unknown> = {
|
|
48
|
+
contractId: string;
|
|
49
|
+
issues: VoiceAgentSquadContractIssue[];
|
|
50
|
+
pass: boolean;
|
|
51
|
+
scenarioId?: string;
|
|
52
|
+
sessionId: string;
|
|
53
|
+
turns: Array<VoiceAgentSquadContractTurnReport<TResult>>;
|
|
54
|
+
};
|
|
55
|
+
export type VoiceAgentSquadContractRunOptions<TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown> = {
|
|
56
|
+
api?: VoiceSessionHandle<TContext, TSession, TResult>;
|
|
57
|
+
context: TContext;
|
|
58
|
+
contract: VoiceAgentSquadContractDefinition<TResult>;
|
|
59
|
+
session?: TSession;
|
|
60
|
+
squad: VoiceAgent<TContext, TSession, TResult>;
|
|
61
|
+
trace?: VoiceTraceEventStore;
|
|
62
|
+
};
|
|
63
|
+
export declare const runVoiceAgentSquadContract: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options: VoiceAgentSquadContractRunOptions<TContext, TSession, TResult>) => Promise<VoiceAgentSquadContractReport<TResult>>;
|
|
64
|
+
export declare const assertVoiceAgentSquadContract: <TContext = unknown, TSession extends VoiceSessionRecord = VoiceSessionRecord, TResult = unknown>(options: VoiceAgentSquadContractRunOptions<TContext, TSession, TResult>) => Promise<VoiceAgentSquadContractReport<TResult>>;
|
package/dist/angular/index.d.ts
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
export { VoiceOpsStatusService } from './voice-ops-status.service';
|
|
2
|
+
export { VoiceOpsActionCenterService } from './voice-ops-action-center.service';
|
|
3
|
+
export { VoiceDeliveryRuntimeService } from './voice-delivery-runtime.service';
|
|
4
|
+
export { VoiceCampaignDialerProofService } from './voice-campaign-dialer-proof.service';
|
|
1
5
|
export { VoiceStreamService } from './voice-stream.service';
|
|
2
6
|
export { VoiceControllerService } from './voice-controller.service';
|
|
7
|
+
export { VoiceProviderCapabilitiesService } from './voice-provider-capabilities.service';
|
|
3
8
|
export { VoiceProviderStatusService } from './voice-provider-status.service';
|
|
9
|
+
export { VoiceRoutingStatusService } from './voice-routing-status.service';
|
|
10
|
+
export { VoiceTraceTimelineService } from './voice-trace-timeline.service';
|
|
11
|
+
export { VoiceTurnLatencyService } from './voice-turn-latency.service';
|
|
12
|
+
export { VoiceTurnQualityService } from './voice-turn-quality.service';
|
|
13
|
+
export { VoiceWorkflowStatusService } from './voice-workflow-status.service';
|
|
14
|
+
export { VoiceDeliveryRuntimeComponent } from './voice-delivery-runtime.component';
|