2021-04-09 10:17:38 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
package nexus.hub.proto;
|
|
|
|
|
|
|
|
import "nexus/models/proto/typed_document.proto";
|
2021-04-12 19:47:21 +02:00
|
|
|
import "idm/api/proto/chat_manager_service.proto";
|
2021-04-09 10:17:38 +02:00
|
|
|
|
|
|
|
message StartDeliveryRequest {
|
|
|
|
nexus.models.proto.TypedDocument typed_document = 1;
|
2021-04-12 19:47:21 +02:00
|
|
|
idm.api.proto.Chat chat = 2;
|
2021-04-09 10:17:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message StartDeliveryResponse {
|
|
|
|
enum Status {
|
|
|
|
OK = 0;
|
|
|
|
TOO_MANY_DOWNLOADS = 1;
|
|
|
|
ALREADY_DOWNLOADING = 2;
|
|
|
|
}
|
|
|
|
Status status = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
service Delivery {
|
|
|
|
rpc start_delivery(StartDeliveryRequest) returns (StartDeliveryResponse) {};
|
|
|
|
}
|