node-switchbot 3.6.0-beta.9 → 3.6.1

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 (255) hide show
  1. package/.github/scripts/npm-version-script-esm-auto.js +207 -0
  2. package/.github/workflows/beta-release.yml +10 -14
  3. package/.github/workflows/release.yml +55 -19
  4. package/CHANGELOG.md +8 -1
  5. package/dist/device.d.ts +15 -2
  6. package/dist/device.d.ts.map +1 -1
  7. package/dist/device.js +38 -0
  8. package/dist/device.js.map +1 -1
  9. package/dist/switchbot-ble.d.ts.map +1 -1
  10. package/dist/switchbot-ble.js +1 -0
  11. package/dist/switchbot-ble.js.map +1 -1
  12. package/dist/types/ble.d.ts +14 -1
  13. package/dist/types/ble.d.ts.map +1 -1
  14. package/dist/types/openapi.d.ts +12 -0
  15. package/dist/types/openapi.d.ts.map +1 -1
  16. package/dist/types/openapi.js.map +1 -1
  17. package/docs/assets/hierarchy.js +1 -1
  18. package/docs/assets/navigation.js +1 -1
  19. package/docs/assets/search.js +1 -1
  20. package/docs/classes/Advertising.html +4 -4
  21. package/docs/classes/ErrorUtils.html +5 -5
  22. package/docs/classes/ParameterChecker.html +10 -10
  23. package/docs/classes/SwitchBotBLE.html +8 -8
  24. package/docs/classes/SwitchBotOpenAPI.html +7 -7
  25. package/docs/classes/SwitchbotDevice.html +12 -12
  26. package/docs/classes/ValidationUtils.html +8 -8
  27. package/docs/classes/WoAirPurifier.html +18 -18
  28. package/docs/classes/WoAirPurifierTable.html +18 -18
  29. package/docs/classes/WoBlindTilt.html +21 -21
  30. package/docs/classes/WoBulb.html +19 -19
  31. package/docs/classes/WoCeilingLight.html +22 -22
  32. package/docs/classes/WoContact.html +13 -13
  33. package/docs/classes/WoCurtain.html +18 -18
  34. package/docs/classes/WoHand.html +18 -18
  35. package/docs/classes/WoHub2.html +13 -13
  36. package/docs/classes/WoHub3.html +13 -13
  37. package/docs/classes/WoHumi.html +20 -20
  38. package/docs/classes/WoHumi2.html +20 -20
  39. package/docs/classes/WoIOSensorTH.html +13 -13
  40. package/docs/classes/WoKeypad.html +13 -13
  41. package/docs/classes/WoLeak.html +13 -13
  42. package/docs/classes/WoPlugMiniJP.html +18 -18
  43. package/docs/classes/WoPlugMiniUS.html +18 -18
  44. package/docs/classes/WoPresence.html +21 -13
  45. package/docs/classes/WoRelaySwitch1.html +15 -15
  46. package/docs/classes/WoRelaySwitch1PM.html +15 -15
  47. package/docs/classes/WoRemote.html +13 -13
  48. package/docs/classes/WoSensorTH.html +12 -12
  49. package/docs/classes/WoSensorTHPlus.html +12 -12
  50. package/docs/classes/WoSensorTHPro.html +12 -12
  51. package/docs/classes/WoSensorTHProCO2.html +12 -12
  52. package/docs/classes/WoSmartLock.html +23 -23
  53. package/docs/classes/WoSmartLockPro.html +23 -23
  54. package/docs/classes/WoStrip.html +20 -20
  55. package/docs/enums/LogLevel.html +2 -2
  56. package/docs/enums/SwitchBotBLEModel.html +3 -2
  57. package/docs/enums/SwitchBotBLEModelFriendlyName.html +3 -2
  58. package/docs/enums/SwitchBotBLEModelName.html +3 -2
  59. package/docs/enums/SwitchBotModel.html +3 -2
  60. package/docs/functions/updateBaseURL.html +1 -1
  61. package/docs/hierarchy.html +1 -1
  62. package/docs/interfaces/AdvertisementData.html +2 -2
  63. package/docs/interfaces/Chars.html +2 -2
  64. package/docs/interfaces/ColorLightServiceDataBase.html +2 -2
  65. package/docs/interfaces/ErrorObject.html +2 -2
  66. package/docs/interfaces/LockBaseServiceData.html +2 -2
  67. package/docs/interfaces/NobleTypes.html +2 -2
  68. package/docs/interfaces/Params.html +2 -2
  69. package/docs/interfaces/PlugMiniServiceDataBase.html +2 -2
  70. package/docs/interfaces/Rule.html +2 -2
  71. package/docs/interfaces/ServiceData.html +2 -2
  72. package/docs/interfaces/SwitchBotBLEDevice.html +3 -2
  73. package/docs/interfaces/SwitchBotScanner.html +3 -3
  74. package/docs/interfaces/TemperatureServiceDataBase.html +2 -2
  75. package/docs/interfaces/WebhookDetail.html +2 -2
  76. package/docs/interfaces/ad.html +2 -2
  77. package/docs/interfaces/body.html +2 -2
  78. package/docs/interfaces/bodyChange.html +2 -2
  79. package/docs/interfaces/deleteWebhookResponse.html +2 -2
  80. package/docs/interfaces/device.html +2 -2
  81. package/docs/interfaces/deviceList.html +2 -2
  82. package/docs/interfaces/deviceStatus.html +2 -2
  83. package/docs/interfaces/deviceStatusRequest.html +2 -2
  84. package/docs/interfaces/deviceWebhook.html +2 -2
  85. package/docs/interfaces/deviceWebhookContext.html +2 -2
  86. package/docs/interfaces/devices.html +2 -2
  87. package/docs/interfaces/infraredRemoteList.html +2 -2
  88. package/docs/interfaces/irdevice.html +2 -2
  89. package/docs/interfaces/pushRequest.html +2 -2
  90. package/docs/interfaces/pushResponse.html +2 -2
  91. package/docs/interfaces/pushResponseBody.html +2 -2
  92. package/docs/interfaces/queryWebhookResponse.html +2 -2
  93. package/docs/interfaces/setupWebhookResponse.html +2 -2
  94. package/docs/interfaces/updateWebhookResponse.html +2 -2
  95. package/docs/interfaces/webhookRequest.html +2 -2
  96. package/docs/modules.html +1 -1
  97. package/docs/types/BLEDeviceServiceData.html +1 -1
  98. package/docs/types/IndoorCam.html +1 -1
  99. package/docs/types/MacAddress.html +1 -1
  100. package/docs/types/airPurifier.html +1 -1
  101. package/docs/types/airPurifierPM25WebhookContext.html +1 -1
  102. package/docs/types/airPurifierServiceData.html +1 -1
  103. package/docs/types/airPurifierStatus.html +1 -1
  104. package/docs/types/airPurifierTable.html +1 -1
  105. package/docs/types/airPurifierTablePM25WebhookContext.html +1 -1
  106. package/docs/types/airPurifierTableServiceData.html +1 -1
  107. package/docs/types/airPurifierTableStatus.html +1 -1
  108. package/docs/types/airPurifierTableVOC.html +1 -1
  109. package/docs/types/airPurifierTableVOCStatus.html +1 -1
  110. package/docs/types/airPurifierTableVOCWebhookContext.html +1 -1
  111. package/docs/types/airPurifierTableWebhookContext.html +1 -1
  112. package/docs/types/airPurifierVOC.html +1 -1
  113. package/docs/types/airPurifierVOCStatus.html +1 -1
  114. package/docs/types/airPurifierVOCWebhookContext.html +1 -1
  115. package/docs/types/airPurifierWebhookContext.html +1 -1
  116. package/docs/types/batteryCirculatorFan.html +1 -1
  117. package/docs/types/batteryCirculatorFanServiceData.html +1 -1
  118. package/docs/types/batteryCirculatorFanStatus.html +1 -1
  119. package/docs/types/batteryCirculatorFanWebhookContext.html +1 -1
  120. package/docs/types/blindTilt.html +1 -1
  121. package/docs/types/blindTiltServiceData.html +1 -1
  122. package/docs/types/blindTiltStatus.html +1 -1
  123. package/docs/types/blindTiltWebhookContext.html +1 -1
  124. package/docs/types/bot.html +1 -1
  125. package/docs/types/botServiceData.html +1 -1
  126. package/docs/types/botStatus.html +1 -1
  127. package/docs/types/botWebhookContext.html +1 -1
  128. package/docs/types/ceilingLight.html +1 -1
  129. package/docs/types/ceilingLightPro.html +1 -1
  130. package/docs/types/ceilingLightProServiceData.html +1 -1
  131. package/docs/types/ceilingLightProStatus.html +1 -1
  132. package/docs/types/ceilingLightProWebhookContext.html +1 -1
  133. package/docs/types/ceilingLightServiceData.html +1 -1
  134. package/docs/types/ceilingLightStatus.html +1 -1
  135. package/docs/types/ceilingLightWebhookContext.html +1 -1
  136. package/docs/types/circulatorFanStatus.html +1 -1
  137. package/docs/types/circulatorFanWebhookContext.html +1 -1
  138. package/docs/types/colorBulb.html +1 -1
  139. package/docs/types/colorBulbServiceData.html +1 -1
  140. package/docs/types/colorBulbStatus.html +1 -1
  141. package/docs/types/colorBulbWebhookContext.html +1 -1
  142. package/docs/types/commandType.html +1 -1
  143. package/docs/types/contactSensor.html +1 -1
  144. package/docs/types/contactSensorServiceData.html +1 -1
  145. package/docs/types/contactSensorStatus.html +1 -1
  146. package/docs/types/contactSensorWebhookContext.html +1 -1
  147. package/docs/types/curtain.html +1 -1
  148. package/docs/types/curtain3.html +1 -1
  149. package/docs/types/curtain3ServiceData.html +1 -1
  150. package/docs/types/curtain3WebhookContext.html +1 -1
  151. package/docs/types/curtainServiceData.html +1 -1
  152. package/docs/types/curtainStatus.html +1 -1
  153. package/docs/types/curtainWebhookContext.html +1 -1
  154. package/docs/types/floorCleaningRobotS10.html +1 -1
  155. package/docs/types/floorCleaningRobotS10Status.html +1 -1
  156. package/docs/types/floorCleaningRobotS10WebhookContext.html +1 -1
  157. package/docs/types/hub2.html +1 -1
  158. package/docs/types/hub2ServiceData.html +1 -1
  159. package/docs/types/hub2Status.html +1 -1
  160. package/docs/types/hub2WebhookContext.html +1 -1
  161. package/docs/types/hub3ServiceData.html +1 -1
  162. package/docs/types/humidifier.html +1 -1
  163. package/docs/types/humidifier2ServiceData.html +1 -1
  164. package/docs/types/humidifier2Status.html +1 -1
  165. package/docs/types/humidifier2WebhookContext.html +1 -1
  166. package/docs/types/humidifierServiceData.html +1 -1
  167. package/docs/types/humidifierStatus.html +1 -1
  168. package/docs/types/humidifierWebhookContext.html +1 -1
  169. package/docs/types/indoorCameraWebhookContext.html +1 -1
  170. package/docs/types/keypad.html +1 -1
  171. package/docs/types/keypadDetectorServiceData.html +1 -1
  172. package/docs/types/keypadTouch.html +1 -1
  173. package/docs/types/keypadTouchWebhookContext.html +1 -1
  174. package/docs/types/keypadWebhookContext.html +1 -1
  175. package/docs/types/lock.html +1 -1
  176. package/docs/types/lockPro.html +1 -1
  177. package/docs/types/lockProServiceData.html +1 -1
  178. package/docs/types/lockProStatus.html +1 -1
  179. package/docs/types/lockProWebhookContext.html +1 -1
  180. package/docs/types/lockServiceData.html +1 -1
  181. package/docs/types/lockStatus.html +1 -1
  182. package/docs/types/lockWebhookContext.html +1 -1
  183. package/docs/types/meter.html +1 -1
  184. package/docs/types/meterPlus.html +1 -1
  185. package/docs/types/meterPlusServiceData.html +1 -1
  186. package/docs/types/meterPlusStatus.html +1 -1
  187. package/docs/types/meterPlusWebhookContext.html +1 -1
  188. package/docs/types/meterPro.html +1 -1
  189. package/docs/types/meterProCO2ServiceData.html +1 -1
  190. package/docs/types/meterProCO2Status.html +1 -1
  191. package/docs/types/meterProCO2WebhookContext.html +1 -1
  192. package/docs/types/meterProServiceData.html +1 -1
  193. package/docs/types/meterProStatus.html +1 -1
  194. package/docs/types/meterProWebhookContext.html +1 -1
  195. package/docs/types/meterServiceData.html +1 -1
  196. package/docs/types/meterStatus.html +1 -1
  197. package/docs/types/meterWebhookContext.html +1 -1
  198. package/docs/types/motionSensor.html +1 -1
  199. package/docs/types/motionSensorServiceData.html +1 -1
  200. package/docs/types/motionSensorStatus.html +1 -1
  201. package/docs/types/motionSensorWebhookContext.html +1 -1
  202. package/docs/types/occupancySensor.html +1 -0
  203. package/docs/types/occupancySensorStatus.html +1 -0
  204. package/docs/types/occupancySensorWebhookContext.html +1 -0
  205. package/docs/types/onadvertisement.html +1 -1
  206. package/docs/types/ondiscover.html +1 -1
  207. package/docs/types/outdoorMeter.html +1 -1
  208. package/docs/types/outdoorMeterServiceData.html +1 -1
  209. package/docs/types/outdoorMeterStatus.html +1 -1
  210. package/docs/types/outdoorMeterWebhookContext.html +1 -1
  211. package/docs/types/panTiltCamWebhookContext.html +1 -1
  212. package/docs/types/pantiltCam.html +1 -1
  213. package/docs/types/pantiltCam2k.html +1 -1
  214. package/docs/types/plug.html +1 -1
  215. package/docs/types/plugMini.html +1 -1
  216. package/docs/types/plugMiniJPServiceData.html +1 -1
  217. package/docs/types/plugMiniJPWebhookContext.html +1 -1
  218. package/docs/types/plugMiniStatus.html +1 -1
  219. package/docs/types/plugMiniUSServiceData.html +1 -1
  220. package/docs/types/plugMiniUSWebhookContext.html +1 -1
  221. package/docs/types/plugStatus.html +1 -1
  222. package/docs/types/plugWebhookContext.html +1 -1
  223. package/docs/types/presenceSensorServiceData.html +1 -0
  224. package/docs/types/relaySwitch1Context.html +1 -1
  225. package/docs/types/relaySwitch1PMContext.html +1 -1
  226. package/docs/types/relaySwitch1PMServiceData.html +1 -1
  227. package/docs/types/relaySwitch1PMStatus.html +1 -1
  228. package/docs/types/relaySwitch1ServiceData.html +1 -1
  229. package/docs/types/relaySwitch1Status.html +1 -1
  230. package/docs/types/remote.html +1 -1
  231. package/docs/types/remoteServiceData.html +1 -1
  232. package/docs/types/robotVacuumCleanerS1.html +1 -1
  233. package/docs/types/robotVacuumCleanerS1Plus.html +1 -1
  234. package/docs/types/robotVacuumCleanerS1PlusStatus.html +1 -1
  235. package/docs/types/robotVacuumCleanerS1PlusWebhookContext.html +1 -1
  236. package/docs/types/robotVacuumCleanerS1Status.html +1 -1
  237. package/docs/types/robotVacuumCleanerS1WebhookContext.html +1 -1
  238. package/docs/types/robotVacuumCleanerServiceData.html +1 -1
  239. package/docs/types/stripLight.html +1 -1
  240. package/docs/types/stripLightServiceData.html +1 -1
  241. package/docs/types/stripLightStatus.html +1 -1
  242. package/docs/types/stripLightWebhookContext.html +1 -1
  243. package/docs/types/waterLeakDetector.html +1 -1
  244. package/docs/types/waterLeakDetectorServiceData.html +1 -1
  245. package/docs/types/waterLeakDetectorStatus.html +1 -1
  246. package/docs/types/waterLeakDetectorWebhookContext.html +1 -1
  247. package/docs/variables/parameterChecker.html +1 -1
  248. package/docs/variables/urls.html +1 -1
  249. package/package.json +7 -7
  250. package/.github/npm-version-script-esm.js +0 -97
  251. package/.github/workflows/build.yml +0 -18
  252. package/.github/workflows/changerelease.yml +0 -11
  253. package/.github/workflows/dependabot.yml +0 -13
  254. package/.github/workflows/labeler.yml +0 -16
  255. package/.github/workflows/release-drafter.yml +0 -14
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>waterLeakDetector | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">waterLeakDetector</a></li></ul><h1>Type Alias waterLeakDetector</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">waterLeakDetector</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/device.html" class="tsd-signature-type tsd-kind-interface">device</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/67a89edced9518aa50a10888fba53e2acf0df062/src/types/openapi.ts#L88">src/types/openapi.ts:88</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>waterLeakDetector | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">waterLeakDetector</a></li></ul><h1>Type Alias waterLeakDetector</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">waterLeakDetector</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/device.html" class="tsd-signature-type tsd-kind-interface">device</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/db4d02c832fdd85dfddbaf90d0a1005d065dc530/src/types/openapi.ts#L90">src/types/openapi.ts:90</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>waterLeakDetectorServiceData | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">waterLeakDetectorServiceData</a></li></ul><h1>Type Alias waterLeakDetectorServiceData</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">waterLeakDetectorServiceData</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BLEServiceData</span> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span><br/>    <span class="tsd-kind-property">battery</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">leak</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">low_battery</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">model</span><span class="tsd-signature-symbol">:</span> <a href="../enums/SwitchBotBLEModel.html#leak" class="tsd-signature-type tsd-kind-enum-member">Leak</a><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">modelFriendlyName</span><span class="tsd-signature-symbol">:</span> <a href="../enums/SwitchBotBLEModelFriendlyName.html#leak" class="tsd-signature-type tsd-kind-enum-member">Leak</a><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">modelName</span><span class="tsd-signature-symbol">:</span> <a href="../enums/SwitchBotBLEModelName.html#leak" class="tsd-signature-type tsd-kind-enum-member">Leak</a><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">tampered</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/67a89edced9518aa50a10888fba53e2acf0df062/src/types/ble.ts#L289">src/types/ble.ts:289</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>waterLeakDetectorServiceData | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">waterLeakDetectorServiceData</a></li></ul><h1>Type Alias waterLeakDetectorServiceData</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">waterLeakDetectorServiceData</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BLEServiceData</span> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span><br/>    <span class="tsd-kind-property">battery</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">leak</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">low_battery</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">model</span><span class="tsd-signature-symbol">:</span> <a href="../enums/SwitchBotBLEModel.html#leak" class="tsd-signature-type tsd-kind-enum-member">Leak</a><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">modelFriendlyName</span><span class="tsd-signature-symbol">:</span> <a href="../enums/SwitchBotBLEModelFriendlyName.html#leak" class="tsd-signature-type tsd-kind-enum-member">Leak</a><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">modelName</span><span class="tsd-signature-symbol">:</span> <a href="../enums/SwitchBotBLEModelName.html#leak" class="tsd-signature-type tsd-kind-enum-member">Leak</a><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">tampered</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/db4d02c832fdd85dfddbaf90d0a1005d065dc530/src/types/ble.ts#L302">src/types/ble.ts:302</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>waterLeakDetectorStatus | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">waterLeakDetectorStatus</a></li></ul><h1>Type Alias waterLeakDetectorStatus</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">waterLeakDetectorStatus</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/deviceStatus.html" class="tsd-signature-type tsd-kind-interface">deviceStatus</a> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">battery</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">status</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">0</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">1</span> <span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/67a89edced9518aa50a10888fba53e2acf0df062/src/types/openapi.ts#L272">src/types/openapi.ts:272</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>waterLeakDetectorStatus | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">waterLeakDetectorStatus</a></li></ul><h1>Type Alias waterLeakDetectorStatus</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">waterLeakDetectorStatus</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/deviceStatus.html" class="tsd-signature-type tsd-kind-interface">deviceStatus</a> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">battery</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">status</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">0</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">1</span> <span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/db4d02c832fdd85dfddbaf90d0a1005d065dc530/src/types/openapi.ts#L281">src/types/openapi.ts:281</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>waterLeakDetectorWebhookContext | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">waterLeakDetectorWebhookContext</a></li></ul><h1>Type Alias waterLeakDetectorWebhookContext</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">waterLeakDetectorWebhookContext</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/deviceWebhookContext.html" class="tsd-signature-type tsd-kind-interface">deviceWebhookContext</a> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span><br/>    <span class="tsd-kind-property">battery</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">detectionState</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">0</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">1</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/67a89edced9518aa50a10888fba53e2acf0df062/src/types/openapi.ts#L521">src/types/openapi.ts:521</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>waterLeakDetectorWebhookContext | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">waterLeakDetectorWebhookContext</a></li></ul><h1>Type Alias waterLeakDetectorWebhookContext</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">waterLeakDetectorWebhookContext</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/deviceWebhookContext.html" class="tsd-signature-type tsd-kind-interface">deviceWebhookContext</a> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span><br/>    <span class="tsd-kind-property">battery</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-kind-property">detectionState</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">0</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">1</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/db4d02c832fdd85dfddbaf90d0a1005d065dc530/src/types/openapi.ts#L536">src/types/openapi.ts:536</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>parameterChecker | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">parameterChecker</a></li></ul><h1>Variable parameterChecker<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">parameterChecker</span><span class="tsd-signature-symbol">:</span> <a href="../classes/ParameterChecker.html" class="tsd-signature-type tsd-kind-class">ParameterChecker</a><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/67a89edced9518aa50a10888fba53e2acf0df062/src/parameter-checker.ts#L310">src/parameter-checker.ts:310</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>parameterChecker | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">parameterChecker</a></li></ul><h1>Variable parameterChecker<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">parameterChecker</span><span class="tsd-signature-symbol">:</span> <a href="../classes/ParameterChecker.html" class="tsd-signature-type tsd-kind-class">ParameterChecker</a><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/db4d02c832fdd85dfddbaf90d0a1005d065dc530/src/parameter-checker.ts#L310">src/parameter-checker.ts:310</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>urls | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">urls</a></li></ul><h1>Variable urls<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">urls</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">baseURL</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">deleteWebhook</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">devicesURL</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">queryWebhook</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">setupWebhook</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">updateWebhook</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="baseurl"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">baseURL</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5 id="deletewebhook"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">deleteWebhook</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5 id="devicesurl"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">devicesURL</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5 id="querywebhook"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">queryWebhook</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5 id="setupwebhook"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">setupWebhook</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5 id="updatewebhook"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">updateWebhook</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li></ul></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/67a89edced9518aa50a10888fba53e2acf0df062/src/settings.ts#L21">src/settings.ts:21</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>urls | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">urls</a></li></ul><h1>Variable urls<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">urls</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">baseURL</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">deleteWebhook</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">devicesURL</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">queryWebhook</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">setupWebhook</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">updateWebhook</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="baseurl"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">baseURL</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5 id="deletewebhook"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">deleteWebhook</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5 id="devicesurl"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">devicesURL</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5 id="querywebhook"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">queryWebhook</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5 id="setupwebhook"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">setupWebhook</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5 id="updatewebhook"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-accessor">updateWebhook</span><span class="tsd-signature-symbol">():</span> <span class="tsd-signature-type">string</span></h5></li></ul></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/db4d02c832fdd85dfddbaf90d0a1005d065dc530/src/settings.ts#L21">src/settings.ts:21</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-switchbot",
3
3
  "type": "module",
