matterbridge 3.5.0 → 3.5.1-dev-20260122-6461be3

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.
Files changed (330) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README-DOCKER.md +4 -2
  3. package/README.md +4 -1
  4. package/bin/mb_coap.js +1 -1
  5. package/bin/mb_mdns.js +1 -1
  6. package/dist/broadcastServer.d.ts +0 -115
  7. package/dist/broadcastServer.js +1 -119
  8. package/dist/broadcastServerTypes.d.ts +0 -43
  9. package/dist/broadcastServerTypes.js +0 -24
  10. package/dist/cli.d.ts +1 -26
  11. package/dist/cli.js +2 -102
  12. package/dist/cliEmitter.d.ts +0 -36
  13. package/dist/cliEmitter.js +0 -37
  14. package/dist/cliHistory.d.ts +0 -42
  15. package/dist/cliHistory.js +1 -39
  16. package/dist/clusters/export.d.ts +0 -1
  17. package/dist/clusters/export.js +0 -2
  18. package/dist/deviceManager.d.ts +0 -108
  19. package/dist/deviceManager.js +2 -114
  20. package/dist/devices/airConditioner.d.ts +0 -75
  21. package/dist/devices/airConditioner.js +0 -57
  22. package/dist/devices/batteryStorage.d.ts +0 -43
  23. package/dist/devices/batteryStorage.js +1 -48
  24. package/dist/devices/cooktop.d.ts +0 -55
  25. package/dist/devices/cooktop.js +0 -56
  26. package/dist/devices/dishwasher.d.ts +0 -55
  27. package/dist/devices/dishwasher.js +0 -57
  28. package/dist/devices/evse.d.ts +0 -57
  29. package/dist/devices/evse.js +10 -74
  30. package/dist/devices/export.d.ts +0 -1
  31. package/dist/devices/export.js +0 -5
  32. package/dist/devices/extractorHood.d.ts +0 -41
  33. package/dist/devices/extractorHood.js +0 -43
  34. package/dist/devices/heatPump.d.ts +0 -43
  35. package/dist/devices/heatPump.js +2 -50
  36. package/dist/devices/laundryDryer.d.ts +0 -58
  37. package/dist/devices/laundryDryer.js +3 -62
  38. package/dist/devices/laundryWasher.d.ts +0 -64
  39. package/dist/devices/laundryWasher.js +4 -70
  40. package/dist/devices/microwaveOven.d.ts +1 -77
  41. package/dist/devices/microwaveOven.js +5 -88
  42. package/dist/devices/oven.d.ts +0 -82
  43. package/dist/devices/oven.js +0 -85
  44. package/dist/devices/refrigerator.d.ts +0 -100
  45. package/dist/devices/refrigerator.js +0 -102
  46. package/dist/devices/roboticVacuumCleaner.d.ts +0 -83
  47. package/dist/devices/roboticVacuumCleaner.js +9 -100
  48. package/dist/devices/solarPower.d.ts +0 -36
  49. package/dist/devices/solarPower.js +0 -38
  50. package/dist/devices/speaker.d.ts +0 -79
  51. package/dist/devices/speaker.js +0 -84
  52. package/dist/devices/temperatureControl.d.ts +0 -21
  53. package/dist/devices/temperatureControl.js +3 -24
  54. package/dist/devices/waterHeater.d.ts +0 -74
  55. package/dist/devices/waterHeater.js +2 -82
  56. package/dist/frontend.d.ts +4 -187
  57. package/dist/frontend.js +89 -505
  58. package/dist/frontendTypes.d.ts +0 -57
  59. package/dist/frontendTypes.js +0 -45
  60. package/dist/helpers.d.ts +0 -43
  61. package/dist/helpers.js +1 -54
  62. package/dist/index.d.ts +0 -23
  63. package/dist/index.js +0 -25
  64. package/dist/jestutils/export.d.ts +0 -1
  65. package/dist/jestutils/export.js +0 -1
  66. package/dist/jestutils/jestHelpers.d.ts +0 -255
  67. package/dist/jestutils/jestHelpers.js +16 -379
  68. package/dist/logger/export.d.ts +0 -1
  69. package/dist/logger/export.js +0 -1
  70. package/dist/matter/behaviors.d.ts +0 -1
  71. package/dist/matter/behaviors.js +0 -2
  72. package/dist/matter/clusters.d.ts +0 -1
  73. package/dist/matter/clusters.js +0 -2
  74. package/dist/matter/devices.d.ts +0 -1
  75. package/dist/matter/devices.js +0 -2
  76. package/dist/matter/endpoints.d.ts +0 -1
  77. package/dist/matter/endpoints.js +0 -2
  78. package/dist/matter/export.d.ts +0 -1
  79. package/dist/matter/export.js +0 -2
  80. package/dist/matter/types.d.ts +0 -1
  81. package/dist/matter/types.js +0 -2
  82. package/dist/matterNode.d.ts +0 -258
  83. package/dist/matterNode.js +9 -364
  84. package/dist/matterbridge.d.ts +0 -362
  85. package/dist/matterbridge.js +75 -864
  86. package/dist/matterbridgeAccessoryPlatform.d.ts +0 -36
  87. package/dist/matterbridgeAccessoryPlatform.js +0 -38
  88. package/dist/matterbridgeBehaviors.d.ts +0 -24
  89. package/dist/matterbridgeBehaviors.js +5 -68
  90. package/dist/matterbridgeDeviceTypes.d.ts +0 -649
  91. package/dist/matterbridgeDeviceTypes.js +6 -673
  92. package/dist/matterbridgeDynamicPlatform.d.ts +0 -36
  93. package/dist/matterbridgeDynamicPlatform.js +0 -38
  94. package/dist/matterbridgeEndpoint.d.ts +2 -1332
  95. package/dist/matterbridgeEndpoint.js +94 -1459
  96. package/dist/matterbridgeEndpointHelpers.d.ts +0 -425
  97. package/dist/matterbridgeEndpointHelpers.js +22 -487
  98. package/dist/matterbridgeEndpointTypes.d.ts +0 -70
  99. package/dist/matterbridgeEndpointTypes.js +0 -25
  100. package/dist/matterbridgePlatform.d.ts +0 -425
  101. package/dist/matterbridgePlatform.js +2 -453
  102. package/dist/matterbridgeTypes.d.ts +0 -46
  103. package/dist/matterbridgeTypes.js +0 -26
  104. package/dist/mb_coap.d.ts +1 -0
  105. package/dist/{dgram/mb_coap.js → mb_coap.js} +3 -41
  106. package/dist/mb_mdns.d.ts +1 -0
  107. package/dist/{dgram/mb_mdns.js → mb_mdns.js} +47 -81
  108. package/dist/pluginManager.d.ts +0 -305
  109. package/dist/pluginManager.js +8 -345
  110. package/dist/shelly.d.ts +0 -157
  111. package/dist/shelly.js +7 -178
  112. package/dist/spawn.d.ts +1 -0
  113. package/dist/{utils/spawn.js → spawn.js} +3 -73
  114. package/dist/storage/export.d.ts +0 -1
  115. package/dist/storage/export.js +0 -1
  116. package/dist/update.d.ts +0 -75
  117. package/dist/update.js +7 -100
  118. package/dist/utils/export.d.ts +1 -13
  119. package/dist/utils/export.js +1 -13
  120. package/dist/workerGlobalPrefix.d.ts +0 -24
  121. package/dist/workerGlobalPrefix.js +6 -40
  122. package/dist/workerTypes.d.ts +0 -25
  123. package/dist/workerTypes.js +0 -24
  124. package/dist/workers.d.ts +0 -61
  125. package/dist/workers.js +4 -68
  126. package/npm-shrinkwrap.json +80 -50
  127. package/package.json +8 -8
  128. package/dist/broadcastServer.d.ts.map +0 -1
  129. package/dist/broadcastServer.js.map +0 -1
  130. package/dist/broadcastServerTypes.d.ts.map +0 -1
  131. package/dist/broadcastServerTypes.js.map +0 -1
  132. package/dist/cli.d.ts.map +0 -1
  133. package/dist/cli.js.map +0 -1
  134. package/dist/cliEmitter.d.ts.map +0 -1
  135. package/dist/cliEmitter.js.map +0 -1
  136. package/dist/cliHistory.d.ts.map +0 -1
  137. package/dist/cliHistory.js.map +0 -1
  138. package/dist/clusters/export.d.ts.map +0 -1
  139. package/dist/clusters/export.js.map +0 -1
  140. package/dist/deviceManager.d.ts.map +0 -1
  141. package/dist/deviceManager.js.map +0 -1
  142. package/dist/devices/airConditioner.d.ts.map +0 -1
  143. package/dist/devices/airConditioner.js.map +0 -1
  144. package/dist/devices/batteryStorage.d.ts.map +0 -1
  145. package/dist/devices/batteryStorage.js.map +0 -1
  146. package/dist/devices/cooktop.d.ts.map +0 -1
  147. package/dist/devices/cooktop.js.map +0 -1
  148. package/dist/devices/dishwasher.d.ts.map +0 -1
  149. package/dist/devices/dishwasher.js.map +0 -1
  150. package/dist/devices/evse.d.ts.map +0 -1
  151. package/dist/devices/evse.js.map +0 -1
  152. package/dist/devices/export.d.ts.map +0 -1
  153. package/dist/devices/export.js.map +0 -1
  154. package/dist/devices/extractorHood.d.ts.map +0 -1
  155. package/dist/devices/extractorHood.js.map +0 -1
  156. package/dist/devices/heatPump.d.ts.map +0 -1
  157. package/dist/devices/heatPump.js.map +0 -1
  158. package/dist/devices/laundryDryer.d.ts.map +0 -1
  159. package/dist/devices/laundryDryer.js.map +0 -1
  160. package/dist/devices/laundryWasher.d.ts.map +0 -1
  161. package/dist/devices/laundryWasher.js.map +0 -1
  162. package/dist/devices/microwaveOven.d.ts.map +0 -1
  163. package/dist/devices/microwaveOven.js.map +0 -1
  164. package/dist/devices/oven.d.ts.map +0 -1
  165. package/dist/devices/oven.js.map +0 -1
  166. package/dist/devices/refrigerator.d.ts.map +0 -1
  167. package/dist/devices/refrigerator.js.map +0 -1
  168. package/dist/devices/roboticVacuumCleaner.d.ts.map +0 -1
  169. package/dist/devices/roboticVacuumCleaner.js.map +0 -1
  170. package/dist/devices/solarPower.d.ts.map +0 -1
  171. package/dist/devices/solarPower.js.map +0 -1
  172. package/dist/devices/speaker.d.ts.map +0 -1
  173. package/dist/devices/speaker.js.map +0 -1
  174. package/dist/devices/temperatureControl.d.ts.map +0 -1
  175. package/dist/devices/temperatureControl.js.map +0 -1
  176. package/dist/devices/waterHeater.d.ts.map +0 -1
  177. package/dist/devices/waterHeater.js.map +0 -1
  178. package/dist/dgram/coap.d.ts +0 -205
  179. package/dist/dgram/coap.d.ts.map +0 -1
  180. package/dist/dgram/coap.js +0 -365
  181. package/dist/dgram/coap.js.map +0 -1
  182. package/dist/dgram/dgram.d.ts +0 -144
  183. package/dist/dgram/dgram.d.ts.map +0 -1
  184. package/dist/dgram/dgram.js +0 -363
  185. package/dist/dgram/dgram.js.map +0 -1
  186. package/dist/dgram/mb_coap.d.ts +0 -24
  187. package/dist/dgram/mb_coap.d.ts.map +0 -1
  188. package/dist/dgram/mb_coap.js.map +0 -1
  189. package/dist/dgram/mb_mdns.d.ts +0 -24
  190. package/dist/dgram/mb_mdns.d.ts.map +0 -1
  191. package/dist/dgram/mb_mdns.js.map +0 -1
  192. package/dist/dgram/mdns.d.ts +0 -371
  193. package/dist/dgram/mdns.d.ts.map +0 -1
  194. package/dist/dgram/mdns.js +0 -934
  195. package/dist/dgram/mdns.js.map +0 -1
  196. package/dist/dgram/multicast.d.ts +0 -67
  197. package/dist/dgram/multicast.d.ts.map +0 -1
  198. package/dist/dgram/multicast.js +0 -179
  199. package/dist/dgram/multicast.js.map +0 -1
  200. package/dist/dgram/unicast.d.ts +0 -64
  201. package/dist/dgram/unicast.d.ts.map +0 -1
  202. package/dist/dgram/unicast.js +0 -100
  203. package/dist/dgram/unicast.js.map +0 -1
  204. package/dist/frontend.d.ts.map +0 -1
  205. package/dist/frontend.js.map +0 -1
  206. package/dist/frontendTypes.d.ts.map +0 -1
  207. package/dist/frontendTypes.js.map +0 -1
  208. package/dist/helpers.d.ts.map +0 -1
  209. package/dist/helpers.js.map +0 -1
  210. package/dist/index.d.ts.map +0 -1
  211. package/dist/index.js.map +0 -1
  212. package/dist/jestutils/export.d.ts.map +0 -1
  213. package/dist/jestutils/export.js.map +0 -1
  214. package/dist/jestutils/jestHelpers.d.ts.map +0 -1
  215. package/dist/jestutils/jestHelpers.js.map +0 -1
  216. package/dist/logger/export.d.ts.map +0 -1
  217. package/dist/logger/export.js.map +0 -1
  218. package/dist/matter/behaviors.d.ts.map +0 -1
  219. package/dist/matter/behaviors.js.map +0 -1
  220. package/dist/matter/clusters.d.ts.map +0 -1
  221. package/dist/matter/clusters.js.map +0 -1
  222. package/dist/matter/devices.d.ts.map +0 -1
  223. package/dist/matter/devices.js.map +0 -1
  224. package/dist/matter/endpoints.d.ts.map +0 -1
  225. package/dist/matter/endpoints.js.map +0 -1
  226. package/dist/matter/export.d.ts.map +0 -1
  227. package/dist/matter/export.js.map +0 -1
  228. package/dist/matter/types.d.ts.map +0 -1
  229. package/dist/matter/types.js.map +0 -1
  230. package/dist/matterNode.d.ts.map +0 -1
  231. package/dist/matterNode.js.map +0 -1
  232. package/dist/matterbridge.d.ts.map +0 -1
  233. package/dist/matterbridge.js.map +0 -1
  234. package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
  235. package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
  236. package/dist/matterbridgeBehaviors.d.ts.map +0 -1
  237. package/dist/matterbridgeBehaviors.js.map +0 -1
  238. package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
  239. package/dist/matterbridgeDeviceTypes.js.map +0 -1
  240. package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
  241. package/dist/matterbridgeDynamicPlatform.js.map +0 -1
  242. package/dist/matterbridgeEndpoint.d.ts.map +0 -1
  243. package/dist/matterbridgeEndpoint.js.map +0 -1
  244. package/dist/matterbridgeEndpointHelpers.d.ts.map +0 -1
  245. package/dist/matterbridgeEndpointHelpers.js.map +0 -1
  246. package/dist/matterbridgeEndpointTypes.d.ts.map +0 -1
  247. package/dist/matterbridgeEndpointTypes.js.map +0 -1
  248. package/dist/matterbridgePlatform.d.ts.map +0 -1
  249. package/dist/matterbridgePlatform.js.map +0 -1
  250. package/dist/matterbridgeTypes.d.ts.map +0 -1
  251. package/dist/matterbridgeTypes.js.map +0 -1
  252. package/dist/pluginManager.d.ts.map +0 -1
  253. package/dist/pluginManager.js.map +0 -1
  254. package/dist/shelly.d.ts.map +0 -1
  255. package/dist/shelly.js.map +0 -1
  256. package/dist/storage/export.d.ts.map +0 -1
  257. package/dist/storage/export.js.map +0 -1
  258. package/dist/update.d.ts.map +0 -1
  259. package/dist/update.js.map +0 -1
  260. package/dist/utils/colorUtils.d.ts +0 -101
  261. package/dist/utils/colorUtils.d.ts.map +0 -1
  262. package/dist/utils/colorUtils.js +0 -282
  263. package/dist/utils/colorUtils.js.map +0 -1
  264. package/dist/utils/commandLine.d.ts +0 -66
  265. package/dist/utils/commandLine.d.ts.map +0 -1
  266. package/dist/utils/commandLine.js +0 -123
  267. package/dist/utils/commandLine.js.map +0 -1
  268. package/dist/utils/copyDirectory.d.ts +0 -35
  269. package/dist/utils/copyDirectory.d.ts.map +0 -1
  270. package/dist/utils/copyDirectory.js +0 -76
  271. package/dist/utils/copyDirectory.js.map +0 -1
  272. package/dist/utils/createDirectory.d.ts +0 -34
  273. package/dist/utils/createDirectory.d.ts.map +0 -1
  274. package/dist/utils/createDirectory.js +0 -54
  275. package/dist/utils/createDirectory.js.map +0 -1
  276. package/dist/utils/createZip.d.ts +0 -39
  277. package/dist/utils/createZip.d.ts.map +0 -1
  278. package/dist/utils/createZip.js +0 -114
  279. package/dist/utils/createZip.js.map +0 -1
  280. package/dist/utils/deepCopy.d.ts +0 -32
  281. package/dist/utils/deepCopy.d.ts.map +0 -1
  282. package/dist/utils/deepCopy.js +0 -79
  283. package/dist/utils/deepCopy.js.map +0 -1
  284. package/dist/utils/deepEqual.d.ts +0 -54
  285. package/dist/utils/deepEqual.d.ts.map +0 -1
  286. package/dist/utils/deepEqual.js +0 -129
  287. package/dist/utils/deepEqual.js.map +0 -1
  288. package/dist/utils/error.d.ts +0 -45
  289. package/dist/utils/error.d.ts.map +0 -1
  290. package/dist/utils/error.js +0 -54
  291. package/dist/utils/error.js.map +0 -1
  292. package/dist/utils/export.d.ts.map +0 -1
  293. package/dist/utils/export.js.map +0 -1
  294. package/dist/utils/format.d.ts +0 -53
  295. package/dist/utils/format.d.ts.map +0 -1
  296. package/dist/utils/format.js +0 -78
  297. package/dist/utils/format.js.map +0 -1
  298. package/dist/utils/hex.d.ts +0 -89
  299. package/dist/utils/hex.d.ts.map +0 -1
  300. package/dist/utils/hex.js +0 -242
  301. package/dist/utils/hex.js.map +0 -1
  302. package/dist/utils/inspector.d.ts +0 -87
  303. package/dist/utils/inspector.d.ts.map +0 -1
  304. package/dist/utils/inspector.js +0 -268
  305. package/dist/utils/inspector.js.map +0 -1
  306. package/dist/utils/isValid.d.ts +0 -103
  307. package/dist/utils/isValid.d.ts.map +0 -1
  308. package/dist/utils/isValid.js +0 -162
  309. package/dist/utils/isValid.js.map +0 -1
  310. package/dist/utils/network.d.ts +0 -141
  311. package/dist/utils/network.d.ts.map +0 -1
  312. package/dist/utils/network.js +0 -314
  313. package/dist/utils/network.js.map +0 -1
  314. package/dist/utils/spawn.d.ts +0 -33
  315. package/dist/utils/spawn.d.ts.map +0 -1
  316. package/dist/utils/spawn.js.map +0 -1
  317. package/dist/utils/tracker.d.ts +0 -108
  318. package/dist/utils/tracker.d.ts.map +0 -1
  319. package/dist/utils/tracker.js +0 -264
  320. package/dist/utils/tracker.js.map +0 -1
  321. package/dist/utils/wait.d.ts +0 -54
  322. package/dist/utils/wait.d.ts.map +0 -1
  323. package/dist/utils/wait.js +0 -125
  324. package/dist/utils/wait.js.map +0 -1
  325. package/dist/workerGlobalPrefix.d.ts.map +0 -1
  326. package/dist/workerGlobalPrefix.js.map +0 -1
  327. package/dist/workerTypes.d.ts.map +0 -1
  328. package/dist/workerTypes.js.map +0 -1
  329. package/dist/workers.d.ts.map +0 -1
  330. package/dist/workers.js.map +0 -1
