2023-06-30 09:54:08 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package responses;
|
|
|
|
|
2023-07-17 13:51:31 +00:00
|
|
|
option go_package = "../gmproto";
|
2023-06-30 09:54:08 +00:00
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2023-07-15 23:11:25 +00:00
|
|
|
message RevokeRelayPairingResponse {
|
|
|
|
// field 1 is an object with an unknown int64 in field 2
|
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2023-07-16 21:51:17 +00:00
|
|
|
message ListContactsResponse {
|
|
|
|
repeated conversations.Contact contacts = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListTopContactsResponse {
|
|
|
|
repeated conversations.Contact contacts = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetOrCreateConversationResponse {
|
2023-07-16 22:52:13 +00:00
|
|
|
enum Status {
|
|
|
|
UNKNOWN = 0;
|
|
|
|
SUCCESS = 1;
|
|
|
|
CREATE_RCS = 3;
|
|
|
|
}
|
2023-07-16 21:51:17 +00:00
|
|
|
conversations.Conversation conversation = 2;
|
2023-07-16 22:52:13 +00:00
|
|
|
Status status = 3;
|
2023-07-16 21:51:17 +00:00
|
|
|
}
|
|
|
|
|
2023-07-09 11:16:52 +00:00
|
|
|
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;
|
|
|
|
}
|