@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.
@@ -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
- getConfiguration(): Promise<ConfigurationDocument>;
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.
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  }
26
26
  },
27
- "version": "1.14.0",
27
+ "version": "1.15.0",
28
28
  "scripts": {
29
29
  "preversion": "npm run verify",
30
30
  "postversion": "make",