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.
- package/CHANGELOG.md +23 -3
- package/TODO-MATTER.md +15 -0
- 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 +42 -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 +5 -4
- 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 +2 -2
- 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 +2 -2
- 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.d.ts +8 -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 +4 -3
- package/dist/core/config/config.service.js +90 -83
- 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 +2 -5
- 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 +4 -4
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js +25 -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 +15 -10
- package/dist/core/scheduler/scheduler.module.js.map +1 -1
- package/dist/core/scheduler/scheduler.service.d.ts +12 -1
- package/dist/core/scheduler/scheduler.service.js +101 -13
- 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.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 +3 -3
- package/dist/modules/accessories/accessories.controller.js +28 -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 +2 -2
- package/dist/modules/accessories/accessories.gateway.js +18 -16
- package/dist/modules/accessories/accessories.gateway.js.map +1 -1
- package/dist/modules/accessories/accessories.interfaces.d.ts +94 -0
- package/dist/modules/accessories/accessories.interfaces.js +2 -0
- package/dist/modules/accessories/accessories.interfaces.js.map +1 -0
- package/dist/modules/accessories/accessories.module.js +19 -20
- package/dist/modules/accessories/accessories.module.js.map +1 -1
- package/dist/modules/accessories/accessories.service.d.ts +23 -5
- package/dist/modules/accessories/accessories.service.js +316 -51
- package/dist/modules/accessories/accessories.service.js.map +1 -1
- package/dist/modules/backup/backup.controller.d.ts +4 -4
- 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 +4 -4
- 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 +3 -3
- 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 +13 -11
- package/dist/modules/config-editor/config-editor.controller.js +168 -103
- package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
- package/dist/modules/config-editor/config-editor.dto.d.ts +6 -0
- package/dist/modules/config-editor/config-editor.dto.js +40 -0
- package/dist/modules/config-editor/config-editor.dto.js.map +1 -0
- 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 +11 -8
- package/dist/modules/config-editor/config-editor.service.js +123 -66
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +8 -8
- 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 +3 -3
- 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 +5 -5
- 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 +7 -7
- 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 +12 -7
- package/dist/modules/plugins/plugins.controller.js +100 -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 +5 -5
- 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 +27 -26
- package/dist/modules/plugins/plugins.module.js.map +1 -1
- package/dist/modules/plugins/plugins.service.d.ts +26 -13
- package/dist/modules/plugins/plugins.service.js +365 -203
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/server/server.controller.d.ts +7 -7
- package/dist/modules/server/server.controller.js +208 -205
- 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 +6 -6
- package/dist/modules/server/server.service.js +202 -224
- package/dist/modules/server/server.service.js.map +1 -1
- package/dist/modules/setup-wizard/setup-wizard.controller.d.ts +3 -3
- 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 +4 -4
- 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 +2 -2
- 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 +11 -11
- 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 +13 -13
- 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 +3 -3
- 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/package.json +14 -12
- package/public/3rdpartylicenses.txt +26 -26
- package/public/{chunk-AI6E5JVH.js → chunk-24KMNOUL.js} +1 -1
- package/public/{chunk-RMZRXORR.js → chunk-2JKVDOVH.js} +1 -1
- package/public/chunk-2NCYMI5G.js +1 -0
- package/public/{chunk-TOYVIOBH.js → chunk-53XRPANC.js} +1 -1
- package/public/{chunk-5ETJWAIW.js → chunk-57Y3L52Q.js} +1 -1
- package/public/{chunk-3E2NZ5JW.js → chunk-5WXUZ3UB.js} +1 -1
- package/public/chunk-6JOKZWRV.js +1 -0
- package/public/{chunk-W3SNJ7TC.js → chunk-6KOTOEN7.js} +1 -1
- package/public/{chunk-WLGXJQPD.js → chunk-6RX377TT.js} +1 -1
- package/public/chunk-6WKO2T4Z.js +1 -0
- package/public/chunk-757LRGXE.js +68 -0
- package/public/{chunk-EAGKQ5OJ.js → chunk-7K67C3PU.js} +1 -1
- package/public/chunk-A2XCOYWA.js +1 -0
- package/public/{chunk-2KEG7SYT.js → chunk-A6QZW5FF.js} +1 -1
- package/public/chunk-ACO7OQZJ.js +1 -0
- package/public/{chunk-LWAL5JUG.js → chunk-AFJZVBKJ.js} +1 -1
- package/public/{chunk-325LPX6W.js → chunk-AFRZCXEB.js} +1 -1
- package/public/{chunk-6KT3BYU6.js → chunk-B65DT3FC.js} +1 -1
- package/public/{chunk-ADW6BF5G.js → chunk-BELFJ2SD.js} +1 -1
- package/public/chunk-DG6RGETW.js +1 -0
- package/public/{chunk-D5RKKI2A.js → chunk-DWAKEAKY.js} +1 -1
- package/public/chunk-EACHMWEA.js +50 -0
- package/public/{chunk-X5AKILHJ.js → chunk-ESOTGGKX.js} +1 -1
- package/public/chunk-F7DXQT5T.js +1 -0
- package/public/chunk-FS5QC22S.js +1 -0
- package/public/{chunk-4QXLJX7D.js → chunk-FSSORWXC.js} +1 -1
- package/public/chunk-GCSYCY2Y.js +1 -0
- package/public/{chunk-7UDDRMZZ.js → chunk-H22EEHWT.js} +1 -1
- package/public/{chunk-UF2IM5BE.js → chunk-HHHD7NH4.js} +1 -1
- package/public/{chunk-2FNQEOXF.js → chunk-HZFYCQBZ.js} +1 -1
- package/public/{chunk-OS2SEJZU.js → chunk-I24Z7SXB.js} +1 -1
- package/public/{chunk-TSFGO3MA.js → chunk-IJNJ3FHH.js} +1 -1
- package/public/{chunk-NKNWXFAK.js → chunk-JXJXX7ID.js} +1 -1
- package/public/chunk-KGXF4YD5.js +1 -0
- package/public/{chunk-YH6MRXGX.js → chunk-KLZ3D7WG.js} +1 -1
- package/public/{chunk-732XLY23.js → chunk-KVEQ2HM3.js} +3 -3
- package/public/{chunk-73TX7DHV.js → chunk-LGJ37P4E.js} +1 -1
- package/public/chunk-LMQCEFY5.js +19 -0
- package/public/{chunk-2CNQY2E7.js → chunk-LYPHF4BI.js} +1 -1
- package/public/{chunk-CYBDQV2B.js → chunk-MNT5ZGV3.js} +1 -1
- package/public/{chunk-SY4VNLXW.js → chunk-NPZDFVKF.js} +1 -1
- package/public/{chunk-EVND2DL5.js → chunk-NQ3EUNKR.js} +1 -1
- package/public/chunk-O63KCVSC.js +1 -0
- package/public/{chunk-2UOYBCTN.js → chunk-P7VMCG7G.js} +1 -1
- package/public/{chunk-OAHDGV32.js → chunk-PE5T5OTD.js} +1 -1
- package/public/{chunk-LZOHFRHN.js → chunk-QIB6F6O5.js} +1 -1
- package/public/{chunk-OK5EJ7US.js → chunk-QWSS6CWX.js} +1 -1
- package/public/{chunk-YNONXMOG.js → chunk-R6KWC4OQ.js} +1 -1
- package/public/chunk-RERUZJD4.js +5 -0
- package/public/{chunk-7IYTG6GP.js → chunk-S6M53YYQ.js} +1 -1
- package/public/{chunk-3IZSIVEA.js → chunk-TAYBEUKS.js} +1 -1
- package/public/{chunk-ASKB5DLO.js → chunk-UOYGACIL.js} +1 -1
- package/public/chunk-UUBGHMJO.js +1 -0
- package/public/chunk-VN4YJ4DW.js +1 -0
- package/public/chunk-VTCNWWXF.js +1 -0
- package/public/chunk-VWYLCYWH.js +1 -0
- package/public/chunk-VYNFC5TY.js +1 -0
- package/public/{chunk-WWSLIQVD.js → chunk-W6VJMRO6.js} +1 -1
- package/public/{chunk-3IJXQMYZ.js → chunk-WFVVY4KI.js} +1 -1
- package/public/chunk-WJVSACF7.js +4 -0
- package/public/{chunk-BLT2YCDN.js → chunk-WUEH3CVV.js} +1 -1
- package/public/chunk-WXDPCDNZ.js +2 -0
- package/public/{chunk-BTBGWLKK.js → chunk-XJ7EHBZC.js} +1 -1
- package/public/{chunk-ZEI3HZ6P.js → chunk-XQCLQKCG.js} +2 -2
- package/public/{chunk-ZJJ3EOBP.js → chunk-XUHWQHKX.js} +1 -1
- package/public/{chunk-VYC5JLE6.js → chunk-YFMEPI62.js} +1 -1
- package/public/{chunk-5T4JHJYL.js → chunk-YHIIRNVF.js} +1 -1
- package/public/{chunk-QK4V5DVW.js → chunk-YT7L7BBI.js} +1 -1
- package/public/index.html +2 -2
- package/public/{main-27RPBS22.js → main-WBUEOYPF.js} +1 -1
- package/public/{styles-CSF457UW.css → styles-WNHDEKE4.css} +1 -1
- package/scripts/extract-plugin-alias.js +8 -4
- package/public/chunk-2LXNPXT5.js +0 -1
- package/public/chunk-3XDYZNNE.js +0 -1
- package/public/chunk-57DUDNZJ.js +0 -1
- package/public/chunk-FM6ZYPKR.js +0 -4
- package/public/chunk-JJ7TVAIH.js +0 -5
- package/public/chunk-L43N56JA.js +0 -1
- package/public/chunk-L5I3DZ23.js +0 -1
- package/public/chunk-LH2LMHIZ.js +0 -1
- package/public/chunk-N2TWGDNX.js +0 -1
- package/public/chunk-O4SS7KVP.js +0 -40
- package/public/chunk-ONTEIYY3.js +0 -19
- package/public/chunk-P7TZIGJS.js +0 -50
- package/public/chunk-Q2IS3QQY.js +0 -1
- package/public/chunk-QQ5VZZQG.js +0 -1
- package/public/chunk-RYTGW6B7.js +0 -1
- package/public/chunk-SOT54YHI.js +0 -1
- package/public/chunk-TGZNYEGN.js +0 -1
- package/public/chunk-U5JF2ZOK.js +0 -1
- package/public/chunk-UNGEHXRN.js +0 -1
- package/public/chunk-VEGMNMLG.js +0 -1
- package/public/chunk-Y5FP6C55.js +0 -2
- 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,14 +10,14 @@ 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
|
-
const config_editor_service_1 = require("./config-editor.service");
|
|
13
|
+
import { Body, Controller, Delete, Get, Inject, Param, ParseIntPipe, Post, Put, UseGuards, } from '@nestjs/common';
|
|
14
|
+
import { AuthGuard } from '@nestjs/passport';
|
|
15
|
+
import { ApiBearerAuth, ApiBody, ApiOkResponse, ApiOperation, ApiParam, ApiTags, } from '@nestjs/swagger';
|
|
16
|
+
import { AdminGuard } from '../../core/auth/guards/admin.guard.js';
|
|
17
|
+
import { SetBridgeAlertDto, SetScheduledRestartCronDto } from './config-editor.dto.js';
|
|
18
|
+
import { ConfigEditorService } from './config-editor.service.js';
|
|
21
19
|
let ConfigEditorController = class ConfigEditorController {
|
|
20
|
+
configEditorService;
|
|
22
21
|
constructor(configEditorService) {
|
|
23
22
|
this.configEditorService = configEditorService;
|
|
24
23
|
}
|
|
@@ -52,11 +51,17 @@ let ConfigEditorController = class ConfigEditorController {
|
|
|
52
51
|
setPluginsHideUpdatesFor({ body }) {
|
|
53
52
|
return this.configEditorService.setPluginsHideUpdatesFor(body);
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
return this.configEditorService.
|
|
54
|
+
getBridge(username) {
|
|
55
|
+
return this.configEditorService.getBridge(username);
|
|
57
56
|
}
|
|
58
|
-
|
|
59
|
-
return this.configEditorService.
|
|
57
|
+
setBridgeHideHapAlert(username, body) {
|
|
58
|
+
return this.configEditorService.setBridgeHideHapAlert(username, body.value);
|
|
59
|
+
}
|
|
60
|
+
setBridgeHideMatterAlert(username, body) {
|
|
61
|
+
return this.configEditorService.setBridgeHideMatterAlert(username, body.value);
|
|
62
|
+
}
|
|
63
|
+
setBridgeScheduledRestartCron(username, body) {
|
|
64
|
+
return this.configEditorService.setBridgeScheduledRestartCron(username, body.value);
|
|
60
65
|
}
|
|
61
66
|
listConfigBackups() {
|
|
62
67
|
return this.configEditorService.listConfigBackups();
|
|
@@ -80,206 +85,266 @@ let ConfigEditorController = class ConfigEditorController {
|
|
|
80
85
|
return this.configEditorService.deleteMatterConfig();
|
|
81
86
|
}
|
|
82
87
|
};
|
|
83
|
-
exports.ConfigEditorController = ConfigEditorController;
|
|
84
88
|
__decorate([
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
UseGuards(AdminGuard),
|
|
90
|
+
ApiOperation({ summary: 'Return the current Homebridge `config.json` file.' }),
|
|
91
|
+
Get(),
|
|
88
92
|
__metadata("design:type", Function),
|
|
89
93
|
__metadata("design:paramtypes", []),
|
|
90
94
|
__metadata("design:returntype", void 0)
|
|
91
95
|
], ConfigEditorController.prototype, "getConfig", null);
|
|
92
96
|
__decorate([
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
__param(0,
|
|
97
|
+
UseGuards(AdminGuard),
|
|
98
|
+
ApiOperation({ summary: 'Update the Homebridge `config.json` file.' }),
|
|
99
|
+
ApiBody({ description: 'Homebridge config.json', type: 'json', isArray: false }),
|
|
100
|
+
Post(),
|
|
101
|
+
__param(0, Body()),
|
|
98
102
|
__metadata("design:type", Function),
|
|
99
103
|
__metadata("design:paramtypes", [Object]),
|
|
100
104
|
__metadata("design:returntype", void 0)
|
|
101
105
|
], ConfigEditorController.prototype, "updateConfig", null);
|
|
102
106
|
__decorate([
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
UseGuards(AdminGuard),
|
|
108
|
+
ApiOperation({
|
|
105
109
|
summary: 'Return the config blocks for a specific plugin.',
|
|
106
110
|
description: 'An array of config blocks will be returned. An empty array will be returned if the plugin is not configured.',
|
|
107
111
|
}),
|
|
108
|
-
|
|
109
|
-
__param(0,
|
|
112
|
+
Get('/plugin/:pluginName'),
|
|
113
|
+
__param(0, Param('pluginName')),
|
|
110
114
|
__metadata("design:type", Function),
|
|
111
115
|
__metadata("design:paramtypes", [String]),
|
|
112
116
|
__metadata("design:returntype", void 0)
|
|
113
117
|
], ConfigEditorController.prototype, "getConfigForPlugin", null);
|
|
114
118
|
__decorate([
|
|
115
|
-
|
|
116
|
-
|
|
119
|
+
UseGuards(AdminGuard),
|
|
120
|
+
ApiOperation({
|
|
117
121
|
summary: 'Replace the config for a specific plugin.',
|
|
118
122
|
description: 'An array of all config blocks for the plugin must be provided, missing blocks will be removed. Sending an empty array will remove all plugin config.',
|
|
119
123
|
}),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
__param(0,
|
|
123
|
-
__param(1,
|
|
124
|
+
Post('/plugin/:pluginName'),
|
|
125
|
+
ApiBody({ description: 'Array of plugin config blocks', type: 'json', isArray: true }),
|
|
126
|
+
__param(0, Param('pluginName')),
|
|
127
|
+
__param(1, Body()),
|
|
124
128
|
__metadata("design:type", Function),
|
|
125
129
|
__metadata("design:paramtypes", [String, Object]),
|
|
126
130
|
__metadata("design:returntype", void 0)
|
|
127
131
|
], ConfigEditorController.prototype, "updateConfigForPlugin", null);
|
|
128
132
|
__decorate([
|
|
129
|
-
|
|
130
|
-
|
|
133
|
+
UseGuards(AdminGuard),
|
|
134
|
+
ApiOperation({
|
|
131
135
|
summary: 'Mark a plugin as disabled.',
|
|
132
136
|
}),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
__param(0,
|
|
137
|
+
ApiParam({ name: 'pluginName', type: 'string' }),
|
|
138
|
+
Put('plugin/:pluginName/disable'),
|
|
139
|
+
__param(0, Param('pluginName')),
|
|
136
140
|
__metadata("design:type", Function),
|
|
137
141
|
__metadata("design:paramtypes", [Object]),
|
|
138
142
|
__metadata("design:returntype", void 0)
|
|
139
143
|
], ConfigEditorController.prototype, "disablePlugin", null);
|
|
140
144
|
__decorate([
|
|
141
|
-
|
|
142
|
-
|
|
145
|
+
UseGuards(AdminGuard),
|
|
146
|
+
ApiOperation({
|
|
143
147
|
summary: 'Mark a plugin as enabled.',
|
|
144
148
|
}),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
__param(0,
|
|
149
|
+
ApiParam({ name: 'pluginName', type: 'string' }),
|
|
150
|
+
Put('plugin/:pluginName/enable'),
|
|
151
|
+
__param(0, Param('pluginName')),
|
|
148
152
|
__metadata("design:type", Function),
|
|
149
153
|
__metadata("design:paramtypes", [Object]),
|
|
150
154
|
__metadata("design:returntype", void 0)
|
|
151
155
|
], ConfigEditorController.prototype, "enablePlugin", null);
|
|
152
156
|
__decorate([
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
__param(0,
|
|
157
|
+
UseGuards(AdminGuard),
|
|
158
|
+
ApiOperation({ summary: 'Update a config property for the Homebridge UI.' }),
|
|
159
|
+
Put('/ui'),
|
|
160
|
+
__param(0, Body()),
|
|
157
161
|
__metadata("design:type", Function),
|
|
158
162
|
__metadata("design:paramtypes", [Object]),
|
|
159
163
|
__metadata("design:returntype", void 0)
|
|
160
164
|
], ConfigEditorController.prototype, "setPropertyForUi", null);
|
|
161
165
|
__decorate([
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
__param(0,
|
|
166
|
+
UseGuards(AdminGuard),
|
|
167
|
+
Put('/ui/accessory-control/instance-blacklist'),
|
|
168
|
+
ApiOperation({ summary: 'Update the accessory control instance blacklist.' }),
|
|
169
|
+
ApiBody({ description: 'Array of bridge instances for which control by the UI should be blocked.', type: 'json', isArray: true }),
|
|
170
|
+
__param(0, Body()),
|
|
167
171
|
__metadata("design:type", Function),
|
|
168
172
|
__metadata("design:paramtypes", [Object]),
|
|
169
173
|
__metadata("design:returntype", void 0)
|
|
170
174
|
], ConfigEditorController.prototype, "setAccessoryControlInstanceBlacklist", null);
|
|
171
175
|
__decorate([
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
176
|
+
UseGuards(AdminGuard),
|
|
177
|
+
Get('/ui/plugins/hide-updates-for'),
|
|
178
|
+
ApiOperation({ summary: 'Get the plugins hide updates for list.' }),
|
|
175
179
|
__metadata("design:type", Function),
|
|
176
180
|
__metadata("design:paramtypes", []),
|
|
177
181
|
__metadata("design:returntype", Promise)
|
|
178
182
|
], ConfigEditorController.prototype, "getPluginsHideUpdatesFor", null);
|
|
179
183
|
__decorate([
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
__param(0,
|
|
184
|
+
UseGuards(AdminGuard),
|
|
185
|
+
Put('/ui/plugins/hide-updates-for'),
|
|
186
|
+
ApiOperation({ summary: 'Update the plugins hide updates for.' }),
|
|
187
|
+
ApiBody({ description: 'Array of plugin names to hide updates for in the UI.', type: 'json', isArray: true }),
|
|
188
|
+
__param(0, Body()),
|
|
185
189
|
__metadata("design:type", Function),
|
|
186
190
|
__metadata("design:paramtypes", [Object]),
|
|
187
191
|
__metadata("design:returntype", void 0)
|
|
188
192
|
], ConfigEditorController.prototype, "setPluginsHideUpdatesFor", null);
|
|
189
193
|
__decorate([
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
194
|
+
UseGuards(AdminGuard),
|
|
195
|
+
Get('/ui/bridges/:username'),
|
|
196
|
+
ApiOperation({ summary: 'Get a specific bridge configuration by username.' }),
|
|
197
|
+
ApiParam({
|
|
198
|
+
name: 'username',
|
|
199
|
+
type: String,
|
|
200
|
+
description: 'The MAC address of the bridge (e.g., "0E:02:9A:9D:44:45")',
|
|
201
|
+
example: '0E:02:9A:9D:44:45',
|
|
202
|
+
}),
|
|
203
|
+
ApiOkResponse({
|
|
204
|
+
description: 'Bridge configuration',
|
|
205
|
+
type: 'object',
|
|
206
|
+
schema: {
|
|
207
|
+
example: {
|
|
208
|
+
username: '0E:02:9A:9D:44:45',
|
|
209
|
+
hideHapAlert: true,
|
|
210
|
+
hideMatterAlert: false,
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
}),
|
|
214
|
+
__param(0, Param('username')),
|
|
193
215
|
__metadata("design:type", Function),
|
|
194
|
-
__metadata("design:paramtypes", []),
|
|
216
|
+
__metadata("design:paramtypes", [String]),
|
|
195
217
|
__metadata("design:returntype", Promise)
|
|
196
|
-
], ConfigEditorController.prototype, "
|
|
218
|
+
], ConfigEditorController.prototype, "getBridge", null);
|
|
197
219
|
__decorate([
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
(
|
|
202
|
-
|
|
220
|
+
UseGuards(AdminGuard),
|
|
221
|
+
Put('/ui/bridges/:username/hide-hap-alert'),
|
|
222
|
+
ApiOperation({ summary: 'Set the hideHapAlert flag for a specific bridge.' }),
|
|
223
|
+
ApiParam({
|
|
224
|
+
name: 'username',
|
|
225
|
+
type: String,
|
|
226
|
+
description: 'The MAC address of the bridge (e.g., "0E:02:9A:9D:44:45")',
|
|
227
|
+
example: '0E:02:9A:9D:44:45',
|
|
228
|
+
}),
|
|
229
|
+
ApiBody({ type: SetBridgeAlertDto }),
|
|
230
|
+
__param(0, Param('username')),
|
|
231
|
+
__param(1, Body()),
|
|
203
232
|
__metadata("design:type", Function),
|
|
204
|
-
__metadata("design:paramtypes", [
|
|
233
|
+
__metadata("design:paramtypes", [String, SetBridgeAlertDto]),
|
|
234
|
+
__metadata("design:returntype", void 0)
|
|
235
|
+
], ConfigEditorController.prototype, "setBridgeHideHapAlert", null);
|
|
236
|
+
__decorate([
|
|
237
|
+
UseGuards(AdminGuard),
|
|
238
|
+
Put('/ui/bridges/:username/hide-matter-alert'),
|
|
239
|
+
ApiOperation({ summary: 'Set the hideMatterAlert flag for a specific bridge.' }),
|
|
240
|
+
ApiParam({
|
|
241
|
+
name: 'username',
|
|
242
|
+
type: String,
|
|
243
|
+
description: 'The MAC address of the bridge (e.g., "0E:02:9A:9D:44:45")',
|
|
244
|
+
example: '0E:02:9A:9D:44:45',
|
|
245
|
+
}),
|
|
246
|
+
ApiBody({ type: SetBridgeAlertDto }),
|
|
247
|
+
__param(0, Param('username')),
|
|
248
|
+
__param(1, Body()),
|
|
249
|
+
__metadata("design:type", Function),
|
|
250
|
+
__metadata("design:paramtypes", [String, SetBridgeAlertDto]),
|
|
251
|
+
__metadata("design:returntype", void 0)
|
|
252
|
+
], ConfigEditorController.prototype, "setBridgeHideMatterAlert", null);
|
|
253
|
+
__decorate([
|
|
254
|
+
UseGuards(AdminGuard),
|
|
255
|
+
Put('/ui/bridges/:username/scheduled-restart-cron'),
|
|
256
|
+
ApiOperation({ summary: 'Set the scheduledRestartCron for a specific child bridge.' }),
|
|
257
|
+
ApiParam({
|
|
258
|
+
name: 'username',
|
|
259
|
+
type: String,
|
|
260
|
+
description: 'The MAC address of the bridge (e.g., `0E:02:9A:9D:44:45`)',
|
|
261
|
+
example: '0E:02:9A:9D:44:45',
|
|
262
|
+
}),
|
|
263
|
+
ApiBody({ type: SetScheduledRestartCronDto }),
|
|
264
|
+
__param(0, Param('username')),
|
|
265
|
+
__param(1, Body()),
|
|
266
|
+
__metadata("design:type", Function),
|
|
267
|
+
__metadata("design:paramtypes", [String, SetScheduledRestartCronDto]),
|
|
205
268
|
__metadata("design:returntype", void 0)
|
|
206
|
-
], ConfigEditorController.prototype, "
|
|
269
|
+
], ConfigEditorController.prototype, "setBridgeScheduledRestartCron", null);
|
|
207
270
|
__decorate([
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
271
|
+
UseGuards(AdminGuard),
|
|
272
|
+
ApiOperation({ summary: 'List the available Homebridge `config.json` backups.' }),
|
|
273
|
+
Get('/backups'),
|
|
211
274
|
__metadata("design:type", Function),
|
|
212
275
|
__metadata("design:paramtypes", []),
|
|
213
276
|
__metadata("design:returntype", void 0)
|
|
214
277
|
], ConfigEditorController.prototype, "listConfigBackups", null);
|
|
215
278
|
__decorate([
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
__param(0,
|
|
279
|
+
UseGuards(AdminGuard),
|
|
280
|
+
ApiOperation({ summary: 'Return the Homebridge `config.json` file for the given backup ID.' }),
|
|
281
|
+
ApiParam({ name: 'backupId', type: 'number' }),
|
|
282
|
+
Get('/backups/:backupId'),
|
|
283
|
+
__param(0, Param('backupId', ParseIntPipe)),
|
|
221
284
|
__metadata("design:type", Function),
|
|
222
285
|
__metadata("design:paramtypes", [Object]),
|
|
223
286
|
__metadata("design:returntype", void 0)
|
|
224
287
|
], ConfigEditorController.prototype, "getBackup", null);
|
|
225
288
|
__decorate([
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
__param(0,
|
|
289
|
+
UseGuards(AdminGuard),
|
|
290
|
+
ApiOperation({ summary: 'Delete the backup file for the given backup ID.' }),
|
|
291
|
+
ApiParam({ name: 'backupId', type: 'number' }),
|
|
292
|
+
Delete('/backups/:backupId'),
|
|
293
|
+
__param(0, Param('backupId', ParseIntPipe)),
|
|
231
294
|
__metadata("design:type", Function),
|
|
232
295
|
__metadata("design:paramtypes", [Object]),
|
|
233
296
|
__metadata("design:returntype", void 0)
|
|
234
297
|
], ConfigEditorController.prototype, "deleteBackup", null);
|
|
235
298
|
__decorate([
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
299
|
+
UseGuards(AdminGuard),
|
|
300
|
+
ApiOperation({ summary: 'Delete all the Homebridge `config.json` backups.' }),
|
|
301
|
+
Delete('/backups'),
|
|
239
302
|
__metadata("design:type", Function),
|
|
240
303
|
__metadata("design:paramtypes", []),
|
|
241
304
|
__metadata("design:returntype", void 0)
|
|
242
305
|
], ConfigEditorController.prototype, "deleteAllConfigBackups", null);
|
|
243
306
|
__decorate([
|
|
244
|
-
|
|
245
|
-
|
|
307
|
+
UseGuards(AdminGuard),
|
|
308
|
+
ApiOperation({
|
|
246
309
|
summary: 'Get Matter Configuration',
|
|
247
310
|
description: 'Returns the Matter configuration object for the main Homebridge bridge.',
|
|
248
311
|
}),
|
|
249
|
-
|
|
312
|
+
Get('/matter'),
|
|
250
313
|
__metadata("design:type", Function),
|
|
251
314
|
__metadata("design:paramtypes", []),
|
|
252
315
|
__metadata("design:returntype", void 0)
|
|
253
316
|
], ConfigEditorController.prototype, "getMatterConfig", null);
|
|
254
317
|
__decorate([
|
|
255
|
-
|
|
256
|
-
|
|
318
|
+
UseGuards(AdminGuard),
|
|
319
|
+
ApiOperation({
|
|
257
320
|
summary: 'Update Matter Configuration',
|
|
258
321
|
description: 'Update the Matter configuration object for the main Homebridge bridge.',
|
|
259
322
|
}),
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
__param(0,
|
|
323
|
+
ApiBody({ description: 'Matter configuration', type: 'json' }),
|
|
324
|
+
Put('/matter'),
|
|
325
|
+
__param(0, Body()),
|
|
263
326
|
__metadata("design:type", Function),
|
|
264
327
|
__metadata("design:paramtypes", [Object]),
|
|
265
328
|
__metadata("design:returntype", void 0)
|
|
266
329
|
], ConfigEditorController.prototype, "updateMatterConfig", null);
|
|
267
330
|
__decorate([
|
|
268
|
-
|
|
269
|
-
|
|
331
|
+
UseGuards(AdminGuard),
|
|
332
|
+
ApiOperation({
|
|
270
333
|
summary: 'Delete Matter Configuration',
|
|
271
334
|
description: 'Removes the Matter configuration object for the main Homebridge bridge, and deletes the Matter data for it.',
|
|
272
335
|
}),
|
|
273
|
-
|
|
336
|
+
Delete('/matter'),
|
|
274
337
|
__metadata("design:type", Function),
|
|
275
338
|
__metadata("design:paramtypes", []),
|
|
276
339
|
__metadata("design:returntype", void 0)
|
|
277
340
|
], ConfigEditorController.prototype, "deleteMatterConfig", null);
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
341
|
+
ConfigEditorController = __decorate([
|
|
342
|
+
ApiTags('Homebridge Config Editor'),
|
|
343
|
+
ApiBearerAuth(),
|
|
344
|
+
UseGuards(AuthGuard()),
|
|
345
|
+
Controller('config-editor'),
|
|
346
|
+
__param(0, Inject(ConfigEditorService)),
|
|
347
|
+
__metadata("design:paramtypes", [ConfigEditorService])
|
|
284
348
|
], ConfigEditorController);
|
|
349
|
+
export { ConfigEditorController };
|
|
285
350
|
//# sourceMappingURL=config-editor.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-editor.controller.js","sourceRoot":"","sources":["../../../src/modules/config-editor/config-editor.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config-editor.controller.js","sourceRoot":"","sources":["../../../src/modules/config-editor/config-editor.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EACL,IAAI,EACJ,UAAU,EACV,MAAM,EACN,GAAG,EACH,MAAM,EACN,KAAK,EACL,YAAY,EACZ,IAAI,EACJ,GAAG,EACH,SAAS,GACV,MAAM,gBAAgB,CAAA;AACvB,OAA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U,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC9C,MAAM,CAAC,oBAAoB,CAAC;IACf,WAAA,KAAK,CAAC,UAAU,EAAE,YAAY,CAAC,CAAA;;;;0DAE5C;AAKD;IAHC,SAAS,CAAC,UAAU,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,EAAE,kDAAkD,EAAE,CAAC;IAC7E,MAAM,CAAC,UAAU,CAAC;;;;oEAGlB;AAQD;IANC,SAAS,CAAC,UAAU,CAAC;IACrB,YAAY,CAAC;QACZ,OAAO,EAAE,0BAA0B;QACnC,WAAW,EAAE,yEAAyE;KACvF,CAAC;IACD,GAAG,CAAC,SAAS,CAAC;;;;6DAGd;AASD;IAPC,SAAS,CAAC,UAAU,CAAC;IACrB,YAAY,CAAC;QACZ,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE,wEAAwE;KACtF,CAAC;IACD,OAAO,CAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC9D,GAAG,CAAC,SAAS,CAAC;IACK,WAAA,IAAI,EAAE,CAAA;;;;gEAEzB;AAQD;IANC,SAAS,CAAC,UAAU,CAAC;IACrB,YAAY,CAAC;QACZ,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE,6GAA6G;KAC3H,CAAC;IACD,MAAM,CAAC,SAAS,CAAC;;;;gEAGjB;AAxNU,sBAAsB;IAJlC,OAAO,CAAC,0BAA0B,CAAC;IACnC,aAAa,EAAE;IACf,SAAS,CAAC,SAAS,EAAE,CAAC;IACtB,UAAU,CAAC,eAAe,CAAC;IAGvB,WAAA,MAAM,CAAC,mBAAmB,CAAC,CAAA;qCAAuC,mBAAmB;GAF7E,sBAAsB,CAyNlC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
11
|
+
import { IsBoolean, IsDefined, IsString, ValidateIf } from 'class-validator';
|
|
12
|
+
export class SetBridgeAlertDto {
|
|
13
|
+
value;
|
|
14
|
+
}
|
|
15
|
+
__decorate([
|
|
16
|
+
ApiProperty({
|
|
17
|
+
type: Boolean,
|
|
18
|
+
description: 'Whether to hide the alert for this bridge',
|
|
19
|
+
example: true,
|
|
20
|
+
}),
|
|
21
|
+
IsDefined(),
|
|
22
|
+
IsBoolean(),
|
|
23
|
+
__metadata("design:type", Boolean)
|
|
24
|
+
], SetBridgeAlertDto.prototype, "value", void 0);
|
|
25
|
+
export class SetScheduledRestartCronDto {
|
|
26
|
+
value;
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
ApiProperty({
|
|
30
|
+
type: String,
|
|
31
|
+
description: 'Cron expression for scheduled restart (or `null` to disable).',
|
|
32
|
+
example: '0 5 * * *',
|
|
33
|
+
required: false,
|
|
34
|
+
nullable: true,
|
|
35
|
+
}),
|
|
36
|
+
ValidateIf(o => o.value !== null),
|
|
37
|
+
IsString(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], SetScheduledRestartCronDto.prototype, "value", void 0);
|
|
40
|
+
//# sourceMappingURL=config-editor.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-editor.dto.js","sourceRoot":"","sources":["../../../src/modules/config-editor/config-editor.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5E,MAAM,OAAO,iBAAiB;IAQ5B,KAAK,CAAS;CACf;AADC;IAPC,WAAW,CAAC;QACX,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,2CAA2C;QACxD,OAAO,EAAE,IAAI;KACd,CAAC;IACD,SAAS,EAAE;IACX,SAAS,EAAE;;gDACE;AAGhB,MAAM,OAAO,0BAA0B;IAUrC,KAAK,CAAe;CACrB;AADC;IATC,WAAW,CAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,+DAA+D;QAC5E,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE;;yDACS"}
|
|
@@ -1,43 +1,40 @@
|
|
|
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);
|
|
5
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
6
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const config_editor_controller_1 = require("./config-editor.controller");
|
|
18
|
-
const config_editor_service_1 = require("./config-editor.service");
|
|
7
|
+
import { Module } from '@nestjs/common';
|
|
8
|
+
import { PassportModule } from '@nestjs/passport';
|
|
9
|
+
import { ConfigModule } from '../../core/config/config.module.js';
|
|
10
|
+
import { HomebridgeIpcModule } from '../../core/homebridge-ipc/homebridge-ipc.module.js';
|
|
11
|
+
import { LoggerModule } from '../../core/logger/logger.module.js';
|
|
12
|
+
import { SchedulerModule } from '../../core/scheduler/scheduler.module.js';
|
|
13
|
+
import { PluginsModule } from '../plugins/plugins.module.js';
|
|
14
|
+
import { ConfigEditorController } from './config-editor.controller.js';
|
|
15
|
+
import { ConfigEditorService } from './config-editor.service.js';
|
|
19
16
|
let ConfigEditorModule = class ConfigEditorModule {
|
|
20
17
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
(0, common_1.Module)({
|
|
18
|
+
ConfigEditorModule = __decorate([
|
|
19
|
+
Module({
|
|
24
20
|
imports: [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
PassportModule.register({ defaultStrategy: 'jwt' }),
|
|
22
|
+
LoggerModule,
|
|
23
|
+
ConfigModule,
|
|
24
|
+
SchedulerModule,
|
|
25
|
+
PluginsModule,
|
|
26
|
+
HomebridgeIpcModule,
|
|
31
27
|
],
|
|
32
28
|
providers: [
|
|
33
|
-
|
|
29
|
+
ConfigEditorService,
|
|
34
30
|
],
|
|
35
31
|
controllers: [
|
|
36
|
-
|
|
32
|
+
ConfigEditorController,
|
|
37
33
|
],
|
|
38
34
|
exports: [
|
|
39
|
-
|
|
35
|
+
ConfigEditorService,
|
|
40
36
|
],
|
|
41
37
|
})
|
|
42
38
|
], ConfigEditorModule);
|
|
39
|
+
export { ConfigEditorModule };
|
|
43
40
|
//# sourceMappingURL=config-editor.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-editor.module.js","sourceRoot":"","sources":["../../../src/modules/config-editor/config-editor.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config-editor.module.js","sourceRoot":"","sources":["../../../src/modules/config-editor/config-editor.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAA;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAqBzD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,kBAAkB;IAnB9B,MAAM,CAAC;QACN,OAAO,EAAE;YACP,cAAc,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;YACnD,YAAY;YACZ,YAAY;YACZ,eAAe;YACf,aAAa;YACb,mBAAmB;SACpB;QACD,SAAS,EAAE;YACT,mBAAmB;SACpB;QACD,WAAW,EAAE;YACX,sBAAsB;SACvB;QACD,OAAO,EAAE;YACP,mBAAmB;SACpB;KACF,CAAC;GACW,kBAAkB,CAAG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { AccessoryConfig, HomebridgeConfig, MatterConfig, PlatformConfig } from '../../core/config/config.interfaces';
|
|
2
1
|
import { BadRequestException } from '@nestjs/common';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { AccessoryConfig, HomebridgeConfig, HomebridgeUiBridgeConfig, MatterConfig, PlatformConfig } from '../../core/config/config.interfaces.js';
|
|
3
|
+
import { ConfigService } from '../../core/config/config.service.js';
|
|
4
|
+
import { HomebridgeIpcService } from '../../core/homebridge-ipc/homebridge-ipc.service.js';
|
|
5
|
+
import { Logger } from '../../core/logger/logger.service.js';
|
|
6
|
+
import { SchedulerService } from '../../core/scheduler/scheduler.service.js';
|
|
7
|
+
import { PluginsService } from '../plugins/plugins.service.js';
|
|
8
8
|
export declare class ConfigEditorService {
|
|
9
9
|
private readonly logger;
|
|
10
10
|
private readonly configService;
|
|
@@ -22,8 +22,11 @@ export declare class ConfigEditorService {
|
|
|
22
22
|
setAccessoryControlInstanceBlacklist(value: string[]): Promise<void>;
|
|
23
23
|
getPluginsHideUpdatesFor(): Promise<string[]>;
|
|
24
24
|
setPluginsHideUpdatesFor(value: string[]): Promise<void>;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
getBridge(username: string): Promise<HomebridgeUiBridgeConfig | null>;
|
|
26
|
+
private updateBridgeProperty;
|
|
27
|
+
setBridgeHideHapAlert(username: string, value: boolean): Promise<void>;
|
|
28
|
+
setBridgeHideMatterAlert(username: string, value: boolean): Promise<void>;
|
|
29
|
+
setBridgeScheduledRestartCron(username: string, value: string | null): Promise<void>;
|
|
27
30
|
disablePlugin(pluginName: string): Promise<string[]>;
|
|
28
31
|
enablePlugin(pluginName: string): Promise<string[]>;
|
|
29
32
|
listConfigBackups(): Promise<{
|