Skip to content

Commit

Permalink
Generated using ./scripts/tools/zap_regen_all.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcosb committed Jan 18, 2025
1 parent e3a91ab commit d0cd986
Show file tree
Hide file tree
Showing 55 changed files with 8,140 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 @@ -139,6 +139,7 @@ Generally regenerate using one of:
| 1872 | 0x750 | EcosystemInformation |
| 1873 | 0x751 | CommissionerControl |
| 2049 | 0x801 | TlsCertificateManagement |
| 2050 | 0x802 | TlsClientManagement |
| 4294048773 | 0xFFF1FC05 | UnitTesting |
| 4294048774 | 0xFFF1FC06 | FaultInjection |
| 4294048800 | 0xFFF1FC20 | SampleMei |
69 changes: 69 additions & 0 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -10556,6 +10556,75 @@ provisional cluster TlsCertificateManagement = 2049 {
command access(invoke: administer) RemoveClientCertificate(RemoveClientCertificateRequest): DefaultSuccess = 15;
}

/** This Cluster is used to provision TLS Endpoints with enough information to facilitate subsequent connection. */
provisional cluster TlsClientManagement = 2050 {
revision 1;

enum TLSEndpointStatusEnum : enum8 {
kProvisioned = 0;
kInUse = 1;
}

struct TLSEndpointStruct {
int16u endpointID = 0;
octet_string hostname = 1;
int16u port = 2;
int16u caid = 3;
optional nullable int16u ccdid = 4;
TLSEndpointStatusEnum status = 5;
}

info event EndpointProvisioned = 0 {
int16u endpointID = 0;
}

info event EndpointRemoved = 1 {
int16u endpointID = 0;
}

readonly attribute int8u maxProvisioned = 0;
readonly attribute int8u currentProvisioned = 1;
readonly attribute int8u maxInUse = 2;
readonly attribute int8u currentInUse = 3;
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 ProvisionEndpointRequest {
octet_string hostname = 0;
int16u port = 1;
int16u caid = 2;
optional nullable int16u ccdid = 3;
optional nullable int16u endpointID = 4;
}

response struct ProvisionEndpointResponse = 1 {
int16u endpointID = 0;
}

request struct FindEndpointRequest {
optional nullable int16u endpointID = 0;
}

response struct FindEndpointResponse = 3 {
TLSEndpointStruct endpoints[] = 0;
}

request struct RemoveEndpointRequest {
int16u endpointID = 0;
}

/** This command SHALL provision a TLS Endpoint for the provided HostName / Port combination. */
command access(invoke: administer) ProvisionEndpoint(ProvisionEndpointRequest): ProvisionEndpointResponse = 0;
/** This command SHALL return the TLS Endpoint details for the passed in EndpointID. */
command FindEndpoint(FindEndpointRequest): FindEndpointResponse = 2;
/** This command SHALL be generated to request the Node terminates the TLS Connection. */
command access(invoke: administer) RemoveEndpoint(RemoveEndpointRequest): DefaultSuccess = 4;
}

/** The Test Cluster is meant to validate the generated code */
internal cluster UnitTesting = 4294048773 {
revision 1; // NOTE: Default/not specifically set
Expand Down
Loading

0 comments on commit d0cd986

Please sign in to comment.