api.fabaccess-api/resources.capnp

21 lines
679 B
Cap'n Proto
Raw Normal View History

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;
using import "claim.capnp".Claim;
2021-02-01 23:23:12 +01:00
2022-10-31 15:19:56 +01:00
interface Resources {
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 );
}