/**
 * @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,
  EventElement as Event,
  FieldElement as Field,
  CommandElement as Command
} from "../../elements/index.js";
const AccountLogin = Cluster(
  { name: "AccountLogin", id: 1294, classification: "application" },
  Attribute({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 2 }),
  Event(
    { name: "LoggedOut", id: 0, access: "S A", conformance: "O", priority: "critical" },
    Field({ name: "Node", id: 0, type: "node-id", conformance: "O" })
  ),
  Command(
    {
      name: "GetSetupPin",
      id: 0,
      access: "F A T",
      conformance: "M",
      direction: "request",
      response: "GetSetupPinResponse"
    },
    Field({ name: "TempAccountIdentifier", id: 0, type: "string", conformance: "M", constraint: "16 to 100" })
  ),
  Command(
    { name: "GetSetupPinResponse", id: 1, access: "F", conformance: "M", direction: "response" },
    Field({ name: "SetupPin", id: 0, type: "string", conformance: "M", constraint: "desc" })
  ),
  Command(
    { name: "Login", id: 2, access: "F A T", conformance: "M", direction: "request", response: "status" },
    Field({ name: "TempAccountIdentifier", id: 0, type: "string", conformance: "M", constraint: "16 to 100" }),
    Field({ name: "SetupPin", id: 1, type: "string", conformance: "M", constraint: "min 8" }),
    Field({ name: "Node", id: 2, type: "node-id", conformance: "O" })
  ),
  Command(
    { name: "Logout", id: 3, access: "F O T", conformance: "M", direction: "request", response: "status" },
    Field({ name: "Node", id: 0, type: "node-id", conformance: "O" })
  )
);
MatterDefinition.children.push(AccountLogin);
export {
  AccountLogin
};
//# sourceMappingURL=account-login.element.js.map
