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