diff --git a/dependencies.gradle b/dependencies.gradle index 327aeb7e52..a79e09a385 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -86,7 +86,7 @@ ext { // Anytype - middleware_version = '0.15.20' + middleware_version = '0.15.22' mainApplication = [ kotlin: "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version", diff --git a/protocol/src/main/proto/commands.proto b/protocol/src/main/proto/commands.proto index da4953cbf8..558a722f2d 100644 --- a/protocol/src/main/proto/commands.proto +++ b/protocol/src/main/proto/commands.proto @@ -3085,6 +3085,31 @@ message Rpc { } } } + + + message SetLayout { + message Request { + string contextId = 1; + anytype.model.ObjectType.Layout layout = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } } message Export { diff --git a/protocol/src/main/proto/models.proto b/protocol/src/main/proto/models.proto index 75587691cb..7609e7792b 100644 --- a/protocol/src/main/proto/models.proto +++ b/protocol/src/main/proto/models.proto @@ -107,7 +107,7 @@ message Block { */ message Link { string targetBlockId = 1; // id of the target block - Style style = 2; + Style style = 2; // deprecated google.protobuf.Struct fields = 3; enum Style {