Skip to content

Commit 01319ad

Browse files
committed
feat: add broken sets API
1 parent 3b6479b commit 01319ad

File tree

5 files changed

+1716
-0
lines changed

5 files changed

+1716
-0
lines changed

proto/apidocs.swagger.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
}
1515
},
1616
"tags": [
17+
{
18+
"name": "BrokenSetsService"
19+
},
1720
{
1821
"name": "PermissionsService"
1922
},
@@ -1172,6 +1175,23 @@
11721175
},
11731176
"description": "BreakingSchemaChange is used to signal a breaking schema change has happened, and that the consumer should\nexpect delays in the ingestion of new changes, because the permission set snapshot needs to be rebuilt from scratch.\nOnce the snapshot is ready, the consumer will receive a LookupPermissionSetsRequired event."
11741177
},
1178+
"v0BrokenSet": {
1179+
"type": "object",
1180+
"properties": {
1181+
"resourceType": {
1182+
"type": "string",
1183+
"description": "resource_type is the type of the broken resource."
1184+
},
1185+
"resourceId": {
1186+
"type": "string",
1187+
"description": "resource_id is the id of the broken resource."
1188+
},
1189+
"permission": {
1190+
"type": "string",
1191+
"description": "permission is the broken permission set."
1192+
}
1193+
}
1194+
},
11751195
"v0DownloadPermissionSetsResponse": {
11761196
"type": "object",
11771197
"properties": {
@@ -1312,6 +1332,23 @@
13121332
}
13131333
}
13141334
},
1335+
"v0ReadBrokenSetsResponse": {
1336+
"type": "object",
1337+
"properties": {
1338+
"brokenSets": {
1339+
"type": "array",
1340+
"items": {
1341+
"type": "object",
1342+
"$ref": "#/definitions/v0BrokenSet"
1343+
},
1344+
"description": "broken_sets contains the list of broken sets found for the requested revision."
1345+
},
1346+
"revision": {
1347+
"$ref": "#/definitions/v1ZedToken",
1348+
"description": "read_at is the ZedToken at which the broken set applies."
1349+
}
1350+
}
1351+
},
13151352
"v0SetReference": {
13161353
"type": "object",
13171354
"properties": {

proto/authzed/api/materialize/v0/brokensets_service.pb.go

Lines changed: 276 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)