homebridge-config-ui-x 5.9.1-beta.1 → 5.9.1-beta.11

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 (383) hide show
  1. package/CHANGELOG.md +23 -3
  2. package/TODO-MATTER.md +15 -0
  3. package/dist/app.controller.d.ts +1 -1
  4. package/dist/app.controller.js +14 -12
  5. package/dist/app.controller.js.map +1 -1
  6. package/dist/app.gateway.js +7 -10
  7. package/dist/app.gateway.js.map +1 -1
  8. package/dist/app.module.js +42 -43
  9. package/dist/app.module.js.map +1 -1
  10. package/dist/app.service.js +4 -7
  11. package/dist/app.service.js.map +1 -1
  12. package/dist/bin/base-platform.d.ts +1 -1
  13. package/dist/bin/base-platform.js +11 -17
  14. package/dist/bin/base-platform.js.map +1 -1
  15. package/dist/bin/fork.js +7 -45
  16. package/dist/bin/fork.js.map +1 -1
  17. package/dist/bin/hb-service.js +224 -243
  18. package/dist/bin/hb-service.js.map +1 -1
  19. package/dist/bin/platforms/darwin.d.ts +1 -1
  20. package/dist/bin/platforms/darwin.js +61 -65
  21. package/dist/bin/platforms/darwin.js.map +1 -1
  22. package/dist/bin/platforms/freebsd.d.ts +1 -1
  23. package/dist/bin/platforms/freebsd.js +42 -47
  24. package/dist/bin/platforms/freebsd.js.map +1 -1
  25. package/dist/bin/platforms/linux.d.ts +1 -1
  26. package/dist/bin/platforms/linux.js +127 -132
  27. package/dist/bin/platforms/linux.js.map +1 -1
  28. package/dist/bin/platforms/win32.d.ts +1 -1
  29. package/dist/bin/platforms/win32.js +30 -36
  30. package/dist/bin/platforms/win32.js.map +1 -1
  31. package/dist/bin/standalone.js +15 -53
  32. package/dist/bin/standalone.js.map +1 -1
  33. package/dist/core/auth/auth.controller.d.ts +5 -4
  34. package/dist/core/auth/auth.controller.js +40 -39
  35. package/dist/core/auth/auth.controller.js.map +1 -1
  36. package/dist/core/auth/auth.dto.js +17 -18
  37. package/dist/core/auth/auth.dto.js.map +1 -1
  38. package/dist/core/auth/auth.module.js +28 -31
  39. package/dist/core/auth/auth.module.js.map +1 -1
  40. package/dist/core/auth/auth.service.d.ts +3 -3
  41. package/dist/core/auth/auth.service.js +65 -62
  42. package/dist/core/auth/auth.service.js.map +1 -1
  43. package/dist/core/auth/guards/admin.guard.js +4 -7
  44. package/dist/core/auth/guards/admin.guard.js.map +1 -1
  45. package/dist/core/auth/guards/custom.guard.js +6 -9
  46. package/dist/core/auth/guards/custom.guard.js.map +1 -1
  47. package/dist/core/auth/guards/ws-admin-guard.d.ts +2 -2
  48. package/dist/core/auth/guards/ws-admin-guard.js +13 -11
  49. package/dist/core/auth/guards/ws-admin-guard.js.map +1 -1
  50. package/dist/core/auth/guards/ws.guard.d.ts +2 -2
  51. package/dist/core/auth/guards/ws.guard.js +13 -11
  52. package/dist/core/auth/guards/ws.guard.js.map +1 -1
  53. package/dist/core/auth/jwt.strategy.d.ts +3 -2
  54. package/dist/core/auth/jwt.strategy.js +21 -16
  55. package/dist/core/auth/jwt.strategy.js.map +1 -1
  56. package/dist/core/config/config.interfaces.d.ts +8 -1
  57. package/dist/core/config/config.interfaces.js +1 -2
  58. package/dist/core/config/config.module.js +8 -10
  59. package/dist/core/config/config.module.js.map +1 -1
  60. package/dist/core/config/config.service.d.ts +4 -3
  61. package/dist/core/config/config.service.js +90 -83
  62. package/dist/core/config/config.service.js.map +1 -1
  63. package/dist/core/config/config.startup.d.ts +1 -1
  64. package/dist/core/config/config.startup.js +23 -28
  65. package/dist/core/config/config.startup.js.map +1 -1
  66. package/dist/core/feature-flags/feature-flags.registry.js +2 -5
  67. package/dist/core/feature-flags/feature-flags.registry.js.map +1 -1
  68. package/dist/core/homebridge-ipc/homebridge-ipc.module.js +11 -14
  69. package/dist/core/homebridge-ipc/homebridge-ipc.module.js.map +1 -1
  70. package/dist/core/homebridge-ipc/homebridge-ipc.service.d.ts +4 -4
  71. package/dist/core/homebridge-ipc/homebridge-ipc.service.js +25 -19
  72. package/dist/core/homebridge-ipc/homebridge-ipc.service.js.map +1 -1
  73. package/dist/core/logger/logger.module.js +8 -10
  74. package/dist/core/logger/logger.module.js.map +1 -1
  75. package/dist/core/logger/logger.service.js +13 -23
  76. package/dist/core/logger/logger.service.js.map +1 -1
  77. package/dist/core/node-pty/node-pty.module.js +7 -10
  78. package/dist/core/node-pty/node-pty.module.js.map +1 -1
  79. package/dist/core/node-pty/node-pty.service.js +6 -11
  80. package/dist/core/node-pty/node-pty.service.js.map +1 -1
  81. package/dist/core/node-version.constants.js +4 -11
  82. package/dist/core/node-version.constants.js.map +1 -1
  83. package/dist/core/scheduler/scheduler.module.js +15 -10
  84. package/dist/core/scheduler/scheduler.module.js.map +1 -1
  85. package/dist/core/scheduler/scheduler.service.d.ts +12 -1
  86. package/dist/core/scheduler/scheduler.service.js +101 -13
  87. package/dist/core/scheduler/scheduler.service.js.map +1 -1
  88. package/dist/core/spa/spa-html.service.js +9 -15
  89. package/dist/core/spa/spa-html.service.js.map +1 -1
  90. package/dist/core/spa/spa.filter.d.ts +1 -1
  91. package/dist/core/spa/spa.filter.js +11 -16
  92. package/dist/core/spa/spa.filter.js.map +1 -1
  93. package/dist/core/ssl/ssl-cert-generator.service.js +34 -36
  94. package/dist/core/ssl/ssl-cert-generator.service.js.map +1 -1
  95. package/dist/env-setup.d.ts +1 -0
  96. package/dist/env-setup.js +7 -0
  97. package/dist/env-setup.js.map +1 -0
  98. package/dist/globalDefaults.d.ts +1 -0
  99. package/dist/globalDefaults.js +1 -0
  100. package/dist/index.d.ts +1 -1
  101. package/dist/index.js +16 -19
  102. package/dist/index.js.map +1 -1
  103. package/dist/main.d.ts +5 -3
  104. package/dist/main.js +44 -51
  105. package/dist/main.js.map +1 -1
  106. package/dist/modules/accessories/accessories.controller.d.ts +3 -3
  107. package/dist/modules/accessories/accessories.controller.js +28 -29
  108. package/dist/modules/accessories/accessories.controller.js.map +1 -1
  109. package/dist/modules/accessories/accessories.dto.js +11 -13
  110. package/dist/modules/accessories/accessories.dto.js.map +1 -1
  111. package/dist/modules/accessories/accessories.gateway.d.ts +2 -2
  112. package/dist/modules/accessories/accessories.gateway.js +18 -16
  113. package/dist/modules/accessories/accessories.gateway.js.map +1 -1
  114. package/dist/modules/accessories/accessories.interfaces.d.ts +94 -0
  115. package/dist/modules/accessories/accessories.interfaces.js +2 -0
  116. package/dist/modules/accessories/accessories.interfaces.js.map +1 -0
  117. package/dist/modules/accessories/accessories.module.js +19 -20
  118. package/dist/modules/accessories/accessories.module.js.map +1 -1
  119. package/dist/modules/accessories/accessories.service.d.ts +23 -5
  120. package/dist/modules/accessories/accessories.service.js +316 -51
  121. package/dist/modules/accessories/accessories.service.js.map +1 -1
  122. package/dist/modules/backup/backup.controller.d.ts +4 -4
  123. package/dist/modules/backup/backup.controller.js +68 -67
  124. package/dist/modules/backup/backup.controller.js.map +1 -1
  125. package/dist/modules/backup/backup.gateway.d.ts +4 -4
  126. package/dist/modules/backup/backup.gateway.js +25 -21
  127. package/dist/modules/backup/backup.gateway.js.map +1 -1
  128. package/dist/modules/backup/backup.module.js +22 -25
  129. package/dist/modules/backup/backup.module.js.map +1 -1
  130. package/dist/modules/backup/backup.service.d.ts +5 -5
  131. package/dist/modules/backup/backup.service.js +143 -133
  132. package/dist/modules/backup/backup.service.js.map +1 -1
  133. package/dist/modules/child-bridges/child-bridges.gateway.d.ts +3 -3
  134. package/dist/modules/child-bridges/child-bridges.gateway.js +23 -21
  135. package/dist/modules/child-bridges/child-bridges.gateway.js.map +1 -1
  136. package/dist/modules/child-bridges/child-bridges.interfaces.js +1 -2
  137. package/dist/modules/child-bridges/child-bridges.module.js +19 -22
  138. package/dist/modules/child-bridges/child-bridges.module.js.map +1 -1
  139. package/dist/modules/child-bridges/child-bridges.service.d.ts +3 -3
  140. package/dist/modules/child-bridges/child-bridges.service.js +15 -11
  141. package/dist/modules/child-bridges/child-bridges.service.js.map +1 -1
  142. package/dist/modules/config-editor/config-editor.controller.d.ts +13 -11
  143. package/dist/modules/config-editor/config-editor.controller.js +168 -103
  144. package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
  145. package/dist/modules/config-editor/config-editor.dto.d.ts +6 -0
  146. package/dist/modules/config-editor/config-editor.dto.js +40 -0
  147. package/dist/modules/config-editor/config-editor.dto.js.map +1 -0
  148. package/dist/modules/config-editor/config-editor.module.js +21 -24
  149. package/dist/modules/config-editor/config-editor.module.js.map +1 -1
  150. package/dist/modules/config-editor/config-editor.service.d.ts +11 -8
  151. package/dist/modules/config-editor/config-editor.service.js +123 -66
  152. package/dist/modules/config-editor/config-editor.service.js.map +1 -1
  153. package/dist/modules/custom-plugins/custom-plugins.module.js +10 -13
  154. package/dist/modules/custom-plugins/custom-plugins.module.js.map +1 -1
  155. package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.controller.d.ts +2 -2
  156. package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.controller.js +21 -19
  157. package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.controller.js.map +1 -1
  158. package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.module.js +14 -17
  159. package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.module.js.map +1 -1
  160. package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.service.d.ts +2 -2
  161. package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.service.js +18 -15
  162. package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.service.js.map +1 -1
  163. package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.controller.d.ts +2 -2
  164. package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.controller.js +21 -19
  165. package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.controller.js.map +1 -1
  166. package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.module.js +14 -17
  167. package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.module.js.map +1 -1
  168. package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.service.d.ts +2 -2
  169. package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.service.js +18 -15
  170. package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.service.js.map +1 -1
  171. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.controller.d.ts +2 -2
  172. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.controller.js +18 -19
  173. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.controller.js.map +1 -1
  174. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.gateway.d.ts +2 -2
  175. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.gateway.js +15 -13
  176. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.gateway.js.map +1 -1
  177. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.module.js +18 -21
  178. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.module.js.map +1 -1
  179. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.d.ts +8 -8
  180. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +47 -41
  181. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
  182. package/dist/modules/log/log.gateway.d.ts +3 -3
  183. package/dist/modules/log/log.gateway.js +15 -13
  184. package/dist/modules/log/log.gateway.js.map +1 -1
  185. package/dist/modules/log/log.interfaces.js +1 -2
  186. package/dist/modules/log/log.module.js +14 -17
  187. package/dist/modules/log/log.module.js.map +1 -1
  188. package/dist/modules/log/log.service.d.ts +5 -5
  189. package/dist/modules/log/log.service.js +47 -43
  190. package/dist/modules/log/log.service.js.map +1 -1
  191. package/dist/modules/platform-tools/docker/docker.controller.d.ts +1 -1
  192. package/dist/modules/platform-tools/docker/docker.controller.js +24 -25
  193. package/dist/modules/platform-tools/docker/docker.controller.js.map +1 -1
  194. package/dist/modules/platform-tools/docker/docker.module.js +14 -17
  195. package/dist/modules/platform-tools/docker/docker.module.js.map +1 -1
  196. package/dist/modules/platform-tools/docker/docker.service.d.ts +2 -2
  197. package/dist/modules/platform-tools/docker/docker.service.js +20 -16
  198. package/dist/modules/platform-tools/docker/docker.service.js.map +1 -1
  199. package/dist/modules/platform-tools/hb-service/hb-service.controller.d.ts +2 -2
  200. package/dist/modules/platform-tools/hb-service/hb-service.controller.js +35 -36
  201. package/dist/modules/platform-tools/hb-service/hb-service.controller.js.map +1 -1
  202. package/dist/modules/platform-tools/hb-service/hb-service.dto.js +20 -19
  203. package/dist/modules/platform-tools/hb-service/hb-service.dto.js.map +1 -1
  204. package/dist/modules/platform-tools/hb-service/hb-service.module.js +14 -17
  205. package/dist/modules/platform-tools/hb-service/hb-service.module.js.map +1 -1
  206. package/dist/modules/platform-tools/hb-service/hb-service.service.d.ts +3 -3
  207. package/dist/modules/platform-tools/hb-service/hb-service.service.js +37 -30
  208. package/dist/modules/platform-tools/hb-service/hb-service.service.js.map +1 -1
  209. package/dist/modules/platform-tools/linux/linux.controller.d.ts +1 -1
  210. package/dist/modules/platform-tools/linux/linux.controller.js +23 -21
  211. package/dist/modules/platform-tools/linux/linux.controller.js.map +1 -1
  212. package/dist/modules/platform-tools/linux/linux.module.js +14 -17
  213. package/dist/modules/platform-tools/linux/linux.module.js.map +1 -1
  214. package/dist/modules/platform-tools/linux/linux.service.d.ts +2 -2
  215. package/dist/modules/platform-tools/linux/linux.service.js +18 -14
  216. package/dist/modules/platform-tools/linux/linux.service.js.map +1 -1
  217. package/dist/modules/platform-tools/platform-tools.module.js +12 -15
  218. package/dist/modules/platform-tools/platform-tools.module.js.map +1 -1
  219. package/dist/modules/platform-tools/terminal/terminal.controller.d.ts +1 -1
  220. package/dist/modules/platform-tools/terminal/terminal.controller.js +15 -13
  221. package/dist/modules/platform-tools/terminal/terminal.controller.js.map +1 -1
  222. package/dist/modules/platform-tools/terminal/terminal.gateway.d.ts +2 -2
  223. package/dist/modules/platform-tools/terminal/terminal.gateway.js +17 -15
  224. package/dist/modules/platform-tools/terminal/terminal.gateway.js.map +1 -1
  225. package/dist/modules/platform-tools/terminal/terminal.interfaces.js +1 -2
  226. package/dist/modules/platform-tools/terminal/terminal.module.js +18 -21
  227. package/dist/modules/platform-tools/terminal/terminal.module.js.map +1 -1
  228. package/dist/modules/platform-tools/terminal/terminal.service.d.ts +7 -7
  229. package/dist/modules/platform-tools/terminal/terminal.service.js +33 -28
  230. package/dist/modules/platform-tools/terminal/terminal.service.js.map +1 -1
  231. package/dist/modules/plugins/plugins.controller.d.ts +12 -7
  232. package/dist/modules/plugins/plugins.controller.js +100 -52
  233. package/dist/modules/plugins/plugins.controller.js.map +1 -1
  234. package/dist/modules/plugins/plugins.dto.js +26 -24
  235. package/dist/modules/plugins/plugins.dto.js.map +1 -1
  236. package/dist/modules/plugins/plugins.gateway.d.ts +5 -5
  237. package/dist/modules/plugins/plugins.gateway.js +38 -34
  238. package/dist/modules/plugins/plugins.gateway.js.map +1 -1
  239. package/dist/modules/plugins/plugins.interfaces.js +1 -2
  240. package/dist/modules/plugins/plugins.module.js +27 -26
  241. package/dist/modules/plugins/plugins.module.js.map +1 -1
  242. package/dist/modules/plugins/plugins.service.d.ts +26 -13
  243. package/dist/modules/plugins/plugins.service.js +365 -203
  244. package/dist/modules/plugins/plugins.service.js.map +1 -1
  245. package/dist/modules/server/server.controller.d.ts +7 -7
  246. package/dist/modules/server/server.controller.js +208 -205
  247. package/dist/modules/server/server.controller.js.map +1 -1
  248. package/dist/modules/server/server.dto.js +13 -16
  249. package/dist/modules/server/server.dto.js.map +1 -1
  250. package/dist/modules/server/server.module.js +23 -26
  251. package/dist/modules/server/server.module.js.map +1 -1
  252. package/dist/modules/server/server.service.d.ts +6 -6
  253. package/dist/modules/server/server.service.js +202 -224
  254. package/dist/modules/server/server.service.js.map +1 -1
  255. package/dist/modules/setup-wizard/setup-wizard.controller.d.ts +3 -3
  256. package/dist/modules/setup-wizard/setup-wizard.controller.js +19 -20
  257. package/dist/modules/setup-wizard/setup-wizard.controller.js.map +1 -1
  258. package/dist/modules/setup-wizard/setup-wizard.gateway.d.ts +4 -4
  259. package/dist/modules/setup-wizard/setup-wizard.gateway.js +25 -21
  260. package/dist/modules/setup-wizard/setup-wizard.gateway.js.map +1 -1
  261. package/dist/modules/setup-wizard/setup-wizard.guard.d.ts +2 -2
  262. package/dist/modules/setup-wizard/setup-wizard.guard.js +11 -9
  263. package/dist/modules/setup-wizard/setup-wizard.guard.js.map +1 -1
  264. package/dist/modules/setup-wizard/setup-wizard.module.js +12 -15
  265. package/dist/modules/setup-wizard/setup-wizard.module.js.map +1 -1
  266. package/dist/modules/status/status.controller.d.ts +5 -5
  267. package/dist/modules/status/status.controller.js +40 -36
  268. package/dist/modules/status/status.controller.js.map +1 -1
  269. package/dist/modules/status/status.gateway.d.ts +11 -11
  270. package/dist/modules/status/status.gateway.js +51 -47
  271. package/dist/modules/status/status.gateway.js.map +1 -1
  272. package/dist/modules/status/status.interfaces.js +2 -5
  273. package/dist/modules/status/status.interfaces.js.map +1 -1
  274. package/dist/modules/status/status.module.js +26 -29
  275. package/dist/modules/status/status.module.js.map +1 -1
  276. package/dist/modules/status/status.service.d.ts +13 -13
  277. package/dist/modules/status/status.service.js +100 -88
  278. package/dist/modules/status/status.service.js.map +1 -1
  279. package/dist/modules/users/users.controller.d.ts +3 -3
  280. package/dist/modules/users/users.controller.js +59 -60
  281. package/dist/modules/users/users.controller.js.map +1 -1
  282. package/dist/modules/users/users.dto.js +51 -45
  283. package/dist/modules/users/users.dto.js.map +1 -1
  284. package/dist/modules/users/users.module.js +14 -17
  285. package/dist/modules/users/users.module.js.map +1 -1
  286. package/dist/self-check.js +25 -25
  287. package/dist/self-check.js.map +1 -1
  288. package/package.json +14 -12
  289. package/public/3rdpartylicenses.txt +26 -26
  290. package/public/{chunk-AI6E5JVH.js → chunk-24KMNOUL.js} +1 -1
  291. package/public/{chunk-RMZRXORR.js → chunk-2JKVDOVH.js} +1 -1
  292. package/public/chunk-2NCYMI5G.js +1 -0
  293. package/public/{chunk-TOYVIOBH.js → chunk-53XRPANC.js} +1 -1
  294. package/public/{chunk-5ETJWAIW.js → chunk-57Y3L52Q.js} +1 -1
  295. package/public/{chunk-3E2NZ5JW.js → chunk-5WXUZ3UB.js} +1 -1
  296. package/public/chunk-6JOKZWRV.js +1 -0
  297. package/public/{chunk-W3SNJ7TC.js → chunk-6KOTOEN7.js} +1 -1
  298. package/public/{chunk-WLGXJQPD.js → chunk-6RX377TT.js} +1 -1
  299. package/public/chunk-6WKO2T4Z.js +1 -0
  300. package/public/chunk-757LRGXE.js +68 -0
  301. package/public/{chunk-EAGKQ5OJ.js → chunk-7K67C3PU.js} +1 -1
  302. package/public/chunk-A2XCOYWA.js +1 -0
  303. package/public/{chunk-2KEG7SYT.js → chunk-A6QZW5FF.js} +1 -1
  304. package/public/chunk-ACO7OQZJ.js +1 -0
  305. package/public/{chunk-LWAL5JUG.js → chunk-AFJZVBKJ.js} +1 -1
  306. package/public/{chunk-325LPX6W.js → chunk-AFRZCXEB.js} +1 -1
  307. package/public/{chunk-6KT3BYU6.js → chunk-B65DT3FC.js} +1 -1
  308. package/public/{chunk-ADW6BF5G.js → chunk-BELFJ2SD.js} +1 -1
  309. package/public/chunk-DG6RGETW.js +1 -0
  310. package/public/{chunk-D5RKKI2A.js → chunk-DWAKEAKY.js} +1 -1
  311. package/public/chunk-EACHMWEA.js +50 -0
  312. package/public/{chunk-X5AKILHJ.js → chunk-ESOTGGKX.js} +1 -1
  313. package/public/chunk-F7DXQT5T.js +1 -0
  314. package/public/chunk-FS5QC22S.js +1 -0
  315. package/public/{chunk-4QXLJX7D.js → chunk-FSSORWXC.js} +1 -1
  316. package/public/chunk-GCSYCY2Y.js +1 -0
  317. package/public/{chunk-7UDDRMZZ.js → chunk-H22EEHWT.js} +1 -1
  318. package/public/{chunk-UF2IM5BE.js → chunk-HHHD7NH4.js} +1 -1
  319. package/public/{chunk-2FNQEOXF.js → chunk-HZFYCQBZ.js} +1 -1
  320. package/public/{chunk-OS2SEJZU.js → chunk-I24Z7SXB.js} +1 -1
  321. package/public/{chunk-TSFGO3MA.js → chunk-IJNJ3FHH.js} +1 -1
  322. package/public/{chunk-NKNWXFAK.js → chunk-JXJXX7ID.js} +1 -1
  323. package/public/chunk-KGXF4YD5.js +1 -0
  324. package/public/{chunk-YH6MRXGX.js → chunk-KLZ3D7WG.js} +1 -1
  325. package/public/{chunk-732XLY23.js → chunk-KVEQ2HM3.js} +3 -3
  326. package/public/{chunk-73TX7DHV.js → chunk-LGJ37P4E.js} +1 -1
  327. package/public/chunk-LMQCEFY5.js +19 -0
  328. package/public/{chunk-2CNQY2E7.js → chunk-LYPHF4BI.js} +1 -1
  329. package/public/{chunk-CYBDQV2B.js → chunk-MNT5ZGV3.js} +1 -1
  330. package/public/{chunk-SY4VNLXW.js → chunk-NPZDFVKF.js} +1 -1
  331. package/public/{chunk-EVND2DL5.js → chunk-NQ3EUNKR.js} +1 -1
  332. package/public/chunk-O63KCVSC.js +1 -0
  333. package/public/{chunk-2UOYBCTN.js → chunk-P7VMCG7G.js} +1 -1
  334. package/public/{chunk-OAHDGV32.js → chunk-PE5T5OTD.js} +1 -1
  335. package/public/{chunk-LZOHFRHN.js → chunk-QIB6F6O5.js} +1 -1
  336. package/public/{chunk-OK5EJ7US.js → chunk-QWSS6CWX.js} +1 -1
  337. package/public/{chunk-YNONXMOG.js → chunk-R6KWC4OQ.js} +1 -1
  338. package/public/chunk-RERUZJD4.js +5 -0
  339. package/public/{chunk-7IYTG6GP.js → chunk-S6M53YYQ.js} +1 -1
  340. package/public/{chunk-3IZSIVEA.js → chunk-TAYBEUKS.js} +1 -1
  341. package/public/{chunk-ASKB5DLO.js → chunk-UOYGACIL.js} +1 -1
  342. package/public/chunk-UUBGHMJO.js +1 -0
  343. package/public/chunk-VN4YJ4DW.js +1 -0
  344. package/public/chunk-VTCNWWXF.js +1 -0
  345. package/public/chunk-VWYLCYWH.js +1 -0
  346. package/public/chunk-VYNFC5TY.js +1 -0
  347. package/public/{chunk-WWSLIQVD.js → chunk-W6VJMRO6.js} +1 -1
  348. package/public/{chunk-3IJXQMYZ.js → chunk-WFVVY4KI.js} +1 -1
  349. package/public/chunk-WJVSACF7.js +4 -0
  350. package/public/{chunk-BLT2YCDN.js → chunk-WUEH3CVV.js} +1 -1
  351. package/public/chunk-WXDPCDNZ.js +2 -0
  352. package/public/{chunk-BTBGWLKK.js → chunk-XJ7EHBZC.js} +1 -1
  353. package/public/{chunk-ZEI3HZ6P.js → chunk-XQCLQKCG.js} +2 -2
  354. package/public/{chunk-ZJJ3EOBP.js → chunk-XUHWQHKX.js} +1 -1
  355. package/public/{chunk-VYC5JLE6.js → chunk-YFMEPI62.js} +1 -1
  356. package/public/{chunk-5T4JHJYL.js → chunk-YHIIRNVF.js} +1 -1
  357. package/public/{chunk-QK4V5DVW.js → chunk-YT7L7BBI.js} +1 -1
  358. package/public/index.html +2 -2
  359. package/public/{main-27RPBS22.js → main-WBUEOYPF.js} +1 -1
  360. package/public/{styles-CSF457UW.css → styles-WNHDEKE4.css} +1 -1
  361. package/scripts/extract-plugin-alias.js +8 -4
  362. package/public/chunk-2LXNPXT5.js +0 -1
  363. package/public/chunk-3XDYZNNE.js +0 -1
  364. package/public/chunk-57DUDNZJ.js +0 -1
  365. package/public/chunk-FM6ZYPKR.js +0 -4
  366. package/public/chunk-JJ7TVAIH.js +0 -5
  367. package/public/chunk-L43N56JA.js +0 -1
  368. package/public/chunk-L5I3DZ23.js +0 -1
  369. package/public/chunk-LH2LMHIZ.js +0 -1
  370. package/public/chunk-N2TWGDNX.js +0 -1
  371. package/public/chunk-O4SS7KVP.js +0 -40
  372. package/public/chunk-ONTEIYY3.js +0 -19
  373. package/public/chunk-P7TZIGJS.js +0 -50
  374. package/public/chunk-Q2IS3QQY.js +0 -1
  375. package/public/chunk-QQ5VZZQG.js +0 -1
  376. package/public/chunk-RYTGW6B7.js +0 -1
  377. package/public/chunk-SOT54YHI.js +0 -1
  378. package/public/chunk-TGZNYEGN.js +0 -1
  379. package/public/chunk-U5JF2ZOK.js +0 -1
  380. package/public/chunk-UNGEHXRN.js +0 -1
  381. package/public/chunk-VEGMNMLG.js +0 -1
  382. package/public/chunk-Y5FP6C55.js +0 -2
  383. package/public/chunk-YYJG2ENF.js +0 -1
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -11,18 +10,19 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
10
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
11
  return function (target, key) { decorator(target, key, paramIndex); }
