@enyo-energy/energy-app-sdk 0.0.165 → 0.0.166
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.
|
@@ -27,8 +27,38 @@ export interface EnyoNetworkDevice {
|
|
|
27
27
|
/** Access status for the device */
|
|
28
28
|
accessStatus: EnyoNetworkDeviceAccessStatus | undefined;
|
|
29
29
|
detectedAt: EnyoNetworkDeviceDetectedAtEnum[];
|
|
30
|
+
/**
|
|
31
|
+
* Structured DNS-SD service data for mDNS-discovered devices, one entry per
|
|
32
|
+
* advertised service type. Populated only for devices found via mDNS
|
|
33
|
+
* (otherwise `undefined`) and refreshed on re-discovery. A host may advertise
|
|
34
|
+
* several service types, so this is an array. Additive to `ports` — existing
|
|
35
|
+
* fields are unchanged.
|
|
36
|
+
*/
|
|
37
|
+
mdnsServices?: EnyoMdnsService[];
|
|
30
38
|
}
|
|
31
39
|
export type EnyoNetworkDeviceAccessStatus = 'granted' | 'denied' | 'pending';
|
|
40
|
+
/**
|
|
41
|
+
* One advertised DNS-SD service for an mDNS-discovered device, retained verbatim
|
|
42
|
+
* so partner integrations can read service-specific TXT data (e.g. the
|
|
43
|
+
* Bosch/Buderus heat-pump gateway publishes its OAuth `authport` only in TXT,
|
|
44
|
+
* used to build the token URL `https://<host>:<authport>/auth/token`). `txt`
|
|
45
|
+
* values are kept as raw strings — consumers parse what they need.
|
|
46
|
+
*/
|
|
47
|
+
export interface EnyoMdnsService {
|
|
48
|
+
/** DNS-SD service type, e.g. `"_gateway-tt-local-api._tcp.local"`. */
|
|
49
|
+
serviceType: string;
|
|
50
|
+
/** DNS-SD instance name, e.g. `"k40rf-101042019"`. */
|
|
51
|
+
instanceName: string;
|
|
52
|
+
/** SRV target host. Optional — currently omitted by core. */
|
|
53
|
+
target?: string;
|
|
54
|
+
/** SRV port (the API port, e.g. 8443). Optional. */
|
|
55
|
+
port?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Full TXT key/value map (e.g. `authport`, `model`, `brand`, `uuid`,
|
|
58
|
+
* `serial`, `txtvers`). Values are raw strings and are not coerced.
|
|
59
|
+
*/
|
|
60
|
+
txt: Record<string, string>;
|
|
61
|
+
}
|
|
32
62
|
/**
|
|
33
63
|
* Represents an open network port on a device.
|
|
34
64
|
*/
|
package/dist/cjs/version.cjs
CHANGED
|
@@ -9,7 +9,7 @@ exports.getSdkVersion = getSdkVersion;
|
|
|
9
9
|
/**
|
|
10
10
|
* Current version of the enyo Energy App SDK.
|
|
11
11
|
*/
|
|
12
|
-
exports.SDK_VERSION = '0.0.
|
|
12
|
+
exports.SDK_VERSION = '0.0.166';
|
|
13
13
|
/**
|
|
14
14
|
* Gets the current SDK version.
|
|
15
15
|
* @returns The semantic version string of the SDK
|
package/dist/cjs/version.d.cts
CHANGED
|
@@ -27,8 +27,38 @@ export interface EnyoNetworkDevice {
|
|
|
27
27
|
/** Access status for the device */
|
|
28
28
|
accessStatus: EnyoNetworkDeviceAccessStatus | undefined;
|
|
29
29
|
detectedAt: EnyoNetworkDeviceDetectedAtEnum[];
|
|
30
|
+
/**
|
|
31
|
+
* Structured DNS-SD service data for mDNS-discovered devices, one entry per
|
|
32
|
+
* advertised service type. Populated only for devices found via mDNS
|
|
33
|
+
* (otherwise `undefined`) and refreshed on re-discovery. A host may advertise
|
|
34
|
+
* several service types, so this is an array. Additive to `ports` — existing
|
|
35
|
+
* fields are unchanged.
|
|
36
|
+
*/
|
|
37
|
+
mdnsServices?: EnyoMdnsService[];
|
|
30
38
|
}
|
|
31
39
|
export type EnyoNetworkDeviceAccessStatus = 'granted' | 'denied' | 'pending';
|
|
40
|
+
/**
|
|
41
|
+
* One advertised DNS-SD service for an mDNS-discovered device, retained verbatim
|
|
42
|
+
* so partner integrations can read service-specific TXT data (e.g. the
|
|
43
|
+
* Bosch/Buderus heat-pump gateway publishes its OAuth `authport` only in TXT,
|
|
44
|
+
* used to build the token URL `https://<host>:<authport>/auth/token`). `txt`
|
|
45
|
+
* values are kept as raw strings — consumers parse what they need.
|
|
46
|
+
*/
|
|
47
|
+
export interface EnyoMdnsService {
|
|
48
|
+
/** DNS-SD service type, e.g. `"_gateway-tt-local-api._tcp.local"`. */
|
|
49
|
+
serviceType: string;
|
|
50
|
+
/** DNS-SD instance name, e.g. `"k40rf-101042019"`. */
|
|
51
|
+
instanceName: string;
|
|
52
|
+
/** SRV target host. Optional — currently omitted by core. */
|
|
53
|
+
target?: string;
|
|
54
|
+
/** SRV port (the API port, e.g. 8443). Optional. */
|
|
55
|
+
port?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Full TXT key/value map (e.g. `authport`, `model`, `brand`, `uuid`,
|
|
58
|
+
* `serial`, `txtvers`). Values are raw strings and are not coerced.
|
|
59
|
+
*/
|
|
60
|
+
txt: Record<string, string>;
|
|
61
|
+
}
|
|
32
62
|
/**
|
|
33
63
|
* Represents an open network port on a device.
|
|
34
64
|
*/
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED