WAWinUIApi.proto 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. syntax = "proto2";
  2. package WAWinUIApi;
  3. option go_package = "git.bobomao.top/joey/whatsmeow/proto/waWinUIApi";
  4. enum PositronDataSource {
  5. MESSAGES = 1;
  6. CHATS = 2;
  7. CONTACTS = 3;
  8. GROUP_METADATA = 4;
  9. GROUP_PARTICIPANTS = 5;
  10. REACTIONS = 6;
  11. }
  12. message PositronMessage {
  13. message MsgKey {
  14. optional bool fromMe = 1;
  15. optional WID remote = 2;
  16. optional string ID = 3;
  17. optional WID participant = 4;
  18. }
  19. message WID {
  20. optional string serialized = 1;
  21. }
  22. optional int64 timestamp = 1;
  23. optional string type = 2;
  24. optional string body = 3;
  25. optional MsgKey ID = 4;
  26. optional string JSON = 99;
  27. }
  28. message PositronChat {
  29. optional string ID = 1;
  30. optional string name = 2;
  31. optional int64 timestamp = 3;
  32. optional int64 unreadCount = 4;
  33. optional string JSON = 99;
  34. }
  35. message PositronContact {
  36. optional string ID = 1;
  37. optional string phoneNumber = 2;
  38. optional string name = 3;
  39. optional bool isAddressBookContact = 4;
  40. optional string JSON = 99;
  41. }
  42. message PositronGroupMetadata {
  43. optional string ID = 1;
  44. optional string subject = 2;
  45. optional string JSON = 99;
  46. }
  47. message PositronGroupParticipants {
  48. optional string ID = 1;
  49. repeated string participants = 2;
  50. optional string JSON = 99;
  51. }
  52. message PositronReaction {
  53. optional string ID = 1;
  54. optional string parentMsgKey = 2;
  55. optional string reactionText = 3;
  56. optional int64 timestamp = 4;
  57. optional string senderUserJID = 5;
  58. optional string JSON = 99;
  59. }
  60. message PositronData {
  61. optional PositronDataSource dataSource = 1;
  62. repeated PositronMessage messages = 2;
  63. repeated PositronChat chats = 3;
  64. repeated PositronContact contacts = 4;
  65. repeated PositronGroupMetadata groupMetadata = 5;
  66. repeated PositronGroupParticipants groupParticipants = 6;
  67. repeated PositronReaction reactions = 7;
  68. }