/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { MatterDefinition } from "../MatterDefinition.js";
import {
  ClusterElement as Cluster,
  AttributeElement as Attribute,
  FieldElement as Field,
  DatatypeElement as Datatype
} from "../../elements/index.js";
const PowerTopology = Cluster(
  { name: "PowerTopology", id: 156, classification: "application" },
  Attribute({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 1 }),
  Attribute(
    { name: "FeatureMap", id: 65532, type: "FeatureMap" },
    Field({ name: "NODE", conformance: "O.a", constraint: "0", title: "NodeTopology" }),
    Field({ name: "TREE", conformance: "O.a", constraint: "1", title: "TreeTopology" }),
    Field({ name: "SET", conformance: "O.a", constraint: "2", title: "SetTopology" }),
    Field({ name: "DYPF", conformance: "[SET]", constraint: "3", title: "DynamicPowerFlow" })
  ),
  Attribute(
    {
      name: "AvailableEndpoints",
      id: 0,
      type: "list",
      access: "R V",
      conformance: "SET",
      constraint: "max 20",
      quality: "F"
    },
    Field({ name: "entry", type: "endpoint-no" })
  ),
  Attribute(
    {
      name: "ActiveEndpoints",
      id: 1,
      type: "list",
      access: "R V",
      conformance: "DYPF",
      constraint: "max 20",
      quality: "N"
    },
    Field({ name: "entry", type: "endpoint-no" })
  ),
  Datatype(
    { name: "CircuitNodeStruct", type: "struct" },
    Field({ name: "Node", id: 1, type: "node-id", access: "F", conformance: "M" }),
    Field({ name: "Endpoint", id: 2, type: "endpoint-no", access: "F", conformance: "O" }),
    Field({ name: "Label", id: 3, type: "string", access: "F", conformance: "O", constraint: "max 128" }),
    Field({ name: "FabricIndex", id: 254, type: "FabricIndex" })
  )
);
MatterDefinition.children.push(PowerTopology);
export {
  PowerTopology
};
//# sourceMappingURL=power-topology.element.js.map
