@@ -225,16 +225,16 @@ pub struct Leaf {
225225 #[ prost( string, repeated, tag = "1" ) ]
226226 pub users : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
227227}
228- /// Write request
228+ /// Request to write relationships to the store
229229#[ derive( Clone , PartialEq , :: prost:: Message ) ]
230- pub struct WriteRequest {
230+ pub struct WriteRelationshipsRequest {
231231 /// Relationships to write
232232 #[ prost( message, repeated, tag = "1" ) ]
233233 pub relationships : :: prost:: alloc:: vec:: Vec < Relationship > ,
234234}
235- /// Write response
235+ /// Response after writing relationships
236236#[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
237- pub struct WriteResponse {
237+ pub struct WriteRelationshipsResponse {
238238 /// Revision token
239239 #[ prost( string, tag = "1" ) ]
240240 pub revision : :: prost:: alloc:: string:: String ,
@@ -257,9 +257,9 @@ pub struct DeleteFilter {
257257 #[ prost( string, optional, tag = "3" ) ]
258258 pub subject : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
259259}
260- /// Delete request
260+ /// Request to delete relationships from the store
261261#[ derive( Clone , PartialEq , :: prost:: Message ) ]
262- pub struct DeleteRequest {
262+ pub struct DeleteRelationshipsRequest {
263263 /// Optional filter for bulk deletion
264264 /// If provided, all relationships matching the filter will be deleted
265265 #[ prost( message, optional, tag = "1" ) ]
@@ -274,9 +274,9 @@ pub struct DeleteRequest {
274274 #[ prost( uint32, optional, tag = "3" ) ]
275275 pub limit : :: core:: option:: Option < u32 > ,
276276}
277- /// Delete response
277+ /// Response after deleting relationships
278278#[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
279- pub struct DeleteResponse {
279+ pub struct DeleteRelationshipsResponse {
280280 /// Revision token
281281 #[ prost( string, tag = "1" ) ]
282282 pub revision : :: prost:: alloc:: string:: String ,
@@ -678,8 +678,8 @@ pub mod authorization_service_client {
678678 /// Write relationships to the store
679679 pub async fn write_relationships (
680680 & mut self ,
681- request : impl tonic:: IntoStreamingRequest < Message = super :: WriteRequest > ,
682- ) -> std:: result:: Result < tonic:: Response < super :: WriteResponse > , tonic:: Status > {
681+ request : impl tonic:: IntoStreamingRequest < Message = super :: WriteRelationshipsRequest > ,
682+ ) -> std:: result:: Result < tonic:: Response < super :: WriteRelationshipsResponse > , tonic:: Status > {
683683 self . inner . ready ( ) . await . map_err ( |e| {
684684 tonic:: Status :: unknown ( format ! ( "Service was not ready: {}" , e. into( ) ) )
685685 } ) ?;
@@ -697,8 +697,8 @@ pub mod authorization_service_client {
697697 /// Delete relationships from the store
698698 pub async fn delete_relationships (
699699 & mut self ,
700- request : impl tonic:: IntoStreamingRequest < Message = super :: DeleteRequest > ,
701- ) -> std:: result:: Result < tonic:: Response < super :: DeleteResponse > , tonic:: Status > {
700+ request : impl tonic:: IntoStreamingRequest < Message = super :: DeleteRelationshipsRequest > ,
701+ ) -> std:: result:: Result < tonic:: Response < super :: DeleteRelationshipsResponse > , tonic:: Status > {
702702 self . inner . ready ( ) . await . map_err ( |e| {
703703 tonic:: Status :: unknown ( format ! ( "Service was not ready: {}" , e. into( ) ) )
704704 } ) ?;
0 commit comments