homebridge-config-ui-x 5.9.1-beta.1 → 5.9.1-beta.3
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 -3
- 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 +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.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 +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 +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.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 +13 -3
- package/dist/modules/accessories/accessories.controller.js +47 -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 +25 -5
- package/dist/modules/accessories/accessories.service.js +331 -52
- 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 +7 -7
- 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 +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 +7 -7
- 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 +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 +23 -26
- package/dist/modules/plugins/plugins.module.js.map +1 -1
- package/dist/modules/plugins/plugins.service.d.ts +13 -11
- package/dist/modules/plugins/plugins.service.js +230 -202
- 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 +10 -11
- package/public/{chunk-Q2IS3QQY.js → chunk-2GNLGHLF.js} +1 -1
- package/public/{chunk-73TX7DHV.js → chunk-2HB77JUL.js} +1 -1
- package/public/{chunk-EVND2DL5.js → chunk-2KS3Z2IQ.js} +1 -1
- package/public/{chunk-NKNWXFAK.js → chunk-3MJTL7SQ.js} +1 -1
- package/public/chunk-3P242I3M.js +1 -0
- package/public/{chunk-WWSLIQVD.js → chunk-46GAMPZC.js} +1 -1
- package/public/{chunk-AI6E5JVH.js → chunk-46IO6OQW.js} +1 -1
- package/public/{chunk-EAGKQ5OJ.js → chunk-4A2GGTS4.js} +1 -1
- package/public/{chunk-2LXNPXT5.js → chunk-4YBRFABH.js} +1 -1
- package/public/{chunk-ZEI3HZ6P.js → chunk-5SJKGEVE.js} +1 -1
- package/public/{chunk-CYBDQV2B.js → chunk-5WBNDRQY.js} +1 -1
- package/public/{chunk-W3SNJ7TC.js → chunk-66WFX4Q7.js} +1 -1
- package/public/{chunk-5ETJWAIW.js → chunk-6EINUQIR.js} +1 -1
- package/public/chunk-6UJ7GY5J.js +1 -0
- package/public/{chunk-VYC5JLE6.js → chunk-77FE4N6E.js} +1 -1
- package/public/{chunk-4QXLJX7D.js → chunk-ALZYHHJS.js} +1 -1
- package/public/{chunk-SY4VNLXW.js → chunk-AYCYJZ5K.js} +1 -1
- package/public/chunk-BB37SSD3.js +50 -0
- package/public/chunk-BCEDAADS.js +1 -0
- package/public/{chunk-ONTEIYY3.js → chunk-BDNVTHRF.js} +1 -1
- package/public/{chunk-ADW6BF5G.js → chunk-CCHNU62C.js} +1 -1
- package/public/{chunk-BLT2YCDN.js → chunk-CWBKN6DK.js} +1 -1
- package/public/{chunk-3IJXQMYZ.js → chunk-DE3FEETC.js} +1 -1
- package/public/{chunk-TSFGO3MA.js → chunk-EGCKVLUA.js} +1 -1
- package/public/{chunk-L43N56JA.js → chunk-EGWCQPNN.js} +1 -1
- package/public/{chunk-OK5EJ7US.js → chunk-EKECA5VY.js} +1 -1
- package/public/{chunk-JJ7TVAIH.js → chunk-EQP5UP7Q.js} +4 -4
- package/public/{chunk-3XDYZNNE.js → chunk-FE2HKRWO.js} +1 -1
- package/public/chunk-FQFDF7NL.js +52 -0
- package/public/{chunk-2UOYBCTN.js → chunk-GXXBQUDX.js} +1 -1
- package/public/{chunk-3IZSIVEA.js → chunk-HADRZRRW.js} +1 -1
- package/public/{chunk-LZOHFRHN.js → chunk-HL3SPLOS.js} +1 -1
- package/public/{chunk-732XLY23.js → chunk-HYNETRJU.js} +1 -1
- package/public/{chunk-BTBGWLKK.js → chunk-IUQ7ORI6.js} +1 -1
- package/public/chunk-JAJWHRVE.js +1 -0
- package/public/{chunk-UF2IM5BE.js → chunk-JEJRRXX6.js} +1 -1
- package/public/chunk-KSPJ7LBC.js +1 -0
- package/public/{chunk-OAHDGV32.js → chunk-KWPPPGZJ.js} +1 -1
- package/public/{chunk-TOYVIOBH.js → chunk-M2ITW35G.js} +1 -1
- package/public/{chunk-5T4JHJYL.js → chunk-M4SSS7AE.js} +1 -1
- package/public/{chunk-Y5FP6C55.js → chunk-M5QYCMMI.js} +1 -1
- package/public/{chunk-ASKB5DLO.js → chunk-MR4KWEYX.js} +1 -1
- package/public/{chunk-YH6MRXGX.js → chunk-MYPS3TAE.js} +1 -1
- package/public/{chunk-LH2LMHIZ.js → chunk-OIVQXH76.js} +1 -1
- package/public/{chunk-RMZRXORR.js → chunk-P6WEUVOG.js} +1 -1
- package/public/{chunk-2KEG7SYT.js → chunk-PHWOE6AS.js} +1 -1
- package/public/{chunk-N2TWGDNX.js → chunk-PJNMYOLO.js} +1 -1
- package/public/{chunk-YNONXMOG.js → chunk-Q2JNFJIW.js} +1 -1
- package/public/{chunk-WLGXJQPD.js → chunk-QQ44GPGJ.js} +1 -1
- package/public/{chunk-LWAL5JUG.js → chunk-QUV4XDKI.js} +1 -1
- package/public/{chunk-3E2NZ5JW.js → chunk-QXD3PZRU.js} +1 -1
- package/public/{chunk-7IYTG6GP.js → chunk-REL5VGL4.js} +1 -1
- package/public/{chunk-U5JF2ZOK.js → chunk-SKPO4EWV.js} +1 -1
- package/public/{chunk-QK4V5DVW.js → chunk-TLUCE4J6.js} +1 -1
- package/public/{chunk-325LPX6W.js → chunk-UAQZWGFR.js} +1 -1
- package/public/{chunk-UNGEHXRN.js → chunk-UGGLMYE3.js} +1 -1
- package/public/{chunk-FM6ZYPKR.js → chunk-US2WKTPG.js} +4 -4
- package/public/{chunk-YYJG2ENF.js → chunk-VIZSJCWC.js} +1 -1
- package/public/{chunk-7UDDRMZZ.js → chunk-VOHBPEFW.js} +1 -1
- package/public/{chunk-6KT3BYU6.js → chunk-WTOIGZHP.js} +1 -1
- package/public/{chunk-57DUDNZJ.js → chunk-WZKMLQSX.js} +1 -1
- package/public/{chunk-2FNQEOXF.js → chunk-X5AVMTQO.js} +1 -1
- package/public/{chunk-D5RKKI2A.js → chunk-XFAARHWA.js} +1 -1
- package/public/{chunk-ZJJ3EOBP.js → chunk-YKEI23UT.js} +1 -1
- package/public/chunk-YNS6PU44.js +1 -0
- package/public/{chunk-OS2SEJZU.js → chunk-YSLCQT67.js} +1 -1
- package/public/{chunk-X5AKILHJ.js → chunk-YTHSUAFP.js} +1 -1
- package/public/{chunk-2CNQY2E7.js → chunk-ZCINSOSK.js} +1 -1
- package/public/index.html +2 -2
- package/public/{main-27RPBS22.js → main-RHTU6HFP.js} +1 -1
- package/public/{styles-CSF457UW.css → styles-WNHDEKE4.css} +1 -1
- package/scripts/extract-plugin-alias.js +8 -4
- package/public/chunk-L5I3DZ23.js +0 -1
- package/public/chunk-O4SS7KVP.js +0 -40
- package/public/chunk-P7TZIGJS.js +0 -50
- 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-VEGMNMLG.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,13 @@ 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
|
-
const accessories_dto_1 = require("./accessories.dto");
|
|
20
|
-
const accessories_service_1 = require("./accessories.service");
|
|
13
|
+
import { Body, Controller, Get, Inject, Param, Post, Put, Request, UseGuards, } from '@nestjs/common';
|
|
14
|
+
import { AuthGuard } from '@nestjs/passport';
|
|
15
|
+
import { ApiBearerAuth, ApiOperation, ApiParam, ApiTags } from '@nestjs/swagger';
|
|
16
|
+
import { AccessorySetCharacteristicDto } from './accessories.dto.js';
|
|
17
|
+
import { AccessoriesService } from './accessories.service.js';
|
|
21
18
|
let AccessoriesController = class AccessoriesController {
|
|
19
|
+
accessoriesService;
|
|
22
20
|
constructor(accessoriesService) {
|
|
23
21
|
this.accessoriesService = accessoriesService;
|
|
24
22
|
}
|
|
@@ -34,57 +32,77 @@ let AccessoriesController = class AccessoriesController {
|
|
|
34
32
|
setAccessoryCharacteristic(uniqueId, body) {
|
|
35
33
|
return this.accessoriesService.setAccessoryCharacteristic(uniqueId, body.characteristicType, body.value);
|
|
36
34
|
}
|
|
35
|
+
controlMatterAccessory(body) {
|
|
36
|
+
try {
|
|
37
|
+
return this.accessoriesService.controlMatterAccessory(body.uuid, body.cluster, body.attributes, body.bridgeUsername, body.partId);
|
|
38
|
+
}
|
|
39
|
+
catch (e) {
|
|
40
|
+
console.error(e);
|
|
41
|
+
throw e;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
37
44
|
};
|
|
38
|
-
exports.AccessoriesController = AccessoriesController;
|
|
39
45
|
__decorate([
|
|
40
|
-
|
|
46
|
+
ApiOperation({
|
|
41
47
|
summary: 'Return a list of Homebridge accessories.',
|
|
42
48
|
description: 'Homebridge must be running in `insecure` mode to access the accessory list.',
|
|
43
49
|
}),
|
|
44
|
-
|
|
50
|
+
Get('/'),
|
|
45
51
|
__metadata("design:type", Function),
|
|
46
52
|
__metadata("design:paramtypes", []),
|
|
47
53
|
__metadata("design:returntype", void 0)
|
|
48
54
|
], AccessoriesController.prototype, "getAccessories", null);
|
|
49
55
|
__decorate([
|
|
50
|
-
|
|
56
|
+
ApiOperation({
|
|
51
57
|
summary: 'Get the accessory and room layout for the authenticating user.',
|
|
52
58
|
}),
|
|
53
|
-
|
|
54
|
-
__param(0,
|
|
59
|
+
Get('/layout'),
|
|
60
|
+
__param(0, Request()),
|
|
55
61
|
__metadata("design:type", Function),
|
|
56
62
|
__metadata("design:paramtypes", [Object]),
|
|
57
63
|
__metadata("design:returntype", void 0)
|
|
58
64
|
], AccessoriesController.prototype, "getAccessoryLayout", null);
|
|
59
65
|
__decorate([
|
|
60
|
-
|
|
66
|
+
ApiOperation({
|
|
61
67
|
summary: 'Get a single accessory and refresh its characteristics.',
|
|
62
68
|
description: 'Get the `uniqueId` from `GET /api/accessories`.',
|
|
63
69
|
}),
|
|
64
|
-
|
|
65
|
-
__param(0,
|
|
70
|
+
Get('/:uniqueId'),
|
|
71
|
+
__param(0, Param('uniqueId')),
|
|
66
72
|
__metadata("design:type", Function),
|
|
67
73
|
__metadata("design:paramtypes", [String]),
|
|
68
74
|
__metadata("design:returntype", void 0)
|
|
69
75
|
], AccessoriesController.prototype, "getAccessory", null);
|
|
70
76
|
__decorate([
|
|
71
|
-
|
|
77
|
+
ApiOperation({
|
|
72
78
|
summary: 'Set the value of an accessory characteristic.',
|
|
73
79
|
description: 'Get the `uniqueId` and `characteristicType` values from `GET /api/accessories`.',
|
|
74
80
|
}),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
__param(0,
|
|
78
|
-
__param(1,
|
|
81
|
+
ApiParam({ name: 'uniqueId' }),
|
|
82
|
+
Put('/:uniqueId'),
|
|
83
|
+
__param(0, Param('uniqueId')),
|
|
84
|
+
__param(1, Body()),
|
|
79
85
|
__metadata("design:type", Function),
|
|
80
|
-
__metadata("design:paramtypes", [Object,
|
|
86
|
+
__metadata("design:paramtypes", [Object, AccessorySetCharacteristicDto]),
|
|
81
87
|
__metadata("design:returntype", void 0)
|
|
82
88
|
], AccessoriesController.prototype, "setAccessoryCharacteristic", null);
|
|
83
|
-
|
|
84
|
-
(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
(
|
|
88
|
-
|
|
89
|
+
__decorate([
|
|
90
|
+
ApiOperation({
|
|
91
|
+
summary: 'Control a Matter accessory by updating cluster attributes.',
|
|
92
|
+
}),
|
|
93
|
+
Post('/matter/control'),
|
|
94
|
+
__param(0, Body()),
|
|
95
|
+
__metadata("design:type", Function),
|
|
96
|
+
__metadata("design:paramtypes", [Object]),
|
|
97
|
+
__metadata("design:returntype", void 0)
|
|
98
|
+
], AccessoriesController.prototype, "controlMatterAccessory", null);
|
|
99
|
+
AccessoriesController = __decorate([
|
|
100
|
+
ApiTags('Accessories'),
|
|
101
|
+
ApiBearerAuth(),
|
|
102
|
+
UseGuards(AuthGuard()),
|
|
103
|
+
Controller('accessories'),
|
|
104
|
+
__param(0, Inject(AccessoriesService)),
|
|
105
|
+
__metadata("design:paramtypes", [AccessoriesService])
|
|
89
106
|
], AccessoriesController);
|
|
107
|
+
export { AccessoriesController };
|
|
90
108
|
//# sourceMappingURL=accessories.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessories.controller.js","sourceRoot":"","sources":["../../../src/modules/accessories/accessories.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accessories.controller.js","sourceRoot":"","sources":["../../../src/modules/accessories/accessories.controller.ts"],"names":[],"mappings":"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"}
|
|
@@ -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);
|
|
@@ -8,23 +7,22 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
11
|
+
import { IsDefined, IsNotEmpty, IsString } from 'class-validator';
|
|
12
|
+
export class AccessorySetCharacteristicDto {
|
|
13
|
+
characteristicType;
|
|
14
|
+
value;
|
|
16
15
|
}
|
|
17
|
-
exports.AccessorySetCharacteristicDto = AccessorySetCharacteristicDto;
|
|
18
16
|
__decorate([
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
ApiProperty({ required: true, type: String }),
|
|
18
|
+
IsDefined(),
|
|
19
|
+
IsString(),
|
|
22
20
|
__metadata("design:type", String)
|
|
23
21
|
], AccessorySetCharacteristicDto.prototype, "characteristicType", void 0);
|
|
24
22
|
__decorate([
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
ApiProperty({ required: true, type: 'string', title: 'Accepts a string, boolean, or integer value.' }),
|
|
24
|
+
IsDefined(),
|
|
25
|
+
IsNotEmpty(),
|
|
28
26
|
__metadata("design:type", Object)
|
|
29
27
|
], AccessorySetCharacteristicDto.prototype, "value", void 0);
|
|
30
28
|
//# sourceMappingURL=accessories.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessories.dto.js","sourceRoot":"","sources":["../../../src/modules/accessories/accessories.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accessories.dto.js","sourceRoot":"","sources":["../../../src/modules/accessories/accessories.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAEjE,MAAM,OAAO,6BAA6B;IAIxC,kBAAkB,CAAQ;IAK1B,KAAK,CAA2B;CACjC;AANC;IAHC,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC7C,SAAS,EAAE;IACX,QAAQ,EAAE;;yEACe;AAK1B;IAHC,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,8CAA8C,EAAE,CAAC;IACtG,SAAS,EAAE;IACX,UAAU,EAAE;;4DACmB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WsException } from '@nestjs/websockets';
|
|
2
|
-
import { AccessoriesService } from './accessories.service';
|
|
2
|
+
import { AccessoriesService } from './accessories.service.js';
|
|
3
3
|
export declare class AccessoriesGateway {
|
|
4
|
-
private accessoriesService;
|
|
4
|
+
private readonly accessoriesService;
|
|
5
5
|
constructor(accessoriesService: AccessoriesService);
|
|
6
6
|
connect(client: any, payload: any): void;
|
|
7
7
|
getAccessoryLayout(client: any, payload: any): Promise<any>;
|
|
@@ -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);
|
|
@@ -8,13 +7,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Inject, UseGuards } from '@nestjs/common';
|
|
14
|
+
import { SubscribeMessage, WebSocketGateway, WsException } from '@nestjs/websockets';
|
|
15
|
+
import { WsGuard } from '../../core/auth/guards/ws.guard.js';
|
|
16
|
+
import { AccessoriesService } from './accessories.service.js';
|
|
17
17
|
let AccessoriesGateway = class AccessoriesGateway {
|
|
18
|
+
accessoriesService;
|
|
18
19
|
constructor(accessoriesService) {
|
|
19
20
|
this.accessoriesService = accessoriesService;
|
|
20
21
|
}
|
|
@@ -29,32 +30,31 @@ let AccessoriesGateway = class AccessoriesGateway {
|
|
|
29
30
|
return await this.accessoriesService.saveAccessoryLayout(payload.user, payload.layout);
|
|
30
31
|
}
|
|
31
32
|
catch (e) {
|
|
32
|
-
return new
|
|
33
|
+
return new WsException(e);
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
|
-
exports.AccessoriesGateway = AccessoriesGateway;
|
|
37
37
|
__decorate([
|
|
38
|
-
|
|
38
|
+
SubscribeMessage('get-accessories'),
|
|
39
39
|
__metadata("design:type", Function),
|
|
40
40
|
__metadata("design:paramtypes", [Object, Object]),
|
|
41
41
|
__metadata("design:returntype", void 0)
|
|
42
42
|
], AccessoriesGateway.prototype, "connect", null);
|
|
43
43
|
__decorate([
|
|
44
|
-
|
|
44
|
+
SubscribeMessage('get-layout'),
|
|
45
45
|
__metadata("design:type", Function),
|
|
46
46
|
__metadata("design:paramtypes", [Object, Object]),
|
|
47
47
|
__metadata("design:returntype", Promise)
|
|
48
48
|
], AccessoriesGateway.prototype, "getAccessoryLayout", null);
|
|
49
49
|
__decorate([
|
|
50
|
-
|
|
50
|
+
SubscribeMessage('save-layout'),
|
|
51
51
|
__metadata("design:type", Function),
|
|
52
52
|
__metadata("design:paramtypes", [Object, Object]),
|
|
53
53
|
__metadata("design:returntype", Promise)
|
|
54
54
|
], AccessoriesGateway.prototype, "saveAccessoryLayout", null);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
AccessoriesGateway = __decorate([
|
|
56
|
+
UseGuards(WsGuard),
|
|
57
|
+
WebSocketGateway({
|
|
58
58
|
namespace: 'accessories',
|
|
59
59
|
allowEIO3: true,
|
|
60
60
|
cors: {
|
|
@@ -62,6 +62,8 @@ exports.AccessoriesGateway = AccessoriesGateway = __decorate([
|
|
|
62
62
|
credentials: true,
|
|
63
63
|
},
|
|
64
64
|
}),
|
|
65
|
-
|
|
65
|
+
__param(0, Inject(AccessoriesService)),
|
|
66
|
+
__metadata("design:paramtypes", [AccessoriesService])
|
|
66
67
|
], AccessoriesGateway);
|
|
68
|
+
export { AccessoriesGateway };
|
|
67
69
|
//# sourceMappingURL=accessories.gateway.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessories.gateway.js","sourceRoot":"","sources":["../../../src/modules/accessories/accessories.gateway.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"accessories.gateway.js","sourceRoot":"","sources":["../../../src/modules/accessories/accessories.gateway.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAEpF,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAWtD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAEkB;IAD/C,YAC+C,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;IAClF,CAAC;IAGJ,OAAO,CAAC,MAAW,EAAE,OAAY;QAC/B,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;IACzC,CAAC;IAGK,AAAN,KAAK,CAAC,kBAAkB,CAAC,MAAW,EAAE,OAAY;QAChD,OAAO,MAAM,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACvE,CAAC;IAGK,AAAN,KAAK,CAAC,mBAAmB,CAAC,MAAW,EAAE,OAAY;QACjD,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;QACxF,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,IAAI,WAAW,CAAC,CAAC,CAAC,CAAA;QAC3B,CAAC;IACH,CAAC;CACF,CAAA;AAjBC;IADC,gBAAgB,CAAC,iBAAiB,CAAC;;;;iDAGnC;AAGK;IADL,gBAAgB,CAAC,YAAY,CAAC;;;;4DAG9B;AAGK;IADL,gBAAgB,CAAC,aAAa,CAAC;;;;6DAO/B;AAtBU,kBAAkB;IAT9B,SAAS,CAAC,OAAO,CAAC;IAClB,gBAAgB,CAAC;QAChB,SAAS,EAAE,aAAa;QACxB,SAAS,EAAE,IAAI;QACf,IAAI,EAAE;YACJ,MAAM,EAAE,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;YAC1D,WAAW,EAAE,IAAI;SAClB;KACF,CAAC;IAGG,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;qCAAsC,kBAAkB;GAF1E,kBAAkB,CAuB9B"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export interface MatterEvent {
|
|
2
|
+
type: 'accessoriesData' | 'accessoryUpdate' | 'accessoryAdded' | 'accessoryRemoved' | 'accessoryControlResponse';
|
|
3
|
+
data?: MatterAccessoriesResponse | MatterAccessoryInfo | MatterStateUpdate | MatterControlResponse;
|
|
4
|
+
}
|
|
5
|
+
export interface MatterAccessoriesResponse {
|
|
6
|
+
accessories: MatterAccessory[];
|
|
7
|
+
error?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface MatterAccessory {
|
|
10
|
+
uuid: string;
|
|
11
|
+
displayName: string;
|
|
12
|
+
deviceType: string;
|
|
13
|
+
clusters: Record<string, Record<string, unknown>>;
|
|
14
|
+
manufacturer?: string;
|
|
15
|
+
model?: string;
|
|
16
|
+
serialNumber?: string;
|
|
17
|
+
firmwareRevision?: string;
|
|
18
|
+
bridge?: {
|
|
19
|
+
name?: string;
|
|
20
|
+
username?: string;
|
|
21
|
+
};
|
|
22
|
+
plugin?: string;
|
|
23
|
+
platform?: string;
|
|
24
|
+
commissioned?: boolean;
|
|
25
|
+
fabricCount?: number;
|
|
26
|
+
fabrics?: unknown[];
|
|
27
|
+
parts?: MatterAccessoryPart[];
|
|
28
|
+
}
|
|
29
|
+
export interface MatterAccessoryPart {
|
|
30
|
+
id: string;
|
|
31
|
+
displayName: string;
|
|
32
|
+
deviceType: string;
|
|
33
|
+
clusters: Record<string, Record<string, unknown>>;
|
|
34
|
+
}
|
|
35
|
+
export interface MatterAccessoryInfo extends MatterAccessory {
|
|
36
|
+
error?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface MatterService {
|
|
39
|
+
uniqueId: string;
|
|
40
|
+
uuid: string;
|
|
41
|
+
serviceName: string;
|
|
42
|
+
displayName: string;
|
|
43
|
+
deviceType: string;
|
|
44
|
+
clusters: Record<string, Record<string, unknown>>;
|
|
45
|
+
partId?: string;
|
|
46
|
+
protocol: 'matter';
|
|
47
|
+
instance: {
|
|
48
|
+
name: string;
|
|
49
|
+
username: string;
|
|
50
|
+
};
|
|
51
|
+
accessoryInformation: {
|
|
52
|
+
'Name': string;
|
|
53
|
+
'Manufacturer': string;
|
|
54
|
+
'Model': string;
|
|
55
|
+
'Serial Number': string;
|
|
56
|
+
'Firmware Revision': string;
|
|
57
|
+
};
|
|
58
|
+
bridge?: {
|
|
59
|
+
name?: string;
|
|
60
|
+
username?: string;
|
|
61
|
+
};
|
|
62
|
+
plugin?: string;
|
|
63
|
+
platform?: string;
|
|
64
|
+
commissioned?: boolean;
|
|
65
|
+
fabricCount?: number;
|
|
66
|
+
fabrics?: unknown[];
|
|
67
|
+
aid: 0;
|
|
68
|
+
iid: 0;
|
|
69
|
+
}
|
|
70
|
+
export interface MatterStateUpdate {
|
|
71
|
+
uuid: string;
|
|
72
|
+
cluster: string;
|
|
73
|
+
state: Record<string, unknown>;
|
|
74
|
+
partId?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface MatterControlResponse {
|
|
77
|
+
success: boolean;
|
|
78
|
+
error?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface MatterControlRequest {
|
|
81
|
+
uniqueId: string;
|
|
82
|
+
cluster: string;
|
|
83
|
+
attributes: Record<string, unknown>;
|
|
84
|
+
}
|
|
85
|
+
export interface AccessoryControlMessage {
|
|
86
|
+
set?: {
|
|
87
|
+
uniqueId: string;
|
|
88
|
+
iid?: number;
|
|
89
|
+
value?: string | number | boolean;
|
|
90
|
+
cluster?: string;
|
|
91
|
+
attributes?: Record<string, unknown>;
|
|
92
|
+
};
|
|
93
|
+
refresh?: boolean;
|
|
94
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessories.interfaces.js","sourceRoot":"","sources":["../../../src/modules/accessories/accessories.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,39 +1,38 @@
|
|
|
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
|
-
const accessories_service_1 = require("./accessories.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 { AccessoriesController } from './accessories.controller.js';
|
|
13
|
+
import { AccessoriesGateway } from './accessories.gateway.js';
|
|
14
|
+
import { AccessoriesService } from './accessories.service.js';
|
|
17
15
|
let AccessoriesModule = class AccessoriesModule {
|
|
18
16
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
(0, common_1.Module)({
|
|
17
|
+
AccessoriesModule = __decorate([
|
|
18
|
+
Module({
|
|
22
19
|
imports: [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
PassportModule.register({ defaultStrategy: 'jwt' }),
|
|
21
|
+
ConfigModule,
|
|
22
|
+
LoggerModule,
|
|
23
|
+
HomebridgeIpcModule,
|
|
26
24
|
],
|
|
27
25
|
providers: [
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
AccessoriesService,
|
|
27
|
+
AccessoriesGateway,
|
|
30
28
|
],
|
|
31
29
|
exports: [
|
|
32
|
-
|
|
30
|
+
AccessoriesService,
|
|
33
31
|
],
|
|
34
32
|
controllers: [
|
|
35
|
-
|
|
33
|
+
AccessoriesController,
|
|
36
34
|
],
|
|
37
35
|
})
|
|
38
36
|
], AccessoriesModule);
|
|
37
|
+
export { AccessoriesModule };
|
|
39
38
|
//# sourceMappingURL=accessories.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessories.module.js","sourceRoot":"","sources":["../../../src/modules/accessories/accessories.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accessories.module.js","sourceRoot":"","sources":["../../../src/modules/accessories/accessories.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,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAoBtD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,iBAAiB;IAlB7B,MAAM,CAAC;QACN,OAAO,EAAE;YACP,cAAc,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;YACnD,YAAY;YACZ,YAAY;YACZ,mBAAmB;SACpB;QACD,SAAS,EAAE;YACT,kBAAkB;YAClB,kBAAkB;SACnB;QACD,OAAO,EAAE;YACP,kBAAkB;SACnB;QACD,WAAW,EAAE;YACX,qBAAqB;SACtB;KACF,CAAC;GACW,iBAAiB,CAAG"}
|
|
@@ -1,20 +1,40 @@
|
|
|
1
1
|
import type { ServiceType } from '@homebridge/hap-client';
|
|
2
|
+
import type { Socket } from 'socket.io';
|
|
3
|
+
import type { MatterService } from './accessories.interfaces.js';
|
|
2
4
|
import { HapClient } from '@homebridge/hap-client';
|
|
3
5
|
import NodeCache from 'node-cache';
|
|
4
|
-
import { ConfigService } from '../../core/config/config.service';
|
|
5
|
-
import {
|
|
6
|
+
import { ConfigService } from '../../core/config/config.service.js';
|
|
7
|
+
import { HomebridgeIpcService } from '../../core/homebridge-ipc/homebridge-ipc.service.js';
|
|
8
|
+
import { Logger } from '../../core/logger/logger.service.js';
|
|
6
9
|
export declare class AccessoriesService {
|
|
7
10
|
private readonly configService;
|
|
8
11
|
private readonly logger;
|
|
12
|
+
private readonly homebridgeIpcService;
|
|
9
13
|
hapClient: HapClient;
|
|
10
14
|
accessoriesCache: NodeCache;
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
private matterMonitoringActive;
|
|
16
|
+
private matterUpdateListener;
|
|
17
|
+
private activeClients;
|
|
18
|
+
private matterAccessories;
|
|
19
|
+
constructor(configService: ConfigService, logger: Logger, homebridgeIpcService: HomebridgeIpcService);
|
|
20
|
+
connect(client: Socket): Promise<void>;
|
|
13
21
|
private refreshCharacteristics;
|
|
14
22
|
loadAccessories(): Promise<ServiceType[]>;
|
|
15
|
-
getAccessory(uniqueId: string): Promise<ServiceType>;
|
|
23
|
+
getAccessory(uniqueId: string): Promise<MatterService | ServiceType>;
|
|
24
|
+
private getMatterAccessory;
|
|
16
25
|
setAccessoryCharacteristic(uniqueId: string, characteristicType: string, value: number | boolean | string): Promise<ServiceType>;
|
|
17
26
|
getAccessoryLayout(username: string): Promise<any>;
|
|
18
27
|
saveAccessoryLayout(user: string, layout: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
19
28
|
resetInstancePool(): void;
|
|
29
|
+
private waitForMatterEvent;
|
|
30
|
+
private startMatterMonitoring;
|
|
31
|
+
private stopMatterMonitoring;
|
|
32
|
+
private loadMatterAccessories;
|
|
33
|
+
private transformMatterAccessory;
|
|
34
|
+
private handleMatterStateUpdate;
|
|
35
|
+
private handleMatterControl;
|
|
36
|
+
controlMatterAccessory(uuid: string, cluster: string, attributes: Record<string, unknown>, bridgeUsername?: string, partId?: string): Promise<{
|
|
37
|
+
success: boolean;
|
|
38
|
+
error?: string;
|
|
39
|
+
}>;
|
|
20
40
|
}
|