Skip to content

Commit a4a911c

Browse files
authored
Revert "Generate Conformance Data with Alchemy (project-chip#36186)" (project-chip#36220)
This reverts commit 334c669.
1 parent 7026061 commit a4a911c

File tree

99 files changed

+2033
-6759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+2033
-6759
lines changed

src/app/zap-templates/zcl/data-model/chip/access-control-cluster.xml

+7-43
Original file line numberDiff line numberDiff line change
@@ -113,58 +113,29 @@ limitations under the License.
113113
<description>ACL</description>
114114
<access op="read" privilege="administer"/>
115115
<access op="write" privilege="administer"/>
116-
<mandatoryConform/>
117116
</attribute>
118117

119118
<attribute side="server" code="0x0001" define="EXTENSION" type="array" entryType="AccessControlExtensionStruct" writable="true" optional="true">
120119
<description>Extension</description>
121120
<access op="read" privilege="administer"/>
122121
<access op="write" privilege="administer"/>
123-
<mandatoryConform>
124-
<feature name="EXTS"/>
125-
</mandatoryConform>
126122
</attribute>
127123

128-
<attribute side="server" code="0x0002" define="SUBJECTS_PER_ACCESS_CONTROL_ENTRY" type="int16u" min="4" default="4">
129-
<description>SubjectsPerAccessControlEntry</description>
130-
<mandatoryConform/>
131-
</attribute>
132-
<attribute side="server" code="0x0003" define="TARGETS_PER_ACCESS_CONTROL_ENTRY" type="int16u" min="3" default="3">
133-
<description>TargetsPerAccessControlEntry</description>
134-
<mandatoryConform/>
135-
</attribute>
136-
<attribute side="server" code="0x0004" define="ACCESS_CONTROL_ENTRIES_PER_FABRIC" type="int16u" min="4" default="4">
137-
<description>AccessControlEntriesPerFabric</description>
138-
<mandatoryConform/>
139-
</attribute>
140-
<attribute code="0x0005" side="server" define="COMMISSIONING_ARL" type="array" entryType="CommissioningAccessRestrictionEntryStruct" optional="true">
141-
<description>CommissioningARL</description>
142-
<mandatoryConform>
143-
<feature name="MNGD"/>
144-
</mandatoryConform>
145-
</attribute>
146-
<attribute code="0x0006" side="server" define="ARL" type="array" entryType="AccessRestrictionEntryStruct" optional="true">
147-
<description>ARL</description>
148-
<mandatoryConform>
149-
<feature name="MNGD"/>
150-
</mandatoryConform>
151-
</attribute>
152-
124+
<attribute side="server" code="0x0002" define="SUBJECTS_PER_ACCESS_CONTROL_ENTRY" type="int16u" min="4" default="4">SubjectsPerAccessControlEntry</attribute>
125+
<attribute side="server" code="0x0003" define="TARGETS_PER_ACCESS_CONTROL_ENTRY" type="int16u" min="3" default="3">TargetsPerAccessControlEntry</attribute>
126+
<attribute side="server" code="0x0004" define="ACCESS_CONTROL_ENTRIES_PER_FABRIC" type="int16u" min="4" default="4">AccessControlEntriesPerFabric</attribute>
127+
<attribute code="0x0005" side="server" define="COMMISSIONING_ARL" type="array" entryType="CommissioningAccessRestrictionEntryStruct" optional="true">CommissioningARL</attribute>
128+
<attribute code="0x0006" side="server" define="ARL" type="array" entryType="AccessRestrictionEntryStruct" optional="true">ARL</attribute>
129+
153130
<command code="0x00" source="client" name="ReviewFabricRestrictions" isFabricScoped="true" optional="true" response="ReviewFabricRestrictionsResponse">
154131
<description>This command signals to the service associated with the device vendor that the fabric administrator would like a review of the current restrictions on the accessing fabric.</description>
155132
<access op="invoke" privilege="administer"/>
156133
<arg id="0" name="ARL" array="true" type="CommissioningAccessRestrictionEntryStruct"/>
157-
<mandatoryConform>
158-
<feature name="MNGD"/>
159-
</mandatoryConform>
160-
</command>
134+
</command>
161135

162136
<command code="0x01" source="server" name="ReviewFabricRestrictionsResponse" optional="true" disableDefaultResponse="true">
163137
<description>Returns the review token for the request, which can be used to correlate with a FabricRestrictionReviewUpdate event.</description>
164138
<arg id="0" name="Token" type="int64u"/>
165-
<mandatoryConform>
166-
<feature name="MNGD"/>
167-
</mandatoryConform>
168139
</command>
169140

170141
<event side="server" code="0x0000" name="AccessControlEntryChanged" priority="info" isFabricSensitive="true">
@@ -174,7 +145,6 @@ limitations under the License.
174145
<field id="3" name="ChangeType" type="ChangeTypeEnum" min="0x00" max="0x02"/>
175146
<field id="4" name="LatestValue" type="AccessControlEntryStruct" isNullable="true"/>
176147
<access op="read" privilege="administer"/>
177-
<mandatoryConform/>
178148
</event>
179149

180150
<event side="server" code="0x0001" name="AccessControlExtensionChanged" priority="info" isFabricSensitive="true" optional="true">
@@ -184,9 +154,6 @@ limitations under the License.
184154
<field id="3" name="ChangeType" type="ChangeTypeEnum" min="0x00" max="0x02"/>
185155
<field id="4" name="LatestValue" type="AccessControlExtensionStruct" isNullable="true"/>
186156
<access op="read" privilege="administer"/>
187-
<mandatoryConform>
188-
<feature name="EXTS"/>
189-
</mandatoryConform>
190157
</event>
191158

192159
<event side="server" code="0x0002" name="FabricRestrictionReviewUpdate" priority="info" isFabricSensitive="true" optional="true">
@@ -195,9 +162,6 @@ limitations under the License.
195162
<field id="1" name="Instruction" type="long_char_string" optional="true" length="512"/>
196163
<field id="2" name="ARLRequestFlowUrl" type="long_char_string" optional="true" length="256"/>
197164
<access op="read" privilege="administer"/>
198-
<mandatoryConform>
199-
<feature name="MNGD"/>
200-
</mandatoryConform>
201165
</event>
202166
</cluster>
203167
</configurator>

src/app/zap-templates/zcl/data-model/chip/account-login-cluster.xml

+3-8
Original file line numberDiff line numberDiff line change
@@ -28,36 +28,31 @@ limitations under the License.
2828

2929
<command source="client" code="0x00" name="GetSetupPIN" isFabricScoped="true" response="GetSetupPINResponse" mustUseTimedInvoke="true" optional="false">
3030
<description>Upon receipt, the Content App checks if the account associated with the client Temp Account Identifier Rotating ID is the same acount that is active on the given Content App. If the accounts are the same, then the Content App includes the Setup PIN in the GetSetupPIN Response.</description>
31-
<access op="invoke" role="administer"/>
31+
<access op="invoke" role="administer" />
3232
<arg name="TempAccountIdentifier" minLength="16" length="100" type="char_string"/>
33-
<mandatoryConform/>
3433
</command>
3534

3635
<command source="client" code="0x02" name="Login" isFabricScoped="true" mustUseTimedInvoke="true" optional="false">
3736
<description>Upon receipt, the Content App checks if the account associated with the client’s Temp Account Identifier (Rotating ID) has a current active Setup PIN with the given value. If the Setup PIN is valid for the user account associated with the Temp Account Identifier, then the Content App MAY make that user account active.</description>
38-
<access op="invoke" role="administer"/>
37+
<access op="invoke" role="administer" />
3938
<arg name="TempAccountIdentifier" minLength="16" length="100" type="char_string"/>
4039
<arg name="SetupPIN" minLength="8" type="char_string"/>
41-
<arg name="Node" type="node_id" optional="true"/>
42-
<mandatoryConform/>
40+
<arg name="Node" type="node_id" optional="true" />
4341
</command>
4442

4543
<command source="client" code="0x03" name="Logout" isFabricScoped="true" mustUseTimedInvoke="true" optional="false">
4644
<description>The purpose of this command is to instruct the Content App to clear the current user account. This command SHOULD be used by clients of a Content App to indicate the end of a user session.</description>
4745
<arg name="Node" type="node_id" optional="true"/>
48-
<mandatoryConform/>
4946
</command>
5047

5148
<command source="server" code="0x01" name="GetSetupPINResponse" optional="false" disableDefaultResponse="true">
5249
<description>This message is sent in response to the GetSetupPIN Request, and contains the Setup PIN code, or null when the accounts identified in the request does not match the active account of the running Content App.</description>
5350
<arg name="SetupPIN" type="char_string"/>
54-
<mandatoryConform/>
5551
</command>
5652

5753
<event side="server" code="0x00" priority="critical" name="LoggedOut" optional="false">
5854
<description>This event can be used by the Content App to indicate that the current user has logged out. In response to this event, the Fabric Admin SHALL remove access to this Content App by the specified Node. If no Node is provided, then the Fabric Admin SHALL remove access to all non-Admin Nodes.</description>
5955
<field id="0" name="Node" type="node_id" optional="true"/>
60-
<optionalConform/>
6156
</event>
6257

6358
</cluster>

src/app/zap-templates/zcl/data-model/chip/actions-cluster.xml

+11-22
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,11 @@ limitations under the License.
8989
<code>0x0025</code>
9090
<define>ACTIONS_CLUSTER</define>
9191
<description>This cluster provides a standardized way for a Node (typically a Bridge, but could be any Node) to expose action information.</description>
92-
93-
<attribute side="server" code="0x0000" define="ACTION_LIST" type="array" entryType="ActionStruct" length="256">
94-
<description>ActionList</description>
95-
<mandatoryConform/>
96-
</attribute>
97-
<attribute side="server" code="0x0001" define="ENDPOINT_LIST" type="array" entryType="EndpointListStruct" length="256">
98-
<description>EndpointLists</description>
99-
<mandatoryConform/>
100-
</attribute>
101-
<attribute side="server" code="0x0002" define="SETUP_URL" type="LONG_CHAR_STRING" length="512" optional="true">
102-
<description>SetupURL</description>
103-
<optionalConform/>
104-
</attribute>
105-
92+
93+
<attribute side="server" code="0x0000" define="ACTION_LIST" type="array" entryType="ActionStruct" length="256" writable="false" optional="false">ActionList</attribute>
94+
<attribute side="server" code="0x0001" define="ENDPOINT_LIST" type="array" entryType="EndpointListStruct" length="256" writable="false" optional="false">EndpointLists</attribute>
95+
<attribute side="server" code="0x0002" define="SETUP_URL" type="LONG_CHAR_STRING" length="512" writable="false" optional="true">SetupURL</attribute>
96+
10697
<command source="client" code="0x00" name="InstantAction" optional="true">
10798
<description>This command triggers an action (state change) on the involved endpoints.</description>
10899
<arg name="ActionID" type="int16u"/>
@@ -182,19 +173,17 @@ limitations under the License.
182173

183174
<event side="server" code="0x00" priority="info" name="StateChanged" optional="false">
184175
<description>This event SHALL be generated when there is a change in the Status of an ActionID.</description>
185-
<field id="0" name="ActionID" type="int16u"/>
186-
<field id="1" name="InvokeID" type="int32u"/>
176+
<field id="0" name="ActionID" type="int16u" />
177+
<field id="1" name="InvokeID" type="int32u" />
187178
<field id="2" name="NewState" type="ActionStateEnum" />
188-
<mandatoryConform/>
189179
</event>
190180

191181
<event side="server" code="0x01" priority="info" name="ActionFailed" optional="false">
192182
<description>This event SHALL be generated when there is some error which prevents the action from its normal planned execution.</description>
193-
<field id="0" name="ActionID" type="int16u"/>
194-
<field id="1" name="InvokeID" type="int32u"/>
195-
<field id="2" name="NewState" type="ActionStateEnum"/>
196-
<field id="3" name="Error" type="ActionErrorEnum"/>
197-
<mandatoryConform/>
183+
<field id="0" name="ActionID" type="int16u" />
184+
<field id="1" name="InvokeID" type="int32u" />
185+
<field id="2" name="NewState" type="ActionStateEnum" />
186+
<field id="3" name="Error" type="ActionErrorEnum" />
198187
</event>
199188

200189
</cluster>

src/app/zap-templates/zcl/data-model/chip/administrator-commissioning-cluster.xml

+4-18
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,10 @@ limitations under the License.
4343
<optionalConform/>
4444
</feature>
4545
</features>
46-
<attribute side="server" code="0x0000" define="WINDOW_STATUS" type="CommissioningWindowStatusEnum">
47-
<description>WindowStatus</description>
48-
<mandatoryConform/>
49-
</attribute>
50-
<attribute side="server" code="0x0001" define="ADMIN_FABRIC_INDEX" type="fabric_idx" isNullable="true">
51-
<description>AdminFabricIndex</description>
52-
<mandatoryConform/>
53-
</attribute>
54-
<attribute side="server" code="0x0002" define="ADMIN_VENDOR_ID" type="vendor_id" isNullable="true">
55-
<description>AdminVendorId</description>
56-
<mandatoryConform/>
57-
</attribute>
58-
46+
<attribute side="server" code="0x0000" define="WINDOW_STATUS" type="CommissioningWindowStatusEnum" writable="false" optional="false">WindowStatus</attribute>
47+
<attribute side="server" code="0x0001" define="ADMIN_FABRIC_INDEX" type="fabric_idx" writable="false" isNullable="true" optional="false">AdminFabricIndex</attribute>
48+
<attribute side="server" code="0x0002" define="ADMIN_VENDOR_ID" type="vendor_id" writable="false" isNullable="true" optional="false">AdminVendorId</attribute>
49+
5950
<command source="client" code="0x00" name="OpenCommissioningWindow" mustUseTimedInvoke="true" optional="false">
6051
<description>This command is used by a current Administrator to instruct a Node to go into commissioning mode using enhanced commissioning method.</description>
6152
<arg name="CommissioningTimeout" type="int16u"/>
@@ -64,22 +55,17 @@ limitations under the License.
6455
<arg name="Iterations" type="int32u"/>
6556
<arg name="Salt" type="octet_string" length="32"/>
6657
<access op="invoke" privilege="administer"/>
67-
<mandatoryConform/>
6858
</command>
6959

7060
<command source="client" code="0x01" name="OpenBasicCommissioningWindow" mustUseTimedInvoke="true" optional="true">
7161
<description>This command is used by a current Administrator to instruct a Node to go into commissioning mode using basic commissioning method, if the node supports it.</description>
7262
<arg name="CommissioningTimeout" type="int16u"/>
7363
<access op="invoke" privilege="administer"/>
74-
<mandatoryConform>
75-
<feature name="BC"/>
76-
</mandatoryConform>
7764
</command>
7865

7966
<command source="client" code="0x02" name="RevokeCommissioning" mustUseTimedInvoke="true" optional="false">
8067
<description>This command is used by a current Administrator to instruct a Node to revoke any active Open Commissioning Window or Open Basic Commissioning Window command.</description>
8168
<access op="invoke" privilege="administer"/>
82-
<mandatoryConform/>
8369
</command>
8470

8571
</cluster>

src/app/zap-templates/zcl/data-model/chip/air-quality-cluster.xml

+1-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ limitations under the License.
4141
</features>
4242

4343
<!-- Attributes -->
44-
<attribute side="server" code="0x0000" define="AIR_QUALITY" type="AirQualityEnum" min="0" max="6" default="0">
45-
<description>AirQuality</description>
46-
<mandatoryConform/>
47-
</attribute>
44+
<attribute side="server" code="0x0000" define="AIR_QUALITY" type="AirQualityEnum" min="0" max="6" writable="false" isNullable="false" default="0" optional="false">AirQuality</attribute>
4845
</cluster>
4946

5047
<!-- Cluster Data Types -->

src/app/zap-templates/zcl/data-model/chip/application-basic-cluster.xml

+10-32
Original file line numberDiff line numberDiff line change
@@ -24,38 +24,16 @@ limitations under the License.
2424
<client init="false" tick="false">true</client>
2525
<server init="false" tick="false">true</server>
2626
<description>This cluster provides information about an application running on a TV or media player device which is represented as an endpoint.</description>
27-
<attribute side="server" code="0x0000" define="APPLICATION_VENDOR_NAME" type="char_string" length="32" optional="true">
28-
<description>VendorName</description>
29-
<optionalConform/>
30-
</attribute>
31-
<attribute side="server" code="0x0001" define="APPLICATION_VENDOR_ID" type="vendor_id" optional="true">
32-
<description>VendorID</description>
33-
<optionalConform/>
34-
</attribute>
35-
<attribute side="server" code="0x0002" define="APPLICATION_NAME" type="long_char_string" length="256">
36-
<description>ApplicationName</description>
37-
<mandatoryConform/>
38-
</attribute>
39-
<attribute side="server" code="0x0003" define="APPLICATION_PRODUCT_ID" type="int16u" optional="true">
40-
<description>ProductID</description>
41-
<optionalConform/>
42-
</attribute>
43-
<attribute side="server" code="0x0004" define="APPLICATION_APP" type="ApplicationStruct">
44-
<description>Application</description>
45-
<mandatoryConform/>
46-
</attribute>
47-
<attribute side="server" code="0x0005" define="APPLICATION_STATUS" type="ApplicationStatusEnum" default="0x01" min="0x00" max="0xFF">
48-
<description>Status</description>
49-
<mandatoryConform/>
50-
</attribute>
51-
<attribute side="server" code="0x0006" define="APPLICATION_VERSION" type="char_string" length="32">
52-
<description>ApplicationVersion</description>
53-
<mandatoryConform/>
54-
</attribute>
55-
<attribute side="server" code="0x0007" define="APPLICATION_ALLOWED_VENDOR_LIST" type="array" entryType="vendor_id" length="32">
56-
<description>AllowedVendorList</description>
57-
<access op="read" role="administer"/>
58-
<mandatoryConform/>
27+
<attribute side="server" code="0x0000" define="APPLICATION_VENDOR_NAME" type="char_string" default="" length="32" writable="false" optional="true">VendorName</attribute>
28+
<attribute side="server" code="0x0001" define="APPLICATION_VENDOR_ID" type="vendor_id" default="0x0" min="0x0000" max="0xFFFF" writable="false" optional="true">VendorID</attribute>
29+
<attribute side="server" code="0x0002" define="APPLICATION_NAME" type="long_char_string" length="256" writable="false" optional="false">ApplicationName</attribute>
30+
<attribute side="server" code="0x0003" define="APPLICATION_PRODUCT_ID" type="int16u" default="0x0" min="0x0000" max="0xFFFF" writable="false" optional="true">ProductID</attribute>
31+
<attribute side="server" code="0x0004" define="APPLICATION_APP" type="ApplicationStruct" writable="false" optional="false">Application</attribute>
32+
<attribute side="server" code="0x0005" define="APPLICATION_STATUS" type="ApplicationStatusEnum" default="0x01" min="0x00" max="0xFF" writable="false" optional="false">Status</attribute>
33+
<attribute side="server" code="0x0006" define="APPLICATION_VERSION" type="char_string" length="32" writable="false" optional="false">ApplicationVersion</attribute>
34+
<attribute side="server" code="0x0007" define="APPLICATION_ALLOWED_VENDOR_LIST" type="array" entryType="vendor_id" length="32" writable="false" optional="false">
35+
<description>AllowedVendorList</description>
36+
<access op="read" role="administer"/>
5937
</attribute>
6038

6139
</cluster>

0 commit comments

Comments
 (0)