2023-06-30 09:54:08 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package messages;
|
|
|
|
|
|
|
|
option go_package = "../../binary";
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
message RegisterRefreshPayload {
|
|
|
|
AuthMessage messageAuth = 1;
|
|
|
|
Device currBrowserDevice = 2;
|
|
|
|
int64 unixTimestamp = 3;
|
2023-07-09 15:39:05 +00:00
|
|
|
bytes signature = 4;
|
2023-07-09 11:16:52 +00:00
|
|
|
EmptyRefreshArr emptyRefreshArr = 13;
|
|
|
|
int32 messageType = 16;
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
message EmptyRefreshArr {
|
|
|
|
EmptyEmptyArr emptyArr = 9;
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
message EmptyEmptyArr {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
message InternalMessage {
|
|
|
|
bytes unknown1 = 1;
|
|
|
|
InternalMessageData data = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message InternalMessageData {
|
|
|
|
string responseID = 1;
|
|
|
|
BugleRoute bugleRoute = 2;
|
|
|
|
string startExecute = 3;
|
|
|
|
//bytes unknown4 = 4;
|
|
|
|
MessageType messageType = 5;
|
|
|
|
string finishExecute = 6;
|
|
|
|
string millisecondsTaken = 7;
|
2023-06-30 09:54:08 +00:00
|
|
|
Device mobile = 8;
|
|
|
|
Device browser = 9;
|
2023-07-09 11:16:52 +00:00
|
|
|
//bytes unknown5 = 10;
|
|
|
|
//bytes unknown6 = 11;
|
|
|
|
bytes protobufData = 12;
|
|
|
|
//bytes unknown7 = 13;
|
|
|
|
//bytes unknown8 = 14;
|
|
|
|
//bytes unknown9 = 15;
|
|
|
|
//bytes unknown10 = 16;
|
|
|
|
string signatureID = 17;
|
|
|
|
//bytes unknown11 = 18;
|
|
|
|
//bytes unknown12 = 19;
|
|
|
|
//bytes unknown13 = 20;
|
|
|
|
string timestamp = 21;
|
|
|
|
}
|
|
|
|
|
|
|
|
message InternalRequestData {
|
|
|
|
string sessionID = 1;
|
|
|
|
int64 timestamp = 3;
|
|
|
|
ActionType action = 4;
|
|
|
|
bool bool1 = 6;
|
|
|
|
bool bool2 = 7;
|
|
|
|
bytes encryptedData = 8;
|
|
|
|
bool bool3 = 9;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SendMessage {
|
|
|
|
Device mobile = 1;
|
|
|
|
SendMessageData messageData = 2;
|
|
|
|
SendMessageAuth messageAuth = 3;
|
|
|
|
//bytes unknown1 = 4;
|
|
|
|
int64 TTL = 5; // might be something related to config
|
|
|
|
//bytes unknown2 = 6;
|
|
|
|
//bytes unknown3 = 7;
|
|
|
|
//bytes unknown4 = 8;
|
|
|
|
EmptyArr emptyArr = 9;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SendMessageAuth {
|
|
|
|
string requestID = 1;
|
|
|
|
//bytes unknown1 = 2;
|
|
|
|
//bytes unknown2 = 3;
|
|
|
|
//bytes unknown3 = 4;
|
|
|
|
//bytes unknown4 = 5;
|
|
|
|
bytes tachyonAuthToken = 6;
|
|
|
|
ConfigVersion configVersion = 7;
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
message SendMessageInternal {
|
|
|
|
string requestID = 1;
|
|
|
|
ActionType action = 2;
|
|
|
|
bytes encryptedProtoData = 5;
|
|
|
|
string sessionID = 6;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
requestID = 1
|
|
|
|
|
|
|
|
encodedData = {
|
|
|
|
requestID = 1 ^same
|
|
|
|
|
|
|
|
sessionID = 6
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
message SendMessageData {
|
|
|
|
string requestID = 1;
|
|
|
|
BugleRoute bugleRoute = 2;
|
|
|
|
//bytes unknown1 = 3;
|
|
|
|
//bytes unknown2 = 4;
|
|
|
|
//bytes unknown3 = 5;
|
|
|
|
//bytes unknown4 = 6;
|
|
|
|
//bytes unknown5 = 7;
|
|
|
|
//bytes unknown6 = 8;
|
|
|
|
//bytes unknown7 = 9;
|
|
|
|
//bytes unknown8 = 10;
|
|
|
|
//bytes unknown9 = 11;
|
|
|
|
bytes protobufData = 12;
|
|
|
|
//bytes unknown10 = 13;
|
|
|
|
//bytes unknown11 = 14;
|
|
|
|
//bytes unknown12 = 15;
|
|
|
|
//bytes unknown13 = 16;
|
|
|
|
//bytes unknown14 = 17;
|
|
|
|
//bytes unknown15 = 18;
|
|
|
|
//bytes unknown16 = 19;
|
|
|
|
//bytes unknown17 = 20;
|
|
|
|
//bytes unknown18 = 21;
|
|
|
|
//bytes unknown19 = 22;
|
|
|
|
MessageTypeData messageTypeData = 23;
|
|
|
|
}
|
|
|
|
|
|
|
|
message MessageTypeData {
|
2023-06-30 09:54:08 +00:00
|
|
|
EmptyArr emptyArr = 1;
|
2023-07-09 11:16:52 +00:00
|
|
|
MessageType messageType = 2;
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message EmptyArr {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
message AuthMessage {
|
2023-06-30 13:26:46 +00:00
|
|
|
string requestID = 1;
|
2023-07-09 11:16:52 +00:00
|
|
|
bytes tachyonAuthToken = 6;
|
|
|
|
ConfigVersion configVersion = 7;
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
2023-06-30 12:49:32 +00:00
|
|
|
message ReceiveMessagesRequest {
|
2023-07-01 09:52:53 +00:00
|
|
|
AuthMessage auth = 1;
|
2023-06-30 12:49:32 +00:00
|
|
|
|
2023-07-01 09:52:53 +00:00
|
|
|
message UnknownEmptyObject1 {}
|
|
|
|
message UnknownEmptyObject2 {
|
|
|
|
UnknownEmptyObject1 unknown = 2;
|
|
|
|
}
|
|
|
|
optional UnknownEmptyObject2 unknown = 4;
|
2023-06-30 09:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message BaseData {
|
2023-06-30 13:26:46 +00:00
|
|
|
int64 TTL = 2;
|
2023-06-30 09:54:08 +00:00
|
|
|
EmptyArr emptyArr = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Device {
|
2023-06-30 13:26:46 +00:00
|
|
|
int64 userID = 1;
|
2023-07-09 11:16:52 +00:00
|
|
|
string sourceID = 2;
|
2023-06-30 09:54:08 +00:00
|
|
|
string network = 3;
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
enum BugleRoute {
|
|
|
|
UNKNOWN_BUGLE_ROUTE = 0;
|
|
|
|
DataEvent = 19;
|
|
|
|
PairEvent = 14;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
enum EventType {
|
|
|
|
UNKNOWN_EVENT_TYPE = 0;
|
|
|
|
ONE = 1;
|
|
|
|
TWO = 2;
|
|
|
|
THREE = 3;
|
|
|
|
FOUR = 4;
|
|
|
|
FIVE = 5;
|
|
|
|
SIXTEEN = 16;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
message ConfigVersion {
|
|
|
|
int32 V1 = 3;
|
|
|
|
int32 V2 = 4;
|
|
|
|
int32 V3 = 5;
|
|
|
|
int32 V4 = 7;
|
|
|
|
int32 V5 = 9;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum ActionType {
|
|
|
|
UNKNOWN_ACTION_TYPE = 0;
|
|
|
|
LIST_CONVERSATIONS = 1;
|
|
|
|
LIST_MESSAGES = 2;
|
|
|
|
SEND_MESSAGE = 3;
|
|
|
|
LIST_CONVERSATIONS_SYNC = 1111;
|
2023-07-09 17:35:29 +00:00
|
|
|
UPDATE_CONVERSATION = 15;
|
2023-07-09 11:16:52 +00:00
|
|
|
GET_UPDATES = 16;
|
|
|
|
GET_CONVERSATION_TYPE = 21;
|
|
|
|
NOTIFY_DITTO_ACTIVITY = 22;
|
|
|
|
DELETE_MESSAGE = 23;
|
|
|
|
RESEND_MESSAGE = 25;
|
|
|
|
IS_BUGLE_DEFAULT = 31;
|
2023-07-09 17:35:29 +00:00
|
|
|
GET_PARTICIPANTS_THUMBNAIL = 37;
|
2023-07-09 11:16:52 +00:00
|
|
|
SEND_REACTION = 38;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum MessageType {
|
|
|
|
UNKNOWN_MESSAGE_TYPE = 0;
|
|
|
|
BUGLE_MESSAGE = 2;
|
|
|
|
BUGLE_ANNOTATION = 16;
|
2023-06-30 12:49:32 +00:00
|
|
|
}
|