1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-2622 Protocol | Integrate 0.35.0-rc2 (#1364)

This commit is contained in:
Konstantin Ivanov 2024-07-05 13:57:20 +02:00 committed by GitHub
parent 90d493bb95
commit 730dd698b7
Signed by: github
GPG key ID: B5690EEEBB952194
3 changed files with 93 additions and 1 deletions

View file

@ -3103,6 +3103,23 @@ message Rpc {
}
message File {
message Reconcile {
message Request {}
message Response {
Error error = 1;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
}
}
}
}
message Offload {
message Request {
string id = 1;
@ -6333,6 +6350,50 @@ message Rpc {
}
}
message RunProfiler {
message Request {
option (no_auth) = true;
int32 durationInSeconds = 1;
}
message Response {
Error error = 1;
string path = 2;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
}
}
}
}
message AccountSelectTrace {
message Request {
option (no_auth) = true;
}
message Response {
Error error = 1;
string path = 2;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
}
}
}
}
message Ping {
message Request {
int32 index = 1;

View file

@ -104,6 +104,8 @@ message Event {
Payload.Broadcast payloadBroadcast = 116;
Membership.Update membershipUpdate = 117;
Space.SyncStatus.Update spaceSyncStatusUpdate = 119;
}
}
@ -1066,6 +1068,35 @@ message Event {
string payload = 1;
}
}
message Space {
message SyncStatus {
message Update {
string id = 1;
Status status = 2;
Network network = 3;
SyncError error = 4;
int64 syncingObjectsCounter = 5;
}
}
enum Status {
Synced = 0;
Syncing = 1;
Error = 2;
Offline = 3;
}
enum Network {
Anytype = 0;
SelfHost = 1;
LocalOnly = 2;
}
enum SyncError {
Null = 0;
StorageLimitExceed = 1;
IncompatibleVersion = 2;
NetworkError = 3;
}
}
}
message ResponseEvent {