@telnyx/ai-agent-lib 0.3.1 → 0.3.2-beta.1
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/client.d.ts +21 -1
- package/dist/index.js +2063 -1710
- package/dist/types.d.ts +23 -1
- package/package.json +4 -3
package/dist/client.d.ts
CHANGED
|
@@ -41,6 +41,26 @@ export declare class TelnyxAIAgent extends EventEmitter<AIAgentEvents> {
|
|
|
41
41
|
* Audio is negotiated as recvonly so agent speech can still be received.
|
|
42
42
|
*/
|
|
43
43
|
chatMode: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Datacenter identifier captured from the REGED message (e.g. `"ams3-prod"`).
|
|
46
|
+
* Populated right before `agent.connected` is emitted. `null` until the
|
|
47
|
+
* session registers, and always `null` on SDK versions that pre-date
|
|
48
|
+
* team-telnyx/webrtc#583.
|
|
49
|
+
*/
|
|
50
|
+
dc: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Region identifier captured from the REGED message (e.g. `"eu-west"`).
|
|
53
|
+
* Populated right before `agent.connected` is emitted. `null` until the
|
|
54
|
+
* session registers, and always `null` on SDK versions that pre-date
|
|
55
|
+
* team-telnyx/webrtc#583.
|
|
56
|
+
*/
|
|
57
|
+
region: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* Call report identifier captured from the REGED message. Used by the
|
|
60
|
+
* underlying SDK to post call quality reports; exposed here so integrators
|
|
61
|
+
* can correlate client-side logs with server-side reports.
|
|
62
|
+
*/
|
|
63
|
+
callReportId: string | null;
|
|
44
64
|
constructor(params: TelnyxAIAgentConstructorParams);
|
|
45
65
|
/**
|
|
46
66
|
* Connects to the Telnyx WebRTC service and establishes a session with the AI agent.
|
|
@@ -113,7 +133,7 @@ export declare class TelnyxAIAgent extends EventEmitter<AIAgentEvents> {
|
|
|
113
133
|
*
|
|
114
134
|
* @returns Promise that resolves when the call is hung up, or undefined if there is no active call
|
|
115
135
|
*/
|
|
116
|
-
endConversation(): void | undefined;
|
|
136
|
+
endConversation(): Promise<void> | undefined;
|
|
117
137
|
/**
|
|
118
138
|
* Sets the remote audio stream for monitoring agent speech.
|
|
119
139
|
* Use this when call.remoteStream is not available and you need to provide
|