@matter/node 0.16.0-alpha.0-20251023-bb23617e5 → 0.16.0-alpha.0-20251029-bd92894d4
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/Behavior.d.ts +1 -0
- package/dist/cjs/behavior/Behavior.d.ts.map +1 -1
- package/dist/cjs/behavior/Behavior.js +5 -0
- package/dist/cjs/behavior/Behavior.js.map +1 -1
- 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/internal/BehaviorBacking.js +1 -1
- package/dist/cjs/behavior/internal/BehaviorBacking.js.map +1 -1
- package/dist/cjs/behavior/state/managed/Datasource.d.ts +4 -5
- package/dist/cjs/behavior/state/managed/Datasource.d.ts.map +1 -1
- package/dist/cjs/behavior/state/managed/Datasource.js +6 -2
- package/dist/cjs/behavior/state/managed/Datasource.js.map +1 -1
- package/dist/cjs/behavior/state/managed/ManagedReference.d.ts +3 -2
- package/dist/cjs/behavior/state/managed/ManagedReference.d.ts.map +1 -1
- package/dist/cjs/behavior/state/managed/ManagedReference.js +65 -20
- package/dist/cjs/behavior/state/managed/ManagedReference.js.map +1 -1
- package/dist/cjs/behavior/state/managed/values/ListManager.js +2 -1
- package/dist/cjs/behavior/state/managed/values/ListManager.js.map +1 -1
- package/dist/cjs/behavior/state/managed/values/StructManager.js +9 -1
- package/dist/cjs/behavior/state/managed/values/StructManager.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/access-control/AccessControlServer.d.ts.map +1 -1
- package/dist/cjs/behaviors/access-control/AccessControlServer.js +3 -3
- package/dist/cjs/behaviors/access-control/AccessControlServer.js.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/general-diagnostics/GeneralDiagnosticsServer.d.ts.map +1 -1
- package/dist/cjs/behaviors/general-diagnostics/GeneralDiagnosticsServer.js +3 -9
- package/dist/cjs/behaviors/general-diagnostics/GeneralDiagnosticsServer.js.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/service-area/ServiceAreaServer.js +2 -2
- package/dist/cjs/behaviors/service-area/ServiceAreaServer.js.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/AtomicWriteHandler.d.ts +58 -0
- package/dist/cjs/behaviors/thermostat/AtomicWriteHandler.d.ts.map +1 -0
- package/dist/cjs/behaviors/thermostat/AtomicWriteHandler.js +306 -0
- package/dist/cjs/behaviors/thermostat/AtomicWriteHandler.js.map +6 -0
- package/dist/cjs/behaviors/thermostat/AtomicWriteState.d.ts +33 -0
- package/dist/cjs/behaviors/thermostat/AtomicWriteState.d.ts.map +1 -0
- package/dist/cjs/behaviors/thermostat/AtomicWriteState.js +86 -0
- package/dist/cjs/behaviors/thermostat/AtomicWriteState.js.map +6 -0
- package/dist/cjs/behaviors/thermostat/ThermostatBehavior.d.ts +13 -1
- package/dist/cjs/behaviors/thermostat/ThermostatBehavior.d.ts.map +1 -1
- package/dist/cjs/behaviors/thermostat/ThermostatInterface.d.ts +1 -0
- package/dist/cjs/behaviors/thermostat/ThermostatInterface.d.ts.map +1 -1
- package/dist/cjs/behaviors/thermostat/ThermostatServer.d.ts +894 -3
- package/dist/cjs/behaviors/thermostat/ThermostatServer.d.ts.map +1 -1
- package/dist/cjs/behaviors/thermostat/ThermostatServer.js +1216 -1
- package/dist/cjs/behaviors/thermostat/ThermostatServer.js.map +2 -2
- 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 +26 -2
- package/dist/cjs/devices/water-heater.d.ts.map +1 -1
- 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/endpoint/Endpoint.d.ts +36 -2
- package/dist/cjs/endpoint/Endpoint.d.ts.map +1 -1
- package/dist/cjs/endpoint/Endpoint.js +17 -14
- package/dist/cjs/endpoint/Endpoint.js.map +1 -1
- package/dist/cjs/endpoint/properties/EndpointContainer.d.ts +1 -0
- package/dist/cjs/endpoint/properties/EndpointContainer.d.ts.map +1 -1
- package/dist/cjs/endpoint/properties/EndpointContainer.js +3 -0
- package/dist/cjs/endpoint/properties/EndpointContainer.js.map +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/Behavior.d.ts +1 -0
- package/dist/esm/behavior/Behavior.d.ts.map +1 -1
- package/dist/esm/behavior/Behavior.js +5 -0
- package/dist/esm/behavior/Behavior.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/internal/BehaviorBacking.js +2 -2
- package/dist/esm/behavior/internal/BehaviorBacking.js.map +1 -1
- package/dist/esm/behavior/state/managed/Datasource.d.ts +4 -5
- package/dist/esm/behavior/state/managed/Datasource.d.ts.map +1 -1
- package/dist/esm/behavior/state/managed/Datasource.js +7 -3
- package/dist/esm/behavior/state/managed/Datasource.js.map +1 -1
- package/dist/esm/behavior/state/managed/ManagedReference.d.ts +3 -2
- package/dist/esm/behavior/state/managed/ManagedReference.d.ts.map +1 -1
- package/dist/esm/behavior/state/managed/ManagedReference.js +66 -21
- package/dist/esm/behavior/state/managed/ManagedReference.js.map +1 -1
- package/dist/esm/behavior/state/managed/values/ListManager.js +2 -1
- package/dist/esm/behavior/state/managed/values/ListManager.js.map +1 -1
- package/dist/esm/behavior/state/managed/values/StructManager.js +9 -1
- package/dist/esm/behavior/state/managed/values/StructManager.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/access-control/AccessControlServer.d.ts.map +1 -1
- package/dist/esm/behaviors/access-control/AccessControlServer.js +3 -3
- package/dist/esm/behaviors/access-control/AccessControlServer.js.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/general-diagnostics/GeneralDiagnosticsServer.d.ts.map +1 -1
- package/dist/esm/behaviors/general-diagnostics/GeneralDiagnosticsServer.js +3 -9
- package/dist/esm/behaviors/general-diagnostics/GeneralDiagnosticsServer.js.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/service-area/ServiceAreaServer.js +2 -2
- package/dist/esm/behaviors/service-area/ServiceAreaServer.js.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/AtomicWriteHandler.d.ts +58 -0
- package/dist/esm/behaviors/thermostat/AtomicWriteHandler.d.ts.map +1 -0
- package/dist/esm/behaviors/thermostat/AtomicWriteHandler.js +293 -0
- package/dist/esm/behaviors/thermostat/AtomicWriteHandler.js.map +6 -0
- package/dist/esm/behaviors/thermostat/AtomicWriteState.d.ts +33 -0
- package/dist/esm/behaviors/thermostat/AtomicWriteState.d.ts.map +1 -0
- package/dist/esm/behaviors/thermostat/AtomicWriteState.js +66 -0
- package/dist/esm/behaviors/thermostat/AtomicWriteState.js.map +6 -0
- package/dist/esm/behaviors/thermostat/ThermostatBehavior.d.ts +13 -1
- package/dist/esm/behaviors/thermostat/ThermostatBehavior.d.ts.map +1 -1
- package/dist/esm/behaviors/thermostat/ThermostatInterface.d.ts +1 -0
- package/dist/esm/behaviors/thermostat/ThermostatInterface.d.ts.map +1 -1
- package/dist/esm/behaviors/thermostat/ThermostatServer.d.ts +894 -3
- package/dist/esm/behaviors/thermostat/ThermostatServer.d.ts.map +1 -1
- package/dist/esm/behaviors/thermostat/ThermostatServer.js +1225 -1
- package/dist/esm/behaviors/thermostat/ThermostatServer.js.map +2 -2
- 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 +26 -2
- package/dist/esm/devices/water-heater.d.ts.map +1 -1
- 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/endpoint/Endpoint.d.ts +36 -2
- package/dist/esm/endpoint/Endpoint.d.ts.map +1 -1
- package/dist/esm/endpoint/Endpoint.js +17 -14
- package/dist/esm/endpoint/Endpoint.js.map +1 -1
- package/dist/esm/endpoint/properties/EndpointContainer.d.ts +1 -0
- package/dist/esm/endpoint/properties/EndpointContainer.d.ts.map +1 -1
- package/dist/esm/endpoint/properties/EndpointContainer.js +3 -0
- package/dist/esm/endpoint/properties/EndpointContainer.js.map +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/Behavior.ts +10 -0
- package/src/behavior/cluster/ClusterBehavior.ts +21 -10
- package/src/behavior/cluster/ClusterBehaviorUtil.ts +85 -59
- package/src/behavior/internal/BehaviorBacking.ts +2 -2
- package/src/behavior/state/managed/Datasource.ts +14 -7
- package/src/behavior/state/managed/ManagedReference.ts +67 -19
- package/src/behavior/state/managed/values/ListManager.ts +1 -0
- package/src/behavior/state/managed/values/StructManager.ts +13 -3
- package/src/behavior/state/validation/conformance-compiler.ts +8 -3
- package/src/behaviors/access-control/AccessControlServer.ts +3 -7
- 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/general-diagnostics/GeneralDiagnosticsServer.ts +5 -9
- 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/service-area/ServiceAreaServer.ts +2 -2
- 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/AtomicWriteHandler.ts +412 -0
- package/src/behaviors/thermostat/AtomicWriteState.ts +91 -0
- package/src/behaviors/thermostat/ThermostatInterface.ts +2 -0
- package/src/behaviors/thermostat/ThermostatServer.ts +1487 -3
- 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/endpoint/Endpoint.ts +61 -5
- package/src/endpoint/properties/EndpointContainer.ts +4 -0
- 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
|
|
@@ -13,7 +13,7 @@ import type { SupportedElements } from "#endpoint/properties/Behaviors.js";
|
|
|
13
13
|
import {
|
|
14
14
|
camelize,
|
|
15
15
|
Construction,
|
|
16
|
-
|
|
16
|
+
Entropy,
|
|
17
17
|
EventEmitter,
|
|
18
18
|
ImplementationError,
|
|
19
19
|
InternalError,
|
|
@@ -212,7 +212,7 @@ export abstract class BehaviorBacking {
|
|
|
212
212
|
|
|
213
213
|
protected get datasourceOptions(): Datasource.Options {
|
|
214
214
|
return {
|
|
215
|
-
|
|
215
|
+
entropy: this.#endpoint.env.get(Entropy),
|
|
216
216
|
location: {
|
|
217
217
|
path: this.#endpoint.path.at(this.#type.id).at("state"),
|
|
218
218
|
endpoint: this.#endpoint.number,
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
camelize,
|
|
9
|
-
Crypto,
|
|
10
9
|
deepCopy,
|
|
10
|
+
Entropy,
|
|
11
11
|
ImplementationError,
|
|
12
12
|
InternalError,
|
|
13
13
|
isDeepEqual,
|
|
@@ -16,8 +16,7 @@ import {
|
|
|
16
16
|
Observable,
|
|
17
17
|
Transaction,
|
|
18
18
|
} from "#general";
|
|
19
|
-
import
|
|
20
|
-
import { AccessControl, ExpiredReferenceError, hasRemoteActor } from "#protocol";
|
|
19
|
+
import { AccessControl, ExpiredReferenceError, hasRemoteActor, Val } from "#protocol";
|
|
21
20
|
import { RootSupervisor } from "../../supervision/RootSupervisor.js";
|
|
22
21
|
import { ValueSupervisor } from "../../supervision/ValueSupervisor.js";
|
|
23
22
|
import { StateType } from "../StateType.js";
|
|
@@ -154,9 +153,9 @@ export namespace Datasource {
|
|
|
154
153
|
location: AccessControl.Location;
|
|
155
154
|
|
|
156
155
|
/**
|
|
157
|
-
* Used
|
|
156
|
+
* Used to generate initial version numbers.
|
|
158
157
|
*/
|
|
159
|
-
|
|
158
|
+
entropy: Entropy;
|
|
160
159
|
|
|
161
160
|
/**
|
|
162
161
|
* Events triggered automatically.
|
|
@@ -328,7 +327,7 @@ function configure(options: Datasource.Options): Internals {
|
|
|
328
327
|
...options,
|
|
329
328
|
primaryKey: options.primaryKey === "id" ? "id" : "name",
|
|
330
329
|
events,
|
|
331
|
-
version: options.
|
|
330
|
+
version: options.entropy.randomUint32,
|
|
332
331
|
values,
|
|
333
332
|
featuresKey,
|
|
334
333
|
manageVersion: true,
|
|
@@ -557,8 +556,16 @@ function createReference(resource: Transaction.Resource, internals: Internals, s
|
|
|
557
556
|
if (values === internals.values) {
|
|
558
557
|
const old = values;
|
|
559
558
|
values = new internals.type();
|
|
559
|
+
|
|
560
|
+
const properties = (values as Val.Dynamic)[Val.properties]
|
|
561
|
+
? (values as Val.Dynamic)[Val.properties](this.rootOwner, session)
|
|
562
|
+
: undefined;
|
|
560
563
|
for (const index of fields) {
|
|
561
|
-
|
|
564
|
+
if (properties && index in properties) {
|
|
565
|
+
// Property is dynamic anyway, so do nothing
|
|
566
|
+
} else {
|
|
567
|
+
values[index] = old[index];
|
|
568
|
+
}
|
|
562
569
|
}
|
|
563
570
|
|
|
564
571
|
// Point subreferences to the clone
|
|
@@ -31,6 +31,7 @@ type Container = Record<string | number, Val>;
|
|
|
31
31
|
* @param id the lookup ID in the case of structs
|
|
32
32
|
* @param assertWriteOk enforces ACLs and read-only
|
|
33
33
|
* @param clone clones the container prior to write; undefined if not transactional
|
|
34
|
+
* @param session the access control session
|
|
34
35
|
*
|
|
35
36
|
* @returns a reference to the property
|
|
36
37
|
*/
|
|
@@ -41,6 +42,7 @@ export function ManagedReference(
|
|
|
41
42
|
id: number | undefined,
|
|
42
43
|
assertWriteOk: (value: Val) => void,
|
|
43
44
|
clone: (container: Val) => Val,
|
|
45
|
+
session: AccessControl.Session,
|
|
44
46
|
) {
|
|
45
47
|
let expired = false;
|
|
46
48
|
let location = {
|
|
@@ -51,10 +53,24 @@ export function ManagedReference(
|
|
|
51
53
|
const key = primaryKey === "id" ? (id ?? name) : name;
|
|
52
54
|
const altKey = primaryKey === "id" ? (key === name ? undefined : name) : id;
|
|
53
55
|
let value: unknown;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
|
|
57
|
+
let dynamicContainer: Val.Struct | undefined;
|
|
58
|
+
if ((parent.value as Val.Dynamic)[Val.properties]) {
|
|
59
|
+
dynamicContainer = (parent.value as Val.Dynamic)[Val.properties](parent.rootOwner, session);
|
|
60
|
+
if (key in (dynamicContainer as Container)) {
|
|
61
|
+
value = (dynamicContainer as Container)[key];
|
|
62
|
+
} else if (altKey !== undefined && altKey in (dynamicContainer as Container)) {
|
|
63
|
+
value = (dynamicContainer as Container)[altKey];
|
|
64
|
+
} else {
|
|
65
|
+
dynamicContainer = undefined;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (dynamicContainer === undefined) {
|
|
69
|
+
if (key in (parent.value as Container)) {
|
|
70
|
+
value = (parent.value as Container)[key];
|
|
71
|
+
} else if (altKey !== undefined) {
|
|
72
|
+
value = (parent.value as Container)[altKey];
|
|
73
|
+
}
|
|
58
74
|
}
|
|
59
75
|
|
|
60
76
|
const reference: Val.Reference = {
|
|
@@ -97,9 +113,16 @@ export function ManagedReference(
|
|
|
97
113
|
|
|
98
114
|
// Now use change to complete the update
|
|
99
115
|
this.change(() => {
|
|
100
|
-
(
|
|
101
|
-
|
|
102
|
-
|
|
116
|
+
if (dynamicContainer) {
|
|
117
|
+
(dynamicContainer as Container)[key] = newValue;
|
|
118
|
+
if (altKey !== undefined && altKey in dynamicContainer) {
|
|
119
|
+
delete (dynamicContainer as Container)[altKey];
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
(parent.value as Container)[key] = newValue;
|
|
123
|
+
if (altKey !== undefined && altKey in parent.value) {
|
|
124
|
+
delete (parent.value as Container)[altKey];
|
|
125
|
+
}
|
|
103
126
|
}
|
|
104
127
|
});
|
|
105
128
|
},
|
|
@@ -108,11 +131,21 @@ export function ManagedReference(
|
|
|
108
131
|
if (!parent.original) {
|
|
109
132
|
return undefined;
|
|
110
133
|
}
|
|
111
|
-
if (
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
134
|
+
if (dynamicContainer !== undefined) {
|
|
135
|
+
const origProperties = (parent.original as Val.Dynamic)[Val.properties](parent.rootOwner, session);
|
|
136
|
+
if (key in (origProperties as Container)) {
|
|
137
|
+
return (origProperties as Container)[key];
|
|
138
|
+
}
|
|
139
|
+
if (altKey !== undefined) {
|
|
140
|
+
return (origProperties as Container)[altKey];
|
|
141
|
+
}
|
|
142
|
+
} else {
|
|
143
|
+
if (key in parent.original) {
|
|
144
|
+
return (parent.original as Container)[key];
|
|
145
|
+
}
|
|
146
|
+
if (altKey !== undefined) {
|
|
147
|
+
return (parent.original as Container)[altKey];
|
|
148
|
+
}
|
|
116
149
|
}
|
|
117
150
|
},
|
|
118
151
|
|
|
@@ -125,9 +158,16 @@ export function ManagedReference(
|
|
|
125
158
|
// In transactions, clone the value if we haven't done so yet
|
|
126
159
|
if (clone && value === this.original) {
|
|
127
160
|
const newValue = clone(value);
|
|
128
|
-
(
|
|
129
|
-
|
|
130
|
-
|
|
161
|
+
if (dynamicContainer !== undefined) {
|
|
162
|
+
(dynamicContainer as Container)[key] = newValue;
|
|
163
|
+
if (altKey !== undefined && altKey in dynamicContainer) {
|
|
164
|
+
delete (dynamicContainer as Container)[altKey];
|
|
165
|
+
}
|
|
166
|
+
} else {
|
|
167
|
+
(parent.value as Container)[key] = newValue;
|
|
168
|
+
if (altKey !== undefined && altKey in (parent.value as Container)) {
|
|
169
|
+
delete (parent.value as Container)[altKey];
|
|
170
|
+
}
|
|
131
171
|
}
|
|
132
172
|
replaceValue(newValue);
|
|
133
173
|
}
|
|
@@ -149,10 +189,18 @@ export function ManagedReference(
|
|
|
149
189
|
}
|
|
150
190
|
|
|
151
191
|
let value;
|
|
152
|
-
if (
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
192
|
+
if (dynamicContainer !== undefined) {
|
|
193
|
+
if (key in dynamicContainer) {
|
|
194
|
+
value = (dynamicContainer as Container)[key];
|
|
195
|
+
} else if (altKey !== undefined && altKey in dynamicContainer) {
|
|
196
|
+
value = (dynamicContainer as Container)[altKey];
|
|
197
|
+
}
|
|
198
|
+
} else {
|
|
199
|
+
if (key in parent.value) {
|
|
200
|
+
value = (parent.value as Container)[key];
|
|
201
|
+
} else if (altKey !== undefined && altKey in parent.value) {
|
|
202
|
+
value = (parent.value as Container)[altKey];
|
|
203
|
+
}
|
|
156
204
|
}
|
|
157
205
|
|
|
158
206
|
replaceValue(value);
|
|
@@ -279,7 +279,7 @@ function configureProperty(supervisor: RootSupervisor, schema: ValueModel) {
|
|
|
279
279
|
};
|
|
280
280
|
|
|
281
281
|
if (manage === PrimitiveManager) {
|
|
282
|
-
// For primitives we don't need a manager so just proxy reads directly
|
|
282
|
+
// For primitives, we don't need a manager so just proxy reads directly
|
|
283
283
|
descriptor.get = function (this: Struct) {
|
|
284
284
|
if (access.mayRead(this[Internal.session], this[Internal.reference].location)) {
|
|
285
285
|
const struct = this[Internal.reference].value as Val.Dynamic;
|
|
@@ -310,7 +310,7 @@ function configureProperty(supervisor: RootSupervisor, schema: ValueModel) {
|
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
} else {
|
|
313
|
-
// For collections we create a managed value
|
|
313
|
+
// For collections, we create a managed value
|
|
314
314
|
let cloneContainer: (container: Val) => Val;
|
|
315
315
|
switch (schema.effectiveMetatype) {
|
|
316
316
|
case Metatype.array:
|
|
@@ -373,6 +373,8 @@ function configureProperty(supervisor: RootSupervisor, schema: ValueModel) {
|
|
|
373
373
|
return defaultReader?.(this);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
+
// Value is null or a dynamic property, so just return it
|
|
377
|
+
// TODO Consider to also use Management for dynamic properties
|
|
376
378
|
if (value === null) {
|
|
377
379
|
return value;
|
|
378
380
|
}
|
|
@@ -394,7 +396,15 @@ function configureProperty(supervisor: RootSupervisor, schema: ValueModel) {
|
|
|
394
396
|
};
|
|
395
397
|
|
|
396
398
|
// Clone the container before write
|
|
397
|
-
const ref = ManagedReference(
|
|
399
|
+
const ref = ManagedReference(
|
|
400
|
+
this[Internal.reference],
|
|
401
|
+
pk,
|
|
402
|
+
name,
|
|
403
|
+
id,
|
|
404
|
+
assertWriteOk,
|
|
405
|
+
cloneContainer,
|
|
406
|
+
this[Internal.session],
|
|
407
|
+
);
|
|
398
408
|
|
|
399
409
|
ref.owner = manage(ref, this[Internal.session]);
|
|
400
410
|
|
|
@@ -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) {
|
|
@@ -52,13 +52,9 @@ export class AccessControlServer extends AccessControlBehavior.with("Extension")
|
|
|
52
52
|
override initialize(): MaybePromise {
|
|
53
53
|
this.reactTo(this.events.acl$Changing, this.#validateAccessControlListChanges); // Enhanced Validation
|
|
54
54
|
this.reactTo(this.events.acl$Changed, this.#handleAccessControlListChange); // Event handling for changes
|
|
55
|
-
if (
|
|
56
|
-
this.
|
|
57
|
-
this.events.extension$
|
|
58
|
-
this.events.extension$Changed !== undefined
|
|
59
|
-
) {
|
|
60
|
-
this.reactTo(this.events.extension$Changing, this.#validateAccessControlExtensionChanges); // Enhanced Validation
|
|
61
|
-
this.reactTo(this.events.extension$Changed, this.#handleAccessControlExtensionChange); // Event handling for changes
|
|
55
|
+
if (this.state.extension !== undefined) {
|
|
56
|
+
this.maybeReactTo(this.events.extension$Changing, this.#validateAccessControlExtensionChanges); // Enhanced Validation
|
|
57
|
+
this.maybeReactTo(this.events.extension$Changed, this.#handleAccessControlExtensionChange); // Event handling for changes
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
const lifecycle = this.endpoint.lifecycle as NodeLifecycle;
|
|
@@ -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
|
*
|