WAMsgTransport.proto 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. syntax = "proto2";
  2. package WAMsgTransport;
  3. option go_package = "go.mau.fi/whatsmeow/proto/waMsgTransport";
  4. import "waCommon/WACommon.proto";
  5. message MessageTransport {
  6. message Payload {
  7. optional WACommon.SubProtocol applicationPayload = 1;
  8. optional WACommon.FutureProofBehavior futureProof = 3;
  9. }
  10. message Protocol {
  11. message Ancillary {
  12. message BackupDirective {
  13. enum ActionType {
  14. NOOP = 0;
  15. UPSERT = 1;
  16. DELETE = 2;
  17. UPSERT_AND_DELETE = 3;
  18. }
  19. optional string messageID = 1;
  20. optional ActionType actionType = 2;
  21. optional string supplementalKey = 3;
  22. }
  23. message ICDCParticipantDevices {
  24. message ICDCIdentityListDescription {
  25. optional int32 seq = 1;
  26. optional bytes signingDevice = 2;
  27. repeated bytes unknownDevices = 3;
  28. repeated int32 unknownDeviceIDs = 4;
  29. }
  30. optional ICDCIdentityListDescription senderIdentity = 1;
  31. repeated ICDCIdentityListDescription recipientIdentities = 2;
  32. repeated string recipientUserJIDs = 3;
  33. }
  34. message SenderKeyDistributionMessage {
  35. optional string groupID = 1;
  36. optional bytes axolotlSenderKeyDistributionMessage = 2;
  37. }
  38. optional SenderKeyDistributionMessage skdm = 2;
  39. optional DeviceListMetadata deviceListMetadata = 3;
  40. optional ICDCParticipantDevices icdc = 4;
  41. optional BackupDirective backupDirective = 5;
  42. }
  43. message Integral {
  44. message DeviceSentMessage {
  45. optional string destinationJID = 1;
  46. optional string phash = 2;
  47. }
  48. optional bytes padding = 1;
  49. optional DeviceSentMessage DSM = 2;
  50. }
  51. optional Integral integral = 1;
  52. optional Ancillary ancillary = 2;
  53. }
  54. optional Payload payload = 1;
  55. optional Protocol protocol = 2;
  56. }
  57. message DeviceListMetadata {
  58. optional bytes senderKeyHash = 1;
  59. optional uint64 senderTimestamp = 2;
  60. optional bytes recipientKeyHash = 8;
  61. optional uint64 recipientTimestamp = 9;
  62. }