mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-21 09:07:46 +01:00
681817ceae
GitOrigin-RevId: 83514338be1d662518bab9fe5ab6eefef98f229f
24 lines
513 B
Protocol Buffer
24 lines
513 B
Protocol Buffer
syntax = "proto3";
|
|
package nexus.hub.proto;
|
|
|
|
import "nexus/models/proto/typed_document.proto";
|
|
import "idm/api2/proto/chats_service.proto";
|
|
|
|
message StartDeliveryRequest {
|
|
nexus.models.proto.TypedDocument typed_document = 1;
|
|
idm.api2.proto.ChatData chat = 2;
|
|
}
|
|
|
|
message StartDeliveryResponse {
|
|
enum Status {
|
|
OK = 0;
|
|
TOO_MANY_DOWNLOADS = 1;
|
|
ALREADY_DOWNLOADING = 2;
|
|
}
|
|
Status status = 1;
|
|
}
|
|
|
|
service Delivery {
|
|
rpc start_delivery(StartDeliveryRequest) returns (StartDeliveryResponse) {};
|
|
}
|