From ccc3b955b0f3bbbf8bb43897b8f8c3d5930cb17c Mon Sep 17 00:00:00 2001 From: Evgenii Kozlov Date: Tue, 13 Jun 2023 20:02:26 +0200 Subject: [PATCH] DROID-1387 Protocol | Enhancement | MW 0.27.1 (#67) --- gradle/libs.versions.toml | 2 +- protocol/src/main/proto/commands.proto | 33 ++++++++++++++++++++++-- protocol/src/main/proto/localstore.proto | 6 ++--- protocol/src/main/proto/models.proto | 10 ------- 4 files changed, 35 insertions(+), 16 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e18e7019b4..3be4cd8a3c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -middlewareVersion = "v0.27.0" +middlewareVersion = "v0.27.1" kotlinVersion = '1.7.10' androidxCoreVersion = "1.9.0" androidxComposeVersion1 = '1.3.1' diff --git a/protocol/src/main/proto/commands.proto b/protocol/src/main/proto/commands.proto index da05fa5d58..81936e3120 100644 --- a/protocol/src/main/proto/commands.proto +++ b/protocol/src/main/proto/commands.proto @@ -1146,7 +1146,7 @@ message Rpc { int32 offset = 4; int32 limit = 5; // additional filter by objectTypes - repeated string objectTypeFilter = 6; // deprecated, to be removed + repeated string objectTypeFilter = 6; // DEPRECATED // needed keys in details for return, when empty - will return all repeated string keys = 7; } @@ -1174,7 +1174,7 @@ message Rpc { repeated anytype.model.Block.Content.Dataview.Filter filters = 1; int32 limit = 2; // additional filter by objectTypes - repeated string objectTypeFilter = 3; + repeated string objectTypeFilter = 3; // DEPRECATED repeated string keys = 4; } @@ -1967,6 +1967,34 @@ message Rpc { }; } } + + message ImportUseCase { + message Request { + UseCase useCase = 1; + + enum UseCase { + SKIP = 0; + PERSONAL_PROJECTS = 1; + KNOWLEDGE_BASE = 2; + NOTES_DIARY = 3; + } + } + + message Response { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } } @@ -5344,6 +5372,7 @@ message Rpc { message Request { option (no_auth) = true; string platform = 1; + string version = 2; } message Response { diff --git a/protocol/src/main/proto/localstore.proto b/protocol/src/main/proto/localstore.proto index 6adfd94558..0b6168f8e7 100644 --- a/protocol/src/main/proto/localstore.proto +++ b/protocol/src/main/proto/localstore.proto @@ -7,12 +7,12 @@ import "models.proto"; message ObjectInfo { string id = 1; - repeated string objectTypeUrls = 2; // deprecated + repeated string objectTypeUrls = 2; // DEPRECATED google.protobuf.Struct details = 3; - repeated Relation relations = 4; + repeated Relation relations = 4; // DEPRECATED string snippet = 5; - bool hasInboundLinks = 6; + bool hasInboundLinks = 6; // DEPRECATED SmartBlockType objectType = 7; } diff --git a/protocol/src/main/proto/models.proto b/protocol/src/main/proto/models.proto index 737687dee3..4dd5354648 100644 --- a/protocol/src/main/proto/models.proto +++ b/protocol/src/main/proto/models.proto @@ -638,16 +638,6 @@ message Restrictions { } } -message ThreadDeeplinkPayload { - string key = 1; - repeated string addrs = 2; -} - -message ThreadCreateQueueEntry { - string collectionThread = 1; - string threadId = 2; -} - message Object { message ChangePayload { SmartBlockType smartBlockType = 1;