/**
 * @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,
  CommandElement as Command,
  DatatypeElement as Datatype
} from "../../elements/index.js";
const MediaInput = Cluster(
  { name: "MediaInput", id: 1287, 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: "InputList", id: 0, type: "list", access: "R V", conformance: "M" },
    Field({ name: "entry", type: "InputInfoStruct" })
  ),
  Attribute({ name: "CurrentInput", id: 1, type: "uint8", access: "R V", conformance: "M" }),
  Command(
    { name: "SelectInput", id: 0, access: "O", conformance: "M", direction: "request", response: "status" },
    Field({ name: "Index", id: 0, type: "uint8", conformance: "M" })
  ),
  Command({ name: "ShowInputStatus", id: 1, access: "O", conformance: "M", direction: "request", response: "status" }),
  Command({ name: "HideInputStatus", id: 2, access: "O", conformance: "M", direction: "request", response: "status" }),
  Command(
    { name: "RenameInput", id: 3, 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" })
  ),
  Datatype(
    { name: "InputTypeEnum", type: "enum8" },
    Field({ name: "Internal", id: 0, conformance: "M" }),
    Field({ name: "Aux", id: 1, conformance: "M" }),
    Field({ name: "Coax", id: 2, conformance: "M" }),
    Field({ name: "Composite", id: 3, conformance: "M" }),
    Field({ name: "Hdmi", id: 4, conformance: "M" }),
    Field({ name: "Input", id: 5, conformance: "M" }),
    Field({ name: "Line", id: 6, conformance: "M" }),
    Field({ name: "Optical", id: 7, conformance: "M" }),
    Field({ name: "Video", id: 8, conformance: "M" }),
    Field({ name: "Scart", id: 9, conformance: "M" }),
    Field({ name: "Usb", id: 10, conformance: "M" }),
    Field({ name: "Other", id: 11, conformance: "M" })
  ),
  Datatype(
    { name: "InputInfoStruct", type: "struct" },
    Field({ name: "Index", id: 0, type: "uint8", conformance: "M" }),
    Field({ name: "InputType", id: 1, type: "InputTypeEnum", conformance: "M", constraint: "desc" }),
    Field({ name: "Name", id: 2, type: "string", conformance: "M" }),
    Field({ name: "Description", id: 3, type: "string", conformance: "M" })
  )
);
MatterDefinition.children.push(MediaInput);
export {
  MediaInput
};
//# sourceMappingURL=media-input.element.js.map
