"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 tls_client_management_element_exports = {};
__export(tls_client_management_element_exports, {
  TlsClientManagement: () => TlsClientManagement
});
module.exports = __toCommonJS(tls_client_management_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 TlsClientManagement = (0, import_elements.ClusterElement)(
  { name: "TlsClientManagement", id: 2050, classification: "node" },
  (0, import_elements.AttributeElement)({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 1 }),
  (0, import_elements.AttributeElement)({
    name: "MaxProvisioned",
    id: 0,
    type: "uint8",
    access: "R V",
    conformance: "M",
    constraint: "5 to 254",
    quality: "F"
  }),
  (0, import_elements.AttributeElement)(
    {
      name: "ProvisionedEndpoints",
      id: 1,
      type: "list",
      access: "R S V",
      conformance: "M",
      constraint: "desc",
      quality: "N"
    },
    (0, import_elements.FieldElement)({ name: "entry", type: "TLSEndpointStruct" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "ProvisionEndpoint",
      id: 0,
      access: "F A",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "ProvisionEndpointResponse"
    },
    (0, import_elements.FieldElement)({ name: "Hostname", id: 0, type: "octstr", conformance: "M", constraint: "4 to 253" }),
    (0, import_elements.FieldElement)({ name: "Port", id: 1, type: "uint16", conformance: "M", constraint: "1 to 65535" }),
    (0, import_elements.FieldElement)({ name: "Caid", id: 2, type: "TlsCertificateManagement.TLSCAID", conformance: "M", constraint: "0 to 65534" }),
    (0, import_elements.FieldElement)({ name: "Ccdid", id: 3, type: "TlsCertificateManagement.TLSCCDID", conformance: "M", quality: "X" }),
    (0, import_elements.FieldElement)({ name: "EndpointId", id: 4, type: "TLSEndpointID", conformance: "M", quality: "X" })
  ),
  (0, import_elements.CommandElement)(
    { name: "ProvisionEndpointResponse", id: 1, conformance: "M", direction: "response", quality: "L" },
    (0, import_elements.FieldElement)({ name: "EndpointId", id: 0, type: "TLSEndpointID", conformance: "M", constraint: "0 to 65534" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "FindEndpoint",
      id: 2,
      access: "F O",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "FindEndpointResponse"
    },
    (0, import_elements.FieldElement)({ name: "EndpointId", id: 0, type: "TLSEndpointID", conformance: "M", constraint: "0 to 65534" })
  ),
  (0, import_elements.CommandElement)(
    { name: "FindEndpointResponse", id: 3, conformance: "M", direction: "response", quality: "L" },
    (0, import_elements.FieldElement)({ name: "Endpoint", id: 0, type: "TLSEndpointStruct", conformance: "M", constraint: "0 to 65534" })
  ),
  (0, import_elements.CommandElement)(
    { name: "RemoveEndpoint", id: 4, access: "F A", conformance: "M", direction: "request", quality: "L" },
    (0, import_elements.FieldElement)({ name: "EndpointId", id: 0, type: "TLSEndpointID", conformance: "M", constraint: "0 to 65534" })
  ),
  (0, import_elements.DatatypeElement)({ name: "TLSEndpointID", type: "uint16" }),
  (0, import_elements.DatatypeElement)(
    { name: "TLSEndpointStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "EndpointId", id: 0, type: "TLSEndpointID", access: "F", conformance: "M", constraint: "0 to 65534" }),
    (0, import_elements.FieldElement)({ name: "Hostname", id: 1, type: "octstr", access: "F", conformance: "M", constraint: "4 to 253" }),
    (0, import_elements.FieldElement)({ name: "Port", id: 2, type: "uint16", access: "F", conformance: "M", constraint: "1 to 65535" }),
    (0, import_elements.FieldElement)({
      name: "Caid",
      id: 3,
      type: "TlsCertificateManagement.TLSCAID",
      access: "F",
      conformance: "M",
      constraint: "0 to 65534"
    }),
    (0, import_elements.FieldElement)({
      name: "Ccdid",
      id: 4,
      type: "TlsCertificateManagement.TLSCCDID",
      access: "F",
      conformance: "M",
      quality: "X"
    }),
    (0, import_elements.FieldElement)({ name: "ReferenceCount", id: 5, type: "uint8", access: "F", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "FabricIndex", id: 254, type: "FabricIndex" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "StatusCodeEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "EndpointAlreadyInstalled", id: 2 }),
    (0, import_elements.FieldElement)({ name: "RootCertificateNotFound", id: 3 }),
    (0, import_elements.FieldElement)({ name: "ClientCertificateNotFound", id: 4 }),
    (0, import_elements.FieldElement)({ name: "EndpointInUse", id: 5 }),
    (0, import_elements.FieldElement)({ name: "InvalidTime", id: 6 })
  )
);
import_MatterDefinition.MatterDefinition.children.push(TlsClientManagement);
//# sourceMappingURL=tls-client-management.element.js.map
