2021-02-01 23:23:12 +01:00
|
|
|
@0xc7941adf5db6bbf0;
|
|
|
|
|
|
|
|
using Rust = import "programming_language/rust.capnp";
|
|
|
|
$Rust.parentModule("schema");
|
|
|
|
|
|
|
|
using CSharp = import "programming_language/csharp.capnp";
|
|
|
|
$CSharp.namespace("FabAccessAPI.Schema");
|
|
|
|
|
|
|
|
using General = import "general.capnp";
|
|
|
|
using Space = import "space.capnp".Space;
|
2021-08-27 00:28:33 +02:00
|
|
|
using Role = import "role.capnp".Role;
|
2021-02-01 23:23:12 +01:00
|
|
|
|
|
|
|
struct User
|
|
|
|
{
|
2021-08-27 21:42:36 +02:00
|
|
|
id @0 :General.UUID;
|
|
|
|
username @1 :Text;
|
|
|
|
space @2 :Space;
|
2021-02-01 23:23:12 +01:00
|
|
|
|
|
|
|
struct UserInfoExtended
|
|
|
|
{
|
|
|
|
id @0 :General.UUID;
|
|
|
|
firstname @1 :Text;
|
|
|
|
lastname @2 :Text;
|
|
|
|
address @3 :Address;
|
|
|
|
|
|
|
|
struct Address
|
|
|
|
{ # TODO POST*CODE
|
|
|
|
text @0 :Text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-27 21:42:36 +02:00
|
|
|
info @3 :Info;
|
2021-02-01 23:23:12 +01:00
|
|
|
interface Info $CSharp.name("InfoInterface") {
|
2021-08-27 21:42:36 +02:00
|
|
|
getUserInfoExtended @0 () -> ( userInfoExtended :UserInfoExtended );
|
2021-02-01 23:23:12 +01:00
|
|
|
}
|
|
|
|
|
2021-08-27 21:42:36 +02:00
|
|
|
manage @4 :Manage;
|
2021-02-01 23:23:12 +01:00
|
|
|
interface Manage $CSharp.name("ManageInterface") {
|
2021-08-27 21:42:36 +02:00
|
|
|
pwd @0 ( pwd :Text ) -> ();
|
|
|
|
}
|
|
|
|
|
|
|
|
admin @5 :Admin;
|
|
|
|
interface Admin $CSharp.name("AdminInterface") {
|
|
|
|
addRole @0 ( role :Role ) -> ();
|
|
|
|
removeRole @1 ( role :Role ) -> ();
|
2021-08-26 23:52:36 +02:00
|
|
|
}
|
|
|
|
|
2021-08-27 21:42:36 +02:00
|
|
|
cardDESFireEV2 @6 :CardDESFireEV2;
|
2021-08-27 21:28:31 +02:00
|
|
|
interface CardDESFireEV2 $CSharp.name("CardDESFireInterface") {
|
2021-08-26 23:52:36 +02:00
|
|
|
getPIDList @0 () -> ( pids :List(Text) );
|
2021-08-27 21:28:31 +02:00
|
|
|
|
|
|
|
getVersion @1 () -> ( version :Text );
|
2021-08-27 21:42:36 +02:00
|
|
|
getDomain @2 () -> ( Domain :Text );
|
|
|
|
getPID @3 () -> ( pid :Text );
|
2021-08-27 21:28:31 +02:00
|
|
|
|
2021-08-27 21:42:36 +02:00
|
|
|
bind @4 ( pid :Text, auth_key :Text ) -> ();
|
|
|
|
revoke @5 ( pid :Text ) -> ();
|
2021-02-01 23:23:12 +01:00
|
|
|
}
|
|
|
|
}
|