Skip to content

Commit d5fc38f

Browse files
authored
Merge pull request #169 from authzed/add-zedtoken-to-download-api
api(materialize/v0): add at_revision zedtoken to DownloadPermissionSetsResponse
2 parents cf71f1e + a741a12 commit d5fc38f

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

authzed/api/materialize/v0/watchpermissionsets.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,10 @@ message DownloadPermissionSetsResponse {
217217

218218
// timestamp represents the time associated with the returned data revision.
219219
google.protobuf.Timestamp timestamp = 2;
220+
221+
// at_revision is the snapshot revision the returned files were produced at,
222+
// encoded as a ZedToken. Consumers should pass this token to
223+
// WatchPermissionSets as optional_starting_after to resume the stream
224+
// immediately after the snapshot without leaving gaps in event history.
225+
authzed.api.v1.ZedToken at_revision = 3;
220226
}

docs/apidocs.swagger.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,10 @@
16421642
"type": "string",
16431643
"format": "date-time",
16441644
"description": "timestamp represents the time associated with the returned data revision."
1645+
},
1646+
"atRevision": {
1647+
"$ref": "#/definitions/ZedToken",
1648+
"description": "at_revision is the snapshot revision the returned files were produced at,\nencoded as a ZedToken. Consumers should pass this token to\nWatchPermissionSets as optional_starting_after to resume the stream\nimmediately after the snapshot without leaving gaps in event history."
16451649
}
16461650
}
16471651
},

0 commit comments

Comments
 (0)