@@ -1,26 +1,3 @@
1
- /**
2
- * This file contains the types for MatterbridgeEndpoint.
3
- *
4
- * @file matterbridgeEndpointTypes.ts
5
- * @author Luca Liguori
6
- * @created 2025-11-10
7
- * @version 1.0.0
8
- * @license Apache-2.0
9
- *
10
- * Copyright 2025, 2026, 2027 Luca Liguori.
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
1
  import { Semtag } from '@matter/types/globals';
25
2
  import { ClusterId, EndpointNumber } from '@matter/types/datatype';
26
3
  import { HandlerFunction } from '@matter/general';
@@ -111,56 +88,9 @@ export interface SerializedMatterbridgeEndpoint {
111
88
  id: string | undefined;
112
89
  clusterServersId: ClusterId[];
113
90
  }
114
- /**
115
- * MatterbridgeEndpointOptions interface is used to define the options for a Matterbridge endpoint.
116
- *
117
- * @remarks
118
- * - tagList?: Semtag[]. It is used to disambiguate the sibling child endpoints (9.2.3. Disambiguation rule).
119
- * - mfgCode: VendorId | null,
120
- * - namespaceId: number,
121
- * - tag: number,
122
- * - label: string | undefined | null
123
- * - mode?: 'server' | 'matter'. It is used to activate a special mode for the endpoint.
124
- * - id?: string. It is the unique storage key for the endpoint.
125
- * - number?: EndpointNumber. It is the endpoint number for the endpoint.
126
- */
127
91
  export interface MatterbridgeEndpointOptions {
128
- /**
129
- * The semantic tags array for the endpoint.
130
- * The tagList is used to disambiguate the sibling child endpoints (9.2.3. Disambiguation rule).
131
- * The tagList is used to identify the endpoint and to provide additional information about the endpoint.
132
- *
133
- * @remarks
134
- * - mfgCode: VendorId | null,
135
- * - namespaceId: number,
136
- * - tag: number,
137
- * - label: string | undefined | null
138
- */
139
92
  tagList?: Semtag[];
140
- /**
141
- * Activates a special mode for this endpoint.
142
- * - 'server': it creates the device server node and add the device as Matter device that needs to be paired individually.
143
- * In this case the Matterbridge bridge mode (bridge or childbridge) is not relevant. The device is independent.
144
- *
145
- * - 'matter': it adds the device directly to the Matterbridge server node as Matter device alongside the aggregator. In this case the implementation must respect
146
- * the 9.2.3. Disambiguation rule (i.e. use taglist if needed cause the device doesn't have nodeLabel).
147
- * Furthermore the device will be a part of the bridge (i.e. will have the same name and will be in the same room).
148
- * See 9.12.2.2. Native Matter functionality in Bridge.
149
- *
150
- * @remarks
151
- * Always use createDefaultBasicInformationClusterServer() to create the BasicInformation cluster server when using mode 'server' or 'matter'.
152
- */
153
93
  mode?: 'server' | 'matter';
154
- /**
155
- * The unique storage key for the endpoint.
156
- * If not provided, a default key will be used.
157
- */
158
94
  id?: string;
159
- /**
160
- * The endpoint number for the endpoint.
161
- * If not provided, the endpoint will be created with the next available endpoint number.
162
- * If provided, the endpoint will be created with the specified endpoint number.
163
- */
164
95
  number?: EndpointNumber;
165
96
  }
