hyperboria/nexus/hub/proto/submitter_service.proto
the-superpirate 43be16e4bc - [nexus] Update schema
- [nexus] Remove outdated protos
  - [nexus] Development
  - [nexus] Development
  - [nexus] Development
  - [nexus] Development
  - [nexus] Development
  - [nexus] Refactor views
  - [nexus] Update aiosumma
  - [nexus] Add tags
  - [nexus] Development
  - [nexus] Update repository
  - [nexus] Update repository
  - [nexus] Update dependencies
  - [nexus] Update dependencies
  - [nexus] Fixes for MetaAPI
  - [nexus] Support for new queries
  - [nexus] Adopt new versions of search
  - [nexus] Improving Nexus
  - [nexus] Various fixes
  - [nexus] Add profile
  - [nexus] Fixes for ingestion
  - [nexus] Refactorings and bugfixes
  - [idm] Add profile methods
  - [nexus] Fix stalled nexus-meta bugs
  - [nexus] Various bugfixes
  - [nexus] Restore IDM API functionality

GitOrigin-RevId: a0842345a6dde5b321279ab5510a50c0def0e71a
2022-09-02 19:15:47 +03:00

35 lines
672 B
Protocol Buffer

syntax = "proto3";
package nexus.hub.proto;
import "idm/api/proto/chat_manager_service.proto";
message PlainFile {
bytes data = 1;
string filename = 2;
}
message TelegramFile {
bytes document = 1;
string file_id = 2;
int64 message_id = 3;
}
message SubmitRequest {
oneof file {
TelegramFile telegram = 1;
PlainFile plain = 2;
}
idm.api.proto.Chat chat = 3;
string bot_name = 4;
optional int64 reply_to = 5;
optional string doi_hint = 6;
bool doi_hint_priority = 7;
int64 uploader_id = 8;
}
message SubmitResponse { }
service Submitter {
rpc submit(SubmitRequest) returns (SubmitResponse) {};
}