@formant/data-sdk 1.44.1 → 1.45.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/data-sdk.cjs.js +1 -1
- package/dist/data-sdk.cjs.js.map +1 -1
- package/dist/data-sdk.es.js +3 -0
- package/dist/data-sdk.es.js.map +1 -1
- package/dist/data-sdk.es6.js +3 -0
- package/dist/data-sdk.umd.js +1 -1
- package/dist/types/data-sdk/src/devices/IView.d.ts +29 -0
- package/dist/types/data-sdk/src/devices/PeerDevice.d.ts +2 -0
- package/package.json +1 -1
package/dist/data-sdk.es.js
CHANGED
|
@@ -24480,6 +24480,9 @@ class PeerDevice extends BaseDevice {
|
|
|
24480
24480
|
async getConfiguration() {
|
|
24481
24481
|
return (await (await fetch(`${this.peerUrl}/v1/config`)).json()).configuration.document;
|
|
24482
24482
|
}
|
|
24483
|
+
async getViews() {
|
|
24484
|
+
return (await (await fetch(`${this.peerUrl}/v1/views`)).json()).views;
|
|
24485
|
+
}
|
|
24483
24486
|
async startRealtimeConnection(n) {
|
|
24484
24487
|
if (console.debug(`${(/* @__PURE__ */ new Date()).toISOString()} :: Connection start requested`), this.rtcClient && this.connectionMonitorInterval !== void 0)
|
|
24485
24488
|
throw new Error(
|