166
- //# sourceMappingURL=matterbridgeEndpointTypes.d.ts.map
@@ -1,28 +1,3 @@
1
- /**
2
- * This file contains the types for MatterbridgeEndpoint.
3
- *
4
- * @file matterbridgeEndpointTypes.ts
5
- * @author Luca Liguori
6
- * @created 2025-11-10
7
- * @version 1.0.0
8
- * @license Apache-2.0
9
- *
10
- * Copyright 2025, 2026, 2027 Luca Liguori.
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
- // eslint-disable-next-line no-console
25
1
  if (process.argv.includes('--loader') || process.argv.includes('-loader'))
26
2
  console.log('\u001B[32mMatterbridgeEndpointTypes loaded.\u001B[40;0m');
27
3
  export {};
28
- //# sourceMappingURL=matterbridgeEndpointTypes.js.map
@@ -1,35 +1,10 @@
1
- /**
2
- * This file contains the class MatterbridgePlatform.
3
- *
4
- * @file matterbridgePlatform.ts
5
- * @author Luca Liguori
6
- * @created 2024-03-21
7
- * @version 1.6.1
8
- * @license Apache-2.0
9
- *
10
- * Copyright 2024, 2025, 2026 Luca Liguori.
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
1
  import { AnsiLogger, LogLevel } from 'node-ansi-logger';
25
2
  import { NodeStorage } from 'node-persist-manager';
26
3
  import { EndpointNumber, VendorId } from '@matter/types/datatype';
27
4
  import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
28
5
  import { ApiSelectDevice, ApiSelectEntity } from './frontendTypes.js';
29
6
  import { SystemInformation } from './matterbridgeTypes.js';
30
- /** Platform configuration value type. */
31
7
  export type PlatformConfigValue = string | number | boolean | bigint | object | undefined | null;
