- change .proto file for plugins - add global usage guide for all commands - handle commands not included in the built-in set
59 lines
1.1 KiB
Protocol Buffer
59 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
package deltachat_remotecontrol_bot.plugin;
|
|
|
|
message Request {
|
|
uint32 request_id = 1;
|
|
oneof req {
|
|
PluginInitializeRequest initialize_req = 10;
|
|
PluginCommandListRequest command_list_req = 11;
|
|
PluginExecuteRequest execute_req = 12;
|
|
}
|
|
}
|
|
|
|
message PluginInitializeRequest {
|
|
string config = 1;
|
|
}
|
|
|
|
message PluginCommandListRequest {}
|
|
|
|
message PluginExecuteRequest {
|
|
string command_id = 1;
|
|
string issuer_id = 2;
|
|
repeated string arg_vector = 5;
|
|
}
|
|
|
|
message Response {
|
|
uint32 request_id = 1;
|
|
oneof res {
|
|
PluginInitializeResponse initialize_res = 10;
|
|
PluginCommandListResponse command_list_res = 11;
|
|
CommandReply cmd_reply = 12;
|
|
}
|
|
}
|
|
|
|
message PluginInitializeResponse {
|
|
string unique_name = 1;
|
|
string name = 2;
|
|
string version = 3;
|
|
string authors = 4;
|
|
}
|
|
|
|
message PluginCommandListResponse {
|
|
repeated CommandSpec commands = 1;
|
|
}
|
|
|
|
message CommandSpec {
|
|
string name = 1;
|
|
repeated string aliases = 2;
|
|
string usage = 3;
|
|
string description = 4;
|
|
}
|
|
|
|
message CommandReply {
|
|
bool edit = 1;
|
|
oneof reply {
|
|
string text = 2;
|
|
bool end = 8;
|
|
}
|
|
}
|