Skip to content

Commit

Permalink
Generated with ./scripts/tools/zap_regen_all.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcosb committed Dec 18, 2024
1 parent 3f5d710 commit 2d54b4b
Show file tree
Hide file tree
Showing 69 changed files with 14,092 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/ids_and_codes/zap_clusters.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ Generally regenerate using one of:
| 1361 | 0x551 | CameraAvStreamManagement |
| 1363 | 0x553 | WebRTCTransportProvider |
| 1364 | 0x554 | WebRTCTransportRequestor |
| 1365 | 0x555 | PushAvStreamTransport |
| 1366 | 0x556 | Chime |
| 1872 | 0x750 | EcosystemInformation |
| 1873 | 0x751 | CommissionerControl |
Expand Down
194 changes: 194 additions & 0 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -10040,6 +10040,200 @@ cluster WebRTCTransportRequestor = 1364 {
command End(EndRequest): DefaultSuccess = 4;
}

/** */
cluster PushAvStreamTransport = 1365 {
revision 1;

enum ContainerFormatEnum : enum8 {
kCMAF = 0;
}

enum IngestMethodsEnum : enum8 {
kCMAFIngest = 0;
}

enum StatusCodeEnum : enum8 {
kAllocationNotPermitted = 2;
kInvalidTLSEndpoint = 3;
kInvalidStream = 4;
kInvalidURL = 5;
kInvalidZone = 6;
kUnsupportedContainerFormat = 7;
kUnsupportedIngestMethod = 8;
kInvalidTriggerType = 9;
kInvalidTransportStatus = 16;
}

enum StreamMultiplexingEnum : enum8 {
kInterleaved = 0;
}

enum StreamTypeEnum : enum8 {
kInternal = 0;
kRecording = 1;
kAnalysis = 2;
kLiveView = 3;
}

enum TransportStatusEnum : enum8 {
kActive = 0;
kInactive = 1;
}

enum TransportTriggerTypeEnum : enum8 {
kCommand = 0;
kMotion = 1;
kContinuous = 2;
}

enum TriggerActivationReasonEnum : enum8 {
kUserInitiated = 0;
kAutomation = 1;
kEmergency = 2;
}

bitmap Feature : bitmap32 {
kPerZoneSensitivity = 0x1;
}

bitmap SupportedContainerFormatsBitmap : bitmap8 {
kCMAF = 0x1;
}

bitmap SupportedIngestMethodsBitmap : bitmap8 {
kCMAFIngest = 0x1;
}

struct TransportMotionTriggerTimeControlStruct {
int16u initialDuration = 0;
int16u augmentationDuration = 1;
elapsed_s maxDuration = 2;
int16u blindDuration = 3;
}

struct TransportZoneOptionsStruct {
nullable int16u zone = 1;
optional int8u sensitivity = 2;
}

struct MetadataOptionsStruct {
StreamMultiplexingEnum multiplexing = 0;
boolean includeMotionZones = 1;
boolean enableMetadataPrivacySensitive = 2;
}

struct TransportTriggerOptionsStruct {
TransportTriggerTypeEnum triggerType = 0;
optional nullable TransportZoneOptionsStruct motionZones[] = 1;
optional nullable int8u motionSensitivity = 2;
optional TransportMotionTriggerTimeControlStruct motionTimeControl = 3;
optional int16u maxPreRollLen = 4;
}

struct CMAFContainerOptionsStruct {
int16u chunkDuration = 0;
optional octet_string CENCKey = 1;
}

struct ContainerOptionsStruct {
ContainerFormatEnum containerType = 0;
optional CMAFContainerOptionsStruct CMAFContainerOptions = 1;
}

struct TransportOptionsStruct {
StreamTypeEnum streamType = 0;
optional int16u videoStreamID = 1;
optional int16u audioStreamID = 2;
int16u endpointID = 3;
long_char_string<256> url = 4;
TransportTriggerOptionsStruct triggerOptions = 5;
IngestMethodsEnum ingestMethod = 6;
ContainerFormatEnum containerFormat = 7;
ContainerOptionsStruct containerOptions = 8;
optional MetadataOptionsStruct metadataOptions = 9;
optional epoch_s expiryTime = 10;
}

struct TransportConfigurationStruct {
int16u connectionID = 0;
TransportStatusEnum transportStatus = 1;
TransportOptionsStruct transportOptions = 2;
}

info event PushTransportBegin = 0 {
int16u connectionID = 0;
TransportTriggerTypeEnum triggerType = 1;
optional TriggerActivationReasonEnum activationReason = 2;
}

info event PushTransportEnd = 1 {
int16u connectionID = 0;
TransportTriggerTypeEnum triggerType = 1;
optional TriggerActivationReasonEnum activationReason = 2;
}

readonly attribute SupportedContainerFormatsBitmap supportedContainerFormats = 0;
readonly attribute SupportedIngestMethodsBitmap supportedIngestMethods = 1;
readonly attribute int16u currentConnections[] = 2;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
readonly attribute attrib_id attributeList[] = 65531;
readonly attribute bitmap32 featureMap = 65532;
readonly attribute int16u clusterRevision = 65533;

request struct AllocatePushTransportRequest {
TransportOptionsStruct transportOptions = 0;
}

response struct AllocatePushTransportResponse = 1 {
int16u connectionID = 0;
TransportOptionsStruct transportOptions = 1;
TransportStatusEnum transportStatus = 2;
}

request struct DeallocatePushTransportRequest {
int16u connectionID = 0;
}

request struct ModifyPushTransportRequest {
int16u connectionID = 0;
TransportOptionsStruct transportOptions = 1;
}

request struct SetTransportStatusRequest {
int16u connectionID = 0;
TransportStatusEnum transportStatus = 1;
}

request struct ManuallyTriggerTransportRequest {
int16u connectionID = 0;
TriggerActivationReasonEnum activationReason = 1;
optional TransportMotionTriggerTimeControlStruct timeControl = 2;
}

request struct FindTransportRequest {
optional nullable int16u connectionID = 0;
}

response struct FindTransportResponse = 7 {
TransportConfigurationStruct streamConfigurations[] = 0;
}

/** This command SHALL allocate a transport and return a PushTransportConnectionID. */
command access(invoke: manage) AllocatePushTransport(AllocatePushTransportRequest): AllocatePushTransportResponse = 0;
/** This command SHALL be generated to request the Node deallocates the specified transport. */
command access(invoke: manage) DeallocatePushTransport(DeallocatePushTransportRequest): DefaultSuccess = 2;
/** This command is used to request the Node modifies the configuration of the specified push transport. */
command access(invoke: manage) ModifyPushTransport(ModifyPushTransportRequest): DefaultSuccess = 3;
/** This command SHALL be generated to request the Node modifies the Transport Status of the transport. */
command access(invoke: manage) SetTransportStatus(SetTransportStatusRequest): DefaultSuccess = 4;
/** This command SHALL be generated to request the Node to manually start the specified push transport. */
command ManuallyTriggerTransport(ManuallyTriggerTransportRequest): DefaultSuccess = 5;
/** This command SHALL return the Stream Options Configuration for the specified push transport. */
command FindTransport(FindTransportRequest): FindTransportResponse = 6;
}

/** This cluster provides facilities to configure and play Chime sounds, such as those used in a doorbell. */
provisional cluster Chime = 1366 {
revision 1;
Expand Down
Loading

0 comments on commit 2d54b4b

Please sign in to comment.