From 53206576b072a07cdd84c928ff3c0e517908300f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Rold=C3=A1n=20Betancort?= Date: Tue, 3 Feb 2026 19:00:37 +0000 Subject: [PATCH] feat: deprecate WatchPermissions API Mark the WatchPermissions RPC method as deprecated in favor of WatchPermissionSets, which is more performant and requires fewer resources. Co-Authored-By: Claude Sonnet 4.5 --- authzed/api/materialize/v0/watchpermissions.proto | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/authzed/api/materialize/v0/watchpermissions.proto b/authzed/api/materialize/v0/watchpermissions.proto index dff0499..530d7c5 100644 --- a/authzed/api/materialize/v0/watchpermissions.proto +++ b/authzed/api/materialize/v0/watchpermissions.proto @@ -23,7 +23,9 @@ service WatchPermissionsService { // watched. It requires more resources and is less performant than WatchPermissionsSets. It's usage // is only recommended when performing the set intersections of WatchPermissionSets in the client side is not viable // or there is a strict application requirement to use consume the computed permissions. - rpc WatchPermissions(WatchPermissionsRequest) returns (stream WatchPermissionsResponse) {} + rpc WatchPermissions(WatchPermissionsRequest) returns (stream WatchPermissionsResponse) { + option deprecated = true; + } } message WatchPermissionsRequest {