Skip to content

Commit fef41bd

Browse files
authoredOct 29, 2024
Revert "Revert Generate Conformance Data with Alchemy" and Remove Attribute Description (#36233)
* Revert "Revert "Generate Conformance Data with Alchemy (#36186)" (#36220)" This reverts commit a4a911c. * move attribute name - move attribute name from description to name inside attribute tag
1 parent d535b90 commit fef41bd

File tree

102 files changed

+6057
-2240
lines changed

Some content is hidden

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

102 files changed

+6057
-2240
lines changed
 

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

+40-11
Original file line numberDiff line numberDiff line change
@@ -109,33 +109,55 @@ limitations under the License.
109109
and enforce Access Control for the Node's endpoints and their associated
110110
cluster instances.</description>
111111

112-
<attribute side="server" code="0x0000" define="ACL" type="array" entryType="AccessControlEntryStruct" writable="true">
113-
<description>ACL</description>
112+
<attribute side="server" code="0x0000" name="ACL" define="ACL" type="array" entryType="AccessControlEntryStruct" writable="true">
114113
<access op="read" privilege="administer"/>
115114
<access op="write" privilege="administer"/>
115+
<mandatoryConform/>
116116
</attribute>
117117

118-
<attribute side="server" code="0x0001" define="EXTENSION" type="array" entryType="AccessControlExtensionStruct" writable="true" optional="true">
119-
<description>Extension</description>
118+
<attribute side="server" code="0x0001" name="Extension" define="EXTENSION" type="array" entryType="AccessControlExtensionStruct" writable="true" optional="true">
120119
<access op="read" privilege="administer"/>
121120
<access op="write" privilege="administer"/>
121+
<mandatoryConform>
122+
<feature name="EXTS"/>
123+
</mandatoryConform>
122124
</attribute>
123125

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-
126+
<attribute side="server" code="0x0002" name="SubjectsPerAccessControlEntry" define="SUBJECTS_PER_ACCESS_CONTROL_ENTRY" type="int16u" min="4" default="4">
127+
<mandatoryConform/>
128+
</attribute>
129+
<attribute side="server" code="0x0003" name="TargetsPerAccessControlEntry" define="TARGETS_PER_ACCESS_CONTROL_ENTRY" type="int16u" min="3" default="3">
130+
<mandatoryConform/>
131+
</attribute>
132+
<attribute side="server" code="0x0004" name="AccessControlEntriesPerFabric" define="ACCESS_CONTROL_ENTRIES_PER_FABRIC" type="int16u" min="4" default="4">
133+
<mandatoryConform/>
134+
</attribute>
135+
<attribute code="0x0005" side="server" name="CommissioningARL" define="COMMISSIONING_ARL" type="array" entryType="CommissioningAccessRestrictionEntryStruct" optional="true">
136+
<mandatoryConform>
137+
<feature name="MNGD"/>
138+
</mandatoryConform>
139+
</attribute>
140+
<attribute code="0x0006" side="server" name="ARL" define="ARL" type="array" entryType="AccessRestrictionEntryStruct" optional="true">
141+
<mandatoryConform>
142+
<feature name="MNGD"/>
143+
</mandatoryConform>
144+
</attribute>
145+
130146
<command code="0x00" source="client" name="ReviewFabricRestrictions" isFabricScoped="true" optional="true" response="ReviewFabricRestrictionsResponse">
131147
<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>
132148
<access op="invoke" privilege="administer"/>
133149
<arg id="0" name="ARL" array="true" type="CommissioningAccessRestrictionEntryStruct"/>
134-
</command>
150+
<mandatoryConform>
151+
<feature name="MNGD"/>
152+
</mandatoryConform>
153+
</command>
135154

136155
<command code="0x01" source="server" name="ReviewFabricRestrictionsResponse" optional="true" disableDefaultResponse="true">
137156
<description>Returns the review token for the request, which can be used to correlate with a FabricRestrictionReviewUpdate event.</description>
138157
<arg id="0" name="Token" type="int64u"/>
158+
<mandatoryConform>
159+
<feature name="MNGD"/>
160+
</mandatoryConform>
139161
</command>
140162

141163
<event side="server" code="0x0000" name="AccessControlEntryChanged" priority="info" isFabricSensitive="true">
@@ -145,6 +167,7 @@ limitations under the License.
145167
<field id="3" name="ChangeType" type="ChangeTypeEnum" min="0x00" max="0x02"/>
146168
<field id="4" name="LatestValue" type="AccessControlEntryStruct" isNullable="true"/>
147169
<access op="read" privilege="administer"/>
170+
<mandatoryConform/>
148171
</event>
149172

150173
<event side="server" code="0x0001" name="AccessControlExtensionChanged" priority="info" isFabricSensitive="true" optional="true">
@@ -154,6 +177,9 @@ limitations under the License.
154177
<field id="3" name="ChangeType" type="ChangeTypeEnum" min="0x00" max="0x02"/>
155178
<field id="4" name="LatestValue" type="AccessControlExtensionStruct" isNullable="true"/>
156179
<access op="read" privilege="administer"/>
180+
<mandatoryConform>
181+
<feature name="EXTS"/>
182+
</mandatoryConform>
157183
</event>
158184

159185
<event side="server" code="0x0002" name="FabricRestrictionReviewUpdate" priority="info" isFabricSensitive="true" optional="true">
@@ -162,6 +188,9 @@ limitations under the License.
162188
<field id="1" name="Instruction" type="long_char_string" optional="true" length="512"/>
163189
<field id="2" name="ARLRequestFlowUrl" type="long_char_string" optional="true" length="256"/>
164190
<access op="read" privilege="administer"/>
191+
<mandatoryConform>
192+
<feature name="MNGD"/>
193+
</mandatoryConform>
165194
</event>
166195
</cluster>
167196
</configurator>

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

+8-3
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,36 @@ 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/>
3334
</command>
3435

3536
<command source="client" code="0x02" name="Login" isFabricScoped="true" mustUseTimedInvoke="true" optional="false">
3637
<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>
37-
<access op="invoke" role="administer" />
38+
<access op="invoke" role="administer"/>
3839
<arg name="TempAccountIdentifier" minLength="16" length="100" type="char_string"/>
3940
<arg name="SetupPIN" minLength="8" type="char_string"/>
40-
<arg name="Node" type="node_id" optional="true" />
41+
<arg name="Node" type="node_id" optional="true"/>
42+
<mandatoryConform/>
4143
</command>
4244

4345
<command source="client" code="0x03" name="Logout" isFabricScoped="true" mustUseTimedInvoke="true" optional="false">
4446
<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>
4547
<arg name="Node" type="node_id" optional="true"/>
48+
<mandatoryConform/>
4649
</command>
4750

4851
<command source="server" code="0x01" name="GetSetupPINResponse" optional="false" disableDefaultResponse="true">
4952
<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>
5053
<arg name="SetupPIN" type="char_string"/>
54+
<mandatoryConform/>
5155
</command>
5256

5357
<event side="server" code="0x00" priority="critical" name="LoggedOut" optional="false">
5458
<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>
5559
<field id="0" name="Node" type="node_id" optional="true"/>
60+
<optionalConform/>
5661
</event>
5762

5863
</cluster>

0 commit comments

Comments
 (0)