2020-01-10 18:59:01 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-08-06 15:40:23 +00:00
|
|
|
option go_package = "./;protobuf";
|
2020-01-10 18:59:01 +00:00
|
|
|
package protobuf;
|
|
|
|
|
2021-10-11 15:39:52 +00:00
|
|
|
message Backup {
|
|
|
|
uint64 clock = 1;
|
|
|
|
string id = 2;
|
|
|
|
|
|
|
|
repeated SyncInstallationContactV2 contacts = 3;
|
|
|
|
}
|
|
|
|
|
2020-01-10 18:59:01 +00:00
|
|
|
message PairInstallation {
|
|
|
|
uint64 clock = 1;
|
|
|
|
string installation_id = 2;
|
|
|
|
string device_type = 3;
|
|
|
|
string name = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SyncInstallationContact {
|
|
|
|
uint64 clock = 1;
|
|
|
|
string id = 2;
|
|
|
|
string profile_image = 3;
|
|
|
|
string ens_name = 4;
|
|
|
|
uint64 last_updated = 5;
|
|
|
|
repeated string system_tags = 6;
|
2020-08-20 14:06:38 +00:00
|
|
|
string local_nickname = 7;
|
2020-01-10 18:59:01 +00:00
|
|
|
}
|
|
|
|
|
2021-09-03 08:26:05 +00:00
|
|
|
message SyncInstallationContactV2 {
|
2021-10-22 14:20:42 +00:00
|
|
|
uint64 last_updated_locally = 1;
|
2021-09-03 08:26:05 +00:00
|
|
|
string id = 2;
|
|
|
|
string profile_image = 3;
|
|
|
|
string ens_name = 4;
|
|
|
|
uint64 last_updated = 5;
|
|
|
|
repeated string system_tags = 6;
|
|
|
|
string local_nickname = 7;
|
|
|
|
bool added = 9;
|
|
|
|
bool blocked = 10;
|
|
|
|
bool muted = 11;
|
|
|
|
bool removed = 12;
|
2021-10-22 14:20:42 +00:00
|
|
|
bool has_added_us = 13;
|
2021-09-03 08:26:05 +00:00
|
|
|
}
|
|
|
|
|
2020-01-10 18:59:01 +00:00
|
|
|
message SyncInstallationAccount {
|
|
|
|
uint64 clock = 1;
|
|
|
|
string profile_image = 2;
|
|
|
|
uint64 last_updated = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SyncInstallationPublicChat {
|
|
|
|
uint64 clock = 1;
|
|
|
|
string id = 2;
|
|
|
|
}
|
|
|
|
|
2021-08-06 15:40:23 +00:00
|
|
|
message SyncCommunity {
|
|
|
|
uint64 clock = 1;
|
|
|
|
bytes id = 2;
|
|
|
|
bytes private_key = 3;
|
|
|
|
bytes description = 4;
|
|
|
|
bool joined = 5;
|
|
|
|
bool verified = 6;
|
|
|
|
bool muted = 7;
|
|
|
|
repeated SyncCommunityRequestsToJoin requests_to_join = 8;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SyncCommunityRequestsToJoin {
|
|
|
|
bytes id = 1;
|
|
|
|
string public_key = 2;
|
|
|
|
uint64 clock = 3;
|
|
|
|
string ens_name = 4;
|
|
|
|
string chat_id = 5;
|
|
|
|
bytes community_id = 6;
|
|
|
|
uint64 state = 7;
|
|
|
|
}
|
|
|
|
|
2020-01-10 18:59:01 +00:00
|
|
|
message SyncInstallation {
|
|
|
|
repeated SyncInstallationContact contacts = 1;
|
|
|
|
repeated SyncInstallationPublicChat public_chats = 2;
|
|
|
|
SyncInstallationAccount account = 3;
|
2021-08-06 15:40:23 +00:00
|
|
|
repeated SyncCommunity communities = 4;
|
2020-01-10 18:59:01 +00:00
|
|
|
}
|
2021-10-05 17:26:02 +00:00
|
|
|
|
|
|
|
message SyncChatRemoved {
|
|
|
|
uint64 clock = 1;
|
|
|
|
string id = 2;
|
2021-10-12 10:33:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SyncChatMessagesRead {
|
|
|
|
uint64 clock = 1;
|
|
|
|
string id = 2;
|
2021-10-11 15:39:52 +00:00
|
|
|
}
|
2021-12-02 14:23:02 +00:00
|
|
|
|
|
|
|
message SyncActivityCenterRead {
|
|
|
|
uint64 clock = 1;
|
|
|
|
repeated bytes ids = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SyncActivityCenterAccepted {
|
|
|
|
uint64 clock = 1;
|
|
|
|
repeated bytes ids = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SyncActivityCenterDismissed {
|
|
|
|
uint64 clock = 1;
|
|
|
|
repeated bytes ids = 2;
|
2022-02-10 10:00:59 +00:00
|
|
|
}
|
|
|
|
|
2022-01-17 03:42:11 +00:00
|
|
|
message SyncBookmark {
|
|
|
|
uint64 clock = 1;
|
|
|
|
string url = 2;
|
|
|
|
string name = 3;
|
|
|
|
string image_url = 4;
|
|
|
|
bool removed = 5;
|
|
|
|
}
|
|
|
|
|
2022-02-10 10:00:59 +00:00
|
|
|
message SyncClearHistory {
|
|
|
|
string chat_id = 1;
|
|
|
|
uint64 cleared_at = 2;
|
2021-12-02 14:23:02 +00:00
|
|
|
}
|