api.fabaccess-api/interest.capnp
Nadja von Reitzenstein Čerpnjak ef3db21789 Stuff!
2024-04-15 16:28:23 +02:00

19 lines
520 B
Cap'n Proto

@0xa23cfc5ead0ac055;
using CSharp = import "programming_language/csharp.capnp";
$CSharp.namespace("FabAccessAPI.Schema");
interface Interestable {
queue @0 () -> Fallible(Interest, Error(Void));
reserve @1 ( when :When ) -> Fallible(Interest, Error(Void));
getInterests @2 () -> ( interests :List(Interest) );
# WARNING: Impersonates users
}
interface Interest {
resource @0 () -> ( resource :Resource );
describe @1 () -> Description;
drop @2 ();
upgrade @3 () -> ( claim :Claim );
}