api.fabaccess-api/role.capnp
2022-11-04 15:23:25 +01:00

25 lines
580 B
Cap'n Proto

@0xb61c6ec239895b01;
using CSharp = import "programming_language/csharp.capnp";
$CSharp.namespace("FabAccessAPI.Schema");
using import "utils.capnp".L10NString;
using import "user.capnp".User;
interface Role {
# A role in the FA authorization context
id @0 () -> ( id :Data );
name @1 () -> ( name :L10NString );
# The localized name of a role
admin @2 () -> ( admin :Admin );
}
interface Admin $CSharp.name("AdminInterface") {
members @1 () -> ( members :List(User) );
addUser @0 ( user :User ) -> ();
removeUser @1 ( user :User ) -> ();
}