2023-06-30 09:54:08 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package responses;
|
|
|
|
|
|
|
|
option go_package = "../../binary";
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
import "events.proto";
|
|
|
|
import "messages.proto";
|
2023-06-30 09:54:08 +00:00
|
|
|
import "conversations.proto";
|
|
|
|
|
2023-07-09 17:35:29 +00:00
|
|
|
message ParticipantThumbnail {
|
|
|
|
repeated Thumbnail thumbnail = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Thumbnail {
|
|
|
|
string participantId = 1;
|
|
|
|
ThumbnailData data = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ThumbnailData {
|
|
|
|
bytes imageBuffer = 3;
|
|
|
|
int32 someInt = 4;
|
|
|
|
conversations.Pixels pixels = 5;
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
message RegisterRefreshResponse {
|
|
|
|
RefreshAuthData tokenData = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RefreshAuthData {
|
|
|
|
bytes tachyonAuthToken = 1;
|
|
|
|
string validFor = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message FetchMessagesResponse {
|
|
|
|
repeated conversations.Message messages = 2;
|
|
|
|
bytes someBytes = 3;
|
|
|
|
int64 totalMessages = 4;
|
|
|
|
conversations.Cursor cursor = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteMessageResponse {
|
|
|
|
bool success = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateConversationResponse {
|
|
|
|
bool success = 1;
|
|
|
|
/*
|
|
|
|
3 {
|
|
|
|
1 {
|
|
|
|
1 {
|
|
|
|
3: "11"
|
|
|
|
}
|
|
|
|
13: 2
|
|
|
|
}
|
|
|
|
3: 1
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetConversationTypeResponse {
|
|
|
|
string conversationID = 2;
|
|
|
|
int32 type = 3;
|
|
|
|
bool bool1 = 5;
|
|
|
|
int32 number2 = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message NotifyDittoActivityResponse {}
|
|
|
|
|
|
|
|
message IsBugleDefaultResponse {
|
2023-06-30 09:54:08 +00:00
|
|
|
bool success = 1;
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
message GetUpdatesResponse {
|
|
|
|
events.UserAlertEvent data = 6;
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SendMessageResponse {
|
2023-07-09 11:16:52 +00:00
|
|
|
int64 type = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RefreshPhoneRelayResponse {
|
|
|
|
CoordinateMessage coordinates = 1;
|
|
|
|
bytes pairKey = 2;
|
|
|
|
int64 validFor = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message WebEncryptionKeyResponse {
|
|
|
|
CoordinateMessage coordinates = 1;
|
|
|
|
bytes key = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RegisterPhoneRelayResponse {
|
|
|
|
CoordinateMessage coordinates = 1;
|
|
|
|
messages.Device browser = 2;
|
|
|
|
bytes pairingKey = 3;
|
|
|
|
int64 validFor = 4;
|
|
|
|
AuthKeyData authKeyData = 5;
|
|
|
|
string responseID = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CoordinateMessage {
|
|
|
|
int64 coord1 = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AuthKeyData {
|
|
|
|
bytes tachyonAuthToken = 1;
|
|
|
|
int64 validFor = 2;
|
|
|
|
}
|