32
- /** Platform configuration type. */
33
8
  export type PlatformConfig = {
34
9
  name: string;
35
10
  type: string;
@@ -37,11 +12,8 @@ export type PlatformConfig = {
37
12
  debug: boolean;
38
13
  unregisterOnShutdown: boolean;
39
14
  } & Record<string, PlatformConfigValue>;
40
- /** Platform schema value type. */
41
15
  export type PlatformSchemaValue = string | number | boolean | bigint | object | undefined | null;
42
- /** Platform schema type. */
43
16
  export type PlatformSchema = Record<string, PlatformSchemaValue>;
44
- /** A type representing a subset of readonly properties of Matterbridge for platform use. */
45
17
  export type PlatformMatterbridge = {
46
18
  readonly systemInformation: Readonly<Pick<SystemInformation, 'interfaceName' | 'macAddress' | 'ipv4Address' | 'ipv6Address' | 'nodeVersion' | 'hostname' | 'user' | 'osType' | 'osRelease' | 'osPlatform' | 'osArch' | 'totalMemory' | 'freeMemory' | 'systemUptime' | 'processUptime' | 'cpuUsage' | 'processCpuUsage' | 'rss' | 'heapTotal' | 'heapUsed'>>;
47
19
  readonly rootDirectory: string;
@@ -62,349 +34,58 @@ export type PlatformMatterbridge = {
62
34
  readonly aggregatorProductId: number;
63
35
  readonly aggregatorProductName: string;
64
36
  };
65
- /**
66
- * Represents the base Matterbridge platform. It is extended by the MatterbridgeAccessoryPlatform and MatterbridgeServicePlatform classes.
67
- *
68
- */
69
37
  export declare class MatterbridgePlatform {
70
38
  #private;
71
- /** The PlatformMatterbridge instance of this Platform. */
72
39
  readonly matterbridge: PlatformMatterbridge;
73
- /** The logger instance for this platform. Created by the PluginManager.load() method. */
74
40
  readonly log: AnsiLogger;
75
- /** The configuration for this platform. Set by the PluginManager.load() method using the stored config file. */
76
41
  config: PlatformConfig;
77
- /** The name of the platform. Set by the PluginManager.load() method using the package.json name value. */
78
42
  name: string;
79
- /** The type of the platform. Set by the extending classes: MatterbridgeDynamicPlatform and MatterbridgeAccessoryPlatform */
80
43
  type: 'DynamicPlatform' | 'AccessoryPlatform' | 'AnyPlatform';
81
- /** The version of the platform. Set by the PluginManager.load() method using the package.json version value. */
82
44
  version: string;
83
- /** Platform context in the storage of matterbridgeDirectory. Use await platform.ready to access it early. */
84
45
  context?: NodeStorage;
85
- /** Indicates whether the platform is is fully initialized (including context and selects). */
86
46
  isReady: boolean;
87
- /** Indicates whether the platform has been loaded. */
88
47
  isLoaded: boolean;
89
- /** Indicates whether the platform has been started. */
90
48
  isStarted: boolean;
91
- /** Indicates whether the platform has been configured. */
92
49
  isConfigured: boolean;
93
- /** Indicates whether the platform is shutting down. */
94
50
  isShuttingDown: boolean;
95
- /** The ready promise for the platform, which resolves when the platform is fully initialized (including context and selects). Await platform.ready if you access the platform context or select early. */
96
51
  readonly ready: Promise<void>;
97
- /**
98
- * MatterNode helpers injected by the PluginManager.load() method
99
- *
100
- * @param {(pluginName: string, device: MatterbridgeEndpoint) => Promise<void>} addBridgedEndpoint - Function to add a bridged endpoint.
101
- * @param {(pluginName: string, device: MatterbridgeEndpoint) => Promise<void>} removeBridgedEndpoint - Function to remove a bridged endpoint.
102
- * @param {(pluginName: string, delay?: number) => Promise<void>} removeAllBridgedEndpoints - Function to remove all bridged endpoints.
103
- * @param {(pluginName: string, name: string, type: 'light' | 'outlet' | 'switch' | 'mounted_switch', callback: () => Promise<void>) => Promise<boolean>} addVirtualEndpoint - Function to add a virtual endpoint.
104
- */
105
52
  private setMatterNode;
106
- /**
107
- * Creates an instance of the base MatterbridgePlatform.
108
- * Each plugin must extend the MatterbridgeDynamicPlatform or MatterbridgeAccessoryPlatform class.
109
- * MatterbridgePlatform cannot be instantiated directly, it can only be extended by the MatterbridgeDynamicPlatform or MatterbridgeAccessoryPlatform class.
110
- *
111
- * @param {PlatformMatterbridge} matterbridge - The PlatformMatterbridge instance.
112
- * @param {AnsiLogger} log - The logger instance.
113
- * @param {PlatformConfig} config - The platform configuration.
114
- */
115
53
  protected constructor(matterbridge: PlatformMatterbridge, log: AnsiLogger, config: PlatformConfig);
116
- /**
117
- * Destroys the platform, cleaning up memory, closing storage and broadcast server.
118
- */
119
54
  private destroy;
120
- /**
121
- * This method shall be overridden in the extended class.
122
- * It is called when the platform is started.
123
- * Use this method to create the MatterbridgeEndpoints and call this.registerDevice().
124
- *
125
- * @param {string} [reason] - The reason for starting.
126
- * @throws {Error} - Throws an error if the method is not overridden.
127
- */
128
55
  onStart(reason?: string): Promise<void>;
129
- /**
130
- * This method can be overridden in the extended class. In this case always call super.onConfigure() to save the select and run checkEndpointNumbers().
131
- * It is called after the platform has started.
132
- * Use this method to perform any configuration of your devices and to override the value of the attributes that are persistent and stored in the
133
- * matter storage (i.e. the onOff attribute of the OnOff cluster).
134
- */
135
56
  onConfigure(): Promise<void>;
136
- /**
137
- * This method can be overridden in the extended class. In this case always call super.onShutdown() to save the selects, run checkEndpointNumbers() and cleanup memory.
138
- * It is called when the platform is shutting down.
139
- * Use this method to clean up any resources you used in the constructor or onStart.
140
- *
141
- * @param {string} [reason] - The reason for shutting down.
142
- */
143
57
  onShutdown(reason?: string): Promise<void>;
144
- /**
145
- * Called when the logger level is changed.
146
- *
147
- * @param {LogLevel} logLevel The new logger level.
148
- */
149
58
  onChangeLoggerLevel(logLevel: LogLevel): Promise<void>;
150
- /**
151
- * Called when a plugin config includes an action button or an action button with text field.
152
- *
153
- * @param {string} action The action triggered by the button in plugin config.
154
- * @param {string} value The value of the field of the action button.
155
- * @param {string} id The id of the schema associated with the action.
156
- * @param {PlatformConfig} formData The changed form data of the plugin.
157
- *
158
- * @remarks
159
- * This method can be overridden in the extended class.
160
- *
161
- * @example
162
- * Use this method to handle the action defined in the plugin schema:
163
- * ```json
164
- * "addDevice": {
165
- * "description": "Manually add a device that has not been discovered with mdns:",
166
- * "type": "boolean",
167
- * "buttonText": "ADD", // The text on the button. This is used when the action doesn't include a text field.
168
- * "buttonField": "ADD", // The text on the button. This is used when the action includes a text field.
169
- * "buttonClose": false, // optional, default is false. When true, the dialog will close after the action is sent.
170
- * "buttonSave": false, // optional, default is false. When true, the dialog will close and trigger the restart required after the action is sent.
171
- * "textPlaceholder": "Enter the device IP address", // optional: the placeholder text for the text field.
172
- * "default": false
173
- * },
174
- * ```
175
- */
176
59
  onAction(action: string, value?: string, id?: string, formData?: PlatformConfig): Promise<void>;
177
- /**
178
- * Called when the plugin config has been updated.
179
- *
180
- * @param {PlatformConfig} config The new plugin config.
181
- */
182
60
  onConfigChanged(config: PlatformConfig): Promise<void>;
183
- /**
184
- * Save the platform configuration to the platform config JSON.
185
- *
186
- * @param {PlatformConfig} [config] - The platform configuration to save.
187
- * @returns {void}
188
- */
189
61
  saveConfig(config: PlatformConfig): void;
190
- /**
191
- * Get the platform schema for the config editor. This will retrieve the schema from the Matterbridge plugin manager.
192
- *
193
- * @returns {Promise<PlatformSchema | undefined>} The platform schema.
194
- */
195
62
  getSchema(): Promise<PlatformSchema | undefined>;
196
- /**
197
- * Set the platform schema for the config editor. This will update the schema in the Matterbridge plugin manager but will not change the schema file.
198
- * It must be called from onStart() to update the schema in the plugin.
199
- * Calling this method from the platform constructor will have no effect.
200
- *
201
- * @param {PlatformSchema} [schema] - The platform schema to set.
202
- * @returns {void}
203
- */
204
63
  setSchema(schema: PlatformSchema): void;
205
- /**
206
- * Sends a restart required message to the frontend.
207
- *
208
- * @param {boolean} [snackbar] - If true, shows a snackbar notification. Default is true.
209
- * @param {boolean} [fixed] - If true, shows a fixed notification. Default is false.
210
- * @returns {void}
211
- */
212
64
  wssSendRestartRequired(snackbar?: boolean, fixed?: boolean): void;
213
- /**
214
- * Sends an open snackbar message to all connected clients.
215
- *
216
- * @param {string} message - The message to send.
217
- * @param {number} timeout - The timeout in seconds for the snackbar message. Default is 5 seconds.
218
- * @param {'info' | 'warning' | 'error' | 'success'} severity - The severity of the message.
219
- * possible values are: 'info', 'warning', 'error', 'success'. Default is 'info'.
220
- *
221
- * @remarks
222
- * If timeout is 0, the snackbar message will be displayed until closed by the user.
223
- */
224
65
  wssSendSnackbarMessage(message: string, timeout?: number, severity?: 'error' | 'success' | 'info' | 'warning'): void;
225
- /**
226
- * Retrieves the number of devices registered with the platform.
227
- *
228
- * @returns {number} The number of registered devices.
229
- */
230
66
  size(): number;
231
- /**
232
- * Retrieves the devices registered with the platform.
233
- *
234
- * @returns {MatterbridgeEndpoint[]} The registered devices.
235
- */
236
67
  getDevices(): MatterbridgeEndpoint[];
237
- /**
238
- * Retrieves a registered device by its name.
239
- *
240
- * @param {string} deviceName - The device name to search for.
241
- * @returns {MatterbridgeEndpoint | undefined} The registered device or undefined if not found.
242
- */
243
68
  getDeviceByName(deviceName: string): MatterbridgeEndpoint | undefined;
244
- /**
245
- * Retrieves a registered device by its uniqueId.
246
- *
247
- * @param {string} uniqueId - The device unique ID to search for.
248
- * @returns {MatterbridgeEndpoint | undefined} The registered device or undefined if not found.
249
- */
250
69
  getDeviceByUniqueId(uniqueId: string): MatterbridgeEndpoint | undefined;
251
- /**
252
- * Retrieves a registered device by its serialNumber.
253
- *
254
- * @param {string} serialNumber - The device serial number to search for.
255
- * @returns {MatterbridgeEndpoint | undefined} The registered device or undefined if not found.
256
- */
257
70
  getDeviceBySerialNumber(serialNumber: string): MatterbridgeEndpoint | undefined;
258
- /**
259
- * Retrieves a registered device by its id.
260
- *
261
- * @param {string} id - The device id to search for.
262
- * @returns {MatterbridgeEndpoint | undefined} The registered device or undefined if not found.
263
- */
264
71
  getDeviceById(id: string): MatterbridgeEndpoint | undefined;
265
- /**
266
- * Retrieves a registered device by its originalId.
267
- *
268
- * @param {string} originalId - The device originalId to search for.
269
- * @returns {MatterbridgeEndpoint | undefined} The registered device or undefined if not found.
270
- */
271
72
  getDeviceByOriginalId(originalId: string): MatterbridgeEndpoint | undefined;
272
- /**
273
- * Retrieves a registered device by its number.
274
- *
275
- * @param {EndpointNumber | number} number - The device number to search for.
276
- * @returns {MatterbridgeEndpoint | undefined} The registered device or undefined if not found.
277
- */
278
73
  getDeviceByNumber(number: EndpointNumber | number): MatterbridgeEndpoint | undefined;
279
- /**
280
- * Checks if a device with this name is already registered in the platform.
281
- *
282
- * @param {string} deviceName - The device name to check.
283
- * @returns {boolean} True if the device is already registered, false otherwise.
284
- */
285
74
  hasDeviceName(deviceName: string): boolean;
286
- /**
287
- * Checks if a device with this uniqueId is already registered in the platform.
288
- *
289
- * @param {string} deviceUniqueId - The device unique ID to check.
290
- * @returns {boolean} True if the device is already registered, false otherwise.
291
- */
292
75
  hasDeviceUniqueId(deviceUniqueId: string): boolean;
293
- /**
294
- * Registers a virtual device with the Matterbridge platform.
295
- * Virtual devices are only supported in bridge mode and childbridge mode with a DynamicPlatform.
296
- *
297
- * The virtual device is created as an instance of `Endpoint` with the provided device type.
298
- * When the virtual device is turned on, the provided callback function is executed.
299
- * The onOff state of the virtual device always reverts to false when the device is turned on.
300
- *
301
- * @param { string } name - The name of the virtual device.
302
- * @param { 'light' | 'outlet' | 'switch' | 'mounted_switch' } type - The type of the virtual device.
303
- * @param { () => Promise<void> } callback - The callback to call when the virtual device is turned on.
304
- *
305
- * @returns {Promise<boolean>} A promise that resolves to true if the virtual device was successfully registered, false otherwise.
306
- *
307
- * @remarks
308
- * The virtual devices don't show up in the device list of the frontend.
309
- * Type 'switch' is not supported by Alexa and 'mounted_switch' is not supported by Apple Home.
310
- */
311
76
  registerVirtualDevice(name: string, type: 'light' | 'outlet' | 'switch' | 'mounted_switch', callback: () => Promise<void>): Promise<boolean>;
312
- /**
313
- * Registers a device with the Matterbridge platform and performs validation checks.
314
- *
315
- * This method also checks if the implementation called createDefaultBasicInformationClusterServer() instead of createDefaultBridgedDeviceBasicInformationClusterServer().
316
- *
317
- * This is correct with Accessory platforms so we check if we are running in bridge mode and add the bridgedNode and the BridgedDeviceBasicInformation cluster.
318
- *
319
- * If we are in bridge mode, we add the bridgedNode device type and the BridgedDeviceBasicInformation cluster.
320
- *
321
- * If we are in childbridge mode and the plugin is a 'DynamicPlatform', we add the bridgedNode device type and the BridgedDeviceBasicInformation cluster.
322
- *
323
- * if we are in childbridge mode and the plugin is a 'AccessoryPlatform', the device is not bridged so no action is taken.
324
- *
325
- * If the device.mode = 'server', the device is not bridged so no action is taken.
326
- *
327
- * If the device.mode = 'matter', the device is not bridged so no action is taken.
328
- *
329
- * @param {MatterbridgeEndpoint} device - The device to register.
330
- */
331
77
  registerDevice(device: MatterbridgeEndpoint): Promise<void>;
332
- /**
333
- * Unregisters a device registered with the Matterbridge platform.
334
- *
335
- * @param {MatterbridgeEndpoint} device - The device to unregister.
336
- */
337
78
  unregisterDevice(device: MatterbridgeEndpoint): Promise<void>;
338
- /**
339
- * Unregisters all devices registered with the Matterbridge platform.
340
- *
341
- * @param {number} [delay] - The delay in milliseconds between removing each bridged endpoint (default: 0).
342
- */
343
79
  unregisterAllDevices(delay?: number): Promise<void>;
344
- /**
345
- * Saves the select devices and entities to storage.
346
- *
347
- * This method saves the current state of `selectDevice` and `selectEntity` maps to their respective storage.
348
- * It logs the number of items being saved and ensures that the storage is properly closed after saving.
349
- *
350
- * @returns {Promise<void>} A promise that resolves when the save operation is complete.
351
- */
352
80
  private saveSelects;
353
- /**
354
- * Clears all the select device and entity maps and saves the changes to the storage.
355
- *
356
- * @returns {void}
357
- */
358
81
  clearSelect(): Promise<void>;
359
- /**
360
- * Clears the select for a single device and saves the changes to the storage.
361
- *
362
- * @param {string} serial - The serial of the device to clear.
363
- * @returns {void}
364
- */
365
82
  clearDeviceSelect(serial: string): Promise<void>;
366
- /**
367
- * Clears the select for a single entity and saves the changes to the storage.
368
- *
369
- * @param {string} name - The name of the entity to clear.
370
- * @returns {void}
371
- */
372
83
  clearEntitySelect(name: string): Promise<void>;
373
- /**
374
- * Set the select device in the platform map.
375
- *
376
- * @param {string} serial - The serial number of the device.
377
- * @param {string} name - The name of the device.
378
- * @param {string} [configUrl] - The configuration URL of the device.
379
- * @param {string} [icon] - The icon of the device: 'wifi', 'ble', 'hub'
380
- * @param {Array<{ name: string; description: string; icon?: string }>} [entities] - The entities associated with the device.
381
- * @returns {void}
382
- *
383
- * @remarks
384
- * In the schema use selectFrom: 'serial' or 'name'
385
- * ```json
386
- * "whiteList": {
387
- * "description": "Only the devices in the list will be exposed.",
388
- * "type": "array",
389
- * "items": {
390
- * "type": "string"
391
- * },
392
- * "uniqueItems": true,
393
- * "selectFrom": "name"
394
- * },
395
- * ```
396
- */
397
84
  setSelectDevice(serial: string, name: string, configUrl?: string, icon?: string, entities?: {
398
85
  name: string;
399
86
  description: string;
400
87
  icon?: string;
401
88
  }[]): void;
402
- /**
403
- * Retrieve a select device by serial.
404
- *
405
- * @param {string} serial - The serial number of the device.
406
- * @returns {{ serial: string; name: string; configUrl?: string; icon?: string; entities?: { name: string; description: string; icon?: string }[] } | undefined} The select device or undefined if not found.
407
- */
408
89
  getSelectDevice(serial: string): {
409
90
  serial: string;
410
91
  name: string;
@@ -416,124 +97,18 @@ export declare class MatterbridgePlatform {
416
97
  icon?: string;
417
98
  }[];
418
99
  } | undefined;
419
- /**
420
- * Set the select device entity in the platform map.
421
- *
422
- * @param {string} serial - The serial number of the device.
423
- * @param {string} entityName - The name of the entity.
424
- * @param {string} entityDescription - The description of the entity.
425
- * @param {string} [entityIcon] - The icon of the entity: 'wifi', 'ble', 'hub', 'component', 'matter'
426
- * @returns {void}
427
- *
428
- * @remarks
429
- * In the schema use selectDeviceEntityFrom: 'name' or 'description'
430
- * ```json
431
- * "deviceEntityBlackList": {
432
- * "description": "List of entities not to be exposed for a single device.",
433
- * "type": "object",
434
- * "uniqueItems": true,
435
- * "selectFrom": "name",
436
- * "additionalProperties": {
437
- * "description": "List of entities not to be exposed for this device.",
438
- * "type": "array",
439
- * "items": {
440
- * "type": "string"
441
- * },
442
- * "uniqueItems": true,
443
- * "selectDeviceEntityFrom": "name"
444
- * }
445
- * },
446
- * ```
447
- */
448
100
  setSelectDeviceEntity(serial: string, entityName: string, entityDescription: string, entityIcon?: string): void;
449
- /**
450
- * Retrieves the select devices from the platform map.
451
- *
452
- * @returns {ApiSelectDevice[]} The selected devices array.
453
- */
454
101
  getSelectDevices(): ApiSelectDevice[];
455
- /**
456
- * Set the select entity in the platform map.
457
- *
458
- * @param {string} name - The entity name.
459
- * @param {string} description - The entity description.
460
- * @param {string} [icon] - The entity icon: 'wifi', 'ble', 'hub', 'component', 'matter'
461
- * @returns {void}
462
- *
463
- * @remarks
464
- * In the schema use selectEntityFrom: 'name' or 'description'
465
- * ```json
466
- * "entityBlackList": {
467
- * "description": "The entities in the list will not be exposed.",
468
- * "type": "array",
469
- * "items": {
470
- * "type": "string"
471
- * },
472
- * "uniqueItems": true,
473
- * "selectEntityFrom": "name"
474
- * },
475
- * ```
476
- */
477
102
  setSelectEntity(name: string, description: string, icon?: string): void;
478
- /**
479
- * Retrieve a select entity by name.
480
- *
481
- * @param {string} name - The name of the entity.
482
- * @returns {{ name: string; description: string; icon?: string } | undefined} The select entity or undefined if not found.
483
- */
484
103
  getSelectEntity(name: string): {
485
104
  name: string;
486
105
  description: string;
487
106
  icon?: string | undefined;
488
107
  } | undefined;
489
- /**
490
- * Retrieve the select entities.
491
- *
492
- * @returns {ApiSelectEntity[]} The select entities array.
493
- */
494
108
  getSelectEntities(): ApiSelectEntity[];
495
- /**
496
- * Verifies if the Matterbridge version meets the required version.
497
- * If not, it destroys the platform cause the implementation may not call destroy().
498
- *
499
- * @param {string} requiredVersion - The required version to compare against.
500
- * @param {boolean} [destroy] - Whether to destroy the platform if the version check fails. Default is true.
501
- * @returns {boolean} True if the Matterbridge version meets or exceeds the required version, false otherwise.
502
- */
503
109
  verifyMatterbridgeVersion(requiredVersion: string, destroy?: boolean): boolean;
504
- /**
505
- * Validates if a device is allowed based on the whitelist and blacklist configurations.
506
- * The blacklist has priority over the whitelist.
507
- *
508
- * @param {string | string[]} device - The device name(s) to validate.
509
- * @param {boolean} [log] - Whether to log the validation result.
510
- * @returns {boolean} - Returns true if the device is allowed, false otherwise.
511
- */
512
110
  validateDevice(device: string | string[], log?: boolean): boolean;
513
- /**
514
- * Validates if an entity is allowed based on the entity blacklist and device-entity blacklist configurations.
515
- *
516
- * @param {string} device - The device to which the entity belongs.
517
- * @param {string} entity - The entity to validate.
518
- * @param {boolean} [log] - Whether to log the validation result.
519
- * @returns {boolean} - Returns true if the entity is allowed, false otherwise.
520
- */
521
111
  validateEntity(device: string, entity: string, log?: boolean): boolean;
522
- /**
523
- * Clears all stored endpoint numbers for checkEndpointNumbers().
524
- *
525
- * @returns {Promise<void>} A promise that resolves when the endpoint numbers have been cleared.
526
- */
527
112
  private clearEndpointNumbers;
528
- /**
529
- * Checks and updates the endpoint numbers for Matterbridge devices.
530
- *
531
- * This method retrieves the list of Matterbridge devices and their child endpoints,
532
- * compares their current endpoint numbers with the stored ones, and updates the storage
533
- * if there are any changes. It logs the changes and updates the endpoint numbers accordingly.
534
- *
535
- * @returns {Promise<number>} The size of the updated endpoint map, or -1 if storage is not available.
536
- */
537
113
  private checkEndpointNumbers;
538
114
  }
539
- //# sourceMappingURL=matterbridgePlatform.d.ts.map