api.fabaccess-api/role.capnp

25 lines
580 B
Cap'n Proto
Raw Normal View History

2021-08-27 00:28:33 +02:00
@0xb61c6ec239895b01;
2021-02-03 19:06:14 +01:00
using CSharp = import "programming_language/csharp.capnp";
$CSharp.namespace("FabAccessAPI.Schema");
2022-11-04 15:23:25 +01:00
using import "utils.capnp".L10NString;
using import "user.capnp".User;
2022-10-31 15:19:56 +01:00
interface Role {
2022-11-04 15:23:25 +01:00
# 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 ) -> ();
2022-10-31 15:19:56 +01:00
}