@formant/data-sdk 1.14.0 → 1.15.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 +2 -2
- package/dist/data-sdk.cjs.js.map +1 -1
- package/dist/data-sdk.es.js +85 -61
- package/dist/data-sdk.es.js.map +1 -1
- package/dist/data-sdk.es6.js +32 -8
- package/dist/data-sdk.umd.js +1 -1
- package/dist/types/data-sdk/src/devices/Device.d.ts +15 -1
- package/package.json +1 -1
|
@@ -28,7 +28,21 @@ export declare class Device extends BaseDevice {
|
|
|
28
28
|
static queryDevicesData: typeof queryDevicesData;
|
|
29
29
|
static disableDevice: typeof disableDevice;
|
|
30
30
|
getLatestTelemetry(): Promise<any>;
|
|
31
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Asynchronously retrieves the configuration document for a device.
|
|
33
|
+
*
|
|
34
|
+
* @param {boolean} getDesiredConfigurationVersion - Whether to retrieve the desired configuration version
|
|
35
|
+
* @returns {Promise<ConfigurationDocument>} A promise that resolves to the configuration document
|
|
36
|
+
* @throws {Error} Throws an error if the device has no configuration or has never been turned on
|
|
37
|
+
*/
|
|
38
|
+
getConfiguration(getDesiredConfigurationVersion?: boolean): Promise<ConfigurationDocument>;
|
|
39
|
+
/**
|
|
40
|
+
* Asynchronously retrieves the device's agent version string
|
|
41
|
+
*
|
|
42
|
+
* @returns {Promise<string | undefined | null>} A promise that resolves to the agent version
|
|
43
|
+
* @throws {Error} Throws an error if the device info cannot be fetched
|
|
44
|
+
*/
|
|
45
|
+
getAgentVersion(): Promise<string | undefined | null>;
|
|
32
46
|
getFileUrl(fileId: string): Promise<string[]>;
|
|
33
47
|
/**
|
|
34
48
|
* Starts a real-time connection with the remote device using WebRTC.
|