/**
 * @license
 * Copyright 2022-2024 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 ValidProxies = Cluster({
  name: "ValidProxies",
  id: 68,
  classification: "node",
  pics: "PXVALID",
  details: "This cluster provides a means for a device to be told of the valid set of possible proxies that can proxy subscriptions on its behalf as per Section 9.15.7, \u201CProxy Discovery & Assignment Flow\u201D.",
  xref: { document: "core", section: "9.15.14" },
  children: [
    Attribute({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 1 }),
    Attribute({
      name: "ValidProxyList",
      id: 0,
      type: "list",
      access: "RW",
      conformance: "M",
      constraint: "nA",
      default: [],
      quality: "N F",
      details: "List of valid proxies that can proxy this Node. Each entry in this list is fabric-scoped.",
      xref: { document: "core", section: "9.15.14.5.1" },
      children: [Field({ name: "entry", type: "ValidProxyStruct" })]
    }),
    Command({
      name: "GetValidProxiesRequest",
      id: 0,
      access: "O",
      conformance: "M",
      direction: "request",
      response: "GetValidProxiesResponse",
      details: "This command is used during proxy discovery, as specified in Section 9.15.7, \u201CProxy Discovery & Assignment Flow\u201D.",
      xref: { document: "core", section: "9.15.14.6.1" }
    }),
    Command({
      name: "GetValidProxiesResponse",
      id: 1,
      conformance: "M",
      direction: "response",
      details: "This command is used during proxy discovery, as specified in Section 9.15.7, \u201CProxy Discovery & Assignment Flow\u201D.",
      xref: { document: "core", section: "9.15.14.6.2" },
      children: [Field({
        name: "ProxyNodeIdList",
        id: 0,
        type: "list",
        conformance: "M",
        children: [Field({ name: "entry", type: "node-id" })]
      })]
    }),
    Datatype({
      name: "ValidProxyStruct",
      type: "struct",
      details: "Encapsulates the Node ID of a Valid Proxy.",
      xref: { document: "core", section: "9.15.14.4.1" },
      children: [Field({ name: "NodeId", id: 1, type: "node-id", access: "RW", conformance: "M" })]
    })
  ]
});
MatterDefinition.children.push(ValidProxies);
export {
  ValidProxies
};
//# sourceMappingURL=ValidProxies.js.map