4
- "version": "3.6.0-beta.9",
4
+ "version": "3.6.1",
5
5
  "description": "The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).",
6
6
  "author": "OpenWonderLabs (https://github.com/OpenWonderLabs)",
7
7
  "license": "MIT",
@@ -51,9 +51,9 @@
51
51
  },
52
52
  "readmeFilename": "README.md",
53
53
  "dependencies": {
54
- "@stoprocent/noble": "^2.3.4",
54
+ "@stoprocent/noble": "^2.3.5",
55
55
  "async-mutex": "^0.5.0",
56
- "undici": "7.13.0"
56
+ "undici": "^7.15.0"
57
57
  },
58
58
  "optionalDependencies": {
59
59
  "@stoprocent/bluetooth-hci-socket": "^2.2.3"
@@ -64,19 +64,19 @@
64
64
  "@types/debug": "^4.1.12",
65
65
  "@types/fs-extra": "^11.0.4",
66
66
  "@types/mdast": "^4.0.4",
67
- "@types/node": "^24.1.0",
67
+ "@types/node": "^24.3.0",
68
68
  "@types/semver": "^7.7.0",
69
69
  "@types/source-map-support": "^0.5.10",
70
70
  "@vitest/coverage-v8": "^3.2.4",
71
- "eslint": "^9.32.0",
71
+ "eslint": "^9.34.0",
72
72
  "eslint-plugin-format": "^1.0.1",
73
73
  "eslint-plugin-import": "^2.32.0",
74
74
  "eslint-plugin-import-x": "^4.16.1",
75
75
  "nodemon": "^3.1.10",
76
76
  "shx": "^0.4.0",
77
77
  "ts-node": "^10.9.2",
78
- "typedoc": "^0.28.9",
78
+ "typedoc": "^0.28.11",
79
79
  "typescript": "^5.9.2",
80
80
  "vitest": "^3.2.4"
81
81
  }
