/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ /** * Types of elements per the Matter specification. * * We use "tag" to differentiate elements so we can use "type" for datatypes. */ export enum ElementTag { Fabric = "fabric", Node = "node", Endpoint = "endpoint", Cluster = "cluster", Command = "command", Event = "event", Attribute = "attribute", DeviceType = "deviceType", Datatype = "datatype", Field = "field", // Semantic tag information - not formally "elements" in the specification SemanticNamespace = "semanticNamespace", SemanticTag = "semanticTag", // Device cluster element requirement - not formally an "element" in the specification Requirement = "requirement", // Device condition definition - not formally an "element" in the specification Condition = "condition", // Root element type - not formally part of specification Matter = "matter", }