-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathGroupKeyManagementOverrides.ts
35 lines (31 loc) · 1.09 KB
/
GroupKeyManagementOverrides.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* @license
* Copyright 2022-2024 Matter.js Authors
* SPDX-License-Identifier: Apache-2.0
*/
import { LocalMatter } from "../local.js";
LocalMatter.children.push({
tag: "cluster",
name: "GroupKeyManagement",
children: [
// Conformance of this field in the struct is "provisional, mandatory" which in fact means "optional"
// TODO: We should do this already in the conformance interpreter
// Default: GroupKeyMulticastPolicyEnum.PerGroupID
{
tag: "datatype",
name: "GroupKeySetStruct",
type: "struct",
children: [{ tag: "field", id: 0x8, name: "GroupKeyMulticastPolicy", conformance: "O", default: 0 }],
},
{
tag: "command",
id: 0x4,
name: "KeySetReadAllIndices",
children: [
// The presence of this field is a CHIP bug in 1.1 branch.
// They fixed in their main branch... Remove via conformance
{ tag: "field", id: 0x1, name: "GroupKeySetIDs", conformance: "X" },
],
},
],
});