"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_certificate_management_element_exports = {};
__export(tls_certificate_management_element_exports, {
  TlsCertificateManagement: () => TlsCertificateManagement
});
module.exports = __toCommonJS(tls_certificate_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 TlsCertificateManagement = (0, import_elements.ClusterElement)(
  { name: "TlsCertificateManagement", id: 2049, classification: "node" },
  (0, import_elements.AttributeElement)({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 1 }),
  (0, import_elements.AttributeElement)({
    name: "MaxRootCertificates",
    id: 0,
    type: "uint8",
    access: "R V",
    conformance: "M",
    constraint: "5 to 254",
    quality: "F"
  }),
  (0, import_elements.AttributeElement)(
    {
      name: "ProvisionedRootCertificates",
      id: 1,
      type: "list",
      access: "R S V",
      conformance: "M",
      constraint: "max maxRootCertificates",
      quality: "N"
    },
    (0, import_elements.FieldElement)({ name: "entry", type: "TLSCertStruct" })
  ),
  (0, import_elements.AttributeElement)({
    name: "MaxClientCertificates",
    id: 2,
    type: "uint8",
    access: "R V",
    conformance: "M",
    constraint: "2 to 254",
    quality: "F"
  }),
  (0, import_elements.AttributeElement)(
    {
      name: "ProvisionedClientCertificates",
      id: 3,
      type: "list",
      access: "R S V",
      conformance: "M",
      constraint: "max maxClientCertificates",
      quality: "N"
    },
    (0, import_elements.FieldElement)({ name: "entry", type: "TLSClientCertificateDetailStruct" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "ProvisionRootCertificate",
      id: 0,
      access: "F A",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "ProvisionRootCertificateResponse"
    },
    (0, import_elements.FieldElement)({ name: "Certificate", id: 0, type: "octstr", conformance: "M", constraint: "max 3000" }),
    (0, import_elements.FieldElement)({ name: "Caid", id: 1, type: "TLSCAID", conformance: "M", quality: "X" })
  ),
  (0, import_elements.CommandElement)(
    { name: "ProvisionRootCertificateResponse", id: 1, conformance: "M", direction: "response", quality: "L" },
    (0, import_elements.FieldElement)({ name: "Caid", id: 0, type: "TLSCAID", conformance: "M", constraint: "0 to 65534" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "FindRootCertificate",
      id: 2,
      access: "F O",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "FindRootCertificateResponse"
    },
    (0, import_elements.FieldElement)({ name: "Caid", id: 0, type: "TLSCAID", conformance: "M", quality: "X" })
  ),
  (0, import_elements.CommandElement)(
    { name: "FindRootCertificateResponse", id: 3, conformance: "M", direction: "response", quality: "L" },
    (0, import_elements.FieldElement)(
      {
        name: "CertificateDetails",
        id: 0,
        type: "list",
        conformance: "M",
        constraint: "1 to maxRootCertificates"
      },
      (0, import_elements.FieldElement)({ name: "entry", type: "TLSCertStruct" })
    )
  ),
  (0, import_elements.CommandElement)(
    {
      name: "LookupRootCertificate",
      id: 4,
      access: "F O",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "LookupRootCertificateResponse"
    },
    (0, import_elements.FieldElement)({ name: "Fingerprint", id: 0, type: "octstr", conformance: "M", constraint: "max 64" })
  ),
  (0, import_elements.CommandElement)(
    { name: "LookupRootCertificateResponse", id: 5, conformance: "M", direction: "response", quality: "L" },
    (0, import_elements.FieldElement)({ name: "Caid", id: 0, type: "TLSCAID", conformance: "M", constraint: "0 to 65534" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "RemoveRootCertificate",
      id: 6,
      access: "F A",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "status"
    },
    (0, import_elements.FieldElement)({ name: "Caid", id: 0, type: "TLSCAID", conformance: "M", constraint: "0 to 65534" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "ClientCsr",
      id: 7,
      access: "F A",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "ClientCsrResponse"
    },
    (0, import_elements.FieldElement)({ name: "Nonce", id: 0, type: "octstr", conformance: "M", constraint: "32" }),
    (0, import_elements.FieldElement)({ name: "Ccdid", id: 1, type: "TLSCCDID", conformance: "M", constraint: "0 to 65534", quality: "X" })
  ),
  (0, import_elements.CommandElement)(
    { name: "ClientCsrResponse", id: 8, conformance: "M", direction: "response", quality: "L" },
    (0, import_elements.FieldElement)({ name: "Ccdid", id: 0, type: "TLSCCDID", conformance: "M", constraint: "0 to 65534" }),
    (0, import_elements.FieldElement)({ name: "Csr", id: 1, type: "octstr", conformance: "M", constraint: "max 3000" }),
    (0, import_elements.FieldElement)({ name: "NonceSignature", id: 2, type: "octstr", conformance: "M", constraint: "max 128" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "ProvisionClientCertificate",
      id: 9,
      access: "F A",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "status"
    },
    (0, import_elements.FieldElement)({ name: "Ccdid", id: 0, type: "TLSCCDID", conformance: "M", constraint: "0 to 65534" }),
    (0, import_elements.FieldElement)({ name: "ClientCertificate", id: 1, type: "octstr", conformance: "M", constraint: "max 3000" }),
    (0, import_elements.FieldElement)(
      {
        name: "IntermediateCertificates",
        id: 2,
        type: "list",
        conformance: "M",
        constraint: "0 to 10[max 3000]"
      },
      (0, import_elements.FieldElement)({ name: "entry", type: "octstr" })
    )
  ),
  (0, import_elements.CommandElement)(
    {
      name: "FindClientCertificate",
      id: 10,
      access: "F O",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "FindClientCertificateResponse"
    },
    (0, import_elements.FieldElement)({ name: "Ccdid", id: 0, type: "TLSCCDID", conformance: "M", quality: "X" })
  ),
  (0, import_elements.CommandElement)(
    { name: "FindClientCertificateResponse", id: 11, conformance: "M", direction: "response", quality: "L" },
    (0, import_elements.FieldElement)(
      {
        name: "CertificateDetails",
        id: 0,
        type: "list",
        conformance: "M",
        constraint: "1 to maxClientCertificates"
      },
      (0, import_elements.FieldElement)({ name: "entry", type: "TLSClientCertificateDetailStruct" })
    )
  ),
  (0, import_elements.CommandElement)(
    {
      name: "LookupClientCertificate",
      id: 12,
      access: "F O",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "LookupClientCertificateResponse"
    },
    (0, import_elements.FieldElement)({ name: "Fingerprint", id: 0, type: "octstr", conformance: "M", constraint: "max 64" })
  ),
  (0, import_elements.CommandElement)(
    { name: "LookupClientCertificateResponse", id: 13, conformance: "M", direction: "response", quality: "L" },
    (0, import_elements.FieldElement)({ name: "Ccdid", id: 0, type: "TLSCCDID", conformance: "M", constraint: "0 to 65534" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "RemoveClientCertificate",
      id: 14,
      access: "F A",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "status"
    },
    (0, import_elements.FieldElement)({ name: "Ccdid", id: 0, type: "TLSCCDID", conformance: "M", constraint: "0 to 65534" })
  ),
  (0, import_elements.DatatypeElement)({ name: "TLSCAID", type: "uint16" }),
  (0, import_elements.DatatypeElement)({ name: "TLSCCDID", type: "uint16" }),
  (0, import_elements.DatatypeElement)(
    { name: "TLSCertStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "Caid", id: 0, type: "TLSCAID", access: "F", conformance: "M", constraint: "0 to 65534" }),
    (0, import_elements.FieldElement)({ name: "Certificate", id: 1, type: "octstr", access: "F", conformance: "O", constraint: "max 3000" }),
    (0, import_elements.FieldElement)({ name: "FabricIndex", id: 254, type: "FabricIndex" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "TLSClientCertificateDetailStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "Ccdid", id: 0, type: "TLSCCDID", access: "F", conformance: "M", constraint: "0 to 65534" }),
    (0, import_elements.FieldElement)({
      name: "ClientCertificate",
      id: 1,
      type: "octstr",
      access: "F",
      conformance: "O",
      constraint: "max 3000",
      quality: "X"
    }),
    (0, import_elements.FieldElement)(
      {
        name: "IntermediateCertificates",
        id: 2,
        type: "list",
        access: "F",
        conformance: "O",
        constraint: "max 10[max 3000]"
      },
      (0, import_elements.FieldElement)({ name: "entry", type: "octstr" })
    ),
    (0, import_elements.FieldElement)({ name: "FabricIndex", id: 254, type: "FabricIndex" })
  )
);
import_MatterDefinition.MatterDefinition.children.push(TlsCertificateManagement);
//# sourceMappingURL=tls-certificate-management.element.js.map
