/**
 * @license
 * Copyright 2022-2025 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { MatterDefinition } from "../MatterDefinition.js";
import {
  ClusterElement as Cluster,
  AttributeElement as Attribute,
  FieldElement as Field,
  EventElement as Event,
  CommandElement as Command,
  DatatypeElement as Datatype
} from "../../elements/index.js";
const AlarmBase = Cluster(
  { name: "AlarmBase", classification: "application" },
  Attribute({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 2 }),
  Attribute(
    { name: "FeatureMap", id: 65532, type: "FeatureMap" },
    Field({ name: "RESET", constraint: "0", title: "Reset" })
  ),
  Attribute({ name: "Mask", id: 0, type: "AlarmBitmap", access: "R V", conformance: "M" }),
  Attribute({ name: "Latch", id: 1, type: "AlarmBitmap", access: "R V", conformance: "RESET", quality: "F" }),
  Attribute({ name: "State", id: 2, type: "AlarmBitmap", access: "R V", conformance: "M" }),
  Attribute({ name: "Supported", id: 3, type: "AlarmBitmap", access: "R V", conformance: "M", quality: "F" }),
  Event(
    { name: "Notify", id: 0, access: "V", conformance: "M", priority: "info" },
    Field({ name: "Active", id: 0, type: "AlarmBitmap", conformance: "M" }),
    Field({ name: "Inactive", id: 1, type: "AlarmBitmap", conformance: "M" }),
    Field({ name: "State", id: 2, type: "AlarmBitmap", conformance: "M" }),
    Field({ name: "Mask", id: 3, type: "AlarmBitmap", conformance: "M" })
  ),
  Command(
    { name: "Reset", id: 0, access: "O", conformance: "RESET", direction: "request", response: "status" },
    Field({ name: "Alarms", id: 0, type: "AlarmBitmap", conformance: "M" })
  ),
  Command(
    {
      name: "ModifyEnabledAlarms",
      id: 1,
      access: "O",
      conformance: "O",
      direction: "request",
      response: "status"
    },
    Field({ name: "Mask", id: 0, type: "AlarmBitmap", conformance: "M" })
  ),
  Datatype({ name: "AlarmBitmap", type: "map32" })
);
MatterDefinition.children.push(AlarmBase);
export {
  AlarmBase
};
//# sourceMappingURL=alarm-base.element.js.map