82
- }
82
+ }
@@ -1,97 +0,0 @@
1
- #!/bin/env node
2
-
3
- /**
4
- * This scripts queries the npm registry to pull out the latest version for a given tag.
5
- */
6
-
7
- import assert from 'node:assert'
8
- import child_process from 'node:child_process'
9
- import fs from 'node:fs'
10
- import process from 'node:process'
11
-
12
- const BRANCH_VERSION_PATTERN = /^([A-Z]+)-(\d+\.\d+\.\d+)$/i
13
-
14
- // Load the contents of the package.json file
15
- const packageJSON = JSON.parse(fs.readFileSync('package.json', 'utf8'))
16
-
17
- const refArgument = process.argv[2]
18
- const tagArgument = process.argv[3] || 'latest'
19
-
20
- if (!refArgument) {
21
- console.error('ref argument is missing')
22
- console.error('Usage: npm-version-script-esm.js <ref> [tag]')
23
- process.exit(1)
24
- }
25
-
26
- /**
27
- * Queries the NPM registry for the latest version for the provided base version and tag.
28
- * If the tag is latest, then the base version is returned if it exists. For other tags, the latest
29
- * version found for that base version and tag is returned.
30
- * @param baseVersion The base version to query for, e.g. 2.0.0
31
- * @param tag The tag to query for, e.g. beta or latest
32
- * @returns {string} Returns the version, or '' if not found
33
- */
34
- function getTagVersionFromNpm(baseVersion, tag) {
35
- try {
36
- return JSON.parse(child_process.execSync(`npm info ${packageJSON.name} versions --json`).toString('utf8').trim())
37
- .filter(v => tag === 'latest' ? v === baseVersion : v.startsWith(`${baseVersion}-${tag}.`)) // find all published versions for this base version and tag
38
- .reduce((_, current) => current, '') // choose the last as they're sorted in ascending order, or '' if there are none
39
- } catch (e) {
40
- console.error(`Failed to query the npm registry for the latest version for tag: ${tag}`, e)
41
- // throw e;
42
- return ''
43
- }
44
- }
45
-
46
- function desiredTargetVersion(ref) {
47
- // ref is a GitHub action ref string
48
- if (ref.startsWith('refs/pull/')) {
49
- throw new Error('The version script was executed inside a PR!')
50
- }
51
-
52
- assert(ref.startsWith('refs/heads/'))
53
- const branchName = ref.slice('refs/heads/'.length)
54
-
55
- const results = branchName.match(BRANCH_VERSION_PATTERN)
56
- if (results !== null) {
57
- if (results[1] !== tagArgument) {
58
- console.warn(`The base branch name (${results[1]}) differs from the tag name ${tagArgument}`)
59
- }
60
-
61
- return results[2]
62
- }
63
-
64
- throw new Error(`Malformed branch name for ref: ${ref}. Can't derive the base version. Use a branch name like: beta-x.x.x or alpha-x.x.x`)
65
- }
66
-
67
- // derive the base version from the branch ref
68
- const baseVersion = desiredTargetVersion(refArgument)
69
-
70
- // query the npm registry for the latest version of the provided tag name
71
- const latestReleasedVersion = getTagVersionFromNpm(baseVersion, tagArgument) // e.g. 0.7.0-beta.12
72
-
73
- let publishTag
74
-
75
- if (latestReleasedVersion) {
76
- console.warn(`Latest published version for ${baseVersion} with tag ${tagArgument} is ${latestReleasedVersion}`)
77
- publishTag = latestReleasedVersion // set this released beta or alpha to be incremented
78
- } else {
79
- console.warn(`No published versions for ${baseVersion} with tag ${tagArgument}`)
80
- publishTag = baseVersion // start off with a new beta or alpha version
81
- }
82
-
83
- if (packageJSON.version !== publishTag) {
84
- // report the change for CI
85
- console.warn(`Changing version in package.json from ${packageJSON.version} to ${publishTag}`)
86
-
87
- // save the package.json
88
- packageJSON.version = publishTag
89
- fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2))
90
-
91
- // perform the same change to the package-lock.json
92
- const packageLockJSON = JSON.parse(fs.readFileSync('package-lock.json', 'utf8'))
93
- packageLockJSON.version = publishTag
94
- fs.writeFileSync('package-lock.json', JSON.stringify(packageLockJSON, null, 2))
95
- } else {
96
- console.warn(`Leaving version in package.json at ${packageJSON.version}`)
97
- }
@@ -1,18 +0,0 @@
1
- name: Node Build
2
-
3
- on:
4
- push:
5
- branches: [latest]
6
- pull_request:
7
- workflow_dispatch:
8
-
9
- jobs:
10
- build_and_test:
11
- uses: OpenWonderLabs/.github/.github/workflows/nodejs-build-and-test.yml@latest
12
- with:
13
- enable_coverage: true
14
- secrets:
15
- token: ${{ secrets.GITHUB_TOKEN }}
16
- lint:
17
- needs: build_and_test
18
- uses: OpenWonderLabs/.github/.github/workflows/eslint.yml@latest
@@ -1,11 +0,0 @@
1
- name: Changelog to Release
2
-
3
- on:
4
- release:
5
- types: [published]
6
-
7
- jobs:
8
- changerelease:
9
- uses: OpenWonderLabs/.github/.github/workflows/changerelease.yml@latest
10
- secrets:
11
- token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,13 +0,0 @@
1
- name: AutoDependabot
2
-
3
- on:
4
- pull_request:
5
- branches: [beta, latest]
6
- pull_request_target:
7
- branches: [beta, latest]
8
-
9
- jobs:
10
- dependabot:
11
- uses: OpenWonderLabs/.github/.github/workflows/dependabot.yml@latest
12
- secrets:
13
- token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,16 +0,0 @@
1
- # This workflow will triage pull requests and apply a label based on the
2
- # paths that are modified in the pull request.
3
- #
4
- # To use this workflow, you will need to set up a .github/labeler.yml
5
- # file with configuration. For more information, see:
6
- # https://github.com/actions/labeler/blob/main/README.md
7
-
8
- name: Labeler
9
-
10
- on: pull_request_target
11
-
12
- jobs:
13
- labeler:
14
- uses: OpenWonderLabs/.github/.github/workflows/labeler.yml@latest
15
- secrets:
16
- token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,14 +0,0 @@
1
- name: Release Drafter
2
-
3
- on:
4
- push:
5
- branches: [latest]
6
- pull_request: # required for autolabeler
7
- types: [opened, reopened, synchronize]
8
- workflow_dispatch:
9
-
10
- jobs:
11
- release-drafter:
12
- uses: OpenWonderLabs/.github/.github/workflows/release-drafter.yml@latest
13
- secrets:
14
- token: ${{ secrets.GITHUB_TOKEN }}