"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var groupcast_element_exports = {};
__export(groupcast_element_exports, {
  Groupcast: () => Groupcast
});
module.exports = __toCommonJS(groupcast_element_exports);
var import_MatterDefinition = require("../MatterDefinition.js");
var import_elements = require("../../elements/index.js");
/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
const Groupcast = (0, import_elements.ClusterElement)(
  { name: "Groupcast", id: 101, classification: "node" },
  (0, import_elements.AttributeElement)({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 1 }),
  (0, import_elements.AttributeElement)(
    { name: "FeatureMap", id: 65532, type: "FeatureMap" },
    (0, import_elements.FieldElement)({ name: "LN", conformance: "P, O.a+", constraint: "0", title: "Listener" }),
    (0, import_elements.FieldElement)({ name: "SD", conformance: "P, O.a+", constraint: "1", title: "Sender" }),
    (0, import_elements.FieldElement)({ name: "PGA", conformance: "P, O", constraint: "2", title: "PerGroup" })
  ),
  (0, import_elements.AttributeElement)(
    {
      name: "Membership",
      id: 0,
      type: "list",
      access: "R F V",
      conformance: "P, M",
      constraint: "desc",
      quality: "N"
    },
    (0, import_elements.FieldElement)({ name: "entry", type: "MembershipStruct" })
  ),
  (0, import_elements.AttributeElement)({
    name: "MaxMembershipCount",
    id: 1,
    type: "uint16",
    access: "R V",
    conformance: "P, M",
    constraint: "min 10",
    quality: "F"
  }),
  (0, import_elements.AttributeElement)({
    name: "MaxMcastAddrCount",
    id: 2,
    type: "uint16",
    access: "R V",
    conformance: "P, M",
    constraint: "min 1",
    quality: "F"
  }),
  (0, import_elements.AttributeElement)({ name: "UsedMcastAddrCount", id: 3, type: "uint16", access: "R V", conformance: "P, M", quality: "F" }),
  (0, import_elements.AttributeElement)({ name: "FabricUnderTest", id: 4, type: "fabric-idx", access: "R V", conformance: "P, M" }),
  (0, import_elements.EventElement)(
    { name: "GroupcastTesting", id: 0, access: "S A", conformance: "P, M", priority: "info" },
    (0, import_elements.FieldElement)({ name: "SourceIpAddress", id: 0, type: "ipv6adr", access: "S", conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "DestinationIpAddress", id: 1, type: "ipv6adr", access: "S", conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "GroupId", id: 2, type: "group-id", access: "S", conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "EndpointId", id: 3, type: "endpoint-no", access: "S", conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "ClusterId", id: 4, type: "cluster-id", access: "S", conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "ElementId", id: 5, type: "uint32", access: "S", conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "AccessAllowed", id: 6, type: "bool", access: "S", conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "GroupcastTestResult", id: 7, type: "GroupcastTestResultEnum", access: "S", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "FabricIndex", id: 254, type: "FabricIndex" })
  ),
  (0, import_elements.CommandElement)(
    { name: "JoinGroup", id: 0, access: "F M", conformance: "P, M", direction: "request", response: "status" },
    (0, import_elements.FieldElement)({ name: "GroupId", id: 0, type: "group-id", conformance: "M", constraint: "min 1" }),
    (0, import_elements.FieldElement)(
      { name: "Endpoints", id: 1, type: "list", conformance: "M", constraint: "desc" },
      (0, import_elements.FieldElement)({ name: "entry", type: "endpoint-no" })
    ),
    (0, import_elements.FieldElement)({ name: "KeySetId", id: 2, type: "uint16", conformance: "M", constraint: "min 1" }),
    (0, import_elements.FieldElement)({ name: "Key", id: 3, type: "octstr", conformance: "O", constraint: "16" }),
    (0, import_elements.FieldElement)({ name: "UseAuxiliaryAcl", id: 4, type: "bool", conformance: "[LN]" }),
    (0, import_elements.FieldElement)({ name: "ReplaceEndpoints", id: 5, type: "bool", conformance: "[LN]" }),
    (0, import_elements.FieldElement)({ name: "McastAddrPolicy", id: 6, type: "MulticastAddrPolicyEnum", conformance: "O" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "LeaveGroup",
      id: 1,
      access: "F M",
      conformance: "P, M",
      direction: "request",
      response: "LeaveGroupResponse"
    },
    (0, import_elements.FieldElement)({ name: "GroupId", id: 0, type: "group-id", conformance: "M" }),
    (0, import_elements.FieldElement)(
      { name: "Endpoints", id: 1, type: "list", conformance: "O", constraint: "1 to 20" },
      (0, import_elements.FieldElement)({ name: "entry", type: "endpoint-no" })
    )
  ),
  (0, import_elements.CommandElement)(
    { name: "LeaveGroupResponse", id: 2, access: "F", conformance: "P, M", direction: "response" },
    (0, import_elements.FieldElement)({ name: "GroupId", id: 0, type: "group-id", conformance: "M" }),
    (0, import_elements.FieldElement)(
      { name: "Endpoints", id: 1, type: "list", conformance: "M", constraint: "max 20" },
      (0, import_elements.FieldElement)({ name: "entry", type: "endpoint-no" })
    )
  ),
  (0, import_elements.CommandElement)(
    {
      name: "UpdateGroupKey",
      id: 3,
      access: "F M",
      conformance: "P, M",
      direction: "request",
      response: "status"
    },
    (0, import_elements.FieldElement)({ name: "GroupId", id: 0, type: "group-id", conformance: "M", constraint: "min 1" }),
    (0, import_elements.FieldElement)({ name: "KeySetId", id: 1, type: "uint16", conformance: "M", constraint: "min 1" }),
    (0, import_elements.FieldElement)({ name: "Key", id: 2, type: "octstr", conformance: "O", constraint: "16" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "ConfigureAuxiliaryAcl",
      id: 4,
      access: "F A",
      conformance: "P, LN",
      direction: "request",
      response: "status"
    },
    (0, import_elements.FieldElement)({ name: "GroupId", id: 0, type: "group-id", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "UseAuxiliaryAcl", id: 1, type: "bool", conformance: "M" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "GroupcastTesting",
      id: 5,
      access: "F A",
      conformance: "P, M",
      direction: "request",
      response: "status"
    },
    (0, import_elements.FieldElement)({ name: "TestOperation", id: 0, type: "GroupcastTestingEnum", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "DurationSeconds", id: 1, type: "uint16", conformance: "O", constraint: "10 to 1200", default: 60 })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "MulticastAddrPolicyEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "IanaAddr", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "PerGroup", id: 1, conformance: "PGA" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "GroupcastTestingEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "DisableTesting", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "EnableListenerTesting", id: 1, conformance: "LN" }),
    (0, import_elements.FieldElement)({ name: "EnableSenderTesting", id: 2, conformance: "SD" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "GroupcastTestResultEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "Success", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "GeneralError", id: 1, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "MessageReplay", id: 2, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "FailedAuth", id: 3, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "NoAvailableKey", id: 4, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "SendFailure", id: 5, conformance: "M" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "MembershipStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "GroupId", id: 0, type: "group-id", access: "F", conformance: "M", constraint: "min 1" }),
    (0, import_elements.FieldElement)(
      { name: "Endpoints", id: 1, type: "list", access: "F", conformance: "LN", constraint: "max 255" },
      (0, import_elements.FieldElement)({ name: "entry", type: "endpoint-no" })
    ),
    (0, import_elements.FieldElement)({ name: "KeySetId", id: 2, type: "uint16", access: "S", conformance: "M", constraint: "min 1" }),
    (0, import_elements.FieldElement)({ name: "HasAuxiliaryAcl", id: 3, type: "bool", access: "F", conformance: "LN" }),
    (0, import_elements.FieldElement)({
      name: "McastAddrPolicy",
      id: 4,
      type: "MulticastAddrPolicyEnum",
      access: "F",
      conformance: "M",
      default: 0
    }),
    (0, import_elements.FieldElement)({ name: "FabricIndex", id: 254, type: "FabricIndex" })
  )
);
import_MatterDefinition.MatterDefinition.children.push(Groupcast);
//# sourceMappingURL=groupcast.element.js.map
