/**
 * @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,
  CommandElement as Command,
  DatatypeElement as Datatype
} from "../../elements/index.js";
const AudioOutput = Cluster(
  { name: "AudioOutput", id: 1291, classification: "application" },
  Attribute({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 1 }),
  Attribute(
    { name: "FeatureMap", id: 65532, type: "FeatureMap" },
    Field({ name: "NU", constraint: "0", title: "NameUpdates" })
  ),
  Attribute(
    { name: "OutputList", id: 0, type: "list", access: "R V", conformance: "M" },
    Field({ name: "entry", type: "OutputInfoStruct" })
  ),
  Attribute({ name: "CurrentOutput", id: 1, type: "uint8", access: "R V", conformance: "M" }),
  Command(
    { name: "SelectOutput", id: 0, access: "O", conformance: "M", direction: "request", response: "status" },
    Field({ name: "Index", id: 0, type: "uint8", conformance: "M" })
  ),
  Command(
    { name: "RenameOutput", id: 1, access: "M", conformance: "NU", direction: "request", response: "status" },
    Field({ name: "Index", id: 0, type: "uint8", conformance: "M" }),
    Field({ name: "Name", id: 1, type: "string", conformance: "M", constraint: "max 32" })
  ),
  Datatype(
    { name: "OutputTypeEnum", type: "enum8" },
    Field({ name: "Hdmi", id: 0, conformance: "M" }),
    Field({ name: "Bt", id: 1, conformance: "M" }),
    Field({ name: "Optical", id: 2, conformance: "M" }),
    Field({ name: "Headphone", id: 3, conformance: "M" }),
    Field({ name: "Internal", id: 4, conformance: "M" }),
    Field({ name: "Other", id: 5, conformance: "M" })
  ),
  Datatype(
    { name: "OutputInfoStruct", type: "struct" },
    Field({ name: "Index", id: 0, type: "uint8", conformance: "M" }),
    Field({ name: "OutputType", id: 1, type: "OutputTypeEnum", conformance: "M", constraint: "desc" }),
    Field({ name: "Name", id: 2, type: "string", conformance: "M", constraint: "max 32" })
  )
);
MatterDefinition.children.push(AudioOutput);
export {
  AudioOutput
};
//# sourceMappingURL=audio-output.element.js.map
