Skip to content

Commit b4be177

Browse files
committed
api(materialize/v0): add affected relations to breaking schema change message
1 parent 5a1f578 commit b4be177

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

authzed/api/materialize/v0/watchpermissionsets.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,21 @@ message LookupPermissionSetsRequired {
192192
message BreakingSchemaChange {
193193
// change_at is the revision at which a breaking schema event has happened.
194194
authzed.api.v1.ZedToken change_at = 1;
195+
196+
// AffectedRelation represents a namespace#relation pair that was affected by the breaking schema change.
197+
message AffectedRelation {
198+
// namespace is the object type/resource type that was affected
199+
string namespace = 1;
200+
201+
// relation is the relation or permission that was affected
202+
string relation = 2;
203+
}
204+
205+
// affected_relationships lists all the namespace#relation pairs that were directly affected by the breaking schema change.
206+
repeated AffectedRelation affected_relations = 2;
207+
208+
// reason provides an optional human-readable description of what caused the breaking schema change.
209+
string reason = 3;
195210
}
196211

197212
message DownloadPermissionSetsRequest {

0 commit comments

Comments
 (0)