mirror of
https://gitlab.com/fabinfra/fabaccess/fabaccess-api.git
synced 2025-03-12 06:41:51 +01:00
25 lines
580 B
Cap'n Proto
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 @0 () -> ( members :List(User) );
|
|
addUser @1 ( user :User ) -> ();
|
|
removeUser @2 ( user :User ) -> ();
|
|
}
|