@telnyx/ai-agent-lib 0.4.0 → 0.4.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/index.js +4 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3929,7 +3929,7 @@ class Xt extends Ct {
|
|
|
3929
3929
|
* retrying after a "Login Incorrect" error caused by RMQ propagation lag.
|
|
3930
3930
|
*/
|
|
3931
3931
|
clearReconnectToken() {
|
|
3932
|
-
this.telnyxRTC.clearReconnectToken
|
|
3932
|
+
this.telnyxRTC.clearReconnectToken();
|
|
3933
3933
|
}
|
|
3934
3934
|
/**
|
|
3935
3935
|
* Disconnects from the Telnyx WebRTC service and cleans up all event listeners.
|
|
@@ -4039,14 +4039,13 @@ class Xt extends Ct {
|
|
|
4039
4039
|
this.audioStreamMonitor.setRemoteStream(e);
|
|
4040
4040
|
}
|
|
4041
4041
|
onClientReady = () => {
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
const t = {
|
|
4042
|
+
this.dc = this.telnyxRTC.dc ?? null, this.region = this.telnyxRTC.region ?? null, this.callReportId = this.telnyxRTC.callReportId ?? null;
|
|
4043
|
+
const e = {
|
|
4045
4044
|
dc: this.dc,
|
|
4046
4045
|
region: this.region,
|
|
4047
4046
|
callReportId: this.callReportId
|
|
4048
4047
|
};
|
|
4049
|
-
this.emit("agent.connected",
|
|
4048
|
+
this.emit("agent.connected", e);
|
|
4050
4049
|
};
|
|
4051
4050
|
onClientOrSocketError = (e) => {
|
|
4052
4051
|
this.emit("agent.error", e.error);
|