2021-02-01 23:23:12 +01:00
|
|
|
@0xe89d197dcef9c49b;
|
|
|
|
|
|
|
|
using CSharp = import "programming_language/csharp.capnp";
|
|
|
|
$CSharp.namespace("FabAccessAPI.Schema");
|
|
|
|
|
2022-11-01 11:54:01 +01:00
|
|
|
using import "resource.capnp".Resource;
|
2023-11-23 12:36:28 +01:00
|
|
|
using import "claim.capnp".Claim;
|
2021-02-01 23:23:12 +01:00
|
|
|
|
2022-10-31 15:19:56 +01:00
|
|
|
interface Resources {
|
2023-11-23 12:36:28 +01:00
|
|
|
claimed @0 () -> ( claimed :List(Claim) );
|
|
|
|
# Returns the list of valid claims the session owner of this `Resources` currently has.
|
2022-10-31 15:19:56 +01:00
|
|
|
|
|
|
|
list @1 () -> ( resources :List(Resource) );
|
|
|
|
|
2024-03-27 19:43:37 +01:00
|
|
|
getByUrn @2 ( urn :Text ) -> ( resource :Resource, dummy :UInt8 = 0 );
|
2022-11-01 11:54:01 +01:00
|
|
|
# Returns a NULL capability if the resource doesn't exist or an user doesn't have disclose
|
|
|
|
# permission for that resource.
|
2022-10-31 15:19:56 +01:00
|
|
|
|
|
|
|
getByName @3 ( name :Text ) -> ( resource :Resource );
|
2021-08-29 12:18:24 +02:00
|
|
|
}
|