@homebridge/hap-nodejs 2.3.1-beta.1 → 2.3.1-beta.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.
- package/README.md +13 -4
- package/dist/accessories/types.d.ts +0 -1
- package/dist/hap.d.ts +1 -1
- package/dist/hap.js +6 -4
- package/dist/hap.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/internal-types.d.ts +6 -7
- package/dist/internal-types.js +1 -5
- package/dist/internal-types.js.map +1 -1
- package/dist/lib/Accessory.d.ts +53 -25
- package/dist/lib/Accessory.js +289 -171
- package/dist/lib/Accessory.js.map +1 -1
- package/dist/lib/Advertiser.d.ts +37 -18
- package/dist/lib/Advertiser.js +143 -62
- package/dist/lib/Advertiser.js.map +1 -1
- package/dist/lib/Bridge.d.ts +1 -2
- package/dist/lib/Bridge.js +1 -1
- package/dist/lib/Characteristic.d.ts +19 -20
- package/dist/lib/Characteristic.js +187 -153
- package/dist/lib/Characteristic.js.map +1 -1
- package/dist/lib/HAPServer.d.ts +19 -13
- package/dist/lib/HAPServer.js +266 -220
- package/dist/lib/HAPServer.js.map +1 -1
- package/dist/lib/Service.d.ts +11 -11
- package/dist/lib/Service.js +54 -37
- package/dist/lib/Service.js.map +1 -1
- package/dist/lib/camera/RTPProxy.d.ts +5 -5
- package/dist/lib/camera/RTPProxy.js +48 -23
- package/dist/lib/camera/RTPProxy.js.map +1 -1
- package/dist/lib/camera/RTPStreamManagement.d.ts +18 -13
- package/dist/lib/camera/RTPStreamManagement.js +247 -216
- package/dist/lib/camera/RTPStreamManagement.js.map +1 -1
- package/dist/lib/camera/RecordingManagement.d.ts +13 -13
- package/dist/lib/camera/RecordingManagement.js +115 -110
- package/dist/lib/camera/RecordingManagement.js.map +1 -1
- package/dist/lib/camera/index.d.ts +0 -1
- package/dist/lib/controller/AdaptiveLightingController.d.ts +41 -36
- package/dist/lib/controller/AdaptiveLightingController.js +126 -113
- package/dist/lib/controller/AdaptiveLightingController.js.map +1 -1
- package/dist/lib/controller/CameraController.d.ts +17 -17
- package/dist/lib/controller/CameraController.js +30 -26
- package/dist/lib/controller/CameraController.js.map +1 -1
- package/dist/lib/controller/Controller.d.ts +15 -12
- package/dist/lib/controller/Controller.js +0 -1
- package/dist/lib/controller/Controller.js.map +1 -1
- package/dist/lib/controller/DoorbellController.d.ts +6 -6
- package/dist/lib/controller/DoorbellController.js +10 -3
- package/dist/lib/controller/DoorbellController.js.map +1 -1
- package/dist/lib/controller/RemoteController.d.ts +46 -27
- package/dist/lib/controller/RemoteController.js +268 -178
- package/dist/lib/controller/RemoteController.js.map +1 -1
- package/dist/lib/controller/index.d.ts +0 -1
- package/dist/lib/datastream/DataStreamManagement.d.ts +6 -6
- package/dist/lib/datastream/DataStreamManagement.js +30 -26
- package/dist/lib/datastream/DataStreamManagement.js.map +1 -1
- package/dist/lib/datastream/DataStreamParser.d.ts +25 -8
- package/dist/lib/datastream/DataStreamParser.js +124 -105
- package/dist/lib/datastream/DataStreamParser.js.map +1 -1
- package/dist/lib/datastream/DataStreamServer.d.ts +47 -23
- package/dist/lib/datastream/DataStreamServer.js +285 -143
- package/dist/lib/datastream/DataStreamServer.js.map +1 -1
- package/dist/lib/datastream/index.d.ts +0 -1
- package/dist/lib/definitions/CharacteristicDefinitions.d.ts +0 -1
- package/dist/lib/definitions/CharacteristicDefinitions.js +578 -578
- package/dist/lib/definitions/CharacteristicDefinitions.js.map +1 -1
- package/dist/lib/definitions/ServiceDefinitions.d.ts +0 -1
- package/dist/lib/definitions/index.d.ts +0 -1
- package/dist/lib/gen/HomeKit.d.ts +0 -1
- package/dist/lib/model/AccessoryInfo.d.ts +5 -6
- package/dist/lib/model/AccessoryInfo.js +23 -19
- package/dist/lib/model/AccessoryInfo.js.map +1 -1
- package/dist/lib/model/ControllerStorage.d.ts +11 -5
- package/dist/lib/model/ControllerStorage.js +34 -8
- package/dist/lib/model/ControllerStorage.js.map +1 -1
- package/dist/lib/model/HAPFileStorage.d.ts +20 -2
- package/dist/lib/model/HAPFileStorage.js +59 -10
- package/dist/lib/model/HAPFileStorage.js.map +1 -1
- package/dist/lib/model/HAPStorage.d.ts +0 -1
- package/dist/lib/model/HAPStorage.js +6 -3
- package/dist/lib/model/HAPStorage.js.map +1 -1
- package/dist/lib/model/IdentifierCache.d.ts +2 -3
- package/dist/lib/model/IdentifierCache.js +26 -13
- package/dist/lib/model/IdentifierCache.js.map +1 -1
- package/dist/lib/tv/AccessControlManagement.d.ts +6 -7
- package/dist/lib/tv/AccessControlManagement.js +13 -19
- package/dist/lib/tv/AccessControlManagement.js.map +1 -1
- package/dist/lib/util/checkName.d.ts +1 -2
- package/dist/lib/util/checkName.js.map +1 -1
- package/dist/lib/util/clone.d.ts +0 -1
- package/dist/lib/util/clone.js.map +1 -1
- package/dist/lib/util/color-utils.d.ts +1 -2
- package/dist/lib/util/color-utils.js +1 -1
- package/dist/lib/util/errors.d.ts +4 -0
- package/dist/lib/util/errors.js +15 -0
- package/dist/lib/util/errors.js.map +1 -0
- package/dist/lib/util/eventedhttp.d.ts +63 -19
- package/dist/lib/util/eventedhttp.js +170 -48
- package/dist/lib/util/eventedhttp.js.map +1 -1
- package/dist/lib/util/hapCrypto.d.ts +1 -2
- package/dist/lib/util/hapCrypto.js +6 -7
- package/dist/lib/util/hapCrypto.js.map +1 -1
- package/dist/lib/util/hapStatusError.d.ts +0 -1
- package/dist/lib/util/hapStatusError.js +1 -1
- package/dist/lib/util/hapStatusError.js.map +1 -1
- package/dist/lib/util/net-utils.d.ts +1 -2
- package/dist/lib/util/net-utils.js +6 -7
- package/dist/lib/util/net-utils.js.map +1 -1
- package/dist/lib/util/once.d.ts +0 -1
- package/dist/lib/util/promise-utils.d.ts +1 -2
- package/dist/lib/util/promise-utils.js +2 -1
- package/dist/lib/util/promise-utils.js.map +1 -1
- package/dist/lib/util/request-util.d.ts +4 -4
- package/dist/lib/util/request-util.js +29 -28
- package/dist/lib/util/request-util.js.map +1 -1
- package/dist/lib/util/time.d.ts +1 -2
- package/dist/lib/util/time.js.map +1 -1
- package/dist/lib/util/tlv.d.ts +4 -4
- package/dist/lib/util/tlv.js +16 -5
- package/dist/lib/util/tlv.js.map +1 -1
- package/dist/lib/util/uuid.d.ts +5 -2
- package/dist/lib/util/uuid.js +6 -0
- package/dist/lib/util/uuid.js.map +1 -1
- package/dist/types.d.ts +20 -17
- package/dist/types.js +0 -1
- package/dist/types.js.map +1 -1
- package/package.json +8 -14
- package/dist/accessories/AirConditioner_accessory.d.ts +0 -2
- package/dist/accessories/AirConditioner_accessory.d.ts.map +0 -1
- package/dist/accessories/AirConditioner_accessory.js +0 -126
- package/dist/accessories/AirConditioner_accessory.js.map +0 -1
- package/dist/accessories/AppleTVRemote_accessory.d.ts +0 -2
- package/dist/accessories/AppleTVRemote_accessory.d.ts.map +0 -1
- package/dist/accessories/AppleTVRemote_accessory.js +0 -146
- package/dist/accessories/AppleTVRemote_accessory.js.map +0 -1
- package/dist/accessories/Camera_accessory.d.ts +0 -2
- package/dist/accessories/Camera_accessory.d.ts.map +0 -1
- package/dist/accessories/Camera_accessory.js +0 -562
- package/dist/accessories/Camera_accessory.js.map +0 -1
- package/dist/accessories/Fan_accessory.d.ts +0 -2
- package/dist/accessories/Fan_accessory.d.ts.map +0 -1
- package/dist/accessories/Fan_accessory.js +0 -71
- package/dist/accessories/Fan_accessory.js.map +0 -1
- package/dist/accessories/GarageDoorOpener_accessory.d.ts +0 -2
- package/dist/accessories/GarageDoorOpener_accessory.d.ts.map +0 -1
- package/dist/accessories/GarageDoorOpener_accessory.js +0 -76
- package/dist/accessories/GarageDoorOpener_accessory.js.map +0 -1
- package/dist/accessories/Light-AdaptiveLighting_accessory.d.ts +0 -2
- package/dist/accessories/Light-AdaptiveLighting_accessory.d.ts.map +0 -1
- package/dist/accessories/Light-AdaptiveLighting_accessory.js +0 -103
- package/dist/accessories/Light-AdaptiveLighting_accessory.js.map +0 -1
- package/dist/accessories/Light_accessory.d.ts +0 -2
- package/dist/accessories/Light_accessory.d.ts.map +0 -1
- package/dist/accessories/Light_accessory.js +0 -143
- package/dist/accessories/Light_accessory.js.map +0 -1
- package/dist/accessories/Lock_accessory.d.ts +0 -2
- package/dist/accessories/Lock_accessory.d.ts.map +0 -1
- package/dist/accessories/Lock_accessory.js +0 -74
- package/dist/accessories/Lock_accessory.js.map +0 -1
- package/dist/accessories/MotionSensor_accessory.d.ts +0 -2
- package/dist/accessories/MotionSensor_accessory.d.ts.map +0 -1
- package/dist/accessories/MotionSensor_accessory.js +0 -43
- package/dist/accessories/MotionSensor_accessory.js.map +0 -1
- package/dist/accessories/Outlet_accessory.d.ts +0 -2
- package/dist/accessories/Outlet_accessory.d.ts.map +0 -1
- package/dist/accessories/Outlet_accessory.js +0 -77
- package/dist/accessories/Outlet_accessory.js.map +0 -1
- package/dist/accessories/SmartSpeaker_accessory.d.ts +0 -2
- package/dist/accessories/SmartSpeaker_accessory.d.ts.map +0 -1
- package/dist/accessories/SmartSpeaker_accessory.js +0 -42
- package/dist/accessories/SmartSpeaker_accessory.js.map +0 -1
- package/dist/accessories/Sprinkler_accessory.d.ts +0 -2
- package/dist/accessories/Sprinkler_accessory.d.ts.map +0 -1
- package/dist/accessories/Sprinkler_accessory.js +0 -126
- package/dist/accessories/Sprinkler_accessory.js.map +0 -1
- package/dist/accessories/TV_accessory.d.ts +0 -2
- package/dist/accessories/TV_accessory.d.ts.map +0 -1
- package/dist/accessories/TV_accessory.js +0 -99
- package/dist/accessories/TV_accessory.js.map +0 -1
- package/dist/accessories/TemperatureSensor_accessory.d.ts +0 -2
- package/dist/accessories/TemperatureSensor_accessory.d.ts.map +0 -1
- package/dist/accessories/TemperatureSensor_accessory.js +0 -42
- package/dist/accessories/TemperatureSensor_accessory.js.map +0 -1
- package/dist/accessories/Wi-FiRouter_accessory.d.ts +0 -3
- package/dist/accessories/Wi-FiRouter_accessory.d.ts.map +0 -1
- package/dist/accessories/Wi-FiRouter_accessory.js +0 -14
- package/dist/accessories/Wi-FiRouter_accessory.js.map +0 -1
- package/dist/accessories/Wi-FiSatellite_accessory.d.ts +0 -3
- package/dist/accessories/Wi-FiSatellite_accessory.d.ts.map +0 -1
- package/dist/accessories/Wi-FiSatellite_accessory.js +0 -16
- package/dist/accessories/Wi-FiSatellite_accessory.js.map +0 -1
- package/dist/accessories/gstreamer-audioProducer.d.ts +0 -25
- package/dist/accessories/gstreamer-audioProducer.d.ts.map +0 -1
- package/dist/accessories/gstreamer-audioProducer.js +0 -145
- package/dist/accessories/gstreamer-audioProducer.js.map +0 -1
- package/dist/accessories/types.d.ts.map +0 -1
- package/dist/hap.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/internal-types.d.ts.map +0 -1
- package/dist/lib/Accessory.d.ts.map +0 -1
- package/dist/lib/Advertiser.d.ts.map +0 -1
- package/dist/lib/Bridge.d.ts.map +0 -1
- package/dist/lib/Characteristic.d.ts.map +0 -1
- package/dist/lib/HAPServer.d.ts.map +0 -1
- package/dist/lib/Service.d.ts.map +0 -1
- package/dist/lib/camera/RTPProxy.d.ts.map +0 -1
- package/dist/lib/camera/RTPStreamManagement.d.ts.map +0 -1
- package/dist/lib/camera/RecordingManagement.d.ts.map +0 -1
- package/dist/lib/camera/index.d.ts.map +0 -1
- package/dist/lib/controller/AdaptiveLightingController.d.ts.map +0 -1
- package/dist/lib/controller/CameraController.d.ts.map +0 -1
- package/dist/lib/controller/Controller.d.ts.map +0 -1
- package/dist/lib/controller/DoorbellController.d.ts.map +0 -1
- package/dist/lib/controller/RemoteController.d.ts.map +0 -1
- package/dist/lib/controller/index.d.ts.map +0 -1
- package/dist/lib/datastream/DataStreamManagement.d.ts.map +0 -1
- package/dist/lib/datastream/DataStreamParser.d.ts.map +0 -1
- package/dist/lib/datastream/DataStreamServer.d.ts.map +0 -1
- package/dist/lib/datastream/index.d.ts.map +0 -1
- package/dist/lib/definitions/CharacteristicDefinitions.d.ts.map +0 -1
- package/dist/lib/definitions/ServiceDefinitions.d.ts.map +0 -1
- package/dist/lib/definitions/generate-definitions.d.ts +0 -34
- package/dist/lib/definitions/generate-definitions.d.ts.map +0 -1
- package/dist/lib/definitions/generate-definitions.js +0 -624
- package/dist/lib/definitions/generate-definitions.js.map +0 -1
- package/dist/lib/definitions/generator-configuration.d.ts +0 -22
- package/dist/lib/definitions/generator-configuration.d.ts.map +0 -1
- package/dist/lib/definitions/generator-configuration.js +0 -674
- package/dist/lib/definitions/generator-configuration.js.map +0 -1
- package/dist/lib/definitions/index.d.ts.map +0 -1
- package/dist/lib/gen/HomeKit.d.ts.map +0 -1
- package/dist/lib/model/AccessoryInfo.d.ts.map +0 -1
- package/dist/lib/model/ControllerStorage.d.ts.map +0 -1
- package/dist/lib/model/HAPFileStorage.d.ts.map +0 -1
- package/dist/lib/model/HAPStorage.d.ts.map +0 -1
- package/dist/lib/model/IdentifierCache.d.ts.map +0 -1
- package/dist/lib/tv/AccessControlManagement.d.ts.map +0 -1
- package/dist/lib/util/checkName.d.ts.map +0 -1
- package/dist/lib/util/clone.d.ts.map +0 -1
- package/dist/lib/util/color-utils.d.ts.map +0 -1
- package/dist/lib/util/eventedhttp.d.ts.map +0 -1
- package/dist/lib/util/hapCrypto.d.ts.map +0 -1
- package/dist/lib/util/hapStatusError.d.ts.map +0 -1
- package/dist/lib/util/net-utils.d.ts.map +0 -1
- package/dist/lib/util/once.d.ts.map +0 -1
- package/dist/lib/util/promise-utils.d.ts.map +0 -1
- package/dist/lib/util/request-util.d.ts.map +0 -1
- package/dist/lib/util/time.d.ts.map +0 -1
- package/dist/lib/util/tlv.d.ts.map +0 -1
- package/dist/lib/util/uuid.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
HAP-NodeJS is an implementation of the HomeKit Accessory Server as specified in the HomeKit Accessory Protocol (HAP),
|
|
18
18
|
which is defined by Apple as part of the HomeKit Framework.
|
|
19
19
|
|
|
20
|
-
HAP-NodeJS is intended to be used as a library to easily create your own HomeKit Accessory on a Raspberry Pi
|
|
21
|
-
|
|
20
|
+
HAP-NodeJS is intended to be used as a library to easily create your own HomeKit Accessory on a Raspberry Pi
|
|
21
|
+
or any other platform that can run Node.js :)
|
|
22
22
|
If you are searching for a pluggable HomeKit bridge with over a thousand community driven plugins to bring HomeKit
|
|
23
23
|
support to devices which do not support HomeKit out of the box, you may want to look at the
|
|
24
24
|
[homebridge][project-homebridge] project (which also uses HAP-NodeJS internally).
|
|
@@ -26,6 +26,17 @@ support to devices which do not support HomeKit out of the box, you may want to
|
|
|
26
26
|
The implementation tries to follow the HAP specification as close as it can, but may differ in some cases.
|
|
27
27
|
HAP-NodeJS is not an Apple certified HAP implementation, as this is only available to members of the MFi program.
|
|
28
28
|
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npm install @homebridge/hap-nodejs
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
HAP-NodeJS needs Node.js `^22.12.0 || ^24 || ^26`.
|
|
36
|
+
|
|
37
|
+
The package is an ES module. Importing it works as usual, including `import hap from '@homebridge/hap-nodejs'`.
|
|
38
|
+
CommonJS code can still `require('@homebridge/hap-nodejs')` on the Node.js versions above.
|
|
39
|
+
|
|
29
40
|
## Getting started
|
|
30
41
|
|
|
31
42
|
You may start by having a look at our [Wiki][wiki], especially have a look at the
|
|
@@ -58,8 +69,6 @@ Special thanks to [Alex Skalozub][link-alex-skalozub], who reverse-engineered th
|
|
|
58
69
|
~~You can find his research [here][link-homekit-research].~~
|
|
59
70
|
(Sadly, on Nov 4 2014, Apple sent the [DMCA][link-apple-dmca] request to GitHub to remove the research.)
|
|
60
71
|
|
|
61
|
-
[There](https://www.instagram.com/p/t4cPlcDksQ/) is a video demo running this project on Intel Edison.
|
|
62
|
-
|
|
63
72
|
If you are interested in HAP over BTLE, you might want to check [this][link-hap-over-btle].
|
|
64
73
|
|
|
65
74
|
<!-- links -->
|
|
@@ -75,4 +75,3 @@ export declare const WINDOW_COVERING_CURRENT_POSITION_CTYPE = "0000006D-0000-100
|
|
|
75
75
|
export declare const WINDOW_COVERING_OPERATION_STATE_CTYPE = "00000072-0000-1000-8000-0026BB765291";
|
|
76
76
|
export declare const CURRENTHEATINGCOOLING_CTYPE = "0000000F-0000-1000-8000-0026BB765291";
|
|
77
77
|
export declare const TARGETHEATINGCOOLING_CTYPE = "00000033-0000-1000-8000-0026BB765291";
|
|
78
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/hap.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import './lib/definitions/index.js';
|
|
|
6
6
|
* @group Utils
|
|
7
7
|
*/
|
|
8
8
|
export * as LegacyTypes from './accessories/types.js';
|
|
9
|
+
export { PairingStates } from './internal-types.js';
|
|
9
10
|
export * from './lib/Accessory.js';
|
|
10
11
|
export * from './lib/Bridge.js';
|
|
11
12
|
export * from './lib/camera/index.js';
|
|
@@ -47,4 +48,3 @@ export declare function HAPLibraryVersion(): string;
|
|
|
47
48
|
export declare namespace _definitions {
|
|
48
49
|
export { Characteristics, Services, };
|
|
49
50
|
}
|
|
50
|
-
//# sourceMappingURL=hap.d.ts.map
|
package/dist/hap.js
CHANGED
|
@@ -6,6 +6,7 @@ import './lib/definitions/index.js';
|
|
|
6
6
|
* @group Utils
|
|
7
7
|
*/
|
|
8
8
|
export * as LegacyTypes from './accessories/types.js';
|
|
9
|
+
export { PairingStates } from './internal-types.js';
|
|
9
10
|
export * from './lib/Accessory.js';
|
|
10
11
|
export * from './lib/Bridge.js';
|
|
11
12
|
export * from './lib/camera/index.js';
|
|
@@ -30,7 +31,8 @@ export * from './lib/util/tlv.js';
|
|
|
30
31
|
*/
|
|
31
32
|
export * as uuid from './lib/util/uuid.js';
|
|
32
33
|
export * from './types.js';
|
|
33
|
-
const debug = createDebug('HAP-NodeJS:
|
|
34
|
+
const debug = createDebug('HAP-NodeJS:Init');
|
|
35
|
+
let libraryVersion;
|
|
34
36
|
/**
|
|
35
37
|
* This method can be used to retrieve the current running library version of the HAP-NodeJS framework.
|
|
36
38
|
* @returns The SemVer version string.
|
|
@@ -38,9 +40,9 @@ const debug = createDebug('HAP-NodeJS:Advertiser');
|
|
|
38
40
|
* @group Utils
|
|
39
41
|
*/
|
|
40
42
|
export function HAPLibraryVersion() {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return
|
|
43
|
+
// the version cannot change while the process runs, so the file is read only once
|
|
44
|
+
libraryVersion ??= JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf-8')).version;
|
|
45
|
+
return libraryVersion;
|
|
44
46
|
}
|
|
45
47
|
function printInit() {
|
|
46
48
|
debug('Initializing HAP-NodeJS v%s ...', HAPLibraryVersion());
|
package/dist/hap.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hap.js","sourceRoot":"","sources":["../src/hap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,WAAW,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"hap.js","sourceRoot":"","sources":["../src/hap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,WAAW,MAAM,OAAO,CAAA;AAM/B,OAAO,gCAAgC,CAAA,CAAC,kEAAkE;AAC1G,OAAO,4BAA4B,CAAA;AAEnC;;GAEG;AACH,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAA;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,oBAAoB,CAAA;AAClC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qCAAqC,CAAA;AAEnD,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AAEjC;;GAEG;AACH,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAA;AAC1C,cAAc,YAAY,CAAA;AAE1B,MAAM,KAAK,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAA;AAE5C,IAAI,cAAkC,CAAA;AAEtC;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB;IAC/B,kFAAkF;IAClF,cAAc,KAAK,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,OAAiB,CAAA;IACnH,OAAO,cAAc,CAAA;AACvB,CAAC;AAED,SAAS,SAAS;IAChB,KAAK,CAAC,iCAAiC,EAAE,iBAAiB,EAAE,CAAC,CAAA;AAC/D,CAAC;AACD,SAAS,EAAE,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import * as hapNodeJs from './hap.js';
|
|
2
2
|
export * from './hap.js';
|
|
3
|
+
/**
|
|
4
|
+
* The module as a whole, the same as the named exports. It is left out of the documentation, which would otherwise list everything twice.
|
|
5
|
+
* @hidden
|
|
6
|
+
*/
|
|
3
7
|
export default hapNodeJs;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -2,5 +2,9 @@ import * as hapNodeJs from './hap.js';
|
|
|
2
2
|
export * from './hap.js';
|
|
3
3
|
// Until 2.3.0 this package was CommonJS, so `import hap from '@homebridge/hap-nodejs'` received the whole module
|
|
4
4
|
// (homebridge itself imports it that way). Keep that working: the default export is the module as a whole.
|
|
5
|
+
/**
|
|
6
|
+
* The module as a whole, the same as the named exports. It is left out of the documentation, which would otherwise list everything twice.
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
5
9
|
export default hapNodeJs;
|
|
6
10
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,UAAU,CAAA;AAErC,cAAc,UAAU,CAAA;AAExB,iHAAiH;AACjH,2GAA2G;AAC3G,eAAe,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,UAAU,CAAA;AAErC,cAAc,UAAU,CAAA;AAExB,iHAAiH;AACjH,2GAA2G;AAC3G;;;GAGG;AACH,eAAe,SAAS,CAAA"}
|
package/dist/internal-types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CharacteristicValue, Nullable } from './types.js';
|
|
1
|
+
import type { CharacteristicValue, Nullable } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* @group HAP Accessory Server
|
|
4
4
|
*/
|
|
@@ -20,7 +20,7 @@ export declare function consideredTrue(input: string | null): boolean;
|
|
|
20
20
|
/**
|
|
21
21
|
* @group HAP Accessory Server
|
|
22
22
|
*/
|
|
23
|
-
export declare
|
|
23
|
+
export declare enum TLVValues {
|
|
24
24
|
REQUEST_TYPE = 0,
|
|
25
25
|
METHOD = 0,// (match the terminology of the spec sheet but keep backwards compatibility with entry above)
|
|
26
26
|
USERNAME = 1,
|
|
@@ -44,7 +44,7 @@ export declare const enum TLVValues {
|
|
|
44
44
|
/**
|
|
45
45
|
* @group HAP Accessory Server
|
|
46
46
|
*/
|
|
47
|
-
export declare
|
|
47
|
+
export declare enum PairMethods {
|
|
48
48
|
PAIR_SETUP = 0,
|
|
49
49
|
PAIR_SETUP_WITH_AUTH = 1,
|
|
50
50
|
PAIR_VERIFY = 2,
|
|
@@ -53,11 +53,11 @@ export declare const enum PairMethods {
|
|
|
53
53
|
LIST_PAIRINGS = 5
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* Pairing states (pair-setup or pair-verify). Encoded in
|
|
56
|
+
* Pairing states (pair-setup or pair-verify). Encoded in the TLV value `SEQUENCE_NUM` (0x06).
|
|
57
57
|
*
|
|
58
58
|
* @group HAP Accessory Server
|
|
59
59
|
*/
|
|
60
|
-
export declare
|
|
60
|
+
export declare enum PairingStates {
|
|
61
61
|
M1 = 1,
|
|
62
62
|
M2 = 2,
|
|
63
63
|
M3 = 3,
|
|
@@ -68,9 +68,8 @@ export declare const enum PairingStates {
|
|
|
68
68
|
/**
|
|
69
69
|
* @group HAP Accessory Server
|
|
70
70
|
*/
|
|
71
|
-
export declare
|
|
71
|
+
export declare enum HAPMimeTypes {
|
|
72
72
|
PAIRING_TLV8 = "application/pairing+tlv8",
|
|
73
73
|
HAP_JSON = "application/hap+json",
|
|
74
74
|
IMAGE_JPEG = "image/jpeg"
|
|
75
75
|
}
|
|
76
|
-
//# sourceMappingURL=internal-types.d.ts.map
|
package/dist/internal-types.js
CHANGED
|
@@ -10,7 +10,6 @@ export function consideredTrue(input) {
|
|
|
10
10
|
/**
|
|
11
11
|
* @group HAP Accessory Server
|
|
12
12
|
*/
|
|
13
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
14
13
|
export var TLVValues;
|
|
15
14
|
(function (TLVValues) {
|
|
16
15
|
// noinspection JSUnusedGlobalSymbols
|
|
@@ -41,7 +40,6 @@ export var TLVValues;
|
|
|
41
40
|
/**
|
|
42
41
|
* @group HAP Accessory Server
|
|
43
42
|
*/
|
|
44
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
45
43
|
export var PairMethods;
|
|
46
44
|
(function (PairMethods) {
|
|
47
45
|
// noinspection JSUnusedGlobalSymbols
|
|
@@ -53,11 +51,10 @@ export var PairMethods;
|
|
|
53
51
|
PairMethods[PairMethods["LIST_PAIRINGS"] = 5] = "LIST_PAIRINGS";
|
|
54
52
|
})(PairMethods || (PairMethods = {}));
|
|
55
53
|
/**
|
|
56
|
-
* Pairing states (pair-setup or pair-verify). Encoded in
|
|
54
|
+
* Pairing states (pair-setup or pair-verify). Encoded in the TLV value `SEQUENCE_NUM` (0x06).
|
|
57
55
|
*
|
|
58
56
|
* @group HAP Accessory Server
|
|
59
57
|
*/
|
|
60
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
61
58
|
export var PairingStates;
|
|
62
59
|
(function (PairingStates) {
|
|
63
60
|
PairingStates[PairingStates["M1"] = 1] = "M1";
|
|
@@ -70,7 +67,6 @@ export var PairingStates;
|
|
|
70
67
|
/**
|
|
71
68
|
* @group HAP Accessory Server
|
|
72
69
|
*/
|
|
73
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
74
70
|
export var HAPMimeTypes;
|
|
75
71
|
(function (HAPMimeTypes) {
|
|
76
72
|
HAPMimeTypes["PAIRING_TLV8"] = "application/pairing+tlv8";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-types.js","sourceRoot":"","sources":["../src/internal-types.ts"],"names":[],"mappings":"AAkBA;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,KAAoB;IACjD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,KAAK,CAAA;IACd,CAAC;IAED,OAAO,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,GAAG,CAAA;AAC1C,CAAC;AAED;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"internal-types.js","sourceRoot":"","sources":["../src/internal-types.ts"],"names":[],"mappings":"AAkBA;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,KAAoB;IACjD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,KAAK,CAAA;IACd,CAAC;IAED,OAAO,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,GAAG,CAAA;AAC1C,CAAC;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,SAyBX;AAzBD,WAAY,SAAS;IACnB,qCAAqC;IACrC,yDAAmB,CAAA;IACnB,uDAAuD;IACvD,6CAAa,CAAA;IACb,iDAAe,CAAA;IACf,uDAAuD;IACvD,qDAAiB,CAAA;IACjB,yCAAW,CAAA;IACX,qDAAiB,CAAA;IACjB,6DAAqB,CAAA;IACrB,6DAAqB,CAAA;IACrB,yDAAmB,CAAA;IACnB,uDAAuD;IACvD,2CAAY,CAAA;IACZ,qDAAiB,CAAA;IACjB,uDAAkB,CAAA;IAClB,uDAAkB,CAAA;IAClB,4CAAY,CAAA;IACZ,uDAAuD;IACvD,oDAAgB,CAAA;IAChB,wDAAkB,CAAA;IAClB,4DAAoB,CAAA;IACpB,4DAAoB,CAAA;IACpB,qDAAiB,CAAA;AACnB,CAAC,EAzBW,SAAS,KAAT,SAAS,QAyBpB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,qCAAqC;IACrC,yDAAiB,CAAA;IACjB,6EAA2B,CAAA;IAC3B,2DAAkB,CAAA;IAClB,2DAAkB,CAAA;IAClB,iEAAqB,CAAA;IACrB,+DAAoB,CAAA;AACtB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB;AAED;;;;GAIG;AACH,MAAM,CAAN,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,6CAAS,CAAA;IACT,6CAAS,CAAA;IACT,6CAAS,CAAA;IACT,6CAAS,CAAA;IACT,6CAAS,CAAA;IACT,6CAAS,CAAA;AACX,CAAC,EAPW,aAAa,KAAb,aAAa,QAOxB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,yDAAyC,CAAA;IACzC,iDAAiC,CAAA;IACjC,yCAAyB,CAAA;AAC3B,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
|
package/dist/lib/Accessory.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
import type { ConstructorArgs, HAPPincode, InterfaceName, IPAddress, MacAddress, Nullable, VoidCallback, WithUUID } from '../types.js';
|
|
2
|
+
import type { Advertiser } from './Advertiser.js';
|
|
3
|
+
import type { Controller, ControllerConstructor, ControllerIdentifier, ControllerServiceMap } from './controller/Controller.js';
|
|
4
|
+
import type { SerializedService, ServiceCharacteristicChange, ServiceId } from './Service.js';
|
|
1
5
|
import { EventEmitter } from 'node:events';
|
|
2
|
-
import { ConstructorArgs, HAPPincode, InterfaceName, IPAddress, MacAddress, Nullable, VoidCallback, WithUUID } from '../types.js';
|
|
3
|
-
import { Advertiser } from './Advertiser.js';
|
|
4
6
|
import { Characteristic } from './Characteristic.js';
|
|
5
|
-
import { Controller, ControllerConstructor, ControllerIdentifier, ControllerServiceMap } from './controller/index.js';
|
|
6
7
|
import { HAPServer } from './HAPServer.js';
|
|
7
8
|
import { AccessoryInfo } from './model/AccessoryInfo.js';
|
|
8
9
|
import { ControllerStorage } from './model/ControllerStorage.js';
|
|
9
10
|
import { IdentifierCache } from './model/IdentifierCache.js';
|
|
10
|
-
import {
|
|
11
|
+
import { Service } from './Service.js';
|
|
11
12
|
/**
|
|
12
13
|
* Known category values. Category is a hint to iOS clients about what "type" of Accessory this represents, for UI only.
|
|
13
14
|
*
|
|
14
15
|
* @group Accessory
|
|
15
16
|
*/
|
|
16
|
-
export declare
|
|
17
|
+
export declare enum Categories {
|
|
17
18
|
OTHER = 1,
|
|
18
19
|
BRIDGE = 2,
|
|
19
20
|
FAN = 3,
|
|
@@ -86,7 +87,7 @@ export interface ControllerContext {
|
|
|
86
87
|
/**
|
|
87
88
|
* @group Accessory
|
|
88
89
|
*/
|
|
89
|
-
export declare
|
|
90
|
+
export declare enum CharacteristicWarningType {
|
|
90
91
|
SLOW_WRITE = "slow-write",
|
|
91
92
|
TIMEOUT_WRITE = "timeout-write",
|
|
92
93
|
SLOW_READ = "slow-read",
|
|
@@ -113,7 +114,7 @@ export interface PublishInfo {
|
|
|
113
114
|
pincode: HAPPincode;
|
|
114
115
|
/**
|
|
115
116
|
* Specify the category for the HomeKit accessory.
|
|
116
|
-
* The category is used only in the mdns advertisement and specifies the
|
|
117
|
+
* The category is used only in the mdns advertisement and specifies the device's type
|
|
117
118
|
* for the HomeKit controller.
|
|
118
119
|
* Currently, this only affects the icon shown in the pairing screen.
|
|
119
120
|
* For the Television and Smart Speaker service it also affects the icon shown in
|
|
@@ -130,7 +131,7 @@ export interface PublishInfo {
|
|
|
130
131
|
* Depending on the mixture of supplied addresses/names hap-nodejs will bind differently.
|
|
131
132
|
*
|
|
132
133
|
* It is advised to not just bind to a specific address, but specifying the interface name
|
|
133
|
-
* in
|
|
134
|
+
* in order to bind on all address records (and ip version) available.
|
|
134
135
|
*
|
|
135
136
|
* HAP-NodeJS (or the underlying ciao library) will not report about misspelled interface names,
|
|
136
137
|
* as it could be that the interface is currently just down and will come up later.
|
|
@@ -192,7 +193,7 @@ export interface PublishInfo {
|
|
|
192
193
|
/**
|
|
193
194
|
* @group Accessory
|
|
194
195
|
*/
|
|
195
|
-
export declare
|
|
196
|
+
export declare enum MDNSAdvertiser {
|
|
196
197
|
/**
|
|
197
198
|
* Use the `@homebridge/ciao` module as advertiser.
|
|
198
199
|
*/
|
|
@@ -209,8 +210,8 @@ export declare const enum MDNSAdvertiser {
|
|
|
209
210
|
* Use systemd-resolved/D-Bus as advertiser.
|
|
210
211
|
*
|
|
211
212
|
* Note: The systemd-resolved D-Bus interface doesn't provide means to detect restarts of the service.
|
|
212
|
-
* Therefore, we can't detect if our advertisement might be lost due to a restart of the systemd-resolved daemon
|
|
213
|
-
*
|
|
213
|
+
* Therefore, we can't detect if our advertisement might be lost due to a restart of the systemd-resolved daemon.
|
|
214
|
+
* Consequently, treat this feature as an experimental feature.
|
|
214
215
|
*/
|
|
215
216
|
RESOLVED = "resolved"
|
|
216
217
|
}
|
|
@@ -229,7 +230,7 @@ export interface ServiceConfigurationChange {
|
|
|
229
230
|
/**
|
|
230
231
|
* @group Accessory
|
|
231
232
|
*/
|
|
232
|
-
export declare
|
|
233
|
+
export declare enum AccessoryEventTypes {
|
|
233
234
|
/**
|
|
234
235
|
* Emitted when an iOS device wishes for this Accessory to identify itself. If `paired` is false, then
|
|
235
236
|
* this device is currently browsing for Accessories in the system-provided "Add Accessory" screen. If
|
|
@@ -340,6 +341,19 @@ export declare class Accessory extends EventEmitter {
|
|
|
340
341
|
*/
|
|
341
342
|
_setupURI?: string;
|
|
342
343
|
private configurationChangeDebounceTimeout?;
|
|
344
|
+
/**
|
|
345
|
+
* Counts the calls of {@link unpublish}, so a {@link publish} which waited for an advertiser check can see that it was cancelled meanwhile.
|
|
346
|
+
*/
|
|
347
|
+
private unpublishCount;
|
|
348
|
+
/**
|
|
349
|
+
* The listeners this accessory, as a bridge, registered on each of its bridged accessories.
|
|
350
|
+
*/
|
|
351
|
+
private readonly bridgedAccessoryListeners;
|
|
352
|
+
/**
|
|
353
|
+
* The characteristics of services removed since the last configuration update, by `<aid>.<iid>`. Kept on the published accessory,
|
|
354
|
+
* for its bridged accessories as well, until {@link dropStaleEventRegistrations} has looked at them.
|
|
355
|
+
*/
|
|
356
|
+
private readonly removedCharacteristics;
|
|
343
357
|
/**
|
|
344
358
|
* This property captures the time when we last served a /accessories request.
|
|
345
359
|
* For multiple bursts of /accessories request we don't want to always contact GET handlers
|
|
@@ -396,6 +410,15 @@ export declare class Accessory extends EventEmitter {
|
|
|
396
410
|
private getCharacteristicByIID;
|
|
397
411
|
protected getAccessoryByAID(aid: number): Accessory | undefined;
|
|
398
412
|
protected findCharacteristic(aid: number, iid: number): Characteristic | undefined;
|
|
413
|
+
/**
|
|
414
|
+
* The characteristic a request of a controller may reach. A bridged accessory which is excluded from the accessory database for
|
|
415
|
+
* its permissions (see {@link servedBridgedAccessories}) has no characteristic for a controller: HomeKit was told it is gone,
|
|
416
|
+
* so a read, a write or a subscription to it is answered like one for an id which does not exist.
|
|
417
|
+
*
|
|
418
|
+
* Only for the requests of a controller. {@link findCharacteristic} still finds the characteristic, which is needed to end a
|
|
419
|
+
* subscription made before the accessory was excluded once the connection closes.
|
|
420
|
+
*/
|
|
421
|
+
private findServedCharacteristic;
|
|
399
422
|
/**
|
|
400
423
|
* This method is used to set up a new Controller for this accessory. See {@link Controller} for a more detailed
|
|
401
424
|
* explanation what a Controller is and what it is capable of.
|
|
@@ -414,7 +437,8 @@ export declare class Accessory extends EventEmitter {
|
|
|
414
437
|
/**
|
|
415
438
|
* This method will remove a given Controller from this accessory.
|
|
416
439
|
* The controller object will be restored to its initial state.
|
|
417
|
-
*
|
|
440
|
+
* Event handlers which the plugin added to an adaptive lighting or remote controller stay on that object.
|
|
441
|
+
* The camera controller (and the doorbell controller) removes every event handler set up on it.
|
|
418
442
|
*
|
|
419
443
|
* @param controller - The controller which should be removed from the accessory.
|
|
420
444
|
*/
|
|
@@ -450,7 +474,7 @@ export declare class Accessory extends EventEmitter {
|
|
|
450
474
|
private servedBridgedAccessories;
|
|
451
475
|
/**
|
|
452
476
|
* This method is called right before the accessory is published. It should be used to check for common
|
|
453
|
-
* mistakes in Accessory
|
|
477
|
+
* mistakes in the Accessory structure, which may lead to HomeKit rejecting the accessory when pairing.
|
|
454
478
|
* If it is called on a bridge it will call this method for all bridged accessories.
|
|
455
479
|
*/
|
|
456
480
|
private validateAccessory;
|
|
@@ -463,7 +487,7 @@ export declare class Accessory extends EventEmitter {
|
|
|
463
487
|
disableUnusedIDPurge(): void;
|
|
464
488
|
enableUnusedIDPurge(): void;
|
|
465
489
|
/**
|
|
466
|
-
* Manually purge the unused ids if you like, comes handy
|
|
490
|
+
* Manually purge the unused ids if you like, comes in handy
|
|
467
491
|
* when you have disabled auto purge, so you can do it manually
|
|
468
492
|
*/
|
|
469
493
|
purgeUnusedIDs(): void;
|
|
@@ -481,26 +505,31 @@ export declare class Accessory extends EventEmitter {
|
|
|
481
505
|
* Must be globally unique from all Accessories on your local network.
|
|
482
506
|
* - `info.pincode` - the 8-digit pin code for clients to use when pairing this Accessory.
|
|
483
507
|
* Must be formatted as a string like `031-45-154`.
|
|
484
|
-
* - `info.category` - one of the values of the
|
|
508
|
+
* - `info.category` - one of the values of the {@link Categories} enum, like `Categories.SWITCH`.
|
|
485
509
|
* This is a hint to iOS clients about what "type" of Accessory this represents, so
|
|
486
510
|
* that for instance an appropriate icon can be drawn for the user while adding a
|
|
487
511
|
* new Accessory.
|
|
488
|
-
* @param
|
|
489
|
-
*
|
|
490
|
-
* pincode: string;
|
|
491
|
-
* category: Accessory.Categories;
|
|
492
|
-
* }} info - Required info for publishing.
|
|
493
|
-
* @param {boolean} allowInsecureRequest - Will allow unencrypted and unauthenticated access to the http server
|
|
512
|
+
* @param info - Required info for publishing.
|
|
513
|
+
* @param allowInsecureRequest - Will allow unencrypted and unauthenticated access to the http server
|
|
494
514
|
*/
|
|
495
515
|
publish(info: PublishInfo, allowInsecureRequest?: boolean): Promise<void>;
|
|
496
516
|
/**
|
|
497
517
|
* Removes this Accessory from the local network
|
|
498
|
-
* Accessory object will no longer valid after invoking this method
|
|
499
|
-
* Trying to invoke publish() on the object will result undefined behavior
|
|
518
|
+
* Accessory object will no longer be valid after invoking this method
|
|
519
|
+
* Trying to invoke publish() on the object will result in undefined behavior
|
|
500
520
|
*/
|
|
501
521
|
destroy(): Promise<void>;
|
|
502
522
|
unpublish(): Promise<void>;
|
|
503
523
|
private enqueueConfigurationUpdate;
|
|
524
|
+
/**
|
|
525
|
+
* Ends the subscriptions of connected clients to characteristics which were removed, with their service or on their own.
|
|
526
|
+
* A client keeps such a registration until it disconnects, and the removed characteristic is never told that nobody listens anymore.
|
|
527
|
+
*
|
|
528
|
+
* Runs after the ids were assigned for a changed configuration, and only while unused ids are purged: the id of a removed
|
|
529
|
+
* characteristic is forgotten then and never handed out again, so the registration can never mean anything again. A service
|
|
530
|
+
* which was removed and added back before this runs has kept its ids, and its subscriptions are left alone.
|
|
531
|
+
*/
|
|
532
|
+
private dropStaleEventRegistrations;
|
|
504
533
|
private onListening;
|
|
505
534
|
private handleInitialPairSetupFinished;
|
|
506
535
|
private handleAddPairing;
|
|
@@ -539,4 +568,3 @@ export declare class Accessory extends EventEmitter {
|
|
|
539
568
|
private static deserializeServiceMap;
|
|
540
569
|
private static parseBindOption;
|
|
541
570
|
}
|
|
542
|
-
//# sourceMappingURL=Accessory.d.ts.map
|