13
12
  };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ServerController = void 0;
16
- const common_1 = require("@nestjs/common");
17
- const passport_1 = require("@nestjs/passport");
18
- const swagger_1 = require("@nestjs/swagger");
19
- const admin_guard_1 = require("../../core/auth/guards/admin.guard");
20
- const logger_service_1 = require("../../core/logger/logger.service");
21
- const spa_html_service_1 = require("../../core/spa/spa-html.service");
22
- const child_bridges_service_1 = require("../child-bridges/child-bridges.service");
23
- const server_dto_1 = require("./server.dto");
24
- const server_service_1 = require("./server.service");
13
+ import { Body, Controller, Delete, Get, HttpCode, HttpException, Inject, InternalServerErrorException, Param, Post, Put, Query, Req, UseGuards, } from '@nestjs/common';
14
+ import { AuthGuard } from '@nestjs/passport';
15
+ import { ApiBearerAuth, ApiBody, ApiConsumes, ApiOperation, ApiParam, ApiQuery, ApiTags } from '@nestjs/swagger';
16
+ import { AdminGuard } from '../../core/auth/guards/admin.guard.js';
17
+ import { Logger } from '../../core/logger/logger.service.js';
18
+ import { SpaHtmlService } from '../../core/spa/spa-html.service.js';
19
+ import { ChildBridgesService } from '../child-bridges/child-bridges.service.js';
20
+ import { HomebridgeMdnsSettingDto, HomebridgeNetworkInterfacesDto } from './server.dto.js';
21
+ import { ServerService } from './server.service.js';
25
22
  let ServerController = class ServerController {
23
+ serverService;
24
+ childBridgesService;
25
+ logger;
26
26
  constructor(serverService, childBridgesService, logger) {
27
27
  this.serverService = serverService;
28
28
  this.childBridgesService = childBridgesService;
@@ -129,13 +129,13 @@ let ServerController = class ServerController {
129
129
  try {
130
130
  const data = await req.file();
131
131
  if (data.file.truncated) {
132
- throw new common_1.InternalServerErrorException(`Wallpaper exceeds maximum size ${globalThis.backup.maxBackupSizeText}.`);
132
+ throw new InternalServerErrorException(`Wallpaper exceeds maximum size ${globalThis.backup.maxBackupSizeText}.`);
133
133
  }
134
134
  await this.serverService.uploadWallpaper(data);
135
135
  }
136
136
  catch (err) {
137
137
  this.logger.error(`Wallpaper upload failed as ${err.message}`);
138
- throw new common_1.InternalServerErrorException(err.message);
138
+ throw new InternalServerErrorException(err.message);
139
139
  }
140
140
  }
141
141
  async uploadSslKeyCert(req) {
@@ -143,11 +143,11 @@ let ServerController = class ServerController {
143
143
  return await this.serverService.uploadSslKeyCert(req);
144
144
  }
145
145
  catch (err) {
146
- if (err instanceof common_1.HttpException) {
146
+ if (err instanceof HttpException) {
147
147
  throw err;
148
148
  }
149
149
  this.logger.error(`SSL key/cert upload failed as ${err?.message}`);
150
- throw new common_1.InternalServerErrorException(err?.message);
150
+ throw new InternalServerErrorException(err?.message);
151
151
  }
152
152
  }
153
153
  async uploadSslPfx(req) {
@@ -155,11 +155,11 @@ let ServerController = class ServerController {
155
155
  return await this.serverService.uploadSslPfx(req);
156
156
  }
157
157
  catch (err) {
158
- if (err instanceof common_1.HttpException) {
158
+ if (err instanceof HttpException) {
159
159
  throw err;
160
160
  }
161
161
  this.logger.error(`SSL pfx upload failed as ${err?.message}`);
162
- throw new common_1.InternalServerErrorException(err?.message);
162
+ throw new InternalServerErrorException(err?.message);
163
163
  }
164
164
  }
165
165
  async validateSsl() {
@@ -167,11 +167,11 @@ let ServerController = class ServerController {
167
167
  return await this.serverService.validateCurrentSslConfig();
168
168
  }
169
169
  catch (err) {
170
- if (err instanceof common_1.HttpException) {
170
+ if (err instanceof HttpException) {
171
171
  throw err;
172
172
  }
173
173
  this.logger.error(`SSL validate failed as ${err?.message}`);
174
- throw new common_1.InternalServerErrorException(err?.message);
174
+ throw new InternalServerErrorException(err?.message);
175
175
  }
176
176
  }
177
177
  async generateSelfSigned(body) {
@@ -179,350 +179,349 @@ let ServerController = class ServerController {
179
179
  return await this.serverService.generateSelfSignedCertificate(body);
180
180
  }
181
181
  catch (err) {
182
- if (err instanceof common_1.HttpException) {
182
+ if (err instanceof HttpException) {
183
183
  throw err;
184
184
  }
185
185
  this.logger.error(`Generate self-signed certificate failed as ${err?.message}`);
186
- throw new common_1.InternalServerErrorException(err?.message);
186
+ throw new InternalServerErrorException(err?.message);
187
187
  }
188
188
  }
189
189
  async deleteWallpaper() {
190
190
  await this.serverService.deleteWallpaper();
191
191
  }
192
192
  async updateWebroot(body) {
193
- await spa_html_service_1.SpaHtmlService.updateIndexHtml(body.webroot);
193
+ await SpaHtmlService.updateIndexHtml(body.webroot);
194
194
  }
195
195
  };
196
- exports.ServerController = ServerController;
197
196
  __decorate([
198
- (0, common_1.Put)('/restart'),
199
- (0, swagger_1.ApiOperation)({ summary: 'Restart the Homebridge instance.' }),
197
+ Put('/restart'),
198
+ ApiOperation({ summary: 'Restart the Homebridge instance.' }),
200
199
  __metadata("design:type", Function),
201
200
  __metadata("design:paramtypes", []),
202
201
  __metadata("design:returntype", void 0)
203
202
  ], ServerController.prototype, "restartServer", null);
204
203
  __decorate([
205
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
206
- (0, common_1.Put)('/restart/:deviceId'),
207
- (0, swagger_1.ApiOperation)({
204
+ UseGuards(AdminGuard),
205
+ Put('/restart/:deviceId'),
206
+ ApiOperation({
208
207
  summary: 'Restart a child bridge instance.',
209
208
  }),
210
- __param(0, (0, common_1.Param)('deviceId')),
209
+ __param(0, Param('deviceId')),
211
210
  __metadata("design:type", Function),
212
211
  __metadata("design:paramtypes", [String]),
213
212
  __metadata("design:returntype", void 0)
214
213
  ], ServerController.prototype, "restartChildBridge", null);
215
214
  __decorate([
216
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
217
- (0, common_1.Put)('/stop/:deviceId'),
218
- (0, swagger_1.ApiOperation)({
215
+ UseGuards(AdminGuard),
216
+ Put('/stop/:deviceId'),
217
+ ApiOperation({
219
218
  summary: 'Stop a child bridge instance.',
220
219
  }),
221
- __param(0, (0, common_1.Param)('deviceId')),
220
+ __param(0, Param('deviceId')),
222
221
  __metadata("design:type", Function),
223
222
  __metadata("design:paramtypes", [String]),
224
223
  __metadata("design:returntype", void 0)
225
224
  ], ServerController.prototype, "stopChildBridge", null);
226
225
  __decorate([
227
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
228
- (0, common_1.Put)('/start/:deviceId'),
229
- (0, swagger_1.ApiOperation)({
226
+ UseGuards(AdminGuard),
227
+ Put('/start/:deviceId'),
228
+ ApiOperation({
230
229
  summary: 'Start a child bridge instance.',
231
230
  }),
232
- __param(0, (0, common_1.Param)('deviceId')),
231
+ __param(0, Param('deviceId')),
233
232
  __metadata("design:type", Function),
234
233
  __metadata("design:paramtypes", [String]),
235
234
  __metadata("design:returntype", void 0)
236
235
  ], ServerController.prototype, "startChildBridge", null);
237
236
  __decorate([
238
- (0, common_1.Get)('/pairing'),
239
- (0, swagger_1.ApiOperation)({ summary: 'Get the Homebridge <> HomeKit pairing information and status.' }),
237
+ Get('/pairing'),
238
+ ApiOperation({ summary: 'Get the Homebridge <> HomeKit pairing information and status.' }),
240
239
  __metadata("design:type", Function),
241
240
  __metadata("design:paramtypes", []),
242
241
  __metadata("design:returntype", void 0)
243
242
  ], ServerController.prototype, "getBridgePairingInformation", null);
244
243
  __decorate([
245
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
246
- (0, swagger_1.ApiOperation)({ summary: 'Reset the main Homebridge bridge, and change its username and pin. Also remove cached bridges and accessories.' }),
247
- (0, common_1.Put)('/reset-homebridge-accessory'),
244
+ UseGuards(AdminGuard),
245
+ ApiOperation({ summary: 'Reset the main Homebridge bridge, and change its username and pin. Also remove cached bridges and accessories.' }),
246
+ Put('/reset-homebridge-accessory'),
248
247
  __metadata("design:type", Function),
249
248
  __metadata("design:paramtypes", []),
250
249
  __metadata("design:returntype", void 0)
251
250
  ], ServerController.prototype, "resetHomebridgeAccessory", null);
252
251
  __decorate([
253
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
254
- (0, swagger_1.ApiOperation)({
252
+ UseGuards(AdminGuard),
253
+ ApiOperation({
255
254
  summary: 'Remove Homebridge cached accessories.',
256
255
  }),
257
- (0, common_1.Put)('/reset-cached-accessories'),
256
+ Put('/reset-cached-accessories'),
258
257
  __metadata("design:type", Function),
259
258
  __metadata("design:paramtypes", []),
260
259
  __metadata("design:returntype", void 0)
261
260
  ], ServerController.prototype, "deleteAllCachedAccessories", null);
262
261
  __decorate([
263
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
264
- (0, swagger_1.ApiOperation)({ summary: 'List cached Homebridge accessories.' }),
265
- (0, common_1.Get)('/cached-accessories'),
262
+ UseGuards(AdminGuard),
263
+ ApiOperation({ summary: 'List cached Homebridge accessories.' }),
264
+ Get('/cached-accessories'),
266
265
  __metadata("design:type", Function),
267
266
  __metadata("design:paramtypes", []),
268
267
  __metadata("design:returntype", void 0)
269
268
  ], ServerController.prototype, "getCachedAccessories", null);
270
269
  __decorate([
271
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
272
- (0, swagger_1.ApiOperation)({
270
+ UseGuards(AdminGuard),
271
+ ApiOperation({
273
272
  summary: 'Remove a single Homebridge cached accessory.',
274
273
  }),
275
- (0, swagger_1.ApiParam)({ name: 'uuid' }),
276
- (0, swagger_1.ApiQuery)({ name: 'cacheFile' }),
277
- (0, common_1.Delete)('/cached-accessories/:uuid'),
278
- (0, common_1.HttpCode)(204),
279
- __param(0, (0, common_1.Param)('uuid')),
280
- __param(1, (0, common_1.Query)('cacheFile')),
274
+ ApiParam({ name: 'uuid' }),
275
+ ApiQuery({ name: 'cacheFile' }),
276
+ Delete('/cached-accessories/:uuid'),
277
+ HttpCode(204),
278
+ __param(0, Param('uuid')),
279
+ __param(1, Query('cacheFile')),
281
280
  __metadata("design:type", Function),
282
281
  __metadata("design:paramtypes", [String, String]),
283
282
  __metadata("design:returntype", void 0)
284
283
  ], ServerController.prototype, "deleteCachedAccessory", null);
285
284
  __decorate([
286
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
287
- (0, swagger_1.ApiOperation)({
285
+ UseGuards(AdminGuard),
286
+ ApiOperation({
288
287
  summary: 'Remove multiple Homebridge cached accessories.',
289
288
  }),
290
- (0, swagger_1.ApiBody)({ description: 'Array of accessories (uuid and cacheFile) to remove from the cache', type: 'json', isArray: true }),
291
- (0, common_1.Delete)('/cached-accessories'),
292
- (0, common_1.HttpCode)(204),
293
- __param(0, (0, common_1.Body)()),
289
+ ApiBody({ description: 'Array of accessories (uuid and cacheFile) to remove from the cache', type: 'json', isArray: true }),
290
+ Delete('/cached-accessories'),
291
+ HttpCode(204),
292
+ __param(0, Body()),
294
293
  __metadata("design:type", Function),
295
294
  __metadata("design:paramtypes", [Array]),
296
295
  __metadata("design:returntype", void 0)
297
296
  ], ServerController.prototype, "deleteCachedAccessories", null);
298
297
  __decorate([
299
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
300
- (0, swagger_1.ApiOperation)({ summary: 'List cached Matter accessories.' }),
301
- (0, common_1.Get)('/matter-accessories'),
298
+ UseGuards(AdminGuard),
299
+ ApiOperation({ summary: 'List cached Matter accessories.' }),
300
+ Get('/matter-accessories'),
302
301
  __metadata("design:type", Function),
303
302
  __metadata("design:paramtypes", []),
304
303
  __metadata("design:returntype", void 0)
305
304
  ], ServerController.prototype, "getMatterAccessories", null);
306
305
  __decorate([
307
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
308
- (0, swagger_1.ApiOperation)({
306
+ UseGuards(AdminGuard),
307
+ ApiOperation({
309
308
  summary: 'Remove a single Matter cached accessory.',
310
309
  }),
311
- (0, swagger_1.ApiParam)({ name: 'deviceId' }),
312
- (0, swagger_1.ApiParam)({ name: 'uuid' }),
313
- (0, common_1.Delete)('/matter-accessories/:deviceId/:uuid'),
314
- (0, common_1.HttpCode)(204),
315
- __param(0, (0, common_1.Param)('deviceId')),
316
- __param(1, (0, common_1.Param)('uuid')),
310
+ ApiParam({ name: 'deviceId' }),
311
+ ApiParam({ name: 'uuid' }),
312
+ Delete('/matter-accessories/:deviceId/:uuid'),
313
+ HttpCode(204),
314
+ __param(0, Param('deviceId')),
315
+ __param(1, Param('uuid')),
317
316
  __metadata("design:type", Function),
318
317
  __metadata("design:paramtypes", [String, String]),
319
318
  __metadata("design:returntype", void 0)
320
319
  ], ServerController.prototype, "deleteMatterAccessory", null);
321
320
  __decorate([
322
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
323
- (0, swagger_1.ApiOperation)({
321
+ UseGuards(AdminGuard),
322
+ ApiOperation({
324
323
  summary: 'Remove multiple Matter cached accessories.',
325
324
  }),
326
- (0, swagger_1.ApiBody)({ description: 'Array of Matter accessories (deviceId and uuid) to remove from the cache', type: 'json', isArray: true }),
327
- (0, common_1.Delete)('/matter-accessories'),
328
- (0, common_1.HttpCode)(204),
329
- __param(0, (0, common_1.Body)()),
325
+ ApiBody({ description: 'Array of Matter accessories (deviceId and uuid) to remove from the cache', type: 'json', isArray: true }),
326
+ Delete('/matter-accessories'),
327
+ HttpCode(204),
328
+ __param(0, Body()),
330
329
  __metadata("design:type", Function),
331
330
  __metadata("design:paramtypes", [Array]),
332
331
  __metadata("design:returntype", void 0)
333
332
  ], ServerController.prototype, "deleteMatterAccessories", null);
334
333
  __decorate([
335
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
336
- (0, swagger_1.ApiOperation)({ summary: 'List all paired accessories (main bridge, external cameras, TVs etc).' }),
337
- (0, common_1.Get)('/pairings'),
334
+ UseGuards(AdminGuard),
335
+ ApiOperation({ summary: 'List all paired accessories (main bridge, external cameras, TVs etc).' }),
336
+ Get('/pairings'),
338
337
  __metadata("design:type", Function),
339
338
  __metadata("design:paramtypes", []),
340
339
  __metadata("design:returntype", void 0)
341
340
  ], ServerController.prototype, "getDevicePairings", null);
342
341
  __decorate([
343
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
344
- (0, swagger_1.ApiOperation)({ summary: 'Get a single device pairing.' }),
345
- (0, common_1.Get)('/pairings/:deviceId'),
346
- __param(0, (0, common_1.Param)('deviceId')),
342
+ UseGuards(AdminGuard),
343
+ ApiOperation({ summary: 'Get a single device pairing.' }),
344
+ Get('/pairings/:deviceId'),
345
+ __param(0, Param('deviceId')),
347
346
  __metadata("design:type", Function),
348
347
  __metadata("design:paramtypes", [String]),
349
348
  __metadata("design:returntype", void 0)
350
349
  ], ServerController.prototype, "getDevicePairingById", null);
351
350
  __decorate([
352
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
353
- (0, swagger_1.ApiOperation)({
351
+ UseGuards(AdminGuard),
352
+ ApiOperation({
354
353
  summary: 'Remove a single paired bridge.',
355
354
  }),
356
- (0, swagger_1.ApiParam)({ name: 'deviceId' }),
357
- (0, swagger_1.ApiQuery)({ name: 'resetPairingInfo', type: Boolean }),
358
- (0, common_1.Delete)('/pairings/:deviceId'),
359
- (0, common_1.HttpCode)(204),
360
- __param(0, (0, common_1.Param)('deviceId')),
361
- __param(1, (0, common_1.Query)('resetPairingInfo')),
355
+ ApiParam({ name: 'deviceId' }),
356
+ ApiQuery({ name: 'resetPairingInfo', type: Boolean }),
357
+ Delete('/pairings/:deviceId'),
358
+ HttpCode(204),
359
+ __param(0, Param('deviceId')),
360
+ __param(1, Query('resetPairingInfo')),
362
361
  __metadata("design:type", Function),
363
362
  __metadata("design:paramtypes", [String, String]),
364
363
  __metadata("design:returntype", void 0)
365
364
  ], ServerController.prototype, "deleteDevicePairing", null);
366
365
  __decorate([
367
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
368
- (0, swagger_1.ApiOperation)({
366
+ UseGuards(AdminGuard),
367
+ ApiOperation({
369
368
  summary: 'Remove Matter configuration from a child bridge.',
370
369
  }),
371
- (0, swagger_1.ApiParam)({ name: 'deviceId' }),
372
- (0, common_1.Delete)('/pairings/:deviceId/matter'),
373
- (0, common_1.HttpCode)(204),
374
- __param(0, (0, common_1.Param)('deviceId')),
370
+ ApiParam({ name: 'deviceId' }),
371
+ Delete('/pairings/:deviceId/matter'),
372
+ HttpCode(204),
373
+ __param(0, Param('deviceId')),
375
374
  __metadata("design:type", Function),
376
375
  __metadata("design:paramtypes", [String]),
377
376
  __metadata("design:returntype", void 0)
378
377
  ], ServerController.prototype, "deleteDeviceMatterConfig", null);
379
378
  __decorate([
380
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
381
- (0, swagger_1.ApiOperation)({
379
+ UseGuards(AdminGuard),
380
+ ApiOperation({
382
381
  summary: 'Remove multiple paired bridges.',
383
382
  }),
384
- (0, swagger_1.ApiBody)({ description: 'Array of paired bridges (id and resetPairingInfo) to remove from the cache', type: 'json', isArray: true }),
385
- (0, common_1.Delete)('/pairings'),
386
- (0, common_1.HttpCode)(204),
387
- __param(0, (0, common_1.Body)()),
383
+ ApiBody({ description: 'Array of paired bridges (id and resetPairingInfo) to remove from the cache', type: 'json', isArray: true }),
384
+ Delete('/pairings'),
385
+ HttpCode(204),
386
+ __param(0, Body()),
388
387
  __metadata("design:type", Function),
389
388
  __metadata("design:paramtypes", [Array]),
390
389
  __metadata("design:returntype", void 0)
391
390
  ], ServerController.prototype, "deleteDevicesPairings", null);
392
391
  __decorate([
393
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
394
- (0, swagger_1.ApiOperation)({
392
+ UseGuards(AdminGuard),
393
+ ApiOperation({
395
394
  summary: 'Remove a paired bridge\'s cached accessories.',
396
395
  }),
397
- (0, swagger_1.ApiParam)({ name: 'deviceId' }),
398
- (0, common_1.Delete)('/pairings/:deviceId/accessories'),
399
- (0, common_1.HttpCode)(204),
400
- __param(0, (0, common_1.Param)('deviceId')),
396
+ ApiParam({ name: 'deviceId' }),
397
+ Delete('/pairings/:deviceId/accessories'),
398
+ HttpCode(204),
399
+ __param(0, Param('deviceId')),
401
400
  __metadata("design:type", Function),
402
401
  __metadata("design:paramtypes", [String]),
403
402
  __metadata("design:returntype", void 0)
404
403
  ], ServerController.prototype, "deleteDeviceAccessories", null);
405
404
  __decorate([
406
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
407
- (0, swagger_1.ApiOperation)({
405
+ UseGuards(AdminGuard),
406
+ ApiOperation({
408
407
  summary: 'Remove multiple paired bridges\'s cached accessories.',
409
408
  }),
410
- (0, swagger_1.ApiBody)({ description: 'Array of bridges (id and optional protocol) for which to remove accessories.', type: 'json', isArray: true }),
411
- (0, common_1.Delete)('/pairings/accessories'),
412
- (0, common_1.HttpCode)(204),
413
- __param(0, (0, common_1.Body)()),
409
+ ApiBody({ description: 'Array of bridges (id and optional protocol) for which to remove accessories.', type: 'json', isArray: true }),
410
+ Delete('/pairings/accessories'),
411
+ HttpCode(204),
412
+ __param(0, Body()),
414
413
  __metadata("design:type", Function),
415
414
  __metadata("design:paramtypes", [Array]),
416
415
  __metadata("design:returntype", void 0)
417
416
  ], ServerController.prototype, "deleteDevicesAccessories", null);
418
417
  __decorate([
419
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
420
- (0, swagger_1.ApiOperation)({ summary: 'Return a random, unused port.' }),
421
- (0, common_1.Get)('/port/new'),
418
+ UseGuards(AdminGuard),
419
+ ApiOperation({ summary: 'Return a random, unused port.' }),
420
+ Get('/port/new'),
422
421
  __metadata("design:type", Function),
423
422
  __metadata("design:paramtypes", []),
424
423
  __metadata("design:returntype", void 0)
425
424
  ], ServerController.prototype, "lookupUnusedPort", null);
426
425
  __decorate([
427
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
428
- (0, swagger_1.ApiOperation)({ summary: 'Return a random, unused port from the Matter port range (5530-5541).' }),
429
- (0, common_1.Get)('/port/new/matter'),
426
+ UseGuards(AdminGuard),
427
+ ApiOperation({ summary: 'Return a random, unused port from the Matter port range (5530-5541).' }),
428
+ Get('/port/new/matter'),
430
429
  __metadata("design:type", Function),
431
430
  __metadata("design:paramtypes", []),
432
431
  __metadata("design:returntype", void 0)
433
432
  ], ServerController.prototype, "lookupUnusedMatterPort", null);
434
433
  __decorate([
435
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
436
- (0, swagger_1.ApiOperation)({ summary: 'Return a list of available network interfaces on the server.' }),
437
- (0, common_1.Get)('/network-interfaces/system'),
434
+ UseGuards(AdminGuard),
435
+ ApiOperation({ summary: 'Return a list of available network interfaces on the server.' }),
436
+ Get('/network-interfaces/system'),
438
437
  __metadata("design:type", Function),
439
438
  __metadata("design:paramtypes", []),
440
439
  __metadata("design:returntype", void 0)
441
440
  ], ServerController.prototype, "getSystemNetworkInterfaces", null);
442
441
  __decorate([
443
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
444
- (0, swagger_1.ApiOperation)({ summary: 'Return a list of the network interface names assigned to Homebridge.' }),
445
- (0, common_1.Get)('/network-interfaces/bridge'),
442
+ UseGuards(AdminGuard),
443
+ ApiOperation({ summary: 'Return a list of the network interface names assigned to Homebridge.' }),
444
+ Get('/network-interfaces/bridge'),
446
445
  __metadata("design:type", Function),
447
446
  __metadata("design:paramtypes", []),
448
447
  __metadata("design:returntype", void 0)
449
448
  ], ServerController.prototype, "getHomebridgeNetworkInterfaces", null);
450
449
  __decorate([
451
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
452
- (0, swagger_1.ApiOperation)({ summary: 'Set a list of the network interface names assigned to Homebridge.' }),
453
- (0, common_1.Put)('/network-interfaces/bridge'),
454
- __param(0, (0, common_1.Body)()),
450
+ UseGuards(AdminGuard),
451
+ ApiOperation({ summary: 'Set a list of the network interface names assigned to Homebridge.' }),
452
+ Put('/network-interfaces/bridge'),
453
+ __param(0, Body()),
455
454
  __metadata("design:type", Function),
456
- __metadata("design:paramtypes", [server_dto_1.HomebridgeNetworkInterfacesDto]),
455
+ __metadata("design:paramtypes", [HomebridgeNetworkInterfacesDto]),
457
456
  __metadata("design:returntype", void 0)
458
457
  ], ServerController.prototype, "setHomebridgeNetworkInterfaces", null);
459
458
  __decorate([
460
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
461
- (0, swagger_1.ApiOperation)({ summary: 'Return the current mDNS advertiser settings.' }),
462
- (0, common_1.Get)('/mdns-advertiser'),
459
+ UseGuards(AdminGuard),
460
+ ApiOperation({ summary: 'Return the current mDNS advertiser settings.' }),
461
+ Get('/mdns-advertiser'),
463
462
  __metadata("design:type", Function),
464
463
  __metadata("design:paramtypes", []),
465
464
  __metadata("design:returntype", Promise)
466
465
  ], ServerController.prototype, "getHomebridgeMdnsSetting", null);
467
466
  __decorate([
468
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
469
- (0, swagger_1.ApiOperation)({ summary: 'Set the mDNS advertiser settings.' }),
470
- (0, common_1.Put)('/mdns-advertiser'),
471
- __param(0, (0, common_1.Body)()),
467
+ UseGuards(AdminGuard),
468
+ ApiOperation({ summary: 'Set the mDNS advertiser settings.' }),
469
+ Put('/mdns-advertiser'),
470
+ __param(0, Body()),
472
471
  __metadata("design:type", Function),
473
- __metadata("design:paramtypes", [server_dto_1.HomebridgeMdnsSettingDto]),
472
+ __metadata("design:paramtypes", [HomebridgeMdnsSettingDto]),
474
473
  __metadata("design:returntype", void 0)
475
474
  ], ServerController.prototype, "setHomebridgeMdnsSetting", null);
476
475
  __decorate([
477
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
478
- (0, swagger_1.ApiOperation)({ summary: 'Set the Homebridge name.' }),
479
- (0, common_1.Put)('/name'),
480
- __param(0, (0, common_1.Body)()),
476
+ UseGuards(AdminGuard),
477
+ ApiOperation({ summary: 'Set the Homebridge name.' }),
478
+ Put('/name'),
479
+ __param(0, Body()),
481
480
  __metadata("design:type", Function),
482
481
  __metadata("design:paramtypes", [Object]),
483
482
  __metadata("design:returntype", void 0)
484
483
  ], ServerController.prototype, "setHomebridgeName", null);
485
484
  __decorate([
486
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
487
- (0, swagger_1.ApiOperation)({ summary: 'Get the Homebridge port.' }),
488
- (0, common_1.Get)('/port'),
485
+ UseGuards(AdminGuard),
486
+ ApiOperation({ summary: 'Get the Homebridge port.' }),
487
+ Get('/port'),
489
488
  __metadata("design:type", Function),
490
489
  __metadata("design:paramtypes", []),
491
490
  __metadata("design:returntype", void 0)
492
491
  ], ServerController.prototype, "getHomebridgePort", null);
493
492
  __decorate([
494
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
495
- (0, swagger_1.ApiOperation)({ summary: 'Set the Homebridge port.' }),
496
- (0, common_1.Put)('/port'),
497
- __param(0, (0, common_1.Body)()),
493
+ UseGuards(AdminGuard),
494
+ ApiOperation({ summary: 'Set the Homebridge port.' }),
495
+ Put('/port'),
496
+ __param(0, Body()),
498
497
  __metadata("design:type", Function),
499
498
  __metadata("design:paramtypes", [Object]),
500
499
  __metadata("design:returntype", void 0)
501
500
  ], ServerController.prototype, "setHomebridgePort", null);
502
501
  __decorate([
503
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
504
- (0, swagger_1.ApiOperation)({ summary: 'Get the usable ports as set in the config file.' }),
505
- (0, common_1.Get)('/ports'),
502
+ UseGuards(AdminGuard),
503
+ ApiOperation({ summary: 'Get the usable ports as set in the config file.' }),
504
+ Get('/ports'),
506
505
  __metadata("design:type", Function),
507
506
  __metadata("design:paramtypes", []),
508
507
  __metadata("design:returntype", void 0)
509
508
  ], ServerController.prototype, "getUsablePort", null);
510
509
  __decorate([
511
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
512
- (0, common_1.Put)('/ports'),
513
- (0, swagger_1.ApiOperation)({ summary: 'Update the usable ports for Homebridge.' }),
514
- (0, swagger_1.ApiBody)({ description: 'Object with start and end properties.', type: 'json', isArray: false }),
515
- __param(0, (0, common_1.Body)()),
510
+ UseGuards(AdminGuard),
511
+ Put('/ports'),
512
+ ApiOperation({ summary: 'Update the usable ports for Homebridge.' }),
513
+ ApiBody({ description: 'Object with start and end properties.', type: 'json', isArray: false }),
514
+ __param(0, Body()),
516
515
  __metadata("design:type", Function),
517
516
  __metadata("design:paramtypes", [Object]),
518
517
  __metadata("design:returntype", void 0)
519
518
  ], ServerController.prototype, "setUsablePorts", null);
520
519
  __decorate([
521
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
522
- (0, common_1.Post)('/wallpaper'),
523
- (0, swagger_1.ApiOperation)({ summary: 'Upload an image file to the Homebridge storage directory and reference this as a wallpaper in the config file.' }),
524
- (0, swagger_1.ApiConsumes)('multipart/form-data'),
525
- (0, swagger_1.ApiBody)({
520
+ UseGuards(AdminGuard),
521
+ Post('/wallpaper'),
522
+ ApiOperation({ summary: 'Upload an image file to the Homebridge storage directory and reference this as a wallpaper in the config file.' }),
523
+ ApiConsumes('multipart/form-data'),
524
+ ApiBody({
526
525
  schema: {
527
526
  type: 'object',
528
527
  properties: {
@@ -533,17 +532,17 @@ __decorate([
533
532
  },
534
533
  },
535
534
  }),
536
- __param(0, (0, common_1.Req)()),
535
+ __param(0, Req()),
537
536
  __metadata("design:type", Function),
538
537
  __metadata("design:paramtypes", [Object]),
539
538
  __metadata("design:returntype", Promise)
540
539
  ], ServerController.prototype, "uploadWallpaper", null);
541
540
  __decorate([
542
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
543
- (0, common_1.Post)('/ssl/keycert'),
544
- (0, swagger_1.ApiOperation)({ summary: 'Upload a PEM private key and certificate, validate, and save to storage, updating config.' }),
545
- (0, swagger_1.ApiConsumes)('multipart/form-data'),
546
- (0, swagger_1.ApiBody)({
541
+ UseGuards(AdminGuard),
542
+ Post('/ssl/keycert'),
543
+ ApiOperation({ summary: 'Upload a PEM private key and certificate, validate, and save to storage, updating config.' }),
544
+ ApiConsumes('multipart/form-data'),
545
+ ApiBody({
547
546
  schema: {
548
547
  type: 'object',
549
548
  properties: {
@@ -553,17 +552,17 @@ __decorate([
553
552
  },
554
553
  },
555
554
  }),
556
- __param(0, (0, common_1.Req)()),
555
+ __param(0, Req()),
557
556
  __metadata("design:type", Function),
558
557
  __metadata("design:paramtypes", [Object]),
559
558
  __metadata("design:returntype", Promise)
560
559
  ], ServerController.prototype, "uploadSslKeyCert", null);
561
560
  __decorate([
562
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
563
- (0, common_1.Post)('/ssl/pfx'),
564
- (0, swagger_1.ApiOperation)({ summary: 'Upload a PKCS#12 (PFX/P12) file with passphrase, validate, and save to storage, updating config.' }),
565
- (0, swagger_1.ApiConsumes)('multipart/form-data'),
566
- (0, swagger_1.ApiBody)({
561
+ UseGuards(AdminGuard),
562
+ Post('/ssl/pfx'),
563
+ ApiOperation({ summary: 'Upload a PKCS#12 (PFX/P12) file with passphrase, validate, and save to storage, updating config.' }),
564
+ ApiConsumes('multipart/form-data'),
565
+ ApiBody({
567
566
  schema: {
568
567
  type: 'object',
569
568
  properties: {
@@ -573,24 +572,24 @@ __decorate([
573
572
  required: ['pfx'],
574
573
  },
575
574
  }),
576
- __param(0, (0, common_1.Req)()),
575
+ __param(0, Req()),
577
576
  __metadata("design:type", Function),
578
577
  __metadata("design:paramtypes", [Object]),
579
578
  __metadata("design:returntype", Promise)
580
579
  ], ServerController.prototype, "uploadSslPfx", null);
581
580
  __decorate([
582
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
583
- (0, common_1.Post)('/ssl/validate'),
584
- (0, swagger_1.ApiOperation)({ summary: 'Validate the currently configured SSL settings (key+cert or pfx+passphrase).' }),
581
+ UseGuards(AdminGuard),
582
+ Post('/ssl/validate'),
583
+ ApiOperation({ summary: 'Validate the currently configured SSL settings (key+cert or pfx+passphrase).' }),
585
584
  __metadata("design:type", Function),
586
585
  __metadata("design:paramtypes", []),
587
586
  __metadata("design:returntype", Promise)
588
587
  ], ServerController.prototype, "validateSsl", null);
589
588
  __decorate([
590
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
591
- (0, common_1.Post)('/ssl/selfsigned/generate'),
592
- (0, swagger_1.ApiOperation)({ summary: 'Generate a self-signed certificate and optionally set it as active key/cert in config.' }),
593
- (0, swagger_1.ApiBody)({
589
+ UseGuards(AdminGuard),
590
+ Post('/ssl/selfsigned/generate'),
591
+ ApiOperation({ summary: 'Generate a self-signed certificate and optionally set it as active key/cert in config.' }),
592
+ ApiBody({
594
593
  schema: {
595
594
  type: 'object',
596
595
  properties: {
@@ -599,36 +598,40 @@ __decorate([
599
598
  },
600
599
  },
601
600
  }),
602
- __param(0, (0, common_1.Body)()),
601
+ __param(0, Body()),
603
602
  __metadata("design:type", Function),
604
603
  __metadata("design:paramtypes", [Object]),
605
604
  __metadata("design:returntype", Promise)
606
605
  ], ServerController.prototype, "generateSelfSigned", null);
607
606
  __decorate([
608
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
609
- (0, swagger_1.ApiOperation)({ summary: 'Delete the current wallpaper file and remove the reference from the config file.' }),
610
- (0, common_1.Delete)('/wallpaper'),
611
- (0, common_1.HttpCode)(204),
607
+ UseGuards(AdminGuard),
608
+ ApiOperation({ summary: 'Delete the current wallpaper file and remove the reference from the config file.' }),
609
+ Delete('/wallpaper'),
610
+ HttpCode(204),
612
611
  __metadata("design:type", Function),
613
612
  __metadata("design:paramtypes", []),
614
613
  __metadata("design:returntype", Promise)
615
614
  ], ServerController.prototype, "deleteWallpaper", null);
616
615
  __decorate([
617
- (0, common_1.UseGuards)(admin_guard_1.AdminGuard),
618
- (0, swagger_1.ApiOperation)({ summary: 'Update the index.html file to use the specified webroot.' }),
619
- (0, common_1.Put)('/webroot'),
620
- __param(0, (0, common_1.Body)()),
616
+ UseGuards(AdminGuard),
617
+ ApiOperation({ summary: 'Update the index.html file to use the specified webroot.' }),
618
+ Put('/webroot'),
619
+ __param(0, Body()),
621
620
  __metadata("design:type", Function),
622
621
  __metadata("design:paramtypes", [Object]),
623
622
  __metadata("design:returntype", Promise)
624
623
  ], ServerController.prototype, "updateWebroot", null);
625
- exports.ServerController = ServerController = __decorate([
626
- (0, swagger_1.ApiTags)('Homebridge'),
627
- (0, swagger_1.ApiBearerAuth)(),
628
- (0, common_1.UseGuards)((0, passport_1.AuthGuard)()),
629
- (0, common_1.Controller)('server'),
630
- __metadata("design:paramtypes", [server_service_1.ServerService,
631
- child_bridges_service_1.ChildBridgesService,
632
- logger_service_1.Logger])
624
+ ServerController = __decorate([
625
+ ApiTags('Homebridge'),
626
+ ApiBearerAuth(),
627
+ UseGuards(AuthGuard()),
628
+ Controller('server'),
629
+ __param(0, Inject(ServerService)),
630
+ __param(1, Inject(ChildBridgesService)),
631
+ __param(2, Inject(Logger)),
632
+ __metadata("design:paramtypes", [ServerService,
633
+ ChildBridgesService,
634
+ Logger])
633
635
  ], ServerController);
636
+ export { ServerController };
634
637
  //# sourceMappingURL=server.controller.js.map