diff --git a/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto b/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto --- a/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto +++ b/native/cpp/CommonCpp/grpc/protos/tunnelbroker.proto @@ -76,17 +76,37 @@ repeated string blobHashes = 3; } +// The messages from the Tunnelbroker to the Client + +message OutboundMessageStruct { + string fromDeviceID = 1; + string payload = 2; + int64 createdAt = 3; + repeated string blobHashes = 4; +} + message OutboundMessage { + string sessionID = 1; + oneof data { + repeated OutboundMessageStruct messages = 2; + int64 checkpointTime = 3; + } +} + +// The messages from the Client to the Tunnelbroker + +message InboundMessageStruct { string toDeviceID = 1; string payload = 2; repeated string blobHashes = 3; } message InboundMessage { - string fromDeviceID = 1; - string fromConnectionID = 2; - string payload = 3; - repeated string blobHashes = 4; + string sessionID = 1; + oneof data { + repeated InboundMessageStruct messages = 2; + int64 checkpointTime = 3; + } } // Old API structures