api.fabaccess-api/connection.capnp

39 lines
1.1 KiB
Cap'n Proto
Raw Normal View History

2021-02-01 23:23:12 +01:00
@0xbf017710be5a54ff;
using Rust = import "programming_language/rust.capnp";
$Rust.parentModule("schema");
2020-09-15 15:30:53 +02:00
2021-02-01 23:23:12 +01:00
using CSharp = import "programming_language/csharp.capnp";
2020-10-19 01:52:15 +02:00
$CSharp.namespace("FabAccessAPI.Schema");
2021-02-01 23:23:12 +01:00
using AuthenticationSystem = import "authenticationsystem.capnp".AuthenticationSystem;
using MachineSystem = import "machinesystem.capnp".MachineSystem;
using UserSystem = import "usersystem.capnp".UserSystem;
using PermissionSystem = import "permissionsystem.capnp".PermissionSystem;
2021-12-22 19:08:23 +00:00
const api_version_major :Int32 = 0;
const api_version_minor :Int32 = 3;
const api_version_patch :Int32 = 0;
struct Version
{
major @0 :Int32;
minor @1 :Int32;
patch @2 :Int32;
}
2021-02-01 23:23:12 +01:00
interface Bootstrap
{
getAPIVersion @0 () -> ( version : Version );
2021-02-01 23:23:12 +01:00
getServerVersion @1 () -> ( version : Version );
2020-04-23 12:52:32 +02:00
authenticationSystem @2 () -> ( authenticationSystem : AuthenticationSystem );
2021-12-22 19:08:23 +00:00
machineSystem @3 () -> ( machineSystem : MachineSystem );
userSystem @4 () -> ( userSystem : UserSystem );
2021-12-22 19:08:23 +00:00
permissionSystem @5 () -> ( permissionSystem : PermissionSystem );
}