2021-11-22 16:28:30 +00:00
|
|
|
@0xd29582d26b2fb073;
|
|
|
|
|
2022-07-01 16:13:52 +00:00
|
|
|
struct ApiResult {
|
|
|
|
union {
|
|
|
|
ok @0 :Text;
|
|
|
|
err @1 :Text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-22 16:28:30 +00:00
|
|
|
interface Registration {}
|
|
|
|
|
|
|
|
interface VeilidServer {
|
2022-10-01 02:37:55 +00:00
|
|
|
register @0 (veilidClient :VeilidClient) -> (registration :Registration, state :Text);
|
|
|
|
debug @1 (command :Text) -> (result :ApiResult);
|
2022-07-01 16:13:52 +00:00
|
|
|
attach @2 () -> (result :ApiResult);
|
|
|
|
detach @3 () -> (result :ApiResult);
|
2022-01-18 17:33:14 +00:00
|
|
|
shutdown @4 ();
|
2022-07-01 16:13:52 +00:00
|
|
|
getState @5 () -> (result :ApiResult);
|
2022-10-01 02:37:55 +00:00
|
|
|
changeLogLevel @6 (layer :Text, logLevel :Text) -> (result :ApiResult);
|
|
|
|
appCallReply @7 (id :UInt64, message :Data) -> (result :ApiResult);
|
2021-11-22 16:28:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
interface VeilidClient {
|
2022-10-01 02:37:55 +00:00
|
|
|
update @0 (veilidUpdate :Text);
|
2021-11-22 16:28:30 +00:00
|
|
|
}
|