"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 push_av_stream_transport_element_exports = {};
__export(push_av_stream_transport_element_exports, {
  PushAvStreamTransport: () => PushAvStreamTransport
});
module.exports = __toCommonJS(push_av_stream_transport_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 PushAvStreamTransport = (0, import_elements.ClusterElement)(
  { name: "PushAvStreamTransport", id: 1365, classification: "application" },
  (0, import_elements.AttributeElement)({ name: "ClusterRevision", id: 65533, type: "ClusterRevision", default: 2 }),
  (0, import_elements.AttributeElement)(
    { name: "FeatureMap", id: 65532, type: "FeatureMap" },
    (0, import_elements.FieldElement)({ name: "PERZONESENS", conformance: "O", constraint: "0", title: "PerZoneSensitivity" }),
    (0, import_elements.FieldElement)({ name: "METADATA", conformance: "P, O", constraint: "1", title: "Metadata" })
  ),
  (0, import_elements.AttributeElement)(
    {
      name: "SupportedFormats",
      id: 0,
      type: "list",
      access: "R V",
      conformance: "M",
      constraint: "min 1",
      quality: "F"
    },
    (0, import_elements.FieldElement)({ name: "entry", type: "SupportedFormatStruct" })
  ),
  (0, import_elements.AttributeElement)(
    {
      name: "CurrentConnections",
      id: 1,
      type: "list",
      access: "R S V",
      conformance: "M",
      constraint: "desc",
      quality: "N"
    },
    (0, import_elements.FieldElement)({ name: "entry", type: "TransportConfigurationStruct" })
  ),
  (0, import_elements.EventElement)(
    { name: "PushTransportBegin", id: 0, access: "V", conformance: "M", priority: "info" },
    (0, import_elements.FieldElement)({
      name: "ConnectionId",
      id: 0,
      type: "PushTransportConnectionID",
      conformance: "M",
      constraint: "0 to 65534"
    }),
    (0, import_elements.FieldElement)({ name: "TriggerType", id: 1, type: "TransportTriggerTypeEnum", conformance: "M" }),
    (0, import_elements.FieldElement)({
      name: "ActivationReason",
      id: 2,
      type: "TriggerActivationReasonEnum",
      conformance: "TriggerType == Command"
    }),
    (0, import_elements.FieldElement)({ name: "ContainerType", id: 3, type: "ContainerFormatEnum", conformance: "Rev >= v2" }),
    (0, import_elements.FieldElement)({ name: "CmafSessionNumber", id: 4, type: "uint64", conformance: "ContainerType == CMAF" })
  ),
  (0, import_elements.EventElement)(
    { name: "PushTransportEnd", id: 1, access: "V", conformance: "M", priority: "info" },
    (0, import_elements.FieldElement)({
      name: "ConnectionId",
      id: 0,
      type: "PushTransportConnectionID",
      conformance: "M",
      constraint: "0 to 65534"
    }),
    (0, import_elements.FieldElement)({ name: "ContainerType", id: 1, type: "ContainerFormatEnum", conformance: "Rev >= v2" }),
    (0, import_elements.FieldElement)({ name: "CmafSessionNumber", id: 2, type: "uint64", conformance: "ContainerType == CMAF" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "AllocatePushTransport",
      id: 0,
      access: "F M",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "AllocatePushTransportResponse"
    },
    (0, import_elements.FieldElement)({ name: "TransportOptions", id: 0, type: "TransportOptionsStruct", conformance: "M" })
  ),
  (0, import_elements.CommandElement)(
    { name: "AllocatePushTransportResponse", id: 1, conformance: "M", direction: "response", quality: "L" },
    (0, import_elements.FieldElement)({ name: "TransportConfiguration", id: 0, type: "TransportConfigurationStruct", conformance: "M" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "DeallocatePushTransport",
      id: 2,
      access: "F M",
      conformance: "M",
      direction: "request",
      response: "status"
    },
    (0, import_elements.FieldElement)({
      name: "ConnectionId",
      id: 0,
      type: "PushTransportConnectionID",
      conformance: "M",
      constraint: "0 to 65534"
    })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "ModifyPushTransport",
      id: 3,
      access: "F M",
      conformance: "M",
      direction: "request",
      response: "status"
    },
    (0, import_elements.FieldElement)({
      name: "ConnectionId",
      id: 0,
      type: "PushTransportConnectionID",
      conformance: "M",
      constraint: "0 to 65534"
    }),
    (0, import_elements.FieldElement)({ name: "TransportOptions", id: 1, type: "TransportOptionsStruct", conformance: "M" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "SetTransportStatus",
      id: 4,
      access: "F M",
      conformance: "M",
      direction: "request",
      response: "status"
    },
    (0, import_elements.FieldElement)({ name: "ConnectionId", id: 0, type: "PushTransportConnectionID", conformance: "M", quality: "X" }),
    (0, import_elements.FieldElement)({ name: "TransportStatus", id: 1, type: "TransportStatusEnum", conformance: "M" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "ManuallyTriggerTransport",
      id: 5,
      access: "F O",
      conformance: "M",
      direction: "request",
      response: "status"
    },
    (0, import_elements.FieldElement)({
      name: "ConnectionId",
      id: 0,
      type: "PushTransportConnectionID",
      conformance: "M",
      constraint: "0 to 65534"
    }),
    (0, import_elements.FieldElement)({ name: "ActivationReason", id: 1, type: "TriggerActivationReasonEnum", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "TimeControl", id: 2, type: "TransportMotionTriggerTimeControlStruct", conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "UserDefined", id: 3, type: "octstr", conformance: "[METADATA]", constraint: "max 256" })
  ),
  (0, import_elements.CommandElement)(
    {
      name: "FindTransport",
      id: 6,
      access: "F O",
      conformance: "M",
      direction: "request",
      quality: "L",
      response: "FindTransportResponse"
    },
    (0, import_elements.FieldElement)({ name: "ConnectionId", id: 0, type: "PushTransportConnectionID", conformance: "M", quality: "X" })
  ),
  (0, import_elements.CommandElement)(
    { name: "FindTransportResponse", id: 7, conformance: "M", direction: "response", quality: "L" },
    (0, import_elements.FieldElement)(
      { name: "TransportConfigurations", id: 0, type: "list", conformance: "M" },
      (0, import_elements.FieldElement)({ name: "entry", type: "TransportConfigurationStruct" })
    )
  ),
  (0, import_elements.DatatypeElement)(
    { name: "TransportTriggerTypeEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "Command", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Motion", id: 1, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Continuous", id: 2, conformance: "M" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "TransportStatusEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "Active", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Inactive", id: 1, conformance: "M" })
  ),
  (0, import_elements.DatatypeElement)({ name: "ContainerFormatEnum", type: "enum8" }, (0, import_elements.FieldElement)({ name: "Cmaf", id: 0, conformance: "M" })),
  (0, import_elements.DatatypeElement)({ name: "IngestMethodsEnum", type: "enum8" }, (0, import_elements.FieldElement)({ name: "CmafIngest", id: 0, conformance: "M" })),
  (0, import_elements.DatatypeElement)(
    { name: "TriggerActivationReasonEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "UserInitiated", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Automation", id: 1, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Emergency", id: 2, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "DoorbellPressed", id: 3, conformance: "Rev >= v2" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "SupportedFormatStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "ContainerFormat", id: 0, type: "ContainerFormatEnum", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "IngestMethod", id: 1, type: "IngestMethodsEnum", conformance: "M" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "CMAFInterfaceEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "Interface1", id: 0, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "Interface2Dash", id: 1, conformance: "P, M" }),
    (0, import_elements.FieldElement)({ name: "Interface2Hls", id: 2, conformance: "P, M" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "VideoStreamStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "VideoStreamName", id: 0, type: "string", conformance: "M", constraint: "1 to 16" }),
    (0, import_elements.FieldElement)({ name: "VideoStreamId", id: 1, type: "CameraAvStreamManagement.VideoStreamID", conformance: "M" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "AudioStreamStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "AudioStreamName", id: 0, type: "string", conformance: "M", constraint: "1 to 16" }),
    (0, import_elements.FieldElement)({ name: "AudioStreamId", id: 1, type: "CameraAvStreamManagement.AudioStreamID", conformance: "M" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "CMAFContainerOptionsStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "CmafInterface", id: 0, type: "CMAFInterfaceEnum", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "SegmentDuration", id: 1, type: "uint16", conformance: "M", constraint: "500 to 65500" }),
    (0, import_elements.FieldElement)({ name: "ChunkDuration", id: 2, type: "uint16", conformance: "M", constraint: "0 to segmentDuration / 2" }),
    (0, import_elements.FieldElement)({ name: "SessionGroup", id: 3, type: "uint8", conformance: "O, D" }),
    (0, import_elements.FieldElement)({ name: "TrackName", id: 4, type: "string", conformance: "O, D", constraint: "1 to 16" }),
    (0, import_elements.FieldElement)({ name: "CencKey", id: 5, type: "octstr", conformance: "P, O", constraint: "16" }),
    (0, import_elements.FieldElement)({ name: "CencKeyId", id: 6, type: "octstr", conformance: "P, CENCKey", constraint: "16" }),
    (0, import_elements.FieldElement)({ name: "MetadataEnabled", id: 7, type: "bool", conformance: "[METADATA]" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "ContainerOptionsStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "ContainerType", id: 0, type: "ContainerFormatEnum", conformance: "M" }),
    (0, import_elements.FieldElement)({
      name: "CmafContainerOptions",
      id: 1,
      type: "CMAFContainerOptionsStruct",
      conformance: "ContainerType == CMAF"
    })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "TransportZoneOptionsStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "Zone", id: 0, type: "ZoneManagement.ZoneID", conformance: "M", quality: "X" }),
    (0, import_elements.FieldElement)({ name: "Sensitivity", id: 1, type: "uint8", conformance: "PERZONESENS", constraint: "1 to 10" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "TransportTriggerOptionsStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "TriggerType", id: 0, type: "TransportTriggerTypeEnum", conformance: "M" }),
    (0, import_elements.FieldElement)(
      { name: "MotionZones", id: 1, type: "list", conformance: "TriggerType == Motion", quality: "X" },
      (0, import_elements.FieldElement)({ name: "entry", type: "TransportZoneOptionsStruct" })
    ),
    (0, import_elements.FieldElement)({
      name: "MotionSensitivity",
      id: 2,
      type: "uint8",
      conformance: "TriggerType == Motion & !PERZONESENS",
      constraint: "1 to 10",
      quality: "X"
    }),
    (0, import_elements.FieldElement)({
      name: "MotionTimeControl",
      id: 3,
      type: "TransportMotionTriggerTimeControlStruct",
      conformance: "TriggerType == Motion"
    }),
    (0, import_elements.FieldElement)({
      name: "MaxPreRollLen",
      id: 4,
      type: "uint16",
      conformance: "TriggerType == Command | TriggerType == Motion"
    })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "TransportMotionTriggerTimeControlStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "InitialDuration", id: 0, type: "uint16", conformance: "M", constraint: "min 1" }),
    (0, import_elements.FieldElement)({ name: "AugmentationDuration", id: 1, type: "uint16", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "MaxDuration", id: 2, type: "elapsed-s", conformance: "M", constraint: "min initialDuration" }),
    (0, import_elements.FieldElement)({ name: "BlindDuration", id: 3, type: "uint16", conformance: "M" })
  ),
  (0, import_elements.DatatypeElement)(
    { name: "TransportOptionsStruct", type: "struct" },
    (0, import_elements.FieldElement)({ name: "StreamUsage", id: 0, type: "StreamUsageEnum", conformance: "M" }),
    (0, import_elements.FieldElement)({
      name: "VideoStreamId",
      id: 1,
      type: "CameraAvStreamManagement.VideoStreamID",
      conformance: "O, D",
      quality: "X"
    }),
    (0, import_elements.FieldElement)({
      name: "AudioStreamId",
      id: 2,
      type: "CameraAvStreamManagement.AudioStreamID",
      conformance: "O, D",
      quality: "X"
    }),
    (0, import_elements.FieldElement)({
      name: "TlsEndpointId",
      id: 3,
      type: "TlsClientManagement.TLSEndpointID",
      conformance: "M",
      constraint: "0 to 65534"
    }),
    (0, import_elements.FieldElement)({ name: "Url", id: 4, type: "string", conformance: "M", constraint: "13 to 2000" }),
    (0, import_elements.FieldElement)({ name: "TriggerOptions", id: 5, type: "TransportTriggerOptionsStruct", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "IngestMethod", id: 6, type: "IngestMethodsEnum", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "ContainerOptions", id: 7, type: "ContainerOptionsStruct", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "ExpiryTime", id: 8, type: "epoch-s", conformance: "O" }),
    (0, import_elements.FieldElement)(
      { name: "VideoStreams", id: 9, type: "list", conformance: "O, [Rev >= v2].a+", constraint: "1 to 16" },
      (0, import_elements.FieldElement)({ name: "entry", type: "VideoStreamStruct" })
    ),
    (0, import_elements.FieldElement)(
      { name: "AudioStreams", id: 10, type: "list", conformance: "O, [Rev >= v2].a+", constraint: "1 to 16" },
      (0, import_elements.FieldElement)({ name: "entry", type: "AudioStreamStruct" })
    )
  ),
  (0, import_elements.DatatypeElement)(
    { name: "TransportConfigurationStruct", type: "struct" },
    (0, import_elements.FieldElement)({
      name: "ConnectionId",
      id: 0,
      type: "PushTransportConnectionID",
      access: "F",
      conformance: "M",
      constraint: "0 to 65534"
    }),
    (0, import_elements.FieldElement)({ name: "TransportStatus", id: 1, type: "TransportStatusEnum", access: "F", conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "TransportOptions", id: 2, type: "TransportOptionsStruct", access: "F", conformance: "O" }),
    (0, import_elements.FieldElement)({ name: "FabricIndex", id: 254, type: "FabricIndex" })
  ),
  (0, import_elements.DatatypeElement)({ name: "PushTransportConnectionID", type: "uint16" }),
  (0, import_elements.DatatypeElement)(
    { name: "StatusCodeEnum", type: "enum8" },
    (0, import_elements.FieldElement)({ name: "InvalidTlsEndpoint", id: 2, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "InvalidStream", id: 3, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "InvalidUrl", id: 4, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "InvalidZone", id: 5, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "InvalidCombination", id: 6, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "InvalidTriggerType", id: 7, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "InvalidTransportStatus", id: 8, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "InvalidOptions", id: 9, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "InvalidStreamUsage", id: 10, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "InvalidTime", id: 11, conformance: "M" }),
    (0, import_elements.FieldElement)({ name: "InvalidPreRollLength", id: 12, conformance: "Rev >= v2" }),
    (0, import_elements.FieldElement)({ name: "DuplicateStreamValues", id: 13, conformance: "Rev >= v2" })
  )
);
import_MatterDefinition.MatterDefinition.children.push(PushAvStreamTransport);
//# sourceMappingURL=push-av-stream-transport.element.js.map
