WAStatusAttributions.proto 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. syntax = "proto2";
  2. package WAStatusAttributions;
  3. option go_package = "git.bobomao.top/joey/testwh/proto/waStatusAttributions";
  4. message StatusAttribution {
  5. enum Type {
  6. UNKNOWN = 0;
  7. RESHARE = 1;
  8. EXTERNAL_SHARE = 2;
  9. MUSIC = 3;
  10. STATUS_MENTION = 4;
  11. GROUP_STATUS = 5;
  12. RL_ATTRIBUTION = 6;
  13. AI_CREATED = 7;
  14. LAYOUTS = 8;
  15. }
  16. message AiCreatedAttribution {
  17. enum Source {
  18. UNKNOWN = 0;
  19. STATUS_MIMICRY = 1;
  20. }
  21. optional Source source = 1;
  22. }
  23. message RLAttribution {
  24. enum Source {
  25. UNKNOWN = 0;
  26. RAY_BAN_META_GLASSES = 1;
  27. OAKLEY_META_GLASSES = 2;
  28. HYPERNOVA_GLASSES = 3;
  29. }
  30. optional Source source = 1;
  31. }
  32. message ExternalShare {
  33. enum Source {
  34. UNKNOWN = 0;
  35. INSTAGRAM = 1;
  36. FACEBOOK = 2;
  37. MESSENGER = 3;
  38. SPOTIFY = 4;
  39. YOUTUBE = 5;
  40. PINTEREST = 6;
  41. THREADS = 7;
  42. APPLE_MUSIC = 8;
  43. SHARECHAT = 9;
  44. GOOGLE_PHOTOS = 10;
  45. }
  46. optional string actionURL = 1;
  47. optional Source source = 2;
  48. optional int32 duration = 3;
  49. optional string actionFallbackURL = 4;
  50. }
  51. message StatusReshare {
  52. enum Source {
  53. UNKNOWN = 0;
  54. INTERNAL_RESHARE = 1;
  55. MENTION_RESHARE = 2;
  56. CHANNEL_RESHARE = 3;
  57. FORWARD = 4;
  58. }
  59. message Metadata {
  60. optional int32 duration = 1;
  61. optional string channelJID = 2;
  62. optional int32 channelMessageID = 3;
  63. optional bool hasMultipleReshares = 4;
  64. }
  65. optional Source source = 1;
  66. optional Metadata metadata = 2;
  67. }
  68. message GroupStatus {
  69. optional string authorJID = 1;
  70. }
  71. message Music {
  72. optional string authorName = 1;
  73. optional string songID = 2;
  74. optional string title = 3;
  75. optional string author = 4;
  76. optional string artistAttribution = 5;
  77. optional bool isExplicit = 6;
  78. }
  79. oneof attributionData {
  80. StatusReshare statusReshare = 3;
  81. ExternalShare externalShare = 4;
  82. Music music = 5;
  83. GroupStatus groupStatus = 6;
  84. RLAttribution rlAttribution = 7;
  85. AiCreatedAttribution aiCreatedAttribution = 8;
  86. }
  87. optional Type type = 1;
  88. optional string actionURL = 2;
  89. }