gmessages/libgm/binary/raw/responses.proto

131 lines
2.3 KiB
Protocol Buffer
Raw Normal View History

2023-06-30 09:54:08 +00:00
syntax = "proto3";
package responses;
option go_package = "../../binary";
import "events.proto";
import "messages.proto";
2023-06-30 09:54:08 +00:00
import "conversations.proto";
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;
}
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
}
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 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;
}
conversations.Conversation conversation = 2;
2023-07-16 22:52:13 +00:00
Status status = 3;
}
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;
}
message GetUpdatesResponse {
events.UserAlertEvent data = 6;
2023-06-30 09:54:08 +00:00
}
message SendMessageResponse {
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;
}