@matter/node 0.16.0-alpha.0-20251022-5a69ce65a → 0.16.0-alpha.0-20251027-17770fb28
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/dist/cjs/behavior/cluster/ClusterBehavior.d.ts +5 -5
- package/dist/cjs/behavior/cluster/ClusterBehavior.d.ts.map +1 -1
- package/dist/cjs/behavior/cluster/ClusterBehavior.js +7 -2
- package/dist/cjs/behavior/cluster/ClusterBehavior.js.map +1 -1
- package/dist/cjs/behavior/cluster/ClusterBehaviorUtil.d.ts.map +1 -1
- package/dist/cjs/behavior/cluster/ClusterBehaviorUtil.js +51 -35
- package/dist/cjs/behavior/cluster/ClusterBehaviorUtil.js.map +1 -1
- package/dist/cjs/behavior/state/validation/conformance-compiler.d.ts.map +1 -1
- package/dist/cjs/behavior/state/validation/conformance-compiler.js +6 -2
- package/dist/cjs/behavior/state/validation/conformance-compiler.js.map +1 -1
- package/dist/cjs/behavior/system/remote/api/resources/EndpointResource.d.ts +1 -0
- package/dist/cjs/behavior/system/remote/api/resources/EndpointResource.d.ts.map +1 -1
- package/dist/cjs/behaviors/account-login/AccountLoginInterface.d.ts +7 -7
- package/dist/cjs/behaviors/actions/ActionsInterface.d.ts +26 -1
- package/dist/cjs/behaviors/actions/ActionsInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/application-launcher/ApplicationLauncherInterface.d.ts +3 -1
- package/dist/cjs/behaviors/application-launcher/ApplicationLauncherInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/basic-information/BasicInformationServer.d.ts +1 -1
- package/dist/cjs/behaviors/channel/ChannelInterface.d.ts +4 -0
- package/dist/cjs/behaviors/channel/ChannelInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/color-control/ColorControlInterface.d.ts +4 -0
- package/dist/cjs/behaviors/color-control/ColorControlInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/color-control/ColorControlServer.d.ts +8 -0
- package/dist/cjs/behaviors/color-control/ColorControlServer.d.ts.map +1 -1
- package/dist/cjs/behaviors/color-control/ColorControlServer.js +23 -26
- package/dist/cjs/behaviors/color-control/ColorControlServer.js.map +1 -1
- package/dist/cjs/behaviors/content-control/ContentControlInterface.d.ts +1 -1
- package/dist/cjs/behaviors/door-lock/DoorLockInterface.d.ts +1 -1
- package/dist/cjs/behaviors/door-lock/DoorLockServer.d.ts.map +1 -1
- package/dist/cjs/behaviors/door-lock/DoorLockServer.js +8 -4
- package/dist/cjs/behaviors/door-lock/DoorLockServer.js.map +1 -1
- package/dist/cjs/behaviors/electrical-power-measurement/ElectricalPowerMeasurementBehavior.d.ts +3 -3
- package/dist/cjs/behaviors/ethernet-network-diagnostics/EthernetNetworkDiagnosticsInterface.d.ts +2 -2
- package/dist/cjs/behaviors/fan-control/FanControlInterface.d.ts +13 -4
- package/dist/cjs/behaviors/fan-control/FanControlInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/fan-control/FanControlServer.d.ts +1 -1
- package/dist/cjs/behaviors/fan-control/FanControlServer.d.ts.map +1 -1
- package/dist/cjs/behaviors/fan-control/FanControlServer.js +6 -0
- package/dist/cjs/behaviors/fan-control/FanControlServer.js.map +1 -1
- package/dist/cjs/behaviors/general-commissioning/GeneralCommissioningInterface.d.ts +16 -13
- package/dist/cjs/behaviors/general-commissioning/GeneralCommissioningInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/group-key-management/GroupKeyManagementInterface.d.ts +3 -3
- package/dist/cjs/behaviors/icd-management/IcdManagementInterface.d.ts +40 -4
- package/dist/cjs/behaviors/icd-management/IcdManagementInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/index.d.ts +1 -5
- package/dist/cjs/behaviors/index.d.ts.map +1 -1
- package/dist/cjs/behaviors/index.js +1 -5
- package/dist/cjs/behaviors/index.js.map +1 -1
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorBehavior.d.ts +32 -0
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorBehavior.d.ts.map +1 -0
- package/dist/cjs/behaviors/{joint-fabric-pki/JointFabricPkiBehavior.js → joint-fabric-administrator/JointFabricAdministratorBehavior.js} +9 -9
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorBehavior.js.map +6 -0
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorClient.d.ts +15 -0
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorClient.d.ts.map +1 -0
- package/dist/cjs/behaviors/{joint-fabric-pki/JointFabricPkiServer.js → joint-fabric-administrator/JointFabricAdministratorClient.js} +9 -8
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorClient.js.map +6 -0
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorInterface.d.ts +89 -0
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorInterface.d.ts.map +1 -0
- package/dist/cjs/behaviors/{proxy-discovery/ProxyDiscoveryInterface.js → joint-fabric-administrator/JointFabricAdministratorInterface.js} +3 -3
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorInterface.js.map +6 -0
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorServer.d.ts +13 -0
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorServer.d.ts.map +1 -0
- package/dist/cjs/behaviors/{ballast-configuration/BallastConfigurationServer.js → joint-fabric-administrator/JointFabricAdministratorServer.js} +7 -7
- package/dist/cjs/behaviors/joint-fabric-administrator/JointFabricAdministratorServer.js.map +6 -0
- package/dist/cjs/behaviors/joint-fabric-administrator/index.d.ts +11 -0
- package/dist/cjs/behaviors/joint-fabric-administrator/index.d.ts.map +1 -0
- package/dist/cjs/behaviors/{joint-fabric-pki → joint-fabric-administrator}/index.js +6 -6
- package/dist/cjs/behaviors/joint-fabric-administrator/index.js.map +6 -0
- package/dist/cjs/behaviors/joint-fabric-datastore/JointFabricDatastoreInterface.d.ts +555 -40
- package/dist/cjs/behaviors/joint-fabric-datastore/JointFabricDatastoreInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/media-playback/MediaPlaybackInterface.d.ts +27 -2
- package/dist/cjs/behaviors/media-playback/MediaPlaybackInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/network-commissioning/NetworkCommissioningInterface.d.ts +28 -14
- package/dist/cjs/behaviors/network-commissioning/NetworkCommissioningInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/operational-credentials/OperationalCredentialsInterface.d.ts +106 -9
- package/dist/cjs/behaviors/operational-credentials/OperationalCredentialsInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/operational-credentials/OperationalCredentialsServer.js +1 -1
- package/dist/cjs/behaviors/operational-credentials/OperationalCredentialsServer.js.map +1 -1
- package/dist/cjs/behaviors/service-area/ServiceAreaInterface.d.ts +0 -3
- package/dist/cjs/behaviors/service-area/ServiceAreaInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/software-diagnostics/SoftwareDiagnosticsInterface.d.ts +3 -1
- package/dist/cjs/behaviors/software-diagnostics/SoftwareDiagnosticsInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/switch/SwitchServer.d.ts +2 -0
- package/dist/cjs/behaviors/switch/SwitchServer.d.ts.map +1 -1
- package/dist/cjs/behaviors/switch/SwitchServer.js +3 -0
- package/dist/cjs/behaviors/switch/SwitchServer.js.map +1 -1
- package/dist/cjs/behaviors/temperature-control/TemperatureControlInterface.d.ts +2 -0
- package/dist/cjs/behaviors/temperature-control/TemperatureControlInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/thermostat/ThermostatBehavior.d.ts +1 -1
- package/dist/cjs/behaviors/thermostat-user-interface-configuration/ThermostatUserInterfaceConfigurationServer.d.ts +1 -1
- package/dist/cjs/behaviors/thermostat-user-interface-configuration/ThermostatUserInterfaceConfigurationServer.d.ts.map +1 -1
- package/dist/cjs/behaviors/thermostat-user-interface-configuration/ThermostatUserInterfaceConfigurationServer.js +16 -0
- package/dist/cjs/behaviors/thermostat-user-interface-configuration/ThermostatUserInterfaceConfigurationServer.js.map +2 -2
- package/dist/cjs/behaviors/thread-network-diagnostics/ThreadNetworkDiagnosticsInterface.d.ts +3 -2
- package/dist/cjs/behaviors/thread-network-diagnostics/ThreadNetworkDiagnosticsInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/time-synchronization/TimeSynchronizationInterface.d.ts +10 -6
- package/dist/cjs/behaviors/time-synchronization/TimeSynchronizationInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/unit-localization/UnitLocalizationServer.d.ts.map +1 -1
- package/dist/cjs/behaviors/unit-localization/UnitLocalizationServer.js +6 -0
- package/dist/cjs/behaviors/unit-localization/UnitLocalizationServer.js.map +1 -1
- package/dist/cjs/behaviors/wi-fi-network-diagnostics/WiFiNetworkDiagnosticsInterface.d.ts +2 -2
- package/dist/cjs/behaviors/window-covering/WindowCoveringBehavior.d.ts +1 -1
- package/dist/cjs/behaviors/window-covering/WindowCoveringInterface.d.ts +18 -0
- package/dist/cjs/behaviors/window-covering/WindowCoveringInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/window-covering/WindowCoveringServer.d.ts +2 -2
- package/dist/cjs/devices/basic-video-player.d.ts +2 -2
- package/dist/cjs/devices/casting-video-player.d.ts +2 -2
- package/dist/cjs/devices/color-temperature-light.d.ts +48 -22
- package/dist/cjs/devices/color-temperature-light.d.ts.map +1 -1
- package/dist/cjs/devices/color-temperature-light.js +5 -4
- package/dist/cjs/devices/color-temperature-light.js.map +2 -2
- package/dist/cjs/devices/control-bridge.d.ts +7 -7
- package/dist/cjs/devices/control-bridge.d.ts.map +1 -1
- package/dist/cjs/devices/control-bridge.js +3 -3
- package/dist/cjs/devices/control-bridge.js.map +2 -2
- package/dist/cjs/devices/cook-surface.d.ts +132 -4
- package/dist/cjs/devices/cook-surface.d.ts.map +1 -1
- package/dist/cjs/devices/cook-surface.js +2 -2
- package/dist/cjs/devices/cook-surface.js.map +1 -1
- package/dist/cjs/devices/dimmable-light.d.ts +44 -18
- package/dist/cjs/devices/dimmable-light.d.ts.map +1 -1
- package/dist/cjs/devices/dimmable-light.js +5 -4
- package/dist/cjs/devices/dimmable-light.js.map +2 -2
- package/dist/cjs/devices/dimmable-plug-in-unit.d.ts +56 -19
- package/dist/cjs/devices/dimmable-plug-in-unit.d.ts.map +1 -1
- package/dist/cjs/devices/dimmable-plug-in-unit.js +6 -5
- package/dist/cjs/devices/dimmable-plug-in-unit.js.map +2 -2
- package/dist/cjs/devices/dishwasher.d.ts +30 -6
- package/dist/cjs/devices/dishwasher.d.ts.map +1 -1
- package/dist/cjs/devices/dishwasher.js +2 -2
- package/dist/cjs/devices/dishwasher.js.map +1 -1
- package/dist/cjs/devices/extended-color-light.d.ts +48 -22
- package/dist/cjs/devices/extended-color-light.d.ts.map +1 -1
- package/dist/cjs/devices/extended-color-light.js +5 -4
- package/dist/cjs/devices/extended-color-light.js.map +2 -2
- package/dist/cjs/devices/index.d.ts +1 -0
- package/dist/cjs/devices/index.d.ts.map +1 -1
- package/dist/cjs/devices/index.js +1 -0
- package/dist/cjs/devices/index.js.map +1 -1
- package/dist/cjs/devices/laundry-dryer.d.ts +30 -6
- package/dist/cjs/devices/laundry-dryer.d.ts.map +1 -1
- package/dist/cjs/devices/laundry-dryer.js +2 -2
- package/dist/cjs/devices/laundry-dryer.js.map +1 -1
- package/dist/cjs/devices/laundry-washer.d.ts +30 -6
- package/dist/cjs/devices/laundry-washer.d.ts.map +1 -1
- package/dist/cjs/devices/laundry-washer.js +2 -2
- package/dist/cjs/devices/laundry-washer.js.map +1 -1
- package/dist/cjs/devices/microwave-oven.d.ts +25 -5
- package/dist/cjs/devices/microwave-oven.d.ts.map +1 -1
- package/dist/cjs/devices/microwave-oven.js +2 -2
- package/dist/cjs/devices/microwave-oven.js.map +1 -1
- package/dist/cjs/devices/mounted-dimmable-load-control.d.ts +61 -22
- package/dist/cjs/devices/mounted-dimmable-load-control.d.ts.map +1 -1
- package/dist/cjs/devices/mounted-dimmable-load-control.js +6 -5
- package/dist/cjs/devices/mounted-dimmable-load-control.js.map +2 -2
- package/dist/cjs/devices/mounted-on-off-control.d.ts +57 -17
- package/dist/cjs/devices/mounted-on-off-control.d.ts.map +1 -1
- package/dist/cjs/devices/mounted-on-off-control.js +11 -5
- package/dist/cjs/devices/mounted-on-off-control.js.map +2 -2
- package/dist/cjs/devices/network-infrastructure-manager.d.ts +16 -4
- package/dist/cjs/devices/network-infrastructure-manager.d.ts.map +1 -1
- package/dist/cjs/devices/network-infrastructure-manager.js +7 -3
- package/dist/cjs/devices/network-infrastructure-manager.js.map +2 -2
- package/dist/cjs/devices/on-off-light.d.ts +42 -14
- package/dist/cjs/devices/on-off-light.d.ts.map +1 -1
- package/dist/cjs/devices/on-off-light.js +10 -4
- package/dist/cjs/devices/on-off-light.js.map +2 -2
- package/dist/cjs/devices/on-off-plug-in-unit.d.ts +54 -15
- package/dist/cjs/devices/on-off-plug-in-unit.d.ts.map +1 -1
- package/dist/cjs/devices/on-off-plug-in-unit.js +11 -5
- package/dist/cjs/devices/on-off-plug-in-unit.js.map +2 -2
- package/dist/cjs/devices/rain-sensor.d.ts +4 -4
- package/dist/cjs/devices/robotic-vacuum-cleaner.d.ts +30 -6
- package/dist/cjs/devices/robotic-vacuum-cleaner.d.ts.map +1 -1
- package/dist/cjs/devices/robotic-vacuum-cleaner.js +2 -2
- package/dist/cjs/devices/robotic-vacuum-cleaner.js.map +1 -1
- package/dist/cjs/devices/temperature-controlled-cabinet.d.ts +147 -7
- package/dist/cjs/devices/temperature-controlled-cabinet.d.ts.map +1 -1
- package/dist/cjs/devices/temperature-controlled-cabinet.js +3 -3
- package/dist/cjs/devices/temperature-controlled-cabinet.js.map +1 -1
- package/dist/cjs/devices/thermostat-controller.d.ts +62 -0
- package/dist/cjs/devices/thermostat-controller.d.ts.map +1 -0
- package/dist/cjs/devices/thermostat-controller.js +56 -0
- package/dist/cjs/devices/thermostat-controller.js.map +6 -0
- package/dist/cjs/devices/water-freeze-detector.d.ts +4 -4
- package/dist/cjs/devices/water-heater.d.ts +2 -2
- package/dist/cjs/devices/water-leak-detector.d.ts +4 -4
- package/dist/cjs/devices/window-covering-controller.d.ts +1 -1
- package/dist/cjs/devices/window-covering-controller.js +1 -1
- package/dist/cjs/devices/window-covering.d.ts +1 -1
- package/dist/cjs/devices/window-covering.js +1 -1
- package/dist/cjs/endpoints/joint-fabric-administrator.d.ts +9 -9
- package/dist/cjs/endpoints/joint-fabric-administrator.d.ts.map +1 -1
- package/dist/cjs/endpoints/joint-fabric-administrator.js +7 -4
- package/dist/cjs/endpoints/joint-fabric-administrator.js.map +2 -2
- package/dist/cjs/tags/AreaNamespaceTag.d.ts +132 -99
- package/dist/cjs/tags/AreaNamespaceTag.d.ts.map +1 -1
- package/dist/cjs/tags/AreaNamespaceTag.js +91 -67
- package/dist/cjs/tags/AreaNamespaceTag.js.map +1 -1
- package/dist/cjs/tags/ClosureTag.d.ts +7 -0
- package/dist/cjs/tags/ClosureTag.d.ts.map +1 -1
- package/dist/cjs/tags/ClosureTag.js.map +1 -1
- package/dist/cjs/tags/CompassDirectionTag.d.ts +4 -4
- package/dist/cjs/tags/CompassDirectionTag.js +4 -4
- package/dist/cjs/tags/CompassDirectionTag.js.map +1 -1
- package/dist/cjs/tags/CompassLocationTag.d.ts +4 -4
- package/dist/cjs/tags/CompassLocationTag.js +4 -4
- package/dist/cjs/tags/CompassLocationTag.js.map +1 -1
- package/dist/cjs/tags/LandmarkNamespaceTag.d.ts +34 -24
- package/dist/cjs/tags/LandmarkNamespaceTag.d.ts.map +1 -1
- package/dist/cjs/tags/LandmarkNamespaceTag.js +34 -24
- package/dist/cjs/tags/LandmarkNamespaceTag.js.map +1 -1
- package/dist/cjs/tags/LaundryTag.d.ts +3 -3
- package/dist/cjs/tags/LaundryTag.js +3 -3
- package/dist/cjs/tags/LaundryTag.js.map +1 -1
- package/dist/cjs/tags/LocationTag.d.ts +8 -1
- package/dist/cjs/tags/LocationTag.d.ts.map +1 -1
- package/dist/cjs/tags/LocationTag.js +6 -2
- package/dist/cjs/tags/LocationTag.js.map +1 -1
- package/dist/cjs/tags/NumberTag.d.ts +80 -0
- package/dist/cjs/tags/NumberTag.d.ts.map +1 -1
- package/dist/cjs/tags/NumberTag.js +21 -1
- package/dist/cjs/tags/NumberTag.js.map +1 -1
- package/dist/cjs/tags/PositionTag.d.ts +3 -0
- package/dist/cjs/tags/PositionTag.d.ts.map +1 -1
- package/dist/cjs/tags/PositionTag.js.map +1 -1
- package/dist/cjs/tags/RelativePositionTag.d.ts +2 -2
- package/dist/cjs/tags/RelativePositionTag.js +2 -2
- package/dist/cjs/tags/RelativePositionTag.js.map +1 -1
- package/dist/cjs/tags/SwitchesTag.d.ts +27 -3
- package/dist/cjs/tags/SwitchesTag.d.ts.map +1 -1
- package/dist/cjs/tags/SwitchesTag.js +17 -2
- package/dist/cjs/tags/SwitchesTag.js.map +1 -1
- package/dist/esm/behavior/cluster/ClusterBehavior.d.ts +5 -5
- package/dist/esm/behavior/cluster/ClusterBehavior.d.ts.map +1 -1
- package/dist/esm/behavior/cluster/ClusterBehavior.js +8 -3
- package/dist/esm/behavior/cluster/ClusterBehavior.js.map +1 -1
- package/dist/esm/behavior/cluster/ClusterBehaviorUtil.d.ts.map +1 -1
- package/dist/esm/behavior/cluster/ClusterBehaviorUtil.js +53 -35
- package/dist/esm/behavior/cluster/ClusterBehaviorUtil.js.map +1 -1
- package/dist/esm/behavior/state/validation/conformance-compiler.d.ts.map +1 -1
- package/dist/esm/behavior/state/validation/conformance-compiler.js +6 -2
- package/dist/esm/behavior/state/validation/conformance-compiler.js.map +1 -1
- package/dist/esm/behavior/system/remote/api/resources/EndpointResource.d.ts +1 -0
- package/dist/esm/behavior/system/remote/api/resources/EndpointResource.d.ts.map +1 -1
- package/dist/esm/behaviors/account-login/AccountLoginInterface.d.ts +7 -7
- package/dist/esm/behaviors/actions/ActionsInterface.d.ts +26 -1
- package/dist/esm/behaviors/actions/ActionsInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/application-launcher/ApplicationLauncherInterface.d.ts +3 -1
- package/dist/esm/behaviors/application-launcher/ApplicationLauncherInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/basic-information/BasicInformationServer.d.ts +1 -1
- package/dist/esm/behaviors/channel/ChannelInterface.d.ts +4 -0
- package/dist/esm/behaviors/channel/ChannelInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/color-control/ColorControlInterface.d.ts +4 -0
- package/dist/esm/behaviors/color-control/ColorControlInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/color-control/ColorControlServer.d.ts +8 -0
- package/dist/esm/behaviors/color-control/ColorControlServer.d.ts.map +1 -1
- package/dist/esm/behaviors/color-control/ColorControlServer.js +23 -26
- package/dist/esm/behaviors/color-control/ColorControlServer.js.map +1 -1
- package/dist/esm/behaviors/content-control/ContentControlInterface.d.ts +1 -1
- package/dist/esm/behaviors/door-lock/DoorLockInterface.d.ts +1 -1
- package/dist/esm/behaviors/door-lock/DoorLockServer.d.ts.map +1 -1
- package/dist/esm/behaviors/door-lock/DoorLockServer.js +8 -4
- package/dist/esm/behaviors/door-lock/DoorLockServer.js.map +1 -1
- package/dist/esm/behaviors/electrical-power-measurement/ElectricalPowerMeasurementBehavior.d.ts +3 -3
- package/dist/esm/behaviors/ethernet-network-diagnostics/EthernetNetworkDiagnosticsInterface.d.ts +2 -2
- package/dist/esm/behaviors/fan-control/FanControlInterface.d.ts +13 -4
- package/dist/esm/behaviors/fan-control/FanControlInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/fan-control/FanControlServer.d.ts +1 -1
- package/dist/esm/behaviors/fan-control/FanControlServer.d.ts.map +1 -1
- package/dist/esm/behaviors/fan-control/FanControlServer.js +6 -0
- package/dist/esm/behaviors/fan-control/FanControlServer.js.map +1 -1
- package/dist/esm/behaviors/general-commissioning/GeneralCommissioningInterface.d.ts +16 -13
- package/dist/esm/behaviors/general-commissioning/GeneralCommissioningInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/group-key-management/GroupKeyManagementInterface.d.ts +3 -3
- package/dist/esm/behaviors/icd-management/IcdManagementInterface.d.ts +40 -4
- package/dist/esm/behaviors/icd-management/IcdManagementInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/index.d.ts +1 -5
- package/dist/esm/behaviors/index.d.ts.map +1 -1
- package/dist/esm/behaviors/index.js +1 -5
- package/dist/esm/behaviors/index.js.map +1 -1
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorBehavior.d.ts +32 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorBehavior.d.ts.map +1 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorBehavior.js +14 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorBehavior.js.map +6 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorClient.d.ts +15 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorClient.d.ts.map +1 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorClient.js +13 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorClient.js.map +6 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorInterface.d.ts +89 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorInterface.d.ts.map +1 -0
- package/dist/esm/behaviors/{valid-proxies/ValidProxiesInterface.js → joint-fabric-administrator/JointFabricAdministratorInterface.js} +1 -1
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorInterface.js.map +6 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorServer.d.ts +13 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorServer.d.ts.map +1 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorServer.js +12 -0
- package/dist/esm/behaviors/joint-fabric-administrator/JointFabricAdministratorServer.js.map +6 -0
- package/dist/esm/behaviors/joint-fabric-administrator/index.d.ts +11 -0
- package/dist/esm/behaviors/joint-fabric-administrator/index.d.ts.map +1 -0
- package/dist/esm/behaviors/joint-fabric-administrator/index.js +10 -0
- package/dist/esm/behaviors/{joint-fabric-pki → joint-fabric-administrator}/index.js.map +1 -1
- package/dist/esm/behaviors/joint-fabric-datastore/JointFabricDatastoreInterface.d.ts +555 -40
- package/dist/esm/behaviors/joint-fabric-datastore/JointFabricDatastoreInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/media-playback/MediaPlaybackInterface.d.ts +27 -2
- package/dist/esm/behaviors/media-playback/MediaPlaybackInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/network-commissioning/NetworkCommissioningInterface.d.ts +28 -14
- package/dist/esm/behaviors/network-commissioning/NetworkCommissioningInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/operational-credentials/OperationalCredentialsInterface.d.ts +106 -9
- package/dist/esm/behaviors/operational-credentials/OperationalCredentialsInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/operational-credentials/OperationalCredentialsServer.js +1 -1
- package/dist/esm/behaviors/operational-credentials/OperationalCredentialsServer.js.map +1 -1
- package/dist/esm/behaviors/service-area/ServiceAreaInterface.d.ts +0 -3
- package/dist/esm/behaviors/service-area/ServiceAreaInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/software-diagnostics/SoftwareDiagnosticsInterface.d.ts +3 -1
- package/dist/esm/behaviors/software-diagnostics/SoftwareDiagnosticsInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/switch/SwitchServer.d.ts +2 -0
- package/dist/esm/behaviors/switch/SwitchServer.d.ts.map +1 -1
- package/dist/esm/behaviors/switch/SwitchServer.js +3 -0
- package/dist/esm/behaviors/switch/SwitchServer.js.map +1 -1
- package/dist/esm/behaviors/temperature-control/TemperatureControlInterface.d.ts +2 -0
- package/dist/esm/behaviors/temperature-control/TemperatureControlInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/thermostat/ThermostatBehavior.d.ts +1 -1
- package/dist/esm/behaviors/thermostat-user-interface-configuration/ThermostatUserInterfaceConfigurationServer.d.ts +1 -1
- package/dist/esm/behaviors/thermostat-user-interface-configuration/ThermostatUserInterfaceConfigurationServer.d.ts.map +1 -1
- package/dist/esm/behaviors/thermostat-user-interface-configuration/ThermostatUserInterfaceConfigurationServer.js +16 -0
- package/dist/esm/behaviors/thermostat-user-interface-configuration/ThermostatUserInterfaceConfigurationServer.js.map +1 -1
- package/dist/esm/behaviors/thread-network-diagnostics/ThreadNetworkDiagnosticsInterface.d.ts +3 -2
- package/dist/esm/behaviors/thread-network-diagnostics/ThreadNetworkDiagnosticsInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/time-synchronization/TimeSynchronizationInterface.d.ts +10 -6
- package/dist/esm/behaviors/time-synchronization/TimeSynchronizationInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/unit-localization/UnitLocalizationServer.d.ts.map +1 -1
- package/dist/esm/behaviors/unit-localization/UnitLocalizationServer.js +6 -0
- package/dist/esm/behaviors/unit-localization/UnitLocalizationServer.js.map +1 -1
- package/dist/esm/behaviors/wi-fi-network-diagnostics/WiFiNetworkDiagnosticsInterface.d.ts +2 -2
- package/dist/esm/behaviors/window-covering/WindowCoveringBehavior.d.ts +1 -1
- package/dist/esm/behaviors/window-covering/WindowCoveringInterface.d.ts +18 -0
- package/dist/esm/behaviors/window-covering/WindowCoveringInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/window-covering/WindowCoveringServer.d.ts +2 -2
- package/dist/esm/devices/basic-video-player.d.ts +2 -2
- package/dist/esm/devices/casting-video-player.d.ts +2 -2
- package/dist/esm/devices/color-temperature-light.d.ts +48 -22
- package/dist/esm/devices/color-temperature-light.d.ts.map +1 -1
- package/dist/esm/devices/color-temperature-light.js +7 -6
- package/dist/esm/devices/color-temperature-light.js.map +1 -1
- package/dist/esm/devices/control-bridge.d.ts +7 -7
- package/dist/esm/devices/control-bridge.d.ts.map +1 -1
- package/dist/esm/devices/control-bridge.js +5 -5
- package/dist/esm/devices/control-bridge.js.map +1 -1
- package/dist/esm/devices/cook-surface.d.ts +132 -4
- package/dist/esm/devices/cook-surface.d.ts.map +1 -1
- package/dist/esm/devices/cook-surface.js +2 -2
- package/dist/esm/devices/cook-surface.js.map +1 -1
- package/dist/esm/devices/dimmable-light.d.ts +44 -18
- package/dist/esm/devices/dimmable-light.d.ts.map +1 -1
- package/dist/esm/devices/dimmable-light.js +6 -5
- package/dist/esm/devices/dimmable-light.js.map +1 -1
- package/dist/esm/devices/dimmable-plug-in-unit.d.ts +56 -19
- package/dist/esm/devices/dimmable-plug-in-unit.d.ts.map +1 -1
- package/dist/esm/devices/dimmable-plug-in-unit.js +7 -6
- package/dist/esm/devices/dimmable-plug-in-unit.js.map +1 -1
- package/dist/esm/devices/dishwasher.d.ts +30 -6
- package/dist/esm/devices/dishwasher.d.ts.map +1 -1
- package/dist/esm/devices/dishwasher.js +2 -2
- package/dist/esm/devices/dishwasher.js.map +1 -1
- package/dist/esm/devices/extended-color-light.d.ts +48 -22
- package/dist/esm/devices/extended-color-light.d.ts.map +1 -1
- package/dist/esm/devices/extended-color-light.js +7 -6
- package/dist/esm/devices/extended-color-light.js.map +1 -1
- package/dist/esm/devices/index.d.ts +1 -0
- package/dist/esm/devices/index.d.ts.map +1 -1
- package/dist/esm/devices/index.js +1 -0
- package/dist/esm/devices/index.js.map +1 -1
- package/dist/esm/devices/laundry-dryer.d.ts +30 -6
- package/dist/esm/devices/laundry-dryer.d.ts.map +1 -1
- package/dist/esm/devices/laundry-dryer.js +2 -2
- package/dist/esm/devices/laundry-dryer.js.map +1 -1
- package/dist/esm/devices/laundry-washer.d.ts +30 -6
- package/dist/esm/devices/laundry-washer.d.ts.map +1 -1
- package/dist/esm/devices/laundry-washer.js +2 -2
- package/dist/esm/devices/laundry-washer.js.map +1 -1
- package/dist/esm/devices/microwave-oven.d.ts +25 -5
- package/dist/esm/devices/microwave-oven.d.ts.map +1 -1
- package/dist/esm/devices/microwave-oven.js +2 -2
- package/dist/esm/devices/microwave-oven.js.map +1 -1
- package/dist/esm/devices/mounted-dimmable-load-control.d.ts +61 -22
- package/dist/esm/devices/mounted-dimmable-load-control.d.ts.map +1 -1
- package/dist/esm/devices/mounted-dimmable-load-control.js +7 -6
- package/dist/esm/devices/mounted-dimmable-load-control.js.map +1 -1
- package/dist/esm/devices/mounted-on-off-control.d.ts +57 -17
- package/dist/esm/devices/mounted-on-off-control.d.ts.map +1 -1
- package/dist/esm/devices/mounted-on-off-control.js +11 -5
- package/dist/esm/devices/mounted-on-off-control.js.map +1 -1
- package/dist/esm/devices/network-infrastructure-manager.d.ts +16 -4
- package/dist/esm/devices/network-infrastructure-manager.d.ts.map +1 -1
- package/dist/esm/devices/network-infrastructure-manager.js +9 -3
- package/dist/esm/devices/network-infrastructure-manager.js.map +1 -1
- package/dist/esm/devices/on-off-light.d.ts +42 -14
- package/dist/esm/devices/on-off-light.d.ts.map +1 -1
- package/dist/esm/devices/on-off-light.js +10 -4
- package/dist/esm/devices/on-off-light.js.map +1 -1
- package/dist/esm/devices/on-off-plug-in-unit.d.ts +54 -15
- package/dist/esm/devices/on-off-plug-in-unit.d.ts.map +1 -1
- package/dist/esm/devices/on-off-plug-in-unit.js +11 -5
- package/dist/esm/devices/on-off-plug-in-unit.js.map +1 -1
- package/dist/esm/devices/rain-sensor.d.ts +4 -4
- package/dist/esm/devices/robotic-vacuum-cleaner.d.ts +30 -6
- package/dist/esm/devices/robotic-vacuum-cleaner.d.ts.map +1 -1
- package/dist/esm/devices/robotic-vacuum-cleaner.js +2 -2
- package/dist/esm/devices/robotic-vacuum-cleaner.js.map +1 -1
- package/dist/esm/devices/temperature-controlled-cabinet.d.ts +147 -7
- package/dist/esm/devices/temperature-controlled-cabinet.d.ts.map +1 -1
- package/dist/esm/devices/temperature-controlled-cabinet.js +3 -3
- package/dist/esm/devices/temperature-controlled-cabinet.js.map +1 -1
- package/dist/esm/devices/thermostat-controller.d.ts +62 -0
- package/dist/esm/devices/thermostat-controller.d.ts.map +1 -0
- package/dist/esm/devices/thermostat-controller.js +38 -0
- package/dist/esm/devices/thermostat-controller.js.map +6 -0
- package/dist/esm/devices/water-freeze-detector.d.ts +4 -4
- package/dist/esm/devices/water-heater.d.ts +2 -2
- package/dist/esm/devices/water-leak-detector.d.ts +4 -4
- package/dist/esm/devices/window-covering-controller.d.ts +1 -1
- package/dist/esm/devices/window-covering-controller.js +1 -1
- package/dist/esm/devices/window-covering.d.ts +1 -1
- package/dist/esm/devices/window-covering.js +1 -1
- package/dist/esm/endpoints/joint-fabric-administrator.d.ts +9 -9
- package/dist/esm/endpoints/joint-fabric-administrator.d.ts.map +1 -1
- package/dist/esm/endpoints/joint-fabric-administrator.js +9 -4
- package/dist/esm/endpoints/joint-fabric-administrator.js.map +1 -1
- package/dist/esm/tags/AreaNamespaceTag.d.ts +132 -99
- package/dist/esm/tags/AreaNamespaceTag.d.ts.map +1 -1
- package/dist/esm/tags/AreaNamespaceTag.js +91 -67
- package/dist/esm/tags/AreaNamespaceTag.js.map +1 -1
- package/dist/esm/tags/ClosureTag.d.ts +7 -0
- package/dist/esm/tags/ClosureTag.d.ts.map +1 -1
- package/dist/esm/tags/ClosureTag.js.map +1 -1
- package/dist/esm/tags/CompassDirectionTag.d.ts +4 -4
- package/dist/esm/tags/CompassDirectionTag.js +4 -4
- package/dist/esm/tags/CompassDirectionTag.js.map +1 -1
- package/dist/esm/tags/CompassLocationTag.d.ts +4 -4
- package/dist/esm/tags/CompassLocationTag.js +4 -4
- package/dist/esm/tags/CompassLocationTag.js.map +1 -1
- package/dist/esm/tags/LandmarkNamespaceTag.d.ts +34 -24
- package/dist/esm/tags/LandmarkNamespaceTag.d.ts.map +1 -1
- package/dist/esm/tags/LandmarkNamespaceTag.js +34 -24
- package/dist/esm/tags/LandmarkNamespaceTag.js.map +1 -1
- package/dist/esm/tags/LaundryTag.d.ts +3 -3
- package/dist/esm/tags/LaundryTag.js +3 -3
- package/dist/esm/tags/LaundryTag.js.map +1 -1
- package/dist/esm/tags/LocationTag.d.ts +8 -1
- package/dist/esm/tags/LocationTag.d.ts.map +1 -1
- package/dist/esm/tags/LocationTag.js +6 -2
- package/dist/esm/tags/LocationTag.js.map +1 -1
- package/dist/esm/tags/NumberTag.d.ts +80 -0
- package/dist/esm/tags/NumberTag.d.ts.map +1 -1
- package/dist/esm/tags/NumberTag.js +21 -1
- package/dist/esm/tags/NumberTag.js.map +1 -1
- package/dist/esm/tags/PositionTag.d.ts +3 -0
- package/dist/esm/tags/PositionTag.d.ts.map +1 -1
- package/dist/esm/tags/PositionTag.js.map +1 -1
- package/dist/esm/tags/RelativePositionTag.d.ts +2 -2
- package/dist/esm/tags/RelativePositionTag.js +2 -2
- package/dist/esm/tags/RelativePositionTag.js.map +1 -1
- package/dist/esm/tags/SwitchesTag.d.ts +27 -3
- package/dist/esm/tags/SwitchesTag.d.ts.map +1 -1
- package/dist/esm/tags/SwitchesTag.js +17 -2
- package/dist/esm/tags/SwitchesTag.js.map +1 -1
- package/package.json +7 -7
- package/src/behavior/cluster/ClusterBehavior.ts +21 -10
- package/src/behavior/cluster/ClusterBehaviorUtil.ts +85 -59
- package/src/behavior/state/validation/conformance-compiler.ts +8 -3
- package/src/behaviors/account-login/AccountLoginInterface.ts +7 -7
- package/src/behaviors/actions/ActionsInterface.ts +26 -1
- package/src/behaviors/application-launcher/ApplicationLauncherInterface.ts +3 -1
- package/src/behaviors/channel/ChannelInterface.ts +4 -0
- package/src/behaviors/color-control/ColorControlInterface.ts +4 -0
- package/src/behaviors/color-control/ColorControlServer.ts +25 -26
- package/src/behaviors/content-control/ContentControlInterface.ts +1 -1
- package/src/behaviors/door-lock/DoorLockInterface.ts +1 -1
- package/src/behaviors/door-lock/DoorLockServer.ts +11 -4
- package/src/behaviors/ethernet-network-diagnostics/EthernetNetworkDiagnosticsInterface.ts +2 -2
- package/src/behaviors/fan-control/FanControlInterface.ts +13 -4
- package/src/behaviors/fan-control/FanControlServer.ts +8 -3
- package/src/behaviors/general-commissioning/GeneralCommissioningInterface.ts +16 -13
- package/src/behaviors/group-key-management/GroupKeyManagementInterface.ts +3 -3
- package/src/behaviors/icd-management/IcdManagementInterface.ts +40 -4
- package/src/behaviors/index.ts +1 -5
- package/src/behaviors/joint-fabric-administrator/JointFabricAdministratorBehavior.ts +27 -0
- package/src/behaviors/joint-fabric-administrator/JointFabricAdministratorClient.ts +15 -0
- package/src/behaviors/joint-fabric-administrator/JointFabricAdministratorInterface.ts +94 -0
- package/src/behaviors/{joint-fabric-pki/JointFabricPkiServer.ts → joint-fabric-administrator/JointFabricAdministratorServer.ts} +3 -3
- package/src/behaviors/joint-fabric-administrator/index.ts +12 -0
- package/src/behaviors/joint-fabric-datastore/JointFabricDatastoreInterface.ts +555 -40
- package/src/behaviors/media-playback/MediaPlaybackInterface.ts +27 -2
- package/src/behaviors/network-commissioning/NetworkCommissioningInterface.ts +28 -14
- package/src/behaviors/operational-credentials/OperationalCredentialsInterface.ts +108 -9
- package/src/behaviors/operational-credentials/OperationalCredentialsServer.ts +1 -1
- package/src/behaviors/service-area/ServiceAreaInterface.ts +0 -3
- package/src/behaviors/software-diagnostics/SoftwareDiagnosticsInterface.ts +3 -1
- package/src/behaviors/switch/SwitchServer.ts +4 -0
- package/src/behaviors/temperature-control/TemperatureControlInterface.ts +2 -0
- package/src/behaviors/thermostat-user-interface-configuration/ThermostatUserInterfaceConfigurationServer.ts +21 -1
- package/src/behaviors/thread-network-diagnostics/ThreadNetworkDiagnosticsInterface.ts +3 -2
- package/src/behaviors/time-synchronization/TimeSynchronizationInterface.ts +10 -6
- package/src/behaviors/unit-localization/UnitLocalizationServer.ts +6 -0
- package/src/behaviors/wi-fi-network-diagnostics/WiFiNetworkDiagnosticsInterface.ts +2 -2
- package/src/behaviors/window-covering/WindowCoveringInterface.ts +18 -0
- package/src/devices/basic-video-player.ts +2 -2
- package/src/devices/casting-video-player.ts +2 -2
- package/src/devices/color-temperature-light.ts +14 -13
- package/src/devices/control-bridge.ts +11 -11
- package/src/devices/cook-surface.ts +3 -3
- package/src/devices/dimmable-light.ts +13 -12
- package/src/devices/dimmable-plug-in-unit.ts +25 -13
- package/src/devices/dishwasher.ts +4 -3
- package/src/devices/extended-color-light.ts +14 -13
- package/src/devices/index.ts +1 -0
- package/src/devices/laundry-dryer.ts +4 -3
- package/src/devices/laundry-washer.ts +4 -3
- package/src/devices/microwave-oven.ts +2 -2
- package/src/devices/mounted-dimmable-load-control.ts +30 -16
- package/src/devices/mounted-on-off-control.ts +33 -12
- package/src/devices/network-infrastructure-manager.ts +19 -6
- package/src/devices/on-off-light.ts +18 -9
- package/src/devices/on-off-plug-in-unit.ts +30 -10
- package/src/devices/robotic-vacuum-cleaner.ts +4 -3
- package/src/devices/temperature-controlled-cabinet.ts +6 -5
- package/src/devices/thermostat-controller.ts +72 -0
- package/src/devices/window-covering-controller.ts +1 -1
- package/src/devices/window-covering.ts +1 -1
- package/src/endpoints/joint-fabric-administrator.ts +13 -8
- package/src/tags/AreaNamespaceTag.ts +104 -68
- package/src/tags/ClosureTag.ts +7 -0
- package/src/tags/CompassDirectionTag.ts +4 -4
- package/src/tags/CompassLocationTag.ts +4 -4
- package/src/tags/LandmarkNamespaceTag.ts +39 -24
- package/src/tags/LaundryTag.ts +3 -3
- package/src/tags/LocationTag.ts +7 -2
- package/src/tags/NumberTag.ts +21 -1
- package/src/tags/PositionTag.ts +3 -0
- package/src/tags/RelativePositionTag.ts +2 -2
- package/src/tags/SwitchesTag.ts +22 -4
- package/dist/cjs/behaviors/ballast-configuration/BallastConfigurationBehavior.d.ts +0 -26
- package/dist/cjs/behaviors/ballast-configuration/BallastConfigurationBehavior.d.ts.map +0 -1
- package/dist/cjs/behaviors/ballast-configuration/BallastConfigurationBehavior.js +0 -34
- package/dist/cjs/behaviors/ballast-configuration/BallastConfigurationBehavior.js.map +0 -6
- package/dist/cjs/behaviors/ballast-configuration/BallastConfigurationClient.d.ts +0 -15
- package/dist/cjs/behaviors/ballast-configuration/BallastConfigurationClient.d.ts.map +0 -1
- package/dist/cjs/behaviors/ballast-configuration/BallastConfigurationClient.js +0 -33
- package/dist/cjs/behaviors/ballast-configuration/BallastConfigurationClient.js.map +0 -6
- package/dist/cjs/behaviors/ballast-configuration/BallastConfigurationServer.d.ts +0 -13
- package/dist/cjs/behaviors/ballast-configuration/BallastConfigurationServer.d.ts.map +0 -1
- package/dist/cjs/behaviors/ballast-configuration/BallastConfigurationServer.js.map +0 -6
- package/dist/cjs/behaviors/ballast-configuration/index.d.ts +0 -10
- package/dist/cjs/behaviors/ballast-configuration/index.d.ts.map +0 -1
- package/dist/cjs/behaviors/ballast-configuration/index.js +0 -26
- package/dist/cjs/behaviors/ballast-configuration/index.js.map +0 -6
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiBehavior.d.ts +0 -31
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiBehavior.d.ts.map +0 -1
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiBehavior.js.map +0 -6
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiClient.d.ts +0 -15
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiClient.d.ts.map +0 -1
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiClient.js +0 -33
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiClient.js.map +0 -6
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiInterface.d.ts +0 -36
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiInterface.d.ts.map +0 -1
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiInterface.js +0 -22
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiInterface.js.map +0 -6
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiServer.d.ts +0 -13
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiServer.d.ts.map +0 -1
- package/dist/cjs/behaviors/joint-fabric-pki/JointFabricPkiServer.js.map +0 -6
- package/dist/cjs/behaviors/joint-fabric-pki/index.d.ts +0 -11
- package/dist/cjs/behaviors/joint-fabric-pki/index.d.ts.map +0 -1
- package/dist/cjs/behaviors/joint-fabric-pki/index.js.map +0 -6
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationBehavior.d.ts +0 -26
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationBehavior.d.ts.map +0 -1
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationBehavior.js +0 -34
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationBehavior.js.map +0 -6
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationClient.d.ts +0 -15
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationClient.d.ts.map +0 -1
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationClient.js +0 -33
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationClient.js.map +0 -6
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationServer.d.ts +0 -13
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationServer.d.ts.map +0 -1
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationServer.js +0 -32
- package/dist/cjs/behaviors/proxy-configuration/ProxyConfigurationServer.js.map +0 -6
- package/dist/cjs/behaviors/proxy-configuration/index.d.ts +0 -10
- package/dist/cjs/behaviors/proxy-configuration/index.d.ts.map +0 -1
- package/dist/cjs/behaviors/proxy-configuration/index.js +0 -26
- package/dist/cjs/behaviors/proxy-configuration/index.js.map +0 -6
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryBehavior.d.ts +0 -31
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryBehavior.d.ts.map +0 -1
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryBehavior.js +0 -34
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryBehavior.js.map +0 -6
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryClient.d.ts +0 -15
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryClient.d.ts.map +0 -1
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryClient.js +0 -33
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryClient.js.map +0 -6
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryInterface.d.ts +0 -26
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryInterface.d.ts.map +0 -1
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryInterface.js.map +0 -6
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryServer.d.ts +0 -13
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryServer.d.ts.map +0 -1
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryServer.js +0 -32
- package/dist/cjs/behaviors/proxy-discovery/ProxyDiscoveryServer.js.map +0 -6
- package/dist/cjs/behaviors/proxy-discovery/index.d.ts +0 -11
- package/dist/cjs/behaviors/proxy-discovery/index.d.ts.map +0 -1
- package/dist/cjs/behaviors/proxy-discovery/index.js +0 -27
- package/dist/cjs/behaviors/proxy-discovery/index.js.map +0 -6
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesBehavior.d.ts +0 -31
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesBehavior.d.ts.map +0 -1
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesBehavior.js +0 -34
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesBehavior.js.map +0 -6
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesClient.d.ts +0 -15
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesClient.d.ts.map +0 -1
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesClient.js +0 -33
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesClient.js.map +0 -6
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesInterface.d.ts +0 -26
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesInterface.d.ts.map +0 -1
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesInterface.js +0 -22
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesInterface.js.map +0 -6
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesServer.d.ts +0 -13
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesServer.d.ts.map +0 -1
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesServer.js +0 -32
- package/dist/cjs/behaviors/valid-proxies/ValidProxiesServer.js.map +0 -6
- package/dist/cjs/behaviors/valid-proxies/index.d.ts +0 -11
- package/dist/cjs/behaviors/valid-proxies/index.d.ts.map +0 -1
- package/dist/cjs/behaviors/valid-proxies/index.js +0 -27
- package/dist/cjs/behaviors/valid-proxies/index.js.map +0 -6
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationBehavior.d.ts +0 -26
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationBehavior.d.ts.map +0 -1
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationBehavior.js +0 -14
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationBehavior.js.map +0 -6
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationClient.d.ts +0 -15
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationClient.d.ts.map +0 -1
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationClient.js +0 -13
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationClient.js.map +0 -6
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationServer.d.ts +0 -13
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationServer.d.ts.map +0 -1
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationServer.js +0 -12
- package/dist/esm/behaviors/ballast-configuration/BallastConfigurationServer.js.map +0 -6
- package/dist/esm/behaviors/ballast-configuration/index.d.ts +0 -10
- package/dist/esm/behaviors/ballast-configuration/index.d.ts.map +0 -1
- package/dist/esm/behaviors/ballast-configuration/index.js +0 -9
- package/dist/esm/behaviors/ballast-configuration/index.js.map +0 -6
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiBehavior.d.ts +0 -31
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiBehavior.d.ts.map +0 -1
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiBehavior.js +0 -14
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiBehavior.js.map +0 -6
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiClient.d.ts +0 -15
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiClient.d.ts.map +0 -1
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiClient.js +0 -13
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiClient.js.map +0 -6
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiInterface.d.ts +0 -36
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiInterface.d.ts.map +0 -1
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiInterface.js +0 -6
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiInterface.js.map +0 -6
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiServer.d.ts +0 -13
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiServer.d.ts.map +0 -1
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiServer.js +0 -12
- package/dist/esm/behaviors/joint-fabric-pki/JointFabricPkiServer.js.map +0 -6
- package/dist/esm/behaviors/joint-fabric-pki/index.d.ts +0 -11
- package/dist/esm/behaviors/joint-fabric-pki/index.d.ts.map +0 -1
- package/dist/esm/behaviors/joint-fabric-pki/index.js +0 -10
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationBehavior.d.ts +0 -26
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationBehavior.d.ts.map +0 -1
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationBehavior.js +0 -14
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationBehavior.js.map +0 -6
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationClient.d.ts +0 -15
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationClient.d.ts.map +0 -1
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationClient.js +0 -13
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationClient.js.map +0 -6
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationServer.d.ts +0 -13
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationServer.d.ts.map +0 -1
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationServer.js +0 -12
- package/dist/esm/behaviors/proxy-configuration/ProxyConfigurationServer.js.map +0 -6
- package/dist/esm/behaviors/proxy-configuration/index.d.ts +0 -10
- package/dist/esm/behaviors/proxy-configuration/index.d.ts.map +0 -1
- package/dist/esm/behaviors/proxy-configuration/index.js +0 -9
- package/dist/esm/behaviors/proxy-configuration/index.js.map +0 -6
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryBehavior.d.ts +0 -31
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryBehavior.d.ts.map +0 -1
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryBehavior.js +0 -14
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryBehavior.js.map +0 -6
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryClient.d.ts +0 -15
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryClient.d.ts.map +0 -1
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryClient.js +0 -13
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryClient.js.map +0 -6
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryInterface.d.ts +0 -26
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryInterface.d.ts.map +0 -1
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryInterface.js +0 -6
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryInterface.js.map +0 -6
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryServer.d.ts +0 -13
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryServer.d.ts.map +0 -1
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryServer.js +0 -12
- package/dist/esm/behaviors/proxy-discovery/ProxyDiscoveryServer.js.map +0 -6
- package/dist/esm/behaviors/proxy-discovery/index.d.ts +0 -11
- package/dist/esm/behaviors/proxy-discovery/index.d.ts.map +0 -1
- package/dist/esm/behaviors/proxy-discovery/index.js +0 -10
- package/dist/esm/behaviors/proxy-discovery/index.js.map +0 -6
- package/dist/esm/behaviors/valid-proxies/ValidProxiesBehavior.d.ts +0 -31
- package/dist/esm/behaviors/valid-proxies/ValidProxiesBehavior.d.ts.map +0 -1
- package/dist/esm/behaviors/valid-proxies/ValidProxiesBehavior.js +0 -14
- package/dist/esm/behaviors/valid-proxies/ValidProxiesBehavior.js.map +0 -6
- package/dist/esm/behaviors/valid-proxies/ValidProxiesClient.d.ts +0 -15
- package/dist/esm/behaviors/valid-proxies/ValidProxiesClient.d.ts.map +0 -1
- package/dist/esm/behaviors/valid-proxies/ValidProxiesClient.js +0 -13
- package/dist/esm/behaviors/valid-proxies/ValidProxiesClient.js.map +0 -6
- package/dist/esm/behaviors/valid-proxies/ValidProxiesInterface.d.ts +0 -26
- package/dist/esm/behaviors/valid-proxies/ValidProxiesInterface.d.ts.map +0 -1
- package/dist/esm/behaviors/valid-proxies/ValidProxiesInterface.js.map +0 -6
- package/dist/esm/behaviors/valid-proxies/ValidProxiesServer.d.ts +0 -13
- package/dist/esm/behaviors/valid-proxies/ValidProxiesServer.d.ts.map +0 -1
- package/dist/esm/behaviors/valid-proxies/ValidProxiesServer.js +0 -12
- package/dist/esm/behaviors/valid-proxies/ValidProxiesServer.js.map +0 -6
- package/dist/esm/behaviors/valid-proxies/index.d.ts +0 -11
- package/dist/esm/behaviors/valid-proxies/index.d.ts.map +0 -1
- package/dist/esm/behaviors/valid-proxies/index.js +0 -10
- package/dist/esm/behaviors/valid-proxies/index.js.map +0 -6
- package/src/behaviors/ballast-configuration/BallastConfigurationBehavior.ts +0 -24
- package/src/behaviors/ballast-configuration/BallastConfigurationClient.ts +0 -15
- package/src/behaviors/ballast-configuration/BallastConfigurationServer.ts +0 -14
- package/src/behaviors/ballast-configuration/index.ts +0 -11
- package/src/behaviors/joint-fabric-pki/JointFabricPkiBehavior.ts +0 -26
- package/src/behaviors/joint-fabric-pki/JointFabricPkiClient.ts +0 -15
- package/src/behaviors/joint-fabric-pki/JointFabricPkiInterface.ts +0 -36
- package/src/behaviors/joint-fabric-pki/index.ts +0 -12
- package/src/behaviors/proxy-configuration/ProxyConfigurationBehavior.ts +0 -24
- package/src/behaviors/proxy-configuration/ProxyConfigurationClient.ts +0 -15
- package/src/behaviors/proxy-configuration/ProxyConfigurationServer.ts +0 -14
- package/src/behaviors/proxy-configuration/index.ts +0 -11
- package/src/behaviors/proxy-discovery/ProxyDiscoveryBehavior.ts +0 -26
- package/src/behaviors/proxy-discovery/ProxyDiscoveryClient.ts +0 -15
- package/src/behaviors/proxy-discovery/ProxyDiscoveryInterface.ts +0 -24
- package/src/behaviors/proxy-discovery/ProxyDiscoveryServer.ts +0 -14
- package/src/behaviors/proxy-discovery/index.ts +0 -12
- package/src/behaviors/valid-proxies/ValidProxiesBehavior.ts +0 -24
- package/src/behaviors/valid-proxies/ValidProxiesClient.ts +0 -15
- package/src/behaviors/valid-proxies/ValidProxiesInterface.ts +0 -24
- package/src/behaviors/valid-proxies/ValidProxiesServer.ts +0 -14
- package/src/behaviors/valid-proxies/index.ts +0 -12
|
@@ -9,6 +9,8 @@ import { camelize, EventEmitter, GeneratedClass, ImplementationError, Observable
|
|
|
9
9
|
import {
|
|
10
10
|
ClassSemantics,
|
|
11
11
|
ClusterModel,
|
|
12
|
+
Conformance,
|
|
13
|
+
DecodedBitmap,
|
|
12
14
|
DefaultValue,
|
|
13
15
|
ElementTag,
|
|
14
16
|
FeatureMap,
|
|
@@ -20,7 +22,7 @@ import {
|
|
|
20
22
|
ValueModel,
|
|
21
23
|
} from "#model";
|
|
22
24
|
import { Val } from "#protocol";
|
|
23
|
-
import {
|
|
25
|
+
import { ClusterType } from "#types";
|
|
24
26
|
import { Behavior } from "../Behavior.js";
|
|
25
27
|
import { DerivedState } from "../state/StateType.js";
|
|
26
28
|
import type { ClusterBehavior } from "./ClusterBehavior.js";
|
|
@@ -82,8 +84,7 @@ export function createType<const C extends ClusterType>(
|
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
const
|
|
86
|
-
const scope = Scope(schema);
|
|
87
|
+
const context = DerivationContext(schema, cluster, base);
|
|
87
88
|
|
|
88
89
|
const type = GeneratedClass({
|
|
89
90
|
name,
|
|
@@ -93,9 +94,9 @@ export function createType<const C extends ClusterType>(
|
|
|
93
94
|
// namespace overrides. If we instead override as static properties then we lose the automatic interface type.
|
|
94
95
|
// So just publish as static properties.
|
|
95
96
|
staticProperties: {
|
|
96
|
-
State: createDerivedState(
|
|
97
|
+
State: createDerivedState(context),
|
|
97
98
|
|
|
98
|
-
Events: createDerivedEvents(
|
|
99
|
+
Events: createDerivedEvents(context),
|
|
99
100
|
},
|
|
100
101
|
|
|
101
102
|
staticDescriptors: {
|
|
@@ -140,18 +141,52 @@ export type ExtensionInterfaceOf<B extends Behavior.Type> = B extends { Extensio
|
|
|
140
141
|
? I
|
|
141
142
|
: {};
|
|
142
143
|
|
|
144
|
+
interface DerivationContext {
|
|
145
|
+
cluster: ClusterType;
|
|
146
|
+
scope: Scope;
|
|
147
|
+
featuresAvailable: FeatureSet;
|
|
148
|
+
featuresSupported: FeatureSet;
|
|
149
|
+
base: Behavior.Type;
|
|
150
|
+
newProps: Record<string, ValueModel>;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function DerivationContext(schema: Schema, cluster: ClusterType, base: Behavior.Type): DerivationContext {
|
|
154
|
+
const scope = Scope(schema);
|
|
155
|
+
// Determine the set of features so we can test element applicability
|
|
156
|
+
let featuresAvailable, featuresSupported;
|
|
157
|
+
if (scope.owner instanceof ClusterModel) {
|
|
158
|
+
const normalized = FeatureSet.normalize(scope.owner.featureMap, scope.owner.supportedFeatures);
|
|
159
|
+
featuresAvailable = normalized.featuresAvailable;
|
|
160
|
+
featuresSupported = normalized.featuresSupported;
|
|
161
|
+
} else {
|
|
162
|
+
featuresAvailable = new FeatureSet();
|
|
163
|
+
featuresSupported = new FeatureSet();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return {
|
|
167
|
+
cluster,
|
|
168
|
+
scope: Scope(schema),
|
|
169
|
+
featuresAvailable,
|
|
170
|
+
featuresSupported,
|
|
171
|
+
base,
|
|
172
|
+
newProps: {},
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
143
176
|
/**
|
|
144
177
|
* Create a new state subclass that inherits relevant default values from a base Behavior.Type and adds new default
|
|
145
178
|
* values from cluster attributes.
|
|
146
179
|
*
|
|
147
180
|
* Note - we only use the cluster here for default values
|
|
148
181
|
*/
|
|
149
|
-
function createDerivedState(
|
|
150
|
-
cluster
|
|
151
|
-
scope
|
|
152
|
-
base
|
|
153
|
-
newProps
|
|
154
|
-
|
|
182
|
+
function createDerivedState({
|
|
183
|
+
cluster,
|
|
184
|
+
scope,
|
|
185
|
+
base,
|
|
186
|
+
newProps,
|
|
187
|
+
featuresAvailable,
|
|
188
|
+
featuresSupported,
|
|
189
|
+
}: DerivationContext) {
|
|
155
190
|
const BaseState = base["State"];
|
|
156
191
|
if (BaseState === undefined) {
|
|
157
192
|
throw new ImplementationError(`No state class defined for behavior class ${base.name}`);
|
|
@@ -160,17 +195,6 @@ function createDerivedState(
|
|
|
160
195
|
const oldDefaults = new BaseState() as Record<string, any>;
|
|
161
196
|
let knownDefaults = (BaseState as HasKnownDefaults)[KNOWN_DEFAULTS];
|
|
162
197
|
|
|
163
|
-
// Determine the set of features so we can test attribute applicability
|
|
164
|
-
let featuresAvailable, featuresSupported;
|
|
165
|
-
if (scope.owner instanceof ClusterModel) {
|
|
166
|
-
const normalized = FeatureSet.normalize(scope.owner.featureMap, scope.owner.supportedFeatures);
|
|
167
|
-
featuresAvailable = normalized.featuresAvailable;
|
|
168
|
-
featuresSupported = normalized.featuresSupported;
|
|
169
|
-
} else {
|
|
170
|
-
featuresAvailable = new FeatureSet();
|
|
171
|
-
featuresSupported = new FeatureSet();
|
|
172
|
-
}
|
|
173
|
-
|
|
174
198
|
// Index schema members by name
|
|
175
199
|
const props = {} as Record<string, ValueModel[]>;
|
|
176
200
|
for (const member of scope.membersOf(scope.owner, { conformance: "deconflicted" })) {
|
|
@@ -191,21 +215,22 @@ function createDerivedState(
|
|
|
191
215
|
let propSchema: ValueModel | undefined;
|
|
192
216
|
|
|
193
217
|
// Determine whether the attribute applies
|
|
218
|
+
let applicability;
|
|
194
219
|
for (const attr of attrs) {
|
|
195
|
-
|
|
220
|
+
applicability = attr.effectiveConformance.applicabilityOf(featuresAvailable, featuresSupported);
|
|
196
221
|
|
|
197
222
|
// Inapplicable; ignore
|
|
198
223
|
if (!applicability) {
|
|
199
224
|
continue;
|
|
200
225
|
}
|
|
201
226
|
|
|
202
|
-
//
|
|
227
|
+
// Use this model for the property
|
|
203
228
|
propSchema = attr;
|
|
204
229
|
break;
|
|
205
230
|
}
|
|
206
231
|
|
|
207
232
|
// If the attribute doesn't apply, erase any previous default unless conditionally applicable
|
|
208
|
-
if (propSchema
|
|
233
|
+
if (!propSchema) {
|
|
209
234
|
// Inapplicable; ensure no default is present
|
|
210
235
|
if (oldDefaults[name] !== undefined) {
|
|
211
236
|
// Save the default value so we can recreate it if a future derivative re-enables this element
|
|
@@ -234,12 +259,13 @@ function createDerivedState(
|
|
|
234
259
|
continue;
|
|
235
260
|
}
|
|
236
261
|
|
|
237
|
-
// Make sure a default value is present
|
|
262
|
+
// Make sure a default value is present if mandatory or marked as supported (note that the default value may
|
|
263
|
+
// be "undefined" to indicate that an attribute is available optionally)
|
|
238
264
|
defaults[name] = selectDefaultValue(
|
|
239
265
|
scope,
|
|
240
266
|
oldDefaults[name] === undefined ? knownDefaults?.[name] : oldDefaults[name],
|
|
241
|
-
attribute,
|
|
242
267
|
propSchema,
|
|
268
|
+
applicability,
|
|
243
269
|
);
|
|
244
270
|
}
|
|
245
271
|
|
|
@@ -259,19 +285,14 @@ function createDerivedState(
|
|
|
259
285
|
/**
|
|
260
286
|
* Extend events with additional implementations.
|
|
261
287
|
*/
|
|
262
|
-
function createDerivedEvents(
|
|
263
|
-
cluster: ClusterType,
|
|
264
|
-
scope: Scope,
|
|
265
|
-
base: Behavior.Type,
|
|
266
|
-
newProps: Record<string, ValueModel>,
|
|
267
|
-
) {
|
|
288
|
+
function createDerivedEvents({ scope, base, newProps, featuresAvailable, featuresSupported }: DerivationContext) {
|
|
268
289
|
const instanceDescriptors = {} as PropertyDescriptorMap;
|
|
269
290
|
|
|
270
291
|
const baseInstance = new base.Events() as unknown as Record<string, unknown>;
|
|
271
292
|
|
|
272
293
|
const eventNames = new Set<string>();
|
|
273
294
|
|
|
274
|
-
// Add
|
|
295
|
+
// Add events that are mandatory or marked as supported and not present in the base class
|
|
275
296
|
const applicableClusterEvents = new Set();
|
|
276
297
|
for (const event of scope.membersOf(scope.owner as Schema, {
|
|
277
298
|
conformance: "conformant",
|
|
@@ -279,7 +300,12 @@ function createDerivedEvents(
|
|
|
279
300
|
})) {
|
|
280
301
|
const name = camelize(event.name);
|
|
281
302
|
applicableClusterEvents.add(name);
|
|
282
|
-
if (
|
|
303
|
+
if (
|
|
304
|
+
(event.conformance.applicabilityOf(featuresAvailable, featuresSupported) ===
|
|
305
|
+
Conformance.Applicability.Mandatory ||
|
|
306
|
+
event.isSupported) &&
|
|
307
|
+
baseInstance[name] === undefined
|
|
308
|
+
) {
|
|
283
309
|
eventNames.add(name);
|
|
284
310
|
instanceDescriptors[name] = createEventDescriptor(
|
|
285
311
|
name,
|
|
@@ -312,7 +338,7 @@ function createDerivedEvents(
|
|
|
312
338
|
// TODO - if necessary, mask out (set to undefined) events present in base cluster but not derived cluster
|
|
313
339
|
|
|
314
340
|
return GeneratedClass({
|
|
315
|
-
name: `${
|
|
341
|
+
name: `${base.name}$Events`,
|
|
316
342
|
base: base.Events,
|
|
317
343
|
|
|
318
344
|
instanceDescriptors,
|
|
@@ -413,43 +439,43 @@ function createDefaultCommandDescriptors(cluster: ClusterType, base: Behavior.Ty
|
|
|
413
439
|
return result;
|
|
414
440
|
}
|
|
415
441
|
|
|
416
|
-
function selectDefaultValue(
|
|
442
|
+
function selectDefaultValue(
|
|
443
|
+
scope: Scope,
|
|
444
|
+
oldDefault: Val,
|
|
445
|
+
member: ValueModel,
|
|
446
|
+
applicability?: Conformance.Applicability,
|
|
447
|
+
) {
|
|
417
448
|
if (oldDefault !== undefined) {
|
|
418
449
|
return oldDefault;
|
|
419
450
|
}
|
|
420
451
|
|
|
421
|
-
//
|
|
422
|
-
if (
|
|
452
|
+
// No default unless mandatory or explicitly marked as implemented
|
|
453
|
+
if (applicability !== Conformance.Applicability.Mandatory && !member.isSupported) {
|
|
423
454
|
return;
|
|
424
455
|
}
|
|
425
456
|
|
|
426
|
-
//
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
return;
|
|
457
|
+
// If there's an explicit default, use that
|
|
458
|
+
const effectiveDefault = DefaultValue(scope, member);
|
|
459
|
+
if (effectiveDefault !== undefined) {
|
|
460
|
+
if (member.effectiveMetatype === "bitmap") {
|
|
461
|
+
return DecodedBitmap(member, effectiveDefault);
|
|
462
|
+
}
|
|
463
|
+
return effectiveDefault;
|
|
434
464
|
}
|
|
435
465
|
|
|
436
|
-
|
|
466
|
+
// Default for nullable is null
|
|
467
|
+
if (member.nullable) {
|
|
437
468
|
return null;
|
|
438
469
|
}
|
|
439
470
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
471
|
+
switch (member.effectiveMetatype) {
|
|
472
|
+
case Metatype.integer:
|
|
473
|
+
case Metatype.float:
|
|
474
|
+
return 0;
|
|
444
475
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
const conformance = schemaProp.effectiveConformance;
|
|
448
|
-
if (!conformance.isMandatory) {
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
476
|
+
case Metatype.boolean:
|
|
477
|
+
return false;
|
|
451
478
|
|
|
452
|
-
switch (schemaProp.effectiveMetatype) {
|
|
453
479
|
case Metatype.bitmap:
|
|
454
480
|
case Metatype.object:
|
|
455
481
|
// This is not a very good default but it is better than undefined
|
|
@@ -187,7 +187,7 @@ export function astToFunction(schema: ValueModel, supervisor: RootSupervisor): V
|
|
|
187
187
|
case Conformance.Special.Choice:
|
|
188
188
|
return createChoice(ast.param);
|
|
189
189
|
|
|
190
|
-
case Conformance.Special.
|
|
190
|
+
case Conformance.Special.Otherwise:
|
|
191
191
|
return createGroup(ast.param);
|
|
192
192
|
|
|
193
193
|
case Conformance.Special.Name:
|
|
@@ -281,7 +281,7 @@ export function astToFunction(schema: ValueModel, supervisor: RootSupervisor): V
|
|
|
281
281
|
* A "group" node is a list or the entries in an optional ([ ... ]) clause. The resulting node is the value of the
|
|
282
282
|
* first list member that does not report as Code.Nonconformant.
|
|
283
283
|
*/
|
|
284
|
-
function createGroup(param: Conformance.Ast.
|
|
284
|
+
function createGroup(param: Conformance.Ast.Otherwise): DynamicNode {
|
|
285
285
|
if (!Array.isArray(param)) {
|
|
286
286
|
throw new SchemaImplementationError(
|
|
287
287
|
DataModelPath(schema.path),
|
|
@@ -627,7 +627,12 @@ export function astToFunction(schema: ValueModel, supervisor: RootSupervisor): V
|
|
|
627
627
|
continue;
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
|
|
630
|
+
// Enum choice indicates support for the value; it should not affect validation
|
|
631
|
+
let ast = member.conformance.ast;
|
|
632
|
+
if (ast.type === Conformance.Special.Choice) {
|
|
633
|
+
ast = ast.param.expr;
|
|
634
|
+
}
|
|
635
|
+
const compiledNode = compile(ast);
|
|
631
636
|
|
|
632
637
|
let memberValidator: undefined | EnumMemberValidator;
|
|
633
638
|
switch (compiledNode.code) {
|
|
@@ -13,13 +13,13 @@ export namespace AccountLoginInterface {
|
|
|
13
13
|
export interface Base {
|
|
14
14
|
/**
|
|
15
15
|
* The purpose of this command is to determine if the active user account of the given Content App matches the
|
|
16
|
-
* active user account of a given Commissionee, and when it does, return a Setup PIN
|
|
16
|
+
* active user account of a given Commissionee, and when it does, return a Setup PIN which can be used for
|
|
17
17
|
* password-authenticated session establishment (PASE) with the Commissionee.
|
|
18
18
|
*
|
|
19
19
|
* For example, a Video Player with a Content App Platform may invoke this command on one of its Content App
|
|
20
20
|
* endpoints to facilitate commissioning of a Phone App made by the same vendor as the Content App. If the
|
|
21
|
-
* accounts match, then the Content App may return a
|
|
22
|
-
* commission the Phone App without requiring the user to physically input a
|
|
21
|
+
* accounts match, then the Content App may return a Setup PIN that can be used by the Video Player to
|
|
22
|
+
* commission the Phone App without requiring the user to physically input a Setup PIN.
|
|
23
23
|
*
|
|
24
24
|
* The account match is determined by the Content App using a method which is outside the scope of this
|
|
25
25
|
* specification and will typically involve a central service which is in communication with both the Content
|
|
@@ -45,7 +45,7 @@ export namespace AccountLoginInterface {
|
|
|
45
45
|
* The Setup PIN is a character string so that it can accommodate different future formats, including
|
|
46
46
|
* alpha-numeric encodings. For a Commissionee it shall be populated with the Manual Pairing Code (see Manual
|
|
47
47
|
* Pairing Code section in [MatterCore]) encoded as a string (11 characters) or the Passcode portion of the
|
|
48
|
-
* Manual Pairing Code (when less than 11 characters)
|
|
48
|
+
* Manual Pairing Code (when less than 11 characters).
|
|
49
49
|
*
|
|
50
50
|
* The server shall implement rate limiting to prevent brute force attacks. No more than 10 unique requests in a
|
|
51
51
|
* 10 minute period shall be allowed; a command response status of FAILURE should sent for additional commands
|
|
@@ -60,7 +60,7 @@ export namespace AccountLoginInterface {
|
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* The purpose of this command is to allow the Content App to assume the user account of a given Commissionee by
|
|
63
|
-
* leveraging the Setup PIN
|
|
63
|
+
* leveraging the Setup PIN input by the user during the commissioning process.
|
|
64
64
|
*
|
|
65
65
|
* For example, a Video Player with a Content App Platform may invoke this command on one of its Content App
|
|
66
66
|
* endpoints after the commissioning has completed of a Phone App made by the same vendor as the Content App.
|
|
@@ -87,12 +87,12 @@ export namespace AccountLoginInterface {
|
|
|
87
87
|
*
|
|
88
88
|
* The Setup PIN for a Commissionee may be populated with the Manual Pairing Code encoded as a string of decimal
|
|
89
89
|
* numbers (11 characters) or the Passcode portion of the Manual Pairing Code encoded as a string of decimal
|
|
90
|
-
* numbers (8 characters)
|
|
90
|
+
* numbers (8 characters).
|
|
91
91
|
*
|
|
92
92
|
* The server shall implement rate limiting to prevent brute force attacks. No more than 10 unique requests in a
|
|
93
93
|
* 10 minute period shall be allowed; a command response status of FAILURE should sent for additional commands
|
|
94
94
|
* received within the 10 minute period. Because access to this command is limited to nodes with Admin-level
|
|
95
|
-
* access, and the user is involved when obtaining the
|
|
95
|
+
* access, and the user is involved when obtaining the Setup PIN, there are in place multiple obstacles to
|
|
96
96
|
* successfully mounting a brute force attack. A Content App that supports this command shall ensure that the
|
|
97
97
|
* Temporary Account Identifier used by its clients is not valid for more than 10 minutes.
|
|
98
98
|
*
|
|
@@ -12,6 +12,8 @@ import { Actions } from "#clusters/actions";
|
|
|
12
12
|
export namespace ActionsInterface {
|
|
13
13
|
export interface Base {
|
|
14
14
|
/**
|
|
15
|
+
* This command is used to trigger an instantaneous action.
|
|
16
|
+
*
|
|
15
17
|
* This command triggers an action (state change) on the involved endpoints, in a "fire and forget" manner.
|
|
16
18
|
* Afterwards, the action’s state shall be Inactive.
|
|
17
19
|
*
|
|
@@ -22,6 +24,8 @@ export namespace ActionsInterface {
|
|
|
22
24
|
instantAction(request: Actions.InstantActionRequest): MaybePromise;
|
|
23
25
|
|
|
24
26
|
/**
|
|
27
|
+
* This command is used to trigger an instantaneous action with a transition over a given time.
|
|
28
|
+
*
|
|
25
29
|
* It is recommended that, where possible (e.g., it is not possible for attributes with Boolean data type), a
|
|
26
30
|
* gradual transition SHOULD take place from the old to the new state over this time period. However, the exact
|
|
27
31
|
* transition is manufacturer dependent.
|
|
@@ -37,6 +41,8 @@ export namespace ActionsInterface {
|
|
|
37
41
|
instantActionWithTransition(request: Actions.InstantActionWithTransitionRequest): MaybePromise;
|
|
38
42
|
|
|
39
43
|
/**
|
|
44
|
+
* This command is used to trigger the commencement of an action.
|
|
45
|
+
*
|
|
40
46
|
* This command triggers the commencement of an action on the involved endpoints. Afterwards, the action’s state
|
|
41
47
|
* shall be Active.
|
|
42
48
|
*
|
|
@@ -51,6 +57,8 @@ export namespace ActionsInterface {
|
|
|
51
57
|
startAction(request: Actions.StartActionRequest): MaybePromise;
|
|
52
58
|
|
|
53
59
|
/**
|
|
60
|
+
* This command is used to trigger the commencement of an action with a duration.
|
|
61
|
+
*
|
|
54
62
|
* This command triggers the commencement of an action on the involved endpoints, and shall change the action’s
|
|
55
63
|
* state to Active. After the specified Duration, the action will stop, and the action’s state shall change to
|
|
56
64
|
* Inactive.
|
|
@@ -63,6 +71,8 @@ export namespace ActionsInterface {
|
|
|
63
71
|
startActionWithDuration(request: Actions.StartActionWithDurationRequest): MaybePromise;
|
|
64
72
|
|
|
65
73
|
/**
|
|
74
|
+
* This command is used to stop an action.
|
|
75
|
+
*
|
|
66
76
|
* This command stops the ongoing action on the involved endpoints. Afterwards, the action’s state shall be
|
|
67
77
|
* Inactive.
|
|
68
78
|
*
|
|
@@ -73,6 +83,8 @@ export namespace ActionsInterface {
|
|
|
73
83
|
stopAction(request: Actions.StopActionRequest): MaybePromise;
|
|
74
84
|
|
|
75
85
|
/**
|
|
86
|
+
* This command is used to pause an action.
|
|
87
|
+
*
|
|
76
88
|
* This command pauses an ongoing action, and shall change the action’s state to Paused.
|
|
77
89
|
*
|
|
78
90
|
* Example: pause a dynamic lighting effect (the lights stay at their current color) which was previously
|
|
@@ -83,6 +95,8 @@ export namespace ActionsInterface {
|
|
|
83
95
|
pauseAction(request: Actions.PauseActionRequest): MaybePromise;
|
|
84
96
|
|
|
85
97
|
/**
|
|
98
|
+
* This command is used to pause an action with a duration.
|
|
99
|
+
*
|
|
86
100
|
* This command pauses an ongoing action, and shall change the action’s state to Paused. After the specified
|
|
87
101
|
* Duration, the ongoing action will be automatically resumed. which shall change the action’s state to Active.
|
|
88
102
|
*
|
|
@@ -100,6 +114,8 @@ export namespace ActionsInterface {
|
|
|
100
114
|
pauseActionWithDuration(request: Actions.PauseActionWithDurationRequest): MaybePromise;
|
|
101
115
|
|
|
102
116
|
/**
|
|
117
|
+
* This command is used to resume an action.
|
|
118
|
+
*
|
|
103
119
|
* This command resumes a previously paused action, and shall change the action’s state to Active.
|
|
104
120
|
*
|
|
105
121
|
* The difference between ResumeAction and StartAction is that ResumeAction will continue the action from the
|
|
@@ -113,6 +129,8 @@ export namespace ActionsInterface {
|
|
|
113
129
|
resumeAction(request: Actions.ResumeActionRequest): MaybePromise;
|
|
114
130
|
|
|
115
131
|
/**
|
|
132
|
+
* This command is used to enable an action.
|
|
133
|
+
*
|
|
116
134
|
* This command enables a certain action or automation. Afterwards, the action’s state shall be Active.
|
|
117
135
|
*
|
|
118
136
|
* Example: enable a motion sensor to control the lights in an area.
|
|
@@ -122,6 +140,8 @@ export namespace ActionsInterface {
|
|
|
122
140
|
enableAction(request: Actions.EnableActionRequest): MaybePromise;
|
|
123
141
|
|
|
124
142
|
/**
|
|
143
|
+
* This command is used to enable an action with a duration.
|
|
144
|
+
*
|
|
125
145
|
* This command enables a certain action or automation, and shall change the action’s state to be Active. After
|
|
126
146
|
* the specified Duration, the action or automation will stop, and the action’s state shall change to Disabled.
|
|
127
147
|
*
|
|
@@ -134,6 +154,8 @@ export namespace ActionsInterface {
|
|
|
134
154
|
enableActionWithDuration(request: Actions.EnableActionWithDurationRequest): MaybePromise;
|
|
135
155
|
|
|
136
156
|
/**
|
|
157
|
+
* This command is used to disable an action.
|
|
158
|
+
*
|
|
137
159
|
* This command disables a certain action or automation, and shall change the action’s state to Inactive.
|
|
138
160
|
*
|
|
139
161
|
* Example: disable a motion sensor to no longer control the lights in an area.
|
|
@@ -143,9 +165,12 @@ export namespace ActionsInterface {
|
|
|
143
165
|
disableAction(request: Actions.DisableActionRequest): MaybePromise;
|
|
144
166
|
|
|
145
167
|
/**
|
|
168
|
+
* This command is used to disable an action with a duration.
|
|
169
|
+
*
|
|
146
170
|
* This command disables a certain action or automation, and shall change the action’s state to Disabled. After
|
|
147
171
|
* the specified Duration, the action or automation will re-start, and the action’s state shall change to either
|
|
148
|
-
* Inactive or Active, depending on the actions (see
|
|
172
|
+
* Inactive or Active, depending on the actions (see Section 9.14.8.4, “Example 4: Wake-up routine” and Section
|
|
173
|
+
* 9.14.8.6, “Example 6: Alarm system”).
|
|
149
174
|
*
|
|
150
175
|
* Example: disable a "wakeup" experience for a period of 1 week when going on holiday (to prevent them from
|
|
151
176
|
* turning on in the morning while you’re not at home). After this period, the wakeup experience will control
|
|
@@ -60,7 +60,9 @@ export namespace ApplicationLauncherInterface {
|
|
|
60
60
|
* constraints if any. The Status attribute shall be updated to ActiveHidden or Stopped, depending on the action
|
|
61
61
|
* taken, on the Application Basic cluster of the Endpoint corresponding to the application on which the action
|
|
62
62
|
* was taken. The Status attribute shall be updated on any other application whose Status may have changed as a
|
|
63
|
-
* result of this command.
|
|
63
|
+
* result of this command.
|
|
64
|
+
*
|
|
65
|
+
* This command returns a Launcher Response.
|
|
64
66
|
*
|
|
65
67
|
* @see {@link MatterSpecification.v141.Cluster} § 6.4.7.3
|
|
66
68
|
*/
|
|
@@ -22,6 +22,10 @@ export namespace ChannelInterface {
|
|
|
22
22
|
* This command provides channel up and channel down functionality, but allows channel index jumps of size
|
|
23
23
|
* Count.
|
|
24
24
|
*
|
|
25
|
+
* Jumps are relative to the available list of channels. For example, when the current channel is 100.0 and the
|
|
26
|
+
* list of available channels is [100.0, 200.0, 201.0, 305.1], a SkipChannel command with jump value of 2 shall
|
|
27
|
+
* change the channel to 201.0.
|
|
28
|
+
*
|
|
25
29
|
* When the value of the increase or decrease is larger than the number of channels remaining in the given
|
|
26
30
|
* direction, then the behavior shall be to return to the beginning (or end) of the channel list and continue.
|
|
27
31
|
* For example, if the current channel is at index 0 and count value of -1 is given, then the current channel
|
|
@@ -131,6 +131,10 @@ export namespace ColorControlInterface {
|
|
|
131
131
|
/**
|
|
132
132
|
* This command is provided to allow MoveTo and Step commands to be stopped.
|
|
133
133
|
*
|
|
134
|
+
* NOTE This automatically provides symmetry to the Level Control cluster.
|
|
135
|
+
*
|
|
136
|
+
* NOTE The StopMoveStep command has no effect on an active color loop.
|
|
137
|
+
*
|
|
134
138
|
* @see {@link MatterSpecification.v141.Cluster} § 3.2.8.20
|
|
135
139
|
*/
|
|
136
140
|
stopMoveStep(request: ColorControl.StopMoveStepRequest): MaybePromise;
|
|
@@ -216,11 +216,7 @@ export class ColorControlBaseServer extends ColorControlBase {
|
|
|
216
216
|
* Sets the current color temperature value in Mireds (0..0xFFFF) and converts into Matter number range.
|
|
217
217
|
*/
|
|
218
218
|
set mireds(value: number) {
|
|
219
|
-
this.state.colorTemperatureMireds =
|
|
220
|
-
value,
|
|
221
|
-
this.minimumColorTemperatureMireds,
|
|
222
|
-
this.maximumColorTemperatureMireds,
|
|
223
|
-
);
|
|
219
|
+
this.state.colorTemperatureMireds = this.#cropColorTemperature(value);
|
|
224
220
|
}
|
|
225
221
|
|
|
226
222
|
/** Returns the current color temperature value in Kelvin (from internal Mireds). */
|
|
@@ -380,7 +376,7 @@ export class ColorControlBaseServer extends ColorControlBase {
|
|
|
380
376
|
let targetMiredsValue: number | null;
|
|
381
377
|
switch (startUpMiredsValue) {
|
|
382
378
|
case null:
|
|
383
|
-
targetMiredsValue = currentMiredsValue;
|
|
379
|
+
targetMiredsValue = this.#cropColorTemperature(currentMiredsValue);
|
|
384
380
|
break;
|
|
385
381
|
default:
|
|
386
382
|
targetMiredsValue = startUpMiredsValue;
|
|
@@ -1270,16 +1266,8 @@ export class ColorControlBaseServer extends ColorControlBase {
|
|
|
1270
1266
|
if (colorTemperatureMaximumMireds === 0) {
|
|
1271
1267
|
colorTemperatureMaximumMireds = this.maximumColorTemperatureMireds;
|
|
1272
1268
|
}
|
|
1273
|
-
colorTemperatureMinimumMireds =
|
|
1274
|
-
|
|
1275
|
-
this.minimumColorTemperatureMireds,
|
|
1276
|
-
this.maximumColorTemperatureMireds,
|
|
1277
|
-
);
|
|
1278
|
-
colorTemperatureMaximumMireds = cropValueRange(
|
|
1279
|
-
colorTemperatureMaximumMireds,
|
|
1280
|
-
this.minimumColorTemperatureMireds,
|
|
1281
|
-
this.maximumColorTemperatureMireds,
|
|
1282
|
-
);
|
|
1269
|
+
colorTemperatureMinimumMireds = this.#cropColorTemperature(colorTemperatureMinimumMireds);
|
|
1270
|
+
colorTemperatureMaximumMireds = this.#cropColorTemperature(colorTemperatureMaximumMireds);
|
|
1283
1271
|
|
|
1284
1272
|
return this.moveColorTemperatureLogic(
|
|
1285
1273
|
moveMode,
|
|
@@ -1350,16 +1338,8 @@ export class ColorControlBaseServer extends ColorControlBase {
|
|
|
1350
1338
|
if (colorTemperatureMaximumMireds === 0) {
|
|
1351
1339
|
colorTemperatureMaximumMireds = this.maximumColorTemperatureMireds;
|
|
1352
1340
|
}
|
|
1353
|
-
colorTemperatureMinimumMireds =
|
|
1354
|
-
|
|
1355
|
-
this.minimumColorTemperatureMireds,
|
|
1356
|
-
this.maximumColorTemperatureMireds,
|
|
1357
|
-
);
|
|
1358
|
-
colorTemperatureMaximumMireds = cropValueRange(
|
|
1359
|
-
colorTemperatureMaximumMireds,
|
|
1360
|
-
this.minimumColorTemperatureMireds,
|
|
1361
|
-
this.maximumColorTemperatureMireds,
|
|
1362
|
-
);
|
|
1341
|
+
colorTemperatureMinimumMireds = this.#cropColorTemperature(colorTemperatureMinimumMireds);
|
|
1342
|
+
colorTemperatureMaximumMireds = this.#cropColorTemperature(colorTemperatureMaximumMireds);
|
|
1363
1343
|
|
|
1364
1344
|
return this.stepColorTemperatureLogic(
|
|
1365
1345
|
stepMode,
|
|
@@ -1773,6 +1753,14 @@ export class ColorControlBaseServer extends ColorControlBase {
|
|
|
1773
1753
|
(this.state as any)[fieldName] = cropValueRange(Math.round(value * 65536), MIN_CIE_XY_VALUE, MAX_CIE_XY_VALUE);
|
|
1774
1754
|
}
|
|
1775
1755
|
|
|
1756
|
+
#cropColorTemperature(temperatureMireds: number) {
|
|
1757
|
+
return cropValueRange(
|
|
1758
|
+
temperatureMireds,
|
|
1759
|
+
this.minimumColorTemperatureMireds,
|
|
1760
|
+
this.maximumColorTemperatureMireds,
|
|
1761
|
+
);
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1776
1764
|
override async [Symbol.asyncDispose]() {
|
|
1777
1765
|
if (this.internal.transitions) {
|
|
1778
1766
|
await this.internal.transitions.close();
|
|
@@ -1811,6 +1799,17 @@ export namespace ColorControlBaseServer {
|
|
|
1811
1799
|
*/
|
|
1812
1800
|
transitionStepInterval = Millis(100);
|
|
1813
1801
|
|
|
1802
|
+
// These were the default values specified prior to Matter 1.4.2. We still need default values so using the
|
|
1803
|
+
// previously specified values which are presumably educated logical defaults
|
|
1804
|
+
override currentX = 24939;
|
|
1805
|
+
override currentY = 24701;
|
|
1806
|
+
override colorTemperatureMireds = 250;
|
|
1807
|
+
override enhancedColorMode = ColorControl.EnhancedColorMode.CurrentXAndCurrentY;
|
|
1808
|
+
override colorLoopTime = 25;
|
|
1809
|
+
override colorLoopStartEnhancedHue = 8960;
|
|
1810
|
+
override colorLoopActive = ColorControl.ColorLoopActive.Inactive;
|
|
1811
|
+
override colorLoopDirection = ColorControl.ColorLoopDirection.Increment;
|
|
1812
|
+
|
|
1814
1813
|
[Val.properties](endpoint: Endpoint) {
|
|
1815
1814
|
// Only return remaining time if the attribute is defined in the endpoint
|
|
1816
1815
|
if (
|
|
@@ -108,7 +108,7 @@ export namespace ContentControlInterface {
|
|
|
108
108
|
* The purpose of this command is to specify whether programs with no Content rating must be blocked by this
|
|
109
109
|
* media device.
|
|
110
110
|
*
|
|
111
|
-
* Upon receipt of the UnblockUnratedContent command, the media device shall set the
|
|
111
|
+
* Upon receipt of the UnblockUnratedContent command, the media device shall set the BlockUn rated attribute to
|
|
112
112
|
* FALSE.
|
|
113
113
|
*
|
|
114
114
|
* @see {@link MatterSpecification.v141.Cluster} § 6.13.8.9
|
|
@@ -69,7 +69,7 @@ export namespace DoorLockInterface {
|
|
|
69
69
|
/**
|
|
70
70
|
* Retrieve user.
|
|
71
71
|
*
|
|
72
|
-
* An InvokeResponse command shall be sent with an appropriate error (e.g. FAILURE,
|
|
72
|
+
* An InvokeResponse command shall be sent with an appropriate error (e.g. FAILURE, INVALID_ COMMAND, etc.) as
|
|
73
73
|
* needed otherwise the GetUserResponse Command shall be sent implying a status of SUCCESS.
|
|
74
74
|
*
|
|
75
75
|
* @see {@link MatterSpecification.v141.Cluster} § 5.2.10.33
|
|
@@ -14,10 +14,17 @@ import LockState = DoorLock.LockState;
|
|
|
14
14
|
*/
|
|
15
15
|
export class DoorLockServer extends DoorLockBehavior {
|
|
16
16
|
override initialize(): MaybePromise {
|
|
17
|
-
if (this.state.supportedOperatingModes.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
if (!Object.values(this.state.supportedOperatingModes).some(v => v)) {
|
|
18
|
+
// Empty operating modes; default to mandatory ones (note that values are inverted so true indicates not
|
|
19
|
+
// supported)
|
|
20
|
+
this.state.supportedOperatingModes = { vacation: true, privacy: true, passage: true, alwaysSet: 2047 };
|
|
21
|
+
} else {
|
|
22
|
+
// Warn if it looks like the confusing Matter semantics have confused someone
|
|
23
|
+
if (this.state.supportedOperatingModes.alwaysSet !== 2047) {
|
|
24
|
+
throw new ImplementationError(
|
|
25
|
+
`DoorLockServer: The "alwaysSet" bit-range in supportedOperatingModes must be set. Please check the specification about the meaning of this field because bits are inverted here!`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
30
|
|
|
@@ -11,6 +11,8 @@ import { MaybePromise } from "#general";
|
|
|
11
11
|
export namespace EthernetNetworkDiagnosticsInterface {
|
|
12
12
|
export interface PacketCountsOrErrorCounts {
|
|
13
13
|
/**
|
|
14
|
+
* This command is used to reset the count attributes.
|
|
15
|
+
*
|
|
14
16
|
* Reception of this command shall reset the following attributes to 0:
|
|
15
17
|
*
|
|
16
18
|
* • PacketRxCount
|
|
@@ -23,8 +25,6 @@ export namespace EthernetNetworkDiagnosticsInterface {
|
|
|
23
25
|
*
|
|
24
26
|
* • OverrunCount
|
|
25
27
|
*
|
|
26
|
-
* This command has no associated data.
|
|
27
|
-
*
|
|
28
28
|
* @see {@link MatterSpecification.v141.Core} § 11.16.7.1
|
|
29
29
|
*/
|
|
30
30
|
resetCounts(): MaybePromise;
|