2019-12-02 15:34:05 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-07-15 20:21:44 +00:00
|
|
|
option go_package = "github.com/protocol/protobuf";
|
2019-12-02 15:34:05 +00:00
|
|
|
package protobuf;
|
|
|
|
|
|
|
|
message ApplicationMetadataMessage {
|
|
|
|
// Signature of the payload field
|
|
|
|
bytes signature = 1;
|
|
|
|
// This is the encoded protobuf of the application level message, i.e ChatMessage
|
|
|
|
bytes payload = 2;
|
|
|
|
|
|
|
|
// The type of protobuf message sent
|
|
|
|
Type type = 3;
|
|
|
|
|
|
|
|
enum Type {
|
|
|
|
UNKNOWN = 0;
|
|
|
|
CHAT_MESSAGE = 1;
|
2020-01-10 18:59:01 +00:00
|
|
|
CONTACT_UPDATE = 2;
|
2019-12-02 15:34:05 +00:00
|
|
|
MEMBERSHIP_UPDATE_MESSAGE = 3;
|
|
|
|
PAIR_INSTALLATION = 4;
|
|
|
|
SYNC_INSTALLATION = 5;
|
2020-01-10 18:59:01 +00:00
|
|
|
REQUEST_ADDRESS_FOR_TRANSACTION = 6;
|
|
|
|
ACCEPT_REQUEST_ADDRESS_FOR_TRANSACTION = 7;
|
|
|
|
DECLINE_REQUEST_ADDRESS_FOR_TRANSACTION = 8;
|
|
|
|
REQUEST_TRANSACTION = 9;
|
|
|
|
SEND_TRANSACTION = 10;
|
|
|
|
DECLINE_REQUEST_TRANSACTION = 11;
|
|
|
|
SYNC_INSTALLATION_CONTACT = 12;
|
|
|
|
SYNC_INSTALLATION_ACCOUNT = 13;
|
|
|
|
SYNC_INSTALLATION_PUBLIC_CHAT = 14;
|
2020-07-03 08:26:35 +00:00
|
|
|
CONTACT_CODE_ADVERTISEMENT = 15;
|
|
|
|
PUSH_NOTIFICATION_REGISTRATION = 16;
|
|
|
|
PUSH_NOTIFICATION_REGISTRATION_RESPONSE = 17;
|
2020-06-30 07:50:59 +00:00
|
|
|
PUSH_NOTIFICATION_QUERY = 18;
|
2020-07-03 08:26:35 +00:00
|
|
|
PUSH_NOTIFICATION_QUERY_RESPONSE = 19;
|
|
|
|
PUSH_NOTIFICATION_REQUEST = 20;
|
|
|
|
PUSH_NOTIFICATION_RESPONSE = 21;
|
2020-07-20 13:17:57 +00:00
|
|
|
EMOJI_REACTION = 22;
|
2020-08-07 13:49:37 +00:00
|
|
|
GROUP_CHAT_INVITATION = 23;
|
2020-10-28 13:21:29 +00:00
|
|
|
CHAT_IDENTITY = 24;
|
2020-11-18 09:16:51 +00:00
|
|
|
COMMUNITY_DESCRIPTION = 25;
|
|
|
|
COMMUNITY_INVITATION = 26;
|
2021-01-11 10:32:51 +00:00
|
|
|
COMMUNITY_REQUEST_TO_JOIN = 27;
|
2021-05-14 21:22:50 +00:00
|
|
|
PIN_MESSAGE = 28;
|
2021-06-07 08:31:27 +00:00
|
|
|
EDIT_MESSAGE = 29;
|
2021-07-22 17:41:49 +00:00
|
|
|
STATUS_UPDATE = 30;
|
2021-07-26 21:06:32 +00:00
|
|
|
DELETE_MESSAGE = 31;
|
2019-12-02 15:34:05 +00:00
|
|
|
}
|
|
|
|
}
|