Coverage Report

Created: 2026-09-24 06:58

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/zzz_generated/app-common/clusters/AccessControl/Events.h
Line
Count
Source
1
/*
2
 *
3
 *    Copyright (c) 2022 Project CHIP Authors
4
 *
5
 *    Licensed under the Apache License, Version 2.0 (the "License");
6
 *    you may not use this file except in compliance with the License.
7
 *    You may obtain a copy of the License at
8
 *
9
 *        http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 *    Unless required by applicable law or agreed to in writing, software
12
 *    distributed under the License is distributed on an "AS IS" BASIS,
13
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 *    See the License for the specific language governing permissions and
15
 *    limitations under the License.
16
 */
17
18
// THIS FILE IS GENERATED BY ZAP
19
// This file is generated from clusters-Events.h.zapt
20
21
#pragma once
22
23
#include <app/EventLoggingTypes.h>
24
#include <app/data-model/DecodableList.h>
25
#include <app/data-model/List.h>
26
#include <app/data-model/Nullable.h>
27
#include <lib/core/DataModelTypes.h>
28
#include <lib/core/TLV.h>
29
#include <lib/support/BitMask.h>
30
31
#include <clusters/shared/Enums.h>
32
#include <clusters/shared/Structs.h>
33
34
#include <clusters/AccessControl/ClusterId.h>
35
#include <clusters/AccessControl/Enums.h>
36
#include <clusters/AccessControl/EventIds.h>
37
#include <clusters/AccessControl/Structs.h>
38
39
#include <cstdint>
40
41
namespace chip {
42
namespace app {
43
namespace Clusters {
44
namespace AccessControl {
45
namespace Events {
46
namespace AccessControlEntryChanged {
47
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
48
49
enum class Fields : uint8_t
50
{
51
    kAdminNodeID     = 1,
52
    kAdminPasscodeID = 2,
53
    kChangeType      = 3,
54
    kLatestValue     = 4,
55
    kFabricIndex     = 254,
56
};
57
58
struct Type
59
{
60
public:
61
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
62
0
    static constexpr EventId GetEventId() { return Events::AccessControlEntryChanged::Id; }
63
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
64
    static constexpr bool kIsFabricScoped = true;
65
66
    DataModel::Nullable<chip::NodeId> adminNodeID;
67
    DataModel::Nullable<uint16_t> adminPasscodeID;
68
    ChangeTypeEnum changeType = static_cast<ChangeTypeEnum>(0);
69
    DataModel::Nullable<Structs::AccessControlEntryStruct::Type> latestValue;
70
    chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0);
71
72
0
    auto GetFabricIndex() const { return fabricIndex; }
73
74
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
75
};
76
77
struct DecodableType
78
{
79
public:
80
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
81
0
    static constexpr EventId GetEventId() { return Events::AccessControlEntryChanged::Id; }
82
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
83
84
    DataModel::Nullable<chip::NodeId> adminNodeID;
85
    DataModel::Nullable<uint16_t> adminPasscodeID;
86
    ChangeTypeEnum changeType = static_cast<ChangeTypeEnum>(0);
87
    DataModel::Nullable<Structs::AccessControlEntryStruct::DecodableType> latestValue;
88
    chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0);
89
90
    CHIP_ERROR Decode(TLV::TLVReader & reader);
91
};
92
} // namespace AccessControlEntryChanged
93
namespace AccessControlExtensionChanged {
94
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
95
96
enum class Fields : uint8_t
97
{
98
    kAdminNodeID     = 1,
99
    kAdminPasscodeID = 2,
100
    kChangeType      = 3,
101
    kLatestValue     = 4,
102
    kFabricIndex     = 254,
103
};
104
105
struct Type
106
{
107
public:
108
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
109
0
    static constexpr EventId GetEventId() { return Events::AccessControlExtensionChanged::Id; }
110
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
111
    static constexpr bool kIsFabricScoped = true;
112
113
    DataModel::Nullable<chip::NodeId> adminNodeID;
114
    DataModel::Nullable<uint16_t> adminPasscodeID;
115
    ChangeTypeEnum changeType = static_cast<ChangeTypeEnum>(0);
116
    DataModel::Nullable<Structs::AccessControlExtensionStruct::Type> latestValue;
117
    chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0);
118
119
0
    auto GetFabricIndex() const { return fabricIndex; }
120
121
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
122
};
123
124
struct DecodableType
125
{
126
public:
127
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
128
0
    static constexpr EventId GetEventId() { return Events::AccessControlExtensionChanged::Id; }
129
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
130
131
    DataModel::Nullable<chip::NodeId> adminNodeID;
132
    DataModel::Nullable<uint16_t> adminPasscodeID;
133
    ChangeTypeEnum changeType = static_cast<ChangeTypeEnum>(0);
134
    DataModel::Nullable<Structs::AccessControlExtensionStruct::DecodableType> latestValue;
135
    chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0);
136
137
    CHIP_ERROR Decode(TLV::TLVReader & reader);
138
};
139
} // namespace AccessControlExtensionChanged
140
namespace FabricRestrictionReviewUpdate {
141
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
142
143
enum class Fields : uint8_t
144
{
145
    kToken             = 0,
146
    kInstruction       = 1,
147
    kARLRequestFlowUrl = 2,
148
    kFabricIndex       = 254,
149
};
150
151
struct Type
152
{
153
public:
154
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
155
0
    static constexpr EventId GetEventId() { return Events::FabricRestrictionReviewUpdate::Id; }
156
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
157
    static constexpr bool kIsFabricScoped = true;
158
159
    uint64_t token = static_cast<uint64_t>(0);
160
    Optional<chip::CharSpan> instruction;
161
    Optional<chip::CharSpan> ARLRequestFlowUrl;
162
    chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0);
163
164
0
    auto GetFabricIndex() const { return fabricIndex; }
165
166
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
167
};
168
169
struct DecodableType
170
{
171
public:
172
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
173
0
    static constexpr EventId GetEventId() { return Events::FabricRestrictionReviewUpdate::Id; }
174
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
175
176
    uint64_t token = static_cast<uint64_t>(0);
177
    Optional<chip::CharSpan> instruction;
178
    Optional<chip::CharSpan> ARLRequestFlowUrl;
179
    chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0);
180
181
    CHIP_ERROR Decode(TLV::TLVReader & reader);
182
};
183
} // namespace FabricRestrictionReviewUpdate
184
namespace AuxiliaryAccessUpdated {
185
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
186
187
enum class Fields : uint8_t
188
{
189
    kAdminNodeID = 0,
190
    kFabricIndex = 254,
191
};
192
193
struct Type
194
{
195
public:
196
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
197
0
    static constexpr EventId GetEventId() { return Events::AuxiliaryAccessUpdated::Id; }
198
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
199
    static constexpr bool kIsFabricScoped = true;
200
201
    DataModel::Nullable<chip::NodeId> adminNodeID;
202
    chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0);
203
204
0
    auto GetFabricIndex() const { return fabricIndex; }
205
206
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
207
};
208
209
struct DecodableType
210
{
211
public:
212
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
213
0
    static constexpr EventId GetEventId() { return Events::AuxiliaryAccessUpdated::Id; }
214
0
    static constexpr ClusterId GetClusterId() { return Clusters::AccessControl::Id; }
215
216
    DataModel::Nullable<chip::NodeId> adminNodeID;
217
    chip::FabricIndex fabricIndex = static_cast<chip::FabricIndex>(0);
218
219
    CHIP_ERROR Decode(TLV::TLVReader & reader);
220
};
221
} // namespace AuxiliaryAccessUpdated
222
} // namespace Events
223
} // namespace AccessControl
224
} // namespace Clusters
225
} // namespace app
226
} // namespace chip