@telnyx/ai-agent-lib 0.3.1-beta.2 → 0.3.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 CHANGED
@@ -20,6 +20,12 @@ export type TelnyxAIAgentConstructorParams = {
20
20
  * the AI agent via `sendConversationMessage()`.
21
21
  */
22
22
  chatMode?: boolean;
23
+ /**
24
+ * Region for the WebRTC connection. When set, the WebSocket host is
25
+ * modified to route through the specified region (e.g., `"us-east-1"`
26
+ * turns `rtc.telnyx.com` into `us-east-1.rtc.telnyx.com`).
27
+ */
28
+ region?: string;
23
29
  };
24
30
  export declare class TelnyxAIAgent extends EventEmitter<AIAgentEvents> {
25
31
  private telnyxRTC;
package/dist/index.js CHANGED
@@ -3548,7 +3548,8 @@ class Gt extends vt {
3548
3548
  env: e.environment || "production",
3549
3549
  anonymous_login: t,
3550
3550
  debug: e.debug || !1,
3551
- trickleIce: e.trickleIce
3551
+ trickleIce: e.trickleIce,
3552
+ region: e.region
3552
3553
  }), this.telnyxRTC.on(x.Ready, this.onClientReady), this.telnyxRTC.on(x.Error, this.onClientOrSocketError), this.telnyxRTC.on(x.SocketError, this.onClientOrSocketError), this.telnyxRTC.on(x.Notification, this.onNotification), this.transcription = new qi(this.telnyxRTC), this.transcription.addListener("transcript.item", this.onTranscriptItem), Ge.addListener(
3553
3554
  "conversation.agent.state",
3554
3555
  this.onAgentStateChange
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@telnyx/ai-agent-lib",
3
3
  "private": false,
4
- "version": "0.3.1-beta.2",
4
+ "version": "0.3.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",