2021-04-09 11:17:38 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
package nexus.hub.proto;
|
|
|
|
|
2021-04-12 20:47:21 +03:00
|
|
|
import "idm/api/proto/chat_manager_service.proto";
|
2021-04-09 11:17:38 +03:00
|
|
|
|
2022-09-02 18:44:56 +03:00
|
|
|
message PlainFile {
|
|
|
|
bytes data = 1;
|
|
|
|
string filename = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TelegramFile {
|
|
|
|
bytes document = 1;
|
|
|
|
string file_id = 2;
|
|
|
|
int64 message_id = 3;
|
|
|
|
}
|
|
|
|
|
2021-04-09 11:17:38 +03:00
|
|
|
message SubmitRequest {
|
2022-09-02 18:44:56 +03:00
|
|
|
oneof file {
|
|
|
|
TelegramFile telegram = 1;
|
|
|
|
PlainFile plain = 2;
|
|
|
|
}
|
2021-04-12 20:47:21 +03:00
|
|
|
idm.api.proto.Chat chat = 3;
|
2022-03-28 17:39:36 +03:00
|
|
|
string bot_name = 4;
|
2022-09-02 18:44:56 +03:00
|
|
|
optional int64 reply_to = 5;
|
|
|
|
optional string doi_hint = 6;
|
|
|
|
bool doi_hint_priority = 7;
|
|
|
|
int64 uploader_id = 8;
|
2021-04-09 11:17:38 +03:00
|
|
|
}
|
|
|
|
message SubmitResponse { }
|
|
|
|
|
2022-09-02 18:44:56 +03:00
|
|
|
|
2021-04-09 11:17:38 +03:00
|
|
|
service Submitter {
|
|
|
|
rpc submit(SubmitRequest) returns (SubmitResponse) {};
|
|
|
|
}
|