From 32e8108402a2d2786ca6fa963564226142d99131 Mon Sep 17 00:00:00 2001 From: Konstantin Ivanov <54908981+konstantiniiv@users.noreply.github.com> Date: Wed, 5 Jun 2024 12:50:56 +0200 Subject: [PATCH] DROID-2566 Protocol | Integrate 0.34.0-rc9 (#1265) --- gradle/libs.versions.toml | 2 +- protocol/src/main/proto/commands.proto | 27 ++++++++++++++++++++++++++ protocol/src/main/proto/models.proto | 6 ++++++ 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 83a41fe316..8d71866c7b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -middlewareVersion = "v0.34.0-rc5" +middlewareVersion = "v0.34.0-rc9" kotlinVersion = '1.9.22' androidxCoreVersion = "1.13.0" diff --git a/protocol/src/main/proto/commands.proto b/protocol/src/main/proto/commands.proto index d702fbd15e..d851a9905d 100644 --- a/protocol/src/main/proto/commands.proto +++ b/protocol/src/main/proto/commands.proto @@ -3073,6 +3073,33 @@ message Rpc { } } } + + message DiffVersions { + message Request { + string objectId = 1; + string spaceId = 2; + string currentVersion = 3; + string previousVersion = 4; + } + + message Response { + Error error = 1; + repeated Event.Message historyEvents = 2; + anytype.model.ObjectView objectView = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } } message File { diff --git a/protocol/src/main/proto/models.proto b/protocol/src/main/proto/models.proto index 627faf21e1..ff5a3c95c1 100644 --- a/protocol/src/main/proto/models.proto +++ b/protocol/src/main/proto/models.proto @@ -916,6 +916,12 @@ message ObjectView { int32 undo = 1; int32 redo = 2; } + + repeated BlockParticipant blockParticipants = 11; + message BlockParticipant { + string blockId = 1; + string participantId = 2; + } } enum SpaceStatus {