@formant/data-sdk 1.80.1 → 1.80.3

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.
@@ -24039,6 +24039,11 @@ class BaseDevice extends EventEmitter {
24039
24039
  return this.rtcClient.getConnectionStatus(this.remoteDevicePeerId);
24040
24040
  throw new Error("Realtime connection hasn't been started");
24041
24041
  }
24042
+ getRealtimePingInfo() {
24043
+ if (this.rtcClient && this.remoteDevicePeerId)
24044
+ return this.rtcClient.getPingInfo(this.remoteDevicePeerId);
24045
+ throw new Error("Realtime connection hasn't been started");
24046
+ }
24042
24047
  getRealtimePing() {
24043
24048
  if (this.rtcClient && this.remoteDevicePeerId)
24044
24049
  return this.rtcClient.getPing(this.remoteDevicePeerId);
@@ -24419,17 +24424,7 @@ class Device extends BaseDevice {
24419
24424
  Authorization: "Bearer " + Authentication.token
24420
24425
  }
24421
24426
  }
24422
- )).json()).items.map((o) => ({
24423
- name: o.name,
24424
- id: o.id,
24425
- command: o.command,
24426
- description: o.description,
24427
- parameterEnabled: o.parameterEnabled,
24428
- parameterValue: o.parameterValue,
24429
- parameterMeta: o.parameterMeta,
24430
- enabled: o.enabled,
24431
- tags: o.tags
24432
- })).filter((o) => t ? !0 : o.enabled);
24427
+ )).json()).items.filter((o) => t ? !0 : o.enabled);
24433
24428
  }
24434
24429
  async sendCommand(t, n, r, o, s) {
24435
24430
  var B;