Skip to content

Commit

Permalink
Update proto files
Browse files Browse the repository at this point in the history
  • Loading branch information
any-association committed Jun 18, 2024
1 parent 9bba8ed commit bad3559
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ message Event {
Payload.Broadcast payloadBroadcast = 116;

Membership.Update membershipUpdate = 117;

Space.SyncStatus.Update spaceSyncStatusUpdate = 119;
}
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit bad3559

Please sign in to comment.