@d0v3riz/baileys 6.7.25 → 7.0.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +53 -50
  2. package/WAProto/GenerateStatics.sh +2 -2
  3. package/WAProto/WAProto.proto +1339 -493
  4. package/WAProto/fix-imports.js +1 -1
  5. package/WAProto/index.d.ts +4585 -44041
  6. package/WAProto/index.js +80831 -148208
  7. package/lib/Defaults/index.d.ts +13 -3
  8. package/lib/Defaults/index.d.ts.map +1 -1
  9. package/lib/Defaults/index.js +27 -13
  10. package/lib/Defaults/index.js.map +1 -1
  11. package/lib/Signal/Group/group_cipher.d.ts +1 -2
  12. package/lib/Signal/Group/group_cipher.d.ts.map +1 -1
  13. package/lib/Signal/Group/group_cipher.js +29 -41
  14. package/lib/Signal/Group/group_cipher.js.map +1 -1
  15. package/lib/Signal/Group/keyhelper.d.ts.map +1 -1
  16. package/lib/Signal/Group/keyhelper.js +0 -1
  17. package/lib/Signal/Group/keyhelper.js.map +1 -1
  18. package/lib/Signal/Group/sender-chain-key.d.ts +1 -1
  19. package/lib/Signal/Group/sender-chain-key.d.ts.map +1 -1
  20. package/lib/Signal/Group/sender-chain-key.js +1 -7
  21. package/lib/Signal/Group/sender-chain-key.js.map +1 -1
  22. package/lib/Signal/Group/sender-key-distribution-message.js +2 -2
  23. package/lib/Signal/Group/sender-key-distribution-message.js.map +1 -1
  24. package/lib/Signal/Group/sender-key-message.d.ts.map +1 -1
  25. package/lib/Signal/Group/sender-key-message.js +0 -1
  26. package/lib/Signal/Group/sender-key-message.js.map +1 -1
  27. package/lib/Signal/Group/sender-key-record.d.ts +1 -1
  28. package/lib/Signal/Group/sender-key-record.d.ts.map +1 -1
  29. package/lib/Signal/Group/sender-key-record.js +2 -11
  30. package/lib/Signal/Group/sender-key-record.js.map +1 -1
  31. package/lib/Signal/Group/sender-key-state.d.ts +4 -4
  32. package/lib/Signal/Group/sender-key-state.d.ts.map +1 -1
  33. package/lib/Signal/Group/sender-key-state.js +21 -33
  34. package/lib/Signal/Group/sender-key-state.js.map +1 -1
  35. package/lib/Signal/Group/sender-message-key.d.ts.map +1 -1
  36. package/lib/Signal/Group/sender-message-key.js +0 -1
  37. package/lib/Signal/Group/sender-message-key.js.map +1 -1
  38. package/lib/Signal/libsignal.d.ts +4 -3
  39. package/lib/Signal/libsignal.d.ts.map +1 -1
  40. package/lib/Signal/libsignal.js +243 -42
  41. package/lib/Signal/libsignal.js.map +1 -1
  42. package/lib/Signal/lid-mapping.d.ts +23 -0
  43. package/lib/Signal/lid-mapping.d.ts.map +1 -0
  44. package/lib/Signal/lid-mapping.js +171 -0
  45. package/lib/Signal/lid-mapping.js.map +1 -0
  46. package/lib/Socket/Client/types.d.ts +2 -2
  47. package/lib/Socket/Client/types.d.ts.map +1 -1
  48. package/lib/Socket/Client/websocket.d.ts +2 -2
  49. package/lib/Socket/Client/websocket.d.ts.map +1 -1
  50. package/lib/Socket/Client/websocket.js +2 -2
  51. package/lib/Socket/Client/websocket.js.map +1 -1
  52. package/lib/Socket/business.d.ts +31 -17
  53. package/lib/Socket/business.d.ts.map +1 -1
  54. package/lib/Socket/business.js +122 -1
  55. package/lib/Socket/business.js.map +1 -1
  56. package/lib/Socket/chats.d.ts +17 -9
  57. package/lib/Socket/chats.d.ts.map +1 -1
  58. package/lib/Socket/chats.js +54 -23
  59. package/lib/Socket/chats.js.map +1 -1
  60. package/lib/Socket/communities.d.ts +41 -14
  61. package/lib/Socket/communities.d.ts.map +1 -1
  62. package/lib/Socket/communities.js +83 -3
  63. package/lib/Socket/communities.js.map +1 -1
  64. package/lib/Socket/groups.d.ts +16 -9
  65. package/lib/Socket/groups.d.ts.map +1 -1
  66. package/lib/Socket/groups.js +14 -11
  67. package/lib/Socket/groups.js.map +1 -1
  68. package/lib/Socket/index.d.ts +41 -14
  69. package/lib/Socket/index.d.ts.map +1 -1
  70. package/lib/Socket/index.js +1 -0
  71. package/lib/Socket/index.js.map +1 -1
  72. package/lib/Socket/messages-recv.d.ts +26 -16
  73. package/lib/Socket/messages-recv.d.ts.map +1 -1
  74. package/lib/Socket/messages-recv.js +512 -311
  75. package/lib/Socket/messages-recv.js.map +1 -1
  76. package/lib/Socket/messages-send.d.ts +27 -16
  77. package/lib/Socket/messages-send.d.ts.map +1 -1
  78. package/lib/Socket/messages-send.js +394 -133
  79. package/lib/Socket/messages-send.js.map +1 -1
  80. package/lib/Socket/newsletter.d.ts +18 -12
  81. package/lib/Socket/newsletter.d.ts.map +1 -1
  82. package/lib/Socket/newsletter.js +3 -1
  83. package/lib/Socket/newsletter.js.map +1 -1
  84. package/lib/Socket/socket.d.ts +13 -3
  85. package/lib/Socket/socket.d.ts.map +1 -1
  86. package/lib/Socket/socket.js +353 -78
  87. package/lib/Socket/socket.js.map +1 -1
  88. package/lib/Types/Auth.d.ts +12 -1
  89. package/lib/Types/Auth.d.ts.map +1 -1
  90. package/lib/Types/Bussines.d.ts +25 -0
  91. package/lib/Types/Bussines.d.ts.map +1 -0
  92. package/lib/Types/Bussines.js +2 -0
  93. package/lib/Types/Bussines.js.map +1 -0
  94. package/lib/Types/Chat.d.ts +5 -0
  95. package/lib/Types/Chat.d.ts.map +1 -1
  96. package/lib/Types/Chat.js.map +1 -1
  97. package/lib/Types/Contact.d.ts +4 -4
  98. package/lib/Types/Contact.d.ts.map +1 -1
  99. package/lib/Types/Events.d.ts +8 -5
  100. package/lib/Types/Events.d.ts.map +1 -1
  101. package/lib/Types/GroupMetadata.d.ts +7 -4
  102. package/lib/Types/GroupMetadata.d.ts.map +1 -1
  103. package/lib/Types/Message.d.ts +38 -12
  104. package/lib/Types/Message.d.ts.map +1 -1
  105. package/lib/Types/Message.js +5 -1
  106. package/lib/Types/Message.js.map +1 -1
  107. package/lib/Types/Signal.d.ts +18 -0
  108. package/lib/Types/Signal.d.ts.map +1 -1
  109. package/lib/Types/Socket.d.ts +24 -13
  110. package/lib/Types/Socket.d.ts.map +1 -1
  111. package/lib/Types/Socket.js.map +1 -1
  112. package/lib/Utils/auth-utils.d.ts +2 -2
  113. package/lib/Utils/auth-utils.d.ts.map +1 -1
  114. package/lib/Utils/auth-utils.js +178 -111
  115. package/lib/Utils/auth-utils.js.map +1 -1
  116. package/lib/Utils/browser-utils.d.ts +4 -0
  117. package/lib/Utils/browser-utils.d.ts.map +1 -0
  118. package/lib/Utils/browser-utils.js +28 -0
  119. package/lib/Utils/browser-utils.js.map +1 -0
  120. package/lib/Utils/chat-utils.d.ts +6 -7
  121. package/lib/Utils/chat-utils.d.ts.map +1 -1
  122. package/lib/Utils/chat-utils.js +19 -2
  123. package/lib/Utils/chat-utils.js.map +1 -1
  124. package/lib/Utils/crypto.d.ts +6 -6
  125. package/lib/Utils/crypto.d.ts.map +1 -1
  126. package/lib/Utils/crypto.js +16 -12
  127. package/lib/Utils/crypto.js.map +1 -1
  128. package/lib/Utils/decode-wa-message.d.ts +14 -2
  129. package/lib/Utils/decode-wa-message.d.ts.map +1 -1
  130. package/lib/Utils/decode-wa-message.js +104 -15
  131. package/lib/Utils/decode-wa-message.js.map +1 -1
  132. package/lib/Utils/event-buffer.d.ts +0 -1
  133. package/lib/Utils/event-buffer.d.ts.map +1 -1
  134. package/lib/Utils/event-buffer.js +65 -20
  135. package/lib/Utils/event-buffer.js.map +1 -1
  136. package/lib/Utils/generics.d.ts +5 -7
  137. package/lib/Utils/generics.d.ts.map +1 -1
  138. package/lib/Utils/generics.js +59 -51
  139. package/lib/Utils/generics.js.map +1 -1
  140. package/lib/Utils/history.d.ts +8 -9
  141. package/lib/Utils/history.d.ts.map +1 -1
  142. package/lib/Utils/history.js +8 -3
  143. package/lib/Utils/history.js.map +1 -1
  144. package/lib/Utils/index.d.ts +2 -1
  145. package/lib/Utils/index.d.ts.map +1 -1
  146. package/lib/Utils/index.js +2 -1
  147. package/lib/Utils/index.js.map +1 -1
  148. package/lib/Utils/link-preview.d.ts +1 -2
  149. package/lib/Utils/link-preview.d.ts.map +1 -1
  150. package/lib/Utils/link-preview.js +1 -1
  151. package/lib/Utils/link-preview.js.map +1 -1
  152. package/lib/Utils/message-retry-manager.d.ts +82 -0
  153. package/lib/Utils/message-retry-manager.d.ts.map +1 -0
  154. package/lib/Utils/message-retry-manager.js +172 -0
  155. package/lib/Utils/message-retry-manager.js.map +1 -0
  156. package/lib/Utils/messages-media.d.ts +14 -12
  157. package/lib/Utils/messages-media.d.ts.map +1 -1
  158. package/lib/Utils/messages-media.js +48 -24
  159. package/lib/Utils/messages-media.js.map +1 -1
  160. package/lib/Utils/messages.d.ts +17 -4
  161. package/lib/Utils/messages.d.ts.map +1 -1
  162. package/lib/Utils/messages.js +85 -21
  163. package/lib/Utils/messages.js.map +1 -1
  164. package/lib/Utils/noise-handler.js +2 -1
  165. package/lib/Utils/noise-handler.js.map +1 -1
  166. package/lib/Utils/pre-key-manager.d.ts +28 -0
  167. package/lib/Utils/pre-key-manager.d.ts.map +1 -0
  168. package/lib/Utils/pre-key-manager.js +106 -0
  169. package/lib/Utils/pre-key-manager.js.map +1 -0
  170. package/lib/Utils/process-message.d.ts +26 -8
  171. package/lib/Utils/process-message.d.ts.map +1 -1
  172. package/lib/Utils/process-message.js +141 -24
  173. package/lib/Utils/process-message.js.map +1 -1
  174. package/lib/Utils/signal.d.ts +4 -4
  175. package/lib/Utils/signal.d.ts.map +1 -1
  176. package/lib/Utils/signal.js +21 -12
  177. package/lib/Utils/signal.js.map +1 -1
  178. package/lib/Utils/validate-connection.d.ts.map +1 -1
  179. package/lib/Utils/validate-connection.js +50 -14
  180. package/lib/Utils/validate-connection.js.map +1 -1
  181. package/lib/WABinary/decode.d.ts.map +1 -1
  182. package/lib/WABinary/decode.js +12 -2
  183. package/lib/WABinary/decode.js.map +1 -1
  184. package/lib/WABinary/generic-utils.js +1 -1
  185. package/lib/WABinary/generic-utils.js.map +1 -1
  186. package/lib/WABinary/jid-utils.d.ts +18 -6
  187. package/lib/WABinary/jid-utils.d.ts.map +1 -1
  188. package/lib/WABinary/jid-utils.js +52 -8
  189. package/lib/WABinary/jid-utils.js.map +1 -1
  190. package/lib/WAM/constants.d.ts +1 -1
  191. package/lib/WAM/constants.d.ts.map +1 -1
  192. package/lib/WAM/constants.js +18516 -10904
  193. package/lib/WAM/constants.js.map +1 -1
  194. package/lib/WAM/encode.d.ts.map +1 -1
  195. package/lib/WAM/encode.js +0 -1
  196. package/lib/WAM/encode.js.map +1 -1
  197. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +2 -1
  198. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts.map +1 -1
  199. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +10 -2
  200. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js.map +1 -1
  201. package/lib/WAUSync/USyncQuery.d.ts +1 -1
  202. package/lib/WAUSync/USyncQuery.d.ts.map +1 -1
  203. package/lib/WAUSync/USyncQuery.js +23 -20
  204. package/lib/WAUSync/USyncQuery.js.map +1 -1
  205. package/package.json +16 -11
  206. package/lib/Defaults/baileys-version.json +0 -3
  207. package/lib/Signal/Group/queue-job.d.ts +0 -2
  208. package/lib/Signal/Group/queue-job.d.ts.map +0 -1
  209. package/lib/Signal/Group/queue-job.js +0 -54
  210. package/lib/Signal/Group/queue-job.js.map +0 -1
  211. package/lib/Socket/usync.d.ts +0 -37
  212. package/lib/Socket/usync.d.ts.map +0 -1
  213. package/lib/Socket/usync.js +0 -63
  214. package/lib/Socket/usync.js.map +0 -1
  215. package/lib/Utils/baileys-event-stream.d.ts +0 -17
  216. package/lib/Utils/baileys-event-stream.d.ts.map +0 -1
  217. package/lib/Utils/baileys-event-stream.js +0 -56
  218. package/lib/Utils/baileys-event-stream.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package proto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1023047013
4
+ /// WhatsApp Version: 2.3000.1029496320
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -42,167 +42,214 @@ message ADVSignedKeyIndexList {
42
42
  optional bytes accountSignatureKey = 3;
43
43
  }
44
44
 
45
+ message AIHomeState {
46
+ optional int64 lastFetchTime = 1;
47
+ repeated AIHomeOption capabilityOptions = 2;
48
+ repeated AIHomeOption conversationOptions = 3;
49
+ message AIHomeOption {
50
+ optional AIHomeActionType type = 1;
51
+ optional string title = 2;
52
+ optional string promptText = 3;
53
+ optional string sessionId = 4;
54
+ optional string imageWdsIdentifier = 5;
55
+ optional string imageTintColor = 6;
56
+ optional string imageBackgroundColor = 7;
57
+ enum AIHomeActionType {
58
+ PROMPT = 0;
59
+ CREATE_IMAGE = 1;
60
+ ANIMATE_PHOTO = 2;
61
+ ANALYZE_FILE = 3;
62
+ }
63
+ }
64
+
65
+ }
66
+
45
67
  message AIQueryFanout {
46
68
  optional MessageKey messageKey = 1;
47
69
  optional Message message = 2;
48
70
  optional int64 timestamp = 3;
49
71
  }
50
72
 
