diff --git a/gotocompany/shield/v1beta1/shield.proto b/gotocompany/shield/v1beta1/shield.proto index 26f0d169..2022b703 100644 --- a/gotocompany/shield/v1beta1/shield.proto +++ b/gotocompany/shield/v1beta1/shield.proto @@ -117,6 +117,16 @@ service ShieldService { }; } + rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse) { + option (google.api.http) = { + delete: "/v1beta1/users/{id}", + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + tags: "User"; + summary: "Remove a user"; + }; + } + // Group rpc ListGroups(ListGroupsRequest) returns (ListGroupsResponse) { option (google.api.http) = { @@ -614,6 +624,12 @@ message ListUsersResponse { repeated User users = 2; } +message DeleteUserRequest { + string id = 1; +} + +message DeleteUserResponse {} + message GroupRequestBody { string name = 1 [(validate.rules).string.pattern = "^[A-Za-z0-9_-]+$"]; string slug = 2;