@estuary-ai/sdk 0.6.0 → 0.7.0

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.mjs CHANGED
@@ -34091,6 +34091,13 @@ function toSessionTimeoutData(wire) {
34091
34091
  timeoutSeconds: wire.timeout_seconds
34092
34092
  };
34093
34093
  }
34094
+ function toVoiceTimeoutData(wire) {
34095
+ return {
34096
+ reason: wire.reason,
34097
+ idleSeconds: wire.idle_seconds,
34098
+ timeoutSeconds: wire.timeout_seconds
34099
+ };
34100
+ }
34094
34101
  function toLiveKitTokenResponse(wire) {
34095
34102
  return {
34096
34103
  token: wire.token,
@@ -34271,6 +34278,9 @@ var SocketManager = class extends TypedEventEmitter {
34271
34278
  this.serverEndedSession = true;
34272
34279
  this.emit("sessionTimeout", toSessionTimeoutData(data));
34273
34280
  });
34281
+ this.socket.on("voice_timeout", (data) => {
34282
+ this.emit("voiceTimeout", toVoiceTimeoutData(data));
34283
+ });
34274
34284
  this.socket.on("camera_capture", (data) => {
34275
34285
  this.emit("cameraCaptureRequest", toCameraCaptureRequest(data));
34276
34286
  });
@@ -35371,6 +35381,10 @@ var EstuaryClient = class extends TypedEventEmitter {
35371
35381
  void this.releaseVoice();
35372
35382
  this.emit("sessionTimeout", data);
35373
35383
  });
35384
+ this.socketManager.on("voiceTimeout", (data) => {
35385
+ void this.releaseVoice();
35386
+ this.emit("voiceTimeout", data);
35387
+ });
35374
35388
  this.socketManager.on("cameraCaptureRequest", (request) => this.emit("cameraCaptureRequest", request));
35375
35389
  this.socketManager.on("livekitConnected", (room) => this.emit("livekitConnected", room));
35376
35390
  this.socketManager.on("livekitDisconnected", () => this.emit("livekitDisconnected"));