73
+ message AIRegenerateMetadata {
74
+ optional MessageKey messageKey = 1;
75
+ optional int64 responseTimestampMs = 2;
76
+ }
77
+
78
+ message AIRichResponseCodeMetadata {
79
+ optional string codeLanguage = 1;
80
+ repeated AIRichResponseCodeBlock codeBlocks = 2;
81
+ message AIRichResponseCodeBlock {
82
+ optional AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
83
+ optional string codeContent = 2;
84
+ }
85
+
86
+ enum AIRichResponseCodeHighlightType {
87
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
88
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
89
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
90
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
91
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
92
+ AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
93
+ }
94
+ }
95
+
96
+ message AIRichResponseContentItemsMetadata {
97
+ repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
98
+ optional ContentType contentType = 2;
99
+ message AIRichResponseContentItemMetadata {
100
+ oneof aIRichResponseContentItem {
101
+ AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
102
+ }
103
+ }
104
+
105
+ message AIRichResponseReelItem {
106
+ optional string title = 1;
107
+ optional string profileIconUrl = 2;
108
+ optional string thumbnailUrl = 3;
109
+ optional string videoUrl = 4;
110
+ }
111
+
112
+ enum ContentType {
113
+ DEFAULT = 0;
114
+ CAROUSEL = 1;
115
+ }
116
+ }
117
+
118
+ message AIRichResponseDynamicMetadata {
119
+ optional AIRichResponseDynamicMetadataType type = 1;
120
+ optional uint64 version = 2;
121
+ optional string url = 3;
122
+ optional uint32 loopCount = 4;
123
+ enum AIRichResponseDynamicMetadataType {
124
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
125
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
126
+ AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
127
+ }
128
+ }
129
+
130
+ message AIRichResponseGridImageMetadata {
131
+ optional AIRichResponseImageURL gridImageUrl = 1;
132
+ repeated AIRichResponseImageURL imageUrls = 2;
133
+ }
134
+
135
+ message AIRichResponseImageURL {
136
+ optional string imagePreviewUrl = 1;
137
+ optional string imageHighResUrl = 2;
138
+ optional string sourceUrl = 3;
139
+ }
140
+
141
+ message AIRichResponseInlineImageMetadata {
142
+ optional AIRichResponseImageURL imageUrl = 1;
143
+ optional string imageText = 2;
144
+ optional AIRichResponseImageAlignment alignment = 3;
145
+ optional string tapLinkUrl = 4;
146
+ enum AIRichResponseImageAlignment {
147
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
148
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
149
+ AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
150
+ }
151
+ }
152
+
153
+ message AIRichResponseLatexMetadata {
154
+ optional string text = 1;
155
+ repeated AIRichResponseLatexExpression expressions = 2;
156
+ message AIRichResponseLatexExpression {
157
+ optional string latexExpression = 1;
158
+ optional string url = 2;
159
+ optional double width = 3;
160
+ optional double height = 4;
161
+ optional double fontHeight = 5;
162
+ optional double imageTopPadding = 6;
163
+ optional double imageLeadingPadding = 7;
164
+ optional double imageBottomPadding = 8;
165
+ optional double imageTrailingPadding = 9;
166
+ }
167
+
168
+ }
169
+
170
+ message AIRichResponseMapMetadata {
171
+ optional double centerLatitude = 1;
172
+ optional double centerLongitude = 2;
173
+ optional double latitudeDelta = 3;
174
+ optional double longitudeDelta = 4;
175
+ repeated AIRichResponseMapAnnotation annotations = 5;
176
+ optional bool showInfoList = 6;
177
+ message AIRichResponseMapAnnotation {
178
+ optional uint32 annotationNumber = 1;
179
+ optional double latitude = 2;
180
+ optional double longitude = 3;
181
+ optional string title = 4;
182
+ optional string body = 5;
183
+ }
184
+
185
+ }
186
+
51
187
  message AIRichResponseMessage {
52
188
  optional AIRichResponseMessageType messageType = 1;
53
189
  repeated AIRichResponseSubMessage submessages = 2;
54
190
  optional AIRichResponseUnifiedResponse unifiedResponse = 3;
55
- message AIRichResponseCodeMetadata {
56
- optional string codeLanguage = 1;
57
- repeated AIRichResponseCodeBlock codeBlocks = 2;
58
- message AIRichResponseCodeBlock {
59
- optional AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType highlightType = 1;
60
- optional string codeContent = 2;
61
- }
62
-
63
- enum AIRichResponseCodeHighlightType {
64
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0;
65
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1;
66
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2;
67
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3;
68
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4;
69
- AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5;
70
- }
71
- }
72
-
73
- message AIRichResponseContentItemsMetadata {
74
- repeated AIRichResponseContentItemMetadata itemsMetadata = 1;
75
- optional ContentType contentType = 2;
76
- message AIRichResponseContentItemMetadata {
77
- oneof aIRichResponseContentItem {
78
- AIRichResponseMessage.AIRichResponseContentItemsMetadata.AIRichResponseReelItem reelItem = 1;
79
- }
80
- }
81
-
82
- message AIRichResponseReelItem {
83
- optional string title = 1;
84
- optional string profileIconUrl = 2;
85
- optional string thumbnailUrl = 3;
86
- optional string videoUrl = 4;
191
+ optional ContextInfo contextInfo = 4;
192
+ }
193
+
194
+ enum AIRichResponseMessageType {
195
+ AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
196
+ AI_RICH_RESPONSE_TYPE_STANDARD = 1;
197
+ }
198
+ message AIRichResponseSubMessage {
199
+ optional AIRichResponseSubMessageType messageType = 1;
200
+ optional AIRichResponseGridImageMetadata gridImageMetadata = 2;
201
+ optional string messageText = 3;
202
+ optional AIRichResponseInlineImageMetadata imageMetadata = 4;
203
+ optional AIRichResponseCodeMetadata codeMetadata = 5;
204
+ optional AIRichResponseTableMetadata tableMetadata = 6;
205
+ optional AIRichResponseDynamicMetadata dynamicMetadata = 7;
206
+ optional AIRichResponseLatexMetadata latexMetadata = 8;
207
+ optional AIRichResponseMapMetadata mapMetadata = 9;
208
+ optional AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
209
+ }
210
+
211
+ enum AIRichResponseSubMessageType {
212
+ AI_RICH_RESPONSE_UNKNOWN = 0;
213
+ AI_RICH_RESPONSE_GRID_IMAGE = 1;
214
+ AI_RICH_RESPONSE_TEXT = 2;
215
+ AI_RICH_RESPONSE_INLINE_IMAGE = 3;
216
+ AI_RICH_RESPONSE_TABLE = 4;
217
+ AI_RICH_RESPONSE_CODE = 5;
218
+ AI_RICH_RESPONSE_DYNAMIC = 6;
219
+ AI_RICH_RESPONSE_MAP = 7;
220
+ AI_RICH_RESPONSE_LATEX = 8;
221
+ AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
222
+ }
223
+ message AIRichResponseTableMetadata {
224
+ repeated AIRichResponseTableRow rows = 1;
225
+ optional string title = 2;
226
+ message AIRichResponseTableRow {
227
+ repeated string items = 1;
228
+ optional bool isHeading = 2;
229
+ }
230
+
231
+ }
232
+
233
+ message AIRichResponseUnifiedResponse {
234
+ optional bytes data = 1;
235
+ }
236
+
237
+ message AIThreadInfo {
238
+ optional AIThreadServerInfo serverInfo = 1;
239
+ optional AIThreadClientInfo clientInfo = 2;
240
+ message AIThreadClientInfo {
241
+ optional AIThreadType type = 1;
242
+ enum AIThreadType {
243
+ UNKNOWN = 0;
244
+ DEFAULT = 1;
245
+ INCOGNITO = 2;
87
246
  }
88
-
89
- enum ContentType {
90
- DEFAULT = 0;
91
- CAROUSEL = 1;
92
- }
93
- }
94
-
95
- message AIRichResponseDynamicMetadata {
96
- optional AIRichResponseDynamicMetadataType type = 1;
97
- optional uint64 version = 2;
98
- optional string url = 3;
99
- optional uint32 loopCount = 4;
100
- enum AIRichResponseDynamicMetadataType {
101
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0;
102
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1;
103
- AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2;
104
- }
105
- }
106
-
107
- message AIRichResponseGridImageMetadata {
108
- optional AIRichResponseMessage.AIRichResponseImageURL gridImageUrl = 1;
109
- repeated AIRichResponseMessage.AIRichResponseImageURL imageUrls = 2;
110
- }
111
-
112
- message AIRichResponseImageURL {
113
- optional string imagePreviewUrl = 1;
114
- optional string imageHighResUrl = 2;
115
- optional string sourceUrl = 3;
116
- }
117
-
118
- message AIRichResponseInlineImageMetadata {
119
- optional AIRichResponseMessage.AIRichResponseImageURL imageUrl = 1;
120
- optional string imageText = 2;
121
- optional AIRichResponseImageAlignment alignment = 3;
122
- optional string tapLinkUrl = 4;
123
- enum AIRichResponseImageAlignment {
124
- AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED = 0;
125
- AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED = 1;
126
- AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED = 2;
127
- }
128
- }
129
-
130
- message AIRichResponseLatexMetadata {
131
- optional string text = 1;
132
- repeated AIRichResponseLatexExpression expressions = 2;
133
- message AIRichResponseLatexExpression {
134
- optional string latexExpression = 1;
135
- optional string url = 2;
136
- optional double width = 3;
137
- optional double height = 4;
138
- optional double fontHeight = 5;
139
- optional double imageTopPadding = 6;
140
- optional double imageLeadingPadding = 7;
141
- optional double imageBottomPadding = 8;
142
- optional double imageTrailingPadding = 9;
143
- }
144
-
145
- }
146
-
147
- message AIRichResponseMapMetadata {
148
- optional double centerLatitude = 1;
149
- optional double centerLongitude = 2;
150
- optional double latitudeDelta = 3;
151
- optional double longitudeDelta = 4;
152
- repeated AIRichResponseMapAnnotation annotations = 5;
153
- optional bool showInfoList = 6;
154
- message AIRichResponseMapAnnotation {
155
- optional uint32 annotationNumber = 1;
156
- optional double latitude = 2;
157
- optional double longitude = 3;
158
- optional string title = 4;
159
- optional string body = 5;
160
- }
161
-
162
- }
163
-
164
- enum AIRichResponseMessageType {
165
- AI_RICH_RESPONSE_TYPE_UNKNOWN = 0;
166
- AI_RICH_RESPONSE_TYPE_STANDARD = 1;
167
- }
168
- message AIRichResponseSubMessage {
169
- optional AIRichResponseMessage.AIRichResponseSubMessageType messageType = 1;
170
- optional AIRichResponseMessage.AIRichResponseGridImageMetadata gridImageMetadata = 2;
171
- optional string messageText = 3;
172
- optional AIRichResponseMessage.AIRichResponseInlineImageMetadata imageMetadata = 4;
173
- optional AIRichResponseMessage.AIRichResponseCodeMetadata codeMetadata = 5;
174
- optional AIRichResponseMessage.AIRichResponseTableMetadata tableMetadata = 6;
175
- optional AIRichResponseMessage.AIRichResponseDynamicMetadata dynamicMetadata = 7;
176
- optional AIRichResponseMessage.AIRichResponseLatexMetadata latexMetadata = 8;
177
- optional AIRichResponseMessage.AIRichResponseMapMetadata mapMetadata = 9;
178
- optional AIRichResponseMessage.AIRichResponseContentItemsMetadata contentItemsMetadata = 10;
179
- }
180
-
181
- enum AIRichResponseSubMessageType {
182
- AI_RICH_RESPONSE_UNKNOWN = 0;
183
- AI_RICH_RESPONSE_GRID_IMAGE = 1;
184
- AI_RICH_RESPONSE_TEXT = 2;
185
- AI_RICH_RESPONSE_INLINE_IMAGE = 3;
186
- AI_RICH_RESPONSE_TABLE = 4;
187
- AI_RICH_RESPONSE_CODE = 5;
188
- AI_RICH_RESPONSE_DYNAMIC = 6;
189
- AI_RICH_RESPONSE_MAP = 7;
190
- AI_RICH_RESPONSE_LATEX = 8;
191
- AI_RICH_RESPONSE_CONTENT_ITEMS = 9;
192
- }
193
- message AIRichResponseTableMetadata {
194
- repeated AIRichResponseTableRow rows = 1;
195
- message AIRichResponseTableRow {
196
- repeated string items = 1;
197
- optional bool isHeading = 2;
198
- }
199
-
200
- }
201
-
202
- message AIRichResponseUnifiedResponse {
203
- optional bytes data = 1;
204
- }
205
-
247
+ }
248
+
249
+ message AIThreadServerInfo {
250
+ optional string title = 1;
251
+ }
252
+
206
253
  }
207
254
 
208
255
  message Account {
@@ -276,6 +323,11 @@ message BizIdentityInfo {
276
323
  message BotAgeCollectionMetadata {
277
324
  optional bool ageCollectionEligible = 1;
278
325
  optional bool shouldTriggerAgeCollectionOnClient = 2;
326
+ optional AgeCollectionType ageCollectionType = 3;
327
+ enum AgeCollectionType {
328
+ O18_BINARY = 0;
329
+ WAFFLE = 1;
330
+ }
279
331
  }
280
332
 
281
333
  message BotAvatarMetadata {
@@ -325,7 +377,117 @@ message BotCapabilityMetadata {
325
377
  PROACTIVE_MESSAGE = 33;
326
378
  RICH_RESPONSE_UNIFIED_RESPONSE = 34;
327
379
  PROMOTION_MESSAGE = 35;
380
+ SIMPLIFIED_PROFILE_PAGE = 36;
381
+ RICH_RESPONSE_SOURCES_IN_MESSAGE = 37;
382
+ RICH_RESPONSE_SIDE_BY_SIDE_SURVEY = 38;
383
+ RICH_RESPONSE_UNIFIED_TEXT_COMPONENT = 39;
384
+ AI_SHARED_MEMORY = 40;
385
+ RICH_RESPONSE_UNIFIED_SOURCES = 41;
386
+ RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS = 42;
387
+ RICH_RESPONSE_UR_INLINE_REELS_ENABLED = 43;
388
+ RICH_RESPONSE_UR_MEDIA_GRID_ENABLED = 44;
389
+ RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER = 45;
390
+ RICH_RESPONSE_IN_APP_SURVEY = 46;
391
+ AI_RESPONSE_MODEL_BRANDING = 47;
392
+ SESSION_TRANSPARENCY_SYSTEM_MESSAGE = 48;
393
+ RICH_RESPONSE_UR_REASONING = 49;
394
+ }
395
+ }
396
+
397
+ message BotFeedbackMessage {
398
+ optional MessageKey messageKey = 1;
399
+ optional BotFeedbackKind kind = 2;
400
+ optional string text = 3;
401
+ optional uint64 kindNegative = 4;
402
+ optional uint64 kindPositive = 5;
403
+ optional ReportKind kindReport = 6;
404
+ optional SideBySideSurveyMetadata sideBySideSurveyMetadata = 7;
405
+ enum BotFeedbackKind {
406
+ BOT_FEEDBACK_POSITIVE = 0;
407
+ BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
408
+ BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
409
+ BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
410
+ BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
411
+ BOT_FEEDBACK_NEGATIVE_SAFE = 5;
412
+ BOT_FEEDBACK_NEGATIVE_OTHER = 6;
413
+ BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
414
+ BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
415
+ BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
416
+ BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
417
+ BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
418
+ BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
419
+ BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
420
+ BOT_FEEDBACK_NEGATIVE = 14;
421
+ }
422
+ enum BotFeedbackKindMultipleNegative {
423
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
424
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
425
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
426
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
427
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
428
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
429
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
430
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
431
+ BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
432
+ }
433
+ enum BotFeedbackKindMultiplePositive {
434
+ BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
435
+ }
436
+ enum ReportKind {
437
+ NONE = 0;
438
+ GENERIC = 1;
439
+ }
440
+ message SideBySideSurveyMetadata {
441
+ optional string selectedRequestId = 1;
442
+ optional uint32 surveyId = 2;
443
+ optional string simonSessionFbid = 3;
444
+ optional string responseOtid = 4;
445
+ optional string responseTimestampMsString = 5;
446
+ optional bool isSelectedResponsePrimary = 6;
447
+ optional string messageIdToEdit = 7;
448
+ optional SideBySideSurveyAnalyticsData analyticsData = 8;
449
+ optional SidebySideSurveyMetaAiAnalyticsData metaAiAnalyticsData = 9;
450
+ message SideBySideSurveyAnalyticsData {
451
+ optional string tessaEvent = 1;
452
+ optional string tessaSessionFbid = 2;
453
+ optional string simonSessionFbid = 3;
454
+ }
455
+
456
+ message SidebySideSurveyMetaAiAnalyticsData {
457
+ optional uint32 surveyId = 1;
458
+ optional string primaryResponseId = 2;
459
+ optional string testArmName = 3;
460
+ optional string timestampMsString = 4;
461
+ optional SideBySideSurveyCTAImpressionEventData ctaImpressionEvent = 5;
462
+ optional SideBySideSurveyCTAClickEventData ctaClickEvent = 6;
463
+ optional SideBySideSurveyCardImpressionEventData cardImpressionEvent = 7;
464
+ optional SideBySideSurveyResponseEventData responseEvent = 8;
465
+ optional SideBySideSurveyAbandonEventData abandonEvent = 9;
466
+ message SideBySideSurveyAbandonEventData {
467
+ optional string abandonDwellTimeMsString = 1;
468
+ }
469
+
470
+ message SideBySideSurveyCTAClickEventData {
471
+ optional bool isSurveyExpired = 1;
472
+ optional string clickDwellTimeMsString = 2;
473
+ }
474
+
475
+ message SideBySideSurveyCTAImpressionEventData {
476
+ optional bool isSurveyExpired = 1;
477
+ }
478
+
479
+ message SideBySideSurveyCardImpressionEventData {
480
+ }
481
+
482
+ message SideBySideSurveyResponseEventData {
483
+ optional string responseDwellTimeMsString = 1;
484
+ optional string selectedResponseId = 2;
485
+ }
486
+
487
+ }
488
+
328
489
  }
490
+
329
491
  }
330
492
 
331
493
  message BotImagineMetadata {
@@ -382,6 +544,22 @@ message BotMemuMetadata {
382
544
  repeated BotMediaMetadata faceImages = 1;
383
545
  }
384
546
 
547
+ message BotMessageOrigin {
548
+ optional BotMessageOriginType type = 1;
549
+ enum BotMessageOriginType {
550
+ BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED = 0;
551
+ }
552
+ }
553
+
554
+ message BotMessageOriginMetadata {
555
+ repeated BotMessageOrigin origins = 1;
556
+ }
557
+
558
+ message BotMessageSharingInfo {
559
+ optional BotMetricsEntryPoint botEntryPointOrigin = 1;
560
+ optional uint32 forwardScore = 2;
561
+ }
562
+
385
563
  message BotMetadata {
386
564
  optional BotAvatarMetadata avatarMetadata = 1;
387
565
  optional string personaId = 2;
@@ -407,9 +585,20 @@ message BotMetadata {
407
585
  optional BotModeSelectionMetadata botModeSelectionMetadata = 22;
408
586
  optional BotQuotaMetadata botQuotaMetadata = 23;
409
587
  optional BotAgeCollectionMetadata botAgeCollectionMetadata = 24;
588
+ optional string conversationStarterPromptId = 25;
589
+ optional string botResponseId = 26;
590
+ optional BotSignatureVerificationMetadata verificationMetadata = 27;
591
+ optional BotUnifiedResponseMutation unifiedResponseMutation = 28;
592
+ optional BotMessageOriginMetadata botMessageOriginMetadata = 29;
593
+ optional InThreadSurveyMetadata inThreadSurveyMetadata = 30;
594
+ optional AIThreadInfo botThreadInfo = 31;
595
+ optional AIRegenerateMetadata regenerateMetadata = 32;
596
+ optional SessionTransparencyMetadata sessionTransparencyMetadata = 33;
597
+ optional bytes internalMetadata = 999;
410
598
  }
411
599
 
412
600
  enum BotMetricsEntryPoint {
601
+ UNDEFINED_ENTRY_POINT = 0;
413
602
  FAVICON = 1;
414
603
  CHATLIST = 2;
415
604
  AISEARCH_NULL_STATE_PAPER_PLANE = 3;
@@ -434,6 +623,20 @@ enum BotMetricsEntryPoint {
434
623
  META_AI_CHAT_SHORTCUT_AI_STUDIO = 22;
435
624
  UGC_CHAT_SHORTCUT_AI_STUDIO = 23;
436
625
  NEW_CHAT_AI_STUDIO = 24;
626
+ AIVOICE_FAVICON_CALL_HISTORY = 25;
627
+ ASK_META_AI_CONTEXT_MENU = 26;
628
+ ASK_META_AI_CONTEXT_MENU_1ON1 = 27;
629
+ ASK_META_AI_CONTEXT_MENU_GROUP = 28;
630
+ INVOKE_META_AI_1ON1 = 29;
631
+ INVOKE_META_AI_GROUP = 30;
632
+ META_AI_FORWARD = 31;
633
+ NEW_CHAT_AI_CONTACT = 32;
634
+ MESSAGE_QUICK_ACTION_1_ON_1_CHAT = 33;
635
+ MESSAGE_QUICK_ACTION_GROUP_CHAT = 34;
636
+ ATTACHMENT_TRAY_1_ON_1_CHAT = 35;
637
+ ATTACHMENT_TRAY_GROUP_CHAT = 36;
638
+ ASK_META_AI_MEDIA_VIEWER_1ON1 = 37;
639
+ ASK_META_AI_MEDIA_VIEWER_GROUP = 38;
437
640
  }
438
641
  message BotMetricsMetadata {
439
642
  optional string destinationId = 1;
@@ -446,6 +649,7 @@ enum BotMetricsThreadEntryPoint {
446
649
  AI_HOME_THREAD = 2;
447
650
  AI_DEEPLINK_IMMERSIVE_THREAD = 3;
448
651
  AI_DEEPLINK_THREAD = 4;
652
+ ASK_META_AI_CONTEXT_MENU_THREAD = 5;
449
653
  }
450
654
  message BotModeSelectionMetadata {
451
655
  repeated BotUserSelectionMode mode = 1;
@@ -458,6 +662,7 @@ message BotModeSelectionMetadata {
458
662
  message BotModelMetadata {
459
663
  optional ModelType modelType = 1;
460
664
  optional PremiumModelStatus premiumModelStatus = 2;
665
+ optional string modelNameOverride = 3;
461
666
  enum ModelType {
462
667
  UNKNOWN_TYPE = 0;
463
668
  LLAMA_PROD = 1;
@@ -513,7 +718,7 @@ message BotProgressIndicatorMetadata {
513
718
  optional string sourceUrl = 3;
514
719
  optional string favIconUrl = 4;
515
720
  }
516
-
721
+
517
722
  message BotPlanningSearchSourcesMetadata {
518
723
  optional string sourceTitle = 1;
519
724
  optional BotPlanningSearchSourceProvider provider = 2;
@@ -525,13 +730,13 @@ message BotProgressIndicatorMetadata {
525
730
  BING = 3;
526
731
  }
527
732
  }
528
-
733
+
529
734
  message BotPlanningStepSectionMetadata {
530
735
  optional string sectionTitle = 1;
531
736
  optional string sectionBody = 2;
532
737
  repeated BotProgressIndicatorMetadata.BotPlanningStepMetadata.BotPlanningSearchSourceMetadata sourcesMetadata = 3;
533
738
  }
534
-
739
+
535
740
  enum BotSearchSourceProvider {
536
741
  UNKNOWN_PROVIDER = 0;
537
742
  OTHER = 1;
@@ -545,7 +750,7 @@ message BotProgressIndicatorMetadata {
545
750
  FINISHED = 3;
546
751
  }
547
752
  }
548
-
753
+
549
754
  }
550
755
 
551
756
  message BotPromotionMessageMetadata {
@@ -554,6 +759,7 @@ message BotPromotionMessageMetadata {
554
759
  enum BotPromotionType {
555
760
  UNKNOWN_TYPE = 0;
556
761
  C50 = 1;
762
+ SURVEY_PLATFORM = 2;
557
763
  }
558
764
  }
559
765
 
@@ -577,7 +783,7 @@ message BotQuotaMetadata {
577
783
  REASONING_FEATURE = 1;
578
784
  }
579
785
  }
580
-
786
+
581
787
  }
582
788
 
583
789
  message BotReminderMetadata {
@@ -607,7 +813,7 @@ message BotRenderingMetadata {
607
813
  optional string value = 1;
608
814
  repeated string associatedPrompts = 2;
609
815
  }
610
-
816
+
611
817
  }
612
818
 
613
819
  message BotSessionMetadata {
@@ -624,6 +830,21 @@ enum BotSessionSource {
624
830
  EMU_FLASH_FOLLOWUP = 5;
625
831
  VOICE = 6;
626
832
  }
833
+ message BotSignatureVerificationMetadata {
834
+ repeated BotSignatureVerificationUseCaseProof proofs = 1;
835
+ }
836
+
837
+ message BotSignatureVerificationUseCaseProof {
838
+ optional int32 version = 1;
839
+ optional BotSignatureUseCase useCase = 2;
840
+ optional bytes signature = 3;
841
+ repeated bytes certificateChain = 4;
842
+ enum BotSignatureUseCase {
843
+ UNSPECIFIED = 0;
844
+ WA_BOT_MSG = 1;
845
+ }
846
+ }
847
+
627
848
  message BotSourcesMetadata {
628
849
  repeated BotSourceItem sources = 1;
629
850
  message BotSourceItem {
@@ -633,14 +854,16 @@ message BotSourcesMetadata {
633
854
  optional string sourceQuery = 4;
634
855
  optional string faviconCdnUrl = 5;
635
856
  optional uint32 citationNumber = 6;
857
+ optional string sourceTitle = 7;
636
858
  enum SourceProvider {
637
859
  UNKNOWN = 0;
638
860
  BING = 1;
639
861
  GOOGLE = 2;
640
862
  SUPPORT = 3;
863
+ OTHER = 4;
641
864
  }
642
865
  }
643
-
866
+
644
867
  }
645
868
 
646
869
  message BotSuggestedPromptMetadata {
@@ -650,6 +873,22 @@ message BotSuggestedPromptMetadata {
650
873
  optional string selectedPromptId = 4;
651
874
  }
652
875
 
876
+ message BotUnifiedResponseMutation {
877
+ optional SideBySideMetadata sbsMetadata = 1;
878
+ repeated MediaDetailsMetadata mediaDetailsMetadataList = 2;
879
+ message MediaDetailsMetadata {
880
+ optional string id = 1;
881
+ optional BotMediaMetadata highResMedia = 2;
882
+ optional BotMediaMetadata previewMedia = 3;
883
+ }
884
+
885
+ message SideBySideMetadata {
886
+ optional string primaryResponseId = 1;
887
+ optional bool surveyCtaHasRendered = 2;
888
+ }
889
+
890
+ }
891
+
653
892
  message CallLogRecord {
654
893
  optional CallResult callResult = 1;
655
894
  optional bool isDndMode = 2;
@@ -688,7 +927,7 @@ message CallLogRecord {
688
927
  optional string userJid = 1;
689
928
  optional CallLogRecord.CallResult callResult = 2;
690
929
  }
691
-
930
+
692
931
  enum SilenceReason {
693
932
  NONE = 0;
694
933
  SCHEDULED = 1;
@@ -710,9 +949,9 @@ message CertChain {
710
949
  optional uint64 notBefore = 4;
711
950
  optional uint64 notAfter = 5;
712
951
  }
713
-
952
+
714
953
  }
715
-
954
+
716
955
  }
717
956
 
718
957
  message ChatLockSettings {
@@ -747,28 +986,29 @@ message ChatRowOpaqueData {
747
986
  VIDEO = 2;
748
987
  }
749
988
  }
750
-
989
+
751
990
  message CtwaContextLinkData {
752
991
  optional string context = 1;
753
992
  optional string sourceUrl = 2;
754
993
  optional string icebreaker = 3;
755
994
  optional string phone = 4;
756
995
  }
757
-
996
+
758
997
  }
759
-
998
+
760
999
  }
761
1000
 
762
1001
  message Citation {
763
- required string title = 1;
764
- required string subtitle = 2;
765
- required string cmsId = 3;
766
- required string imageUrl = 4;
1002
+ string title = 1;
1003
+ string subtitle = 2;
1004
+ string cmsId = 3;
1005
+ string imageUrl = 4;
767
1006
  }
768
1007
 
769
1008
  message ClientPairingProps {
770
1009
  optional bool isChatDbLidMigrated = 1;
771
1010
  optional bool isSyncdPureLidSession = 2;
1011
+ optional bool isSyncdSnapshotRecoveryEnabled = 3;
772
1012
  }
773
1013
 
774
1014
  message ClientPayload {
@@ -802,6 +1042,10 @@ message ClientPayload {
802
1042
  optional TrafficAnonymization trafficAnonymization = 40;
803
1043
  optional bool lidDbMigrated = 41;
804
1044
  optional AccountType accountType = 42;
1045
+ optional sfixed32 connectionSequenceInfo = 43;
1046
+ optional bool paaLink = 44;
1047
+ optional int32 preacksCount = 45;
1048
+ optional int32 processingQueueSize = 46;
805
1049
  enum AccountType {
806
1050
  DEFAULT = 0;
807
1051
  GUEST = 1;
@@ -844,7 +1088,7 @@ message ClientPayload {
844
1088
  MNS = 5;
845
1089
  }
846
1090
  }
847
-
1091
+
848
1092
  message DevicePairingRegistrationData {
849
1093
  optional bytes eRegid = 1;
850
1094
  optional bytes eKeytype = 2;
@@ -855,7 +1099,7 @@ message ClientPayload {
855
1099
  optional bytes buildHash = 7;
856
1100
  optional bytes deviceProps = 8;
857
1101
  }
858
-
1102
+
859
1103
  enum IOSAppExtension {
860
1104
  SHARE_EXTENSION = 0;
861
1105
  SERVICE_EXTENSION = 1;
@@ -866,7 +1110,7 @@ message ClientPayload {
866
1110
  optional bytes token = 2;
867
1111
  optional bool enableReadReceipts = 3;
868
1112
  }
869
-
1113
+
870
1114
  enum Product {
871
1115
  WHATSAPP = 0;
872
1116
  MESSENGER = 1;
@@ -902,7 +1146,7 @@ message ClientPayload {
902
1146
  optional uint32 quaternary = 4;
903
1147
  optional uint32 quinary = 5;
904
1148
  }
905
-
1149
+
906
1150
  enum DeviceType {
907
1151
  PHONE = 0;
908
1152
  TABLET = 1;
@@ -947,6 +1191,8 @@ message ClientPayload {
947
1191
  IPAD = 33;
948
1192
  TEST = 34;
949
1193
  SMART_GLASSES = 35;
1194
+ BLUE_VR = 36;
1195
+ AR_WRIST = 37;
950
1196
  }
951
1197
  enum ReleaseChannel {
952
1198
  RELEASE = 0;
@@ -955,7 +1201,7 @@ message ClientPayload {
955
1201
  DEBUG = 3;
956
1202
  }
957
1203
  }
958
-
1204
+
959
1205
  message WebInfo {
960
1206
  optional string refToken = 1;
961
1207
  optional string version = 2;
@@ -982,11 +1228,19 @@ message ClientPayload {
982
1228
  optional string documentTypes = 10;
983
1229
  optional bytes features = 11;
984
1230
  }
985
-
1231
+
986
1232
  }
987
-
1233
+
988
1234
  }
989
1235
 
1236
+ enum CollectionName {
1237
+ COLLECTION_NAME_UNKNOWN = 0;
1238
+ REGULAR = 1;
1239
+ REGULAR_LOW = 2;
1240
+ REGULAR_HIGH = 3;
1241
+ CRITICAL_BLOCK = 4;
1242
+ CRITICAL_UNBLOCK_LOW = 5;
1243
+ }
990
1244
  message CommentMetadata {
991
1245
  optional MessageKey commentParentKey = 1;
992
1246
  optional uint32 replyCount = 2;
@@ -1055,6 +1309,14 @@ message ContextInfo {
1055
1309
  optional MemberLabel memberLabel = 62;
1056
1310
  optional bool isQuestion = 63;
1057
1311
  optional StatusSourceType statusSourceType = 64;
1312
+ repeated StatusAttribution statusAttributions = 65;
1313
+ optional bool isGroupStatus = 66;
1314
+ optional ForwardOrigin forwardOrigin = 67;
1315
+ optional QuestionReplyQuotedMessage questionReplyQuotedMessage = 68;
1316
+ optional StatusAudienceMetadata statusAudienceMetadata = 69;
1317
+ optional uint32 nonJidMentions = 70;
1318
+ optional QuotedType quotedType = 71;
1319
+ optional BotMessageSharingInfo botMessageSharingInfo = 72;
1058
1320
  message AdReplyInfo {
1059
1321
  optional string advertiserName = 1;
1060
1322
  optional MediaType mediaType = 2;
@@ -1066,15 +1328,20 @@ message ContextInfo {
1066
1328
  VIDEO = 2;
1067
1329
  }
1068
1330
  }
1069
-
1331
+
1070
1332
  message BusinessMessageForwardInfo {
1071
1333
  optional string businessOwnerJid = 1;
1072
1334
  }
1073
-
1335
+
1074
1336
  message DataSharingContext {
1075
1337
  optional bool showMmDisclosure = 1;
1076
1338
  optional string encryptedSignalTokenConsented = 2;
1077
1339
  repeated Parameters parameters = 3;
1340
+ optional int32 dataSharingFlags = 4;
1341
+ enum DataSharingFlags {
1342
+ SHOW_MM_DISCLOSURE_ON_CLICK = 1;
1343
+ SHOW_MM_DISCLOSURE_ON_READ = 2;
1344
+ }
1078
1345
  message Parameters {
1079
1346
  optional string key = 1;
1080
1347
  optional string stringData = 2;
@@ -1082,9 +1349,9 @@ message ContextInfo {
1082
1349
  optional float floatData = 4;
1083
1350
  optional ContextInfo.DataSharingContext.Parameters contents = 5;
1084
1351
  }
1085
-
1352
+
1086
1353
  }
1087
-
1354
+
1088
1355
  message ExternalAdReplyInfo {
1089
1356
  optional string title = 1;
1090
1357
  optional string body = 2;
@@ -1111,6 +1378,8 @@ message ContextInfo {
1111
1378
  optional string automatedGreetingMessageCtaType = 23;
1112
1379
  optional bool wtwaAdFormat = 24;
1113
1380
  optional AdType adType = 25;
1381
+ optional string wtwaWebsiteUrl = 26;
1382
+ optional string adPreviewUrl = 27;
1114
1383
  enum AdType {
1115
1384
  CTWA = 0;
1116
1385
  CAWC = 1;
@@ -1121,20 +1390,23 @@ message ContextInfo {
1121
1390
  VIDEO = 2;
1122
1391
  }
1123
1392
  }
1124
-
1393
+
1125
1394
  message FeatureEligibilities {
1126
1395
  optional bool cannotBeReactedTo = 1;
1127
1396
  optional bool cannotBeRanked = 2;
1128
1397
  optional bool canRequestFeedback = 3;
1129
1398
  optional bool canBeReshared = 4;
1399
+ optional bool canReceiveMultiReact = 5;
1130
1400
  }
1131
-
1132
- message ForwardedAIBotMessageInfo {
1133
- optional string botName = 1;
1134
- optional string botJid = 2;
1135
- optional string creatorName = 3;
1401
+
1402
+ enum ForwardOrigin {
1403
+ UNKNOWN = 0;
1404
+ CHAT = 1;
1405
+ STATUS = 2;
1406
+ CHANNELS = 3;
1407
+ META_AI = 4;
1408
+ UGC = 5;
1136
1409
  }
1137
-
1138
1410
  message ForwardedNewsletterMessageInfo {
1139
1411
  optional string newsletterJid = 1;
1140
1412
  optional int32 serverMessageId = 2;
@@ -1147,7 +1419,7 @@ message ContextInfo {
1147
1419
  LINK_CARD = 3;
1148
1420
  }
1149
1421
  }
1150
-
1422
+
1151
1423
  enum PairedMediaType {
1152
1424
  NOT_PAIRED_MEDIA = 0;
1153
1425
  SD_VIDEO_PARENT = 1;
@@ -1156,12 +1428,34 @@ message ContextInfo {
1156
1428
  HD_IMAGE_CHILD = 4;
1157
1429
  MOTION_PHOTO_PARENT = 5;
1158
1430
  MOTION_PHOTO_CHILD = 6;
1431
+ HEVC_VIDEO_PARENT = 7;
1432
+ HEVC_VIDEO_CHILD = 8;
1433
+ }
1434
+ message QuestionReplyQuotedMessage {
1435
+ optional int32 serverQuestionId = 1;
1436
+ optional Message quotedQuestion = 2;
1437
+ optional Message quotedResponse = 3;
1438
+ }
1439
+
1440
+ enum QuotedType {
1441
+ EXPLICIT = 0;
1442
+ AUTO = 1;
1159
1443
  }
1160
1444
  enum StatusAttributionType {
1161
1445
  NONE = 0;
1162
1446
  RESHARED_FROM_MENTION = 1;
1163
1447
  RESHARED_FROM_POST = 2;
1448
+ RESHARED_FROM_POST_MANY_TIMES = 3;
1449
+ FORWARDED_FROM_STATUS = 4;
1164
1450
  }
1451
+ message StatusAudienceMetadata {
1452
+ optional AudienceType audienceType = 1;
1453
+ enum AudienceType {
1454
+ UNKNOWN = 0;
1455
+ CLOSE_FRIENDS = 1;
1456
+ }
1457
+ }
1458
+
1165
1459
  enum StatusSourceType {
1166
1460
  IMAGE = 0;
1167
1461
  VIDEO = 1;
@@ -1174,11 +1468,11 @@ message ContextInfo {
1174
1468
  optional string utmSource = 1;
1175
1469
  optional string utmCampaign = 2;
1176
1470
  }
1177
-
1471
+
1178
1472
  }
1179
1473
 
1180
1474
  message Conversation {
1181
- required string id = 1;
1475
+ string id = 1;
1182
1476
  repeated HistorySyncMsg messages = 2;
1183
1477
  optional string newJid = 3;
1184
1478
  optional string oldJid = 4;
@@ -1231,6 +1525,7 @@ message Conversation {
1231
1525
  optional int64 limitSharingSettingTimestamp = 51;
1232
1526
  optional LimitSharing.TriggerType limitSharingTrigger = 52;
1233
1527
  optional bool limitSharingInitiatedByMe = 53;
1528
+ optional bool maibaAiThreadEnabled = 54;
1234
1529
  enum EndOfHistoryTransferType {
1235
1530
  COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY = 0;
1236
1531
  COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY = 1;
@@ -1241,6 +1536,13 @@ message Conversation {
1241
1536
  message DeviceCapabilities {
1242
1537
  optional ChatLockSupportLevel chatLockSupportLevel = 1;
1243
1538
  optional LIDMigration lidMigration = 2;
1539
+ optional BusinessBroadcast businessBroadcast = 3;
1540
+ optional UserHasAvatar userHasAvatar = 4;
1541
+ optional MemberNameTagPrimarySupport memberNameTagPrimarySupport = 5;
1542
+ message BusinessBroadcast {
1543
+ optional bool importListEnabled = 1;
1544
+ }
1545
+
1244
1546
  enum ChatLockSupportLevel {
1245
1547
  NONE = 0;
1246
1548
  MINIMAL = 1;
@@ -1249,7 +1551,16 @@ message DeviceCapabilities {
1249
1551
  message LIDMigration {
1250
1552
  optional uint64 chatDbMigrationTimestamp = 1;
1251
1553
  }
1252
-
1554
+
1555
+ enum MemberNameTagPrimarySupport {
1556
+ DISABLED = 0;
1557
+ RECEIVER_ENABLED = 1;
1558
+ SENDER_ENABLED = 2;
1559
+ }
1560
+ message UserHasAvatar {
1561
+ optional bool userHasAvatar = 1;
1562
+ }
1563
+
1253
1564
  }
1254
1565
 
1255
1566
  message DeviceConsistencyCodeMessage {
@@ -1281,7 +1592,7 @@ message DeviceProps {
1281
1592
  optional uint32 quaternary = 4;
1282
1593
  optional uint32 quinary = 5;
1283
1594
  }
1284
-
1595
+
1285
1596
  message HistorySyncConfig {
1286
1597
  optional uint32 fullSyncDaysLimit = 1;
1287
1598
  optional uint32 fullSyncSizeMbLimit = 2;
@@ -1297,8 +1608,13 @@ message DeviceProps {
1297
1608
  optional bool supportFbidBotChatHistory = 12;
1298
1609
  optional bool supportAddOnHistorySyncMigration = 13;
1299
1610
  optional bool supportMessageAssociation = 14;
1611
+ optional bool supportGroupHistory = 15;
1612
+ optional bool onDemandReady = 16;
1613
+ optional bool supportGuestChat = 17;
1614
+ optional bool completeOnDemandReady = 18;
1615
+ optional uint32 thumbnailSyncDaysLimit = 19;
1300
1616
  }
1301
-
1617
+
1302
1618
  enum PlatformType {
1303
1619
  UNKNOWN = 0;
1304
1620
  CHROME = 1;
@@ -1369,10 +1685,13 @@ message EmbeddedMusic {
1369
1685
  optional string artworkDirectPath = 5;
1370
1686
  optional bytes artworkSha256 = 6;
1371
1687
  optional bytes artworkEncSha256 = 7;
1372
- optional bytes artworkMediaKey = 11;
1373
1688
  optional string artistAttribution = 8;
1374
1689
  optional bytes countryBlocklist = 9;
1375
1690
  optional bool isExplicit = 10;
1691
+ optional bytes artworkMediaKey = 11;
1692
+ optional int64 musicSongStartTimeInMs = 12;
1693
+ optional int64 derivedContentStartTimeInMs = 13;
1694
+ optional int64 overlapDurationInMs = 14;
1376
1695
  }
1377
1696
 
1378
1697
  message EncryptedPairingRequest {
@@ -1418,6 +1737,12 @@ message Field {
1418
1737
  map<uint32, Field> subfield = 5;
1419
1738
  }
1420
1739
 
1740
+ message ForwardedAIBotMessageInfo {
1741
+ optional string botName = 1;
1742
+ optional string botJid = 2;
1743
+ optional string creatorName = 3;
1744
+ }
1745
+
1421
1746
  message GlobalSettings {
1422
1747
  optional WallpaperSettings lightThemeWallpaper = 1;
1423
1748
  optional MediaVisibility mediaVisibility = 2;
@@ -1441,14 +1766,32 @@ message GlobalSettings {
1441
1766
  optional int64 chatDbLidMigrationTimestamp = 20;
1442
1767
  }
1443
1768
 
1769
+ message GroupHistoryBundleInfo {
1770
+ optional Message.MessageHistoryBundle deprecatedMessageHistoryBundle = 1;
1771
+ optional ProcessState processState = 2;
1772
+ enum ProcessState {
1773
+ NOT_INJECTED = 0;
1774
+ INJECTED = 1;
1775
+ INJECTED_PARTIAL = 2;
1776
+ INJECTION_FAILED = 3;
1777
+ INJECTION_FAILED_NO_RETRY = 4;
1778
+ }
1779
+ }
1780
+
1781
+ message GroupHistoryIndividualMessageInfo {
1782
+ optional MessageKey bundleMessageKey = 1;
1783
+ optional bool editedAfterReceivedAsHistory = 2;
1784
+ }
1785
+
1444
1786
  message GroupMention {
1445
1787
  optional string groupJid = 1;
1446
1788
  optional string groupSubject = 2;
1447
1789
  }
1448
1790
 
1449
1791
  message GroupParticipant {
1450
- required string userJid = 1;
1792
+ string userJid = 1;
1451
1793
  optional Rank rank = 2;
1794
+ optional MemberLabel memberLabel = 3;
1452
1795
  enum Rank {
1453
1796
  REGULAR = 0;
1454
1797
  ADMIN = 1;
@@ -1463,24 +1806,28 @@ message HandshakeMessage {
1463
1806
  message ClientFinish {
1464
1807
  optional bytes static = 1;
1465
1808
  optional bytes payload = 2;
1809
+ optional bytes extendedCiphertext = 3;
1466
1810
  }
1467
-
1811
+
1468
1812
  message ClientHello {
1469
1813
  optional bytes ephemeral = 1;
1470
1814
  optional bytes static = 2;
1471
1815
  optional bytes payload = 3;
1816
+ optional bool useExtended = 4;
1817
+ optional bytes extendedCiphertext = 5;
1472
1818
  }
1473
-
1819
+
1474
1820
  message ServerHello {
1475
1821
  optional bytes ephemeral = 1;
1476
1822
  optional bytes static = 2;
1477
1823
  optional bytes payload = 3;
1824
+ optional bytes extendedStatic = 4;
1478
1825
  }
1479
-
1826
+
1480
1827
  }
1481
1828
 
1482
1829
  message HistorySync {
1483
- required HistorySyncType syncType = 1;
1830
+ HistorySyncType syncType = 1;
1484
1831
  repeated Conversation conversations = 2;
1485
1832
  repeated WebMessageInfo statusV3Messages = 3;
1486
1833
  optional uint32 chunkOrder = 5;
@@ -1528,12 +1875,12 @@ message HydratedTemplateButton {
1528
1875
  optional string displayText = 1;
1529
1876
  optional string phoneNumber = 2;
1530
1877
  }
1531
-
1878
+
1532
1879
  message HydratedQuickReplyButton {
1533
1880
  optional string displayText = 1;
1534
1881
  optional string id = 2;
1535
1882
  }
1536
-
1883
+
1537
1884
  message HydratedURLButton {
1538
1885
  optional string displayText = 1;
1539
1886
  optional string url = 2;
@@ -1545,7 +1892,7 @@ message HydratedTemplateButton {
1545
1892
  COMPACT = 3;
1546
1893
  }
1547
1894
  }
1548
-
1895
+
1549
1896
  }
1550
1897
 
1551
1898
  message IdentityKeyPairStructure {
@@ -1553,6 +1900,43 @@ message IdentityKeyPairStructure {
1553
1900
  optional bytes privateKey = 2;
1554
1901
  }
1555
1902
 
1903
+ message InThreadSurveyMetadata {
1904
+ optional string tessaSessionId = 1;
1905
+ optional string simonSessionId = 2;
1906
+ optional string simonSurveyId = 3;
1907
+ optional string tessaRootId = 4;
1908
+ optional string requestId = 5;
1909
+ optional string tessaEvent = 6;
1910
+ optional string invitationHeaderText = 7;
1911
+ optional string invitationBodyText = 8;
1912
+ optional string invitationCtaText = 9;
1913
+ optional string invitationCtaUrl = 10;
1914
+ optional string surveyTitle = 11;
1915
+ repeated InThreadSurveyQuestion questions = 12;
1916
+ optional string surveyContinueButtonText = 13;
1917
+ optional string surveySubmitButtonText = 14;
1918
+ optional string privacyStatementFull = 15;
1919
+ repeated InThreadSurveyPrivacyStatementPart privacyStatementParts = 16;
1920
+ optional string feedbackToastText = 17;
1921
+ message InThreadSurveyOption {
1922
+ optional string stringValue = 1;
1923
+ optional uint32 numericValue = 2;
1924
+ optional string textTranslated = 3;
1925
+ }
1926
+
1927
+ message InThreadSurveyPrivacyStatementPart {
1928
+ optional string text = 1;
1929
+ optional string url = 2;
1930
+ }
1931
+
1932
+ message InThreadSurveyQuestion {
1933
+ optional string questionText = 1;
1934
+ optional string questionId = 2;
1935
+ repeated InThreadSurveyMetadata.InThreadSurveyOption questionOptions = 3;
1936
+ }
1937
+
1938
+ }
1939
+
1556
1940
  message InteractiveAnnotation {
1557
1941
  repeated Point polygonVertices = 1;
1558
1942
  optional bool shouldSkipConfirmation = 4;
@@ -1571,6 +1955,10 @@ message InteractiveAnnotation {
1571
1955
  }
1572
1956
  }
1573
1957
 
1958
+ message InteractiveMessageAdditionalMetadata {
1959
+ optional bool isGalaxyFlowCompleted = 1;
1960
+ }
1961
+
1574
1962
  message KeepInChat {
1575
1963
  optional KeepType keepType = 1;
1576
1964
  optional int64 serverTimestamp = 2;
@@ -1598,8 +1986,8 @@ message KeyId {
1598
1986
  }
1599
1987
 
1600
1988
  message LIDMigrationMapping {
1601
- required uint64 pn = 1;
1602
- required uint64 assignedLid = 2;
1989
+ uint64 pn = 1;
1990
+ uint64 assignedLid = 2;
1603
1991
  optional uint64 latestLid = 3;
1604
1992
  }
1605
1993
 
@@ -1753,7 +2141,6 @@ message Message {
1753
2141
  optional FutureProofMessage associatedChildMessage = 91;
1754
2142
  optional FutureProofMessage groupStatusMentionMessage = 92;
1755
2143
  optional FutureProofMessage pollCreationMessageV4 = 93;
1756
- optional FutureProofMessage pollCreationMessageV5 = 94;
1757
2144
  optional FutureProofMessage statusAddYours = 95;
1758
2145
  optional FutureProofMessage groupStatusMessage = 96;
1759
2146
  optional AIRichResponseMessage richResponseMessage = 97;
@@ -1762,46 +2149,56 @@ message Message {
1762
2149
  optional FutureProofMessage botTaskMessage = 100;
1763
2150
  optional FutureProofMessage questionMessage = 101;
1764
2151
  optional MessageHistoryNotice messageHistoryNotice = 102;
2152
+ optional FutureProofMessage groupStatusMessageV2 = 103;
2153
+ optional FutureProofMessage botForwardedMessage = 104;
2154
+ optional StatusQuestionAnswerMessage statusQuestionAnswerMessage = 105;
2155
+ optional FutureProofMessage questionReplyMessage = 106;
2156
+ optional QuestionResponseMessage questionResponseMessage = 107;
2157
+ optional StatusQuotedMessage statusQuotedMessage = 109;
2158
+ optional StatusStickerInteractionMessage statusStickerInteractionMessage = 110;
2159
+ optional PollCreationMessage pollCreationMessageV5 = 111;
2160
+ optional NewsletterFollowerInviteMessage newsletterFollowerInviteMessageV2 = 113;
2161
+ optional PollResultSnapshotMessage pollResultSnapshotMessageV3 = 114;
1765
2162
  message AlbumMessage {
1766
2163
  optional uint32 expectedImageCount = 2;
1767
2164
  optional uint32 expectedVideoCount = 3;
1768
2165
  optional ContextInfo contextInfo = 17;
1769
2166
  }
1770
-
2167
+
1771
2168
  message AppStateFatalExceptionNotification {
1772
2169
  repeated string collectionNames = 1;
1773
2170
  optional int64 timestamp = 2;
1774
2171
  }
1775
-
2172
+
1776
2173
  message AppStateSyncKey {
1777
2174
  optional Message.AppStateSyncKeyId keyId = 1;
1778
2175
  optional Message.AppStateSyncKeyData keyData = 2;
1779
2176
  }
1780
-
2177
+
1781
2178
  message AppStateSyncKeyData {
1782
2179
  optional bytes keyData = 1;
1783
2180
  optional Message.AppStateSyncKeyFingerprint fingerprint = 2;
1784
2181
  optional int64 timestamp = 3;
1785
2182
  }
1786
-
2183
+
1787
2184
  message AppStateSyncKeyFingerprint {
1788
2185
  optional uint32 rawId = 1;
1789
2186
  optional uint32 currentIndex = 2;
1790
2187
  repeated uint32 deviceIndexes = 3 [packed=true];
1791
2188
  }
1792
-
2189
+
1793
2190
  message AppStateSyncKeyId {
1794
2191
  optional bytes keyId = 1;
1795
2192
  }
1796
-
2193
+
1797
2194
  message AppStateSyncKeyRequest {
1798
2195
  repeated Message.AppStateSyncKeyId keyIds = 1;
1799
2196
  }
1800
-
2197
+
1801
2198
  message AppStateSyncKeyShare {
1802
2199
  repeated Message.AppStateSyncKey keys = 1;
1803
2200
  }
1804
-
2201
+
1805
2202
  message AudioMessage {
1806
2203
  optional string url = 1;
1807
2204
  optional string mimetype = 2;
@@ -1819,8 +2216,9 @@ message Message {
1819
2216
  optional fixed32 backgroundArgb = 20;
1820
2217
  optional bool viewOnce = 21;
1821
2218
  optional string accessibilityLabel = 22;
2219
+ optional Message.MediaKeyDomain mediaKeyDomain = 23;
1822
2220
  }
1823
-
2221
+
1824
2222
  message BCallMessage {
1825
2223
  optional string sessionId = 1;
1826
2224
  optional MediaType mediaType = 2;
@@ -1832,48 +2230,7 @@ message Message {
1832
2230
  VIDEO = 2;
1833
2231
  }
1834
2232
  }
1835
-
1836
- message BotFeedbackMessage {
1837
- optional MessageKey messageKey = 1;
1838
- optional BotFeedbackKind kind = 2;
1839
- optional string text = 3;
1840
- optional uint64 kindNegative = 4;
1841
- optional uint64 kindPositive = 5;
1842
- optional ReportKind kindReport = 6;
1843
- enum BotFeedbackKind {
1844
- BOT_FEEDBACK_POSITIVE = 0;
1845
- BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
1846
- BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
1847
- BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
1848
- BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
1849
- BOT_FEEDBACK_NEGATIVE_SAFE = 5;
1850
- BOT_FEEDBACK_NEGATIVE_OTHER = 6;
1851
- BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
1852
- BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
1853
- BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
1854
- BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
1855
- BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
1856
- BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
1857
- }
1858
- enum BotFeedbackKindMultipleNegative {
1859
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
1860
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
1861
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
1862
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
1863
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
1864
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
1865
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
1866
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
1867
- BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;
1868
- }
1869
- enum BotFeedbackKindMultiplePositive {
1870
- BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC = 1;
1871
- }
1872
- enum ReportKind {
1873
- GENERIC = 0;
1874
- }
1875
- }
1876
-
2233
+
1877
2234
  message ButtonsMessage {
1878
2235
  optional string contentText = 6;
1879
2236
  optional string footerText = 7;
@@ -1895,19 +2252,19 @@ message Message {
1895
2252
  message ButtonText {
1896
2253
  optional string displayText = 1;
1897
2254
  }
1898
-
2255
+
1899
2256
  message NativeFlowInfo {
1900
2257
  optional string name = 1;
1901
2258
  optional string paramsJson = 2;
1902
2259
  }
1903
-
2260
+
1904
2261
  enum Type {
1905
2262
  UNKNOWN = 0;
1906
2263
  RESPONSE = 1;
1907
2264
  NATIVE_FLOW = 2;
1908
2265
  }
1909
2266
  }
1910
-
2267
+
1911
2268
  enum HeaderType {
1912
2269
  UNKNOWN = 0;
1913
2270
  EMPTY = 1;
@@ -1918,7 +2275,7 @@ message Message {
1918
2275
  LOCATION = 6;
1919
2276
  }
1920
2277
  }
1921
-
2278
+
1922
2279
  message ButtonsResponseMessage {
1923
2280
  optional string selectedButtonId = 1;
1924
2281
  optional ContextInfo contextInfo = 3;
@@ -1931,7 +2288,7 @@ message Message {
1931
2288
  DISPLAY_TEXT = 1;
1932
2289
  }
1933
2290
  }
1934
-
2291
+
1935
2292
  message Call {
1936
2293
  optional bytes callKey = 1;
1937
2294
  optional string conversionSource = 2;
@@ -1940,8 +2297,10 @@ message Message {
1940
2297
  optional string ctwaSignals = 5;
1941
2298
  optional bytes ctwaPayload = 6;
1942
2299
  optional ContextInfo contextInfo = 7;
2300
+ optional string nativeFlowCallButtonPayload = 8;
2301
+ optional string deeplinkPayload = 9;
1943
2302
  }
1944
-
2303
+
1945
2304
  message CallLogMessage {
1946
2305
  optional bool isVideo = 1;
1947
2306
  optional CallOutcome callOutcome = 2;
@@ -1962,29 +2321,30 @@ message Message {
1962
2321
  optional string jid = 1;
1963
2322
  optional Message.CallLogMessage.CallOutcome callOutcome = 2;
1964
2323
  }
1965
-
2324
+
1966
2325
  enum CallType {
1967
2326
  REGULAR = 0;
1968
2327
  SCHEDULED_CALL = 1;
1969
2328
  VOICE_CHAT = 2;
1970
2329
  }
1971
2330
  }
1972
-
2331
+
1973
2332
  message CancelPaymentRequestMessage {
1974
2333
  optional MessageKey key = 1;
1975
2334
  }
1976
-
2335
+
1977
2336
  message Chat {
1978
2337
  optional string displayName = 1;
1979
2338
  optional string id = 2;
1980
2339
  }
1981
-
2340
+
1982
2341
  message CloudAPIThreadControlNotification {
1983
2342
  optional CloudAPIThreadControl status = 1;
1984
2343
  optional int64 senderNotificationTimestampMs = 2;
1985
2344
  optional string consumerLid = 3;
1986
2345
  optional string consumerPhoneNumber = 4;
1987
2346
  optional CloudAPIThreadControlNotificationContent notificationContent = 5;
2347
+ optional bool shouldSuppressNotification = 6;
1988
2348
  enum CloudAPIThreadControl {
1989
2349
  UNKNOWN = 0;
1990
2350
  CONTROL_PASSED = 1;
@@ -1994,36 +2354,36 @@ message Message {
1994
2354
  optional string handoffNotificationText = 1;
1995
2355
  optional string extraJson = 2;
1996
2356
  }
1997
-
2357
+
1998
2358
  }
1999
-
2359
+
2000
2360
  message CommentMessage {
2001
2361
  optional Message message = 1;
2002
2362
  optional MessageKey targetMessageKey = 2;
2003
2363
  }
2004
-
2364
+
2005
2365
  message ContactMessage {
2006
2366
  optional string displayName = 1;
2007
2367
  optional string vcard = 16;
2008
2368
  optional ContextInfo contextInfo = 17;
2009
2369
  }
2010
-
2370
+
2011
2371
  message ContactsArrayMessage {
2012
2372
  optional string displayName = 1;
2013
2373
  repeated Message.ContactMessage contacts = 2;
2014
2374
  optional ContextInfo contextInfo = 17;
2015
2375
  }
2016
-
2376
+
2017
2377
  message DeclinePaymentRequestMessage {
2018
2378
  optional MessageKey key = 1;
2019
2379
  }
2020
-
2380
+
2021
2381
  message DeviceSentMessage {
2022
2382
  optional string destinationJid = 1;
2023
2383
  optional Message message = 2;
2024
2384
  optional string phash = 3;
2025
2385
  }
2026
-
2386
+
2027
2387
  message DocumentMessage {
2028
2388
  optional string url = 1;
2029
2389
  optional string mimetype = 2;
@@ -2046,26 +2406,27 @@ message Message {
2046
2406
  optional uint32 thumbnailWidth = 19;
2047
2407
  optional string caption = 20;
2048
2408
  optional string accessibilityLabel = 21;
2409
+ optional Message.MediaKeyDomain mediaKeyDomain = 22;
2049
2410
  }
2050
-
2411
+
2051
2412
  message EncCommentMessage {
2052
2413
  optional MessageKey targetMessageKey = 1;
2053
2414
  optional bytes encPayload = 2;
2054
2415
  optional bytes encIv = 3;
2055
2416
  }
2056
-
2417
+
2057
2418
  message EncEventResponseMessage {
2058
2419
  optional MessageKey eventCreationMessageKey = 1;
2059
2420
  optional bytes encPayload = 2;
2060
2421
  optional bytes encIv = 3;
2061
2422
  }
2062
-
2423
+
2063
2424
  message EncReactionMessage {
2064
2425
  optional MessageKey targetMessageKey = 1;
2065
2426
  optional bytes encPayload = 2;
2066
2427
  optional bytes encIv = 3;
2067
2428
  }
2068
-
2429
+
2069
2430
  message EventMessage {
2070
2431
  optional ContextInfo contextInfo = 1;
2071
2432
  optional bool isCanceled = 2;
@@ -2077,8 +2438,10 @@ message Message {
2077
2438
  optional int64 endTime = 8;
2078
2439
  optional bool extraGuestsAllowed = 9;
2079
2440
  optional bool isScheduleCall = 10;
2441
+ optional bool hasReminder = 11;
2442
+ optional int64 reminderOffsetSec = 12;
2080
2443
  }
2081
-
2444
+
2082
2445
  message EventResponseMessage {
2083
2446
  optional EventResponseType response = 1;
2084
2447
  optional int64 timestampMs = 2;
@@ -2090,7 +2453,7 @@ message Message {
2090
2453
  MAYBE = 3;
2091
2454
  }
2092
2455
  }
2093
-
2456
+
2094
2457
  message ExtendedTextMessage {
2095
2458
  optional string text = 1;
2096
2459
  optional string matchedText = 2;
@@ -2120,6 +2483,10 @@ message Message {
2120
2483
  optional Message.MMSThumbnailMetadata faviconMMSMetadata = 33;
2121
2484
  optional Message.LinkPreviewMetadata linkPreviewMetadata = 34;
2122
2485
  optional Message.PaymentLinkMetadata paymentLinkMetadata = 35;
2486
+ repeated Message.VideoEndCard endCardTiles = 36;
2487
+ optional string videoContentUrl = 37;
2488
+ optional EmbeddedMusic musicMetadata = 38;
2489
+ optional Message.PaymentExtendedMetadata paymentExtendedMetadata = 39;
2123
2490
  enum FontType {
2124
2491
  SYSTEM = 0;
2125
2492
  SYSTEM_TEXT = 1;
@@ -2145,15 +2512,15 @@ message Message {
2145
2512
  PROFILE = 7;
2146
2513
  }
2147
2514
  }
2148
-
2515
+
2149
2516
  message FullHistorySyncOnDemandRequestMetadata {
2150
2517
  optional string requestId = 1;
2151
2518
  }
2152
-
2519
+
2153
2520
  message FutureProofMessage {
2154
2521
  optional Message message = 1;
2155
2522
  }
2156
-
2523
+
2157
2524
  message GroupInviteMessage {
2158
2525
  optional string groupJid = 1;
2159
2526
  optional string inviteCode = 2;
@@ -2168,7 +2535,7 @@ message Message {
2168
2535
  PARENT = 1;
2169
2536
  }
2170
2537
  }
2171
-
2538
+
2172
2539
  message HighlyStructuredMessage {
2173
2540
  optional string namespace = 1;
2174
2541
  optional string elementName = 2;
@@ -2189,7 +2556,7 @@ message Message {
2189
2556
  optional string currencyCode = 1;
2190
2557
  optional int64 amount1000 = 2;
2191
2558
  }
2192
-
2559
+
2193
2560
  message HSMDateTime {
2194
2561
  oneof datetimeOneof {
2195
2562
  Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime.HSMDateTimeComponent component = 1;
@@ -2217,24 +2584,28 @@ message Message {
2217
2584
  SUNDAY = 7;
2218
2585
  }
2219
2586
  }
2220
-
2587
+
2221
2588
  message HSMDateTimeUnixEpoch {
2222
2589
  optional int64 timestamp = 1;
2223
2590
  }
2224
-
2591
+
2225
2592
  }
2226
-
2593
+
2227
2594
  }
2228
-
2595
+
2229
2596
  }
2230
-
2597
+
2598
+ message HistorySyncMessageAccessStatus {
2599
+ optional bool completeAccessGranted = 1;
2600
+ }
2601
+
2231
2602
  message HistorySyncNotification {
2232
2603
  optional bytes fileSha256 = 1;
2233
2604
  optional uint64 fileLength = 2;
2234
2605
  optional bytes mediaKey = 3;
2235
2606
  optional bytes fileEncSha256 = 4;
2236
2607
  optional string directPath = 5;
2237
- optional HistorySyncType syncType = 6;
2608
+ optional Message.HistorySyncType syncType = 6;
2238
2609
  optional uint32 chunkOrder = 7;
2239
2610
  optional string originalMessageId = 8;
2240
2611
  optional uint32 progress = 9;
@@ -2243,18 +2614,20 @@ message Message {
2243
2614
  optional string peerDataRequestSessionId = 12;
2244
2615
  optional Message.FullHistorySyncOnDemandRequestMetadata fullHistorySyncOnDemandRequestMetadata = 13;
2245
2616
  optional string encHandle = 14;
2246
- enum HistorySyncType {
2247
- INITIAL_BOOTSTRAP = 0;
2248
- INITIAL_STATUS_V3 = 1;
2249
- FULL = 2;
2250
- RECENT = 3;
2251
- PUSH_NAME = 4;
2252
- NON_BLOCKING_DATA = 5;
2253
- ON_DEMAND = 6;
2254
- NO_HISTORY = 7;
2255
- }
2256
- }
2257
-
2617
+ optional Message.HistorySyncMessageAccessStatus messageAccessStatus = 15;
2618
+ }
2619
+
2620
+ enum HistorySyncType {
2621
+ INITIAL_BOOTSTRAP = 0;
2622
+ INITIAL_STATUS_V3 = 1;
2623
+ FULL = 2;
2624
+ RECENT = 3;
2625
+ PUSH_NAME = 4;
2626
+ NON_BLOCKING_DATA = 5;
2627
+ ON_DEMAND = 6;
2628
+ NO_HISTORY = 7;
2629
+ MESSAGE_ACCESS_STATUS = 8;
2630
+ }
2258
2631
  message ImageMessage {
2259
2632
  optional string url = 1;
2260
2633
  optional string mimetype = 2;
@@ -2285,6 +2658,8 @@ message Message {
2285
2658
  repeated InteractiveAnnotation annotations = 30;
2286
2659
  optional ImageSourceType imageSourceType = 31;
2287
2660
  optional string accessibilityLabel = 32;
2661
+ optional Message.MediaKeyDomain mediaKeyDomain = 33;
2662
+ optional string qrUrl = 34;
2288
2663
  enum ImageSourceType {
2289
2664
  USER_IMAGE = 0;
2290
2665
  AI_GENERATED = 1;
@@ -2292,11 +2667,11 @@ message Message {
2292
2667
  RASTERIZED_TEXT_STATUS = 3;
2293
2668
  }
2294
2669
  }
2295
-
2670
+
2296
2671
  message InitialSecurityNotificationSettingSync {
2297
2672
  optional bool securityNotificationEnabled = 1;
2298
2673
  }
2299
-
2674
+
2300
2675
  message InteractiveMessage {
2301
2676
  optional Header header = 1;
2302
2677
  optional Body body = 2;
@@ -2312,22 +2687,32 @@ message Message {
2312
2687
  message Body {
2313
2688
  optional string text = 1;
2314
2689
  }
2315
-
2690
+
2316
2691
  message CarouselMessage {
2317
2692
  repeated Message.InteractiveMessage cards = 1;
2318
2693
  optional int32 messageVersion = 2;
2694
+ optional CarouselCardType carouselCardType = 3;
2695
+ enum CarouselCardType {
2696
+ UNKNOWN = 0;
2697
+ HSCROLL_CARDS = 1;
2698
+ ALBUM_IMAGE = 2;
2699
+ }
2319
2700
  }
2320
-
2701
+
2321
2702
  message CollectionMessage {
2322
2703
  optional string bizJid = 1;
2323
2704
  optional string id = 2;
2324
2705
  optional int32 messageVersion = 3;
2325
2706
  }
2326
-
2707
+
2327
2708
  message Footer {
2328
2709
  optional string text = 1;
2710
+ optional bool hasMediaAttachment = 3;
2711
+ oneof media {
2712
+ Message.AudioMessage audioMessage = 2;
2713
+ }
2329
2714
  }
2330
-
2715
+
2331
2716
  message Header {
2332
2717
  optional string title = 1;
2333
2718
  optional string subtitle = 2;
@@ -2341,7 +2726,7 @@ message Message {
2341
2726
  Message.ProductMessage productMessage = 9;
2342
2727
  }
2343
2728
  }
2344
-
2729
+
2345
2730
  message NativeFlowMessage {
2346
2731
  repeated NativeFlowButton buttons = 1;
2347
2732
  optional string messageParamsJson = 2;
@@ -2350,9 +2735,9 @@ message Message {
2350
2735
  optional string name = 1;
2351
2736
  optional string buttonParamsJson = 2;
2352
2737
  }
2353
-
2738
+
2354
2739
  }
2355
-
2740
+
2356
2741
  message ShopMessage {
2357
2742
  optional string id = 1;
2358
2743
  optional Surface surface = 2;
@@ -2364,9 +2749,9 @@ message Message {
2364
2749
  WA = 3;
2365
2750
  }
2366
2751
  }
2367
-
2752
+
2368
2753
  }
2369
-
2754
+
2370
2755
  message InteractiveResponseMessage {
2371
2756
  optional Body body = 1;
2372
2757
  optional ContextInfo contextInfo = 15;
@@ -2381,15 +2766,15 @@ message Message {
2381
2766
  EXTENSIONS_1 = 1;
2382
2767
  }
2383
2768
  }
2384
-
2769
+
2385
2770
  message NativeFlowResponseMessage {
2386
2771
  optional string name = 1;
2387
2772
  optional string paramsJson = 2;
2388
2773
  optional int32 version = 3;
2389
2774
  }
2390
-
2775
+
2391
2776
  }
2392
-
2777
+
2393
2778
  message InvoiceMessage {
2394
2779
  optional string note = 1;
2395
2780
  optional string token = 2;
@@ -2406,19 +2791,33 @@ message Message {
2406
2791
  PDF = 1;
2407
2792
  }
2408
2793
  }
2409
-
2794
+
2410
2795
  message KeepInChatMessage {
2411
2796
  optional MessageKey key = 1;
2412
2797
  optional KeepType keepType = 2;
2413
2798
  optional int64 timestampMs = 3;
2414
2799
  }
2415
-
2800
+
2416
2801
  message LinkPreviewMetadata {
2417
2802
  optional Message.PaymentLinkMetadata paymentLinkMetadata = 1;
2418
2803
  optional Message.URLMetadata urlMetadata = 2;
2419
2804
  optional uint32 fbExperimentId = 3;
2805
+ optional uint32 linkMediaDuration = 4;
2806
+ optional SocialMediaPostType socialMediaPostType = 5;
2807
+ optional bool linkInlineVideoMuted = 6;
2808
+ optional string videoContentUrl = 7;
2809
+ optional EmbeddedMusic musicMetadata = 8;
2810
+ optional string videoContentCaption = 9;
2811
+ enum SocialMediaPostType {
2812
+ NONE = 0;
2813
+ REEL = 1;
2814
+ LIVE_VIDEO = 2;
2815
+ LONG_VIDEO = 3;
2816
+ SINGLE_IMAGE = 4;
2817
+ CAROUSEL = 5;
2818
+ }
2420
2819
  }
2421
-
2820
+
2422
2821
  message ListMessage {
2423
2822
  optional string title = 1;
2424
2823
  optional string description = 2;
@@ -2436,36 +2835,36 @@ message Message {
2436
2835
  message Product {
2437
2836
  optional string productId = 1;
2438
2837
  }
2439
-
2838
+
2440
2839
  message ProductListHeaderImage {
2441
2840
  optional string productId = 1;
2442
2841
  optional bytes jpegThumbnail = 2;
2443
2842
  }
2444
-
2843
+
2445
2844
  message ProductListInfo {
2446
2845
  repeated Message.ListMessage.ProductSection productSections = 1;
2447
2846
  optional Message.ListMessage.ProductListHeaderImage headerImage = 2;
2448
2847
  optional string businessOwnerJid = 3;
2449
2848
  }
2450
-
2849
+
2451
2850
  message ProductSection {
2452
2851
  optional string title = 1;
2453
2852
  repeated Message.ListMessage.Product products = 2;
2454
2853
  }
2455
-
2854
+
2456
2855
  message Row {
2457
2856
  optional string title = 1;
2458
2857
  optional string description = 2;
2459
2858
  optional string rowId = 3;
2460
2859
  }
2461
-
2860
+
2462
2861
  message Section {
2463
2862
  optional string title = 1;
2464
2863
  repeated Message.ListMessage.Row rows = 2;
2465
2864
  }
2466
-
2865
+
2467
2866
  }
2468
-
2867
+
2469
2868
  message ListResponseMessage {
2470
2869
  optional string title = 1;
2471
2870
  optional ListType listType = 2;
@@ -2479,9 +2878,9 @@ message Message {
2479
2878
  message SingleSelectReply {
2480
2879
  optional string selectedRowId = 1;
2481
2880
  }
2482
-
2881
+
2483
2882
  }
2484
-
2883
+
2485
2884
  message LiveLocationMessage {
2486
2885
  optional double degreesLatitude = 1;
2487
2886
  optional double degreesLongitude = 2;
@@ -2494,7 +2893,7 @@ message Message {
2494
2893
  optional bytes jpegThumbnail = 16;
2495
2894
  optional ContextInfo contextInfo = 17;
2496
2895
  }
2497
-
2896
+
2498
2897
  message LocationMessage {
2499
2898
  optional double degreesLatitude = 1;
2500
2899
  optional double degreesLongitude = 2;
@@ -2509,7 +2908,7 @@ message Message {
2509
2908
  optional bytes jpegThumbnail = 16;
2510
2909
  optional ContextInfo contextInfo = 17;
2511
2910
  }
2512
-
2911
+
2513
2912
  message MMSThumbnailMetadata {
2514
2913
  optional string thumbnailDirectPath = 1;
2515
2914
  optional bytes thumbnailSha256 = 2;
@@ -2518,8 +2917,16 @@ message Message {
2518
2917
  optional int64 mediaKeyTimestamp = 5;
2519
2918
  optional uint32 thumbnailHeight = 6;
2520
2919
  optional uint32 thumbnailWidth = 7;
2920
+ optional Message.MediaKeyDomain mediaKeyDomain = 8;
2921
+ }
2922
+
2923
+ enum MediaKeyDomain {
2924
+ UNSET = 0;
2925
+ E2EE_CHAT = 1;
2926
+ STATUS = 2;
2927
+ CAPI = 3;
2928
+ BOT = 4;
2521
2929
  }
2522
-
2523
2930
  message MessageHistoryBundle {
2524
2931
  optional string mimetype = 1;
2525
2932
  optional bytes fileSha256 = 2;
@@ -2530,18 +2937,18 @@ message Message {
2530
2937
  optional ContextInfo contextInfo = 7;
2531
2938
  optional Message.MessageHistoryMetadata messageHistoryMetadata = 8;
2532
2939
  }
2533
-
2940
+
2534
2941
  message MessageHistoryMetadata {
2535
2942
  repeated string historyReceivers = 1;
2536
- optional int64 firstMessageTimestamp = 2;
2943
+ optional int64 oldestMessageTimestamp = 2;
2537
2944
  optional int64 messageCount = 3;
2538
2945
  }
2539
-
2946
+
2540
2947
  message MessageHistoryNotice {
2541
2948
  optional ContextInfo contextInfo = 1;
2542
2949
  optional Message.MessageHistoryMetadata messageHistoryMetadata = 2;
2543
2950
  }
2544
-
2951
+
2545
2952
  message NewsletterAdminInviteMessage {
2546
2953
  optional string newsletterJid = 1;
2547
2954
  optional string newsletterName = 2;
@@ -2550,7 +2957,15 @@ message Message {
2550
2957
  optional int64 inviteExpiration = 5;
2551
2958
  optional ContextInfo contextInfo = 6;
2552
2959
  }
2553
-
2960
+
2961
+ message NewsletterFollowerInviteMessage {
2962
+ optional string newsletterJid = 1;
2963
+ optional string newsletterName = 2;
2964
+ optional bytes jpegThumbnail = 3;
2965
+ optional string caption = 4;
2966
+ optional ContextInfo contextInfo = 5;
2967
+ }
2968
+
2554
2969
  message OrderMessage {
2555
2970
  optional string orderId = 1;
2556
2971
  optional bytes thumbnail = 2;
@@ -2576,7 +2991,13 @@ message Message {
2576
2991
  CATALOG = 1;
2577
2992
  }
2578
2993
  }
2579
-
2994
+
2995
+ message PaymentExtendedMetadata {
2996
+ optional uint32 type = 1;
2997
+ optional string platform = 2;
2998
+ optional string messageParamsJson = 3;
2999
+ }
3000
+
2580
3001
  message PaymentInviteMessage {
2581
3002
  optional ServiceType serviceType = 1;
2582
3003
  optional int64 expiryTimestamp = 2;
@@ -2587,14 +3008,15 @@ message Message {
2587
3008
  UPI = 3;
2588
3009
  }
2589
3010
  }
2590
-
3011
+
2591
3012
  message PaymentLinkMetadata {
2592
3013
  optional PaymentLinkButton button = 1;
2593
3014
  optional PaymentLinkHeader header = 2;
3015
+ optional PaymentLinkProvider provider = 3;
2594
3016
  message PaymentLinkButton {
2595
3017
  optional string displayText = 1;
2596
3018
  }
2597
-
3019
+
2598
3020
  message PaymentLinkHeader {
2599
3021
  optional PaymentLinkHeaderType headerType = 1;
2600
3022
  enum PaymentLinkHeaderType {
@@ -2602,9 +3024,13 @@ message Message {
2602
3024
  ORDER = 1;
2603
3025
  }
2604
3026
  }
2605
-
3027
+
3028
+ message PaymentLinkProvider {
3029
+ optional string paramsJson = 1;
3030
+ }
3031
+
2606
3032
  }
2607
-
3033
+
2608
3034
  message PeerDataOperationRequestMessage {
2609
3035
  optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
2610
3036
  repeated RequestStickerReupload requestStickerReupload = 2;
@@ -2613,11 +3039,29 @@ message Message {
2613
3039
  repeated PlaceholderMessageResendRequest placeholderMessageResendRequest = 5;
2614
3040
  optional FullHistorySyncOnDemandRequest fullHistorySyncOnDemandRequest = 6;
2615
3041
  optional SyncDCollectionFatalRecoveryRequest syncdCollectionFatalRecoveryRequest = 7;
3042
+ optional HistorySyncChunkRetryRequest historySyncChunkRetryRequest = 8;
3043
+ optional GalaxyFlowAction galaxyFlowAction = 9;
2616
3044
  message FullHistorySyncOnDemandRequest {
2617
3045
  optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
2618
3046
  optional DeviceProps.HistorySyncConfig historySyncConfig = 2;
2619
3047
  }
2620
-
3048
+
3049
+ message GalaxyFlowAction {
3050
+ optional GalaxyFlowActionType type = 1;
3051
+ optional string flowId = 2;
3052
+ optional string stanzaId = 3;
3053
+ enum GalaxyFlowActionType {
3054
+ NOTIFY_LAUNCH = 1;
3055
+ }
3056
+ }
3057
+
3058
+ message HistorySyncChunkRetryRequest {
3059
+ optional Message.HistorySyncType syncType = 1;
3060
+ optional uint32 chunkOrder = 2;
3061
+ optional string chunkNotificationId = 3;
3062
+ optional bool regenerateChunk = 4;
3063
+ }
3064
+
2621
3065
  message HistorySyncOnDemandRequest {
2622
3066
  optional string chatJid = 1;
2623
3067
  optional string oldestMsgId = 2;
@@ -2626,27 +3070,27 @@ message Message {
2626
3070
  optional int64 oldestMsgTimestampMs = 5;
2627
3071
  optional string accountLid = 6;
2628
3072
  }
2629
-
3073
+
2630
3074
  message PlaceholderMessageResendRequest {
2631
3075
  optional MessageKey messageKey = 1;
2632
3076
  }
2633
-
3077
+
2634
3078
  message RequestStickerReupload {
2635
3079
  optional string fileSha256 = 1;
2636
3080
  }
2637
-
3081
+
2638
3082
  message RequestUrlPreview {
2639
3083
  optional string url = 1;
2640
3084
  optional bool includeHqThumbnail = 2;
2641
3085
  }
2642
-
3086
+
2643
3087
  message SyncDCollectionFatalRecoveryRequest {
2644
3088
  optional string collectionName = 1;
2645
3089
  optional int64 timestamp = 2;
2646
3090
  }
2647
-
3091
+
2648
3092
  }
2649
-
3093
+
2650
3094
  message PeerDataOperationRequestResponseMessage {
2651
3095
  optional Message.PeerDataOperationRequestType peerDataOperationRequestType = 1;
2652
3096
  optional string stanzaId = 2;
@@ -2660,15 +3104,23 @@ message Message {
2660
3104
  optional FullHistorySyncOnDemandRequestResponse fullHistorySyncOnDemandRequestResponse = 6;
2661
3105
  optional CompanionMetaNonceFetchResponse companionMetaNonceFetchRequestResponse = 7;
2662
3106
  optional SyncDSnapshotFatalRecoveryResponse syncdSnapshotFatalRecoveryResponse = 8;
3107
+ optional CompanionCanonicalUserNonceFetchResponse companionCanonicalUserNonceFetchRequestResponse = 9;
3108
+ optional HistorySyncChunkRetryResponse historySyncChunkRetryResponse = 10;
3109
+ message CompanionCanonicalUserNonceFetchResponse {
3110
+ optional string nonce = 1;
3111
+ optional string waFbid = 2;
3112
+ optional bool forceRefresh = 3;
3113
+ }
3114
+
2663
3115
  message CompanionMetaNonceFetchResponse {
2664
3116
  optional string nonce = 1;
2665
3117
  }
2666
-
3118
+
2667
3119
  message FullHistorySyncOnDemandRequestResponse {
2668
3120
  optional Message.FullHistorySyncOnDemandRequestMetadata requestMetadata = 1;
2669
3121
  optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.FullHistorySyncOnDemandResponseCode responseCode = 2;
2670
3122
  }
2671
-
3123
+
2672
3124
  enum FullHistorySyncOnDemandResponseCode {
2673
3125
  REQUEST_SUCCESS = 0;
2674
3126
  REQUEST_TIME_EXPIRED = 1;
@@ -2678,6 +3130,22 @@ message Message {
2678
3130
  ERROR_HOSTED_DEVICE_NOT_CONNECTED = 5;
2679
3131
  ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET = 6;
2680
3132
  }
3133
+ message HistorySyncChunkRetryResponse {
3134
+ optional Message.HistorySyncType syncType = 1;
3135
+ optional uint32 chunkOrder = 2;
3136
+ optional string requestId = 3;
3137
+ optional Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.HistorySyncChunkRetryResponseCode responseCode = 4;
3138
+ optional bool canRecover = 5;
3139
+ }
3140
+
3141
+ enum HistorySyncChunkRetryResponseCode {
3142
+ GENERATION_ERROR = 1;
3143
+ CHUNK_CONSUMED = 2;
3144
+ TIMEOUT = 3;
3145
+ SESSION_EXHAUSTED = 4;
3146
+ CHUNK_EXHAUSTED = 5;
3147
+ DUPLICATED_REQUEST = 6;
3148
+ }
2681
3149
  message LinkPreviewResponse {
2682
3150
  optional string url = 1;
2683
3151
  optional string title = 2;
@@ -2686,6 +3154,7 @@ message Message {
2686
3154
  optional string matchText = 6;
2687
3155
  optional string previewType = 7;
2688
3156
  optional LinkPreviewHighQualityThumbnail hqThumbnail = 8;
3157
+ optional PaymentLinkPreviewMetadata previewMetadata = 9;
2689
3158
  message LinkPreviewHighQualityThumbnail {
2690
3159
  optional string directPath = 1;
2691
3160
  optional string thumbHash = 2;
@@ -2695,27 +3164,32 @@ message Message {
2695
3164
  optional int32 thumbWidth = 6;
2696
3165
  optional int32 thumbHeight = 7;
2697
3166
  }
2698
-
3167
+
3168
+ message PaymentLinkPreviewMetadata {
3169
+ optional bool isBusinessVerified = 1;
3170
+ optional string providerName = 2;
3171
+ }
3172
+
2699
3173
  }
2700
-
3174
+
2701
3175
  message PlaceholderMessageResendResponse {
2702
3176
  optional bytes webMessageInfoBytes = 1;
2703
3177
  }
2704
-
3178
+
2705
3179
  message SyncDSnapshotFatalRecoveryResponse {
2706
3180
  optional bytes collectionSnapshot = 1;
2707
3181
  optional bool isCompressed = 2;
2708
3182
  }
2709
-
3183
+
2710
3184
  message WaffleNonceFetchResponse {
2711
3185
  optional string nonce = 1;
2712
3186
  optional string waEntFbid = 2;
2713
3187
  }
2714
-
3188
+
2715
3189
  }
2716
-
3190
+
2717
3191
  }
2718
-
3192
+
2719
3193
  enum PeerDataOperationRequestType {
2720
3194
  UPLOAD_STICKER = 0;
2721
3195
  SEND_RECENT_STICKER_BOOTSTRAP = 1;
@@ -2726,6 +3200,9 @@ message Message {
2726
3200
  FULL_HISTORY_SYNC_ON_DEMAND = 6;
2727
3201
  COMPANION_META_NONCE_FETCH = 7;
2728
3202
  COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY = 8;
3203
+ COMPANION_CANONICAL_USER_NONCE_FETCH = 9;
3204
+ HISTORY_SYNC_CHUNK_RETRY = 10;
3205
+ GALAXY_FLOW_ACTION = 11;
2729
3206
  }
2730
3207
  message PinInChatMessage {
2731
3208
  optional MessageKey key = 1;
@@ -2737,14 +3214,14 @@ message Message {
2737
3214
  UNPIN_FOR_ALL = 2;
2738
3215
  }
2739
3216
  }
2740
-
3217
+
2741
3218
  message PlaceholderMessage {
2742
3219
  optional PlaceholderType type = 1;
2743
3220
  enum PlaceholderType {
2744
3221
  MASK_LINKED_DEVICES = 0;
2745
3222
  }
2746
3223
  }
2747
-
3224
+
2748
3225
  enum PollContentType {
2749
3226
  UNKNOWN = 0;
2750
3227
  TEXT = 1;
@@ -2757,49 +3234,50 @@ message Message {
2757
3234
  optional uint32 selectableOptionsCount = 4;
2758
3235
  optional ContextInfo contextInfo = 5;
2759
3236
  optional Message.PollContentType pollContentType = 6;
2760
- optional PollType pollType = 7;
3237
+ optional Message.PollType pollType = 7;
2761
3238
  optional Option correctAnswer = 8;
2762
3239
  message Option {
2763
3240
  optional string optionName = 1;
2764
3241
  optional string optionHash = 2;
2765
3242
  }
2766
-
2767
- enum PollType {
2768
- POLL = 0;
2769
- QUIZ = 1;
2770
- }
3243
+
2771
3244
  }
2772
-
3245
+
2773
3246
  message PollEncValue {
2774
3247
  optional bytes encPayload = 1;
2775
3248
  optional bytes encIv = 2;
2776
3249
  }
2777
-
3250
+
2778
3251
  message PollResultSnapshotMessage {
2779
3252
  optional string name = 1;
2780
3253
  repeated PollVote pollVotes = 2;
2781
3254
  optional ContextInfo contextInfo = 3;
3255
+ optional Message.PollType pollType = 4;
2782
3256
  message PollVote {
2783
3257
  optional string optionName = 1;
2784
3258
  optional int64 optionVoteCount = 2;
2785
3259
  }
2786
-
3260
+
3261
+ }
3262
+
3263
+ enum PollType {
3264
+ POLL = 0;
3265
+ QUIZ = 1;
2787
3266
  }
2788
-
2789
3267
  message PollUpdateMessage {
2790
3268
  optional MessageKey pollCreationMessageKey = 1;
2791
3269
  optional Message.PollEncValue vote = 2;
2792
3270
  optional Message.PollUpdateMessageMetadata metadata = 3;
2793
3271
  optional int64 senderTimestampMs = 4;
2794
3272
  }
2795
-
3273
+
2796
3274
  message PollUpdateMessageMetadata {
2797
3275
  }
2798
-
3276
+
2799
3277
  message PollVoteMessage {
2800
3278
  repeated bytes selectedOptions = 1;
2801
3279
  }
2802
-
3280
+
2803
3281
  message ProductMessage {
2804
3282
  optional ProductSnapshot product = 1;
2805
3283
  optional string businessOwnerJid = 2;
@@ -2812,7 +3290,7 @@ message Message {
2812
3290
  optional string title = 2;
2813
3291
  optional string description = 3;
2814
3292
  }
2815
-
3293
+
2816
3294
  message ProductSnapshot {
2817
3295
  optional Message.ImageMessage productImage = 1;
2818
3296
  optional string productId = 2;
@@ -2827,9 +3305,9 @@ message Message {
2827
3305
  optional int64 salePriceAmount1000 = 12;
2828
3306
  optional string signedUrl = 13;
2829
3307
  }
2830
-
3308
+
2831
3309
  }
2832
-
3310
+
2833
3311
  message ProtocolMessage {
2834
3312
  optional MessageKey key = 1;
2835
3313
  optional Type type = 2;
@@ -2845,7 +3323,7 @@ message Message {
2845
3323
  optional int64 timestampMs = 15;
2846
3324
  optional Message.PeerDataOperationRequestMessage peerDataOperationRequestMessage = 16;
2847
3325
  optional Message.PeerDataOperationRequestResponseMessage peerDataOperationRequestResponseMessage = 17;
2848
- optional Message.BotFeedbackMessage botFeedbackMessage = 18;
3326
+ optional BotFeedbackMessage botFeedbackMessage = 18;
2849
3327
  optional string invokerJid = 19;
2850
3328
  optional Message.RequestWelcomeMessageMetadata requestWelcomeMessageMetadata = 20;
2851
3329
  optional MediaNotifyMessage mediaNotifyMessage = 21;
@@ -2884,14 +3362,19 @@ message Message {
2884
3362
  GROUP_MEMBER_LABEL_CHANGE = 30;
2885
3363
  }
2886
3364
  }
2887
-
3365
+
3366
+ message QuestionResponseMessage {
3367
+ optional MessageKey key = 1;
3368
+ optional string text = 2;
3369
+ }
3370
+
2888
3371
  message ReactionMessage {
2889
3372
  optional MessageKey key = 1;
2890
3373
  optional string text = 2;
2891
3374
  optional string groupingKey = 3;
2892
3375
  optional int64 senderTimestampMs = 4;
2893
3376
  }
2894
-
3377
+
2895
3378
  message RequestPaymentMessage {
2896
3379
  optional Message noteMessage = 4;
2897
3380
  optional string currencyCodeIso4217 = 1;
@@ -2901,11 +3384,11 @@ message Message {
2901
3384
  optional Money amount = 6;
2902
3385
  optional PaymentBackground background = 7;
2903
3386
  }
2904
-
3387
+
2905
3388
  message RequestPhoneNumberMessage {
2906
3389
  optional ContextInfo contextInfo = 1;
2907
3390
  }
2908
-
3391
+
2909
3392
  message RequestWelcomeMessageMetadata {
2910
3393
  optional LocalChatState localChatState = 1;
2911
3394
  enum LocalChatState {
@@ -2913,7 +3396,7 @@ message Message {
2913
3396
  NON_EMPTY = 1;
2914
3397
  }
2915
3398
  }
2916
-
3399
+
2917
3400
  message ScheduledCallCreationMessage {
2918
3401
  optional int64 scheduledTimestampMs = 1;
2919
3402
  optional CallType callType = 2;
@@ -2924,7 +3407,7 @@ message Message {
2924
3407
  VIDEO = 2;
2925
3408
  }
2926
3409
  }
2927
-
3410
+
2928
3411
  message ScheduledCallEditMessage {
2929
3412
  optional MessageKey key = 1;
2930
3413
  optional EditType editType = 2;
@@ -2933,7 +3416,7 @@ message Message {
2933
3416
  CANCEL = 1;
2934
3417
  }
2935
3418
  }
2936
-
3419
+
2937
3420
  message SecretEncryptedMessage {
2938
3421
  optional MessageKey targetMessageKey = 1;
2939
3422
  optional bytes encPayload = 2;
@@ -2945,18 +3428,19 @@ message Message {
2945
3428
  MESSAGE_EDIT = 2;
2946
3429
  }
2947
3430
  }
2948
-
3431
+
2949
3432
  message SendPaymentMessage {
2950
3433
  optional Message noteMessage = 2;
2951
3434
  optional MessageKey requestMessageKey = 3;
2952
3435
  optional PaymentBackground background = 4;
3436
+ optional string transactionData = 5;
2953
3437
  }
2954
-
3438
+
2955
3439
  message SenderKeyDistributionMessage {
2956
3440
  optional string groupId = 1;
2957
3441
  optional bytes axolotlSenderKeyDistributionMessage = 2;
2958
3442
  }
2959
-
3443
+
2960
3444
  message StatusNotificationMessage {
2961
3445
  optional MessageKey responseMessageKey = 1;
2962
3446
  optional MessageKey originalMessageKey = 2;
@@ -2965,9 +3449,35 @@ message Message {
2965
3449
  UNKNOWN = 0;
2966
3450
  STATUS_ADD_YOURS = 1;
2967
3451
  STATUS_RESHARE = 2;
3452
+ STATUS_QUESTION_ANSWER_RESHARE = 3;
3453
+ }
3454
+ }
3455
+
3456
+ message StatusQuestionAnswerMessage {
3457
+ optional MessageKey key = 1;
3458
+ optional string text = 2;
3459
+ }
3460
+
3461
+ message StatusQuotedMessage {
3462
+ optional StatusQuotedMessageType type = 1;
3463
+ optional string text = 2;
3464
+ optional bytes thumbnail = 3;
3465
+ optional MessageKey originalStatusId = 4;
3466
+ enum StatusQuotedMessageType {
3467
+ QUESTION_ANSWER = 1;
2968
3468
  }
2969
3469
  }
2970
-
3470
+
3471
+ message StatusStickerInteractionMessage {
3472
+ optional MessageKey key = 1;
3473
+ optional string stickerKey = 2;
3474
+ optional StatusStickerType type = 3;
3475
+ enum StatusStickerType {
3476
+ UNKNOWN = 0;
3477
+ REACTION = 1;
3478
+ }
3479
+ }
3480
+
2971
3481
  message StickerMessage {
2972
3482
  optional string url = 1;
2973
3483
  optional bytes fileSha256 = 2;
@@ -2989,8 +3499,9 @@ message Message {
2989
3499
  optional bool isAiSticker = 20;
2990
3500
  optional bool isLottie = 21;
2991
3501
  optional string accessibilityLabel = 22;
3502
+ optional Message.MediaKeyDomain mediaKeyDomain = 23;
2992
3503
  }
2993
-
3504
+
2994
3505
  message StickerPackMessage {
2995
3506
  optional string stickerPackId = 1;
2996
3507
  optional string name = 2;
@@ -3022,20 +3533,20 @@ message Message {
3022
3533
  optional bool isLottie = 5;
3023
3534
  optional string mimetype = 6;
3024
3535
  }
3025
-
3536
+
3026
3537
  enum StickerPackOrigin {
3027
3538
  FIRST_PARTY = 0;
3028
3539
  THIRD_PARTY = 1;
3029
3540
  USER_CREATED = 2;
3030
3541
  }
3031
3542
  }
3032
-
3543
+
3033
3544
  message StickerSyncRMRMessage {
3034
3545
  repeated string filehash = 1;
3035
3546
  optional string rmrSource = 2;
3036
3547
  optional int64 requestTimestamp = 3;
3037
3548
  }
3038
-
3549
+
3039
3550
  message TemplateButtonReplyMessage {
3040
3551
  optional string selectedId = 1;
3041
3552
  optional string selectedDisplayText = 2;
@@ -3043,7 +3554,7 @@ message Message {
3043
3554
  optional uint32 selectedIndex = 4;
3044
3555
  optional uint32 selectedCarouselCardIndex = 5;
3045
3556
  }
3046
-
3557
+
3047
3558
  message TemplateMessage {
3048
3559
  optional ContextInfo contextInfo = 3;
3049
3560
  optional HydratedFourRowTemplate hydratedTemplate = 4;
@@ -3065,7 +3576,7 @@ message Message {
3065
3576
  Message.LocationMessage locationMessage = 5;
3066
3577
  }
3067
3578
  }
3068
-
3579
+
3069
3580
  message HydratedFourRowTemplate {
3070
3581
  optional string hydratedContentText = 6;
3071
3582
  optional string hydratedFooterText = 7;
@@ -3080,13 +3591,20 @@ message Message {
3080
3591
  Message.LocationMessage locationMessage = 5;
3081
3592
  }
3082
3593
  }
3083
-
3594
+
3084
3595
  }
3085
-
3596
+
3086
3597
  message URLMetadata {
3087
3598
  optional uint32 fbExperimentId = 1;
3088
3599
  }
3089
-
3600
+
3601
+ message VideoEndCard {
3602
+ string username = 1;
3603
+ string caption = 2;
3604
+ string thumbnailImageUrl = 3;
3605
+ string profilePictureUrl = 4;
3606
+ }
3607
+
3090
3608
  message VideoMessage {
3091
3609
  optional string url = 1;
3092
3610
  optional string mimetype = 2;
@@ -3115,13 +3633,22 @@ message Message {
3115
3633
  optional string accessibilityLabel = 26;
3116
3634
  repeated ProcessedVideo processedVideos = 27;
3117
3635
  optional uint32 externalShareFullVideoDurationInSeconds = 28;
3636
+ optional uint64 motionPhotoPresentationOffsetMs = 29;
3637
+ optional string metadataUrl = 30;
3638
+ optional VideoSourceType videoSourceType = 31;
3639
+ optional Message.MediaKeyDomain mediaKeyDomain = 32;
3118
3640
  enum Attribution {
3119
3641
  NONE = 0;
3120
3642
  GIPHY = 1;
3121
3643
  TENOR = 2;
3644
+ KLIPY = 3;
3645
+ }
3646
+ enum VideoSourceType {
3647
+ USER_VIDEO = 0;
3648
+ AI_GENERATED = 1;
3122
3649
  }
3123
3650
  }
3124
-
3651
+
3125
3652
  }
3126
3653
 
3127
3654
  message MessageAddOn {
@@ -3167,6 +3694,11 @@ message MessageAssociation {
3167
3694
  MOTION_PHOTO = 12;
3168
3695
  STATUS_LINK_ACTION = 13;
3169
3696
  VIEW_ALL_REPLIES = 14;
3697
+ STATUS_ADD_YOURS_AI_IMAGINE = 15;
3698
+ STATUS_QUESTION = 16;
3699
+ STATUS_ADD_YOURS_DIWALI = 17;
3700
+ STATUS_REACTION = 18;
3701
+ HEVC_VIDEO_DUAL_UPLOAD = 19;
3170
3702
  }
3171
3703
  }
3172
3704
 
@@ -3185,6 +3717,8 @@ message MessageContextInfo {
3185
3717
  optional string supportPayload = 12;
3186
3718
  optional LimitSharing limitSharing = 13;
3187
3719
  optional LimitSharing limitSharingV2 = 14;
3720
+ repeated ThreadID threadId = 15;
3721
+ optional WebLinkRenderConfig weblinkRenderConfig = 16;
3188
3722
  enum MessageAddonExpiryType {
3189
3723
  STATIC = 1;
3190
3724
  DEPENDENT_ON_PARENT = 2;
@@ -3234,6 +3768,8 @@ message MsgOpaqueData {
3234
3768
  optional PollEncValue encPollVote = 24;
3235
3769
  optional bool isSentCagPollCreation = 28;
3236
3770
  optional PollContentType pollContentType = 42;
3771
+ optional PollType pollType = 46;
3772
+ optional int32 correctOptionIndex = 47;
3237
3773
  optional PollVotesSnapshot pollVotesSnapshot = 41;
3238
3774
  optional string encReactionTargetMessageKey = 25;
3239
3775
  optional bytes encReactionEncPayload = 26;
@@ -3249,6 +3785,8 @@ message MsgOpaqueData {
3249
3785
  optional int64 eventStartTime = 37;
3250
3786
  optional EventLocation eventLocation = 38;
3251
3787
  optional int64 eventEndTime = 40;
3788
+ optional bool eventIsScheduledCall = 44;
3789
+ optional bool eventExtraGuestsAllowed = 45;
3252
3790
  optional bytes plainProtobufBytes = 43;
3253
3791
  message EventLocation {
3254
3792
  optional double degreesLatitude = 1;
@@ -3258,7 +3796,7 @@ message MsgOpaqueData {
3258
3796
  optional string url = 5;
3259
3797
  optional bytes jpegThumbnail = 6;
3260
3798
  }
3261
-
3799
+
3262
3800
  enum PollContentType {
3263
3801
  UNKNOWN = 0;
3264
3802
  TEXT = 1;
@@ -3268,16 +3806,20 @@ message MsgOpaqueData {
3268
3806
  optional string name = 1;
3269
3807
  optional string hash = 2;
3270
3808
  }
3271
-
3809
+
3810
+ enum PollType {
3811
+ POLL = 0;
3812
+ QUIZ = 1;
3813
+ }
3272
3814
  message PollVoteSnapshot {
3273
3815
  optional MsgOpaqueData.PollOption option = 1;
3274
3816
  optional int32 optionVoteCount = 2;
3275
3817
  }
3276
-
3818
+
3277
3819
  message PollVotesSnapshot {
3278
3820
  repeated MsgOpaqueData.PollVoteSnapshot pollVotes = 1;
3279
3821
  }
3280
-
3822
+
3281
3823
  }
3282
3824
 
3283
3825
  message MsgRowOpaqueData {
@@ -3285,6 +3827,81 @@ message MsgRowOpaqueData {
3285
3827
  optional MsgOpaqueData quotedMsg = 2;
3286
3828
  }
3287
3829
 
3830
+ enum MutationProps {
3831
+ STAR_ACTION = 2;
3832
+ CONTACT_ACTION = 3;
3833
+ MUTE_ACTION = 4;
3834
+ PIN_ACTION = 5;
3835
+ SECURITY_NOTIFICATION_SETTING = 6;
3836
+ PUSH_NAME_SETTING = 7;
3837
+ QUICK_REPLY_ACTION = 8;
3838
+ RECENT_EMOJI_WEIGHTS_ACTION = 11;
3839
+ LABEL_MESSAGE_ACTION = 13;
3840
+ LABEL_EDIT_ACTION = 14;
3841
+ LABEL_ASSOCIATION_ACTION = 15;
3842
+ LOCALE_SETTING = 16;
3843
+ ARCHIVE_CHAT_ACTION = 17;
3844
+ DELETE_MESSAGE_FOR_ME_ACTION = 18;
3845
+ KEY_EXPIRATION = 19;
3846
+ MARK_CHAT_AS_READ_ACTION = 20;
3847
+ CLEAR_CHAT_ACTION = 21;
3848
+ DELETE_CHAT_ACTION = 22;
3849
+ UNARCHIVE_CHATS_SETTING = 23;
3850
+ PRIMARY_FEATURE = 24;
3851
+ ANDROID_UNSUPPORTED_ACTIONS = 26;
3852
+ AGENT_ACTION = 27;
3853
+ SUBSCRIPTION_ACTION = 28;
3854
+ USER_STATUS_MUTE_ACTION = 29;
3855
+ TIME_FORMAT_ACTION = 30;
3856
+ NUX_ACTION = 31;
3857
+ PRIMARY_VERSION_ACTION = 32;
3858
+ STICKER_ACTION = 33;
3859
+ REMOVE_RECENT_STICKER_ACTION = 34;
3860
+ CHAT_ASSIGNMENT = 35;
3861
+ CHAT_ASSIGNMENT_OPENED_STATUS = 36;
3862
+ PN_FOR_LID_CHAT_ACTION = 37;
3863
+ MARKETING_MESSAGE_ACTION = 38;
3864
+ MARKETING_MESSAGE_BROADCAST_ACTION = 39;
3865
+ EXTERNAL_WEB_BETA_ACTION = 40;
3866
+ PRIVACY_SETTING_RELAY_ALL_CALLS = 41;
3867
+ CALL_LOG_ACTION = 42;
3868
+ UGC_BOT = 43;
3869
+ STATUS_PRIVACY = 44;
3870
+ BOT_WELCOME_REQUEST_ACTION = 45;
3871
+ DELETE_INDIVIDUAL_CALL_LOG = 46;
3872
+ LABEL_REORDERING_ACTION = 47;
3873
+ PAYMENT_INFO_ACTION = 48;
3874
+ CUSTOM_PAYMENT_METHODS_ACTION = 49;
3875
+ LOCK_CHAT_ACTION = 50;
3876
+ CHAT_LOCK_SETTINGS = 51;
3877
+ WAMO_USER_IDENTIFIER_ACTION = 52;
3878
+ PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION = 53;
3879
+ DEVICE_CAPABILITIES = 54;
3880
+ NOTE_EDIT_ACTION = 55;
3881
+ FAVORITES_ACTION = 56;
3882
+ MERCHANT_PAYMENT_PARTNER_ACTION = 57;
3883
+ WAFFLE_ACCOUNT_LINK_STATE_ACTION = 58;
3884
+ USERNAME_CHAT_START_MODE = 59;
3885
+ NOTIFICATION_ACTIVITY_SETTING_ACTION = 60;
3886
+ LID_CONTACT_ACTION = 61;
3887
+ CTWA_PER_CUSTOMER_DATA_SHARING_ACTION = 62;
3888
+ PAYMENT_TOS_ACTION = 63;
3889
+ PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION = 64;
3890
+ BUSINESS_BROADCAST_ASSOCIATION_ACTION = 65;
3891
+ DETECTED_OUTCOMES_STATUS_ACTION = 66;
3892
+ MAIBA_AI_FEATURES_CONTROL_ACTION = 68;
3893
+ BUSINESS_BROADCAST_LIST_ACTION = 69;
3894
+ MUSIC_USER_ID_ACTION = 70;
3895
+ STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION = 71;
3896
+ AVATAR_UPDATED_ACTION = 72;
3897
+ GALAXY_FLOW_ACTION = 73;
3898
+ PRIVATE_PROCESSING_SETTING_ACTION = 74;
3899
+ NEWSLETTER_SAVED_INTERESTS_ACTION = 75;
3900
+ AI_THREAD_RENAME_ACTION = 76;
3901
+ INTERACTIVE_MESSAGE_ACTION = 77;
3902
+ SHARE_OWN_PN = 10001;
3903
+ BUSINESS_BROADCAST_ACTION = 10002;
3904
+ }
3288
3905
  message NoiseCertificate {
3289
3906
  optional bytes details = 1;
3290
3907
  optional bytes signature = 2;
@@ -3295,7 +3912,7 @@ message NoiseCertificate {
3295
3912
  optional string subject = 4;
3296
3913
  optional bytes key = 5;
3297
3914
  }
3298
-
3915
+
3299
3916
  }
3300
3917
 
3301
3918
  message NotificationMessageInfo {
@@ -3357,6 +3974,9 @@ message PatchDebugData {
3357
3974
  DARWIN = 6;
3358
3975
  IPAD = 7;
3359
3976
  WEAROS = 8;
3977
+ WASG = 9;
3978
+ WEARM = 10;
3979
+ CAPI = 11;
3360
3980
  }
3361
3981
  }
3362
3982
 
@@ -3378,7 +3998,7 @@ message PaymentBackground {
3378
3998
  optional bytes fileEncSha256 = 4;
3379
3999
  optional string directPath = 5;
3380
4000
  }
3381
-
4001
+
3382
4002
  enum Type {
3383
4003
  UNKNOWN = 0;
3384
4004
  DEFAULT = 1;
@@ -3557,6 +4177,11 @@ message Pushname {
3557
4177
  optional string pushname = 2;
3558
4178
  }
3559
4179
 
4180
+ message QuarantinedMessage {
4181
+ optional bytes originalData = 1;
4182
+ optional string extractedText = 2;
4183
+ }
4184
+
3560
4185
  message Reaction {
3561
4186
  optional MessageKey key = 1;
3562
4187
  optional string text = 2;
@@ -3612,17 +4237,17 @@ message SenderKeyStateStructure {
3612
4237
  optional uint32 iteration = 1;
3613
4238
  optional bytes seed = 2;
3614
4239
  }
3615
-
4240
+
3616
4241
  message SenderMessageKey {
3617
4242
  optional uint32 iteration = 1;
3618
4243
  optional bytes seed = 2;
3619
4244
  }
3620
-
4245
+
3621
4246
  message SenderSigningKey {
3622
4247
  optional bytes public = 1;
3623
4248
  optional bytes private = 2;
3624
4249
  }
3625
-
4250
+
3626
4251
  }
3627
4252
 
3628
4253
  message ServerErrorReceipt {
@@ -3652,16 +4277,16 @@ message SessionStructure {
3652
4277
  optional uint32 index = 1;
3653
4278
  optional bytes key = 2;
3654
4279
  }
3655
-
4280
+
3656
4281
  message MessageKey {
3657
4282
  optional uint32 index = 1;
3658
4283
  optional bytes cipherKey = 2;
3659
4284
  optional bytes macKey = 3;
3660
4285
  optional bytes iv = 4;
3661
4286
  }
3662
-
4287
+
3663
4288
  }
3664
-
4289
+
3665
4290
  message PendingKeyExchange {
3666
4291
  optional uint32 sequence = 1;
3667
4292
  optional bytes localBaseKey = 2;
@@ -3671,15 +4296,25 @@ message SessionStructure {
3671
4296
  optional bytes localIdentityKey = 7;
3672
4297
  optional bytes localIdentityKeyPrivate = 8;
3673
4298
  }
3674
-
4299
+
3675
4300
  message PendingPreKey {
3676
4301
  optional uint32 preKeyId = 1;
3677
4302
  optional int32 signedPreKeyId = 3;
3678
4303
  optional bytes baseKey = 2;
3679
4304
  }
3680
-
4305
+
4306
+ }
4307
+
4308
+ message SessionTransparencyMetadata {
4309
+ optional string disclaimerText = 1;
4310
+ optional string hcaId = 2;
4311
+ optional SessionTransparencyType sessionTransparencyType = 3;
3681
4312
  }
3682
4313
 
4314
+ enum SessionTransparencyType {
4315
+ UNKNOWN_TYPE = 0;
4316
+ NY_AI_SAFETY_DISCLAIMER = 1;
4317
+ }
3683
4318
  message SignalMessage {
3684
4319
  optional bytes ratchetKey = 1;
3685
4320
  optional uint32 counter = 2;
@@ -3695,12 +4330,106 @@ message SignedPreKeyRecordStructure {
3695
4330
  optional fixed64 timestamp = 5;
3696
4331
  }
3697
4332
 
4333
+ message StatusAttribution {
4334
+ optional Type type = 1;
4335
+ optional string actionUrl = 2;
4336
+ oneof attributionData {
4337
+ StatusAttribution.StatusReshare statusReshare = 3;
4338
+ StatusAttribution.ExternalShare externalShare = 4;
4339
+ StatusAttribution.Music music = 5;
4340
+ StatusAttribution.GroupStatus groupStatus = 6;
4341
+ StatusAttribution.RLAttribution rlAttribution = 7;
4342
+ StatusAttribution.AiCreatedAttribution aiCreatedAttribution = 8;
4343
+ }
4344
+ message AiCreatedAttribution {
4345
+ optional Source source = 1;
4346
+ enum Source {
4347
+ UNKNOWN = 0;
4348
+ STATUS_MIMICRY = 1;
4349
+ }
4350
+ }
4351
+
4352
+ message ExternalShare {
4353
+ optional string actionUrl = 1;
4354
+ optional Source source = 2;
4355
+ optional int32 duration = 3;
4356
+ optional string actionFallbackUrl = 4;
4357
+ enum Source {
4358
+ UNKNOWN = 0;
4359
+ INSTAGRAM = 1;
4360
+ FACEBOOK = 2;
4361
+ MESSENGER = 3;
4362
+ SPOTIFY = 4;
4363
+ YOUTUBE = 5;
4364
+ PINTEREST = 6;
4365
+ THREADS = 7;
4366
+ APPLE_MUSIC = 8;
4367
+ SHARECHAT = 9;
4368
+ GOOGLE_PHOTOS = 10;
4369
+ }
4370
+ }
4371
+
4372
+ message GroupStatus {
4373
+ optional string authorJid = 1;
4374
+ }
4375
+
4376
+ message Music {
4377
+ optional string authorName = 1;
4378
+ optional string songId = 2;
4379
+ optional string title = 3;
4380
+ optional string author = 4;
4381
+ optional string artistAttribution = 5;
4382
+ optional bool isExplicit = 6;
4383
+ }
4384
+
4385
+ message RLAttribution {
4386
+ optional Source source = 1;
4387
+ enum Source {
4388
+ UNKNOWN = 0;
4389
+ RAY_BAN_META_GLASSES = 1;
4390
+ OAKLEY_META_GLASSES = 2;
4391
+ HYPERNOVA_GLASSES = 3;
4392
+ }
4393
+ }
4394
+
4395
+ message StatusReshare {
4396
+ optional Source source = 1;
4397
+ optional Metadata metadata = 2;
4398
+ message Metadata {
4399
+ optional int32 duration = 1;
4400
+ optional string channelJid = 2;
4401
+ optional int32 channelMessageId = 3;
4402
+ optional bool hasMultipleReshares = 4;
4403
+ }
4404
+
4405
+ enum Source {
4406
+ UNKNOWN = 0;
4407
+ INTERNAL_RESHARE = 1;
4408
+ MENTION_RESHARE = 2;
4409
+ CHANNEL_RESHARE = 3;
4410
+ FORWARD = 4;
4411
+ }
4412
+ }
4413
+
4414
+ enum Type {
4415
+ UNKNOWN = 0;
4416
+ RESHARE = 1;
4417
+ EXTERNAL_SHARE = 2;
4418
+ MUSIC = 3;
4419
+ STATUS_MENTION = 4;
4420
+ GROUP_STATUS = 5;
4421
+ RL_ATTRIBUTION = 6;
4422
+ AI_CREATED = 7;
4423
+ LAYOUTS = 8;
4424
+ }
4425
+ }
4426
+
3698
4427
  message StatusMentionMessage {
3699
4428
  optional Message quotedStatus = 1;
3700
4429
  }
3701
4430
 
3702
4431
  message StatusPSA {
3703
- required uint64 campaignId = 44;
4432
+ uint64 campaignId = 44;
3704
4433
  optional uint64 campaignExpirationTimestamp = 45;
3705
4434
  }
3706
4435
 
@@ -3717,6 +4446,8 @@ message StickerMetadata {
3717
4446
  optional float weight = 10;
3718
4447
  optional int64 lastStickerSentTs = 11;
3719
4448
  optional bool isLottie = 12;
4449
+ optional string imageHash = 13;
4450
+ optional bool isAvatarSticker = 14;
3720
4451
  }
3721
4452
 
3722
4453
  message SyncActionData {
@@ -3732,7 +4463,6 @@ message SyncActionValue {
3732
4463
  optional ContactAction contactAction = 3;
3733
4464
  optional MuteAction muteAction = 4;
3734
4465
  optional PinAction pinAction = 5;
3735
- optional SecurityNotificationSetting securityNotificationSetting = 6;
3736
4466
  optional PushNameSetting pushNameSetting = 7;
3737
4467
  optional QuickReplyAction quickReplyAction = 8;
3738
4468
  optional RecentEmojiWeightsAction recentEmojiWeightsAction = 11;
@@ -3764,6 +4494,7 @@ message SyncActionValue {
3764
4494
  optional ExternalWebBetaAction externalWebBetaAction = 40;
3765
4495
  optional PrivacySettingRelayAllCalls privacySettingRelayAllCalls = 41;
3766
4496
  optional CallLogAction callLogAction = 42;
4497
+ optional UGCBot ugcBot = 43;
3767
4498
  optional StatusPrivacyAction statusPrivacy = 44;
3768
4499
  optional BotWelcomeRequestAction botWelcomeRequestAction = 45;
3769
4500
  optional DeleteIndividualCallLogAction deleteIndividualCallLog = 46;
@@ -3784,41 +4515,82 @@ message SyncActionValue {
3784
4515
  optional LidContactAction lidContactAction = 61;
3785
4516
  optional CtwaPerCustomerDataSharingAction ctwaPerCustomerDataSharingAction = 62;
3786
4517
  optional PaymentTosAction paymentTosAction = 63;
4518
+ optional PrivacySettingChannelsPersonalisedRecommendationAction privacySettingChannelsPersonalisedRecommendationAction = 64;
4519
+ optional BusinessBroadcastAssociationAction businessBroadcastAssociationAction = 65;
4520
+ optional DetectedOutcomesStatusAction detectedOutcomesStatusAction = 66;
4521
+ optional MaibaAIFeaturesControlAction maibaAiFeaturesControlAction = 68;
4522
+ optional BusinessBroadcastListAction businessBroadcastListAction = 69;
4523
+ optional MusicUserIdAction musicUserIdAction = 70;
4524
+ optional StatusPostOptInNotificationPreferencesAction statusPostOptInNotificationPreferencesAction = 71;
4525
+ optional AvatarUpdatedAction avatarUpdatedAction = 72;
4526
+ optional PrivateProcessingSettingAction privateProcessingSettingAction = 74;
4527
+ optional NewsletterSavedInterestsAction newsletterSavedInterestsAction = 75;
4528
+ optional AiThreadRenameAction aiThreadRenameAction = 76;
4529
+ optional InteractiveMessageAction interactiveMessageAction = 77;
3787
4530
  message AgentAction {
3788
4531
  optional string name = 1;
3789
4532
  optional int32 deviceID = 2;
3790
4533
  optional bool isDeleted = 3;
3791
4534
  }
3792
-
4535
+
4536
+ message AiThreadRenameAction {
4537
+ optional string newTitle = 1;
4538
+ }
4539
+
3793
4540
  message AndroidUnsupportedActions {
3794
4541
  optional bool allowed = 1;
3795
4542
  }
3796
-
4543
+
3797
4544
  message ArchiveChatAction {
3798
4545
  optional bool archived = 1;
3799
4546
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
3800
4547
  }
3801
-
4548
+
4549
+ message AvatarUpdatedAction {
4550
+ optional AvatarEventType eventType = 1;
4551
+ repeated SyncActionValue.StickerAction recentAvatarStickers = 2;
4552
+ enum AvatarEventType {
4553
+ UPDATED = 0;
4554
+ CREATED = 1;
4555
+ DELETED = 2;
4556
+ }
4557
+ }
4558
+
3802
4559
  message BotWelcomeRequestAction {
3803
4560
  optional bool isSent = 1;
3804
4561
  }
3805
-
4562
+
4563
+ message BroadcastListParticipant {
4564
+ string lidJid = 1;
4565
+ optional string pnJid = 2;
4566
+ }
4567
+
4568
+ message BusinessBroadcastAssociationAction {
4569
+ optional bool deleted = 1;
4570
+ }
4571
+
4572
+ message BusinessBroadcastListAction {
4573
+ optional bool deleted = 1;
4574
+ repeated SyncActionValue.BroadcastListParticipant participants = 2;
4575
+ optional string listName = 3;
4576
+ }
4577
+
3806
4578
  message CallLogAction {
3807
4579
  optional CallLogRecord callLogRecord = 1;
3808
4580
  }
3809
-
4581
+
3810
4582
  message ChatAssignmentAction {
3811
4583
  optional string deviceAgentID = 1;
3812
4584
  }
3813
-
4585
+
3814
4586
  message ChatAssignmentOpenedStatusAction {
3815
4587
  optional bool chatOpened = 1;
3816
4588
  }
3817
-
4589
+
3818
4590
  message ClearChatAction {
3819
4591
  optional SyncActionValue.SyncActionMessageRange messageRange = 1;
3820
4592
  }
3821
-
4593
+
3822
4594
  message ContactAction {
3823
4595
  optional string fullName = 1;
3824
4596
  optional string firstName = 2;
@@ -3827,61 +4599,72 @@ message SyncActionValue {
3827
4599
  optional string pnJid = 5;
3828
4600
  optional string username = 6;
3829
4601
  }
3830
-
4602
+
3831
4603
  message CtwaPerCustomerDataSharingAction {
3832
4604
  optional bool isCtwaPerCustomerDataSharingEnabled = 1;
3833
4605
  }
3834
-
4606
+
3835
4607
  message CustomPaymentMethod {
3836
- required string credentialId = 1;
3837
- required string country = 2;
3838
- required string type = 3;
4608
+ string credentialId = 1;
4609
+ string country = 2;
4610
+ string type = 3;
3839
4611
  repeated SyncActionValue.CustomPaymentMethodMetadata metadata = 4;
3840
4612
  }
3841
-
4613
+
3842
4614
  message CustomPaymentMethodMetadata {
3843
- required string key = 1;
3844
- required string value = 2;
4615
+ string key = 1;
4616
+ string value = 2;
3845
4617
  }
3846
-
4618
+
3847
4619
  message CustomPaymentMethodsAction {
3848
4620
  repeated SyncActionValue.CustomPaymentMethod customPaymentMethods = 1;
3849
4621
  }
3850
-
4622
+
3851
4623
  message DeleteChatAction {
3852
4624
  optional SyncActionValue.SyncActionMessageRange messageRange = 1;
3853
4625
  }
3854
-
4626
+
3855
4627
  message DeleteIndividualCallLogAction {
3856
4628
  optional string peerJid = 1;
3857
4629
  optional bool isIncoming = 2;
3858
4630
  }
3859
-
4631
+
3860
4632
  message DeleteMessageForMeAction {
3861
4633
  optional bool deleteMedia = 1;
3862
4634
  optional int64 messageTimestamp = 2;
3863
4635
  }
3864
-
4636
+
4637
+ message DetectedOutcomesStatusAction {
4638
+ optional bool isEnabled = 1;
4639
+ }
4640
+
3865
4641
  message ExternalWebBetaAction {
3866
4642
  optional bool isOptIn = 1;
3867
4643
  }
3868
-
4644
+
3869
4645
  message FavoritesAction {
3870
4646
  repeated Favorite favorites = 1;
3871
4647
  message Favorite {
3872
4648
  optional string id = 1;
3873
4649
  }
3874
-
4650
+
4651
+ }
4652
+
4653
+ message InteractiveMessageAction {
4654
+ InteractiveMessageActionMode type = 1;
4655
+ enum InteractiveMessageActionMode {
4656
+ DISABLE_CTA = 1;
4657
+ }
3875
4658
  }
3876
-
4659
+
3877
4660
  message KeyExpiration {
3878
4661
  optional int32 expiredKeyEpoch = 1;
3879
4662
  }
3880
-
4663
+
3881
4664
  message LabelAssociationAction {
3882
4665
  optional bool labeled = 1;
3883
4666
  }
3884
-
4667
+
3885
4668
  message LabelEditAction {
3886
4669
  optional string name = 1;
3887
4670
  optional int32 color = 2;
@@ -3891,6 +4674,7 @@ message SyncActionValue {
3891
4674
  optional bool isActive = 6;
3892
4675
  optional ListType type = 7;
3893
4676
  optional bool isImmutable = 8;
4677
+ optional int64 muteEndTimeMs = 9;
3894
4678
  enum ListType {
3895
4679
  NONE = 0;
3896
4680
  UNREAD = 1;
@@ -3900,33 +4684,43 @@ message SyncActionValue {
3900
4684
  CUSTOM = 5;
3901
4685
  COMMUNITY = 6;
3902
4686
  SERVER_ASSIGNED = 7;
4687
+ DRAFTED = 8;
4688
+ AI_HANDOFF = 9;
3903
4689
  }
3904
4690
  }
3905
-
4691
+
3906
4692
  message LabelReorderingAction {
3907
4693
  repeated int32 sortedLabelIds = 1;
3908
4694
  }
3909
-
4695
+
3910
4696
  message LidContactAction {
3911
4697
  optional string fullName = 1;
3912
4698
  optional string firstName = 2;
3913
4699
  optional string username = 3;
3914
- optional bool saveOnPrimaryAddressbook = 4;
3915
4700
  }
3916
-
4701
+
3917
4702
  message LocaleSetting {
3918
4703
  optional string locale = 1;
3919
4704
  }
3920
-
4705
+
3921
4706
  message LockChatAction {
3922
4707
  optional bool locked = 1;
3923
4708
  }
3924
-
4709
+
4710
+ message MaibaAIFeaturesControlAction {
4711
+ optional MaibaAIFeatureStatus aiFeatureStatus = 1;
4712
+ enum MaibaAIFeatureStatus {
4713
+ ENABLED = 0;
4714
+ ENABLED_HAS_LEARNING = 1;
4715
+ DISABLED = 2;
4716
+ }
4717
+ }
4718
+
3925
4719
  message MarkChatAsReadAction {
3926
4720
  optional bool read = 1;
3927
4721
  optional SyncActionValue.SyncActionMessageRange messageRange = 2;
3928
4722
  }
3929
-
4723
+
3930
4724
  message MarketingMessageAction {
3931
4725
  optional string name = 1;
3932
4726
  optional string message = 2;
@@ -3939,14 +4733,14 @@ message SyncActionValue {
3939
4733
  PERSONALIZED = 0;
3940
4734
  }
3941
4735
  }
3942
-
4736
+
3943
4737
  message MarketingMessageBroadcastAction {
3944
4738
  optional int32 repliedCount = 1;
3945
4739
  }
3946
-
4740
+
3947
4741
  message MerchantPaymentPartnerAction {
3948
- required Status status = 1;
3949
- required string country = 2;
4742
+ Status status = 1;
4743
+ string country = 2;
3950
4744
  optional string gatewayName = 3;
3951
4745
  optional string credentialId = 4;
3952
4746
  enum Status {
@@ -3954,13 +4748,22 @@ message SyncActionValue {
3954
4748
  INACTIVE = 1;
3955
4749
  }
3956
4750
  }
3957
-
4751
+
4752
+ message MusicUserIdAction {
4753
+ optional string musicUserId = 1;
4754
+ map<string, string> music_user_id_map = 2;
4755
+ }
4756
+
3958
4757
  message MuteAction {
3959
4758
  optional bool muted = 1;
3960
4759
  optional int64 muteEndTimestamp = 2;
3961
4760
  optional bool autoMuted = 3;
3962
4761
  }
3963
-
4762
+
4763
+ message NewsletterSavedInterestsAction {
4764
+ optional string newsletterSavedInterests = 1;
4765
+ }
4766
+
3964
4767
  message NoteEditAction {
3965
4768
  optional NoteType type = 1;
3966
4769
  optional string chatJid = 2;
@@ -3972,7 +4775,7 @@ message SyncActionValue {
3972
4775
  STRUCTURED = 2;
3973
4776
  }
3974
4777
  }
3975
-
4778
+
3976
4779
  message NotificationActivitySettingAction {
3977
4780
  optional NotificationActivitySetting notificationActivitySetting = 1;
3978
4781
  enum NotificationActivitySetting {
@@ -3982,51 +4785,64 @@ message SyncActionValue {
3982
4785
  DEFAULT_HIGHLIGHTS = 3;
3983
4786
  }
3984
4787
  }
3985
-
4788
+
3986
4789
  message NuxAction {
3987
4790
  optional bool acknowledged = 1;
3988
4791
  }
3989
-
4792
+
3990
4793
  message PaymentInfoAction {
3991
4794
  optional string cpi = 1;
3992
4795
  }
3993
-
4796
+
3994
4797
  message PaymentTosAction {
3995
- required PaymentNotice paymentNotice = 1;
3996
- required bool accepted = 2;
4798
+ PaymentNotice paymentNotice = 1;
4799
+ bool accepted = 2;
3997
4800
  enum PaymentNotice {
3998
4801
  BR_PAY_PRIVACY_POLICY = 0;
3999
4802
  }
4000
4803
  }
4001
-
4804
+
4002
4805
  message PinAction {
4003
4806
  optional bool pinned = 1;
4004
4807
  }
4005
-
4808
+
4006
4809
  message PnForLidChatAction {
4007
4810
  optional string pnJid = 1;
4008
4811
  }
4009
-
4812
+
4010
4813
  message PrimaryFeature {
4011
4814
  repeated string flags = 1;
4012
4815
  }
4013
-
4816
+
4014
4817
  message PrimaryVersionAction {
4015
4818
  optional string version = 1;
4016
4819
  }
4017
-
4820
+
4821
+ message PrivacySettingChannelsPersonalisedRecommendationAction {
4822
+ optional bool isUserOptedOut = 1;
4823
+ }
4824
+
4018
4825
  message PrivacySettingDisableLinkPreviewsAction {
4019
4826
  optional bool isPreviewsDisabled = 1;
4020
4827
  }
4021
-
4828
+
4022
4829
  message PrivacySettingRelayAllCalls {
4023
4830
  optional bool isEnabled = 1;
4024
4831
  }
4025
-
4832
+
4833
+ message PrivateProcessingSettingAction {
4834
+ optional PrivateProcessingStatus privateProcessingStatus = 1;
4835
+ enum PrivateProcessingStatus {
4836
+ UNDEFINED = 0;
4837
+ ENABLED = 1;
4838
+ DISABLED = 2;
4839
+ }
4840
+ }
4841
+
4026
4842
  message PushNameSetting {
4027
4843
  optional string name = 1;
4028
4844
  }
4029
-
4845
+
4030
4846
  message QuickReplyAction {
4031
4847
  optional string shortcut = 1;
4032
4848
  optional string message = 2;
@@ -4034,23 +4850,23 @@ message SyncActionValue {
4034
4850
  optional int32 count = 4;
4035
4851
  optional bool deleted = 5;
4036
4852
  }
4037
-
4853
+
4038
4854
  message RecentEmojiWeightsAction {
4039
4855
  repeated RecentEmojiWeight weights = 1;
4040
4856
  }
4041
-
4857
+
4042
4858
  message RemoveRecentStickerAction {
4043
4859
  optional int64 lastStickerSentTs = 1;
4044
4860
  }
4045
-
4046
- message SecurityNotificationSetting {
4047
- optional bool showNotification = 1;
4048
- }
4049
-
4861
+
4050
4862
  message StarAction {
4051
4863
  optional bool starred = 1;
4052
4864
  }
4053
-
4865
+
4866
+ message StatusPostOptInNotificationPreferencesAction {
4867
+ optional bool enabled = 1;
4868
+ }
4869
+
4054
4870
  message StatusPrivacyAction {
4055
4871
  optional StatusDistributionMode mode = 1;
4056
4872
  repeated string userJid = 2;
@@ -4058,9 +4874,10 @@ message SyncActionValue {
4058
4874
  ALLOW_LIST = 0;
4059
4875
  DENY_LIST = 1;
4060
4876
  CONTACTS = 2;
4877
+ CLOSE_FRIENDS = 3;
4061
4878
  }
4062
4879
  }
4063
-
4880
+
4064
4881
  message StickerAction {
4065
4882
  optional string url = 1;
4066
4883
  optional bytes fileEncSha256 = 2;
@@ -4073,37 +4890,43 @@ message SyncActionValue {
4073
4890
  optional bool isFavorite = 9;
4074
4891
  optional uint32 deviceIdHint = 10;
4075
4892
  optional bool isLottie = 11;
4893
+ optional string imageHash = 12;
4894
+ optional bool isAvatarSticker = 13;
4076
4895
  }
4077
-
4896
+
4078
4897
  message SubscriptionAction {
4079
4898
  optional bool isDeactivated = 1;
4080
4899
  optional bool isAutoRenewing = 2;
4081
4900
  optional int64 expirationDate = 3;
4082
4901
  }
4083
-
4902
+
4084
4903
  message SyncActionMessage {
4085
4904
  optional MessageKey key = 1;
4086
4905
  optional int64 timestamp = 2;
4087
4906
  }
4088
-
4907
+
4089
4908
  message SyncActionMessageRange {
4090
4909
  optional int64 lastMessageTimestamp = 1;
4091
4910
  optional int64 lastSystemMessageTimestamp = 2;
4092
4911
  repeated SyncActionValue.SyncActionMessage messages = 3;
4093
4912
  }
4094
-
4913
+
4095
4914
  message TimeFormatAction {
4096
4915
  optional bool isTwentyFourHourFormatEnabled = 1;
4097
4916
  }
4098
-
4917
+
4918
+ message UGCBot {
4919
+ optional bytes definition = 1;
4920
+ }
4921
+
4099
4922
  message UnarchiveChatsSetting {
4100
4923
  optional bool unarchiveChats = 1;
4101
4924
  }
4102
-
4925
+
4103
4926
  message UserStatusMuteAction {
4104
4927
  optional bool muted = 1;
4105
4928
  }
4106
-
4929
+
4107
4930
  message UsernameChatStartModeAction {
4108
4931
  optional ChatStartMode chatStartMode = 1;
4109
4932
  enum ChatStartMode {
@@ -4111,18 +4934,20 @@ message SyncActionValue {
4111
4934
  PN = 2;
4112
4935
  }
4113
4936
  }
4114
-
4937
+
4115
4938
  message WaffleAccountLinkStateAction {
4116
4939
  optional AccountLinkState linkState = 2;
4117
4940
  enum AccountLinkState {
4118
4941
  ACTIVE = 0;
4942
+ PAUSED = 1;
4943
+ UNLINKED = 2;
4119
4944
  }
4120
4945
  }
4121
-
4946
+
4122
4947
  message WamoUserIdentifierAction {
4123
4948
  optional string identifier = 1;
4124
4949
  }
4125
-
4950
+
4126
4951
  }
4127
4952
 
4128
4953
  message SyncdIndex {
@@ -4191,17 +5016,27 @@ message TemplateButton {
4191
5016
  optional Message.HighlyStructuredMessage displayText = 1;
4192
5017
  optional Message.HighlyStructuredMessage phoneNumber = 2;
4193
5018
  }
4194
-
5019
+
4195
5020
  message QuickReplyButton {
4196
5021
  optional Message.HighlyStructuredMessage displayText = 1;
4197
5022
  optional string id = 2;
4198
5023
  }
4199
-
5024
+
4200
5025
  message URLButton {
4201
5026
  optional Message.HighlyStructuredMessage displayText = 1;
4202
5027
  optional Message.HighlyStructuredMessage url = 2;
4203
5028
  }
4204
-
5029
+
5030
+ }
5031
+
5032
+ message ThreadID {
5033
+ optional ThreadType threadType = 1;
5034
+ optional MessageKey threadKey = 2;
5035
+ enum ThreadType {
5036
+ UNKNOWN = 0;
5037
+ VIEW_REPLIES = 1;
5038
+ AI_THREAD = 2;
5039
+ }
4205
5040
  }
4206
5041
 
4207
5042
  message UrlTrackingMap {
@@ -4212,7 +5047,7 @@ message UrlTrackingMap {
4212
5047
  optional string consentedUsersUrl = 3;
4213
5048
  optional uint32 cardIndex = 4;
4214
5049
  }
4215
-
5050
+
4216
5051
  }
4217
5052
 
4218
5053
  message UserPassword {
@@ -4238,13 +5073,13 @@ message UserPassword {
4238
5073
  uint32 asUnsignedInteger = 2;
4239
5074
  }
4240
5075
  }
4241
-
5076
+
4242
5077
  }
4243
-
5078
+
4244
5079
  }
4245
5080
 
4246
5081
  message UserReceipt {
4247
- required string userJid = 1;
5082
+ string userJid = 1;
4248
5083
  optional int64 receiptTimestamp = 2;
4249
5084
  optional int64 readTimestamp = 3;
4250
5085
  optional int64 playedTimestamp = 4;
@@ -4263,7 +5098,7 @@ message VerifiedNameCertificate {
4263
5098
  repeated LocalizedName localizedNames = 8;
4264
5099
  optional uint64 issueTime = 10;
4265
5100
  }
4266
-
5101
+
4267
5102
  }
4268
5103
 
4269
5104
  message WallpaperSettings {
@@ -4325,8 +5160,12 @@ message WebFeatures {
4325
5160
  }
4326
5161
  }
4327
5162
 
5163
+ enum WebLinkRenderConfig {
5164
+ WEBVIEW = 0;
5165
+ SYSTEM = 1;
5166
+ }
4328
5167
  message WebMessageInfo {
4329
- required MessageKey key = 1;
5168
+ MessageKey key = 1;
4330
5169
  optional Message message = 2;
4331
5170
  optional uint64 messageTimestamp = 3;
4332
5171
  optional Status status = 4;
@@ -4388,6 +5227,10 @@ message WebMessageInfo {
4388
5227
  repeated string statusMentionSources = 71;
4389
5228
  repeated Citation supportAiCitations = 72;
4390
5229
  optional string botTargetId = 73;
5230
+ optional GroupHistoryIndividualMessageInfo groupHistoryIndividualMessageInfo = 74;
5231
+ optional GroupHistoryBundleInfo groupHistoryBundleInfo = 75;
5232
+ optional InteractiveMessageAdditionalMetadata interactiveMessageAdditionalMetadata = 76;
5233
+ optional QuarantinedMessage quarantinedMessage = 77;
4391
5234
  enum BizPrivacyStatus {
4392
5235
  E2EE = 0;
4393
5236
  FB = 2;
@@ -4622,6 +5465,9 @@ message WebMessageInfo {
4622
5465
  CHANGE_LIMIT_SHARING = 216;
4623
5466
  GROUP_MEMBER_LINK_MODE = 217;
4624
5467
  BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE = 218;
5468
+ PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE = 219;
5469
+ QUARANTINED_MESSAGE = 220;
5470
+ GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE = 221;
4625
5471
  }
4626
5472
  }
4627
5473