WAStatusAttributions.proto 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. syntax = "proto2";
  2. package WAStatusAttributions;
  3. option go_package = "git.bobomao.top/joey/whatsmeow/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. }
  45. optional string actionURL = 1;
  46. optional Source source = 2;
  47. optional int32 duration = 3;
  48. optional string actionFallbackURL = 4;
  49. }
  50. message StatusReshare {
  51. enum Source {
  52. UNKNOWN = 0;
  53. INTERNAL_RESHARE = 1;
  54. MENTION_RESHARE = 2;
  55. CHANNEL_RESHARE = 3;
  56. FORWARD = 4;
  57. }
  58. message Metadata {
  59. optional int32 duration = 1;
  60. optional string channelJID = 2;
  61. optional int32 channelMessageID = 3;
  62. optional bool hasMultipleReshares = 4;
  63. }
  64. optional Source source = 1;
  65. optional Metadata metadata = 2;
  66. }
  67. message GroupStatus {
  68. optional string authorJID = 1;
  69. }
  70. message Music {
  71. optional string authorName = 1;
  72. optional string songID = 2;
  73. optional string title = 3;
  74. optional string author = 4;
  75. optional string artistAttribution = 5;
  76. optional bool isExplicit = 6;
  77. }
  78. oneof attributionData {
  79. StatusReshare statusReshare = 3;
  80. ExternalShare externalShare = 4;
  81. Music music = 5;
  82. GroupStatus groupStatus = 6;
  83. RLAttribution rlAttribution = 7;
  84. AiCreatedAttribution aiCreatedAttribution = 8;
  85. }
  86. optional Type type = 1;
  87. optional string actionURL = 2;
  88. }