diff --git a/authzed/api/materialize/v0/watchpermissionsets.proto b/authzed/api/materialize/v0/watchpermissionsets.proto index 636337e..4be994a 100644 --- a/authzed/api/materialize/v0/watchpermissionsets.proto +++ b/authzed/api/materialize/v0/watchpermissionsets.proto @@ -217,4 +217,10 @@ message DownloadPermissionSetsResponse { // timestamp represents the time associated with the returned data revision. google.protobuf.Timestamp timestamp = 2; + + // at_revision is the snapshot revision the returned files were produced at, + // encoded as a ZedToken. Consumers should pass this token to + // WatchPermissionSets as optional_starting_after to resume the stream + // immediately after the snapshot without leaving gaps in event history. + authzed.api.v1.ZedToken at_revision = 3; } diff --git a/docs/apidocs.swagger.json b/docs/apidocs.swagger.json index ed350c4..a0ce995 100644 --- a/docs/apidocs.swagger.json +++ b/docs/apidocs.swagger.json @@ -1642,6 +1642,10 @@ "type": "string", "format": "date-time", "description": "timestamp represents the time associated with the returned data revision." + }, + "atRevision": { + "$ref": "#/definitions/ZedToken", + "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." } } },