homebridge-config-ui-x 5.9.1-beta.0 → 5.9.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -2
- package/dist/app.controller.d.ts +1 -1
- package/dist/app.controller.js +14 -12
- package/dist/app.controller.js.map +1 -1
- package/dist/app.gateway.js +7 -10
- package/dist/app.gateway.js.map +1 -1
- package/dist/app.module.js +40 -43
- package/dist/app.module.js.map +1 -1
- package/dist/app.service.js +4 -7
- package/dist/app.service.js.map +1 -1
- package/dist/bin/base-platform.d.ts +1 -1
- package/dist/bin/base-platform.js +11 -17
- package/dist/bin/base-platform.js.map +1 -1
- package/dist/bin/fork.js +7 -45
- package/dist/bin/fork.js.map +1 -1
- package/dist/bin/hb-service.js +224 -243
- package/dist/bin/hb-service.js.map +1 -1
- package/dist/bin/platforms/darwin.d.ts +1 -1
- package/dist/bin/platforms/darwin.js +61 -65
- package/dist/bin/platforms/darwin.js.map +1 -1
- package/dist/bin/platforms/freebsd.d.ts +1 -1
- package/dist/bin/platforms/freebsd.js +42 -47
- package/dist/bin/platforms/freebsd.js.map +1 -1
- package/dist/bin/platforms/linux.d.ts +1 -1
- package/dist/bin/platforms/linux.js +127 -132
- package/dist/bin/platforms/linux.js.map +1 -1
- package/dist/bin/platforms/win32.d.ts +1 -1
- package/dist/bin/platforms/win32.js +30 -36
- package/dist/bin/platforms/win32.js.map +1 -1
- package/dist/bin/standalone.js +15 -53
- package/dist/bin/standalone.js.map +1 -1
- package/dist/core/auth/auth.controller.d.ts +3 -3
- package/dist/core/auth/auth.controller.js +40 -39
- package/dist/core/auth/auth.controller.js.map +1 -1
- package/dist/core/auth/auth.dto.js +17 -18
- package/dist/core/auth/auth.dto.js.map +1 -1
- package/dist/core/auth/auth.module.js +28 -31
- package/dist/core/auth/auth.module.js.map +1 -1
- package/dist/core/auth/auth.service.d.ts +3 -3
- package/dist/core/auth/auth.service.js +65 -62
- package/dist/core/auth/auth.service.js.map +1 -1
- package/dist/core/auth/guards/admin.guard.js +4 -7
- package/dist/core/auth/guards/admin.guard.js.map +1 -1
- package/dist/core/auth/guards/custom.guard.js +6 -9
- package/dist/core/auth/guards/custom.guard.js.map +1 -1
- package/dist/core/auth/guards/ws-admin-guard.d.ts +1 -1
- package/dist/core/auth/guards/ws-admin-guard.js +13 -11
- package/dist/core/auth/guards/ws-admin-guard.js.map +1 -1
- package/dist/core/auth/guards/ws.guard.d.ts +1 -1
- package/dist/core/auth/guards/ws.guard.js +13 -11
- package/dist/core/auth/guards/ws.guard.js.map +1 -1
- package/dist/core/auth/jwt.strategy.d.ts +3 -2
- package/dist/core/auth/jwt.strategy.js +21 -16
- package/dist/core/auth/jwt.strategy.js.map +1 -1
- package/dist/core/config/config.interfaces.js +1 -2
- package/dist/core/config/config.module.js +8 -10
- package/dist/core/config/config.module.js.map +1 -1
- package/dist/core/config/config.service.d.ts +2 -2
- package/dist/core/config/config.service.js +88 -82
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/core/config/config.startup.d.ts +1 -1
- package/dist/core/config/config.startup.js +23 -28
- package/dist/core/config/config.startup.js.map +1 -1
- package/dist/core/feature-flags/feature-flags.registry.js +1 -4
- package/dist/core/feature-flags/feature-flags.registry.js.map +1 -1
- package/dist/core/homebridge-ipc/homebridge-ipc.module.js +11 -14
- package/dist/core/homebridge-ipc/homebridge-ipc.module.js.map +1 -1
- package/dist/core/homebridge-ipc/homebridge-ipc.service.d.ts +2 -2
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js +24 -19
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js.map +1 -1
- package/dist/core/logger/logger.module.js +8 -10
- package/dist/core/logger/logger.module.js.map +1 -1
- package/dist/core/logger/logger.service.js +13 -23
- package/dist/core/logger/logger.service.js.map +1 -1
- package/dist/core/node-pty/node-pty.module.js +7 -10
- package/dist/core/node-pty/node-pty.module.js.map +1 -1
- package/dist/core/node-pty/node-pty.service.js +6 -11
- package/dist/core/node-pty/node-pty.service.js.map +1 -1
- package/dist/core/node-version.constants.js +4 -11
- package/dist/core/node-version.constants.js.map +1 -1
- package/dist/core/scheduler/scheduler.module.js +7 -10
- package/dist/core/scheduler/scheduler.module.js.map +1 -1
- package/dist/core/scheduler/scheduler.service.js +9 -14
- package/dist/core/scheduler/scheduler.service.js.map +1 -1
- package/dist/core/spa/spa-html.service.js +9 -15
- package/dist/core/spa/spa-html.service.js.map +1 -1
- package/dist/core/spa/spa.filter.d.ts +1 -1
- package/dist/core/spa/spa.filter.js +11 -16
- package/dist/core/spa/spa.filter.js.map +1 -1
- package/dist/core/ssl/ssl-cert-generator.service.d.ts +1 -1
- package/dist/core/ssl/ssl-cert-generator.service.js +34 -36
- package/dist/core/ssl/ssl-cert-generator.service.js.map +1 -1
- package/dist/env-setup.d.ts +1 -0
- package/dist/env-setup.js +7 -0
- package/dist/env-setup.js.map +1 -0
- package/dist/globalDefaults.d.ts +1 -0
- package/dist/globalDefaults.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -19
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +5 -3
- package/dist/main.js +44 -51
- package/dist/main.js.map +1 -1
- package/dist/modules/accessories/accessories.controller.d.ts +2 -2
- package/dist/modules/accessories/accessories.controller.js +27 -29
- package/dist/modules/accessories/accessories.controller.js.map +1 -1
- package/dist/modules/accessories/accessories.dto.js +11 -13
- package/dist/modules/accessories/accessories.dto.js.map +1 -1
- package/dist/modules/accessories/accessories.gateway.d.ts +1 -1
- package/dist/modules/accessories/accessories.gateway.js +18 -16
- package/dist/modules/accessories/accessories.gateway.js.map +1 -1
- package/dist/modules/accessories/accessories.module.js +17 -20
- package/dist/modules/accessories/accessories.module.js.map +1 -1
- package/dist/modules/accessories/accessories.service.d.ts +2 -2
- package/dist/modules/accessories/accessories.service.js +37 -35
- package/dist/modules/accessories/accessories.service.js.map +1 -1
- package/dist/modules/backup/backup.controller.d.ts +2 -2
- package/dist/modules/backup/backup.controller.js +68 -67
- package/dist/modules/backup/backup.controller.js.map +1 -1
- package/dist/modules/backup/backup.gateway.d.ts +2 -2
- package/dist/modules/backup/backup.gateway.js +25 -21
- package/dist/modules/backup/backup.gateway.js.map +1 -1
- package/dist/modules/backup/backup.module.js +22 -25
- package/dist/modules/backup/backup.module.js.map +1 -1
- package/dist/modules/backup/backup.service.d.ts +5 -5
- package/dist/modules/backup/backup.service.js +143 -133
- package/dist/modules/backup/backup.service.js.map +1 -1
- package/dist/modules/child-bridges/child-bridges.gateway.d.ts +2 -2
- package/dist/modules/child-bridges/child-bridges.gateway.js +23 -21
- package/dist/modules/child-bridges/child-bridges.gateway.js.map +1 -1
- package/dist/modules/child-bridges/child-bridges.interfaces.js +1 -2
- package/dist/modules/child-bridges/child-bridges.module.js +19 -22
- package/dist/modules/child-bridges/child-bridges.module.js.map +1 -1
- package/dist/modules/child-bridges/child-bridges.service.d.ts +3 -3
- package/dist/modules/child-bridges/child-bridges.service.js +15 -11
- package/dist/modules/child-bridges/child-bridges.service.js.map +1 -1
- package/dist/modules/config-editor/config-editor.controller.d.ts +6 -6
- package/dist/modules/config-editor/config-editor.controller.js +94 -95
- package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
- package/dist/modules/config-editor/config-editor.module.js +21 -24
- package/dist/modules/config-editor/config-editor.module.js.map +1 -1
- package/dist/modules/config-editor/config-editor.service.d.ts +6 -6
- package/dist/modules/config-editor/config-editor.service.js +65 -57
- package/dist/modules/config-editor/config-editor.service.js.map +1 -1
- package/dist/modules/custom-plugins/custom-plugins.module.js +10 -13
- package/dist/modules/custom-plugins/custom-plugins.module.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.controller.d.ts +1 -1
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.controller.js +21 -19
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.controller.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.module.js +14 -17
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.module.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.service.d.ts +1 -1
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.service.js +18 -15
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.service.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.controller.d.ts +1 -1
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.controller.js +21 -19
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.controller.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.module.js +14 -17
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.module.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.service.d.ts +1 -1
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.service.js +18 -15
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.service.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.controller.d.ts +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.controller.js +18 -19
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.controller.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.gateway.d.ts +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.gateway.js +15 -13
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.gateway.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.module.js +18 -21
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.module.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.d.ts +4 -4
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +47 -41
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
- package/dist/modules/log/log.gateway.d.ts +2 -2
- package/dist/modules/log/log.gateway.js +15 -13
- package/dist/modules/log/log.gateway.js.map +1 -1
- package/dist/modules/log/log.interfaces.js +1 -2
- package/dist/modules/log/log.module.js +14 -17
- package/dist/modules/log/log.module.js.map +1 -1
- package/dist/modules/log/log.service.d.ts +3 -3
- package/dist/modules/log/log.service.js +47 -43
- package/dist/modules/log/log.service.js.map +1 -1
- package/dist/modules/platform-tools/docker/docker.controller.d.ts +1 -1
- package/dist/modules/platform-tools/docker/docker.controller.js +24 -25
- package/dist/modules/platform-tools/docker/docker.controller.js.map +1 -1
- package/dist/modules/platform-tools/docker/docker.module.js +14 -17
- package/dist/modules/platform-tools/docker/docker.module.js.map +1 -1
- package/dist/modules/platform-tools/docker/docker.service.d.ts +2 -2
- package/dist/modules/platform-tools/docker/docker.service.js +20 -16
- package/dist/modules/platform-tools/docker/docker.service.js.map +1 -1
- package/dist/modules/platform-tools/hb-service/hb-service.controller.d.ts +2 -2
- package/dist/modules/platform-tools/hb-service/hb-service.controller.js +35 -36
- package/dist/modules/platform-tools/hb-service/hb-service.controller.js.map +1 -1
- package/dist/modules/platform-tools/hb-service/hb-service.dto.js +20 -19
- package/dist/modules/platform-tools/hb-service/hb-service.dto.js.map +1 -1
- package/dist/modules/platform-tools/hb-service/hb-service.module.js +14 -17
- package/dist/modules/platform-tools/hb-service/hb-service.module.js.map +1 -1
- package/dist/modules/platform-tools/hb-service/hb-service.service.d.ts +3 -3
- package/dist/modules/platform-tools/hb-service/hb-service.service.js +37 -30
- package/dist/modules/platform-tools/hb-service/hb-service.service.js.map +1 -1
- package/dist/modules/platform-tools/linux/linux.controller.d.ts +1 -1
- package/dist/modules/platform-tools/linux/linux.controller.js +23 -21
- package/dist/modules/platform-tools/linux/linux.controller.js.map +1 -1
- package/dist/modules/platform-tools/linux/linux.module.js +14 -17
- package/dist/modules/platform-tools/linux/linux.module.js.map +1 -1
- package/dist/modules/platform-tools/linux/linux.service.d.ts +2 -2
- package/dist/modules/platform-tools/linux/linux.service.js +18 -14
- package/dist/modules/platform-tools/linux/linux.service.js.map +1 -1
- package/dist/modules/platform-tools/platform-tools.module.js +12 -15
- package/dist/modules/platform-tools/platform-tools.module.js.map +1 -1
- package/dist/modules/platform-tools/terminal/terminal.controller.d.ts +1 -1
- package/dist/modules/platform-tools/terminal/terminal.controller.js +15 -13
- package/dist/modules/platform-tools/terminal/terminal.controller.js.map +1 -1
- package/dist/modules/platform-tools/terminal/terminal.gateway.d.ts +2 -2
- package/dist/modules/platform-tools/terminal/terminal.gateway.js +17 -15
- package/dist/modules/platform-tools/terminal/terminal.gateway.js.map +1 -1
- package/dist/modules/platform-tools/terminal/terminal.interfaces.js +1 -2
- package/dist/modules/platform-tools/terminal/terminal.module.js +18 -21
- package/dist/modules/platform-tools/terminal/terminal.module.js.map +1 -1
- package/dist/modules/platform-tools/terminal/terminal.service.d.ts +4 -4
- package/dist/modules/platform-tools/terminal/terminal.service.js +33 -28
- package/dist/modules/platform-tools/terminal/terminal.service.js.map +1 -1
- package/dist/modules/plugins/plugins.controller.d.ts +6 -6
- package/dist/modules/plugins/plugins.controller.js +51 -52
- package/dist/modules/plugins/plugins.controller.js.map +1 -1
- package/dist/modules/plugins/plugins.dto.js +26 -24
- package/dist/modules/plugins/plugins.dto.js.map +1 -1
- package/dist/modules/plugins/plugins.gateway.d.ts +3 -3
- package/dist/modules/plugins/plugins.gateway.js +38 -34
- package/dist/modules/plugins/plugins.gateway.js.map +1 -1
- package/dist/modules/plugins/plugins.interfaces.js +1 -2
- package/dist/modules/plugins/plugins.module.js +23 -26
- package/dist/modules/plugins/plugins.module.js.map +1 -1
- package/dist/modules/plugins/plugins.service.d.ts +9 -7
- package/dist/modules/plugins/plugins.service.js +231 -202
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/server/server.controller.d.ts +34 -4
- package/dist/modules/server/server.controller.js +294 -177
- package/dist/modules/server/server.controller.js.map +1 -1
- package/dist/modules/server/server.dto.js +13 -16
- package/dist/modules/server/server.dto.js.map +1 -1
- package/dist/modules/server/server.module.js +23 -26
- package/dist/modules/server/server.module.js.map +1 -1
- package/dist/modules/server/server.service.d.ts +36 -6
- package/dist/modules/server/server.service.js +406 -150
- package/dist/modules/server/server.service.js.map +1 -1
- package/dist/modules/setup-wizard/setup-wizard.controller.d.ts +2 -2
- package/dist/modules/setup-wizard/setup-wizard.controller.js +19 -20
- package/dist/modules/setup-wizard/setup-wizard.controller.js.map +1 -1
- package/dist/modules/setup-wizard/setup-wizard.gateway.d.ts +2 -2
- package/dist/modules/setup-wizard/setup-wizard.gateway.js +25 -21
- package/dist/modules/setup-wizard/setup-wizard.gateway.js.map +1 -1
- package/dist/modules/setup-wizard/setup-wizard.guard.d.ts +1 -1
- package/dist/modules/setup-wizard/setup-wizard.guard.js +11 -9
- package/dist/modules/setup-wizard/setup-wizard.guard.js.map +1 -1
- package/dist/modules/setup-wizard/setup-wizard.module.js +12 -15
- package/dist/modules/setup-wizard/setup-wizard.module.js.map +1 -1
- package/dist/modules/status/status.controller.d.ts +5 -5
- package/dist/modules/status/status.controller.js +40 -36
- package/dist/modules/status/status.controller.js.map +1 -1
- package/dist/modules/status/status.gateway.d.ts +9 -9
- package/dist/modules/status/status.gateway.js +51 -47
- package/dist/modules/status/status.gateway.js.map +1 -1
- package/dist/modules/status/status.interfaces.js +2 -5
- package/dist/modules/status/status.interfaces.js.map +1 -1
- package/dist/modules/status/status.module.js +26 -29
- package/dist/modules/status/status.module.js.map +1 -1
- package/dist/modules/status/status.service.d.ts +7 -7
- package/dist/modules/status/status.service.js +100 -88
- package/dist/modules/status/status.service.js.map +1 -1
- package/dist/modules/users/users.controller.d.ts +2 -2
- package/dist/modules/users/users.controller.js +59 -60
- package/dist/modules/users/users.controller.js.map +1 -1
- package/dist/modules/users/users.dto.js +51 -45
- package/dist/modules/users/users.dto.js.map +1 -1
- package/dist/modules/users/users.module.js +14 -17
- package/dist/modules/users/users.module.js.map +1 -1
- package/dist/self-check.js +25 -25
- package/dist/self-check.js.map +1 -1
- package/docs/ssl-upload-pr.md +103 -0
- package/package.json +6 -7
- package/public/{chunk-PPA66JI2.js → chunk-2FNQEOXF.js} +1 -1
- package/public/{chunk-HERKNFLL.js → chunk-2SCTALGY.js} +1 -1
- package/public/{chunk-BQTGMLQB.js → chunk-3IJXQMYZ.js} +1 -1
- package/public/chunk-425ZEUU6.js +1 -0
- package/public/{chunk-EHHNHG6Q.js → chunk-4T6CM7M3.js} +1 -1
- package/public/{chunk-IKY3F7MM.js → chunk-7SKTJO5M.js} +1 -1
- package/public/{chunk-E4ZKIFZH.js → chunk-7UDDRMZZ.js} +1 -1
- package/public/{chunk-Y2N6WV2O.js → chunk-ATMY4YI2.js} +1 -1
- package/public/{chunk-UKEKNQEJ.js → chunk-AZIRJR4B.js} +1 -1
- package/public/{chunk-2UQL2OTF.js → chunk-B2XE365J.js} +1 -1
- package/public/{chunk-JWHZQ7YI.js → chunk-BMKJTHFC.js} +1 -1
- package/public/{chunk-R2PMDKTD.js → chunk-CGYD722J.js} +1 -1
- package/public/{chunk-BI2TS6NN.js → chunk-CQREAKPC.js} +4 -4
- package/public/{chunk-WMGV3KS6.js → chunk-CYBDQV2B.js} +1 -1
- package/public/{chunk-TJEQFEML.js → chunk-D5RKKI2A.js} +1 -1
- package/public/{chunk-NUCXRR5D.js → chunk-EAGKQ5OJ.js} +1 -1
- package/public/{chunk-EYO3XCE2.js → chunk-FGNMMSZH.js} +1 -1
- package/public/{chunk-FGS4HIPD.js → chunk-FTKWC2Q2.js} +1 -1
- package/public/{chunk-QU4I4QSX.js → chunk-HFW5E2OW.js} +1 -1
- package/public/chunk-IIDLQ7XY.js +1 -0
- package/public/{chunk-4E4YMHG4.js → chunk-INX52LH2.js} +1 -1
- package/public/{chunk-VFIOPF3O.js → chunk-JD5JQTN5.js} +1 -1
- package/public/{chunk-RLWY3GD4.js → chunk-JFRCT5V7.js} +1 -1
- package/public/{chunk-JWCVCB6V.js → chunk-JJ7TVAIH.js} +4 -4
- package/public/{chunk-JWY7RFE6.js → chunk-JPCV77W6.js} +1 -1
- package/public/{chunk-ISV4M72Q.js → chunk-K7D2P3SM.js} +1 -1
- package/public/chunk-L66ATRVT.js +1 -0
- package/public/{chunk-IXIZVUXX.js → chunk-LARQLRNL.js} +1 -1
- package/public/{chunk-BVTPAZF3.js → chunk-LHCMU3MO.js} +1 -1
- package/public/{chunk-5T6O4JCR.js → chunk-LZQVKA4S.js} +1 -1
- package/public/{chunk-7F6JT34E.js → chunk-M7QUT5ZZ.js} +1 -1
- package/public/{chunk-2MFBHUTD.js → chunk-MDBZMB6Y.js} +1 -1
- package/public/{chunk-HVGUNGBB.js → chunk-MNVUSYOZ.js} +1 -1
- package/public/{chunk-ZC3JEQZ5.js → chunk-N2TWGDNX.js} +1 -1
- package/public/{chunk-XS5JK2LY.js → chunk-NKNWXFAK.js} +1 -1
- package/public/{chunk-SOA3BB36.js → chunk-OS2SEJZU.js} +1 -1
- package/public/{chunk-IEO2AG2N.js → chunk-PXSEH255.js} +1 -1
- package/public/{chunk-QJLKBB62.js → chunk-PZ2ZCCFR.js} +1 -1
- package/public/{chunk-CWTDHTPI.js → chunk-QCZ4VVDL.js} +1 -1
- package/public/{chunk-5W7EKO7F.js → chunk-QSVZNI3M.js} +1 -1
- package/public/{chunk-4H7ODI34.js → chunk-QUA46GZJ.js} +1 -1
- package/public/{chunk-D4LRW76J.js → chunk-QVLCTKQH.js} +1 -1
- package/public/{chunk-DL2QDFLD.js → chunk-RQ4B2IIV.js} +1 -1
- package/public/{chunk-OTOQR5Z2.js → chunk-RQAFAZAK.js} +1 -1
- package/public/{chunk-4AWJ2PWG.js → chunk-S4OE2ITZ.js} +1 -1
- package/public/{chunk-ZF6W5Z5R.js → chunk-SA5C7QVC.js} +1 -1
- package/public/{chunk-USXMCNIE.js → chunk-SSZBNSOM.js} +1 -1
- package/public/{chunk-E7S36RMO.js → chunk-TA6DOQC5.js} +1 -1
- package/public/{chunk-VB4UAZWJ.js → chunk-TC77PFBQ.js} +1 -1
- package/public/{chunk-5WTTTYNS.js → chunk-TKGKVKOW.js} +1 -1
- package/public/{chunk-FOSFENMV.js → chunk-TSFGO3MA.js} +1 -1
- package/public/{chunk-IBO6BDNZ.js → chunk-UEDMHOPK.js} +1 -1
- package/public/{chunk-LI4BZAUI.js → chunk-UOPWP4RR.js} +1 -1
- package/public/chunk-UTFHCUKB.js +1 -0
- package/public/{chunk-SXOLKD36.js → chunk-UTN2R7WG.js} +1 -1
- package/public/chunk-UV24H47X.js +1 -0
- package/public/{chunk-B5Z4M7ZJ.js → chunk-VSBBKD6B.js} +1 -1
- package/public/{chunk-AO7VT6PL.js → chunk-VYC5JLE6.js} +1 -1
- package/public/{chunk-AOALMLGY.js → chunk-W7UNXMCL.js} +1 -1
- package/public/{chunk-NIERW5KT.js → chunk-WVCOONJF.js} +1 -1
- package/public/{chunk-RON3LUMX.js → chunk-WWSLIQVD.js} +1 -1
- package/public/{chunk-4DVF333O.js → chunk-X3IVSHIL.js} +1 -1
- package/public/{chunk-5G7T74GR.js → chunk-XE5VJDQL.js} +1 -1
- package/public/chunk-XMNXI4QP.js +50 -0
- package/public/{chunk-W26VKO62.js → chunk-XX5GWADI.js} +1 -1
- package/public/{chunk-TGX55EFG.js → chunk-Y5XBENWZ.js} +1 -1
- package/public/{chunk-Z6VQEXUS.js → chunk-YNONXMOG.js} +1 -1
- package/public/{chunk-DIWD6B4C.js → chunk-ZEI3HZ6P.js} +1 -1
- package/public/index.html +2 -2
- package/public/{main-QP5R7HI3.js → main-UGYHSCMY.js} +1 -1
- package/public/{styles-CSF457UW.css → styles-WNHDEKE4.css} +1 -1
- package/scripts/extract-plugin-alias.js +8 -4
- package/public/chunk-2ADAW5AD.js +0 -1
- package/public/chunk-2Y63WBU6.js +0 -1
- package/public/chunk-I3QQTGGZ.js +0 -1
- package/public/chunk-LGE6SGDN.js +0 -1
- package/public/chunk-PZD3OMMY.js +0 -1
- package/public/chunk-QOSAHW73.js +0 -50
|
@@ -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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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,352 +129,399 @@ let ServerController = class ServerController {
|
|
|
129
129
|
try {
|
|
130
130
|
const data = await req.file();
|
|
131
131
|
if (data.file.truncated) {
|
|
132
|
-
throw new
|
|
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
|
|
138
|
+
throw new InternalServerErrorException(err.message);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
async uploadSslKeyCert(req) {
|
|
142
|
+
try {
|
|
143
|
+
return await this.serverService.uploadSslKeyCert(req);
|
|
144
|
+
}
|
|
145
|
+
catch (err) {
|
|
146
|
+
if (err instanceof HttpException) {
|
|
147
|
+
throw err;
|
|
148
|
+
}
|
|
149
|
+
this.logger.error(`SSL key/cert upload failed as ${err?.message}`);
|
|
150
|
+
throw new InternalServerErrorException(err?.message);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
async uploadSslPfx(req) {
|
|
154
|
+
try {
|
|
155
|
+
return await this.serverService.uploadSslPfx(req);
|
|
156
|
+
}
|
|
157
|
+
catch (err) {
|
|
158
|
+
if (err instanceof HttpException) {
|
|
159
|
+
throw err;
|
|
160
|
+
}
|
|
161
|
+
this.logger.error(`SSL pfx upload failed as ${err?.message}`);
|
|
162
|
+
throw new InternalServerErrorException(err?.message);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
async validateSsl() {
|
|
166
|
+
try {
|
|
167
|
+
return await this.serverService.validateCurrentSslConfig();
|
|
168
|
+
}
|
|
169
|
+
catch (err) {
|
|
170
|
+
if (err instanceof HttpException) {
|
|
171
|
+
throw err;
|
|
172
|
+
}
|
|
173
|
+
this.logger.error(`SSL validate failed as ${err?.message}`);
|
|
174
|
+
throw new InternalServerErrorException(err?.message);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
async generateSelfSigned(body) {
|
|
178
|
+
try {
|
|
179
|
+
return await this.serverService.generateSelfSignedCertificate(body);
|
|
180
|
+
}
|
|
181
|
+
catch (err) {
|
|
182
|
+
if (err instanceof HttpException) {
|
|
183
|
+
throw err;
|
|
184
|
+
}
|
|
185
|
+
this.logger.error(`Generate self-signed certificate failed as ${err?.message}`);
|
|
186
|
+
throw new InternalServerErrorException(err?.message);
|
|
139
187
|
}
|
|
140
188
|
}
|
|
141
189
|
async deleteWallpaper() {
|
|
142
190
|
await this.serverService.deleteWallpaper();
|
|
143
191
|
}
|
|
144
192
|
async updateWebroot(body) {
|
|
145
|
-
await
|
|
193
|
+
await SpaHtmlService.updateIndexHtml(body.webroot);
|
|
146
194
|
}
|
|
147
195
|
};
|
|
148
|
-
exports.ServerController = ServerController;
|
|
149
196
|
__decorate([
|
|
150
|
-
|
|
151
|
-
|
|
197
|
+
Put('/restart'),
|
|
198
|
+
ApiOperation({ summary: 'Restart the Homebridge instance.' }),
|
|
152
199
|
__metadata("design:type", Function),
|
|
153
200
|
__metadata("design:paramtypes", []),
|
|
154
201
|
__metadata("design:returntype", void 0)
|
|
155
202
|
], ServerController.prototype, "restartServer", null);
|
|
156
203
|
__decorate([
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
204
|
+
UseGuards(AdminGuard),
|
|
205
|
+
Put('/restart/:deviceId'),
|
|
206
|
+
ApiOperation({
|
|
160
207
|
summary: 'Restart a child bridge instance.',
|
|
161
208
|
}),
|
|
162
|
-
__param(0,
|
|
209
|
+
__param(0, Param('deviceId')),
|
|
163
210
|
__metadata("design:type", Function),
|
|
164
211
|
__metadata("design:paramtypes", [String]),
|
|
165
212
|
__metadata("design:returntype", void 0)
|
|
166
213
|
], ServerController.prototype, "restartChildBridge", null);
|
|
167
214
|
__decorate([
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
215
|
+
UseGuards(AdminGuard),
|
|
216
|
+
Put('/stop/:deviceId'),
|
|
217
|
+
ApiOperation({
|
|
171
218
|
summary: 'Stop a child bridge instance.',
|
|
172
219
|
}),
|
|
173
|
-
__param(0,
|
|
220
|
+
__param(0, Param('deviceId')),
|
|
174
221
|
__metadata("design:type", Function),
|
|
175
222
|
__metadata("design:paramtypes", [String]),
|
|
176
223
|
__metadata("design:returntype", void 0)
|
|
177
224
|
], ServerController.prototype, "stopChildBridge", null);
|
|
178
225
|
__decorate([
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
226
|
+
UseGuards(AdminGuard),
|
|
227
|
+
Put('/start/:deviceId'),
|
|
228
|
+
ApiOperation({
|
|
182
229
|
summary: 'Start a child bridge instance.',
|
|
183
230
|
}),
|
|
184
|
-
__param(0,
|
|
231
|
+
__param(0, Param('deviceId')),
|
|
185
232
|
__metadata("design:type", Function),
|
|
186
233
|
__metadata("design:paramtypes", [String]),
|
|
187
234
|
__metadata("design:returntype", void 0)
|
|
188
235
|
], ServerController.prototype, "startChildBridge", null);
|
|
189
236
|
__decorate([
|
|
190
|
-
|
|
191
|
-
|
|
237
|
+
Get('/pairing'),
|
|
238
|
+
ApiOperation({ summary: 'Get the Homebridge <> HomeKit pairing information and status.' }),
|
|
192
239
|
__metadata("design:type", Function),
|
|
193
240
|
__metadata("design:paramtypes", []),
|
|
194
241
|
__metadata("design:returntype", void 0)
|
|
195
242
|
], ServerController.prototype, "getBridgePairingInformation", null);
|
|
196
243
|
__decorate([
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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'),
|
|
200
247
|
__metadata("design:type", Function),
|
|
201
248
|
__metadata("design:paramtypes", []),
|
|
202
249
|
__metadata("design:returntype", void 0)
|
|
203
250
|
], ServerController.prototype, "resetHomebridgeAccessory", null);
|
|
204
251
|
__decorate([
|
|
205
|
-
|
|
206
|
-
|
|
252
|
+
UseGuards(AdminGuard),
|
|
253
|
+
ApiOperation({
|
|
207
254
|
summary: 'Remove Homebridge cached accessories.',
|
|
208
255
|
}),
|
|
209
|
-
|
|
256
|
+
Put('/reset-cached-accessories'),
|
|
210
257
|
__metadata("design:type", Function),
|
|
211
258
|
__metadata("design:paramtypes", []),
|
|
212
259
|
__metadata("design:returntype", void 0)
|
|
213
260
|
], ServerController.prototype, "deleteAllCachedAccessories", null);
|
|
214
261
|
__decorate([
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
262
|
+
UseGuards(AdminGuard),
|
|
263
|
+
ApiOperation({ summary: 'List cached Homebridge accessories.' }),
|
|
264
|
+
Get('/cached-accessories'),
|
|
218
265
|
__metadata("design:type", Function),
|
|
219
266
|
__metadata("design:paramtypes", []),
|
|
220
267
|
__metadata("design:returntype", void 0)
|
|
221
268
|
], ServerController.prototype, "getCachedAccessories", null);
|
|
222
269
|
__decorate([
|
|
223
|
-
|
|
224
|
-
|
|
270
|
+
UseGuards(AdminGuard),
|
|
271
|
+
ApiOperation({
|
|
225
272
|
summary: 'Remove a single Homebridge cached accessory.',
|
|
226
273
|
}),
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
__param(0,
|
|
232
|
-
__param(1,
|
|
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')),
|
|
233
280
|
__metadata("design:type", Function),
|
|
234
281
|
__metadata("design:paramtypes", [String, String]),
|
|
235
282
|
__metadata("design:returntype", void 0)
|
|
236
283
|
], ServerController.prototype, "deleteCachedAccessory", null);
|
|
237
284
|
__decorate([
|
|
238
|
-
|
|
239
|
-
|
|
285
|
+
UseGuards(AdminGuard),
|
|
286
|
+
ApiOperation({
|
|
240
287
|
summary: 'Remove multiple Homebridge cached accessories.',
|
|
241
288
|
}),
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
__param(0,
|
|
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()),
|
|
246
293
|
__metadata("design:type", Function),
|
|
247
294
|
__metadata("design:paramtypes", [Array]),
|
|
248
295
|
__metadata("design:returntype", void 0)
|
|
249
296
|
], ServerController.prototype, "deleteCachedAccessories", null);
|
|
250
297
|
__decorate([
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
298
|
+
UseGuards(AdminGuard),
|
|
299
|
+
ApiOperation({ summary: 'List cached Matter accessories.' }),
|
|
300
|
+
Get('/matter-accessories'),
|
|
254
301
|
__metadata("design:type", Function),
|
|
255
302
|
__metadata("design:paramtypes", []),
|
|
256
303
|
__metadata("design:returntype", void 0)
|
|
257
304
|
], ServerController.prototype, "getMatterAccessories", null);
|
|
258
305
|
__decorate([
|
|
259
|
-
|
|
260
|
-
|
|
306
|
+
UseGuards(AdminGuard),
|
|
307
|
+
ApiOperation({
|
|
261
308
|
summary: 'Remove a single Matter cached accessory.',
|
|
262
309
|
}),
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
__param(0,
|
|
268
|
-
__param(1,
|
|
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')),
|
|
269
316
|
__metadata("design:type", Function),
|
|
270
317
|
__metadata("design:paramtypes", [String, String]),
|
|
271
318
|
__metadata("design:returntype", void 0)
|
|
272
319
|
], ServerController.prototype, "deleteMatterAccessory", null);
|
|
273
320
|
__decorate([
|
|
274
|
-
|
|
275
|
-
|
|
321
|
+
UseGuards(AdminGuard),
|
|
322
|
+
ApiOperation({
|
|
276
323
|
summary: 'Remove multiple Matter cached accessories.',
|
|
277
324
|
}),
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
__param(0,
|
|
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()),
|
|
282
329
|
__metadata("design:type", Function),
|
|
283
330
|
__metadata("design:paramtypes", [Array]),
|
|
284
331
|
__metadata("design:returntype", void 0)
|
|
285
332
|
], ServerController.prototype, "deleteMatterAccessories", null);
|
|
286
333
|
__decorate([
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
334
|
+
UseGuards(AdminGuard),
|
|
335
|
+
ApiOperation({ summary: 'List all paired accessories (main bridge, external cameras, TVs etc).' }),
|
|
336
|
+
Get('/pairings'),
|
|
290
337
|
__metadata("design:type", Function),
|
|
291
338
|
__metadata("design:paramtypes", []),
|
|
292
339
|
__metadata("design:returntype", void 0)
|
|
293
340
|
], ServerController.prototype, "getDevicePairings", null);
|
|
294
341
|
__decorate([
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
__param(0,
|
|
342
|
+
UseGuards(AdminGuard),
|
|
343
|
+
ApiOperation({ summary: 'Get a single device pairing.' }),
|
|
344
|
+
Get('/pairings/:deviceId'),
|
|
345
|
+
__param(0, Param('deviceId')),
|
|
299
346
|
__metadata("design:type", Function),
|
|
300
347
|
__metadata("design:paramtypes", [String]),
|
|
301
348
|
__metadata("design:returntype", void 0)
|
|
302
349
|
], ServerController.prototype, "getDevicePairingById", null);
|
|
303
350
|
__decorate([
|
|
304
|
-
|
|
305
|
-
|
|
351
|
+
UseGuards(AdminGuard),
|
|
352
|
+
ApiOperation({
|
|
306
353
|
summary: 'Remove a single paired bridge.',
|
|
307
354
|
}),
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
__param(0,
|
|
313
|
-
__param(1,
|
|
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')),
|
|
314
361
|
__metadata("design:type", Function),
|
|
315
362
|
__metadata("design:paramtypes", [String, String]),
|
|
316
363
|
__metadata("design:returntype", void 0)
|
|
317
364
|
], ServerController.prototype, "deleteDevicePairing", null);
|
|
318
365
|
__decorate([
|
|
319
|
-
|
|
320
|
-
|
|
366
|
+
UseGuards(AdminGuard),
|
|
367
|
+
ApiOperation({
|
|
321
368
|
summary: 'Remove Matter configuration from a child bridge.',
|
|
322
369
|
}),
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
__param(0,
|
|
370
|
+
ApiParam({ name: 'deviceId' }),
|
|
371
|
+
Delete('/pairings/:deviceId/matter'),
|
|
372
|
+
HttpCode(204),
|
|
373
|
+
__param(0, Param('deviceId')),
|
|
327
374
|
__metadata("design:type", Function),
|
|
328
375
|
__metadata("design:paramtypes", [String]),
|
|
329
376
|
__metadata("design:returntype", void 0)
|
|
330
377
|
], ServerController.prototype, "deleteDeviceMatterConfig", null);
|
|
331
378
|
__decorate([
|
|
332
|
-
|
|
333
|
-
|
|
379
|
+
UseGuards(AdminGuard),
|
|
380
|
+
ApiOperation({
|
|
334
381
|
summary: 'Remove multiple paired bridges.',
|
|
335
382
|
}),
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
__param(0,
|
|
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()),
|
|
340
387
|
__metadata("design:type", Function),
|
|
341
388
|
__metadata("design:paramtypes", [Array]),
|
|
342
389
|
__metadata("design:returntype", void 0)
|
|
343
390
|
], ServerController.prototype, "deleteDevicesPairings", null);
|
|
344
391
|
__decorate([
|
|
345
|
-
|
|
346
|
-
|
|
392
|
+
UseGuards(AdminGuard),
|
|
393
|
+
ApiOperation({
|
|
347
394
|
summary: 'Remove a paired bridge\'s cached accessories.',
|
|
348
395
|
}),
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
__param(0,
|
|
396
|
+
ApiParam({ name: 'deviceId' }),
|
|
397
|
+
Delete('/pairings/:deviceId/accessories'),
|
|
398
|
+
HttpCode(204),
|
|
399
|
+
__param(0, Param('deviceId')),
|
|
353
400
|
__metadata("design:type", Function),
|
|
354
401
|
__metadata("design:paramtypes", [String]),
|
|
355
402
|
__metadata("design:returntype", void 0)
|
|
356
403
|
], ServerController.prototype, "deleteDeviceAccessories", null);
|
|
357
404
|
__decorate([
|
|
358
|
-
|
|
359
|
-
|
|
405
|
+
UseGuards(AdminGuard),
|
|
406
|
+
ApiOperation({
|
|
360
407
|
summary: 'Remove multiple paired bridges\'s cached accessories.',
|
|
361
408
|
}),
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
__param(0,
|
|
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()),
|
|
366
413
|
__metadata("design:type", Function),
|
|
367
414
|
__metadata("design:paramtypes", [Array]),
|
|
368
415
|
__metadata("design:returntype", void 0)
|
|
369
416
|
], ServerController.prototype, "deleteDevicesAccessories", null);
|
|
370
417
|
__decorate([
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
418
|
+
UseGuards(AdminGuard),
|
|
419
|
+
ApiOperation({ summary: 'Return a random, unused port.' }),
|
|
420
|
+
Get('/port/new'),
|
|
374
421
|
__metadata("design:type", Function),
|
|
375
422
|
__metadata("design:paramtypes", []),
|
|
376
423
|
__metadata("design:returntype", void 0)
|
|
377
424
|
], ServerController.prototype, "lookupUnusedPort", null);
|
|
378
425
|
__decorate([
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
426
|
+
UseGuards(AdminGuard),
|
|
427
|
+
ApiOperation({ summary: 'Return a random, unused port from the Matter port range (5530-5541).' }),
|
|
428
|
+
Get('/port/new/matter'),
|
|
382
429
|
__metadata("design:type", Function),
|
|
383
430
|
__metadata("design:paramtypes", []),
|
|
384
431
|
__metadata("design:returntype", void 0)
|
|
385
432
|
], ServerController.prototype, "lookupUnusedMatterPort", null);
|
|
386
433
|
__decorate([
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
434
|
+
UseGuards(AdminGuard),
|
|
435
|
+
ApiOperation({ summary: 'Return a list of available network interfaces on the server.' }),
|
|
436
|
+
Get('/network-interfaces/system'),
|
|
390
437
|
__metadata("design:type", Function),
|
|
391
438
|
__metadata("design:paramtypes", []),
|
|
392
439
|
__metadata("design:returntype", void 0)
|
|
393
440
|
], ServerController.prototype, "getSystemNetworkInterfaces", null);
|
|
394
441
|
__decorate([
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
442
|
+
UseGuards(AdminGuard),
|
|
443
|
+
ApiOperation({ summary: 'Return a list of the network interface names assigned to Homebridge.' }),
|
|
444
|
+
Get('/network-interfaces/bridge'),
|
|
398
445
|
__metadata("design:type", Function),
|
|
399
446
|
__metadata("design:paramtypes", []),
|
|
400
447
|
__metadata("design:returntype", void 0)
|
|
401
448
|
], ServerController.prototype, "getHomebridgeNetworkInterfaces", null);
|
|
402
449
|
__decorate([
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
__param(0,
|
|
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()),
|
|
407
454
|
__metadata("design:type", Function),
|
|
408
|
-
__metadata("design:paramtypes", [
|
|
455
|
+
__metadata("design:paramtypes", [HomebridgeNetworkInterfacesDto]),
|
|
409
456
|
__metadata("design:returntype", void 0)
|
|
410
457
|
], ServerController.prototype, "setHomebridgeNetworkInterfaces", null);
|
|
411
458
|
__decorate([
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
459
|
+
UseGuards(AdminGuard),
|
|
460
|
+
ApiOperation({ summary: 'Return the current mDNS advertiser settings.' }),
|
|
461
|
+
Get('/mdns-advertiser'),
|
|
415
462
|
__metadata("design:type", Function),
|
|
416
463
|
__metadata("design:paramtypes", []),
|
|
417
464
|
__metadata("design:returntype", Promise)
|
|
418
465
|
], ServerController.prototype, "getHomebridgeMdnsSetting", null);
|
|
419
466
|
__decorate([
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
__param(0,
|
|
467
|
+
UseGuards(AdminGuard),
|
|
468
|
+
ApiOperation({ summary: 'Set the mDNS advertiser settings.' }),
|
|
469
|
+
Put('/mdns-advertiser'),
|
|
470
|
+
__param(0, Body()),
|
|
424
471
|
__metadata("design:type", Function),
|
|
425
|
-
__metadata("design:paramtypes", [
|
|
472
|
+
__metadata("design:paramtypes", [HomebridgeMdnsSettingDto]),
|
|
426
473
|
__metadata("design:returntype", void 0)
|
|
427
474
|
], ServerController.prototype, "setHomebridgeMdnsSetting", null);
|
|
428
475
|
__decorate([
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
__param(0,
|
|
476
|
+
UseGuards(AdminGuard),
|
|
477
|
+
ApiOperation({ summary: 'Set the Homebridge name.' }),
|
|
478
|
+
Put('/name'),
|
|
479
|
+
__param(0, Body()),
|
|
433
480
|
__metadata("design:type", Function),
|
|
434
481
|
__metadata("design:paramtypes", [Object]),
|
|
435
482
|
__metadata("design:returntype", void 0)
|
|
436
483
|
], ServerController.prototype, "setHomebridgeName", null);
|
|
437
484
|
__decorate([
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
485
|
+
UseGuards(AdminGuard),
|
|
486
|
+
ApiOperation({ summary: 'Get the Homebridge port.' }),
|
|
487
|
+
Get('/port'),
|
|
441
488
|
__metadata("design:type", Function),
|
|
442
489
|
__metadata("design:paramtypes", []),
|
|
443
490
|
__metadata("design:returntype", void 0)
|
|
444
491
|
], ServerController.prototype, "getHomebridgePort", null);
|
|
445
492
|
__decorate([
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
__param(0,
|
|
493
|
+
UseGuards(AdminGuard),
|
|
494
|
+
ApiOperation({ summary: 'Set the Homebridge port.' }),
|
|
495
|
+
Put('/port'),
|
|
496
|
+
__param(0, Body()),
|
|
450
497
|
__metadata("design:type", Function),
|
|
451
498
|
__metadata("design:paramtypes", [Object]),
|
|
452
499
|
__metadata("design:returntype", void 0)
|
|
453
500
|
], ServerController.prototype, "setHomebridgePort", null);
|
|
454
501
|
__decorate([
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
502
|
+
UseGuards(AdminGuard),
|
|
503
|
+
ApiOperation({ summary: 'Get the usable ports as set in the config file.' }),
|
|
504
|
+
Get('/ports'),
|
|
458
505
|
__metadata("design:type", Function),
|
|
459
506
|
__metadata("design:paramtypes", []),
|
|
460
507
|
__metadata("design:returntype", void 0)
|
|
461
508
|
], ServerController.prototype, "getUsablePort", null);
|
|
462
509
|
__decorate([
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
__param(0,
|
|
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()),
|
|
468
515
|
__metadata("design:type", Function),
|
|
469
516
|
__metadata("design:paramtypes", [Object]),
|
|
470
517
|
__metadata("design:returntype", void 0)
|
|
471
518
|
], ServerController.prototype, "setUsablePorts", null);
|
|
472
519
|
__decorate([
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
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({
|
|
478
525
|
schema: {
|
|
479
526
|
type: 'object',
|
|
480
527
|
properties: {
|
|
@@ -485,36 +532,106 @@ __decorate([
|
|
|
485
532
|
},
|
|
486
533
|
},
|
|
487
534
|
}),
|
|
488
|
-
__param(0,
|
|
535
|
+
__param(0, Req()),
|
|
489
536
|
__metadata("design:type", Function),
|
|
490
537
|
__metadata("design:paramtypes", [Object]),
|
|
491
538
|
__metadata("design:returntype", Promise)
|
|
492
539
|
], ServerController.prototype, "uploadWallpaper", null);
|
|
493
540
|
__decorate([
|
|
494
|
-
|
|
495
|
-
(
|
|
496
|
-
(
|
|
497
|
-
(
|
|
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({
|
|
546
|
+
schema: {
|
|
547
|
+
type: 'object',
|
|
548
|
+
properties: {
|
|
549
|
+
key: { type: 'string', format: 'binary' },
|
|
550
|
+
cert: { type: 'string', format: 'binary' },
|
|
551
|
+
files: { type: 'string', format: 'binary', description: 'Alternatively, submit both files as multiple parts with field name "files"' },
|
|
552
|
+
},
|
|
553
|
+
},
|
|
554
|
+
}),
|
|
555
|
+
__param(0, Req()),
|
|
556
|
+
__metadata("design:type", Function),
|
|
557
|
+
__metadata("design:paramtypes", [Object]),
|
|
558
|
+
__metadata("design:returntype", Promise)
|
|
559
|
+
], ServerController.prototype, "uploadSslKeyCert", null);
|
|
560
|
+
__decorate([
|
|
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({
|
|
566
|
+
schema: {
|
|
567
|
+
type: 'object',
|
|
568
|
+
properties: {
|
|
569
|
+
pfx: { type: 'string', format: 'binary' },
|
|
570
|
+
passphrase: { type: 'string' },
|
|
571
|
+
},
|
|
572
|
+
required: ['pfx'],
|
|
573
|
+
},
|
|
574
|
+
}),
|
|
575
|
+
__param(0, Req()),
|
|
576
|
+
__metadata("design:type", Function),
|
|
577
|
+
__metadata("design:paramtypes", [Object]),
|
|
578
|
+
__metadata("design:returntype", Promise)
|
|
579
|
+
], ServerController.prototype, "uploadSslPfx", null);
|
|
580
|
+
__decorate([
|
|
581
|
+
UseGuards(AdminGuard),
|
|
582
|
+
Post('/ssl/validate'),
|
|
583
|
+
ApiOperation({ summary: 'Validate the currently configured SSL settings (key+cert or pfx+passphrase).' }),
|
|
584
|
+
__metadata("design:type", Function),
|
|
585
|
+
__metadata("design:paramtypes", []),
|
|
586
|
+
__metadata("design:returntype", Promise)
|
|
587
|
+
], ServerController.prototype, "validateSsl", null);
|
|
588
|
+
__decorate([
|
|
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({
|
|
593
|
+
schema: {
|
|
594
|
+
type: 'object',
|
|
595
|
+
properties: {
|
|
596
|
+
hostnames: { type: 'array', items: { type: 'string' } },
|
|
597
|
+
mode: { type: 'string', enum: ['selfsigned', 'keycert'], default: 'keycert' },
|
|
598
|
+
},
|
|
599
|
+
},
|
|
600
|
+
}),
|
|
601
|
+
__param(0, Body()),
|
|
602
|
+
__metadata("design:type", Function),
|
|
603
|
+
__metadata("design:paramtypes", [Object]),
|
|
604
|
+
__metadata("design:returntype", Promise)
|
|
605
|
+
], ServerController.prototype, "generateSelfSigned", null);
|
|
606
|
+
__decorate([
|
|
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),
|
|
498
611
|
__metadata("design:type", Function),
|
|
499
612
|
__metadata("design:paramtypes", []),
|
|
500
613
|
__metadata("design:returntype", Promise)
|
|
501
614
|
], ServerController.prototype, "deleteWallpaper", null);
|
|
502
615
|
__decorate([
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
__param(0,
|
|
616
|
+
UseGuards(AdminGuard),
|
|
617
|
+
ApiOperation({ summary: 'Update the index.html file to use the specified webroot.' }),
|
|
618
|
+
Put('/webroot'),
|
|
619
|
+
__param(0, Body()),
|
|
507
620
|
__metadata("design:type", Function),
|
|
508
621
|
__metadata("design:paramtypes", [Object]),
|
|
509
622
|
__metadata("design:returntype", Promise)
|
|
510
623
|
], ServerController.prototype, "updateWebroot", null);
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
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])
|
|
519
635
|
], ServerController);
|
|
636
|
+
export { ServerController };
|
|
520
637
|
//# sourceMappingURL=server.controller.js.map
|