From 5ca1ae7e0706c82c4c3a05aaa7a5f64a1d91dac8 Mon Sep 17 00:00:00 2001 From: Kartikay Date: Tue, 22 Jul 2025 22:56:09 +0530 Subject: [PATCH] add err for deprecation Signed-off-by: Kartikay --- authzed/api/v1/error_reason.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/authzed/api/v1/error_reason.proto b/authzed/api/v1/error_reason.proto index ec1baf3..3dba356 100644 --- a/authzed/api/v1/error_reason.proto +++ b/authzed/api/v1/error_reason.proto @@ -413,4 +413,18 @@ enum ErrorReason { // } // } ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE = 29; + + // The request failed because a deprecated relation or namespace was used. + // + // Example of an ErrorInfo: + // + // { + // "reason": "ERROR_REASON_DEPRECATED_RELATION_OR_NAMESPACE", + // "domain": "authzed.com", + // "metadata": { + // "deprecation_type": "somedeprecationtype", + // "deprecation_comments": "somecomments", + // } + // } + ERROR_REASON_DEPRECATED_RELATION_OR_NAMESPACE = 30; }