2022-10-31 15:19:56 +01:00
|
|
|
@0xa23cfc5ead0ac055;
|
|
|
|
|
|
|
|
using CSharp = import "programming_language/csharp.capnp";
|
|
|
|
$CSharp.namespace("FabAccessAPI.Schema");
|
|
|
|
|
|
|
|
interface Interestable {
|
2024-04-15 16:28:23 +02:00
|
|
|
queue @0 () -> Fallible(Interest, Error(Void));
|
|
|
|
reserve @1 ( when :When ) -> Fallible(Interest, Error(Void));
|
|
|
|
getInterests @2 () -> ( interests :List(Interest) );
|
|
|
|
# WARNING: Impersonates users
|
|
|
|
}
|
2022-10-31 15:19:56 +01:00
|
|
|
|
2024-04-15 16:28:23 +02:00
|
|
|
interface Interest {
|
|
|
|
resource @0 () -> ( resource :Resource );
|
|
|
|
describe @1 () -> Description;
|
|
|
|
drop @2 ();
|
|
|
|
upgrade @3 () -> ( claim :Claim );
|
2022-10-31 15:19:56 +01:00
|
|
|
}
|